@salutejs/sdds-serv 0.226.1-canary.1707.12862394119.0 → 0.226.1-canary.1710.12871726145.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-serv.api.md +18 -17
- 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.js +1 -1
- package/components/Badge/Badge.config.js +1 -1
- 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/DatePicker/DatePicker.config.js +1 -1
- package/components/DatePicker/DatePicker.d.ts +5 -4
- 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/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/Range/Range.d.ts +12 -12
- 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/DatePicker/DatePicker.stories.tsx +1 -7
- package/emotion/es/components/DatePicker/DatePicker.stories.tsx +1 -7
- package/package.json +9 -8
package/api/sdds-serv.api.md
CHANGED
@@ -50,7 +50,6 @@ import { CellTextbox } from '@salutejs/plasma-new-hope/styled-components';
|
|
50
50
|
import { CellTextboxLabel } from '@salutejs/plasma-new-hope/styled-components';
|
51
51
|
import { CellTextboxSubtitle } from '@salutejs/plasma-new-hope/styled-components';
|
52
52
|
import { CellTextboxTitle } from '@salutejs/plasma-new-hope/styled-components';
|
53
|
-
import { ChangeEvent } from 'react';
|
54
53
|
import { ChangeInstanceCallback } from '@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types';
|
55
54
|
import { CheckboxProps as CheckboxProps_2 } from '@salutejs/plasma-new-hope/types/components/Checkbox/Checkbox.types';
|
56
55
|
import { ChipGroupProps } from '@salutejs/plasma-new-hope/types/components/ChipGroup/ChipGroup.types';
|
@@ -112,6 +111,7 @@ import { FC } from 'react';
|
|
112
111
|
import { FileProcessHandler } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
|
113
112
|
import { Filter } from '@salutejs/plasma-new-hope/types/engines/types';
|
114
113
|
import { FlowProps } from '@salutejs/plasma-new-hope/styled-components';
|
114
|
+
import { FocusEvent as FocusEvent_2 } from 'react';
|
115
115
|
import { FormTypeNumber } from '@salutejs/plasma-new-hope/types/types/FormType';
|
116
116
|
import { FormTypeString } from '@salutejs/plasma-new-hope/types/types/FormType';
|
117
117
|
import { ForwardRefExoticComponent } from 'react';
|
@@ -1513,10 +1513,10 @@ secondTextfieldContentLeft?: ReactElement<any, string | JSXElementConstructor<an
|
|
1513
1513
|
secondTextfieldContentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1514
1514
|
firstTextfieldTextAfter?: string | undefined;
|
1515
1515
|
secondTextfieldTextAfter?: string | undefined;
|
1516
|
-
onFocusFirstTextfield?: ((event:
|
1517
|
-
onFocusSecondTextfield?: ((event:
|
1518
|
-
onBlurFirstTextfield?: ((event:
|
1519
|
-
onBlurSecondTextfield?: ((event:
|
1516
|
+
onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
1517
|
+
onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
1518
|
+
onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
1519
|
+
onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
1520
1520
|
firstTextfieldTextBefore?: string | undefined;
|
1521
1521
|
secondTextfieldTextBefore?: string | undefined;
|
1522
1522
|
dividerVariant?: "none" | "dash" | "icon" | undefined;
|
@@ -1524,6 +1524,7 @@ dividerIcon?: ReactNode;
|
|
1524
1524
|
} & DatePickerCalendarProps & Omit<DatePickerPopoverProps, "placement"> & {
|
1525
1525
|
placement?: DatePickerRangePlacement | DatePickerRangePlacementBasic[] | undefined;
|
1526
1526
|
isDoubleCalendar?: boolean | undefined;
|
1527
|
+
closeAfterDateSelect?: boolean | undefined;
|
1527
1528
|
} & HTMLAttributes<HTMLDivElement> & RefAttributes<RangeInputRefs>>;
|
1528
1529
|
|
1529
1530
|
export { DatePickerRangePlacement }
|
@@ -2926,10 +2927,10 @@ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
|
|
2926
2927
|
onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
|
2927
2928
|
onSearchFirstValue?: BaseCallbackKeyboardInstance | undefined;
|
2928
2929
|
onSearchSecondValue?: BaseCallbackKeyboardInstance | undefined;
|
2929
|
-
onFocusFirstTextfield?: ((event:
|
2930
|
-
onFocusSecondTextfield?: ((event:
|
2931
|
-
onBlurFirstTextfield?: ((event:
|
2932
|
-
onBlurSecondTextfield?: ((event:
|
2930
|
+
onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
2931
|
+
onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
2932
|
+
onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
2933
|
+
onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
2933
2934
|
} & {
|
2934
2935
|
firstTextfieldTextBefore: string;
|
2935
2936
|
secondTextfieldTextBefore: string;
|
@@ -2965,10 +2966,10 @@ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
|
|
2965
2966
|
onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
|
2966
2967
|
onSearchFirstValue?: BaseCallbackKeyboardInstance | undefined;
|
2967
2968
|
onSearchSecondValue?: BaseCallbackKeyboardInstance | undefined;
|
2968
|
-
onFocusFirstTextfield?: ((event:
|
2969
|
-
onFocusSecondTextfield?: ((event:
|
2970
|
-
onBlurFirstTextfield?: ((event:
|
2971
|
-
onBlurSecondTextfield?: ((event:
|
2969
|
+
onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
2970
|
+
onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
2971
|
+
onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
2972
|
+
onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
2972
2973
|
} & {
|
2973
2974
|
dividerVariant?: "dash" | undefined;
|
2974
2975
|
dividerIcon?: undefined;
|
@@ -3004,10 +3005,10 @@ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
|
|
3004
3005
|
onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
|
3005
3006
|
onSearchFirstValue?: BaseCallbackKeyboardInstance | undefined;
|
3006
3007
|
onSearchSecondValue?: BaseCallbackKeyboardInstance | undefined;
|
3007
|
-
onFocusFirstTextfield?: ((event:
|
3008
|
-
onFocusSecondTextfield?: ((event:
|
3009
|
-
onBlurFirstTextfield?: ((event:
|
3010
|
-
onBlurSecondTextfield?: ((event:
|
3008
|
+
onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3009
|
+
onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3010
|
+
onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3011
|
+
onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3011
3012
|
} & {
|
3012
3013
|
dividerIcon?: ReactNode;
|
3013
3014
|
dividerVariant?: "icon" | undefined;
|
@@ -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;;;;"}
|
@@ -93,10 +93,10 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
|
|
93
93
|
secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
94
94
|
firstTextfieldTextAfter?: string | undefined;
|
95
95
|
secondTextfieldTextAfter?: string | undefined;
|
96
|
-
onFocusFirstTextfield?: ((event: import("react").
|
97
|
-
onFocusSecondTextfield?: ((event: import("react").
|
98
|
-
onBlurFirstTextfield?: ((event: import("react").
|
99
|
-
onBlurSecondTextfield?: ((event: import("react").
|
96
|
+
onFocusFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
97
|
+
onFocusSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
98
|
+
onBlurFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
99
|
+
onBlurSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
100
100
|
firstTextfieldTextBefore?: string | undefined;
|
101
101
|
secondTextfieldTextBefore?: string | undefined;
|
102
102
|
dividerVariant?: "none" | "dash" | "icon" | undefined;
|
@@ -104,4 +104,5 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
|
|
104
104
|
} & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerCalendarProps & Omit<import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerPopoverProps, "placement"> & {
|
105
105
|
placement?: import("@salutejs/plasma-new-hope/styled-components").DatePickerRangePlacement | import("@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types").DatePickerRangePlacementBasic[] | undefined;
|
106
106
|
isDoubleCalendar?: boolean | undefined;
|
107
|
+
closeAfterDateSelect?: boolean | undefined;
|
107
108
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<import("@salutejs/plasma-new-hope/styled-components").RangeInputRefs>>;
|
@@ -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;;;;;;;;;;;;;;;;;"}
|
@@ -48,10 +48,10 @@ export declare const Range: import("react").FunctionComponent<import("@salutejs/
|
|
48
48
|
onChangeSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackChangeInstance | undefined;
|
49
49
|
onSearchFirstValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
|
50
50
|
onSearchSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
|
51
|
-
onFocusFirstTextfield?: ((event: import("react").
|
52
|
-
onFocusSecondTextfield?: ((event: import("react").
|
53
|
-
onBlurFirstTextfield?: ((event: import("react").
|
54
|
-
onBlurSecondTextfield?: ((event: import("react").
|
51
|
+
onFocusFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
52
|
+
onFocusSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
53
|
+
onBlurFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
54
|
+
onBlurSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
55
55
|
} & {
|
56
56
|
firstTextfieldTextBefore: string;
|
57
57
|
secondTextfieldTextBefore: string;
|
@@ -87,10 +87,10 @@ export declare const Range: import("react").FunctionComponent<import("@salutejs/
|
|
87
87
|
onChangeSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackChangeInstance | undefined;
|
88
88
|
onSearchFirstValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
|
89
89
|
onSearchSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
|
90
|
-
onFocusFirstTextfield?: ((event: import("react").
|
91
|
-
onFocusSecondTextfield?: ((event: import("react").
|
92
|
-
onBlurFirstTextfield?: ((event: import("react").
|
93
|
-
onBlurSecondTextfield?: ((event: import("react").
|
90
|
+
onFocusFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
91
|
+
onFocusSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
92
|
+
onBlurFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
93
|
+
onBlurSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
94
94
|
} & {
|
95
95
|
dividerVariant?: "dash" | undefined;
|
96
96
|
dividerIcon?: undefined;
|
@@ -126,10 +126,10 @@ export declare const Range: import("react").FunctionComponent<import("@salutejs/
|
|
126
126
|
onChangeSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackChangeInstance | undefined;
|
127
127
|
onSearchFirstValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
|
128
128
|
onSearchSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
|
129
|
-
onFocusFirstTextfield?: ((event: import("react").
|
130
|
-
onFocusSecondTextfield?: ((event: import("react").
|
131
|
-
onBlurFirstTextfield?: ((event: import("react").
|
132
|
-
onBlurSecondTextfield?: ((event: import("react").
|
129
|
+
onFocusFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
130
|
+
onFocusSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
131
|
+
onBlurFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
132
|
+
onBlurSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
133
133
|
} & {
|
134
134
|
dividerIcon?: import("react").ReactNode;
|
135
135
|
dividerVariant?: "icon" | undefined;
|
@@ -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;;;;"}
|
@@ -185,7 +185,6 @@ const StoryRange = ({
|
|
185
185
|
const rangeRef = useRef(null);
|
186
186
|
|
187
187
|
const [isOpen, setIsOpen] = useState(false);
|
188
|
-
const [firstDate, setFirstDate] = useState<string | Date>('');
|
189
188
|
|
190
189
|
const iconSize = size === 'xs' ? 'xs' : 's';
|
191
190
|
const showDividerIcon = dividerVariant === 'icon';
|
@@ -232,12 +231,6 @@ const StoryRange = ({
|
|
232
231
|
onChangeSecondValue={(e, currentValue) => {
|
233
232
|
onChangeSecondValue(e, currentValue);
|
234
233
|
}}
|
235
|
-
onCommitFirstDate={(currentValue) => {
|
236
|
-
setFirstDate(currentValue);
|
237
|
-
}}
|
238
|
-
onCommitSecondDate={(currentValue) => {
|
239
|
-
firstDate && currentValue && setIsOpen(false);
|
240
|
-
}}
|
241
234
|
{...dividerIconProps}
|
242
235
|
{...rest}
|
243
236
|
/>
|
@@ -265,6 +258,7 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
265
258
|
size: 'l',
|
266
259
|
view: 'default',
|
267
260
|
isDoubleCalendar: false,
|
261
|
+
closeAfterDateSelect: true,
|
268
262
|
dividerVariant: 'dash',
|
269
263
|
min: new Date(2024, 1, 1),
|
270
264
|
max: new Date(2024, 12, 29),
|
@@ -185,7 +185,6 @@ const StoryRange = ({
|
|
185
185
|
const rangeRef = useRef(null);
|
186
186
|
|
187
187
|
const [isOpen, setIsOpen] = useState(false);
|
188
|
-
const [firstDate, setFirstDate] = useState<string | Date>('');
|
189
188
|
|
190
189
|
const iconSize = size === 'xs' ? 'xs' : 's';
|
191
190
|
const showDividerIcon = dividerVariant === 'icon';
|
@@ -232,12 +231,6 @@ const StoryRange = ({
|
|
232
231
|
onChangeSecondValue={(e, currentValue) => {
|
233
232
|
onChangeSecondValue(e, currentValue);
|
234
233
|
}}
|
235
|
-
onCommitFirstDate={(currentValue) => {
|
236
|
-
setFirstDate(currentValue);
|
237
|
-
}}
|
238
|
-
onCommitSecondDate={(currentValue) => {
|
239
|
-
firstDate && currentValue && setIsOpen(false);
|
240
|
-
}}
|
241
234
|
{...dividerIconProps}
|
242
235
|
{...rest}
|
243
236
|
/>
|
@@ -265,6 +258,7 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
265
258
|
size: 'l',
|
266
259
|
view: 'default',
|
267
260
|
isDoubleCalendar: false,
|
261
|
+
closeAfterDateSelect: true,
|
268
262
|
dividerVariant: 'dash',
|
269
263
|
min: new Date(2024, 1, 1),
|
270
264
|
max: new Date(2024, 12, 29),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-serv",
|
3
|
-
"version": "0.226.1-canary.
|
3
|
+
"version": "0.226.1-canary.1710.12871726145.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS SERV web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -23,16 +23,16 @@
|
|
23
23
|
"CHANGELOG.md",
|
24
24
|
"_virtual"
|
25
25
|
],
|
26
|
-
"main": "index.js",
|
27
|
-
"module": "es/index.js",
|
28
|
-
"types": "index.d.ts",
|
26
|
+
"main": "./index.js",
|
27
|
+
"module": "./es/index.js",
|
28
|
+
"types": "./index.d.ts",
|
29
29
|
"repository": {
|
30
30
|
"type": "git",
|
31
31
|
"url": "ssh://git@github.com:salute-developers/plasma.git",
|
32
32
|
"directory": "packages/sdds-serv"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@salutejs/plasma-new-hope": "0.241.1-canary.
|
35
|
+
"@salutejs/plasma-new-hope": "0.241.1-canary.1710.12871726145.0",
|
36
36
|
"@salutejs/sdds-themes": "0.31.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
@@ -110,9 +110,10 @@
|
|
110
110
|
"build:styled-components:esm": "BABEL_ENV=esm SC_NAMESPACE=sdds-srvc babel ./src --out-dir ./styled-components/es --extensions .ts,.tsx",
|
111
111
|
"build:css": "BABEL_ENV=esm SC_NAMESPACE=sdds-srvc rollup -c",
|
112
112
|
"postbuild:css": "rm -rf src-css",
|
113
|
+
"postbuild:styled-components": "rm -rf src-sc",
|
113
114
|
"postbuild:emotion": "rm -rf src-emotion",
|
114
|
-
"
|
115
|
-
"generate:typings": "tsc --outDir . --emitDeclarationOnly",
|
115
|
+
"remove:typings": "rm -rf components/**/*.d.ts && rm -f index.d.ts && rm -f mixins/index.d.ts && rm -f tokens/index.d.ts",
|
116
|
+
"generate:typings": "npm run remove:typings && tsc --outDir . --emitDeclarationOnly",
|
116
117
|
"storybook": "npm run storybook:sc",
|
117
118
|
"prestorybook:emotion": "npm run prebuild:emotion",
|
118
119
|
"storybook:emotion": "USE_EMOTION_COMPONENTS=true storybook dev -p ${PORT:-7002} -c .storybook",
|
@@ -136,5 +137,5 @@
|
|
136
137
|
"sideEffects": [
|
137
138
|
"*.css"
|
138
139
|
],
|
139
|
-
"gitHead": "
|
140
|
+
"gitHead": "9cf4121ba76072934161ff20525aef88cd0595ef"
|
140
141
|
}
|