@salutejs/plasma-web 1.584.0-canary.2016.15553329485.0 → 1.584.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.
- package/components/Carousel/Carousel.config.d.ts +14 -0
- package/components/Carousel/Carousel.config.js +23 -0
- package/components/Carousel/Carousel.d.ts +19 -4
- package/components/Carousel/Carousel.js +18 -3
- package/components/Carousel/Legacy/Carousel.d.ts +4 -0
- package/components/Carousel/{Carousel.examples.d.ts → Legacy/Carousel.examples.d.ts} +1 -1
- package/components/Carousel/{Carousel.examples.js → Legacy/Carousel.examples.js} +5 -5
- package/components/Carousel/Legacy/Carousel.js +10 -0
- package/components/Carousel/index.d.ts +2 -3
- package/components/Notification/Notification.d.ts +6 -3
- package/components/Notification/Notification.js +3 -2
- package/components/Notification/index.d.ts +1 -1
- package/css/cjs/components/Carousel/Carousel.config.js +22 -0
- package/css/cjs/components/Carousel/Carousel.config.js.map +1 -0
- package/css/cjs/components/Carousel/Carousel.config_1r461vi.css +2 -0
- package/css/cjs/components/Carousel/Carousel.css +2 -0
- package/css/cjs/components/Carousel/Carousel.js +21 -3
- package/css/cjs/components/Carousel/Carousel.js.map +1 -1
- package/css/cjs/components/Carousel/Legacy/Carousel.js +12 -0
- package/css/cjs/components/Carousel/Legacy/Carousel.js.map +1 -0
- package/css/cjs/components/Notification/Notification.js +3 -1
- package/css/cjs/components/Notification/Notification.js.map +1 -1
- package/css/cjs/index.css +3 -0
- package/css/es/components/Carousel/Carousel.config.js +18 -0
- package/css/es/components/Carousel/Carousel.config.js.map +1 -0
- package/css/es/components/Carousel/Carousel.config_1r461vi.css +2 -0
- package/css/es/components/Carousel/Carousel.css +2 -0
- package/css/es/components/Carousel/Carousel.js +18 -4
- package/css/es/components/Carousel/Carousel.js.map +1 -1
- package/css/es/components/Carousel/Legacy/Carousel.js +8 -0
- package/css/es/components/Carousel/Legacy/Carousel.js.map +1 -0
- package/css/es/components/Notification/Notification.js +4 -3
- package/css/es/components/Notification/Notification.js.map +1 -1
- package/css/es/index.css +3 -0
- package/es/components/Carousel/Carousel.config.js +17 -0
- package/es/components/Carousel/Carousel.js +19 -4
- package/es/components/Carousel/{Carousel.examples.js → Legacy/Carousel.examples.js} +5 -5
- package/es/components/Carousel/Legacy/Carousel.js +4 -0
- package/es/components/Carousel/index.js +2 -2
- package/es/components/Notification/Notification.js +2 -1
- package/package.json +11 -11
@@ -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,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
|
+
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import type { ComponentProps } from 'react';
|
2
|
+
import React from 'react';
|
3
|
+
import { CarouselOld } from './Legacy/Carousel';
|
4
|
+
declare const CarouselNew: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
5
|
+
view: {
|
6
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
|
+
};
|
8
|
+
size: {
|
9
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
10
|
+
};
|
11
|
+
}> & import("@salutejs/plasma-new-hope/styled-components").CarouselNewProps & React.RefAttributes<HTMLDivElement>>;
|
12
|
+
type PropsOld = ComponentProps<typeof CarouselOld>;
|
13
|
+
type PropsNew = ComponentProps<typeof CarouselNew> & {
|
14
|
+
index?: never;
|
15
|
+
};
|
16
|
+
type CarouselProps = PropsOld | PropsNew;
|
17
|
+
declare const Carousel: (props: CarouselProps & React.RefAttributes<HTMLInputElement>) => React.ReactElement | null;
|
18
|
+
export { Carousel };
|
19
|
+
export type { CarouselProps };
|
@@ -5,6 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.Carousel = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
-
var
|
9
|
-
var
|
10
|
-
var
|
8
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
9
|
+
var _Carousel = /*#__PURE__*/require("./Legacy/Carousel");
|
10
|
+
var _Carousel2 = /*#__PURE__*/require("./Carousel.config");
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
13
|
+
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.carouselNewConfig, _Carousel2.config);
|
14
|
+
var CarouselNew = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
15
|
+
var CarouselComponent = function CarouselComponent(props, ref) {
|
16
|
+
if (typeof props.index === 'number' && !Number.isNaN(props.index)) {
|
17
|
+
return /*#__PURE__*/_react["default"].createElement(_Carousel.CarouselOld, _extends({
|
18
|
+
ref: ref
|
19
|
+
}, props));
|
20
|
+
}
|
21
|
+
return /*#__PURE__*/_react["default"].createElement(CarouselNew, _extends({
|
22
|
+
ref: ref
|
23
|
+
}, props));
|
24
|
+
};
|
25
|
+
var Carousel = exports.Carousel = /*#__PURE__*/(0, _styledComponents.fixedForwardRef)(CarouselComponent);
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export declare const CarouselOld: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<import("@salutejs/plasma-new-hope/types/engines/types").Variants> & Omit<import("@salutejs/plasma-new-hope/types/components/Carousel/CarouselOld/Carousel.types").BasicProps & (import("@salutejs/plasma-new-hope/types/components/Carousel/CarouselOld/Carousel.types").DetectionProps | import("@salutejs/plasma-new-hope/types/components/Carousel/CarouselOld/Carousel.types").NoDetectionProps), "axis" | "animatedScrollByIndex" | "throttleMs" | "debounceMs"> & {
|
2
|
+
ariaLive?: "off" | "polite";
|
3
|
+
isDragScrollDisabled?: boolean;
|
4
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -6,21 +6,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.CarouselCard = void 0;
|
7
7
|
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
8
|
var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
|
9
|
-
var _mixins = /*#__PURE__*/require("
|
10
|
-
var _Image = /*#__PURE__*/require("
|
11
|
-
var _Typography = /*#__PURE__*/require("
|
9
|
+
var _mixins = /*#__PURE__*/require("../../../mixins");
|
10
|
+
var _Image = /*#__PURE__*/require("../../Image");
|
11
|
+
var _Typography = /*#__PURE__*/require("../../Typography");
|
12
12
|
var _excluded = ["title", "subtitle", "imageSrc", "imageAlt", "imageBase"];
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
14
14
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
15
15
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
16
16
|
var StyledCard = /*#__PURE__*/_styledComponents["default"].a.withConfig({
|
17
|
-
componentId: "plasma-web__sc-
|
17
|
+
componentId: "plasma-web__sc-18zpu6x-0"
|
18
18
|
})(["display:flex;position:relative;border-radius:1rem;", ""], /*#__PURE__*/(0, _mixins.addFocus)({
|
19
19
|
outlined: true,
|
20
20
|
outlineRadius: '1.125rem'
|
21
21
|
}));
|
22
22
|
var StyledCardContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
23
|
-
componentId: "plasma-web__sc-
|
23
|
+
componentId: "plasma-web__sc-18zpu6x-1"
|
24
24
|
})(["position:absolute;left:0;right:0;bottom:0;padding:1.72rem;color:#fff;"]);
|
25
25
|
|
26
26
|
/**
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.CarouselOld = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.carouselConfig);
|
9
|
+
var CarouselComponent = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
10
|
+
var CarouselOld = exports.CarouselOld = CarouselComponent;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
export { CarouselGridWrapper } from '@salutejs/plasma-new-hope/styled-components';
|
2
|
-
export type { CarouselProps } from '@salutejs/plasma-new-hope';
|
3
|
-
export { Carousel } from './Carousel';
|
4
2
|
export { CarouselItem } from '@salutejs/plasma-new-hope/styled-components';
|
5
|
-
export
|
3
|
+
export { Carousel } from './Carousel';
|
4
|
+
export type { CarouselProps } from './Carousel';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import React, { ReactNode } from 'react';
|
2
|
-
import { NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
1
|
+
import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';
|
2
|
+
import { NotificationProps as NotificationPropsNewHope, NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
3
3
|
export type { NotificationPlacement };
|
4
|
-
export declare const
|
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,6 +21,9 @@ 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;
|
@@ -3,13 +3,14 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.NotificationsProvider = exports.Notification = void 0;
|
6
|
+
exports.NotificationsProvider = exports.NotificationNewHope = exports.Notification = void 0;
|
7
7
|
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
8
|
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
9
9
|
var _Notification = /*#__PURE__*/require("./Notification.config");
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
11
|
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.notificationConfig, _Notification.config);
|
12
|
-
var
|
12
|
+
var NotificationNewHope = exports.NotificationNewHope = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
13
|
+
var Notification = exports.Notification = NotificationNewHope;
|
13
14
|
var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
|
14
15
|
var children = _ref.children,
|
15
16
|
_ref$frame = _ref.frame,
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { NotificationsProvider, Notification } from './Notification';
|
2
2
|
export { addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
|
3
|
-
export type { NotificationProps, NotificationLayout, NotificationIconPlacement, } from '@salutejs/plasma-new-hope/styled-components';
|
3
|
+
export type { NotificationProps, NotificationLayout, NotificationPlacement, NotificationIconPlacement, } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -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;;;;"}
|
@@ -2,11 +2,29 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
5
6
|
var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
7
|
+
var React = require('react');
|
8
|
+
var Carousel$1 = require('./Legacy/Carousel.js');
|
9
|
+
var Carousel_config = require('./Carousel.config.js');
|
6
10
|
|
7
|
-
|
8
|
-
|
9
|
-
var
|
11
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
12
|
+
|
13
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
14
|
+
|
15
|
+
var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.carouselNewConfig, Carousel_config.config);
|
16
|
+
var CarouselNew = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
17
|
+
var CarouselComponent = function CarouselComponent(props, ref) {
|
18
|
+
if (typeof props.index === 'number' && !Number.isNaN(props.index)) {
|
19
|
+
return /*#__PURE__*/React__default.default.createElement(Carousel$1.CarouselOld, _rollupPluginBabelHelpers.extends({
|
20
|
+
ref: ref
|
21
|
+
}, props));
|
22
|
+
}
|
23
|
+
return /*#__PURE__*/React__default.default.createElement(CarouselNew, _rollupPluginBabelHelpers.extends({
|
24
|
+
ref: ref
|
25
|
+
}, props));
|
26
|
+
};
|
27
|
+
var Carousel = /*#__PURE__*/plasmaNewHope.fixedForwardRef(CarouselComponent);
|
10
28
|
|
11
29
|
exports.Carousel = Carousel;
|
12
30
|
//# sourceMappingURL=Carousel.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Carousel.js","sources":["../../../../src-css/components/Carousel/Carousel.tsx"],"sourcesContent":["import {
|
1
|
+
{"version":3,"file":"Carousel.js","sources":["../../../../src-css/components/Carousel/Carousel.tsx"],"sourcesContent":["import {\n carouselNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ComponentProps } from 'react';\nimport React from 'react';\n\nimport { CarouselOld } from './Legacy/Carousel';\nimport { config } from './Carousel.config';\n\nconst mergedConfig = mergeConfig(carouselNewConfig, config);\nconst CarouselNew = component(mergedConfig);\n\ntype PropsOld = ComponentProps<typeof CarouselOld>;\n\ntype PropsNew = ComponentProps<typeof CarouselNew> & { index?: never };\n\ntype CarouselProps = PropsOld | PropsNew;\n\nconst CarouselComponent = (props: CarouselProps, ref: React.ForwardedRef<HTMLInputElement>) => {\n if (typeof props.index === 'number' && !Number.isNaN(props.index)) {\n return <CarouselOld ref={ref} {...props} />;\n }\n\n return <CarouselNew ref={ref} {...props} />;\n};\n\nconst Carousel = fixedForwardRef(CarouselComponent);\n\nexport { Carousel };\nexport type { CarouselProps };\n"],"names":["mergedConfig","mergeConfig","carouselNewConfig","config","CarouselNew","component","CarouselComponent","props","ref","index","Number","isNaN","React","createElement","CarouselOld","_extends","Carousel","fixedForwardRef"],"mappings":";;;;;;;;;;;;;;AAYA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,sBAAM,CAAC,CAAA;AAC3D,IAAMC,WAAW,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAQ3C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,KAAoB,EAAEC,GAAyC,EAAK;AAC3F,EAAA,IAAI,OAAOD,KAAK,CAACE,KAAK,KAAK,QAAQ,IAAI,CAACC,MAAM,CAACC,KAAK,CAACJ,KAAK,CAACE,KAAK,CAAC,EAAE;AAC/D,IAAA,oBAAOG,sBAAA,CAAAC,aAAA,CAACC,sBAAW,EAAAC,iCAAA,CAAA;AAACP,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,GAAA;AAEA,EAAA,oBAAOK,sBAAA,CAAAC,aAAA,CAACT,WAAW,EAAAW,iCAAA,CAAA;AAACP,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;AAED,IAAMS,QAAQ,gBAAGC,6BAAe,CAACX,iBAAiB;;;;"}
|
@@ -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
|
+
|
7
|
+
var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.carouselConfig);
|
8
|
+
var CarouselComponent = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
9
|
+
var CarouselOld = CarouselComponent;
|
10
|
+
|
11
|
+
exports.CarouselOld = CarouselOld;
|
12
|
+
//# sourceMappingURL=Carousel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Carousel.js","sources":["../../../../../src-css/components/Carousel/Legacy/Carousel.tsx"],"sourcesContent":["import { carouselConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nconst mergedConfig = mergeConfig(carouselConfig);\nconst CarouselComponent = component(mergedConfig);\n\nexport const CarouselOld = CarouselComponent;\n"],"names":["mergedConfig","mergeConfig","carouselConfig","CarouselComponent","component","CarouselOld"],"mappings":";;;;;;AAEA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,4BAAc,CAAC,CAAA;AAChD,IAAMC,iBAAiB,gBAAGC,uBAAS,CAACJ,YAAY,CAAC,CAAA;AAE1C,IAAMK,WAAW,GAAGF;;;;"}
|
@@ -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
|
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,
|
@@ -27,5 +28,6 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
|
|
27
28
|
};
|
28
29
|
|
29
30
|
exports.Notification = Notification;
|
31
|
+
exports.NotificationNewHope = NotificationNewHope;
|
30
32
|
exports.NotificationsProvider = NotificationsProvider;
|
31
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 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
|
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;;;;;;"}
|
package/css/cjs/index.css
CHANGED
@@ -162,6 +162,9 @@
|
|
162
162
|
.CalendarDouble_config_ysgolw_sn1q98q__d157eba5{--plasma-calendar-container-width:37.063rem;--plasma-calendar-container-height:17rem;--plasma-calendar-years-padding:0.5rem 0.5rem 0 0.5rem;--plasma-calendar-year-item-border-radius:0.5rem;--plasma-calendar-year-font-family:var(--plasma-typo-body-s-font-family);--plasma-calendar-year-font-size:var(--plasma-typo-body-s-font-size);--plasma-calendar-year-font-style:var(--plasma-typo-body-s-font-style);--plasma-calendar-year-font-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-calendar-year-line-height:var(--plasma-typo-body-s-line-height);--plasma-calendar-year-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-calendar-year-selected-font-weight:var(--plasma-typo-body-s-bold-font-weight);--plasma-calendar-quarters-padding:0.5rem 0.5rem 0 0.5rem;--plasma-calendar-quarter-item-border-radius:0.5rem;--plasma-calendar-quarter-font-family:var(--plasma-typo-body-s-font-family);--plasma-calendar-quarter-font-size:var(--plasma-typo-body-s-font-size);--plasma-calendar-quarter-font-style:var(--plasma-typo-body-s-font-style);--plasma-calendar-quarter-font-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-calendar-quarter-line-height:var(--plasma-typo-body-s-line-height);--plasma-calendar-quarter-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-calendar-quarter-selected-font-weight:var(--plasma-typo-body-s-bold-font-weight);--plasma-calendar-months-padding:0.5rem 0.5rem 0 0.5rem;--plasma-calendar-month-item-border-radius:0.5rem;--plasma-calendar-month-font-family:var(--plasma-typo-body-s-font-family);--plasma-calendar-month-font-size:var(--plasma-typo-body-s-font-size);--plasma-calendar-month-font-style:var(--plasma-typo-body-s-font-style);--plasma-calendar-month-font-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-calendar-month-line-height:var(--plasma-typo-body-s-line-height);--plasma-calendar-month-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-calendar-month-selected-font-weight:var(--plasma-typo-body-s-bold-font-weight);--plasma-calendar-day-item-border-radius:0.5rem;--plasma-calendar-day-font-family:var(--plasma-typo-body-s-font-family);--plasma-calendar-day-font-size:var(--plasma-typo-body-s-font-size);--plasma-calendar-day-font-style:var(--plasma-typo-body-s-font-style);--plasma-calendar-day-font-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-calendar-day-line-height:var(--plasma-typo-body-s-line-height);--plasma-calendar-day-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-calendar-day-selected-font-weight:var(--plasma-typo-body-s-bold-font-weight);--plasma-calendar-current-item-border-width:0.063rem;--plasma-calendar-arrow-container-gap:0.5rem;--plasma-calendar-days-padding:0.5rem 0 0 0;--plasma-calendar-header-padding:0 0 0 0.5rem;--plasma-calendar-header-date-gap:0.25rem;--plasma-calendar-header-font-family:var(--plasma-typo-h4-font-family);--plasma-calendar-header-font-size:var(--plasma-typo-h4-font-size);--plasma-calendar-header-font-style:var(--plasma-typo-h4-font-style);--plasma-calendar-header-font-letter-spacing:var(--plasma-typo-h4-letter-spacing);--plasma-calendar-header-line-height:var(--plasma-typo-h4-line-height);--plasma-calendar-header-font-weight:var(--plasma-typo-h4-font-weight);--plasma-calendar-header-font-weight-bold:var(--plasma-typo-h4-bold-font-weight);--plasma-calendar-icon-button-height:2.5rem;--plasma-calendar-icon-button-width:2.5rem;--plasma-calendar-icon-button-padding:1rem;--plasma-calendar-icon-button-radius:0.625rem;}
|
163
163
|
.CalendarDouble_config_ysgolw_x1nri09h__d157eba5{--plasma-calendar-container-width:37.063rem;--plasma-calendar-container-height:15.5rem;--plasma-calendar-years-padding:0.375rem 0.25rem 0 0.25rem;--plasma-calendar-year-item-border-radius:0.375rem;--plasma-calendar-year-font-family:var(--plasma-typo-body-xs-font-family);--plasma-calendar-year-font-size:var(--plasma-typo-body-xs-font-size);--plasma-calendar-year-font-style:var(--plasma-typo-body-xs-font-style);--plasma-calendar-year-font-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-calendar-year-line-height:var(--plasma-typo-body-xs-line-height);--plasma-calendar-year-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-calendar-year-selected-font-weight:var(--plasma-typo-body-xs-bold-font-weight);--plasma-calendar-quarters-padding:0.375rem 0.25rem 0 0.25rem;--plasma-calendar-quarter-item-border-radius:0.375rem;--plasma-calendar-quarter-font-family:var(--plasma-typo-body-xs-font-family);--plasma-calendar-quarter-font-size:var(--plasma-typo-body-xs-font-size);--plasma-calendar-quarter-font-style:var(--plasma-typo-body-xs-font-style);--plasma-calendar-quarter-font-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-calendar-quarter-line-height:var(--plasma-typo-body-xs-line-height);--plasma-calendar-quarter-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-calendar-quarter-selected-font-weight:var(--plasma-typo-body-xs-bold-font-weight);--plasma-calendar-months-padding:0.375rem 0.25rem 0 0.25rem;--plasma-calendar-month-item-border-radius:0.375rem;--plasma-calendar-month-font-family:var(--plasma-typo-body-xs-font-family);--plasma-calendar-month-font-size:var(--plasma-typo-body-xs-font-size);--plasma-calendar-month-font-style:var(--plasma-typo-body-xs-font-style);--plasma-calendar-month-font-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-calendar-month-line-height:var(--plasma-typo-body-xs-line-height);--plasma-calendar-month-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-calendar-month-selected-font-weight:var(--plasma-typo-body-xs-bold-font-weight);--plasma-calendar-days-padding:0.375rem 0 0 0;--plasma-calendar-day-item-border-radius:0.375rem;--plasma-calendar-day-font-family:var(--plasma-typo-body-xs-font-family);--plasma-calendar-day-font-size:var(--plasma-typo-body-xs-font-size);--plasma-calendar-day-font-style:var(--plasma-typo-body-xs-font-style);--plasma-calendar-day-font-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-calendar-day-line-height:var(--plasma-typo-body-xs-line-height);--plasma-calendar-day-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-calendar-day-selected-font-weight:var(--plasma-typo-body-xs-bold-font-weight);--plasma-calendar-current-item-border-width:0.063rem;--plasma-calendar-arrow-container-gap:0;--plasma-calendar-header-padding:0 0 0 0.5rem;--plasma-calendar-header-date-gap:0.25rem;--plasma-calendar-header-font-family:var(--plasma-typo-h5-font-family);--plasma-calendar-header-font-size:var(--plasma-typo-h5-font-size);--plasma-calendar-header-font-style:var(--plasma-typo-h5-font-style);--plasma-calendar-header-font-letter-spacing:var(--plasma-typo-h5-letter-spacing);--plasma-calendar-header-line-height:var(--plasma-typo-h5-line-height);--plasma-calendar-header-font-weight:var(--plasma-typo-h5-font-weight);--plasma-calendar-header-font-weight-bold:var(--plasma-typo-h5-bold-font-weight);--plasma-calendar-icon-button-height:2rem;--plasma-calendar-icon-button-width:2rem;--plasma-calendar-icon-button-padding:0.75rem;--plasma-calendar-icon-button-radius:0.5rem;}
|
164
164
|
|
165
|
+
.Carousel_config_1r461vi_dv63qpm__2a4ae68a{--plasma-carousel-pagination-dot-background:var(--surface-transparent-tertiary);--plasma-carousel-pagination-dot-active-background:var(--surface-solid-default);}
|
166
|
+
|
167
|
+
|
165
168
|
.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;}
|
166
169
|
.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);}
|
167
170
|
.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);}
|
@@ -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;;;;"}
|
@@ -1,8 +1,22 @@
|
|
1
|
-
import {
|
1
|
+
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
2
|
+
import { fixedForwardRef, component, mergeConfig, carouselNewConfig } from '@salutejs/plasma-new-hope';
|
3
|
+
import React from 'react';
|
4
|
+
import { CarouselOld } from './Legacy/Carousel.js';
|
5
|
+
import { config } from './Carousel.config.js';
|
2
6
|
|
3
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(
|
4
|
-
var
|
5
|
-
var
|
7
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(carouselNewConfig, config);
|
8
|
+
var CarouselNew = /*#__PURE__*/component(mergedConfig);
|
9
|
+
var CarouselComponent = function CarouselComponent(props, ref) {
|
10
|
+
if (typeof props.index === 'number' && !Number.isNaN(props.index)) {
|
11
|
+
return /*#__PURE__*/React.createElement(CarouselOld, _extends({
|
12
|
+
ref: ref
|
13
|
+
}, props));
|
14
|
+
}
|
15
|
+
return /*#__PURE__*/React.createElement(CarouselNew, _extends({
|
16
|
+
ref: ref
|
17
|
+
}, props));
|
18
|
+
};
|
19
|
+
var Carousel = /*#__PURE__*/fixedForwardRef(CarouselComponent);
|
6
20
|
|
7
21
|
export { Carousel };
|
8
22
|
//# sourceMappingURL=Carousel.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Carousel.js","sources":["../../../../src-css/components/Carousel/Carousel.tsx"],"sourcesContent":["import {
|
1
|
+
{"version":3,"file":"Carousel.js","sources":["../../../../src-css/components/Carousel/Carousel.tsx"],"sourcesContent":["import {\n carouselNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ComponentProps } from 'react';\nimport React from 'react';\n\nimport { CarouselOld } from './Legacy/Carousel';\nimport { config } from './Carousel.config';\n\nconst mergedConfig = mergeConfig(carouselNewConfig, config);\nconst CarouselNew = component(mergedConfig);\n\ntype PropsOld = ComponentProps<typeof CarouselOld>;\n\ntype PropsNew = ComponentProps<typeof CarouselNew> & { index?: never };\n\ntype CarouselProps = PropsOld | PropsNew;\n\nconst CarouselComponent = (props: CarouselProps, ref: React.ForwardedRef<HTMLInputElement>) => {\n if (typeof props.index === 'number' && !Number.isNaN(props.index)) {\n return <CarouselOld ref={ref} {...props} />;\n }\n\n return <CarouselNew ref={ref} {...props} />;\n};\n\nconst Carousel = fixedForwardRef(CarouselComponent);\n\nexport { Carousel };\nexport type { CarouselProps };\n"],"names":["mergedConfig","mergeConfig","carouselNewConfig","config","CarouselNew","component","CarouselComponent","props","ref","index","Number","isNaN","React","createElement","CarouselOld","_extends","Carousel","fixedForwardRef"],"mappings":";;;;;;AAYA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,iBAAiB,EAAEC,MAAM,CAAC,CAAA;AAC3D,IAAMC,WAAW,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;AAQ3C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,KAAoB,EAAEC,GAAyC,EAAK;AAC3F,EAAA,IAAI,OAAOD,KAAK,CAACE,KAAK,KAAK,QAAQ,IAAI,CAACC,MAAM,CAACC,KAAK,CAACJ,KAAK,CAACE,KAAK,CAAC,EAAE;AAC/D,IAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACC,WAAW,EAAAC,QAAA,CAAA;AAACP,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,GAAA;AAEA,EAAA,oBAAOK,KAAA,CAAAC,aAAA,CAACT,WAAW,EAAAW,QAAA,CAAA;AAACP,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;AAED,IAAMS,QAAQ,gBAAGC,eAAe,CAACX,iBAAiB;;;;"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { component, mergeConfig, carouselConfig } from '@salutejs/plasma-new-hope';
|
2
|
+
|
3
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(carouselConfig);
|
4
|
+
var CarouselComponent = /*#__PURE__*/component(mergedConfig);
|
5
|
+
var CarouselOld = CarouselComponent;
|
6
|
+
|
7
|
+
export { CarouselOld };
|
8
|
+
//# sourceMappingURL=Carousel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Carousel.js","sources":["../../../../../src-css/components/Carousel/Legacy/Carousel.tsx"],"sourcesContent":["import { carouselConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nconst mergedConfig = mergeConfig(carouselConfig);\nconst CarouselComponent = component(mergedConfig);\n\nexport const CarouselOld = CarouselComponent;\n"],"names":["mergedConfig","mergeConfig","carouselConfig","CarouselComponent","component","CarouselOld"],"mappings":";;AAEA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,cAAc,CAAC,CAAA;AAChD,IAAMC,iBAAiB,gBAAGC,SAAS,CAACJ,YAAY,CAAC,CAAA;AAE1C,IAAMK,WAAW,GAAGF;;;;"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
2
|
+
import { NotificationsProvider as NotificationsProvider$1, mergeConfig, notificationConfig, component } from '@salutejs/plasma-new-hope';
|
3
3
|
import { config } from './Notification.config.js';
|
4
4
|
|
5
5
|
var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
|
6
|
-
var
|
6
|
+
var NotificationNewHope = /*#__PURE__*/component(mergedConfig);
|
7
|
+
var Notification = NotificationNewHope;
|
7
8
|
var NotificationsProvider = function NotificationsProvider(_ref) {
|
8
9
|
var children = _ref.children,
|
9
10
|
_ref$frame = _ref.frame,
|
@@ -18,5 +19,5 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
|
|
18
19
|
}, children);
|
19
20
|
};
|
20
21
|
|
21
|
-
export { Notification, NotificationsProvider };
|
22
|
+
export { Notification, NotificationNewHope, NotificationsProvider };
|
22
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 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
|
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/css/es/index.css
CHANGED
@@ -162,6 +162,9 @@
|
|
162
162
|
.CalendarDouble_config_ysgolw_sn1q98q__d157eba5{--plasma-calendar-container-width:37.063rem;--plasma-calendar-container-height:17rem;--plasma-calendar-years-padding:0.5rem 0.5rem 0 0.5rem;--plasma-calendar-year-item-border-radius:0.5rem;--plasma-calendar-year-font-family:var(--plasma-typo-body-s-font-family);--plasma-calendar-year-font-size:var(--plasma-typo-body-s-font-size);--plasma-calendar-year-font-style:var(--plasma-typo-body-s-font-style);--plasma-calendar-year-font-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-calendar-year-line-height:var(--plasma-typo-body-s-line-height);--plasma-calendar-year-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-calendar-year-selected-font-weight:var(--plasma-typo-body-s-bold-font-weight);--plasma-calendar-quarters-padding:0.5rem 0.5rem 0 0.5rem;--plasma-calendar-quarter-item-border-radius:0.5rem;--plasma-calendar-quarter-font-family:var(--plasma-typo-body-s-font-family);--plasma-calendar-quarter-font-size:var(--plasma-typo-body-s-font-size);--plasma-calendar-quarter-font-style:var(--plasma-typo-body-s-font-style);--plasma-calendar-quarter-font-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-calendar-quarter-line-height:var(--plasma-typo-body-s-line-height);--plasma-calendar-quarter-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-calendar-quarter-selected-font-weight:var(--plasma-typo-body-s-bold-font-weight);--plasma-calendar-months-padding:0.5rem 0.5rem 0 0.5rem;--plasma-calendar-month-item-border-radius:0.5rem;--plasma-calendar-month-font-family:var(--plasma-typo-body-s-font-family);--plasma-calendar-month-font-size:var(--plasma-typo-body-s-font-size);--plasma-calendar-month-font-style:var(--plasma-typo-body-s-font-style);--plasma-calendar-month-font-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-calendar-month-line-height:var(--plasma-typo-body-s-line-height);--plasma-calendar-month-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-calendar-month-selected-font-weight:var(--plasma-typo-body-s-bold-font-weight);--plasma-calendar-day-item-border-radius:0.5rem;--plasma-calendar-day-font-family:var(--plasma-typo-body-s-font-family);--plasma-calendar-day-font-size:var(--plasma-typo-body-s-font-size);--plasma-calendar-day-font-style:var(--plasma-typo-body-s-font-style);--plasma-calendar-day-font-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-calendar-day-line-height:var(--plasma-typo-body-s-line-height);--plasma-calendar-day-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-calendar-day-selected-font-weight:var(--plasma-typo-body-s-bold-font-weight);--plasma-calendar-current-item-border-width:0.063rem;--plasma-calendar-arrow-container-gap:0.5rem;--plasma-calendar-days-padding:0.5rem 0 0 0;--plasma-calendar-header-padding:0 0 0 0.5rem;--plasma-calendar-header-date-gap:0.25rem;--plasma-calendar-header-font-family:var(--plasma-typo-h4-font-family);--plasma-calendar-header-font-size:var(--plasma-typo-h4-font-size);--plasma-calendar-header-font-style:var(--plasma-typo-h4-font-style);--plasma-calendar-header-font-letter-spacing:var(--plasma-typo-h4-letter-spacing);--plasma-calendar-header-line-height:var(--plasma-typo-h4-line-height);--plasma-calendar-header-font-weight:var(--plasma-typo-h4-font-weight);--plasma-calendar-header-font-weight-bold:var(--plasma-typo-h4-bold-font-weight);--plasma-calendar-icon-button-height:2.5rem;--plasma-calendar-icon-button-width:2.5rem;--plasma-calendar-icon-button-padding:1rem;--plasma-calendar-icon-button-radius:0.625rem;}
|
163
163
|
.CalendarDouble_config_ysgolw_x1nri09h__d157eba5{--plasma-calendar-container-width:37.063rem;--plasma-calendar-container-height:15.5rem;--plasma-calendar-years-padding:0.375rem 0.25rem 0 0.25rem;--plasma-calendar-year-item-border-radius:0.375rem;--plasma-calendar-year-font-family:var(--plasma-typo-body-xs-font-family);--plasma-calendar-year-font-size:var(--plasma-typo-body-xs-font-size);--plasma-calendar-year-font-style:var(--plasma-typo-body-xs-font-style);--plasma-calendar-year-font-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-calendar-year-line-height:var(--plasma-typo-body-xs-line-height);--plasma-calendar-year-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-calendar-year-selected-font-weight:var(--plasma-typo-body-xs-bold-font-weight);--plasma-calendar-quarters-padding:0.375rem 0.25rem 0 0.25rem;--plasma-calendar-quarter-item-border-radius:0.375rem;--plasma-calendar-quarter-font-family:var(--plasma-typo-body-xs-font-family);--plasma-calendar-quarter-font-size:var(--plasma-typo-body-xs-font-size);--plasma-calendar-quarter-font-style:var(--plasma-typo-body-xs-font-style);--plasma-calendar-quarter-font-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-calendar-quarter-line-height:var(--plasma-typo-body-xs-line-height);--plasma-calendar-quarter-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-calendar-quarter-selected-font-weight:var(--plasma-typo-body-xs-bold-font-weight);--plasma-calendar-months-padding:0.375rem 0.25rem 0 0.25rem;--plasma-calendar-month-item-border-radius:0.375rem;--plasma-calendar-month-font-family:var(--plasma-typo-body-xs-font-family);--plasma-calendar-month-font-size:var(--plasma-typo-body-xs-font-size);--plasma-calendar-month-font-style:var(--plasma-typo-body-xs-font-style);--plasma-calendar-month-font-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-calendar-month-line-height:var(--plasma-typo-body-xs-line-height);--plasma-calendar-month-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-calendar-month-selected-font-weight:var(--plasma-typo-body-xs-bold-font-weight);--plasma-calendar-days-padding:0.375rem 0 0 0;--plasma-calendar-day-item-border-radius:0.375rem;--plasma-calendar-day-font-family:var(--plasma-typo-body-xs-font-family);--plasma-calendar-day-font-size:var(--plasma-typo-body-xs-font-size);--plasma-calendar-day-font-style:var(--plasma-typo-body-xs-font-style);--plasma-calendar-day-font-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-calendar-day-line-height:var(--plasma-typo-body-xs-line-height);--plasma-calendar-day-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-calendar-day-selected-font-weight:var(--plasma-typo-body-xs-bold-font-weight);--plasma-calendar-current-item-border-width:0.063rem;--plasma-calendar-arrow-container-gap:0;--plasma-calendar-header-padding:0 0 0 0.5rem;--plasma-calendar-header-date-gap:0.25rem;--plasma-calendar-header-font-family:var(--plasma-typo-h5-font-family);--plasma-calendar-header-font-size:var(--plasma-typo-h5-font-size);--plasma-calendar-header-font-style:var(--plasma-typo-h5-font-style);--plasma-calendar-header-font-letter-spacing:var(--plasma-typo-h5-letter-spacing);--plasma-calendar-header-line-height:var(--plasma-typo-h5-line-height);--plasma-calendar-header-font-weight:var(--plasma-typo-h5-font-weight);--plasma-calendar-header-font-weight-bold:var(--plasma-typo-h5-bold-font-weight);--plasma-calendar-icon-button-height:2rem;--plasma-calendar-icon-button-width:2rem;--plasma-calendar-icon-button-padding:0.75rem;--plasma-calendar-icon-button-radius:0.5rem;}
|
164
164
|
|
165
|
+
.Carousel_config_1r461vi_dv63qpm__2a4ae68a{--plasma-carousel-pagination-dot-background:var(--surface-transparent-tertiary);--plasma-carousel-pagination-dot-active-background:var(--surface-solid-default);}
|
166
|
+
|
167
|
+
|
165
168
|
.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;}
|
166
169
|
.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);}
|
167
170
|
.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);}
|
@@ -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
|
+
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
|
+
import { carouselNewConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/styled-components';
|
3
|
+
import React from 'react';
|
4
|
+
import { CarouselOld } from './Legacy/Carousel';
|
5
|
+
import { config } from './Carousel.config';
|
6
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(carouselNewConfig, config);
|
7
|
+
var CarouselNew = /*#__PURE__*/component(mergedConfig);
|
8
|
+
var CarouselComponent = function CarouselComponent(props, ref) {
|
9
|
+
if (typeof props.index === 'number' && !Number.isNaN(props.index)) {
|
10
|
+
return /*#__PURE__*/React.createElement(CarouselOld, _extends({
|
11
|
+
ref: ref
|
12
|
+
}, props));
|
13
|
+
}
|
14
|
+
return /*#__PURE__*/React.createElement(CarouselNew, _extends({
|
15
|
+
ref: ref
|
16
|
+
}, props));
|
17
|
+
};
|
18
|
+
var Carousel = /*#__PURE__*/fixedForwardRef(CarouselComponent);
|
19
|
+
export { Carousel };
|
@@ -3,17 +3,17 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
4
4
|
import React from 'react';
|
5
5
|
import styled from 'styled-components';
|
6
|
-
import { addFocus } from '
|
7
|
-
import { Image } from '
|
8
|
-
import { Headline4, Footnote1 } from '
|
6
|
+
import { addFocus } from '../../../mixins';
|
7
|
+
import { Image } from '../../Image';
|
8
|
+
import { Headline4, Footnote1 } from '../../Typography';
|
9
9
|
var StyledCard = /*#__PURE__*/styled.a.withConfig({
|
10
|
-
componentId: "plasma-web__sc-
|
10
|
+
componentId: "plasma-web__sc-18zpu6x-0"
|
11
11
|
})(["display:flex;position:relative;border-radius:1rem;", ""], /*#__PURE__*/addFocus({
|
12
12
|
outlined: true,
|
13
13
|
outlineRadius: '1.125rem'
|
14
14
|
}));
|
15
15
|
var StyledCardContent = /*#__PURE__*/styled.div.withConfig({
|
16
|
-
componentId: "plasma-web__sc-
|
16
|
+
componentId: "plasma-web__sc-18zpu6x-1"
|
17
17
|
})(["position:absolute;left:0;right:0;bottom:0;padding:1.72rem;color:#fff;"]);
|
18
18
|
|
19
19
|
/**
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { carouselConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
2
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(carouselConfig);
|
3
|
+
var CarouselComponent = /*#__PURE__*/component(mergedConfig);
|
4
|
+
export var CarouselOld = CarouselComponent;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { CarouselGridWrapper } from '@salutejs/plasma-new-hope/styled-components';
|
2
|
-
export {
|
3
|
-
export {
|
2
|
+
export { CarouselItem } from '@salutejs/plasma-new-hope/styled-components';
|
3
|
+
export { Carousel } from './Carousel';
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
2
2
|
import { notificationConfig, NotificationsProvider as Provider, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
3
3
|
import { config } from './Notification.config';
|
4
4
|
var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
|
5
|
-
export var
|
5
|
+
export var NotificationNewHope = /*#__PURE__*/component(mergedConfig);
|
6
|
+
export var Notification = NotificationNewHope;
|
6
7
|
export var NotificationsProvider = function NotificationsProvider(_ref) {
|
7
8
|
var children = _ref.children,
|
8
9
|
_ref$frame = _ref.frame,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-web",
|
3
|
-
"version": "1.584.0-
|
3
|
+
"version": "1.584.0-dev.0",
|
4
4
|
"description": "Salute Design System / React UI kit for web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -19,13 +19,13 @@
|
|
19
19
|
"directory": "packages/plasma-web"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
-
"@salutejs/plasma-core": "1.198.0-
|
23
|
-
"@salutejs/plasma-hope": "1.343.0-
|
24
|
-
"@salutejs/plasma-new-hope": "0.326.0-
|
25
|
-
"@salutejs/plasma-themes": "0.34.0-
|
26
|
-
"@salutejs/plasma-tokens-b2b": "1.50.0-
|
27
|
-
"@salutejs/plasma-tokens-b2c": "0.61.0-
|
28
|
-
"@salutejs/plasma-tokens-web": "1.65.0-
|
22
|
+
"@salutejs/plasma-core": "1.198.0-dev.0",
|
23
|
+
"@salutejs/plasma-hope": "1.343.0-dev.0",
|
24
|
+
"@salutejs/plasma-new-hope": "0.326.0-dev.0",
|
25
|
+
"@salutejs/plasma-themes": "0.34.0-dev.0",
|
26
|
+
"@salutejs/plasma-tokens-b2b": "1.50.0-dev.0",
|
27
|
+
"@salutejs/plasma-tokens-b2c": "0.61.0-dev.0",
|
28
|
+
"@salutejs/plasma-tokens-web": "1.65.0-dev.0",
|
29
29
|
"@salutejs/plasma-typo": "0.42.0"
|
30
30
|
},
|
31
31
|
"peerDependencies": {
|
@@ -49,9 +49,9 @@
|
|
49
49
|
"@rollup/plugin-commonjs": "25.0.7",
|
50
50
|
"@rollup/plugin-node-resolve": "15.2.3",
|
51
51
|
"@salutejs/plasma-colors": "0.15.0",
|
52
|
-
"@salutejs/plasma-cy-utils": "0.129.0-
|
52
|
+
"@salutejs/plasma-cy-utils": "0.129.0-dev.0",
|
53
53
|
"@salutejs/plasma-icons": "1.218.0",
|
54
|
-
"@salutejs/plasma-sb-utils": "0.199.0-
|
54
|
+
"@salutejs/plasma-sb-utils": "0.199.0-dev.0",
|
55
55
|
"@storybook/addon-docs": "7.6.17",
|
56
56
|
"@storybook/addon-essentials": "7.6.17",
|
57
57
|
"@storybook/addons": "7.6.17",
|
@@ -111,5 +111,5 @@
|
|
111
111
|
"Fanil Zubairov"
|
112
112
|
],
|
113
113
|
"sideEffects": false,
|
114
|
-
"gitHead": "
|
114
|
+
"gitHead": "9a5b37006a4b06460d4f83bc2f17f38b3d33fea9"
|
115
115
|
}
|