@salutejs/plasma-b2c 1.495.1-canary.1707.12862394119.0 → 1.495.1-canary.1710.12871726145.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/plasma-b2c.api.md +18 -17
- package/components/DatePicker/DatePicker.d.ts +5 -4
- package/components/Range/Range.d.ts +12 -12
- package/css/cjs/components/Accordion/Accordion.config.js +1 -1
- package/css/cjs/components/Attach/Attach.config.js +1 -1
- package/css/cjs/components/Autocomplete/Autocomplete.config.js +1 -1
- package/css/cjs/components/Avatar/Avatar.config.js +1 -1
- package/css/cjs/components/Badge/Badge.config.js +1 -1
- package/css/cjs/components/Breadcrumbs/Breadcrumbs.config.js +1 -1
- package/css/cjs/components/Button/Button.config.js +1 -1
- package/css/cjs/components/ButtonGroup/ButtonGroup.config.js +1 -1
- package/css/cjs/components/Calendar/CalendarBase.config.js +1 -1
- package/css/cjs/components/Calendar/CalendarDouble.config.js +1 -1
- package/css/cjs/components/Cell/Cell.config.js +1 -1
- package/css/cjs/components/Checkbox/Checkbox.config.js +1 -1
- package/css/cjs/components/Chip/Chip.config.js +1 -1
- package/css/cjs/components/ChipGroup/ChipGroup.config.js +1 -1
- package/css/cjs/components/Combobox/Combobox.config.js +1 -1
- package/css/cjs/components/Combobox/Combobox.js +2 -6
- package/css/cjs/components/Combobox/Combobox.js.map +1 -1
- package/css/cjs/components/Combobox/Legacy/Combobox.config.js +1 -1
- package/css/cjs/components/Counter/Counter.config.js +1 -1
- package/css/cjs/components/DatePicker/DatePicker.config.js +1 -1
- package/css/cjs/components/Divider/Divider.config.js +1 -1
- package/css/cjs/components/Drawer/Drawer.config.js +1 -1
- package/css/cjs/components/Dropdown/Dropdown.config.js +1 -1
- package/css/cjs/components/Dropdown/Dropdown.js +1 -5
- package/css/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/css/cjs/components/Dropdown/components/DropdownItem.js +3 -8
- package/css/cjs/components/Dropdown/components/DropdownItem.js.map +1 -1
- package/css/cjs/components/Dropdown/components/DropdownList.js +1 -5
- package/css/cjs/components/Dropdown/components/DropdownList.js.map +1 -1
- package/css/cjs/components/Dropdown/components/DropdownOld.config.js +1 -1
- package/css/cjs/components/Dropdown/components/DropdownPopup.js +1 -5
- package/css/cjs/components/Dropdown/components/DropdownPopup.js.map +1 -1
- package/css/cjs/components/Dropzone/Dropzone.config.js +1 -1
- package/css/cjs/components/Editable/Editable.config.js +1 -1
- package/css/cjs/components/EmptyState/EmptyState.config.js +1 -1
- package/css/cjs/components/Grid/Grid.config.js +1 -1
- package/css/cjs/components/IconButton/IconButton.config.js +1 -1
- package/css/cjs/components/Indicator/Indicator.config.js +1 -1
- package/css/cjs/components/Link/Link.config.js +1 -1
- package/css/cjs/components/ModalBase/Modal.config.js +1 -1
- package/css/cjs/components/Note/Note.config.js +1 -1
- package/css/cjs/components/Notification/Notification.config.js +1 -1
- package/css/cjs/components/Notification/Notification.js +1 -5
- package/css/cjs/components/Notification/Notification.js.map +1 -1
- package/css/cjs/components/NumberInput/NumberInput.config.js +1 -1
- package/css/cjs/components/Pagination/Pagination.config.js +1 -1
- package/css/cjs/components/Popover/Popover.config.js +1 -1
- package/css/cjs/components/Progress/Progress.config.js +1 -1
- package/css/cjs/components/Radiobox/Radiobox.config.js +1 -1
- package/css/cjs/components/Range/Range.config.js +1 -1
- package/css/cjs/components/Rating/Rating.config.js +1 -1
- package/css/cjs/components/Segment/SegmentGroup.config.js +1 -1
- package/css/cjs/components/Segment/SegmentItem.config.js +1 -1
- package/css/cjs/components/Select/Select.config.js +1 -1
- package/css/cjs/components/Select/Select.js +1 -5
- package/css/cjs/components/Select/Select.js.map +1 -1
- package/css/cjs/components/Sheet/Sheet.config.js +1 -1
- package/css/cjs/components/Skeleton/LineSkeleton.config.js +1 -1
- package/css/cjs/components/Slider/Slider.config.js +1 -1
- package/css/cjs/components/Spinner/Spinner.config.js +1 -1
- package/css/cjs/components/Steps/Steps.config.js +1 -1
- package/css/cjs/components/Switch/Switch.config.js +1 -1
- package/css/cjs/components/Tabs/TabItem.js +2 -6
- package/css/cjs/components/Tabs/TabItem.js.map +1 -1
- package/css/cjs/components/Tabs/Tabs.js +2 -6
- package/css/cjs/components/Tabs/Tabs.js.map +1 -1
- package/css/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +1 -1
- package/css/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +1 -1
- package/css/cjs/components/Tabs/vertical/VerticalTabItem.config.js +1 -1
- package/css/cjs/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/css/cjs/components/TextArea/TextArea.config.js +1 -1
- package/css/cjs/components/TextField/TextField.config.js +1 -1
- package/css/cjs/components/TextField/TextField.js +2 -6
- package/css/cjs/components/TextField/TextField.js.map +1 -1
- package/css/cjs/components/TextFieldGroup/TextFieldGroup.config.js +1 -1
- package/css/cjs/components/Toast/Toast.config.js +1 -1
- package/css/cjs/components/Toolbar/Toolbar.config.js +1 -1
- package/css/cjs/components/Tooltip/Tooltip.config.js +1 -1
- package/css/cjs/components/Tree/Tree.config.js +1 -1
- package/css/cjs/components/Typography/Body.config.js +1 -1
- package/css/cjs/components/Typography/Dspl.config.js +1 -1
- package/css/cjs/components/Typography/Heading.config.js +1 -1
- package/css/cjs/components/Typography/Old/Body.config.js +1 -1
- package/css/cjs/components/Typography/Old/Button.config.js +1 -1
- package/css/cjs/components/Typography/Old/Caption.config.js +1 -1
- package/css/cjs/components/Typography/Old/Footnote.config.js +1 -1
- package/css/cjs/components/Typography/Old/Headline.config.js +1 -1
- package/css/cjs/components/Typography/Old/Paragraph.config.js +1 -1
- package/css/cjs/components/Typography/Old/ParagraphText.config.js +1 -1
- package/css/cjs/components/Typography/Old/Subtitle.config.js +1 -1
- package/css/cjs/components/Typography/Old/Underline.config.js +1 -1
- package/css/cjs/components/Typography/Text.config.js +1 -1
- package/package.json +3 -3
- package/rollup.config.mjs +55 -68
- package/temp/plasma-b2c.api.md +18 -17
package/rollup.config.mjs
CHANGED
@@ -36,7 +36,6 @@ export default {
|
|
36
36
|
sourcemap: true,
|
37
37
|
exports: 'named',
|
38
38
|
assetFileNames: "[name][extname]",
|
39
|
-
interop: 'auto',
|
40
39
|
}],
|
41
40
|
external: (id) => {
|
42
41
|
if (id.startsWith('regenerator-runtime') || id === 'tslib') {
|
@@ -81,78 +80,66 @@ function importCssPlugin() {
|
|
81
80
|
const styles = {};
|
82
81
|
|
83
82
|
return {
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
83
|
+
name: 'importCssPlugin',
|
84
|
+
transform(code, id) {
|
85
|
+
if (!filter(id)) {
|
86
|
+
return;
|
87
|
+
}
|
88
|
+
|
89
|
+
if (styles[id] !== code && (styles[id] || code)) {
|
90
|
+
styles[path.relative(inputDir, id)] = code
|
91
|
+
}
|
92
|
+
|
93
|
+
return { code };
|
94
|
+
},
|
95
|
+
generateBundle(options, bundle) {
|
96
|
+
const files = Object.keys(bundle);
|
97
|
+
files.forEach((file) => {
|
98
|
+
const root = bundle[file].facadeModuleId
|
99
|
+
const modules = this.getModuleInfo(root);
|
100
|
+
|
101
|
+
// ADD IMPORT FOR CSS MODULES
|
102
|
+
if (file.endsWith('.css.js')) {
|
103
|
+
const { code } = bundle[file];
|
104
|
+
// TODO: #718 cjs modules => require('./file.css');
|
105
|
+
const importString = `import './${file.replace('.css.js', '.css.css')}';\n`;
|
106
|
+
this.emitFile({
|
107
|
+
type: 'asset',
|
108
|
+
fileName: file,
|
109
|
+
source: importString + code,
|
110
|
+
});
|
111
|
+
} else if (file.endsWith('.js')) {
|
112
|
+
// ADD IMPORT FOR LINARIA
|
113
|
+
// linaria
|
114
|
+
const cssFiles = modules.importedIds
|
115
|
+
.filter(a => a.includes(inputDir))
|
116
|
+
.filter(a => !a.endsWith('.module.css') && a.endsWith('.css'))
|
117
|
+
.map(a => path.relative(inputDir, a))
|
118
|
+
|
119
|
+
if (!cssFiles.length) {
|
120
|
+
return;
|
121
|
+
}
|
122
|
+
const imports = [];
|
123
|
+
cssFiles.forEach(cssFile => {
|
124
|
+
imports.push(`import './${path.relative(path.dirname(file), cssFile)}';`);
|
125
|
+
this.emitFile({
|
126
|
+
type: 'asset',
|
127
|
+
fileName: cssFile,
|
128
|
+
source: styles[cssFile],
|
129
|
+
});
|
130
|
+
})
|
131
|
+
if (imports.length) {
|
105
132
|
const { code } = bundle[file];
|
106
|
-
const data = file.replace('.css.js', '.css.css');
|
107
|
-
|
108
|
-
const requireString =
|
109
|
-
options.format === 'cjs' ? `require('./${data}');\n` : `import './${data}';\n`;
|
110
|
-
|
111
133
|
this.emitFile({
|
112
134
|
type: 'asset',
|
113
135
|
fileName: file,
|
114
|
-
source:
|
115
|
-
});
|
116
|
-
} else if (file.endsWith('.js')) {
|
117
|
-
// ADD IMPORT FOR LINARIA
|
118
|
-
// linaria
|
119
|
-
const cssFiles = modules.importedIds
|
120
|
-
.filter((a) => a.includes(inputDir))
|
121
|
-
.filter((a) => !a.endsWith('.module.css') && a.endsWith('.css'))
|
122
|
-
.map((a) => path.relative(inputDir, a));
|
123
|
-
|
124
|
-
if (!cssFiles.length) {
|
125
|
-
return;
|
126
|
-
}
|
127
|
-
|
128
|
-
const imports = [];
|
129
|
-
|
130
|
-
cssFiles.forEach((cssFile) => {
|
131
|
-
const data = path.relative(path.dirname(file), cssFile);
|
132
|
-
|
133
|
-
const importStatement =
|
134
|
-
options.format === 'cjs' ? `require('./${data}');` : `import './${data}';`;
|
135
|
-
|
136
|
-
imports.push(importStatement);
|
137
|
-
|
138
|
-
this.emitFile({
|
139
|
-
type: 'asset',
|
140
|
-
fileName: cssFile,
|
141
|
-
source: styles[cssFile],
|
142
|
-
});
|
136
|
+
source: imports.join('\n') + '\n' + code,
|
143
137
|
});
|
144
138
|
|
145
|
-
|
146
|
-
const { code } = bundle[file];
|
147
|
-
|
148
|
-
this.emitFile({
|
149
|
-
type: 'asset',
|
150
|
-
fileName: file,
|
151
|
-
source: `${imports.join('\n')}\n${code}`,
|
152
|
-
});
|
153
|
-
}
|
139
|
+
console.log(`Added css: ${cssFiles} for ${file}`);
|
154
140
|
}
|
155
|
-
}
|
156
|
-
}
|
141
|
+
}
|
142
|
+
});
|
143
|
+
},
|
157
144
|
};
|
158
|
-
}
|
145
|
+
}
|
package/temp/plasma-b2c.api.md
CHANGED
@@ -80,7 +80,6 @@ import { CellTextbox } from '@salutejs/plasma-new-hope/styled-components';
|
|
80
80
|
import { CellTextboxLabel } from '@salutejs/plasma-new-hope/styled-components';
|
81
81
|
import { CellTextboxSubtitle } from '@salutejs/plasma-new-hope/styled-components';
|
82
82
|
import { CellTextboxTitle } from '@salutejs/plasma-new-hope/styled-components';
|
83
|
-
import { ChangeEvent } from 'react';
|
84
83
|
import { ChangeInstanceCallback } from '@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types';
|
85
84
|
import { CheckboxProps as CheckboxProps_2 } from '@salutejs/plasma-new-hope/types/components/Checkbox/Checkbox.types';
|
86
85
|
import { ChipGroupProps } from '@salutejs/plasma-new-hope/types/components/ChipGroup/ChipGroup.types';
|
@@ -152,6 +151,7 @@ import { FC } from 'react';
|
|
152
151
|
import { FileProcessHandler } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
|
153
152
|
import { Filter } from '@salutejs/plasma-new-hope/types/engines/types';
|
154
153
|
import { FlowProps } from '@salutejs/plasma-new-hope/styled-components';
|
154
|
+
import { FocusEvent as FocusEvent_2 } from 'react';
|
155
155
|
import { FocusProps } from '@salutejs/plasma-core';
|
156
156
|
import { formatCurrency } from '@salutejs/plasma-core';
|
157
157
|
import { FormTypeNumber } from '@salutejs/plasma-new-hope/types/types/FormType';
|
@@ -1797,10 +1797,10 @@ secondTextfieldContentLeft?: ReactElement<any, string | JSXElementConstructor<an
|
|
1797
1797
|
secondTextfieldContentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
|
1798
1798
|
firstTextfieldTextAfter?: string | undefined;
|
1799
1799
|
secondTextfieldTextAfter?: string | undefined;
|
1800
|
-
onFocusFirstTextfield?: ((event:
|
1801
|
-
onFocusSecondTextfield?: ((event:
|
1802
|
-
onBlurFirstTextfield?: ((event:
|
1803
|
-
onBlurSecondTextfield?: ((event:
|
1800
|
+
onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
1801
|
+
onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
1802
|
+
onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
1803
|
+
onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
1804
1804
|
firstTextfieldTextBefore?: string | undefined;
|
1805
1805
|
secondTextfieldTextBefore?: string | undefined;
|
1806
1806
|
dividerVariant?: "none" | "icon" | "dash" | undefined;
|
@@ -1808,6 +1808,7 @@ dividerIcon?: ReactNode;
|
|
1808
1808
|
} & DatePickerCalendarProps & Omit<DatePickerPopoverProps, "placement"> & {
|
1809
1809
|
placement?: DatePickerRangePlacement | DatePickerRangePlacementBasic[] | undefined;
|
1810
1810
|
isDoubleCalendar?: boolean | undefined;
|
1811
|
+
closeAfterDateSelect?: boolean | undefined;
|
1811
1812
|
} & HTMLAttributes<HTMLDivElement> & RefAttributes<RangeInputRefs>>;
|
1812
1813
|
|
1813
1814
|
export { DatePickerRangePlacement }
|
@@ -3366,10 +3367,10 @@ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
|
|
3366
3367
|
onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
|
3367
3368
|
onSearchFirstValue?: BaseCallbackKeyboardInstance | undefined;
|
3368
3369
|
onSearchSecondValue?: BaseCallbackKeyboardInstance | undefined;
|
3369
|
-
onFocusFirstTextfield?: ((event:
|
3370
|
-
onFocusSecondTextfield?: ((event:
|
3371
|
-
onBlurFirstTextfield?: ((event:
|
3372
|
-
onBlurSecondTextfield?: ((event:
|
3370
|
+
onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3371
|
+
onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3372
|
+
onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3373
|
+
onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3373
3374
|
} & {
|
3374
3375
|
firstTextfieldTextBefore: string;
|
3375
3376
|
secondTextfieldTextBefore: string;
|
@@ -3405,10 +3406,10 @@ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
|
|
3405
3406
|
onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
|
3406
3407
|
onSearchFirstValue?: BaseCallbackKeyboardInstance | undefined;
|
3407
3408
|
onSearchSecondValue?: BaseCallbackKeyboardInstance | undefined;
|
3408
|
-
onFocusFirstTextfield?: ((event:
|
3409
|
-
onFocusSecondTextfield?: ((event:
|
3410
|
-
onBlurFirstTextfield?: ((event:
|
3411
|
-
onBlurSecondTextfield?: ((event:
|
3409
|
+
onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3410
|
+
onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3411
|
+
onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3412
|
+
onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3412
3413
|
} & {
|
3413
3414
|
dividerVariant?: "dash" | undefined;
|
3414
3415
|
dividerIcon?: undefined;
|
@@ -3444,10 +3445,10 @@ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
|
|
3444
3445
|
onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
|
3445
3446
|
onSearchFirstValue?: BaseCallbackKeyboardInstance | undefined;
|
3446
3447
|
onSearchSecondValue?: BaseCallbackKeyboardInstance | undefined;
|
3447
|
-
onFocusFirstTextfield?: ((event:
|
3448
|
-
onFocusSecondTextfield?: ((event:
|
3449
|
-
onBlurFirstTextfield?: ((event:
|
3450
|
-
onBlurSecondTextfield?: ((event:
|
3448
|
+
onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3449
|
+
onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3450
|
+
onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3451
|
+
onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
|
3451
3452
|
} & {
|
3452
3453
|
dividerIcon?: ReactNode;
|
3453
3454
|
dividerVariant?: "icon" | undefined;
|