@autoguru/overdrive 4.44.2 → 4.44.3
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/components/Box/Box.d.ts +5 -13
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +10 -228
- package/dist/components/Box/index.d.ts +2 -3
- package/dist/components/Box/index.d.ts.map +1 -1
- package/dist/components/Box/index.js +2 -2
- package/dist/components/Box/{newBox/NewBox.d.ts → polymorphicBox/PolymorphicBox.d.ts} +3 -3
- package/dist/components/Box/polymorphicBox/PolymorphicBox.d.ts.map +1 -0
- package/dist/components/Box/{newBox/NewBox.js → polymorphicBox/PolymorphicBox.js} +4 -4
- package/dist/components/Box/{newBox/useBox.d.ts → polymorphicBox/usePolymorphicBox.d.ts} +5 -5
- package/dist/components/Box/polymorphicBox/usePolymorphicBox.d.ts.map +1 -0
- package/dist/components/Box/{newBox/useBox.js → polymorphicBox/usePolymorphicBox.js} +2 -3
- package/dist/components/Box/useBox/useBox.d.ts +389 -0
- package/dist/components/Box/useBox/useBox.d.ts.map +1 -0
- package/dist/components/Box/useBox/useBox.js +255 -0
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +10 -5
- package/dist/components/Flex/Flex.css.d.ts +2 -0
- package/dist/components/Flex/Flex.css.d.ts.map +1 -0
- package/dist/components/Flex/Flex.css.js +10 -0
- package/dist/components/Flex/FlexInline.d.ts +42 -0
- package/dist/components/Flex/FlexInline.d.ts.map +1 -0
- package/dist/components/Flex/FlexInline.js +94 -0
- package/dist/components/Flex/FlexStack.d.ts +49 -0
- package/dist/components/Flex/FlexStack.d.ts.map +1 -0
- package/dist/components/Flex/FlexStack.js +87 -0
- package/dist/components/Flex/flex.d.ts +131 -0
- package/dist/components/Flex/flex.d.ts.map +1 -0
- package/dist/components/Flex/flex.js +86 -0
- package/dist/components/Flex/index.d.ts +4 -0
- package/dist/components/Flex/index.d.ts.map +1 -0
- package/dist/components/Flex/index.js +5 -0
- package/dist/components/OptionList/OptionList.d.ts +1 -1
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +18 -27
- package/readme.md +10 -10
- package/dist/components/Box/newBox/NewBox.d.ts.map +0 -1
- package/dist/components/Box/newBox/useBox.d.ts.map +0 -1
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import type { AllHTMLAttributes, ElementType } from 'react';
|
|
2
|
+
import { type ElementStylesProps } from '../../../styles/elementStyles';
|
|
3
|
+
import type { ConsistentComponentProps, OdComponent } from '../../../types';
|
|
4
|
+
type FilteredAttributes = Omit<AllHTMLAttributes<HTMLElement>, 'as' | 'className' | 'color' | 'height' | 'is' | 'size' | 'width'>;
|
|
5
|
+
export interface UseBoxProps extends FilteredAttributes, ConsistentComponentProps, OdComponent, ElementStylesProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const useBox: ({ as, className: incomingClassName, odComponent, testId, display, height, maxWidth, minWidth, overflow, overflowX, overflowY, pointerEvents, position, size, userSelect, useVar, width, bg, backgroundColor, backgroundColour, boxShadow, color, colour, fg, opacity, fontSize, fontWeight, lineHeight, text, textAlign, textTransform, textWrap, wordBreak, borderRadius, borderColor, borderColorX, borderColorY, borderStyle, borderWidth, borderWidthX, borderWidthY, borderBottomColor, borderBottomStyle, borderBottomWidth, borderLeftColor, borderLeftStyle, borderLeftWidth, borderRightColor, borderRightStyle, borderRightWidth, borderStyleBottom, borderStyleLeft, borderStyleRight, borderStyleTop, borderTopColor, borderTopStyle, borderTopWidth, borderWidthTop, borderWidthRight, borderWidthBottom, borderWidthLeft, borderColour, borderColourX, borderColourY, borderBottomColour, borderLeftColour, borderRightColour, borderTopColour, alignContent, alignItems, alignSelf, columnGap, flexDirection, flexGrow, flexShrink, flexWrap, gap, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumns, justifyContent, placeItems, rowGap, order, m, mb, ml, mr, mt, mx, my, margin, marginX, marginY, marginBottom, marginLeft, marginRight, marginTop, p, pb, pl, pr, pt, px, py, padding, paddingX, paddingY, paddingBottom, paddingLeft, paddingRight, paddingTop, ...elementProps }: UseBoxProps) => {
|
|
8
|
+
Component: ElementType;
|
|
9
|
+
componentProps: {
|
|
10
|
+
className: string;
|
|
11
|
+
content?: string | undefined | undefined;
|
|
12
|
+
placeholder?: string | undefined | undefined;
|
|
13
|
+
min?: number | string | undefined | undefined;
|
|
14
|
+
muted?: boolean | undefined | undefined;
|
|
15
|
+
name?: string | undefined | undefined;
|
|
16
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
17
|
+
start?: number | undefined | undefined;
|
|
18
|
+
hidden?: boolean | undefined | undefined;
|
|
19
|
+
style?: import("react").CSSProperties | undefined;
|
|
20
|
+
default?: boolean | undefined | undefined;
|
|
21
|
+
wrap?: string | undefined | undefined;
|
|
22
|
+
open?: boolean | undefined | undefined;
|
|
23
|
+
multiple?: boolean | undefined | undefined;
|
|
24
|
+
disabled?: boolean | undefined | undefined;
|
|
25
|
+
span?: number | undefined | undefined;
|
|
26
|
+
label?: string | undefined | undefined;
|
|
27
|
+
cite?: string | undefined | undefined;
|
|
28
|
+
data?: string | undefined | undefined;
|
|
29
|
+
form?: string | undefined | undefined;
|
|
30
|
+
slot?: string | undefined | undefined;
|
|
31
|
+
summary?: string | undefined | undefined;
|
|
32
|
+
title?: string | undefined | undefined;
|
|
33
|
+
pattern?: string | undefined | undefined;
|
|
34
|
+
value?: string | number | readonly string[] | undefined;
|
|
35
|
+
accept?: string | undefined | undefined;
|
|
36
|
+
acceptCharset?: string | undefined | undefined;
|
|
37
|
+
action?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
38
|
+
allowFullScreen?: boolean | undefined | undefined;
|
|
39
|
+
allowTransparency?: boolean | undefined | undefined;
|
|
40
|
+
alt?: string | undefined | undefined;
|
|
41
|
+
async?: boolean | undefined | undefined;
|
|
42
|
+
autoComplete?: string | undefined | undefined;
|
|
43
|
+
autoPlay?: boolean | undefined | undefined;
|
|
44
|
+
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
45
|
+
cellPadding?: number | string | undefined | undefined;
|
|
46
|
+
cellSpacing?: number | string | undefined | undefined;
|
|
47
|
+
charSet?: string | undefined | undefined;
|
|
48
|
+
challenge?: string | undefined | undefined;
|
|
49
|
+
checked?: boolean | undefined | undefined;
|
|
50
|
+
classID?: string | undefined | undefined;
|
|
51
|
+
cols?: number | undefined | undefined;
|
|
52
|
+
colSpan?: number | undefined | undefined;
|
|
53
|
+
controls?: boolean | undefined | undefined;
|
|
54
|
+
coords?: string | undefined | undefined;
|
|
55
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
56
|
+
dateTime?: string | undefined | undefined;
|
|
57
|
+
defer?: boolean | undefined | undefined;
|
|
58
|
+
download?: any;
|
|
59
|
+
encType?: string | undefined | undefined;
|
|
60
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
61
|
+
formEncType?: string | undefined | undefined;
|
|
62
|
+
formMethod?: string | undefined | undefined;
|
|
63
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
64
|
+
formTarget?: string | undefined | undefined;
|
|
65
|
+
frameBorder?: number | string | undefined | undefined;
|
|
66
|
+
headers?: string | undefined | undefined;
|
|
67
|
+
high?: number | undefined | undefined;
|
|
68
|
+
href?: string | undefined | undefined;
|
|
69
|
+
hrefLang?: string | undefined | undefined;
|
|
70
|
+
htmlFor?: string | undefined | undefined;
|
|
71
|
+
httpEquiv?: string | undefined | undefined;
|
|
72
|
+
integrity?: string | undefined | undefined;
|
|
73
|
+
keyParams?: string | undefined | undefined;
|
|
74
|
+
keyType?: string | undefined | undefined;
|
|
75
|
+
kind?: string | undefined | undefined;
|
|
76
|
+
list?: string | undefined | undefined;
|
|
77
|
+
loop?: boolean | undefined | undefined;
|
|
78
|
+
low?: number | undefined | undefined;
|
|
79
|
+
manifest?: string | undefined | undefined;
|
|
80
|
+
marginHeight?: number | undefined | undefined;
|
|
81
|
+
marginWidth?: number | undefined | undefined;
|
|
82
|
+
max?: number | string | undefined | undefined;
|
|
83
|
+
maxLength?: number | undefined | undefined;
|
|
84
|
+
media?: string | undefined | undefined;
|
|
85
|
+
mediaGroup?: string | undefined | undefined;
|
|
86
|
+
method?: string | undefined | undefined;
|
|
87
|
+
minLength?: number | undefined | undefined;
|
|
88
|
+
noValidate?: boolean | undefined | undefined;
|
|
89
|
+
optimum?: number | undefined | undefined;
|
|
90
|
+
playsInline?: boolean | undefined | undefined;
|
|
91
|
+
poster?: string | undefined | undefined;
|
|
92
|
+
preload?: string | undefined | undefined;
|
|
93
|
+
readOnly?: boolean | undefined | undefined;
|
|
94
|
+
required?: boolean | undefined | undefined;
|
|
95
|
+
reversed?: boolean | undefined | undefined;
|
|
96
|
+
rows?: number | undefined | undefined;
|
|
97
|
+
rowSpan?: number | undefined | undefined;
|
|
98
|
+
sandbox?: string | undefined | undefined;
|
|
99
|
+
scope?: string | undefined | undefined;
|
|
100
|
+
scoped?: boolean | undefined | undefined;
|
|
101
|
+
scrolling?: string | undefined | undefined;
|
|
102
|
+
seamless?: boolean | undefined | undefined;
|
|
103
|
+
selected?: boolean | undefined | undefined;
|
|
104
|
+
shape?: string | undefined | undefined;
|
|
105
|
+
sizes?: string | undefined | undefined;
|
|
106
|
+
src?: string | undefined | undefined;
|
|
107
|
+
srcDoc?: string | undefined | undefined;
|
|
108
|
+
srcLang?: string | undefined | undefined;
|
|
109
|
+
srcSet?: string | undefined | undefined;
|
|
110
|
+
step?: number | string | undefined | undefined;
|
|
111
|
+
target?: string | undefined | undefined;
|
|
112
|
+
type?: string | undefined | undefined;
|
|
113
|
+
useMap?: string | undefined | undefined;
|
|
114
|
+
wmode?: string | undefined | undefined;
|
|
115
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
116
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
117
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
118
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
119
|
+
accessKey?: string | undefined | undefined;
|
|
120
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
121
|
+
autoFocus?: boolean | undefined | undefined;
|
|
122
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
123
|
+
contextMenu?: string | undefined | undefined;
|
|
124
|
+
dir?: string | undefined | undefined;
|
|
125
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
126
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
127
|
+
id?: string | undefined | undefined;
|
|
128
|
+
lang?: string | undefined | undefined;
|
|
129
|
+
nonce?: string | undefined | undefined;
|
|
130
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
131
|
+
tabIndex?: number | undefined | undefined;
|
|
132
|
+
radioGroup?: string | undefined | undefined;
|
|
133
|
+
role?: import("react").AriaRole | undefined;
|
|
134
|
+
about?: string | undefined | undefined;
|
|
135
|
+
datatype?: string | undefined | undefined;
|
|
136
|
+
inlist?: any;
|
|
137
|
+
prefix?: string | undefined | undefined;
|
|
138
|
+
property?: string | undefined | undefined;
|
|
139
|
+
rel?: string | undefined | undefined;
|
|
140
|
+
resource?: string | undefined | undefined;
|
|
141
|
+
rev?: string | undefined | undefined;
|
|
142
|
+
typeof?: string | undefined | undefined;
|
|
143
|
+
vocab?: string | undefined | undefined;
|
|
144
|
+
autoCorrect?: string | undefined | undefined;
|
|
145
|
+
autoSave?: string | undefined | undefined;
|
|
146
|
+
itemProp?: string | undefined | undefined;
|
|
147
|
+
itemScope?: boolean | undefined | undefined;
|
|
148
|
+
itemType?: string | undefined | undefined;
|
|
149
|
+
itemID?: string | undefined | undefined;
|
|
150
|
+
itemRef?: string | undefined | undefined;
|
|
151
|
+
results?: number | undefined | undefined;
|
|
152
|
+
security?: string | undefined | undefined;
|
|
153
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
154
|
+
popover?: "" | "auto" | "manual" | undefined | undefined;
|
|
155
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
156
|
+
popoverTarget?: string | undefined | undefined;
|
|
157
|
+
inert?: boolean | undefined | undefined;
|
|
158
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
159
|
+
exportparts?: string | undefined | undefined;
|
|
160
|
+
part?: string | undefined | undefined;
|
|
161
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
162
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
163
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
164
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
165
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
166
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
167
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
168
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
169
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
170
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
171
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
172
|
+
"aria-controls"?: string | undefined | undefined;
|
|
173
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
174
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
175
|
+
"aria-description"?: string | undefined | undefined;
|
|
176
|
+
"aria-details"?: string | undefined | undefined;
|
|
177
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
178
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
179
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
180
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
181
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
182
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
183
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
184
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
185
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
186
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
187
|
+
"aria-label"?: string | undefined | undefined;
|
|
188
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
189
|
+
"aria-level"?: number | undefined | undefined;
|
|
190
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
191
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
192
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
193
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
194
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
195
|
+
"aria-owns"?: string | undefined | undefined;
|
|
196
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
197
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
198
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
199
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
200
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
201
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
202
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
203
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
204
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
205
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
206
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
207
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
208
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
209
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
210
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
211
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
212
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
213
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
214
|
+
children?: import("react").ReactNode;
|
|
215
|
+
dangerouslySetInnerHTML?: {
|
|
216
|
+
__html: string | TrustedHTML;
|
|
217
|
+
} | undefined | undefined;
|
|
218
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
219
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
220
|
+
onCut?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
221
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
222
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
223
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLElement> | undefined;
|
|
224
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLElement> | undefined;
|
|
225
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLElement> | undefined;
|
|
226
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLElement> | undefined;
|
|
227
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLElement> | undefined;
|
|
228
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLElement> | undefined;
|
|
229
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLElement> | undefined;
|
|
230
|
+
onFocus?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
231
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
232
|
+
onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
233
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
234
|
+
onChange?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
235
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
236
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLElement> | undefined;
|
|
237
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
238
|
+
onInput?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
239
|
+
onInputCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
240
|
+
onReset?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
241
|
+
onResetCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
242
|
+
onSubmit?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
243
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
244
|
+
onInvalid?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
245
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
246
|
+
onLoad?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
247
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
248
|
+
onError?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
249
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
250
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
251
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
252
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
253
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
254
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
255
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
256
|
+
onAbort?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
257
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
258
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
259
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
260
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
261
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
262
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
263
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
264
|
+
onEmptied?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
265
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
266
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
267
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
268
|
+
onEnded?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
269
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
270
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
271
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
272
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
273
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
274
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
275
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
276
|
+
onPause?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
277
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
278
|
+
onPlay?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
279
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
280
|
+
onPlaying?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
281
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
282
|
+
onProgress?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
283
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
284
|
+
onRateChange?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
285
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
286
|
+
onSeeked?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
287
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
288
|
+
onSeeking?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
289
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
290
|
+
onStalled?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
291
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
292
|
+
onSuspend?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
293
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
294
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
295
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
296
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
297
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
298
|
+
onWaiting?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
299
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
300
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
301
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
302
|
+
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
303
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
304
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
305
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
306
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
307
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
308
|
+
onDrag?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
309
|
+
onDragCapture?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
310
|
+
onDragEnd?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
311
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
312
|
+
onDragEnter?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
313
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
314
|
+
onDragExit?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
315
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
316
|
+
onDragLeave?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
317
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
318
|
+
onDragOver?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
319
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
320
|
+
onDragStart?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
321
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
322
|
+
onDrop?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
323
|
+
onDropCapture?: import("react").DragEventHandler<HTMLElement> | undefined;
|
|
324
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
325
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
326
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
327
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
328
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
329
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
330
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
331
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
332
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
333
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
334
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
335
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
336
|
+
onSelect?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
337
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
338
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLElement> | undefined;
|
|
339
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLElement> | undefined;
|
|
340
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLElement> | undefined;
|
|
341
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLElement> | undefined;
|
|
342
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLElement> | undefined;
|
|
343
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLElement> | undefined;
|
|
344
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLElement> | undefined;
|
|
345
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLElement> | undefined;
|
|
346
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
347
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
348
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
349
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
350
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
351
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
352
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
353
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
354
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
355
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
356
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
357
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
358
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
359
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
360
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
361
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
362
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
363
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
364
|
+
onScroll?: import("react").UIEventHandler<HTMLElement> | undefined;
|
|
365
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLElement> | undefined;
|
|
366
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLElement> | undefined;
|
|
367
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLElement> | undefined;
|
|
368
|
+
onWheel?: import("react").WheelEventHandler<HTMLElement> | undefined;
|
|
369
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLElement> | undefined;
|
|
370
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
371
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
372
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
373
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
374
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
375
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
376
|
+
onToggle?: import("react").ToggleEventHandler<HTMLElement> | undefined;
|
|
377
|
+
onBeforeToggle?: import("react").ToggleEventHandler<HTMLElement> | undefined;
|
|
378
|
+
onTransitionCancel?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
379
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
380
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
381
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
382
|
+
onTransitionRun?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
383
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
384
|
+
onTransitionStart?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
385
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
export {};
|
|
389
|
+
//# sourceMappingURL=useBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBox.d.ts","sourceRoot":"","sources":["../../../../lib/components/Box/useBox/useBox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAEN,KAAK,kBAAkB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG5E,KAAK,kBAAkB,GAAG,IAAI,CAC7B,iBAAiB,CAAC,WAAW,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CACjE,CAAC;AAEF,MAAM,WAAW,WAChB,SAAQ,kBAAkB,EACzB,wBAAwB,EACxB,WAAW,EACX,kBAAkB;CAAG;AAEvB,eAAO,MAAM,MAAM,GAAI,+0CA8HpB,WAAW;eAqIK,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI7B,CAAC"}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
const _excluded = ["as", "className", "odComponent", "testId", "display", "height", "maxWidth", "minWidth", "overflow", "overflowX", "overflowY", "pointerEvents", "position", "size", "userSelect", "useVar", "width", "bg", "backgroundColor", "backgroundColour", "boxShadow", "color", "colour", "fg", "opacity", "fontSize", "fontWeight", "lineHeight", "text", "textAlign", "textTransform", "textWrap", "wordBreak", "borderRadius", "borderColor", "borderColorX", "borderColorY", "borderStyle", "borderWidth", "borderWidthX", "borderWidthY", "borderBottomColor", "borderBottomStyle", "borderBottomWidth", "borderLeftColor", "borderLeftStyle", "borderLeftWidth", "borderRightColor", "borderRightStyle", "borderRightWidth", "borderStyleBottom", "borderStyleLeft", "borderStyleRight", "borderStyleTop", "borderTopColor", "borderTopStyle", "borderTopWidth", "borderWidthTop", "borderWidthRight", "borderWidthBottom", "borderWidthLeft", "borderColour", "borderColourX", "borderColourY", "borderBottomColour", "borderLeftColour", "borderRightColour", "borderTopColour", "alignContent", "alignItems", "alignSelf", "columnGap", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "gap", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridColumns", "justifyContent", "placeItems", "rowGap", "order", "m", "mb", "ml", "mr", "mt", "mx", "my", "margin", "marginX", "marginY", "marginBottom", "marginLeft", "marginRight", "marginTop", "p", "pb", "pl", "pr", "pt", "px", "py", "padding", "paddingX", "paddingY", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop"];
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
import { elementStyles } from "../../../styles/elementStyles.js";
|
|
9
|
+
import { dataAttrs } from "../../../utils/dataAttrs.js";
|
|
10
|
+
export const useBox = _ref => {
|
|
11
|
+
let {
|
|
12
|
+
as = 'div',
|
|
13
|
+
className: incomingClassName,
|
|
14
|
+
odComponent,
|
|
15
|
+
testId,
|
|
16
|
+
// style props
|
|
17
|
+
display,
|
|
18
|
+
height,
|
|
19
|
+
maxWidth,
|
|
20
|
+
minWidth,
|
|
21
|
+
overflow,
|
|
22
|
+
overflowX,
|
|
23
|
+
overflowY,
|
|
24
|
+
pointerEvents,
|
|
25
|
+
position,
|
|
26
|
+
size,
|
|
27
|
+
userSelect,
|
|
28
|
+
useVar,
|
|
29
|
+
width,
|
|
30
|
+
bg,
|
|
31
|
+
backgroundColor,
|
|
32
|
+
backgroundColour,
|
|
33
|
+
boxShadow,
|
|
34
|
+
color,
|
|
35
|
+
// modern semantic colour tokens
|
|
36
|
+
colour,
|
|
37
|
+
// legacy colours
|
|
38
|
+
fg,
|
|
39
|
+
opacity,
|
|
40
|
+
fontSize,
|
|
41
|
+
fontWeight,
|
|
42
|
+
lineHeight,
|
|
43
|
+
text,
|
|
44
|
+
textAlign,
|
|
45
|
+
textTransform,
|
|
46
|
+
textWrap,
|
|
47
|
+
wordBreak,
|
|
48
|
+
borderRadius,
|
|
49
|
+
borderColor,
|
|
50
|
+
borderColorX,
|
|
51
|
+
borderColorY,
|
|
52
|
+
borderStyle,
|
|
53
|
+
borderWidth,
|
|
54
|
+
borderWidthX,
|
|
55
|
+
borderWidthY,
|
|
56
|
+
borderBottomColor,
|
|
57
|
+
borderBottomStyle,
|
|
58
|
+
borderBottomWidth,
|
|
59
|
+
borderLeftColor,
|
|
60
|
+
borderLeftStyle,
|
|
61
|
+
borderLeftWidth,
|
|
62
|
+
borderRightColor,
|
|
63
|
+
borderRightStyle,
|
|
64
|
+
borderRightWidth,
|
|
65
|
+
borderStyleBottom,
|
|
66
|
+
borderStyleLeft,
|
|
67
|
+
borderStyleRight,
|
|
68
|
+
borderStyleTop,
|
|
69
|
+
borderTopColor,
|
|
70
|
+
borderTopStyle,
|
|
71
|
+
borderTopWidth,
|
|
72
|
+
borderWidthTop,
|
|
73
|
+
borderWidthRight,
|
|
74
|
+
borderWidthBottom,
|
|
75
|
+
borderWidthLeft,
|
|
76
|
+
// legacy border colours
|
|
77
|
+
borderColour,
|
|
78
|
+
borderColourX,
|
|
79
|
+
borderColourY,
|
|
80
|
+
borderBottomColour,
|
|
81
|
+
borderLeftColour,
|
|
82
|
+
borderRightColour,
|
|
83
|
+
borderTopColour,
|
|
84
|
+
alignContent,
|
|
85
|
+
alignItems,
|
|
86
|
+
alignSelf,
|
|
87
|
+
columnGap,
|
|
88
|
+
flexDirection,
|
|
89
|
+
flexGrow,
|
|
90
|
+
flexShrink,
|
|
91
|
+
flexWrap,
|
|
92
|
+
gap,
|
|
93
|
+
gridAutoColumns,
|
|
94
|
+
gridAutoFlow,
|
|
95
|
+
gridAutoRows,
|
|
96
|
+
gridColumns,
|
|
97
|
+
justifyContent,
|
|
98
|
+
placeItems,
|
|
99
|
+
rowGap,
|
|
100
|
+
order,
|
|
101
|
+
m,
|
|
102
|
+
mb,
|
|
103
|
+
ml,
|
|
104
|
+
mr,
|
|
105
|
+
mt,
|
|
106
|
+
mx,
|
|
107
|
+
my,
|
|
108
|
+
margin,
|
|
109
|
+
marginX,
|
|
110
|
+
marginY,
|
|
111
|
+
marginBottom,
|
|
112
|
+
marginLeft,
|
|
113
|
+
marginRight,
|
|
114
|
+
marginTop,
|
|
115
|
+
p,
|
|
116
|
+
pb,
|
|
117
|
+
pl,
|
|
118
|
+
pr,
|
|
119
|
+
pt,
|
|
120
|
+
px,
|
|
121
|
+
py,
|
|
122
|
+
padding,
|
|
123
|
+
paddingX,
|
|
124
|
+
paddingY,
|
|
125
|
+
paddingBottom,
|
|
126
|
+
paddingLeft,
|
|
127
|
+
paddingRight,
|
|
128
|
+
paddingTop
|
|
129
|
+
} = _ref,
|
|
130
|
+
elementProps = _objectWithoutProperties(_ref, _excluded);
|
|
131
|
+
const className = elementStyles({
|
|
132
|
+
as,
|
|
133
|
+
className: incomingClassName,
|
|
134
|
+
display,
|
|
135
|
+
height,
|
|
136
|
+
maxWidth,
|
|
137
|
+
minWidth,
|
|
138
|
+
overflow,
|
|
139
|
+
overflowX,
|
|
140
|
+
overflowY,
|
|
141
|
+
pointerEvents,
|
|
142
|
+
position,
|
|
143
|
+
size,
|
|
144
|
+
userSelect,
|
|
145
|
+
useVar,
|
|
146
|
+
width,
|
|
147
|
+
bg,
|
|
148
|
+
backgroundColor,
|
|
149
|
+
backgroundColour,
|
|
150
|
+
boxShadow,
|
|
151
|
+
color,
|
|
152
|
+
colour,
|
|
153
|
+
fg,
|
|
154
|
+
opacity,
|
|
155
|
+
fontSize,
|
|
156
|
+
fontWeight,
|
|
157
|
+
lineHeight,
|
|
158
|
+
text,
|
|
159
|
+
textAlign,
|
|
160
|
+
textTransform,
|
|
161
|
+
textWrap,
|
|
162
|
+
wordBreak,
|
|
163
|
+
borderRadius,
|
|
164
|
+
borderColor,
|
|
165
|
+
borderColorX,
|
|
166
|
+
borderColorY,
|
|
167
|
+
borderStyle,
|
|
168
|
+
borderWidth,
|
|
169
|
+
borderWidthX,
|
|
170
|
+
borderWidthY,
|
|
171
|
+
borderBottomColor,
|
|
172
|
+
borderBottomStyle,
|
|
173
|
+
borderBottomWidth,
|
|
174
|
+
borderLeftColor,
|
|
175
|
+
borderLeftStyle,
|
|
176
|
+
borderLeftWidth,
|
|
177
|
+
borderRightColor,
|
|
178
|
+
borderRightStyle,
|
|
179
|
+
borderRightWidth,
|
|
180
|
+
borderStyleBottom,
|
|
181
|
+
borderStyleLeft,
|
|
182
|
+
borderStyleRight,
|
|
183
|
+
borderStyleTop,
|
|
184
|
+
borderTopColor,
|
|
185
|
+
borderTopStyle,
|
|
186
|
+
borderTopWidth,
|
|
187
|
+
borderWidthTop,
|
|
188
|
+
borderWidthRight,
|
|
189
|
+
borderWidthBottom,
|
|
190
|
+
borderWidthLeft,
|
|
191
|
+
borderColour,
|
|
192
|
+
borderColourX,
|
|
193
|
+
borderColourY,
|
|
194
|
+
borderBottomColour,
|
|
195
|
+
borderLeftColour,
|
|
196
|
+
borderRightColour,
|
|
197
|
+
borderTopColour,
|
|
198
|
+
alignContent,
|
|
199
|
+
alignItems,
|
|
200
|
+
alignSelf,
|
|
201
|
+
columnGap,
|
|
202
|
+
flexDirection,
|
|
203
|
+
flexGrow,
|
|
204
|
+
flexShrink,
|
|
205
|
+
flexWrap,
|
|
206
|
+
gap,
|
|
207
|
+
gridAutoColumns,
|
|
208
|
+
gridAutoFlow,
|
|
209
|
+
gridAutoRows,
|
|
210
|
+
gridColumns,
|
|
211
|
+
justifyContent,
|
|
212
|
+
placeItems,
|
|
213
|
+
rowGap,
|
|
214
|
+
order,
|
|
215
|
+
m,
|
|
216
|
+
mb,
|
|
217
|
+
ml,
|
|
218
|
+
mr,
|
|
219
|
+
mt,
|
|
220
|
+
mx,
|
|
221
|
+
my,
|
|
222
|
+
margin,
|
|
223
|
+
marginX,
|
|
224
|
+
marginY,
|
|
225
|
+
marginBottom,
|
|
226
|
+
marginLeft,
|
|
227
|
+
marginRight,
|
|
228
|
+
marginTop,
|
|
229
|
+
p,
|
|
230
|
+
pb,
|
|
231
|
+
pl,
|
|
232
|
+
pr,
|
|
233
|
+
pt,
|
|
234
|
+
px,
|
|
235
|
+
py,
|
|
236
|
+
padding,
|
|
237
|
+
paddingX,
|
|
238
|
+
paddingY,
|
|
239
|
+
paddingBottom,
|
|
240
|
+
paddingLeft,
|
|
241
|
+
paddingRight,
|
|
242
|
+
paddingTop
|
|
243
|
+
});
|
|
244
|
+
const componentProps = _objectSpread(_objectSpread(_objectSpread({}, dataAttrs({
|
|
245
|
+
'od-component': odComponent === null || odComponent === void 0 ? void 0 : odComponent.toLocaleLowerCase(),
|
|
246
|
+
testid: testId
|
|
247
|
+
})), elementProps), {}, {
|
|
248
|
+
className
|
|
249
|
+
});
|
|
250
|
+
return {
|
|
251
|
+
Component: as,
|
|
252
|
+
componentProps
|
|
253
|
+
// In future we may want to calc a child tag for semantic nested children
|
|
254
|
+
};
|
|
255
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableText.d.ts","sourceRoot":"","sources":["../../../lib/components/EditableText/EditableText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAGb,KAAK,mBAAmB,EAKxB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD,KAAK,cAAc,GAAG,IAAI,CACzB,QAAQ,EACR,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,CAC9C,CAAC;AAEF,KAAK,iBAAiB,GAAG,IAAI,CAC5B,SAAS,EACT,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAC1D,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CACrB,mBAAmB,CAAC,gBAAgB,CAAC,EACnC,IAAI,GACJ,WAAW,GACX,OAAO,GACP,QAAQ,GACR,IAAI,GACJ,SAAS,GACT,QAAQ,GACR,WAAW,GACX,OAAO,GACP,OAAO,GACP,MAAM,iBAAiB,GACvB,MAAM,cAAc,CACtB,CAAC;AAEF,MAAM,WAAW,iBAChB,SAAQ,iBAAiB,EACxB,UAAU,EACV,OAAO,CAAC,cAAc,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACzC;AAED,KAAK,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAClC,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"EditableText.d.ts","sourceRoot":"","sources":["../../../lib/components/EditableText/EditableText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAGb,KAAK,mBAAmB,EAKxB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD,KAAK,cAAc,GAAG,IAAI,CACzB,QAAQ,EACR,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,CAC9C,CAAC;AAEF,KAAK,iBAAiB,GAAG,IAAI,CAC5B,SAAS,EACT,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAC1D,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CACrB,mBAAmB,CAAC,gBAAgB,CAAC,EACnC,IAAI,GACJ,WAAW,GACX,OAAO,GACP,QAAQ,GACR,IAAI,GACJ,SAAS,GACT,QAAQ,GACR,WAAW,GACX,OAAO,GACP,OAAO,GACP,MAAM,iBAAiB,GACvB,MAAM,cAAc,CACtB,CAAC;AAEF,MAAM,WAAW,iBAChB,SAAQ,iBAAiB,EACxB,UAAU,EACV,OAAO,CAAC,cAAc,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACzC;AAED,KAAK,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAClC,eAAO,MAAM,YAAY,0FAwIxB,CAAC"}
|