@elliemae/ds-classnames 3.13.1-rc.1 → 3.13.1
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/dist/types/aggregatedClasses.d.ts +11 -0
- package/dist/types/classNameManager.d.ts +29 -0
- package/dist/types/converPropsToFormModifiers.d.ts +15 -0
- package/dist/types/convertPropToFeedBackModifiers.d.ts +17 -0
- package/dist/types/convertPropsToColorModifiers.d.ts +11 -0
- package/dist/types/convertPropsToLayoutModifiers.d.ts +17 -0
- package/dist/types/convertPropsToSizeModifiers.d.ts +25 -0
- package/dist/types/convertPropsToTextModifiers.d.ts +15 -0
- package/dist/types/dimsum.config.d.ts +4 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/validateNativeProps.d.ts +265 -0
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const cssPrefix: string;
|
|
3
|
+
type AggregatedClassesT<T = unknown> = (type: any, props?: any) => (block: string, element?: string | null, additionalModifiers?: {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
} | ((arg: any) => {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}), options?: {
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}) => React.ForwardRefExoticComponent<React.RefAttributes<T>>;
|
|
10
|
+
declare const aggregatedClasses: AggregatedClassesT;
|
|
11
|
+
export default aggregatedClasses;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const cssPrefix: string;
|
|
2
|
+
/**
|
|
3
|
+
* Docs: http://getbem.com/naming/
|
|
4
|
+
* blockName
|
|
5
|
+
* cssClassNameModifier: Main modifier
|
|
6
|
+
* props { hasError, hasWarning, hasSuccess, readOnly, disabled}
|
|
7
|
+
*
|
|
8
|
+
* @param blockName
|
|
9
|
+
* @param cssClassNameModifier
|
|
10
|
+
* @param props
|
|
11
|
+
* @param options
|
|
12
|
+
*/
|
|
13
|
+
declare const cssPipeline: (blockName?: string, cssClassNameModifier?: string, props?: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}, options?: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}) => {
|
|
18
|
+
blockName: string;
|
|
19
|
+
cssPrefix: string;
|
|
20
|
+
prefixBlockName: string;
|
|
21
|
+
cssClassName: string;
|
|
22
|
+
mainModifier(modifier: any): string;
|
|
23
|
+
classNameBlock(elementName: any, usePrefix?: boolean): string;
|
|
24
|
+
classNameBlockModifier(modifierName: any, elementBlockName?: string): string;
|
|
25
|
+
classNameElement(elementName: any, elementBlockName?: string): string;
|
|
26
|
+
classNameModifier(modifierName: any, elementName?: string): string;
|
|
27
|
+
};
|
|
28
|
+
export { cssPipeline as convertPropToCssClassName };
|
|
29
|
+
export default cssPipeline;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const pipe: () => {
|
|
2
|
+
getInstance(): (({ readOnly, disabled, checked }: {
|
|
3
|
+
readOnly?: boolean | undefined;
|
|
4
|
+
disabled?: boolean | undefined;
|
|
5
|
+
checked?: boolean | undefined;
|
|
6
|
+
}) => string[])[];
|
|
7
|
+
add(customModifier: any): void;
|
|
8
|
+
execute(props: any): ({ readOnly, disabled, checked }: {
|
|
9
|
+
readOnly?: boolean | undefined;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
checked?: boolean | undefined;
|
|
12
|
+
}) => string[];
|
|
13
|
+
};
|
|
14
|
+
export { pipe };
|
|
15
|
+
export default pipe;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const pipe: () => {
|
|
2
|
+
getInstance(): (({ hasError, hasWarning, hasSuccess, modalType }: {
|
|
3
|
+
hasError?: boolean | undefined;
|
|
4
|
+
hasWarning?: boolean | undefined;
|
|
5
|
+
hasSuccess?: boolean | undefined;
|
|
6
|
+
modalType: any;
|
|
7
|
+
}) => string[])[];
|
|
8
|
+
add(customModifier: any): void;
|
|
9
|
+
execute(props: any): ({ hasError, hasWarning, hasSuccess, modalType }: {
|
|
10
|
+
hasError?: boolean | undefined;
|
|
11
|
+
hasWarning?: boolean | undefined;
|
|
12
|
+
hasSuccess?: boolean | undefined;
|
|
13
|
+
modalType: any;
|
|
14
|
+
}) => string[];
|
|
15
|
+
};
|
|
16
|
+
export { pipe };
|
|
17
|
+
export default pipe;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const pipe: () => {
|
|
2
|
+
getInstance(): (({ color }: {
|
|
3
|
+
color?: null | undefined;
|
|
4
|
+
}) => string[])[];
|
|
5
|
+
add(customModifier: any): void;
|
|
6
|
+
execute(props: any): ({ color }: {
|
|
7
|
+
color?: null | undefined;
|
|
8
|
+
}) => string[];
|
|
9
|
+
};
|
|
10
|
+
export { pipe };
|
|
11
|
+
export default pipe;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const pipe: () => {
|
|
2
|
+
getInstance(): (({ id, buttonType, fluidWidth, fluidHeight }: {
|
|
3
|
+
id: any;
|
|
4
|
+
buttonType?: string | undefined;
|
|
5
|
+
fluidWidth?: boolean | undefined;
|
|
6
|
+
fluidHeight?: boolean | undefined;
|
|
7
|
+
}) => string[])[];
|
|
8
|
+
add(customModifier: any): void;
|
|
9
|
+
execute(props: any): ({ id, buttonType, fluidWidth, fluidHeight }: {
|
|
10
|
+
id: any;
|
|
11
|
+
buttonType?: string | undefined;
|
|
12
|
+
fluidWidth?: boolean | undefined;
|
|
13
|
+
fluidHeight?: boolean | undefined;
|
|
14
|
+
}) => string[];
|
|
15
|
+
};
|
|
16
|
+
export { pipe };
|
|
17
|
+
export default pipe;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const pipe: () => {
|
|
2
|
+
getInstance(): (({ size, extraTight, tight, base, bitLoose, loose, extraLoose, superLoose, }: {
|
|
3
|
+
size?: null | undefined;
|
|
4
|
+
extraTight?: boolean | undefined;
|
|
5
|
+
tight?: boolean | undefined;
|
|
6
|
+
base?: boolean | undefined;
|
|
7
|
+
bitLoose?: boolean | undefined;
|
|
8
|
+
loose?: boolean | undefined;
|
|
9
|
+
extraLoose?: boolean | undefined;
|
|
10
|
+
superLoose?: boolean | undefined;
|
|
11
|
+
}) => string[])[];
|
|
12
|
+
add(customModifier: any): void;
|
|
13
|
+
execute(props: any): ({ size, extraTight, tight, base, bitLoose, loose, extraLoose, superLoose, }: {
|
|
14
|
+
size?: null | undefined;
|
|
15
|
+
extraTight?: boolean | undefined;
|
|
16
|
+
tight?: boolean | undefined;
|
|
17
|
+
base?: boolean | undefined;
|
|
18
|
+
bitLoose?: boolean | undefined;
|
|
19
|
+
loose?: boolean | undefined;
|
|
20
|
+
extraLoose?: boolean | undefined;
|
|
21
|
+
superLoose?: boolean | undefined;
|
|
22
|
+
}) => string[];
|
|
23
|
+
};
|
|
24
|
+
export { pipe };
|
|
25
|
+
export default pipe;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const pipe: () => {
|
|
2
|
+
getInstance(): (({ textEllipsis, textAlignment, wordBreak }: {
|
|
3
|
+
textEllipsis: any;
|
|
4
|
+
textAlignment: any;
|
|
5
|
+
wordBreak: any;
|
|
6
|
+
}) => string[])[];
|
|
7
|
+
add(customModifier: any): void;
|
|
8
|
+
execute(props: any): ({ textEllipsis, textAlignment, wordBreak }: {
|
|
9
|
+
textEllipsis: any;
|
|
10
|
+
textAlignment: any;
|
|
11
|
+
wordBreak: any;
|
|
12
|
+
}) => string[];
|
|
13
|
+
};
|
|
14
|
+
export { pipe };
|
|
15
|
+
export default pipe;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
export declare const whiteList: {
|
|
2
|
+
onCopy: boolean;
|
|
3
|
+
onCut: boolean;
|
|
4
|
+
onPaste: boolean;
|
|
5
|
+
onCompositionEnd: boolean;
|
|
6
|
+
onCompositionStart: boolean;
|
|
7
|
+
onCompositionUpdate: boolean;
|
|
8
|
+
onKeyDown: boolean;
|
|
9
|
+
onKeyPress: boolean;
|
|
10
|
+
onKeyUp: boolean;
|
|
11
|
+
onFocus: boolean;
|
|
12
|
+
onBlur: boolean;
|
|
13
|
+
onChange: boolean;
|
|
14
|
+
onInput: boolean;
|
|
15
|
+
onInvalid: boolean;
|
|
16
|
+
onReset: boolean;
|
|
17
|
+
onSubmit: boolean;
|
|
18
|
+
onError: boolean;
|
|
19
|
+
onLoad: boolean;
|
|
20
|
+
onClick: boolean;
|
|
21
|
+
onContextMenu: boolean;
|
|
22
|
+
onDoubleClick: boolean;
|
|
23
|
+
onDrag: boolean;
|
|
24
|
+
onDragEnd: boolean;
|
|
25
|
+
onDragEnter: boolean;
|
|
26
|
+
onDragExit: boolean;
|
|
27
|
+
onDragLeave: boolean;
|
|
28
|
+
onDragOver: boolean;
|
|
29
|
+
onDragStart: boolean;
|
|
30
|
+
onDrop: boolean;
|
|
31
|
+
onMouseDown: boolean;
|
|
32
|
+
onMouseEnter: boolean;
|
|
33
|
+
onMouseLeave: boolean;
|
|
34
|
+
onMouseMove: boolean;
|
|
35
|
+
onMouseOut: boolean;
|
|
36
|
+
onMouseOver: boolean;
|
|
37
|
+
onMouseUp: boolean;
|
|
38
|
+
onPointerDown: boolean;
|
|
39
|
+
onPointerMove: boolean;
|
|
40
|
+
onPointerUp: boolean;
|
|
41
|
+
onPointerCancel: boolean;
|
|
42
|
+
onGotPointerCapture: boolean;
|
|
43
|
+
onLostPointerCapture: boolean;
|
|
44
|
+
onPointerEnter: boolean;
|
|
45
|
+
onPointerLeave: boolean;
|
|
46
|
+
onPointerOver: boolean;
|
|
47
|
+
onPointerOut: boolean;
|
|
48
|
+
onSelect: boolean;
|
|
49
|
+
onTouchCancel: boolean;
|
|
50
|
+
onTouchEnd: boolean;
|
|
51
|
+
onTouchMove: boolean;
|
|
52
|
+
onTouchStart: boolean;
|
|
53
|
+
onScroll: boolean;
|
|
54
|
+
onWheel: boolean;
|
|
55
|
+
onAbort: boolean;
|
|
56
|
+
onCanPlay: boolean;
|
|
57
|
+
onCanPlayThrough: boolean;
|
|
58
|
+
onDurationChange: boolean;
|
|
59
|
+
onEmptied: boolean;
|
|
60
|
+
onEncrypted: boolean;
|
|
61
|
+
onEnded: boolean;
|
|
62
|
+
onLoadedData: boolean;
|
|
63
|
+
onLoadedMetadata: boolean;
|
|
64
|
+
onLoadStart: boolean;
|
|
65
|
+
onPause: boolean;
|
|
66
|
+
onPlay: boolean;
|
|
67
|
+
onPlaying: boolean;
|
|
68
|
+
onProgress: boolean;
|
|
69
|
+
onRateChange: boolean;
|
|
70
|
+
onSeeked: boolean;
|
|
71
|
+
onSeeking: boolean;
|
|
72
|
+
onStalled: boolean;
|
|
73
|
+
onSuspend: boolean;
|
|
74
|
+
onTimeUpdate: boolean;
|
|
75
|
+
onVolumeChange: boolean;
|
|
76
|
+
onWaiting: boolean;
|
|
77
|
+
onAnimationStart: boolean;
|
|
78
|
+
onAnimationEnd: boolean;
|
|
79
|
+
onAnimationIteration: boolean;
|
|
80
|
+
onTransitionEnd: boolean;
|
|
81
|
+
onToggle: boolean;
|
|
82
|
+
autoCapitalize: boolean;
|
|
83
|
+
autoCorrect: boolean;
|
|
84
|
+
property: boolean;
|
|
85
|
+
itemProp: boolean;
|
|
86
|
+
itemScope: boolean;
|
|
87
|
+
itemType: boolean;
|
|
88
|
+
itemRef: boolean;
|
|
89
|
+
itemID: boolean;
|
|
90
|
+
unselectable: boolean;
|
|
91
|
+
results: boolean;
|
|
92
|
+
autoSave: boolean;
|
|
93
|
+
clipPath: boolean;
|
|
94
|
+
cx: boolean;
|
|
95
|
+
cy: boolean;
|
|
96
|
+
d: boolean;
|
|
97
|
+
dx: boolean;
|
|
98
|
+
dy: boolean;
|
|
99
|
+
fill: boolean;
|
|
100
|
+
fillOpacity: boolean;
|
|
101
|
+
fontFamily: boolean;
|
|
102
|
+
fontSize: boolean;
|
|
103
|
+
fx: boolean;
|
|
104
|
+
fy: boolean;
|
|
105
|
+
gradientTransform: boolean;
|
|
106
|
+
gradientUnits: boolean;
|
|
107
|
+
markerEnd: boolean;
|
|
108
|
+
markerMid: boolean;
|
|
109
|
+
markerStart: boolean;
|
|
110
|
+
offset: boolean;
|
|
111
|
+
opacity: boolean;
|
|
112
|
+
patternContentUnits: boolean;
|
|
113
|
+
patternUnits: boolean;
|
|
114
|
+
points: boolean;
|
|
115
|
+
preserveAspectRatio: boolean;
|
|
116
|
+
r: boolean;
|
|
117
|
+
rx: boolean;
|
|
118
|
+
ry: boolean;
|
|
119
|
+
spreadMethod: boolean;
|
|
120
|
+
stopColor: boolean;
|
|
121
|
+
stopOpacity: boolean;
|
|
122
|
+
stroke: boolean;
|
|
123
|
+
strokeDasharray: boolean;
|
|
124
|
+
strokeLinecap: boolean;
|
|
125
|
+
strokeOpacity: boolean;
|
|
126
|
+
strokeWidth: boolean;
|
|
127
|
+
textAnchor: boolean;
|
|
128
|
+
transform: boolean;
|
|
129
|
+
version: boolean;
|
|
130
|
+
viewBox: boolean;
|
|
131
|
+
x1: boolean;
|
|
132
|
+
x2: boolean;
|
|
133
|
+
x: boolean;
|
|
134
|
+
xlinkActuate: boolean;
|
|
135
|
+
xlinkArcrole: boolean;
|
|
136
|
+
xlinkHref: boolean;
|
|
137
|
+
xlinkRole: boolean;
|
|
138
|
+
xlinkShow: boolean;
|
|
139
|
+
xlinkTitle: boolean;
|
|
140
|
+
xlinkType: boolean;
|
|
141
|
+
xmlBase: boolean;
|
|
142
|
+
xmlLang: boolean;
|
|
143
|
+
xmlSpace: boolean;
|
|
144
|
+
y1: boolean;
|
|
145
|
+
y2: boolean;
|
|
146
|
+
y: boolean;
|
|
147
|
+
accept: boolean;
|
|
148
|
+
acceptCharset: boolean;
|
|
149
|
+
accessKey: boolean;
|
|
150
|
+
action: boolean;
|
|
151
|
+
allowFullScreen: boolean;
|
|
152
|
+
allowTransparency: boolean;
|
|
153
|
+
alt: boolean;
|
|
154
|
+
async: boolean;
|
|
155
|
+
autoComplete: boolean;
|
|
156
|
+
autoFocus: boolean;
|
|
157
|
+
autoPlay: boolean;
|
|
158
|
+
capture: boolean;
|
|
159
|
+
cellPadding: boolean;
|
|
160
|
+
cellSpacing: boolean;
|
|
161
|
+
charSet: boolean;
|
|
162
|
+
challenge: boolean;
|
|
163
|
+
checked: boolean;
|
|
164
|
+
classID: boolean;
|
|
165
|
+
className: boolean;
|
|
166
|
+
cols: boolean;
|
|
167
|
+
colSpan: boolean;
|
|
168
|
+
content: boolean;
|
|
169
|
+
contentEditable: boolean;
|
|
170
|
+
contextMenu: boolean;
|
|
171
|
+
controls: boolean;
|
|
172
|
+
coords: boolean;
|
|
173
|
+
crossOrigin: boolean;
|
|
174
|
+
data: boolean;
|
|
175
|
+
dateTime: boolean;
|
|
176
|
+
defer: boolean;
|
|
177
|
+
dir: boolean;
|
|
178
|
+
disabled: boolean;
|
|
179
|
+
download: boolean;
|
|
180
|
+
draggable: boolean;
|
|
181
|
+
encType: boolean;
|
|
182
|
+
form: boolean;
|
|
183
|
+
formAction: boolean;
|
|
184
|
+
formEncType: boolean;
|
|
185
|
+
formMethod: boolean;
|
|
186
|
+
formNoValidate: boolean;
|
|
187
|
+
formTarget: boolean;
|
|
188
|
+
frameBorder: boolean;
|
|
189
|
+
headers: boolean;
|
|
190
|
+
height: boolean;
|
|
191
|
+
hidden: boolean;
|
|
192
|
+
high: boolean;
|
|
193
|
+
href: boolean;
|
|
194
|
+
hrefLang: boolean;
|
|
195
|
+
htmlFor: boolean;
|
|
196
|
+
httpEquiv: boolean;
|
|
197
|
+
icon: boolean;
|
|
198
|
+
id: boolean;
|
|
199
|
+
inputMode: boolean;
|
|
200
|
+
keyParams: boolean;
|
|
201
|
+
keyType: boolean;
|
|
202
|
+
label: boolean;
|
|
203
|
+
lang: boolean;
|
|
204
|
+
list: boolean;
|
|
205
|
+
loop: boolean;
|
|
206
|
+
low: boolean;
|
|
207
|
+
manifest: boolean;
|
|
208
|
+
marginHeight: boolean;
|
|
209
|
+
marginWidth: boolean;
|
|
210
|
+
max: boolean;
|
|
211
|
+
maxLength: boolean;
|
|
212
|
+
media: boolean;
|
|
213
|
+
mediaGroup: boolean;
|
|
214
|
+
method: boolean;
|
|
215
|
+
min: boolean;
|
|
216
|
+
minLength: boolean;
|
|
217
|
+
multiple: boolean;
|
|
218
|
+
muted: boolean;
|
|
219
|
+
name: boolean;
|
|
220
|
+
noValidate: boolean;
|
|
221
|
+
open: boolean;
|
|
222
|
+
optimum: boolean;
|
|
223
|
+
pattern: boolean;
|
|
224
|
+
placeholder: boolean;
|
|
225
|
+
poster: boolean;
|
|
226
|
+
preload: boolean;
|
|
227
|
+
radioGroup: boolean;
|
|
228
|
+
readOnly: boolean;
|
|
229
|
+
rel: boolean;
|
|
230
|
+
required: boolean;
|
|
231
|
+
role: boolean;
|
|
232
|
+
rows: boolean;
|
|
233
|
+
rowSpan: boolean;
|
|
234
|
+
sandbox: boolean;
|
|
235
|
+
scope: boolean;
|
|
236
|
+
scoped: boolean;
|
|
237
|
+
scrolling: boolean;
|
|
238
|
+
seamless: boolean;
|
|
239
|
+
selected: boolean;
|
|
240
|
+
shape: boolean;
|
|
241
|
+
size: boolean;
|
|
242
|
+
sizes: boolean;
|
|
243
|
+
span: boolean;
|
|
244
|
+
spellCheck: boolean;
|
|
245
|
+
src: boolean;
|
|
246
|
+
srcDoc: boolean;
|
|
247
|
+
srcSet: boolean;
|
|
248
|
+
start: boolean;
|
|
249
|
+
step: boolean;
|
|
250
|
+
style: boolean;
|
|
251
|
+
summary: boolean;
|
|
252
|
+
tabIndex: boolean;
|
|
253
|
+
target: boolean;
|
|
254
|
+
title: boolean;
|
|
255
|
+
type: boolean;
|
|
256
|
+
useMap: boolean;
|
|
257
|
+
value: boolean;
|
|
258
|
+
width: boolean;
|
|
259
|
+
wmode: boolean;
|
|
260
|
+
wrap: boolean;
|
|
261
|
+
};
|
|
262
|
+
export declare const isDataAttribute: (attribute: any) => boolean;
|
|
263
|
+
export declare const isAriaAttribute: (attribute: any) => boolean;
|
|
264
|
+
export declare const isValidNativeAttribute: (attribute: any) => boolean;
|
|
265
|
+
export declare const isNativeHTMLElement: (type: any) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-classnames",
|
|
3
|
-
"version": "3.13.1
|
|
3
|
+
"version": "3.13.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum Library - Aggregated classNames to component",
|
|
6
6
|
"files": [
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"obj-str": "~1.1.0",
|
|
75
|
-
"@elliemae/ds-utilities": "3.13.1
|
|
75
|
+
"@elliemae/ds-utilities": "3.13.1"
|
|
76
76
|
},
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public",
|