@salutejs/plasma-sb-utils 0.225.0-next-platform-ai.0 → 0.225.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/DatePicker/DatePicker.d.ts +4 -0
- package/lib/components/DatePicker/fixtures.d.ts +1 -0
- package/lib/components/DatePicker/fixtures.js +1 -0
- package/lib/components/DatePicker/fixtures.js.map +1 -1
- package/lib/components/DatePicker/meta.d.ts +4 -0
- package/lib/components/DatePicker/meta.js +14 -1
- package/lib/components/DatePicker/meta.js.map +1 -1
- package/lib/components/DatePicker/stories.js +9 -2
- package/lib/components/DatePicker/stories.js.map +1 -1
- package/lib/components/Dropdown/Dropdown.d.ts +79 -0
- package/lib/components/Dropdown/Dropdown.js +40 -0
- package/lib/components/Dropdown/Dropdown.js.map +1 -0
- package/lib/components/Dropdown/fixtures.d.ts +46 -0
- package/lib/components/Dropdown/fixtures.js +217 -0
- package/lib/components/Dropdown/fixtures.js.map +1 -0
- package/lib/components/Dropdown/index.d.ts +1 -0
- package/lib/components/Dropdown/index.js +2 -0
- package/lib/components/Dropdown/index.js.map +1 -0
- package/lib/components/Dropdown/meta.d.ts +72 -0
- package/lib/components/Dropdown/meta.js +63 -0
- package/lib/components/Dropdown/meta.js.map +1 -0
- package/lib/components/Dropdown/stories.d.ts +2 -0
- package/lib/components/Dropdown/stories.js +34 -0
- package/lib/components/Dropdown/stories.js.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -57,6 +57,8 @@ export declare const getDatePickerStories: (config: CreateDatePickerStoriesProps
|
|
|
57
57
|
hasShortcuts: boolean;
|
|
58
58
|
shortcutsWidth: string;
|
|
59
59
|
shortcutsPlacement: string;
|
|
60
|
+
placement: string;
|
|
61
|
+
disableFlip: boolean;
|
|
60
62
|
};
|
|
61
63
|
argTypes: any;
|
|
62
64
|
};
|
|
@@ -123,6 +125,8 @@ export declare const getDatePickerRangeStories: (config: CreateDatePickerStories
|
|
|
123
125
|
hasShortcuts: boolean;
|
|
124
126
|
shortcutsWidth: string;
|
|
125
127
|
shortcutsPlacement: string;
|
|
128
|
+
placement: string;
|
|
129
|
+
disableFlip: boolean;
|
|
126
130
|
};
|
|
127
131
|
argTypes: any;
|
|
128
132
|
};
|
|
@@ -10,6 +10,7 @@ export declare const hintSizes: string[];
|
|
|
10
10
|
export declare const hintTriggers: string[];
|
|
11
11
|
export declare const hintTargetPlacements: string[];
|
|
12
12
|
export declare const placements: string[];
|
|
13
|
+
export declare const datePickerRangePlacements: string[];
|
|
13
14
|
export declare const shortcutsPlacements: string[];
|
|
14
15
|
export declare const dateShortcuts: {
|
|
15
16
|
value: Date;
|
|
@@ -24,6 +24,7 @@ export var placements = [
|
|
|
24
24
|
'right-end',
|
|
25
25
|
'auto',
|
|
26
26
|
];
|
|
27
|
+
export var datePickerRangePlacements = ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end'];
|
|
27
28
|
export var shortcutsPlacements = ['left', 'right'];
|
|
28
29
|
export var dateShortcuts = [
|
|
29
30
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/DatePicker/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,WAAW,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAChD,MAAM,CAAC,IAAM,eAAe,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAClD,MAAM,CAAC,IAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACpD,MAAM,CAAC,IAAM,UAAU,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;AAC9D,MAAM,CAAC,IAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACjD,MAAM,CAAC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AAC,CAAC;QACtD,KAAK,EAAE,sBAAsB;KAChC;IACD;QACI,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC;QACzC,KAAK,EAAE,6BAA6B;KACvC;CACJ,CAAC"}
|
|
@@ -55,6 +55,8 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
55
55
|
hasShortcuts: boolean;
|
|
56
56
|
shortcutsWidth: string;
|
|
57
57
|
shortcutsPlacement: string;
|
|
58
|
+
placement: string;
|
|
59
|
+
disableFlip: boolean;
|
|
58
60
|
};
|
|
59
61
|
argTypes: any;
|
|
60
62
|
};
|
|
@@ -116,6 +118,8 @@ export declare const createRangeMeta: ({ component, componentConfig, title, defa
|
|
|
116
118
|
hasShortcuts: boolean;
|
|
117
119
|
shortcutsWidth: string;
|
|
118
120
|
shortcutsPlacement: string;
|
|
121
|
+
placement: string;
|
|
122
|
+
disableFlip: boolean;
|
|
119
123
|
};
|
|
120
124
|
argTypes: any;
|
|
121
125
|
};
|
|
@@ -19,7 +19,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
21
|
import { disableProps, InSpacingDecorator } from '../../index';
|
|
22
|
-
import { labelPlacements, requiredPlacements, formats, eventTooltipSizes, dividers, appearances, inputViews, placements, hintTriggers, hintTargetPlacements, hintSizes, hintViews, shortcutsPlacements, } from './fixtures';
|
|
22
|
+
import { labelPlacements, requiredPlacements, formats, eventTooltipSizes, dividers, appearances, inputViews, placements, hintTriggers, hintTargetPlacements, hintSizes, hintViews, shortcutsPlacements, datePickerRangePlacements, } from './fixtures';
|
|
23
23
|
var commonArgs = {
|
|
24
24
|
appearance: 'default',
|
|
25
25
|
hasClearDivider: false,
|
|
@@ -59,6 +59,8 @@ var commonArgs = {
|
|
|
59
59
|
hasShortcuts: false,
|
|
60
60
|
shortcutsWidth: '11.5rem',
|
|
61
61
|
shortcutsPlacement: 'left',
|
|
62
|
+
placement: 'bottom',
|
|
63
|
+
disableFlip: true,
|
|
62
64
|
};
|
|
63
65
|
var getCommonArgTypes = function (componentConfig, additionalArgTypes) {
|
|
64
66
|
if (additionalArgTypes === void 0) { additionalArgTypes = {}; }
|
|
@@ -205,6 +207,9 @@ var getCommonArgTypes = function (componentConfig, additionalArgTypes) {
|
|
|
205
207
|
type: 'select',
|
|
206
208
|
},
|
|
207
209
|
if: { arg: 'hasShortcuts', truthy: true },
|
|
210
|
+
}, disableFlip: {
|
|
211
|
+
control: { type: 'boolean' },
|
|
212
|
+
table: { category: 'dropdown' },
|
|
208
213
|
} }, additionalArgTypes));
|
|
209
214
|
};
|
|
210
215
|
var commonDisabledArgs = [
|
|
@@ -244,6 +249,10 @@ export var createMeta = function (_a) {
|
|
|
244
249
|
}, inputView: {
|
|
245
250
|
options: inputViews,
|
|
246
251
|
control: { type: 'select' },
|
|
252
|
+
}, placement: {
|
|
253
|
+
options: placements,
|
|
254
|
+
control: { type: 'select' },
|
|
255
|
+
table: { category: 'dropdown' },
|
|
247
256
|
} }), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
|
|
248
257
|
};
|
|
249
258
|
};
|
|
@@ -265,6 +274,10 @@ export var createRangeMeta = function (_a) {
|
|
|
265
274
|
}, secondInputView: {
|
|
266
275
|
options: inputViews,
|
|
267
276
|
control: { type: 'select' },
|
|
277
|
+
}, placement: {
|
|
278
|
+
options: datePickerRangePlacements,
|
|
279
|
+
control: { type: 'select' },
|
|
280
|
+
table: { category: 'dropdown' },
|
|
268
281
|
} }), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
|
|
269
282
|
};
|
|
270
283
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/DatePicker/meta.ts"],"names":[],"mappings":";;;;;;;;;;;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;gBACjB,OAAO,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACjB;aACJ,EACD,cAAc,EAAE;gBACZ,OAAO,EAAE,UAAU;gBACnB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,eAAe,EAAE;gBACb,OAAO,EAAE,UAAU;gBACnB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,SAAS,EAAE;gBACP,OAAO,EAAE,yBAAyB;gBAClC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;aAClC,KACE,YAAY,iCAAK,kBAAkB,SAAK,gBAAgB,QAAE,CAChE;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -32,6 +32,13 @@ var onFocus = action('onFocus');
|
|
|
32
32
|
var onToggle = action('onToggle');
|
|
33
33
|
var onChangeFirstValue = action('onChangeFirstValue');
|
|
34
34
|
var onChangeSecondValue = action('onChangeSecondValue');
|
|
35
|
+
var toValidDate = function (value) {
|
|
36
|
+
if (value === undefined || value === null) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
var date = value instanceof Date ? value : new Date(value);
|
|
40
|
+
return Number.isNaN(date.getTime()) ? undefined : date;
|
|
41
|
+
};
|
|
35
42
|
export var createDefaultStory = function (DatePicker) {
|
|
36
43
|
return function (_a) {
|
|
37
44
|
var appearance = _a.appearance, enableContentLeft = _a.enableContentLeft, enableContentRight = _a.enableContentRight, inputView = _a.inputView, size = _a.size, lang = _a.lang, format = _a.format, min = _a.min, max = _a.max, eventTooltipSize = _a.eventTooltipSize, enableEventTooltip = _a.enableEventTooltip, hasShortcuts = _a.hasShortcuts, shortcutsPlacement = _a.shortcutsPlacement, shortcutsWidth = _a.shortcutsWidth, rest = __rest(_a, ["appearance", "enableContentLeft", "enableContentRight", "inputView", "size", "lang", "format", "min", "max", "eventTooltipSize", "enableEventTooltip", "hasShortcuts", "shortcutsPlacement", "shortcutsWidth"]);
|
|
@@ -48,7 +55,7 @@ export var createDefaultStory = function (DatePicker) {
|
|
|
48
55
|
return (React.createElement(DatePicker, __assign({ opened: isOpen, appearance: appearance, size: size, contentLeft: enableContentLeft ? React.createElement(IconCalendar, { color: "inherit", size: iconSize }) : undefined, contentRight: enableContentRight ? React.createElement(IconSearch, { color: "inherit", size: iconSize }) : undefined, onBlur: onBlur, onFocus: onFocus, onToggle: function (is) {
|
|
49
56
|
setIsOpen(is);
|
|
50
57
|
onToggle(is);
|
|
51
|
-
}, onChangeValue: onChangeValue, onCommitDate: onCommitDate, lang: lang, format: format, min: min, max: max, eventTooltipOptions: {
|
|
58
|
+
}, onChangeValue: onChangeValue, onCommitDate: onCommitDate, lang: lang, format: format, min: toValidDate(min), max: toValidDate(max), eventTooltipOptions: {
|
|
52
59
|
bodyWrapper: EventTooltipBody,
|
|
53
60
|
size: eventTooltipSize,
|
|
54
61
|
}, eventList: eventList, eventMonthList: eventMonthList, eventQuarterList: eventQuarterList, eventYearList: eventYearList, autoComplete: "off", dateShortcutsPlacement: shortcutsPlacement, dateShortcutsWidth: shortcutsWidth }, (hasShortcuts && { dateShortcuts: dateShortcuts }), inputViews, rest)));
|
|
@@ -79,7 +86,7 @@ export var createRangeStory = function (DatePickerRange) {
|
|
|
79
86
|
return (React.createElement(DatePickerRange, __assign({ ref: rangeRef, opened: isOpen, appearance: appearance, size: size, contentLeft: enableContentLeft ? React.createElement(IconCalendar, { color: "inherit", size: iconSize }) : undefined, contentRight: enableContentRight ? React.createElement(IconSearch, { color: "inherit", size: getIconSize(size) }) : undefined, firstTextfieldContentLeft: enableFirstTextfieldContentLeft ? React.createElement(IconPlasma, { color: "inherit", size: iconSize }) : undefined, firstTextfieldContentRight: enableFirstTextfieldContentRight ? React.createElement(IconPlasma, { color: "inherit", size: iconSize }) : undefined, secondTextfieldContentLeft: enableSecondTextfieldContentLeft ? React.createElement(IconPlasma, { color: "inherit", size: iconSize }) : undefined, secondTextfieldContentRight: enableSecondTextfieldContentRight ? React.createElement(IconPlasma, { color: "inherit", size: iconSize }) : undefined, firstTextfieldTextBefore: showDefaultTextBefore ? firstTextfieldTextBefore || 'С' : firstTextfieldTextBefore, secondTextfieldTextBefore: showDefaultTextBefore ? secondTextfieldTextBefore || 'ПО' : secondTextfieldTextBefore, onToggle: function (is) {
|
|
80
87
|
setIsOpen(is);
|
|
81
88
|
onToggle(is);
|
|
82
|
-
}, onChangeFirstValue: onChangeFirstValue, onChangeSecondValue: onChangeSecondValue, lang: lang, min: min, max: max, autoComplete: "off", eventTooltipOptions: {
|
|
89
|
+
}, onChangeFirstValue: onChangeFirstValue, onChangeSecondValue: onChangeSecondValue, lang: lang, min: toValidDate(min), max: toValidDate(max), autoComplete: "off", eventTooltipOptions: {
|
|
83
90
|
bodyWrapper: EventTooltipBody,
|
|
84
91
|
size: eventTooltipSize,
|
|
85
92
|
}, eventList: eventList, eventMonthList: eventMonthList, eventQuarterList: eventQuarterList, eventYearList: eventYearList, dateShortcutsPlacement: shortcutsPlacement, dateShortcutsWidth: shortcutsWidth }, (hasShortcuts && { dateShortcuts: dateShortcutsRange }), inputsViews, dividerIconProps, rest)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/DatePicker/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE9F,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;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C,YAAY,IAAI,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC,EACvD,WAAW,EACX,gBAAgB,EAChB,IAAI,EACV,CACL,CAAC;IACN,CAAC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type CreateStoriesProps = {
|
|
3
|
+
component: any;
|
|
4
|
+
componentConfig: any;
|
|
5
|
+
additionalComponents: {
|
|
6
|
+
Button: React.ComponentType<any>;
|
|
7
|
+
};
|
|
8
|
+
disablePropsList?: string[];
|
|
9
|
+
defaultArgs?: {};
|
|
10
|
+
};
|
|
11
|
+
export declare const getDropdownStories: (config: CreateStoriesProps) => {
|
|
12
|
+
meta: {
|
|
13
|
+
title: string;
|
|
14
|
+
decorators: import("@storybook/react").Decorator[];
|
|
15
|
+
component: any;
|
|
16
|
+
args: {
|
|
17
|
+
size: string;
|
|
18
|
+
variant: string;
|
|
19
|
+
placement: string;
|
|
20
|
+
trigger: string;
|
|
21
|
+
openByRightClick: boolean;
|
|
22
|
+
offset: number[];
|
|
23
|
+
listWidth: string;
|
|
24
|
+
alwaysOpened: boolean;
|
|
25
|
+
closeOnOverlayClick: boolean;
|
|
26
|
+
closeOnSelect: boolean;
|
|
27
|
+
};
|
|
28
|
+
argTypes: {
|
|
29
|
+
placement: {
|
|
30
|
+
options: string[];
|
|
31
|
+
control: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
trigger: {
|
|
36
|
+
options: string[];
|
|
37
|
+
control: {
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
openByRightClick: {
|
|
42
|
+
control: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
size: {
|
|
47
|
+
options: any;
|
|
48
|
+
control: {
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
variant: {
|
|
53
|
+
options: string[];
|
|
54
|
+
control: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
closeOnOverlayClick: {
|
|
59
|
+
control: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
closeOnSelect: {
|
|
64
|
+
control: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
listWidth: {
|
|
69
|
+
control: {
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
Default: {
|
|
76
|
+
render: (args: any) => JSX.Element;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { getConfigVariations } from '../../helpers';
|
|
25
|
+
import { createMeta } from './meta';
|
|
26
|
+
import { createDefaultStory } from './stories';
|
|
27
|
+
export var getDropdownStories = function (config) {
|
|
28
|
+
var component = config.component, componentConfig = config.componentConfig, additionalComponents = config.additionalComponents, rest = __rest(config, ["component", "componentConfig", "additionalComponents"]);
|
|
29
|
+
var Button = additionalComponents.Button;
|
|
30
|
+
var meta = createMeta(__assign({ component: component, componentConfig: getConfigVariations(componentConfig) }, rest));
|
|
31
|
+
var SingleStoryComponent = createDefaultStory(component, { Button: Button });
|
|
32
|
+
var Default = {
|
|
33
|
+
render: function (args) { return React.createElement(SingleStoryComponent, __assign({}, args)); },
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
meta: meta,
|
|
37
|
+
Default: Default,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=Dropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAY/C,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,MAA0B;IACjD,IAAA,SAAS,GAAqD,MAAM,UAA3D,EAAE,eAAe,GAAoC,MAAM,gBAA1C,EAAE,oBAAoB,GAAc,MAAM,qBAApB,EAAK,IAAI,UAAK,MAAM,EAAtE,wDAA6D,CAAF,CAAY;IACrE,IAAA,MAAM,GAAK,oBAAoB,OAAzB,CAA0B;IAExC,IAAM,IAAI,GAAG,UAAU,YACnB,SAAS,WAAA,EACT,eAAe,EAAE,mBAAmB,CAAC,eAAe,CAAC,IAClD,IAAI,EACT,CAAC;IAEH,IAAM,oBAAoB,GAAG,kBAAkB,CAAC,SAAS,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;IAEvE,IAAM,OAAO,GAAG;QACZ,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,oBAAoB,eAAK,IAAI,EAAI,EAAlC,CAAkC;KAC5D,CAAC;IAEF,OAAO;QACH,IAAI,MAAA;QACJ,OAAO,SAAA;KACV,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const placements: string[];
|
|
2
|
+
export declare const triggers: string[];
|
|
3
|
+
export declare const variant: string[];
|
|
4
|
+
export declare const items: ({
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
items?: undefined;
|
|
8
|
+
dividerBefore?: undefined;
|
|
9
|
+
dividerAfter?: undefined;
|
|
10
|
+
disabled?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
items: {
|
|
15
|
+
value: string;
|
|
16
|
+
label: string;
|
|
17
|
+
items: {
|
|
18
|
+
value: string;
|
|
19
|
+
label: string;
|
|
20
|
+
}[];
|
|
21
|
+
}[];
|
|
22
|
+
dividerBefore?: undefined;
|
|
23
|
+
dividerAfter?: undefined;
|
|
24
|
+
disabled?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
value: string;
|
|
27
|
+
label: string;
|
|
28
|
+
dividerBefore: boolean;
|
|
29
|
+
dividerAfter: boolean;
|
|
30
|
+
items: {
|
|
31
|
+
value: string;
|
|
32
|
+
label: string;
|
|
33
|
+
items: {
|
|
34
|
+
value: string;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
}[];
|
|
38
|
+
disabled?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
value: string;
|
|
41
|
+
label: string;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
items?: undefined;
|
|
44
|
+
dividerBefore?: undefined;
|
|
45
|
+
dividerAfter?: undefined;
|
|
46
|
+
})[];
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
export var placements = ['auto', 'top', 'right', 'bottom', 'left'];
|
|
2
|
+
export var triggers = ['click', 'hover'];
|
|
3
|
+
export var variant = ['normal', 'tight'];
|
|
4
|
+
export var items = [
|
|
5
|
+
{
|
|
6
|
+
value: 'north_america',
|
|
7
|
+
label: 'Северная Америка',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
value: 'south_america',
|
|
11
|
+
label: 'Южная Америка',
|
|
12
|
+
items: [
|
|
13
|
+
{
|
|
14
|
+
value: 'brazil',
|
|
15
|
+
label: 'Бразилия',
|
|
16
|
+
items: [
|
|
17
|
+
{
|
|
18
|
+
value: 'rio_de_janeiro',
|
|
19
|
+
label: 'Рио-де-Жанейро',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: 'sao_paulo',
|
|
23
|
+
label: 'Сан-Паулу',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
value: 'argentina',
|
|
29
|
+
label: 'Аргентина',
|
|
30
|
+
items: [
|
|
31
|
+
{
|
|
32
|
+
value: 'buenos_aires',
|
|
33
|
+
label: 'Буэнос-Айрес',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
value: 'cordoba',
|
|
37
|
+
label: 'Кордова',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: 'colombia',
|
|
43
|
+
label: 'Колумбия',
|
|
44
|
+
items: [
|
|
45
|
+
{
|
|
46
|
+
value: 'bogota',
|
|
47
|
+
label: 'Богота',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
value: 'medellin',
|
|
51
|
+
label: 'Медельин',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
value: 'europe',
|
|
59
|
+
label: 'Европа',
|
|
60
|
+
dividerBefore: true,
|
|
61
|
+
dividerAfter: true,
|
|
62
|
+
items: [
|
|
63
|
+
{
|
|
64
|
+
value: 'france',
|
|
65
|
+
label: 'Франция',
|
|
66
|
+
items: [
|
|
67
|
+
{
|
|
68
|
+
value: 'paris',
|
|
69
|
+
label: 'Париж',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
value: 'lyon',
|
|
73
|
+
label: 'Лион',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
value: 'germany',
|
|
79
|
+
label: 'Германия',
|
|
80
|
+
items: [
|
|
81
|
+
{
|
|
82
|
+
value: 'berlin',
|
|
83
|
+
label: 'Берлин',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
value: 'munich',
|
|
87
|
+
label: 'Мюнхен',
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
value: 'italy',
|
|
93
|
+
label: 'Италия',
|
|
94
|
+
items: [
|
|
95
|
+
{
|
|
96
|
+
value: 'rome',
|
|
97
|
+
label: 'Рим',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
value: 'milan',
|
|
101
|
+
label: 'Милан',
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
value: 'spain',
|
|
107
|
+
label: 'Испания',
|
|
108
|
+
items: [
|
|
109
|
+
{
|
|
110
|
+
value: 'madrid',
|
|
111
|
+
label: 'Мадрид',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
value: 'barcelona',
|
|
115
|
+
label: 'Барселона',
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
value: 'united_kingdom',
|
|
121
|
+
label: 'Великобритания',
|
|
122
|
+
items: [
|
|
123
|
+
{
|
|
124
|
+
value: 'london',
|
|
125
|
+
label: 'Лондон',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
value: 'manchester',
|
|
129
|
+
label: 'Манчестер',
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
value: 'asia',
|
|
137
|
+
label: 'Азия',
|
|
138
|
+
items: [
|
|
139
|
+
{
|
|
140
|
+
value: 'china',
|
|
141
|
+
label: 'Китай',
|
|
142
|
+
items: [
|
|
143
|
+
{
|
|
144
|
+
value: 'beijing',
|
|
145
|
+
label: 'Пекин',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
value: 'shanghai',
|
|
149
|
+
label: 'Шанхай',
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
value: 'japan',
|
|
155
|
+
label: 'Япония',
|
|
156
|
+
items: [
|
|
157
|
+
{
|
|
158
|
+
value: 'tokyo',
|
|
159
|
+
label: 'Токио',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
value: 'osaka',
|
|
163
|
+
label: 'Осака',
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
value: 'india',
|
|
169
|
+
label: 'Индия',
|
|
170
|
+
items: [
|
|
171
|
+
{
|
|
172
|
+
value: 'delhi',
|
|
173
|
+
label: 'Дели',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
value: 'mumbai',
|
|
177
|
+
label: 'Мумбаи',
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
value: 'south_korea',
|
|
183
|
+
label: 'Южная Корея',
|
|
184
|
+
items: [
|
|
185
|
+
{
|
|
186
|
+
value: 'seoul',
|
|
187
|
+
label: 'Сеул',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
value: 'busan',
|
|
191
|
+
label: 'Пусан',
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
value: 'thailand',
|
|
197
|
+
label: 'Таиланд',
|
|
198
|
+
items: [
|
|
199
|
+
{
|
|
200
|
+
value: 'bangkok',
|
|
201
|
+
label: 'Бангкок',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
value: 'phuket',
|
|
205
|
+
label: 'Пхукет',
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
value: 'africa',
|
|
213
|
+
label: 'Африка',
|
|
214
|
+
disabled: true,
|
|
215
|
+
},
|
|
216
|
+
];
|
|
217
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/Dropdown/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,UAAU,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AACrE,MAAM,CAAC,IAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC3C,MAAM,CAAC,IAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAE3C,MAAM,CAAC,IAAM,KAAK,GAAG;IACjB;QACI,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,kBAAkB;KAC5B;IACD;QACI,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE;YACH;gBACI,KAAK,EAAE,QAAQ;gBACf,KAAK,EAAE,UAAU;gBACjB,KAAK,EAAE;oBACH;wBACI,KAAK,EAAE,gBAAgB;wBACvB,KAAK,EAAE,gBAAgB;qBAC1B;oBACD;wBACI,KAAK,EAAE,WAAW;wBAClB,KAAK,EAAE,WAAW;qBAC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M;qBAChB;oBACD;wBACI,KAAK,EAAE,OAAO;wBACd,KAAK,EAAE,OAAO;qBACjB;iBACJ;aACJ;YACD;gBACI,KAAK,EAAE,UAAU;gBACjB,KAAK,EAAE,SAAS;gBAChB,KAAK,EAAE;oBACH;wBACI,KAAK,EAAE,SAAS;wBAChB,KAAK,EAAE,SAAS;qBACnB;oBACD;wBACI,KAAK,EAAE,QAAQ;wBACf,KAAK,EAAE,QAAQ;qBAClB;iBACJ;aACJ;SACJ;KACJ;IACD;QACI,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,IAAI;KACjB;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dropdown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
type CreateMetaProps = {
|
|
2
|
+
component: any;
|
|
3
|
+
componentConfig: any;
|
|
4
|
+
title?: string;
|
|
5
|
+
defaultArgs?: {};
|
|
6
|
+
additionalArgTypes?: {};
|
|
7
|
+
disablePropsList?: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const createMeta: ({ component, componentConfig, title, defaultArgs, additionalArgTypes, disablePropsList, }: CreateMetaProps) => {
|
|
10
|
+
title: string;
|
|
11
|
+
decorators: import("@storybook/react").Decorator[];
|
|
12
|
+
component: any;
|
|
13
|
+
args: {
|
|
14
|
+
size: string;
|
|
15
|
+
variant: string;
|
|
16
|
+
placement: string;
|
|
17
|
+
trigger: string;
|
|
18
|
+
openByRightClick: boolean;
|
|
19
|
+
offset: number[];
|
|
20
|
+
listWidth: string;
|
|
21
|
+
alwaysOpened: boolean;
|
|
22
|
+
closeOnOverlayClick: boolean;
|
|
23
|
+
closeOnSelect: boolean;
|
|
24
|
+
};
|
|
25
|
+
argTypes: {
|
|
26
|
+
placement: {
|
|
27
|
+
options: string[];
|
|
28
|
+
control: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
trigger: {
|
|
33
|
+
options: string[];
|
|
34
|
+
control: {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
openByRightClick: {
|
|
39
|
+
control: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
options: any;
|
|
45
|
+
control: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
variant: {
|
|
50
|
+
options: string[];
|
|
51
|
+
control: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
closeOnOverlayClick: {
|
|
56
|
+
control: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
closeOnSelect: {
|
|
61
|
+
control: {
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
listWidth: {
|
|
66
|
+
control: {
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
21
|
+
import { disableProps, InSpacingDecorator } from '../../index';
|
|
22
|
+
import { variant, placements, triggers } from './fixtures';
|
|
23
|
+
export var createMeta = function (_a) {
|
|
24
|
+
var component = _a.component, componentConfig = _a.componentConfig, _b = _a.title, title = _b === void 0 ? 'Data Entry/Dropdown' : _b, _c = _a.defaultArgs, defaultArgs = _c === void 0 ? {} : _c, _d = _a.additionalArgTypes, additionalArgTypes = _d === void 0 ? {} : _d, _e = _a.disablePropsList, disablePropsList = _e === void 0 ? [] : _e;
|
|
25
|
+
return {
|
|
26
|
+
title: title,
|
|
27
|
+
decorators: [InSpacingDecorator],
|
|
28
|
+
component: component,
|
|
29
|
+
args: __assign({ size: 'm', variant: 'normal', placement: 'bottom', trigger: 'click', openByRightClick: false, offset: [0, 8], listWidth: '300px', alwaysOpened: false, closeOnOverlayClick: true, closeOnSelect: true }, defaultArgs),
|
|
30
|
+
argTypes: __assign(__assign({ placement: {
|
|
31
|
+
options: placements,
|
|
32
|
+
control: {
|
|
33
|
+
type: 'select',
|
|
34
|
+
},
|
|
35
|
+
}, trigger: {
|
|
36
|
+
options: triggers,
|
|
37
|
+
control: {
|
|
38
|
+
type: 'select',
|
|
39
|
+
},
|
|
40
|
+
}, openByRightClick: {
|
|
41
|
+
control: {
|
|
42
|
+
type: 'boolean',
|
|
43
|
+
},
|
|
44
|
+
}, size: {
|
|
45
|
+
options: componentConfig.sizes,
|
|
46
|
+
control: {
|
|
47
|
+
type: 'select',
|
|
48
|
+
},
|
|
49
|
+
}, variant: {
|
|
50
|
+
options: variant,
|
|
51
|
+
control: {
|
|
52
|
+
type: 'select',
|
|
53
|
+
},
|
|
54
|
+
}, closeOnOverlayClick: {
|
|
55
|
+
control: { type: 'boolean' },
|
|
56
|
+
}, closeOnSelect: {
|
|
57
|
+
control: { type: 'boolean' },
|
|
58
|
+
}, listWidth: {
|
|
59
|
+
control: { type: 'text' },
|
|
60
|
+
} }, additionalArgTypes), disableProps(__spreadArray([], disablePropsList, true))),
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Dropdown/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAW3D,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAOT;QANd,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,aAA6B,EAA7B,KAAK,mBAAG,qBAAqB,KAAA,EAC7B,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,0BAAuB,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA;IAErB,OAAO;QACH,KAAK,OAAA;QACL,UAAU,EAAE,CAAC,kBAAkB,CAAC;QAChC,SAAS,WAAA;QACT,IAAI,aACA,IAAI,EAAE,GAAG,EACT,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,KAAK,EACvB,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EACd,SAAS,EAAE,OAAO,EAClB,YAAY,EAAE,KAAK,EACnB,mBAAmB,EAAE,IAAI,EACzB,aAAa,EAAE,IAAI,IAChB,WAAW,CACjB;QACD,QAAQ,sBACJ,SAAS,EAAE;gBACP,OAAO,EAAE,UAAU;gBACnB,OAAO,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACjB;aACJ,EACD,OAAO,EAAE;gBACL,OAAO,EAAE,QAAQ;gBACjB,OAAO,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACjB;aACJ,EACD,gBAAgB,EAAE;gBACd,OAAO,EAAE;oBACL,IAAI,EAAE,SAAS;iBAClB;aACJ,EACD,IAAI,EAAE;gBACF,OAAO,EAAE,eAAe,CAAC,KAAK;gBAC9B,OAAO,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACjB;aACJ,EACD,OAAO,EAAE;gBACL,OAAO,EAAE,OAAO;gBAChB,OAAO,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACjB;aACJ,EACD,mBAAmB,EAAE;gBACjB,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,EACD,aAAa,EAAE;gBACX,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,EACD,SAAS,EAAE;gBACP,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;aAC5B,IAEE,kBAAkB,GAClB,YAAY,mBAAK,gBAAgB,QAAE,CACzC;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { action } from 'storybook/actions';
|
|
25
|
+
import { items } from './fixtures';
|
|
26
|
+
export var createDefaultStory = function (Dropdown, components) {
|
|
27
|
+
var Button = components.Button;
|
|
28
|
+
return function (_a) {
|
|
29
|
+
var rest = __rest(_a, []);
|
|
30
|
+
return (React.createElement(Dropdown, __assign({}, rest, { items: items, onToggle: action('onToggle'), onHover: action('onHover'), onItemSelect: action('onItemSelect') }),
|
|
31
|
+
React.createElement(Button, { text: "\u0421\u043F\u0438\u0441\u043E\u043A \u0441\u0442\u0440\u0430\u043D", size: rest.size })));
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Dropdown/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAC9B,QAAkC,EAClC,UAAoD;IAE5C,IAAA,MAAM,GAAK,UAAU,OAAf,CAAgB;IAE9B,OAAO,UAAC,EAAgB;YAAX,IAAI,cAAT,EAAW,CAAF;QACb,OAAO,CACH,oBAAC,QAAQ,eACD,IAAI,IACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,EA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|
2
2
|
"name": "@salutejs/plasma-sb-utils",
|
|
3
|
-
"version": "0.225.0
|
|
3
|
+
"version": "0.225.0",
|
|
4
4
|
"description": "Code shared between ui libraries.",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/react": "11.14.0",
|
|
23
23
|
"@salutejs/plasma-colors": "0.16.0",
|
|
24
|
-
"@salutejs/plasma-core": "1.225.0
|
|
25
|
-
"@salutejs/plasma-icons": "1.237.0
|
|
24
|
+
"@salutejs/plasma-core": "1.225.0",
|
|
25
|
+
"@salutejs/plasma-icons": "1.237.0",
|
|
26
26
|
"@storybook/react": "10.3.4",
|
|
27
27
|
"param-case": "^3.0.4"
|
|
28
28
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"files": [
|
|
47
47
|
"lib"
|
|
48
48
|
],
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ba46292f8d8526dea8b5562b48e115482fd0b346"
|
|
50
50
|
}
|