@salutejs/sdds-serv 0.225.1-canary.1707.12823225023.0 → 0.226.0-dev.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-serv.api.md +72 -59
- package/components/Accordion/Accordion.config.js +1 -1
- package/components/Attach/Attach.config.js +1 -1
- package/components/Autocomplete/Autocomplete.config.js +1 -1
- package/components/Avatar/Avatar.config.d.ts +18 -0
- package/components/Avatar/Avatar.config.js +19 -1
- package/components/Avatar/Avatar.config.js.map +1 -1
- package/components/Avatar/Avatar.config_1buqzeq.css +21 -0
- package/components/Avatar/Avatar.css +21 -7
- package/components/Avatar/Avatar.d.ts +138 -6
- package/components/Badge/Badge.config.js +1 -1
- package/components/Badge/Badge.d.ts +8 -48
- package/components/Breadcrumbs/Breadcrumbs.config.js +1 -1
- package/components/Button/Button.config.js +1 -1
- package/components/ButtonGroup/ButtonGroup.config.js +1 -1
- package/components/Calendar/CalendarBase.config.js +1 -1
- package/components/Calendar/CalendarDouble.config.js +1 -1
- package/components/Cell/Cell.config.js +1 -1
- package/components/Checkbox/Checkbox.config.js +1 -1
- package/components/Chip/Chip.config.js +1 -1
- package/components/ChipGroup/ChipGroup.config.js +1 -1
- package/components/Combobox/Combobox.config.js +1 -1
- package/components/Combobox/Combobox.js +1 -5
- package/components/Combobox/Combobox.js.map +1 -1
- package/components/Counter/Counter.config.js +1 -1
- package/components/Counter/Counter.d.ts +1 -6
- package/components/DatePicker/DatePicker.config.js +1 -1
- package/components/Divider/Divider.config.js +1 -1
- package/components/Drawer/Drawer.config.js +1 -1
- package/components/Dropdown/Dropdown.config.js +1 -1
- package/components/Dropdown/Dropdown.js +1 -5
- package/components/Dropdown/Dropdown.js.map +1 -1
- package/components/Dropzone/Dropzone.config.js +1 -1
- package/components/EmptyState/EmptyState.config.js +1 -1
- package/components/Grid/Grid.config.js +1 -1
- package/components/IconButton/IconButton.config.js +1 -1
- package/components/Indicator/Indicator.config.js +1 -1
- package/components/Link/Link.config.js +1 -1
- package/components/Modal/Modal.config.js +1 -1
- package/components/Note/Note.config.js +1 -1
- package/components/Notification/Notification.config.js +1 -1
- package/components/Notification/Notification.js +1 -5
- package/components/Notification/Notification.js.map +1 -1
- package/components/NumberInput/NumberInput.config.js +1 -1
- package/components/NumberInput/NumberInput.d.ts +2 -2
- package/components/Pagination/Pagination.config.js +1 -1
- package/components/Popover/Popover.config.js +1 -1
- package/components/Progress/Progress.config.js +1 -1
- package/components/Radiobox/Radiobox.config.js +1 -1
- package/components/Range/Range.config.js +1 -1
- package/components/Rating/Rating.config.js +1 -1
- package/components/Segment/SegmentGroup.config.js +1 -1
- package/components/Segment/SegmentItem.config.js +1 -1
- package/components/Select/Select.config.js +1 -1
- package/components/Select/Select.js +1 -5
- package/components/Select/Select.js.map +1 -1
- package/components/Sheet/Sheet.config.js +1 -1
- package/components/Skeleton/LineSkeleton.config.js +1 -1
- package/components/Slider/Slider.config.js +1 -1
- package/components/Spinner/Spinner.config.js +1 -1
- package/components/Steps/Steps.config.js +1 -1
- package/components/Switch/Switch.config.js +1 -1
- package/components/Tabs/TabItem.js +2 -6
- package/components/Tabs/TabItem.js.map +1 -1
- package/components/Tabs/Tabs.js +2 -6
- package/components/Tabs/Tabs.js.map +1 -1
- package/components/Tabs/horizontal/HorizontalTabItem.config.js +1 -1
- package/components/Tabs/horizontal/HorizontalTabs.config.js +1 -1
- package/components/Tabs/vertical/VerticalTabItem.config.js +1 -1
- package/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/components/TextArea/TextArea.config.js +1 -1
- package/components/TextField/TextField.config.js +1 -1
- package/components/TextFieldGroup/TextFieldGroup.config.js +1 -1
- package/components/Toast/Toast.config.js +1 -1
- package/components/Toolbar/Toolbar.config.js +1 -1
- package/components/Tooltip/Tooltip.config.js +1 -1
- package/components/Tree/Tree.config.js +1 -1
- package/components/Typography/Body.config.js +1 -1
- package/components/Typography/Dspl.config.js +1 -1
- package/components/Typography/Heading.config.js +1 -1
- package/components/Typography/Text.config.js +1 -1
- package/components/ViewContainer/ViewContainer.config.js +1 -1
- package/emotion/cjs/components/Avatar/Avatar.config.js +23 -5
- package/emotion/cjs/components/Avatar/Avatar.stories.tsx +120 -3
- package/emotion/es/components/Avatar/Avatar.config.js +23 -5
- package/emotion/es/components/Avatar/Avatar.stories.tsx +120 -3
- package/es/components/Avatar/Avatar.config.js +19 -1
- package/es/components/Avatar/Avatar.config.js.map +1 -1
- package/es/components/Avatar/Avatar.config_1buqzeq.css +21 -0
- package/es/components/Avatar/Avatar.css +21 -7
- package/es/index.css +21 -7
- package/package.json +9 -8
- package/styled-components/cjs/components/Avatar/Avatar.config.js +23 -5
- package/styled-components/es/components/Avatar/Avatar.config.js +23 -5
- package/components/Avatar/Avatar.config_weecw4.css +0 -7
- package/es/components/Avatar/Avatar.config_weecw4.css +0 -7
@@ -37,28 +37,10 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
37
37
|
} & {
|
38
38
|
contentLeft?: import("react").ReactNode;
|
39
39
|
contentRight?: undefined;
|
40
|
-
} & {
|
41
|
-
children?: import("react").ReactNode;
|
42
40
|
} & {
|
43
41
|
clear?: true | undefined;
|
44
|
-
pilled?:
|
45
|
-
transparent?:
|
46
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
47
|
-
text?: string | undefined;
|
48
|
-
customColor?: string | undefined;
|
49
|
-
customBackgroundColor?: string | undefined;
|
50
|
-
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
51
|
-
size?: string | undefined;
|
52
|
-
view?: string | undefined;
|
53
|
-
} & {
|
54
|
-
contentLeft?: import("react").ReactNode;
|
55
|
-
contentRight?: undefined;
|
56
|
-
} & {
|
57
|
-
children?: import("react").ReactNode;
|
58
|
-
} & {
|
59
|
-
pilled?: true | undefined;
|
60
|
-
transparent?: boolean | undefined;
|
61
|
-
clear?: false | undefined;
|
42
|
+
pilled?: undefined;
|
43
|
+
transparent?: undefined;
|
62
44
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
63
45
|
text?: string | undefined;
|
64
46
|
customColor?: string | undefined;
|
@@ -69,12 +51,10 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
69
51
|
} & {
|
70
52
|
contentLeft?: import("react").ReactNode;
|
71
53
|
contentRight?: undefined;
|
72
|
-
} & {
|
73
|
-
children?: import("react").ReactNode;
|
74
54
|
} & {
|
75
55
|
pilled?: boolean | undefined;
|
76
|
-
transparent?:
|
77
|
-
clear?:
|
56
|
+
transparent?: boolean | undefined;
|
57
|
+
clear?: undefined;
|
78
58
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
79
59
|
text?: string | undefined;
|
80
60
|
customColor?: string | undefined;
|
@@ -85,28 +65,10 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
85
65
|
} & {
|
86
66
|
contentLeft?: undefined;
|
87
67
|
contentRight?: import("react").ReactNode;
|
88
|
-
} & {
|
89
|
-
children?: import("react").ReactNode;
|
90
68
|
} & {
|
91
69
|
clear?: true | undefined;
|
92
|
-
pilled?:
|
93
|
-
transparent?:
|
94
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
95
|
-
text?: string | undefined;
|
96
|
-
customColor?: string | undefined;
|
97
|
-
customBackgroundColor?: string | undefined;
|
98
|
-
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
99
|
-
size?: string | undefined;
|
100
|
-
view?: string | undefined;
|
101
|
-
} & {
|
102
|
-
contentLeft?: undefined;
|
103
|
-
contentRight?: import("react").ReactNode;
|
104
|
-
} & {
|
105
|
-
children?: import("react").ReactNode;
|
106
|
-
} & {
|
107
|
-
pilled?: true | undefined;
|
108
|
-
transparent?: boolean | undefined;
|
109
|
-
clear?: false | undefined;
|
70
|
+
pilled?: undefined;
|
71
|
+
transparent?: undefined;
|
110
72
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
111
73
|
text?: string | undefined;
|
112
74
|
customColor?: string | undefined;
|
@@ -117,10 +79,8 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
117
79
|
} & {
|
118
80
|
contentLeft?: undefined;
|
119
81
|
contentRight?: import("react").ReactNode;
|
120
|
-
} & {
|
121
|
-
children?: import("react").ReactNode;
|
122
82
|
} & {
|
123
83
|
pilled?: boolean | undefined;
|
124
|
-
transparent?:
|
125
|
-
clear?:
|
84
|
+
transparent?: boolean | undefined;
|
85
|
+
clear?: undefined;
|
126
86
|
} & import("react").RefAttributes<HTMLDivElement>))>;
|
@@ -7,14 +7,10 @@ var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
|
7
7
|
var React = require('react');
|
8
8
|
var Combobox_config = require('./Combobox.config.js');
|
9
9
|
|
10
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
-
|
12
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
13
|
-
|
14
10
|
var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.comboboxNewConfig, Combobox_config.config);
|
15
11
|
var ComboboxNew = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
16
12
|
var ComboboxComponent = function ComboboxComponent(props, ref) {
|
17
|
-
return /*#__PURE__*/
|
13
|
+
return /*#__PURE__*/React.createElement(ComboboxNew, _rollupPluginBabelHelpers.extends({
|
18
14
|
ref: ref
|
19
15
|
}, props));
|
20
16
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.js","sources":["../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype Props<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> &\n DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: Props<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n};\n\nconst Combobox = fixedForwardRef(ComboboxComponent);\n\nexport { Combobox };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxNew","component","ComboboxComponent","props","ref","React","createElement","_extends","Combobox","fixedForwardRef"],"mappings":"
|
1
|
+
{"version":3,"file":"Combobox.js","sources":["../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps } from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype Props<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> &\n DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: Props<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n};\n\nconst Combobox = fixedForwardRef(ComboboxComponent);\n\nexport { Combobox };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxNew","component","ComboboxComponent","props","ref","React","createElement","_extends","Combobox","fixedForwardRef"],"mappings":";;;;;;;;;AAWA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,sBAAM,CAAC,CAAA;AAC3D,IAAMC,WAAW,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAO3C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAe,EAAEC,GAAyC,EAAK;AAC5G,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,WAAW,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,6BAAe,CAACP,iBAAiB;;;;"}
|
@@ -19,9 +19,4 @@ export declare const Counter: import("react").FunctionComponent<import("@salutej
|
|
19
19
|
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
20
20
|
xxs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
21
21
|
};
|
22
|
-
}> & import("react").HTMLAttributes<HTMLDivElement> &
|
23
|
-
count: number;
|
24
|
-
maxCount?: number | undefined;
|
25
|
-
size?: string | undefined;
|
26
|
-
view?: string | undefined;
|
27
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
22
|
+
}> & import("react").HTMLAttributes<HTMLDivElement> & import("@salutejs/plasma-new-hope/types/components/Counter/Counter.types").CustomCounterProps & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -7,14 +7,10 @@ var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
|
7
7
|
var React = require('react');
|
8
8
|
var Dropdown_config = require('./Dropdown.config.js');
|
9
9
|
|
10
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
-
|
12
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
13
|
-
|
14
10
|
var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.dropdownConfig, Dropdown_config.config);
|
15
11
|
var DropdownNewHope = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
16
12
|
var DropdownComponent = function DropdownComponent(props, ref) {
|
17
|
-
return /*#__PURE__*/
|
13
|
+
return /*#__PURE__*/React.createElement(DropdownNewHope, _rollupPluginBabelHelpers.extends({
|
18
14
|
ref: ref
|
19
15
|
}, props));
|
20
16
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sources":["../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\ntype DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":"
|
1
|
+
{"version":3,"file":"Dropdown.js","sources":["../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\ntype DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":";;;;;;;;;AAMA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,4BAAc,EAAEC,sBAAM,CAAC,CAAA;AACxD,IAAMC,eAAe,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAK/C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CACnBC,KAAuB,EACvBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,eAAe,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,6BAAe,CAACP,iBAAiB;;;;"}
|
@@ -6,10 +6,6 @@ var React = require('react');
|
|
6
6
|
var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
7
7
|
var Notification_config = require('./Notification.config.js');
|
8
8
|
|
9
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
10
|
-
|
11
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
12
|
-
|
13
9
|
var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.notificationConfig, Notification_config.config);
|
14
10
|
var Notification = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
15
11
|
var NotificationsProvider = function NotificationsProvider(_ref) {
|
@@ -17,7 +13,7 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
|
|
17
13
|
_ref$frame = _ref.frame,
|
18
14
|
frame = _ref$frame === void 0 ? 'document' : _ref$frame,
|
19
15
|
placement = _ref.placement;
|
20
|
-
return /*#__PURE__*/
|
16
|
+
return /*#__PURE__*/React.createElement(plasmaNewHope.NotificationsProvider, {
|
21
17
|
config: mergedConfig,
|
22
18
|
frame: frame,
|
23
19
|
placement: placement
|
@@ -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}> = ({ children, frame = 'document', placement }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement}>\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","React","createElement","Provider"],"mappings":"
|
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}> = ({ children, frame = 'document', placement }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement}>\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","React","createElement","Provider"],"mappings":";;;;;;;;AAkBA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,gCAAkB,EAAEC,0BAAM,CAAC,CAAA;IAE/CC,YAAY,gBAAGC,uBAAS,CAACL,YAAY,EAAC;IAEtCM,qBAIX,GAAG,SAJQA,qBAIXA,CAAAC,IAAA,EAAoD;AAAA,EAAA,IAA9CC,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,CAAA;AAC3C,EAAA,oBACIC,KAAA,CAAAC,aAAA,CAACC,mCAAQ,EAAA;AAACX,IAAAA,MAAM,EAAEH,YAAa;AAACU,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAAA;AAAU,GAAA,EAC9DH,QACK,CAAC,CAAA;AAEnB;;;;;;;;;;;;;;;;;"}
|
@@ -54,7 +54,7 @@ export declare const NumberInput: import("react").FunctionComponent<import("@sal
|
|
54
54
|
} & {
|
55
55
|
segmentation?: "clear" | undefined;
|
56
56
|
inputBackgroundType?: undefined;
|
57
|
-
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
57
|
+
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
58
58
|
value?: number | undefined;
|
59
59
|
min?: number | undefined;
|
60
60
|
max?: number | undefined;
|
@@ -80,4 +80,4 @@ export declare const NumberInput: import("react").FunctionComponent<import("@sal
|
|
80
80
|
} & {
|
81
81
|
segmentation?: string | undefined;
|
82
82
|
inputBackgroundType?: string | undefined;
|
83
|
-
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
83
|
+
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
|
@@ -7,14 +7,10 @@ var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
|
7
7
|
var React = require('react');
|
8
8
|
var Select_config = require('./Select.config.js');
|
9
9
|
|
10
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
-
|
12
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
13
|
-
|
14
10
|
var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.selectConfig, Select_config.config);
|
15
11
|
var SelectNewHope = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
16
12
|
var SelectComponent = function SelectComponent(props, ref) {
|
17
|
-
return /*#__PURE__*/
|
13
|
+
return /*#__PURE__*/React.createElement(SelectNewHope, _rollupPluginBabelHelpers.extends({
|
18
14
|
ref: ref
|
19
15
|
}, props));
|
20
16
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<K extends ItemOptionSelect> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <K extends ItemOptionSelect>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":"
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<K extends ItemOptionSelect> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <K extends ItemOptionSelect>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;;;;;AAWA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,0BAAY,EAAEC,oBAAM,CAAC,CAAA;AACtD,IAAMC,aAAa,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CAAgCC,KAAqB,EAAEC,GAAoC,EAAK;AACjH,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AAED,IAAMK,MAAM,gBAAGC,6BAAe,CAACP,eAAe;;;;"}
|
@@ -7,10 +7,6 @@ var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
|
7
7
|
var HorizontalTabItem_config = require('./horizontal/HorizontalTabItem.config.js');
|
8
8
|
var VerticalTabItem_config = require('./vertical/VerticalTabItem.config.js');
|
9
9
|
|
10
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
-
|
12
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
13
|
-
|
14
10
|
var mergedHorizontalTabItemConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.horizontalTabItemConfig, HorizontalTabItem_config.config);
|
15
11
|
var HorizontalTabItem = /*#__PURE__*/plasmaNewHope.component(mergedHorizontalTabItemConfig);
|
16
12
|
var mergedVerticalTabItemConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.verticalTabItemConfig, VerticalTabItem_config.config);
|
@@ -20,9 +16,9 @@ var VerticalTabItem = /*#__PURE__*/plasmaNewHope.component(mergedVerticalTabItem
|
|
20
16
|
*/
|
21
17
|
var TabItem = function TabItem(props) {
|
22
18
|
if (props.orientation === 'vertical') {
|
23
|
-
return /*#__PURE__*/
|
19
|
+
return /*#__PURE__*/React.createElement(VerticalTabItem, props);
|
24
20
|
}
|
25
|
-
return /*#__PURE__*/
|
21
|
+
return /*#__PURE__*/React.createElement(HorizontalTabItem, props);
|
26
22
|
};
|
27
23
|
|
28
24
|
exports.TabItem = TabItem;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabItem.js","sources":["../../src-css/components/Tabs/TabItem.tsx"],"sourcesContent":["import React, { ComponentProps } from 'react';\nimport {\n horizontalTabItemConfig,\n verticalTabItemConfig,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config as horizontalConfig } from './horizontal/HorizontalTabItem.config';\nimport { config as verticalConfig } from './vertical/VerticalTabItem.config';\n\nconst mergedHorizontalTabItemConfig = mergeConfig(horizontalTabItemConfig, horizontalConfig);\nconst HorizontalTabItem = component(mergedHorizontalTabItemConfig);\n\nconst mergedVerticalTabItemConfig = mergeConfig(verticalTabItemConfig, verticalConfig);\nconst VerticalTabItem = component(mergedVerticalTabItemConfig);\n\ntype TabItemProps = ComponentProps<typeof HorizontalTabItem> | ComponentProps<typeof VerticalTabItem>;\n\n/**\n * Элемент списка, недопустимо использовать вне компонента Tabs.\n */\nexport const TabItem = (props: TabItemProps) => {\n if (props.orientation === 'vertical') {\n return <VerticalTabItem {...props} />;\n }\n\n return <HorizontalTabItem {...props} />;\n};\n"],"names":["mergedHorizontalTabItemConfig","mergeConfig","horizontalTabItemConfig","horizontalConfig","HorizontalTabItem","component","mergedVerticalTabItemConfig","verticalTabItemConfig","verticalConfig","VerticalTabItem","TabItem","props","orientation","React","createElement"],"mappings":"
|
1
|
+
{"version":3,"file":"TabItem.js","sources":["../../src-css/components/Tabs/TabItem.tsx"],"sourcesContent":["import React, { ComponentProps } from 'react';\nimport {\n horizontalTabItemConfig,\n verticalTabItemConfig,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config as horizontalConfig } from './horizontal/HorizontalTabItem.config';\nimport { config as verticalConfig } from './vertical/VerticalTabItem.config';\n\nconst mergedHorizontalTabItemConfig = mergeConfig(horizontalTabItemConfig, horizontalConfig);\nconst HorizontalTabItem = component(mergedHorizontalTabItemConfig);\n\nconst mergedVerticalTabItemConfig = mergeConfig(verticalTabItemConfig, verticalConfig);\nconst VerticalTabItem = component(mergedVerticalTabItemConfig);\n\ntype TabItemProps = ComponentProps<typeof HorizontalTabItem> | ComponentProps<typeof VerticalTabItem>;\n\n/**\n * Элемент списка, недопустимо использовать вне компонента Tabs.\n */\nexport const TabItem = (props: TabItemProps) => {\n if (props.orientation === 'vertical') {\n return <VerticalTabItem {...props} />;\n }\n\n return <HorizontalTabItem {...props} />;\n};\n"],"names":["mergedHorizontalTabItemConfig","mergeConfig","horizontalTabItemConfig","horizontalConfig","HorizontalTabItem","component","mergedVerticalTabItemConfig","verticalTabItemConfig","verticalConfig","VerticalTabItem","TabItem","props","orientation","React","createElement"],"mappings":";;;;;;;;;AAWA,IAAMA,6BAA6B,gBAAGC,yBAAW,CAACC,qCAAuB,EAAEC,+BAAgB,CAAC,CAAA;AAC5F,IAAMC,iBAAiB,gBAAGC,uBAAS,CAACL,6BAA6B,CAAC,CAAA;AAElE,IAAMM,2BAA2B,gBAAGL,yBAAW,CAACM,mCAAqB,EAAEC,6BAAc,CAAC,CAAA;AACtF,IAAMC,eAAe,gBAAGJ,uBAAS,CAACC,2BAA2B,CAAC,CAAA;AAI9D;AACA;AACA;IACaI,OAAO,GAAG,SAAVA,OAAOA,CAAIC,KAAmB,EAAK;AAC5C,EAAA,IAAIA,KAAK,CAACC,WAAW,KAAK,UAAU,EAAE;AAClC,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACL,eAAe,EAAKE,KAAQ,CAAC,CAAA;AACzC,GAAA;AAEA,EAAA,oBAAOE,KAAA,CAAAC,aAAA,CAACV,iBAAiB,EAAKO,KAAQ,CAAC,CAAA;AAC3C;;;;"}
|
package/components/Tabs/Tabs.js
CHANGED
@@ -7,10 +7,6 @@ var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
|
7
7
|
var HorizontalTabs_config = require('./horizontal/HorizontalTabs.config.js');
|
8
8
|
var VerticalTabs_config = require('./vertical/VerticalTabs.config.js');
|
9
9
|
|
10
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
-
|
12
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
13
|
-
|
14
10
|
var mergedHorizontalTabsConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.horizontalTabsConfig, HorizontalTabs_config.config);
|
15
11
|
var mergedVerticalTabsConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.verticalTabsConfig, VerticalTabs_config.config);
|
16
12
|
var HorizontalTabs = /*#__PURE__*/plasmaNewHope.component(mergedHorizontalTabsConfig);
|
@@ -20,9 +16,9 @@ var VerticalTabs = /*#__PURE__*/plasmaNewHope.component(mergedVerticalTabsConfig
|
|
20
16
|
*/
|
21
17
|
var Tabs = function Tabs(props) {
|
22
18
|
if (props.orientation === 'vertical') {
|
23
|
-
return /*#__PURE__*/
|
19
|
+
return /*#__PURE__*/React.createElement(VerticalTabs, props);
|
24
20
|
}
|
25
|
-
return /*#__PURE__*/
|
21
|
+
return /*#__PURE__*/React.createElement(HorizontalTabs, props);
|
26
22
|
};
|
27
23
|
|
28
24
|
exports.Tabs = Tabs;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Tabs.js","sources":["../../src-css/components/Tabs/Tabs.tsx"],"sourcesContent":["import React, { ComponentProps } from 'react';\nimport {\n horizontalTabsConfig,\n verticalTabsConfig,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config as horizontalConfig } from './horizontal/HorizontalTabs.config';\nimport { config as verticalConfig } from './vertical/VerticalTabs.config';\n\nconst mergedHorizontalTabsConfig = mergeConfig(horizontalTabsConfig, horizontalConfig);\nconst mergedVerticalTabsConfig = mergeConfig(verticalTabsConfig, verticalConfig);\n\nconst HorizontalTabs = component(mergedHorizontalTabsConfig);\nconst VerticalTabs = component(mergedVerticalTabsConfig);\n\ntype TabsProps = ComponentProps<typeof HorizontalTabs> | ComponentProps<typeof VerticalTabs>;\n\n/**\n * Контейнер вкладок, основной компонент для пользовательской сборки вкладок.\n */\nexport const Tabs = (props: TabsProps) => {\n if (props.orientation === 'vertical') {\n return <VerticalTabs {...props} />;\n }\n\n return <HorizontalTabs {...props} />;\n};\n"],"names":["mergedHorizontalTabsConfig","mergeConfig","horizontalTabsConfig","horizontalConfig","mergedVerticalTabsConfig","verticalTabsConfig","verticalConfig","HorizontalTabs","component","VerticalTabs","Tabs","props","orientation","React","createElement"],"mappings":"
|
1
|
+
{"version":3,"file":"Tabs.js","sources":["../../src-css/components/Tabs/Tabs.tsx"],"sourcesContent":["import React, { ComponentProps } from 'react';\nimport {\n horizontalTabsConfig,\n verticalTabsConfig,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config as horizontalConfig } from './horizontal/HorizontalTabs.config';\nimport { config as verticalConfig } from './vertical/VerticalTabs.config';\n\nconst mergedHorizontalTabsConfig = mergeConfig(horizontalTabsConfig, horizontalConfig);\nconst mergedVerticalTabsConfig = mergeConfig(verticalTabsConfig, verticalConfig);\n\nconst HorizontalTabs = component(mergedHorizontalTabsConfig);\nconst VerticalTabs = component(mergedVerticalTabsConfig);\n\ntype TabsProps = ComponentProps<typeof HorizontalTabs> | ComponentProps<typeof VerticalTabs>;\n\n/**\n * Контейнер вкладок, основной компонент для пользовательской сборки вкладок.\n */\nexport const Tabs = (props: TabsProps) => {\n if (props.orientation === 'vertical') {\n return <VerticalTabs {...props} />;\n }\n\n return <HorizontalTabs {...props} />;\n};\n"],"names":["mergedHorizontalTabsConfig","mergeConfig","horizontalTabsConfig","horizontalConfig","mergedVerticalTabsConfig","verticalTabsConfig","verticalConfig","HorizontalTabs","component","VerticalTabs","Tabs","props","orientation","React","createElement"],"mappings":";;;;;;;;;AAWA,IAAMA,0BAA0B,gBAAGC,yBAAW,CAACC,kCAAoB,EAAEC,4BAAgB,CAAC,CAAA;AACtF,IAAMC,wBAAwB,gBAAGH,yBAAW,CAACI,gCAAkB,EAAEC,0BAAc,CAAC,CAAA;AAEhF,IAAMC,cAAc,gBAAGC,uBAAS,CAACR,0BAA0B,CAAC,CAAA;AAC5D,IAAMS,YAAY,gBAAGD,uBAAS,CAACJ,wBAAwB,CAAC,CAAA;AAIxD;AACA;AACA;IACaM,IAAI,GAAG,SAAPA,IAAIA,CAAIC,KAAgB,EAAK;AACtC,EAAA,IAAIA,KAAK,CAACC,WAAW,KAAK,UAAU,EAAE;AAClC,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACL,YAAY,EAAKE,KAAQ,CAAC,CAAA;AACtC,GAAA;AAEA,EAAA,oBAAOE,KAAA,CAAAC,aAAA,CAACP,cAAc,EAAKI,KAAQ,CAAC,CAAA;AACxC;;;;"}
|