@salutejs/plasma-sb-utils 0.252.0-dev.1 → 0.253.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/BottomSheet/BottomSheet.d.ts +6 -0
- package/lib/components/BottomSheet/meta.d.ts +6 -0
- package/lib/components/BottomSheet/meta.js +3 -1
- package/lib/components/BottomSheet/meta.js.map +1 -1
- package/lib/components/Pagination/Pagination.d.ts +28 -2
- package/lib/components/Pagination/meta.d.ts +28 -2
- package/lib/components/Pagination/meta.js +11 -3
- package/lib/components/Pagination/meta.js.map +1 -1
- package/lib/components/Wheel/Wheel.d.ts +170 -0
- package/lib/components/Wheel/Wheel.js +60 -0
- package/lib/components/Wheel/Wheel.js.map +1 -0
- package/lib/components/Wheel/fixtures.d.ts +58 -0
- package/lib/components/Wheel/fixtures.js +90 -0
- package/lib/components/Wheel/fixtures.js.map +1 -0
- package/lib/components/Wheel/index.d.ts +1 -0
- package/lib/components/Wheel/index.js +2 -0
- package/lib/components/Wheel/index.js.map +1 -0
- package/lib/components/Wheel/meta.d.ts +123 -0
- package/lib/components/Wheel/meta.js +45 -0
- package/lib/components/Wheel/meta.js.map +1 -0
- package/lib/components/Wheel/stories.d.ts +4 -0
- package/lib/components/Wheel/stories.js +101 -0
- package/lib/components/Wheel/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 +2 -2
|
@@ -22,6 +22,7 @@ export declare const getBottomSheetStories: (config: CreateBottomSheetStoriesPro
|
|
|
22
22
|
hasClose: boolean;
|
|
23
23
|
hasHandle: boolean;
|
|
24
24
|
withOverlay: boolean;
|
|
25
|
+
closeOnOverlayClick: boolean;
|
|
25
26
|
withBlur: boolean;
|
|
26
27
|
withTransition: boolean;
|
|
27
28
|
maxHeight: string;
|
|
@@ -71,6 +72,11 @@ export declare const getBottomSheetStories: (config: CreateBottomSheetStoriesPro
|
|
|
71
72
|
type: string;
|
|
72
73
|
};
|
|
73
74
|
};
|
|
75
|
+
closeOnOverlayClick: {
|
|
76
|
+
control: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
74
80
|
withBlur: {
|
|
75
81
|
control: {
|
|
76
82
|
type: string;
|
|
@@ -15,6 +15,7 @@ export declare const createMeta: ({ component, title, defaultArgs, additionalArg
|
|
|
15
15
|
hasClose: boolean;
|
|
16
16
|
hasHandle: boolean;
|
|
17
17
|
withOverlay: boolean;
|
|
18
|
+
closeOnOverlayClick: boolean;
|
|
18
19
|
withBlur: boolean;
|
|
19
20
|
withTransition: boolean;
|
|
20
21
|
maxHeight: string;
|
|
@@ -64,6 +65,11 @@ export declare const createMeta: ({ component, title, defaultArgs, additionalArg
|
|
|
64
65
|
type: string;
|
|
65
66
|
};
|
|
66
67
|
};
|
|
68
|
+
closeOnOverlayClick: {
|
|
69
|
+
control: {
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
67
73
|
withBlur: {
|
|
68
74
|
control: {
|
|
69
75
|
type: string;
|
|
@@ -38,7 +38,7 @@ export var createMeta = function (_a) {
|
|
|
38
38
|
title: title,
|
|
39
39
|
decorators: [InSpacingDecorator],
|
|
40
40
|
component: component,
|
|
41
|
-
args: __assign({ handlePlacement: 'inner', hasClose: true, hasHandle: true, withOverlay: true, withBlur: true, withTransition: true, maxHeight: '66dvh', showContentBeforeHeader: false, showContentHeader: true, showContentFooter: true }, defaultArgs),
|
|
41
|
+
args: __assign({ handlePlacement: 'inner', hasClose: true, hasHandle: true, withOverlay: true, closeOnOverlayClick: true, withBlur: true, withTransition: true, maxHeight: '66dvh', showContentBeforeHeader: false, showContentHeader: true, showContentFooter: true }, defaultArgs),
|
|
42
42
|
argTypes: __assign(__assign(__assign({ handlePlacement: {
|
|
43
43
|
options: handlePlacements,
|
|
44
44
|
control: {
|
|
@@ -52,6 +52,8 @@ export var createMeta = function (_a) {
|
|
|
52
52
|
control: { type: 'boolean' },
|
|
53
53
|
}, withOverlay: {
|
|
54
54
|
control: { type: 'boolean' },
|
|
55
|
+
}, closeOnOverlayClick: {
|
|
56
|
+
control: { type: 'boolean' },
|
|
55
57
|
}, withBlur: {
|
|
56
58
|
control: { type: 'boolean' },
|
|
57
59
|
}, withTransition: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/BottomSheet/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAW9C,IAAM,kBAAkB,GAAG;IACvB,QAAQ;IACR,UAAU;IACV,qBAAqB;IACrB,eAAe;IACf,eAAe;IACf,QAAQ;IACR,SAAS;IACT,YAAY;IACZ,kBAAkB;IAClB,mBAAmB;CACtB,CAAC;AAEF,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAMT;QALd,SAAS,eAAA,EACT,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,eAAe,EAAE,OAAO,EACxB,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,IAAI,EACf,WAAW,EAAE,IAAI,EACjB,QAAQ,EAAE,IAAI,EACd,cAAc,EAAE,IAAI,EACpB,SAAS,EAAE,OAAO,EAClB,uBAAuB,EAAE,KAAK,EAC9B,iBAAiB,EAAE,IAAI,EACvB,iBAAiB,EAAE,IAAI,IACpB,WAA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AE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,EACD,cAAc,EAAE;gBACZ,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,IACE,WAAW,CAAC;YACX,uBAAuB,EAAE;gBACrB,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B;YACD,iBAAiB,EAAE;gBACf,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B;YACD,iBAAiB,EAAE;gBACf,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B;SACJ,CAAC,GACC,kBAAkB,GAClB,YAAY,iCAAK,kBAAkB,SAAK,gBAAgB,QAAE,CAChE;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -23,12 +23,15 @@ export declare const getPaginationStories: (config: CreateStoriesProps) => {
|
|
|
23
23
|
size: string;
|
|
24
24
|
hasQuickJump: boolean;
|
|
25
25
|
hasPerPage: boolean;
|
|
26
|
+
hasPageRange: boolean;
|
|
27
|
+
hasTotalPages: boolean;
|
|
26
28
|
pilled: boolean;
|
|
27
29
|
square: boolean;
|
|
28
30
|
listWidth: string;
|
|
29
31
|
helperText: string;
|
|
30
32
|
textQuickJump: string;
|
|
31
33
|
placeholderQuickJump: string;
|
|
34
|
+
textPerPage: string;
|
|
32
35
|
singleLine: boolean;
|
|
33
36
|
enableLeftSlot: boolean;
|
|
34
37
|
enableRightSlot: boolean;
|
|
@@ -101,7 +104,7 @@ export declare const getPaginationStories: (config: CreateStoriesProps) => {
|
|
|
101
104
|
};
|
|
102
105
|
if: {
|
|
103
106
|
arg: string;
|
|
104
|
-
|
|
107
|
+
truthy: boolean;
|
|
105
108
|
};
|
|
106
109
|
};
|
|
107
110
|
placeholderQuickJump: {
|
|
@@ -110,7 +113,7 @@ export declare const getPaginationStories: (config: CreateStoriesProps) => {
|
|
|
110
113
|
};
|
|
111
114
|
if: {
|
|
112
115
|
arg: string;
|
|
113
|
-
|
|
116
|
+
truthy: boolean;
|
|
114
117
|
};
|
|
115
118
|
};
|
|
116
119
|
hasPerPage: {
|
|
@@ -118,6 +121,29 @@ export declare const getPaginationStories: (config: CreateStoriesProps) => {
|
|
|
118
121
|
type: string;
|
|
119
122
|
};
|
|
120
123
|
};
|
|
124
|
+
textPerPage: {
|
|
125
|
+
control: {
|
|
126
|
+
type: string;
|
|
127
|
+
};
|
|
128
|
+
if: {
|
|
129
|
+
arg: string;
|
|
130
|
+
truthy: boolean;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
hasPageRange: {
|
|
134
|
+
control: {
|
|
135
|
+
type: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
hasTotalPages: {
|
|
139
|
+
control: {
|
|
140
|
+
type: string;
|
|
141
|
+
};
|
|
142
|
+
if: {
|
|
143
|
+
arg: string;
|
|
144
|
+
truthy: boolean;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
121
147
|
singleLine: {
|
|
122
148
|
control: {
|
|
123
149
|
type: string;
|
|
@@ -19,12 +19,15 @@ export declare const createMeta: ({ component, componentConfig, defaultArgs, add
|
|
|
19
19
|
size: string;
|
|
20
20
|
hasQuickJump: boolean;
|
|
21
21
|
hasPerPage: boolean;
|
|
22
|
+
hasPageRange: boolean;
|
|
23
|
+
hasTotalPages: boolean;
|
|
22
24
|
pilled: boolean;
|
|
23
25
|
square: boolean;
|
|
24
26
|
listWidth: string;
|
|
25
27
|
helperText: string;
|
|
26
28
|
textQuickJump: string;
|
|
27
29
|
placeholderQuickJump: string;
|
|
30
|
+
textPerPage: string;
|
|
28
31
|
singleLine: boolean;
|
|
29
32
|
enableLeftSlot: boolean;
|
|
30
33
|
enableRightSlot: boolean;
|
|
@@ -97,7 +100,7 @@ export declare const createMeta: ({ component, componentConfig, defaultArgs, add
|
|
|
97
100
|
};
|
|
98
101
|
if: {
|
|
99
102
|
arg: string;
|
|
100
|
-
|
|
103
|
+
truthy: boolean;
|
|
101
104
|
};
|
|
102
105
|
};
|
|
103
106
|
placeholderQuickJump: {
|
|
@@ -106,7 +109,7 @@ export declare const createMeta: ({ component, componentConfig, defaultArgs, add
|
|
|
106
109
|
};
|
|
107
110
|
if: {
|
|
108
111
|
arg: string;
|
|
109
|
-
|
|
112
|
+
truthy: boolean;
|
|
110
113
|
};
|
|
111
114
|
};
|
|
112
115
|
hasPerPage: {
|
|
@@ -114,6 +117,29 @@ export declare const createMeta: ({ component, componentConfig, defaultArgs, add
|
|
|
114
117
|
type: string;
|
|
115
118
|
};
|
|
116
119
|
};
|
|
120
|
+
textPerPage: {
|
|
121
|
+
control: {
|
|
122
|
+
type: string;
|
|
123
|
+
};
|
|
124
|
+
if: {
|
|
125
|
+
arg: string;
|
|
126
|
+
truthy: boolean;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
hasPageRange: {
|
|
130
|
+
control: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
hasTotalPages: {
|
|
135
|
+
control: {
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
if: {
|
|
139
|
+
arg: string;
|
|
140
|
+
truthy: boolean;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
117
143
|
singleLine: {
|
|
118
144
|
control: {
|
|
119
145
|
type: string;
|
|
@@ -26,7 +26,7 @@ export var createMeta = function (_a) {
|
|
|
26
26
|
return {
|
|
27
27
|
decorators: [InSpacingDecorator],
|
|
28
28
|
component: component,
|
|
29
|
-
args: __assign({ count: 2000, slots: 9, initialValue: 1, perPage: 20, type: 'default', view: 'clear', viewCurrentPage: 'secondary', size: 'xs', hasQuickJump: true, hasPerPage: true, pilled: false, square: true, listWidth: '5rem', helperText: 'Подсказка', textQuickJump: 'Перейти к странице', placeholderQuickJump: '№', singleLine: false, enableLeftSlot: true, enableRightSlot: true }, defaultArgs),
|
|
29
|
+
args: __assign({ count: 2000, slots: 9, initialValue: 1, perPage: 20, type: 'default', view: 'clear', viewCurrentPage: 'secondary', size: 'xs', hasQuickJump: true, hasPerPage: true, hasPageRange: true, hasTotalPages: false, pilled: false, square: true, listWidth: '5rem', helperText: 'Подсказка', textQuickJump: 'Перейти к странице', placeholderQuickJump: '№', textPerPage: 'Показать по', singleLine: false, enableLeftSlot: true, enableRightSlot: true }, defaultArgs),
|
|
30
30
|
argTypes: __assign(__assign(__assign({ size: {
|
|
31
31
|
options: componentConfig.sizes,
|
|
32
32
|
control: { type: 'select' },
|
|
@@ -49,12 +49,20 @@ export var createMeta = function (_a) {
|
|
|
49
49
|
control: { type: 'boolean' },
|
|
50
50
|
}, textQuickJump: {
|
|
51
51
|
control: { type: 'text' },
|
|
52
|
-
if: { arg: 'hasQuickJump',
|
|
52
|
+
if: { arg: 'hasQuickJump', truthy: true },
|
|
53
53
|
}, placeholderQuickJump: {
|
|
54
54
|
control: { type: 'text' },
|
|
55
|
-
if: { arg: 'hasQuickJump',
|
|
55
|
+
if: { arg: 'hasQuickJump', truthy: true },
|
|
56
56
|
}, hasPerPage: {
|
|
57
57
|
control: { type: 'boolean' },
|
|
58
|
+
}, textPerPage: {
|
|
59
|
+
control: { type: 'text' },
|
|
60
|
+
if: { arg: 'hasPerPage', truthy: true },
|
|
61
|
+
}, hasPageRange: {
|
|
62
|
+
control: { type: 'boolean' },
|
|
63
|
+
}, hasTotalPages: {
|
|
64
|
+
control: { type: 'boolean' },
|
|
65
|
+
if: { arg: 'hasQuickJump', truthy: true },
|
|
58
66
|
}, singleLine: {
|
|
59
67
|
control: { type: 'boolean' },
|
|
60
68
|
}, listWidth: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Pagination/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM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,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;gBACzB,EAAE,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE;aAC1C,EACD,YAAY,EAAE;gBACV,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,EACD,aAAa,EAAE;gBACX,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,EAAE,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE;aAC5C,EACD,UAAU,EAAE;gBACR,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,EACD,SAAS,EAAE;gBACP,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;aAC5B,EACD,UAAU,EAAE;gBACR,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;aAC5B,EACD,KAAK,EAAE;gBACH,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,OAAO,EAAE;gBACL,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,IACE,WAAW,CAAC;YACX,cAAc,EAAE;gBACZ,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B;YACD,eAAe,EAAE;gBACb,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B;YACD,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;SAChD,CAAC,GACC,kBAAkB,GAClB,YAAY,mBAAK,gBAAgB,QAAE,CACzC;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
type CreateStoriesProps = {
|
|
2
|
+
component: any;
|
|
3
|
+
componentConfig: any;
|
|
4
|
+
title?: string;
|
|
5
|
+
disablePropsList?: string[];
|
|
6
|
+
defaultArgs?: {};
|
|
7
|
+
additionalArgTypes?: {};
|
|
8
|
+
};
|
|
9
|
+
export declare const getWheelStories: (config: CreateStoriesProps) => {
|
|
10
|
+
meta: {
|
|
11
|
+
title: string;
|
|
12
|
+
component: any;
|
|
13
|
+
decorators: import("@storybook/react").Decorator[];
|
|
14
|
+
args: {
|
|
15
|
+
size: string;
|
|
16
|
+
view: string;
|
|
17
|
+
hasControls: boolean;
|
|
18
|
+
visibleItemsCount: number;
|
|
19
|
+
animated: boolean;
|
|
20
|
+
textAfterMode: string;
|
|
21
|
+
align: string;
|
|
22
|
+
columnWidths: {};
|
|
23
|
+
columnsCount: number;
|
|
24
|
+
hasDescription: boolean;
|
|
25
|
+
hoursLoop: boolean;
|
|
26
|
+
minutesLoop: boolean;
|
|
27
|
+
secondsLoop: boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
separator: string;
|
|
30
|
+
};
|
|
31
|
+
argTypes: {
|
|
32
|
+
hasDescription: {
|
|
33
|
+
control: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
columnWidths: {
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
columnsCount: {
|
|
44
|
+
control: {
|
|
45
|
+
type: string;
|
|
46
|
+
min: number;
|
|
47
|
+
max: number;
|
|
48
|
+
step: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
hoursLoop: {
|
|
52
|
+
control: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
minutesLoop: {
|
|
57
|
+
control: {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
secondsLoop: {
|
|
62
|
+
control: {
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
size: {
|
|
67
|
+
options: any;
|
|
68
|
+
control: {
|
|
69
|
+
type: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
view: {
|
|
73
|
+
options: any;
|
|
74
|
+
control: {
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
hasControls: {
|
|
79
|
+
control: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
visibleItemsCount: {
|
|
84
|
+
options: number[];
|
|
85
|
+
control: {
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
animated: {
|
|
90
|
+
control: {
|
|
91
|
+
type: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
textAfterMode: {
|
|
95
|
+
options: string[];
|
|
96
|
+
control: {
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
align: {
|
|
101
|
+
options: string[];
|
|
102
|
+
control: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
width: {
|
|
107
|
+
control: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
disabled: {
|
|
112
|
+
control: {
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
separator: {
|
|
117
|
+
options: string[];
|
|
118
|
+
control: {
|
|
119
|
+
type: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
Default: {
|
|
125
|
+
render: (args: any) => JSX.Element;
|
|
126
|
+
};
|
|
127
|
+
CustomItems: {
|
|
128
|
+
args: {
|
|
129
|
+
columnsCount: number;
|
|
130
|
+
};
|
|
131
|
+
argTypes: {
|
|
132
|
+
columnsCount: {
|
|
133
|
+
control: {
|
|
134
|
+
type: string;
|
|
135
|
+
min: number;
|
|
136
|
+
max: number;
|
|
137
|
+
step: number;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
render: (args: any) => JSX.Element;
|
|
142
|
+
};
|
|
143
|
+
CustomSeparator: {
|
|
144
|
+
argTypes: {
|
|
145
|
+
[x: string]: {
|
|
146
|
+
table: {
|
|
147
|
+
disable: true;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
render: (args: any) => JSX.Element;
|
|
152
|
+
};
|
|
153
|
+
DependentColumns: {
|
|
154
|
+
args: {
|
|
155
|
+
columnsCount: number;
|
|
156
|
+
};
|
|
157
|
+
argTypes: {
|
|
158
|
+
columnsCount: {
|
|
159
|
+
control: {
|
|
160
|
+
type: string;
|
|
161
|
+
min: number;
|
|
162
|
+
max: number;
|
|
163
|
+
step: number;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
render: (args: any) => JSX.Element;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { disableProps, exampleOnly, getConfigVariations } from '../../helpers';
|
|
25
|
+
import { createMeta } from './meta';
|
|
26
|
+
import { createCustomItemsStory, createCustomSeparatorStory, createDefaultStory, createDependentColumnsStory, } from './stories';
|
|
27
|
+
export var getWheelStories = function (config) {
|
|
28
|
+
var component = config.component, componentConfig = config.componentConfig, _a = config.defaultArgs, defaultArgs = _a === void 0 ? {} : _a, rest = __rest(config, ["component", "componentConfig", "defaultArgs"]);
|
|
29
|
+
var wheelConfig = getConfigVariations(componentConfig);
|
|
30
|
+
var meta = createMeta(__assign(__assign({ component: component, componentConfig: wheelConfig }, rest), { defaultArgs: __assign({ size: componentConfig.defaults.size, view: componentConfig.defaults.view }, defaultArgs) }));
|
|
31
|
+
var DefaultStoryComponent = createDefaultStory(component);
|
|
32
|
+
var CustomItemsStoryComponent = createCustomItemsStory(component);
|
|
33
|
+
var CustomSeparatorStoryComponent = createCustomSeparatorStory(component);
|
|
34
|
+
var DependentColumnsStoryComponent = createDependentColumnsStory(component);
|
|
35
|
+
var Default = {
|
|
36
|
+
render: function (args) { return React.createElement(DefaultStoryComponent, __assign({}, args)); },
|
|
37
|
+
};
|
|
38
|
+
var CustomItems = {
|
|
39
|
+
args: { columnsCount: 1 },
|
|
40
|
+
argTypes: __assign(__assign({}, disableProps(['minutesLoop', 'secondsLoop'])), exampleOnly({ columnsCount: { control: { type: 'number', min: 0, max: 1, step: 1 } } })),
|
|
41
|
+
render: function (args) { return React.createElement(CustomItemsStoryComponent, __assign({}, args)); },
|
|
42
|
+
};
|
|
43
|
+
var CustomSeparator = {
|
|
44
|
+
argTypes: __assign({}, disableProps(['separator'])),
|
|
45
|
+
render: function (args) { return React.createElement(CustomSeparatorStoryComponent, __assign({}, args)); },
|
|
46
|
+
};
|
|
47
|
+
var DependentColumns = {
|
|
48
|
+
args: { columnsCount: 2 },
|
|
49
|
+
argTypes: __assign(__assign({}, disableProps(['hoursLoop', 'minutesLoop', 'secondsLoop', 'hasDescription'])), exampleOnly({ columnsCount: { control: { type: 'number', min: 0, max: 2, step: 1 } } })),
|
|
50
|
+
render: function (args) { return React.createElement(DependentColumnsStoryComponent, __assign({}, args)); },
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
meta: meta,
|
|
54
|
+
Default: Default,
|
|
55
|
+
CustomItems: CustomItems,
|
|
56
|
+
CustomSeparator: CustomSeparator,
|
|
57
|
+
DependentColumns: DependentColumns,
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=Wheel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wheel.js","sourceRoot":"","sources":["../../../src/components/Wheel/Wheel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EACH,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,GAC9B,MAAM,WAAW,CAAC;AAWnB,MAAM,CAAC,IAAM,eAAe,GAAG,UAAC,MAA0B;IAC9C,IAAA,SAAS,GAAiD,MAAM,UAAvD,EAAE,eAAe,GAAgC,MAAM,gBAAtC,EAAE,KAA8B,MAAM,YAApB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAAK,IAAI,UAAK,MAAM,EAAlE,+CAAyD,CAAF,CAAY;IACzE,IAAM,WAAW,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACzD,IAAM,IAAI,GAAG,UAAU,qBACnB,SAAS,WAAA,EACT,eAAe,EAAE,WAAW,IACzB,IAAI,KACP,WAAW,aACP,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,IAAI,EACnC,IAAI,EAAE,eAAe,CAAC,QAA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AO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAC7F;QACD,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,8BAA8B,eAAK,IAAI,EAAI,EAA5C,CAA4C;KACtE,CAAC;IAEF,OAAO;QACH,IAAI,MAAA;QACJ,OAAO,SAAA;QACP,WAAW,aAAA;QACX,eAAe,iBAAA;QACf,gBAAgB,kBAAA;KACnB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const alignments: string[];
|
|
2
|
+
export declare const separators: string[];
|
|
3
|
+
export declare const visibleItemsCounts: number[];
|
|
4
|
+
export declare const hourItems: {
|
|
5
|
+
value: number;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const minuteItems: {
|
|
9
|
+
value: number;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
export declare const initialTime: {
|
|
13
|
+
hours: number;
|
|
14
|
+
minutes: number;
|
|
15
|
+
seconds: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const countries: {
|
|
18
|
+
value: string;
|
|
19
|
+
label: string;
|
|
20
|
+
}[];
|
|
21
|
+
export declare const cities: {
|
|
22
|
+
ru: {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
by: {
|
|
27
|
+
value: string;
|
|
28
|
+
label: string;
|
|
29
|
+
}[];
|
|
30
|
+
kz: {
|
|
31
|
+
value: string;
|
|
32
|
+
label: string;
|
|
33
|
+
}[];
|
|
34
|
+
am: {
|
|
35
|
+
value: string;
|
|
36
|
+
label: string;
|
|
37
|
+
}[];
|
|
38
|
+
ge: {
|
|
39
|
+
value: string;
|
|
40
|
+
label: string;
|
|
41
|
+
}[];
|
|
42
|
+
tr: {
|
|
43
|
+
value: string;
|
|
44
|
+
label: string;
|
|
45
|
+
}[];
|
|
46
|
+
de: {
|
|
47
|
+
value: string;
|
|
48
|
+
label: string;
|
|
49
|
+
}[];
|
|
50
|
+
jp: {
|
|
51
|
+
value: string;
|
|
52
|
+
label: string;
|
|
53
|
+
}[];
|
|
54
|
+
};
|
|
55
|
+
export declare const initialLocation: {
|
|
56
|
+
country: keyof typeof cities;
|
|
57
|
+
city: string;
|
|
58
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export var alignments = ['left', 'center', 'right', 'mixed'];
|
|
2
|
+
export var separators = ['none', 'dots', 'divider'];
|
|
3
|
+
export var visibleItemsCounts = [3, 5];
|
|
4
|
+
var createItems = function (count) {
|
|
5
|
+
return Array.from({ length: count }, function (_, value) { return ({
|
|
6
|
+
value: value,
|
|
7
|
+
label: String(value).padStart(2, '0'),
|
|
8
|
+
}); });
|
|
9
|
+
};
|
|
10
|
+
export var hourItems = createItems(24);
|
|
11
|
+
export var minuteItems = createItems(60);
|
|
12
|
+
export var initialTime = { hours: 12, minutes: 30, seconds: 15 };
|
|
13
|
+
export var countries = [
|
|
14
|
+
{ value: 'ru', label: 'Россия' },
|
|
15
|
+
{ value: 'by', label: 'Беларусь' },
|
|
16
|
+
{ value: 'kz', label: 'Казахстан' },
|
|
17
|
+
{ value: 'am', label: 'Армения' },
|
|
18
|
+
{ value: 'ge', label: 'Грузия' },
|
|
19
|
+
{ value: 'tr', label: 'Турция' },
|
|
20
|
+
{ value: 'de', label: 'Германия' },
|
|
21
|
+
{ value: 'jp', label: 'Япония' },
|
|
22
|
+
];
|
|
23
|
+
export var cities = {
|
|
24
|
+
ru: [
|
|
25
|
+
{ value: 'msk', label: 'Москва' },
|
|
26
|
+
{ value: 'spb', label: 'Петербург' },
|
|
27
|
+
{ value: 'novosibirsk', label: 'Новосибирск' },
|
|
28
|
+
{ value: 'yekaterinburg', label: 'Екатеринбург' },
|
|
29
|
+
{ value: 'kazan', label: 'Казань' },
|
|
30
|
+
{ value: 'nizhny-novgorod', label: 'Нижний Новгород' },
|
|
31
|
+
],
|
|
32
|
+
by: [
|
|
33
|
+
{ value: 'minsk', label: 'Минск' },
|
|
34
|
+
{ value: 'brest', label: 'Брест' },
|
|
35
|
+
{ value: 'grodno', label: 'Гродно' },
|
|
36
|
+
{ value: 'gomel', label: 'Гомель' },
|
|
37
|
+
{ value: 'vitebsk', label: 'Витебск' },
|
|
38
|
+
{ value: 'mogilev', label: 'Могилёв' },
|
|
39
|
+
],
|
|
40
|
+
kz: [
|
|
41
|
+
{ value: 'astana', label: 'Астана' },
|
|
42
|
+
{ value: 'almaty', label: 'Алматы' },
|
|
43
|
+
{ value: 'shymkent', label: 'Шымкент' },
|
|
44
|
+
{ value: 'karaganda', label: 'Караганда' },
|
|
45
|
+
{ value: 'aktobe', label: 'Актобе' },
|
|
46
|
+
{ value: 'pavlodar', label: 'Павлодар' },
|
|
47
|
+
],
|
|
48
|
+
am: [
|
|
49
|
+
{ value: 'yerevan', label: 'Ереван' },
|
|
50
|
+
{ value: 'gyumri', label: 'Гюмри' },
|
|
51
|
+
{ value: 'vanadzor', label: 'Ванадзор' },
|
|
52
|
+
{ value: 'dilijan', label: 'Дилижан' },
|
|
53
|
+
{ value: 'sevan', label: 'Севан' },
|
|
54
|
+
{ value: 'abovyan', label: 'Абовян' },
|
|
55
|
+
],
|
|
56
|
+
ge: [
|
|
57
|
+
{ value: 'tbilisi', label: 'Тбилиси' },
|
|
58
|
+
{ value: 'batumi', label: 'Батуми' },
|
|
59
|
+
{ value: 'kutaisi', label: 'Кутаиси' },
|
|
60
|
+
{ value: 'rustavi', label: 'Рустави' },
|
|
61
|
+
{ value: 'gori', label: 'Гори' },
|
|
62
|
+
{ value: 'poti', label: 'Поти' },
|
|
63
|
+
],
|
|
64
|
+
tr: [
|
|
65
|
+
{ value: 'istanbul', label: 'Стамбул' },
|
|
66
|
+
{ value: 'ankara', label: 'Анкара' },
|
|
67
|
+
{ value: 'izmir', label: 'Измир' },
|
|
68
|
+
{ value: 'antalya', label: 'Анталья' },
|
|
69
|
+
{ value: 'bursa', label: 'Бурса' },
|
|
70
|
+
{ value: 'konya', label: 'Конья' },
|
|
71
|
+
],
|
|
72
|
+
de: [
|
|
73
|
+
{ value: 'berlin', label: 'Берлин' },
|
|
74
|
+
{ value: 'munich', label: 'Мюнхен' },
|
|
75
|
+
{ value: 'hamburg', label: 'Гамбург' },
|
|
76
|
+
{ value: 'cologne', label: 'Кёльн' },
|
|
77
|
+
{ value: 'frankfurt', label: 'Франкфурт-на-Майне' },
|
|
78
|
+
{ value: 'stuttgart', label: 'Штутгарт' },
|
|
79
|
+
],
|
|
80
|
+
jp: [
|
|
81
|
+
{ value: 'tokyo', label: 'Токио' },
|
|
82
|
+
{ value: 'osaka', label: 'Осака' },
|
|
83
|
+
{ value: 'kyoto', label: 'Киото' },
|
|
84
|
+
{ value: 'nagoya', label: 'Нагоя' },
|
|
85
|
+
{ value: 'yokohama', label: 'Иокогама' },
|
|
86
|
+
{ value: 'sapporo', label: 'Саппоро' },
|
|
87
|
+
],
|
|
88
|
+
};
|
|
89
|
+
export var initialLocation = { country: 'ru', city: 'msk' };
|
|
90
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/Wheel/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,UAAU,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAC/D,MAAM,CAAC,IAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AACtD,MAAM,CAAC,IAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEzC,IAAM,WAAW,GAAG,UAAC,KAAa;IAC9B,OAAA,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,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AW,EAAE,KAAK,EAAE,UAAU,EAAE;KAC5C;IACD,EAAE,EAAE;QACA,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QAClC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QAClC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QAClC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE;QACnC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;QACxC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;KACzC;CACJ,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAAmD,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Wheel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Wheel/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
component: any;
|
|
12
|
+
decorators: import("@storybook/react").Decorator[];
|
|
13
|
+
args: {
|
|
14
|
+
size: string;
|
|
15
|
+
view: string;
|
|
16
|
+
hasControls: boolean;
|
|
17
|
+
visibleItemsCount: number;
|
|
18
|
+
animated: boolean;
|
|
19
|
+
textAfterMode: string;
|
|
20
|
+
align: string;
|
|
21
|
+
columnWidths: {};
|
|
22
|
+
columnsCount: number;
|
|
23
|
+
hasDescription: boolean;
|
|
24
|
+
hoursLoop: boolean;
|
|
25
|
+
minutesLoop: boolean;
|
|
26
|
+
secondsLoop: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
separator: string;
|
|
29
|
+
};
|
|
30
|
+
argTypes: {
|
|
31
|
+
hasDescription: {
|
|
32
|
+
control: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
columnWidths: {
|
|
37
|
+
control: {
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
columnsCount: {
|
|
43
|
+
control: {
|
|
44
|
+
type: string;
|
|
45
|
+
min: number;
|
|
46
|
+
max: number;
|
|
47
|
+
step: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
hoursLoop: {
|
|
51
|
+
control: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
minutesLoop: {
|
|
56
|
+
control: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
secondsLoop: {
|
|
61
|
+
control: {
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
size: {
|
|
66
|
+
options: any;
|
|
67
|
+
control: {
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
view: {
|
|
72
|
+
options: any;
|
|
73
|
+
control: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
hasControls: {
|
|
78
|
+
control: {
|
|
79
|
+
type: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
visibleItemsCount: {
|
|
83
|
+
options: number[];
|
|
84
|
+
control: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
animated: {
|
|
89
|
+
control: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
textAfterMode: {
|
|
94
|
+
options: string[];
|
|
95
|
+
control: {
|
|
96
|
+
type: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
align: {
|
|
100
|
+
options: string[];
|
|
101
|
+
control: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
width: {
|
|
106
|
+
control: {
|
|
107
|
+
type: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
disabled: {
|
|
111
|
+
control: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
separator: {
|
|
116
|
+
options: string[];
|
|
117
|
+
control: {
|
|
118
|
+
type: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
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, exampleOnly } from '../../helpers';
|
|
22
|
+
import { InSpacing as InSpacingDecorator } from '../StoryDecorators';
|
|
23
|
+
import { alignments, separators, visibleItemsCounts } from './fixtures';
|
|
24
|
+
var commonDisabledArgs = ['columns', 'value', 'onChange'];
|
|
25
|
+
export var createMeta = function (_a) {
|
|
26
|
+
var component = _a.component, componentConfig = _a.componentConfig, _b = _a.title, title = _b === void 0 ? 'Data Entry/Wheel' : _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;
|
|
27
|
+
return ({
|
|
28
|
+
title: title,
|
|
29
|
+
component: component,
|
|
30
|
+
decorators: [InSpacingDecorator],
|
|
31
|
+
args: __assign({ size: 'displayL', view: 'default', hasControls: true, visibleItemsCount: 5, animated: true, textAfterMode: 'dynamic', align: 'center', columnWidths: {}, columnsCount: 3, hasDescription: true, hoursLoop: true, minutesLoop: false, secondsLoop: false, disabled: false, separator: 'dots' }, defaultArgs),
|
|
32
|
+
argTypes: __assign(__assign(__assign({ size: { options: componentConfig.sizes, control: { type: 'select' } }, view: { options: componentConfig.views, control: { type: 'select' } }, hasControls: { control: { type: 'boolean' } }, visibleItemsCount: { options: visibleItemsCounts, control: { type: 'select' } }, animated: { control: { type: 'boolean' } }, textAfterMode: { options: ['dynamic', 'static'], control: { type: 'select' } }, align: { options: alignments, control: { type: 'select' } }, width: { control: { type: 'text' } }, disabled: { control: { type: 'boolean' } }, separator: { options: separators, control: { type: 'select' } } }, exampleOnly({
|
|
33
|
+
hasDescription: { control: { type: 'boolean' } },
|
|
34
|
+
columnWidths: {
|
|
35
|
+
control: { type: 'object' },
|
|
36
|
+
description: 'Ширины колонок по имени, например { hours: 160, minutes: "12rem" }.',
|
|
37
|
+
},
|
|
38
|
+
columnsCount: { control: { type: 'number', min: 0, max: 3, step: 1 } },
|
|
39
|
+
hoursLoop: { control: { type: 'boolean' } },
|
|
40
|
+
minutesLoop: { control: { type: 'boolean' } },
|
|
41
|
+
secondsLoop: { control: { type: 'boolean' } },
|
|
42
|
+
})), additionalArgTypes), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Wheel/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAWxE,IAAM,kBAAkB,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;AAE5D,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAOT;QANd,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,aAA0B,EAA1B,KAAK,mBAAG,kBAAkB,KAAA,EAC1B,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,0BAAuB,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA;IACF,OAAA,CAAC;QACpB,KAAK,OAAA;QACL,SAAS,WAAA;QACT,UAAU,EAAE,CAAC,kBAAkB,CAAC;QAChC,IAAI,aACA,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,SAAS,EACf,WAAW,EAAE,IAAI,EACjB,iBAAiB,EAAE,CAAC,EACpB,QAAQ,EAAE,IAAI,EACd,aAAa,EAAE,SAAS,EACxB,KAAK,EAAE,QAAQ,EACf,YAAY,EAAE,EAAE,EAChB,YAAY,EAAE,CAAC,EACf,cAAc,EAA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,EAAE,QAAQ,EAAE;gBAC3B,WAAW,EAAE,qEAAqE;aACrF;YACD,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;YACtE,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;YAC3C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;YAC7C,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;SAChD,CAAC,GACC,kBAAkB,GAClB,YAAY,iCAAK,kBAAkB,SAAK,gBAAgB,QAAE,CAChE;KACJ,CAAC;AA/CqB,CA+CrB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const createDefaultStory: (Wheel: any) => (args: any) => JSX.Element;
|
|
2
|
+
export declare const createCustomItemsStory: (Wheel: any) => (args: any) => JSX.Element;
|
|
3
|
+
export declare const createCustomSeparatorStory: (Wheel: any) => (args: any) => JSX.Element;
|
|
4
|
+
export declare const createDependentColumnsStory: (Wheel: any) => (args: any) => JSX.Element;
|
|
@@ -0,0 +1,101 @@
|
|
|
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, { useState } from 'react';
|
|
24
|
+
import { cities, countries, hourItems, initialLocation, initialTime, minuteItems } from './fixtures';
|
|
25
|
+
var getStoryArgs = function (_a) {
|
|
26
|
+
var _b = _a.columnsCount, columnsCount = _b === void 0 ? 3 : _b, _c = _a.hoursLoop, hoursLoop = _c === void 0 ? true : _c, _d = _a.minutesLoop, minutesLoop = _d === void 0 ? false : _d, _e = _a.secondsLoop, secondsLoop = _e === void 0 ? false : _e, _f = _a.columnWidths, columnWidths = _f === void 0 ? {} : _f, _g = _a.hasDescription, hasDescription = _g === void 0 ? true : _g, wheelArgs = __rest(_a, ["columnsCount", "hoursLoop", "minutesLoop", "secondsLoop", "columnWidths", "hasDescription"]);
|
|
27
|
+
return ({
|
|
28
|
+
count: Number.isFinite(columnsCount) ? Math.max(0, Math.floor(columnsCount)) : undefined,
|
|
29
|
+
loops: { hours: hoursLoop, minutes: minutesLoop, seconds: secondsLoop },
|
|
30
|
+
columnWidths: columnWidths !== null && columnWidths !== void 0 ? columnWidths : {},
|
|
31
|
+
hasDescription: hasDescription,
|
|
32
|
+
wheelArgs: wheelArgs,
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
export var createDefaultStory = function (Wheel) { return function (args) {
|
|
36
|
+
var _a = getStoryArgs(args), count = _a.count, loops = _a.loops, columnWidths = _a.columnWidths, hasDescription = _a.hasDescription, wheelArgs = _a.wheelArgs;
|
|
37
|
+
var _b = useState(initialTime), value = _b[0], setValue = _b[1];
|
|
38
|
+
var columns = [
|
|
39
|
+
{
|
|
40
|
+
name: 'hours',
|
|
41
|
+
label: 'Часы',
|
|
42
|
+
description: hasDescription ? 'Часы' : undefined,
|
|
43
|
+
items: hourItems,
|
|
44
|
+
loop: loops.hours,
|
|
45
|
+
width: columnWidths.hours,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'minutes',
|
|
49
|
+
label: 'Минуты',
|
|
50
|
+
description: hasDescription ? 'Минуты' : undefined,
|
|
51
|
+
items: minuteItems,
|
|
52
|
+
loop: loops.minutes,
|
|
53
|
+
width: columnWidths.minutes,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'seconds',
|
|
57
|
+
label: 'Секунды',
|
|
58
|
+
description: hasDescription ? 'Секунды' : undefined,
|
|
59
|
+
items: minuteItems,
|
|
60
|
+
loop: loops.seconds,
|
|
61
|
+
width: columnWidths.seconds,
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
return React.createElement(Wheel, __assign({}, wheelArgs, { value: value, onChange: setValue, columns: columns.slice(0, count) }));
|
|
65
|
+
}; };
|
|
66
|
+
export var createCustomItemsStory = function (Wheel) { return function (args) {
|
|
67
|
+
var _a = getStoryArgs(args), count = _a.count, loops = _a.loops, columnWidths = _a.columnWidths, hasDescription = _a.hasDescription, wheelArgs = _a.wheelArgs;
|
|
68
|
+
var _b = useState(initialTime), value = _b[0], setValue = _b[1];
|
|
69
|
+
var columns = [
|
|
70
|
+
{
|
|
71
|
+
name: 'hours',
|
|
72
|
+
width: columnWidths.hours,
|
|
73
|
+
label: 'Часы',
|
|
74
|
+
description: hasDescription ? 'Часы' : undefined,
|
|
75
|
+
loop: loops.hours,
|
|
76
|
+
textAfter: 'ч',
|
|
77
|
+
items: hourItems.map(function (item) { return (__assign(__assign({}, item), { label: React.createElement("span", null, item.label), textValue: "".concat(item.value, " \u0447\u0430\u0441\u043E\u0432") })); }),
|
|
78
|
+
renderItem: function (item, _a) {
|
|
79
|
+
var selected = _a.selected;
|
|
80
|
+
return (React.createElement("span", { style: { color: selected ? 'var(--text-accent)' : 'inherit' } }, item.label));
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
return React.createElement(Wheel, __assign({}, wheelArgs, { value: value, onChange: setValue, columns: columns.slice(0, count) }));
|
|
85
|
+
}; };
|
|
86
|
+
export var createCustomSeparatorStory = function (Wheel) {
|
|
87
|
+
var DefaultStory = createDefaultStory(Wheel);
|
|
88
|
+
return function (args) { return (React.createElement(DefaultStory, __assign({}, args, { separator: React.createElement("span", { "aria-hidden": true, style: { color: 'var(--text-accent)' } }, "/") }))); };
|
|
89
|
+
};
|
|
90
|
+
export var createDependentColumnsStory = function (Wheel) { return function (args) {
|
|
91
|
+
var _a = getStoryArgs(args), count = _a.count, columnWidths = _a.columnWidths, wheelArgs = _a.wheelArgs;
|
|
92
|
+
var _b = useState(initialLocation), location = _b[0], setLocation = _b[1];
|
|
93
|
+
var columns = [
|
|
94
|
+
{ name: 'country', label: 'Страна', items: countries, width: columnWidths.country },
|
|
95
|
+
{ name: 'city', label: 'Город', items: cities[location.country], width: columnWidths.city },
|
|
96
|
+
];
|
|
97
|
+
return (React.createElement(Wheel, __assign({}, wheelArgs, { value: location, columns: columns.slice(0, count), onChange: function (next, column) {
|
|
98
|
+
setLocation(column === 'country' ? __assign(__assign({}, next), { city: cities[next.country][0].value }) : next);
|
|
99
|
+
} })));
|
|
100
|
+
}; };
|
|
101
|
+
//# sourceMappingURL=stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Wheel/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAErG,IAAM,YA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;AACtD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/plasma-sb-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.253.0-dev.0",
|
|
4
4
|
"description": "Code shared between ui libraries.",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"files": [
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "a14f9c39f6edf2ba938e1c640ee5357a3629e928"
|
|
61
61
|
}
|