@salutejs/sdds-serv 0.313.0-canary.2016.15553329485.0 → 0.313.0-dev.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.
Files changed (57) hide show
  1. package/components/Carousel/Carousel.config.d.ts +14 -0
  2. package/components/Carousel/Carousel.config.js +22 -0
  3. package/components/Carousel/Carousel.config.js.map +1 -0
  4. package/components/Carousel/Carousel.config_1r461vi.css +2 -0
  5. package/components/Carousel/Carousel.css +2 -0
  6. package/components/Carousel/Carousel.d.ts +9 -0
  7. package/components/Carousel/Carousel.js +12 -0
  8. package/components/Carousel/Carousel.js.map +1 -0
  9. package/components/Carousel/index.d.ts +2 -0
  10. package/components/Notification/Notification.css +0 -2
  11. package/components/Notification/Notification.d.ts +7 -6
  12. package/components/Notification/Notification.js +3 -13
  13. package/components/Notification/Notification.js.map +1 -1
  14. package/components/Notification/index.d.ts +3 -2
  15. package/emotion/cjs/components/Carousel/Carousel.config.js +23 -0
  16. package/emotion/cjs/components/Carousel/Carousel.js +10 -0
  17. package/emotion/cjs/components/Carousel/Carousel.stories.tsx +138 -0
  18. package/emotion/cjs/components/Carousel/index.js +19 -0
  19. package/emotion/cjs/components/Notification/Notification.js +3 -21
  20. package/emotion/cjs/components/Notification/Notification.stories.tsx +3 -8
  21. package/emotion/cjs/components/Notification/index.js +4 -3
  22. package/emotion/cjs/index.js +11 -0
  23. package/emotion/es/components/Carousel/Carousel.config.js +17 -0
  24. package/emotion/es/components/Carousel/Carousel.js +5 -0
  25. package/emotion/es/components/Carousel/Carousel.stories.tsx +138 -0
  26. package/emotion/es/components/Carousel/index.js +2 -0
  27. package/emotion/es/components/Notification/Notification.js +4 -5
  28. package/emotion/es/components/Notification/Notification.stories.tsx +3 -8
  29. package/emotion/es/components/Notification/index.js +2 -1
  30. package/emotion/es/index.js +1 -0
  31. package/es/components/Carousel/Carousel.config.js +18 -0
  32. package/es/components/Carousel/Carousel.config.js.map +1 -0
  33. package/es/components/Carousel/Carousel.config_1r461vi.css +2 -0
  34. package/es/components/Carousel/Carousel.css +2 -0
  35. package/es/components/Carousel/Carousel.js +8 -0
  36. package/es/components/Carousel/Carousel.js.map +1 -0
  37. package/es/components/Notification/Notification.css +0 -2
  38. package/es/components/Notification/Notification.js +4 -4
  39. package/es/components/Notification/Notification.js.map +1 -1
  40. package/es/index.css +3 -0
  41. package/es/index.js +2 -1
  42. package/es/index.js.map +1 -1
  43. package/index.d.ts +1 -0
  44. package/index.js +6 -0
  45. package/package.json +7 -7
  46. package/styled-components/cjs/components/Carousel/Carousel.config.js +23 -0
  47. package/styled-components/cjs/components/Carousel/Carousel.js +10 -0
  48. package/styled-components/cjs/components/Carousel/index.js +19 -0
  49. package/styled-components/cjs/components/Notification/Notification.js +3 -21
  50. package/styled-components/cjs/components/Notification/index.js +4 -3
  51. package/styled-components/cjs/index.js +11 -0
  52. package/styled-components/es/components/Carousel/Carousel.config.js +17 -0
  53. package/styled-components/es/components/Carousel/Carousel.js +5 -0
  54. package/styled-components/es/components/Carousel/index.js +2 -0
  55. package/styled-components/es/components/Notification/Notification.js +4 -5
  56. package/styled-components/es/components/Notification/index.js +2 -1
  57. 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,2 @@
1
+ .dv63qpm{--plasma-carousel-pagination-dot-background:var(--surface-transparent-tertiary);--plasma-carousel-pagination-dot-active-background:var(--surface-solid-default);}
2
+
@@ -0,0 +1,2 @@
1
+ .Carousel_config_1r461vi_dv63qpm__2a4ae68a{--plasma-carousel-pagination-dot-background:var(--surface-transparent-tertiary);--plasma-carousel-pagination-dot-active-background:var(--surface-solid-default);}
2
+
@@ -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,2 @@
1
+ export { CarouselItem } from '@salutejs/plasma-new-hope/styled-components';
2
+ export { Carousel } from './Carousel';
@@ -8,5 +8,3 @@
8
8
  .Notification_config_132q76f_djsygjg__1e3f7ddc{--plasma-notification-close-icon-button-size:1.5rem;--plasma-notification-close-icon-size:1.5rem;}
9
9
  .Notification_config_132q76f_x5jqj9y__1e3f7ddc{--plasma-notification-close-icon-top:0.5rem;--plasma-notification-close-icon-right:0.5rem;--plasma-notification-padding:0.375rem;--plasma-notification-textbox-padding-top-with-top-icon:0rem;--plasma-notification-content-padding-top:0.125rem;--plasma-notification-content-padding-right:0.25rem;--plasma-notification-content-padding-bottom:0rem;--plasma-notification-content-padding-left:0.25rem;--plasma-notification-buttons-margin-left:0rem;}
10
10
  .Notification_config_132q76f_x1e2dde6__1e3f7ddc{--plasma-notification-close-icon-top:0.8125rem;--plasma-notification-close-icon-right:1rem;--plasma-notification-padding:0.5625rem 1rem 1rem 1rem;--plasma-notification-textbox-padding-top-with-top-icon:0.1875rem;--plasma-notification-content-padding-top:0.25rem;--plasma-notification-content-padding-right:0rem;--plasma-notification-content-padding-bottom:0rem;--plasma-notification-content-padding-left:0rem;--plasma-notification-buttons-margin-left:2rem;}
11
-
12
- .Modal_config_1c34cg3_d142ug3n__b666ae01{--plasma-modal-overlay-with-blur-color:rgba(35,35,35,0.2);--plasma-modal-overlay-color:var(--overlay-soft);--plasma-modal-body-background:var(--surface-solid-card);--plasma-modal-body-border-radius:1.25rem;--plasma-modal-body-padding:2rem;--plasma-modal-content-padding:0.625rem;--plasma-modal-close-button-radius:0.375rem;--plasma-modal-close-button-color:var(--text-secondary);--plasma-modal-close-button-hover-color:var(--text-secondary-hover);--plasma-modal-close-button-active-color:var(--text-secondary-active);--plasma-modal-outline-focus-color:var(--surface-accent);}
@@ -1,7 +1,7 @@
1
- import React, { ReactNode } from 'react';
2
- import { NotificationProps, NotificationIconPlacement, NotificationPlacement, NotificationLayout, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
3
- export { modalClasses } from '../Modal';
4
- export declare const Notification: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
1
+ import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';
2
+ import { NotificationProps as NotificationPropsNewHope, NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
3
+ export type { NotificationPlacement };
4
+ export declare const NotificationNewHope: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
5
5
  view: {
6
6
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
7
  negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -21,11 +21,12 @@ export declare const Notification: React.FunctionComponent<import("@salutejs/pla
21
21
  xxs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
22
22
  };
23
23
  }> & (React.HTMLAttributes<HTMLElement> | import("@salutejs/plasma-new-hope/types/engines/types").HTMLAttributesWithoutOnChange<HTMLElement> | import("@salutejs/plasma-new-hope/types/engines/types").HTMLAttributesWithoutOnChangeAndDefaultValue<HTMLElement>)>;
24
+ type ConfigProps = 'size' | 'view' | 'layout' | 'closeIconType';
25
+ type NotificationProps = Pick<ComponentProps<typeof NotificationNewHope>, ConfigProps> & Omit<NotificationPropsNewHope, ConfigProps>;
26
+ export declare const Notification: ForwardRefExoticComponent<NotificationProps>;
24
27
  export declare const NotificationsProvider: React.FC<{
25
28
  children: ReactNode;
26
29
  frame?: string;
27
30
  placement?: NotificationPlacement;
28
31
  UNSAFE_SSR_ENABLED?: boolean;
29
32
  }>;
30
- export type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };
31
- export { addNotification, closeNotification };
@@ -11,7 +11,8 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
11
  var React__default = /*#__PURE__*/_interopDefault(React);
12
12
 
13
13
  var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.notificationConfig, Notification_config.config);
14
- var Notification = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
14
+ var NotificationNewHope = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
15
+ var Notification = NotificationNewHope;
15
16
  var NotificationsProvider = function NotificationsProvider(_ref) {
16
17
  var children = _ref.children,
17
18
  _ref$frame = _ref.frame,
@@ -26,18 +27,7 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
26
27
  }, children);
27
28
  };
28
29
 
29
- Object.defineProperty(exports, 'addNotification', {
30
- enumerable: true,
31
- get: function () { return plasmaNewHope.addNotification; }
32
- });
33
- Object.defineProperty(exports, 'closeNotification', {
34
- enumerable: true,
35
- get: function () { return plasmaNewHope.closeNotification; }
36
- });
37
- Object.defineProperty(exports, 'modalClasses', {
38
- enumerable: true,
39
- get: function () { return plasmaNewHope.modalClasses; }
40
- });
41
30
  exports.Notification = Notification;
31
+ exports.NotificationNewHope = NotificationNewHope;
42
32
  exports.NotificationsProvider = NotificationsProvider;
43
33
  //# sourceMappingURL=Notification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","sources":["../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport {\n component,\n mergeConfig,\n notificationConfig,\n NotificationProps,\n NotificationsProvider as Provider,\n NotificationIconPlacement,\n NotificationPlacement,\n NotificationLayout,\n addNotification,\n closeNotification,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport { modalClasses } from '../Modal';\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const Notification = component(mergedConfig);\n\nexport const NotificationsProvider: React.FC<{\n children: ReactNode;\n frame?: string;\n placement?: NotificationPlacement;\n UNSAFE_SSR_ENABLED?: boolean;\n}> = ({ children, frame = 'document', placement, UNSAFE_SSR_ENABLED }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement} UNSAFE_SSR_ENABLED={UNSAFE_SSR_ENABLED}>\n {children}\n </Provider>\n );\n};\n\nexport type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };\nexport { addNotification, closeNotification };\n"],"names":["mergedConfig","mergeConfig","notificationConfig","config","Notification","component","NotificationsProvider","_ref","children","_ref$frame","frame","placement","UNSAFE_SSR_ENABLED","React","createElement","Provider"],"mappings":";;;;;;;;;;;;AAkBA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,gCAAkB,EAAEC,0BAAM,CAAC,CAAA;IAE/CC,YAAY,gBAAGC,uBAAS,CAACL,YAAY,EAAC;IAEtCM,qBAKX,GAAG,SALQA,qBAKXA,CAAAC,IAAA,EAAwE;AAAA,EAAA,IAAlEC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,UAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,kBAAkB,GAAAL,IAAA,CAAlBK,kBAAkB,CAAA;AAC/D,EAAA,oBACIC,sBAAA,CAAAC,aAAA,CAACC,mCAAQ,EAAA;AAACZ,IAAAA,MAAM,EAAEH,YAAa;AAACU,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAU;AAACC,IAAAA,kBAAkB,EAAEA,kBAAAA;AAAmB,GAAA,EACtGJ,QACK,CAAC,CAAA;AAEnB;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Notification.js","sources":["../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';\nimport {\n NotificationProps as NotificationPropsNewHope,\n NotificationPlacement,\n notificationConfig,\n NotificationsProvider as Provider,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport type { NotificationPlacement };\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const NotificationNewHope = component(mergedConfig);\n\ntype ConfigProps = 'size' | 'view' | 'layout' | 'closeIconType';\ntype NotificationProps = Pick<ComponentProps<typeof NotificationNewHope>, ConfigProps> &\n Omit<NotificationPropsNewHope, ConfigProps>;\n\nexport const Notification = NotificationNewHope as ForwardRefExoticComponent<NotificationProps>;\n\nexport const NotificationsProvider: React.FC<{\n children: ReactNode;\n frame?: string;\n placement?: NotificationPlacement;\n UNSAFE_SSR_ENABLED?: boolean;\n}> = ({ children, frame = 'document', placement, UNSAFE_SSR_ENABLED }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement} UNSAFE_SSR_ENABLED={UNSAFE_SSR_ENABLED}>\n {children}\n </Provider>\n );\n};\n"],"names":["mergedConfig","mergeConfig","notificationConfig","config","NotificationNewHope","component","Notification","NotificationsProvider","_ref","children","_ref$frame","frame","placement","UNSAFE_SSR_ENABLED","React","createElement","Provider"],"mappings":";;;;;;;;;;;;AAcA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,gCAAkB,EAAEC,0BAAM,CAAC,CAAA;IAE/CC,mBAAmB,gBAAGC,uBAAS,CAACL,YAAY,EAAC;AAMnD,IAAMM,YAAY,GAAGF,oBAAmE;IAElFG,qBAKX,GAAG,SALQA,qBAKXA,CAAAC,IAAA,EAAwE;AAAA,EAAA,IAAlEC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,UAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,kBAAkB,GAAAL,IAAA,CAAlBK,kBAAkB,CAAA;AAC/D,EAAA,oBACIC,sBAAA,CAAAC,aAAA,CAACC,mCAAQ,EAAA;AAACb,IAAAA,MAAM,EAAEH,YAAa;AAACW,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAU;AAACC,IAAAA,kBAAkB,EAAEA,kBAAAA;AAAmB,GAAA,EACtGJ,QACK,CAAC,CAAA;AAEnB;;;;;;"}
@@ -1,2 +1,3 @@
1
- export { NotificationsProvider, Notification, addNotification, closeNotification } from './Notification';
2
- export type { NotificationIconPlacement, NotificationLayout, NotificationProps } from './Notification';
1
+ export { NotificationsProvider, Notification } from './Notification';
2
+ export { addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
3
+ export type { NotificationProps, NotificationLayout, NotificationIconPlacement, } from '@salutejs/plasma-new-hope/styled-components';
@@ -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");
@@ -3,32 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.NotificationsProvider = exports.Notification = void 0;
7
- Object.defineProperty(exports, "addNotification", {
8
- enumerable: true,
9
- get: function get() {
10
- return _emotion.addNotification;
11
- }
12
- });
13
- Object.defineProperty(exports, "closeNotification", {
14
- enumerable: true,
15
- get: function get() {
16
- return _emotion.closeNotification;
17
- }
18
- });
19
- Object.defineProperty(exports, "modalClasses", {
20
- enumerable: true,
21
- get: function get() {
22
- return _Modal.modalClasses;
23
- }
24
- });
6
+ exports.NotificationsProvider = exports.NotificationNewHope = exports.Notification = void 0;
25
7
  var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
26
8
  var _emotion = /*#__PURE__*/require("@salutejs/plasma-new-hope/emotion");
27
9
  var _Notification = /*#__PURE__*/require("./Notification.config");
28
- var _Modal = /*#__PURE__*/require("../Modal");
29
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
30
11
  var mergedConfig = /*#__PURE__*/(0, _emotion.mergeConfig)(_emotion.notificationConfig, _Notification.config);
31
- var Notification = exports.Notification = /*#__PURE__*/(0, _emotion.component)(mergedConfig);
12
+ var NotificationNewHope = exports.NotificationNewHope = /*#__PURE__*/(0, _emotion.component)(mergedConfig);
13
+ var Notification = exports.Notification = NotificationNewHope;
32
14
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
33
15
  var children = _ref.children,
34
16
  _ref$frame = _ref.frame,
@@ -4,19 +4,14 @@ import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { IconDisclosureRight } from '@salutejs/plasma-icons';
5
5
  import { InSpacingDecorator } from '@salutejs/plasma-sb-utils';
6
6
  import { action } from '@storybook/addon-actions';
7
+ import { addNotification } from '@salutejs/plasma-new-hope';
8
+ import type { NotificationIconPlacement, NotificationLayout } from '@salutejs/plasma-new-hope';
7
9
 
8
10
  import { Button } from '../Button/Button';
9
11
  import { Modal } from '../Modal/Modal';
10
12
  import { PopupProvider } from '../Popup';
11
13
 
12
- import {
13
- Notification,
14
- NotificationsProvider,
15
- NotificationPlacement,
16
- NotificationIconPlacement,
17
- NotificationLayout,
18
- addNotification,
19
- } from './Notification';
14
+ import { Notification, NotificationsProvider, NotificationPlacement } from './Notification';
20
15
 
21
16
  const titles = ['Выполнено', 'Внимание', 'Ошибка'];
22
17
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
@@ -18,13 +18,14 @@ Object.defineProperty(exports, "NotificationsProvider", {
18
18
  Object.defineProperty(exports, "addNotification", {
19
19
  enumerable: true,
20
20
  get: function get() {
21
- return _Notification.addNotification;
21
+ return _emotion.addNotification;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "closeNotification", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _Notification.closeNotification;
27
+ return _emotion.closeNotification;
28
28
  }
29
29
  });
30
- var _Notification = /*#__PURE__*/require("./Notification");
30
+ var _Notification = /*#__PURE__*/require("./Notification");
31
+ var _emotion = /*#__PURE__*/require("@salutejs/plasma-new-hope/emotion");
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ export { CarouselItem } from '@salutejs/plasma-new-hope/emotion';
2
+ export { Carousel } from './Carousel';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { component, mergeConfig, notificationConfig, NotificationsProvider as Provider, addNotification, closeNotification } from '@salutejs/plasma-new-hope/emotion';
2
+ import { notificationConfig, NotificationsProvider as Provider, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
3
3
  import { config } from './Notification.config';
4
- export { modalClasses } from '../Modal';
5
4
  var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
6
- export var Notification = /*#__PURE__*/component(mergedConfig);
5
+ export var NotificationNewHope = /*#__PURE__*/component(mergedConfig);
6
+ export var Notification = NotificationNewHope;
7
7
  export var NotificationsProvider = function NotificationsProvider(_ref) {
8
8
  var children = _ref.children,
9
9
  _ref$frame = _ref.frame,
@@ -16,5 +16,4 @@ export var NotificationsProvider = function NotificationsProvider(_ref) {
16
16
  placement: placement,
17
17
  UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
18
18
  }, children);
19
- };
20
- export { addNotification, closeNotification };
19
+ };
@@ -4,19 +4,14 @@ import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { IconDisclosureRight } from '@salutejs/plasma-icons';
5
5
  import { InSpacingDecorator } from '@salutejs/plasma-sb-utils';
6
6
  import { action } from '@storybook/addon-actions';
7
+ import { addNotification } from '@salutejs/plasma-new-hope';
8
+ import type { NotificationIconPlacement, NotificationLayout } from '@salutejs/plasma-new-hope';
7
9
 
8
10
  import { Button } from '../Button/Button';
9
11
  import { Modal } from '../Modal/Modal';
10
12
  import { PopupProvider } from '../Popup';
11
13
 
12
- import {
13
- Notification,
14
- NotificationsProvider,
15
- NotificationPlacement,
16
- NotificationIconPlacement,
17
- NotificationLayout,
18
- addNotification,
19
- } from './Notification';
14
+ import { Notification, NotificationsProvider, NotificationPlacement } from './Notification';
20
15
 
21
16
  const titles = ['Выполнено', 'Внимание', 'Ошибка'];
22
17
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
@@ -1 +1,2 @@
1
- export { NotificationsProvider, Notification, addNotification, closeNotification } from './Notification';
1
+ export { NotificationsProvider, Notification } from './Notification';
2
+ export { addNotification, closeNotification } from '@salutejs/plasma-new-hope/emotion';
@@ -67,5 +67,6 @@ export * from './components/NumberFormat';
67
67
  export * from './components/Table';
68
68
  export * from './components/CodeField';
69
69
  export * from './components/List';
70
+ export * from './components/Carousel';
70
71
  export * from './mixins';
71
72
  export * from './tokens';
@@ -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,2 @@
1
+ .dv63qpm{--plasma-carousel-pagination-dot-background:var(--surface-transparent-tertiary);--plasma-carousel-pagination-dot-active-background:var(--surface-solid-default);}
2
+
@@ -0,0 +1,2 @@
1
+ .Carousel_config_1r461vi_dv63qpm__2a4ae68a{--plasma-carousel-pagination-dot-background:var(--surface-transparent-tertiary);--plasma-carousel-pagination-dot-active-background:var(--surface-solid-default);}
2
+
@@ -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;;;;"}
@@ -8,5 +8,3 @@
8
8
  .Notification_config_132q76f_djsygjg__1e3f7ddc{--plasma-notification-close-icon-button-size:1.5rem;--plasma-notification-close-icon-size:1.5rem;}
9
9
  .Notification_config_132q76f_x5jqj9y__1e3f7ddc{--plasma-notification-close-icon-top:0.5rem;--plasma-notification-close-icon-right:0.5rem;--plasma-notification-padding:0.375rem;--plasma-notification-textbox-padding-top-with-top-icon:0rem;--plasma-notification-content-padding-top:0.125rem;--plasma-notification-content-padding-right:0.25rem;--plasma-notification-content-padding-bottom:0rem;--plasma-notification-content-padding-left:0.25rem;--plasma-notification-buttons-margin-left:0rem;}
10
10
  .Notification_config_132q76f_x1e2dde6__1e3f7ddc{--plasma-notification-close-icon-top:0.8125rem;--plasma-notification-close-icon-right:1rem;--plasma-notification-padding:0.5625rem 1rem 1rem 1rem;--plasma-notification-textbox-padding-top-with-top-icon:0.1875rem;--plasma-notification-content-padding-top:0.25rem;--plasma-notification-content-padding-right:0rem;--plasma-notification-content-padding-bottom:0rem;--plasma-notification-content-padding-left:0rem;--plasma-notification-buttons-margin-left:2rem;}
11
-
12
- .Modal_config_1c34cg3_d142ug3n__b666ae01{--plasma-modal-overlay-with-blur-color:rgba(35,35,35,0.2);--plasma-modal-overlay-color:var(--overlay-soft);--plasma-modal-body-background:var(--surface-solid-card);--plasma-modal-body-border-radius:1.25rem;--plasma-modal-body-padding:2rem;--plasma-modal-content-padding:0.625rem;--plasma-modal-close-button-radius:0.375rem;--plasma-modal-close-button-color:var(--text-secondary);--plasma-modal-close-button-hover-color:var(--text-secondary-hover);--plasma-modal-close-button-active-color:var(--text-secondary-active);--plasma-modal-outline-focus-color:var(--surface-accent);}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { component, NotificationsProvider as NotificationsProvider$1, mergeConfig, notificationConfig } from '@salutejs/plasma-new-hope';
3
- export { addNotification, closeNotification, modalClasses } from '@salutejs/plasma-new-hope';
2
+ import { NotificationsProvider as NotificationsProvider$1, mergeConfig, notificationConfig, component } from '@salutejs/plasma-new-hope';
4
3
  import { config } from './Notification.config.js';
5
4
 
6
5
  var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
7
- var Notification = /*#__PURE__*/component(mergedConfig);
6
+ var NotificationNewHope = /*#__PURE__*/component(mergedConfig);
7
+ var Notification = NotificationNewHope;
8
8
  var NotificationsProvider = function NotificationsProvider(_ref) {
9
9
  var children = _ref.children,
10
10
  _ref$frame = _ref.frame,
@@ -19,5 +19,5 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
19
19
  }, children);
20
20
  };
21
21
 
22
- export { Notification, NotificationsProvider };
22
+ export { Notification, NotificationNewHope, NotificationsProvider };
23
23
  //# sourceMappingURL=Notification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","sources":["../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport {\n component,\n mergeConfig,\n notificationConfig,\n NotificationProps,\n NotificationsProvider as Provider,\n NotificationIconPlacement,\n NotificationPlacement,\n NotificationLayout,\n addNotification,\n closeNotification,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport { modalClasses } from '../Modal';\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const Notification = component(mergedConfig);\n\nexport const NotificationsProvider: React.FC<{\n children: ReactNode;\n frame?: string;\n placement?: NotificationPlacement;\n UNSAFE_SSR_ENABLED?: boolean;\n}> = ({ children, frame = 'document', placement, UNSAFE_SSR_ENABLED }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement} UNSAFE_SSR_ENABLED={UNSAFE_SSR_ENABLED}>\n {children}\n </Provider>\n );\n};\n\nexport type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };\nexport { addNotification, closeNotification };\n"],"names":["mergedConfig","mergeConfig","notificationConfig","config","Notification","component","NotificationsProvider","_ref","children","_ref$frame","frame","placement","UNSAFE_SSR_ENABLED","React","createElement","Provider"],"mappings":";;;;;AAkBA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,kBAAkB,EAAEC,MAAM,CAAC,CAAA;IAE/CC,YAAY,gBAAGC,SAAS,CAACL,YAAY,EAAC;IAEtCM,qBAKX,GAAG,SALQA,qBAKXA,CAAAC,IAAA,EAAwE;AAAA,EAAA,IAAlEC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,UAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,kBAAkB,GAAAL,IAAA,CAAlBK,kBAAkB,CAAA;AAC/D,EAAA,oBACIC,KAAA,CAAAC,aAAA,CAACC,uBAAQ,EAAA;AAACZ,IAAAA,MAAM,EAAEH,YAAa;AAACU,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAU;AAACC,IAAAA,kBAAkB,EAAEA,kBAAAA;AAAmB,GAAA,EACtGJ,QACK,CAAC,CAAA;AAEnB;;;;"}
1
+ {"version":3,"file":"Notification.js","sources":["../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';\nimport {\n NotificationProps as NotificationPropsNewHope,\n NotificationPlacement,\n notificationConfig,\n NotificationsProvider as Provider,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport type { NotificationPlacement };\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const NotificationNewHope = component(mergedConfig);\n\ntype ConfigProps = 'size' | 'view' | 'layout' | 'closeIconType';\ntype NotificationProps = Pick<ComponentProps<typeof NotificationNewHope>, ConfigProps> &\n Omit<NotificationPropsNewHope, ConfigProps>;\n\nexport const Notification = NotificationNewHope as ForwardRefExoticComponent<NotificationProps>;\n\nexport const NotificationsProvider: React.FC<{\n children: ReactNode;\n frame?: string;\n placement?: NotificationPlacement;\n UNSAFE_SSR_ENABLED?: boolean;\n}> = ({ children, frame = 'document', placement, UNSAFE_SSR_ENABLED }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement} UNSAFE_SSR_ENABLED={UNSAFE_SSR_ENABLED}>\n {children}\n </Provider>\n );\n};\n"],"names":["mergedConfig","mergeConfig","notificationConfig","config","NotificationNewHope","component","Notification","NotificationsProvider","_ref","children","_ref$frame","frame","placement","UNSAFE_SSR_ENABLED","React","createElement","Provider"],"mappings":";;;;AAcA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,kBAAkB,EAAEC,MAAM,CAAC,CAAA;IAE/CC,mBAAmB,gBAAGC,SAAS,CAACL,YAAY,EAAC;AAMnD,IAAMM,YAAY,GAAGF,oBAAmE;IAElFG,qBAKX,GAAG,SALQA,qBAKXA,CAAAC,IAAA,EAAwE;AAAA,EAAA,IAAlEC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,UAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,kBAAkB,GAAAL,IAAA,CAAlBK,kBAAkB,CAAA;AAC/D,EAAA,oBACIC,KAAA,CAAAC,aAAA,CAACC,uBAAQ,EAAA;AAACb,IAAAA,MAAM,EAAEH,YAAa;AAACW,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAU;AAACC,IAAAA,kBAAkB,EAAEA,kBAAAA;AAAmB,GAAA,EACtGJ,QACK,CAAC,CAAA;AAEnB;;;;"}
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
@@ -67,5 +67,6 @@ export * from './components/NumberFormat';
67
67
  export * from './components/Table';
68
68
  export * from './components/CodeField';
69
69
  export * from './components/List';
70
+ export * from './components/Carousel';
70
71
  export * from './mixins';
71
72
  export * from './tokens';
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.313.0-canary.2016.15553329485.0",
3
+ "version": "0.313.0-dev.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.326.0-canary.2016.15553329485.0",
36
- "@salutejs/sdds-themes": "0.38.0-canary.2016.15553329485.0"
35
+ "@salutejs/plasma-new-hope": "0.326.0-dev.0",
36
+ "@salutejs/sdds-themes": "0.38.0-dev.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.198.0-canary.2016.15553329485.0",
67
- "@salutejs/plasma-cy-utils": "0.129.0-canary.2016.15553329485.0",
66
+ "@salutejs/plasma-core": "1.198.0-dev.0",
67
+ "@salutejs/plasma-cy-utils": "0.129.0-dev.0",
68
68
  "@salutejs/plasma-icons": "1.218.0",
69
- "@salutejs/plasma-sb-utils": "0.199.0-canary.2016.15553329485.0",
69
+ "@salutejs/plasma-sb-utils": "0.199.0-dev.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": "c78373876f8c65b9f297fa93b5c552d6bf7a478e"
140
+ "gitHead": "9a5b37006a4b06460d4f83bc2f17f38b3d33fea9"
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");
@@ -3,32 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.NotificationsProvider = exports.Notification = void 0;
7
- Object.defineProperty(exports, "addNotification", {
8
- enumerable: true,
9
- get: function get() {
10
- return _styledComponents.addNotification;
11
- }
12
- });
13
- Object.defineProperty(exports, "closeNotification", {
14
- enumerable: true,
15
- get: function get() {
16
- return _styledComponents.closeNotification;
17
- }
18
- });
19
- Object.defineProperty(exports, "modalClasses", {
20
- enumerable: true,
21
- get: function get() {
22
- return _Modal.modalClasses;
23
- }
24
- });
6
+ exports.NotificationsProvider = exports.NotificationNewHope = exports.Notification = void 0;
25
7
  var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
26
8
  var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
27
9
  var _Notification = /*#__PURE__*/require("./Notification.config");
28
- var _Modal = /*#__PURE__*/require("../Modal");
29
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
30
11
  var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.notificationConfig, _Notification.config);
31
- var Notification = exports.Notification = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
12
+ var NotificationNewHope = exports.NotificationNewHope = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
13
+ var Notification = exports.Notification = NotificationNewHope;
32
14
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
33
15
  var children = _ref.children,
34
16
  _ref$frame = _ref.frame,
@@ -18,13 +18,14 @@ Object.defineProperty(exports, "NotificationsProvider", {
18
18
  Object.defineProperty(exports, "addNotification", {
19
19
  enumerable: true,
20
20
  get: function get() {
21
- return _Notification.addNotification;
21
+ return _styledComponents.addNotification;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "closeNotification", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _Notification.closeNotification;
27
+ return _styledComponents.closeNotification;
28
28
  }
29
29
  });
30
- var _Notification = /*#__PURE__*/require("./Notification");
30
+ var _Notification = /*#__PURE__*/require("./Notification");
31
+ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
@@ -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 };
@@ -0,0 +1,2 @@
1
+ export { CarouselItem } from '@salutejs/plasma-new-hope/styled-components';
2
+ export { Carousel } from './Carousel';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { component, mergeConfig, notificationConfig, NotificationsProvider as Provider, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
2
+ import { notificationConfig, NotificationsProvider as Provider, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
3
3
  import { config } from './Notification.config';
4
- export { modalClasses } from '../Modal';
5
4
  var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
6
- export var Notification = /*#__PURE__*/component(mergedConfig);
5
+ export var NotificationNewHope = /*#__PURE__*/component(mergedConfig);
6
+ export var Notification = NotificationNewHope;
7
7
  export var NotificationsProvider = function NotificationsProvider(_ref) {
8
8
  var children = _ref.children,
9
9
  _ref$frame = _ref.frame,
@@ -16,5 +16,4 @@ export var NotificationsProvider = function NotificationsProvider(_ref) {
16
16
  placement: placement,
17
17
  UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
18
18
  }, children);
19
- };
20
- export { addNotification, closeNotification };
19
+ };
@@ -1 +1,2 @@
1
- export { NotificationsProvider, Notification, addNotification, closeNotification } from './Notification';
1
+ export { NotificationsProvider, Notification } from './Notification';
2
+ export { addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
@@ -67,5 +67,6 @@ export * from './components/NumberFormat';
67
67
  export * from './components/Table';
68
68
  export * from './components/CodeField';
69
69
  export * from './components/List';
70
+ export * from './components/Carousel';
70
71
  export * from './mixins';
71
72
  export * from './tokens';