@autoguru/overdrive 4.43.6-next.0 → 4.43.6-next.10
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/Alert/Alert.js +3 -3
- package/dist/components/Anchor/Anchor.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.js +4 -4
- package/dist/components/Box/Box.d.ts +2 -1
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +115 -53
- package/dist/components/Box/newBox/boxStyles.d.ts +450 -1
- package/dist/components/Box/newBox/boxStyles.d.ts.map +1 -1
- package/dist/components/Box/newBox/boxStyles.js +6 -8
- package/dist/components/Box/useBoxStyles.d.ts.map +1 -1
- package/dist/components/BulletText/BulletText.js +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +6 -6
- package/dist/components/ColourInput/ColourInput.js +2 -2
- package/dist/components/Columns/Column.css.d.ts +4 -9
- package/dist/components/Columns/Column.css.d.ts.map +1 -1
- package/dist/components/Columns/Column.css.js +14 -11
- package/dist/components/Columns/ColumnGrid.css.js +4 -4
- package/dist/components/Columns/Columns.css.d.ts +8 -25
- package/dist/components/Columns/Columns.css.d.ts.map +1 -1
- package/dist/components/Columns/Columns.css.js +25 -20
- package/dist/components/DatePicker/DatePicker.js +2 -2
- package/dist/components/Heading/Heading.d.ts +3 -1
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +5 -2
- package/dist/components/Heading/Heading.stories.d.ts +59 -55
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts +52 -54
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts.map +1 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts +6 -6
- package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -1
- package/dist/components/NumberBubble/NumberBubble.js +2 -2
- package/dist/components/OverdriveProvider/OverdriveProvider.js +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.js +2 -2
- package/dist/components/StarRating/StarRating.js +2 -2
- package/dist/components/Stepper/Stepper.css.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.css.js +1 -7
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +1 -4
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Text/textStyles.d.ts +3 -1
- package/dist/components/Text/textStyles.d.ts.map +1 -1
- package/dist/components/Text/textStyles.js +3 -1
- package/dist/components/TextBubble/TextBubble.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.js +2 -2
- package/dist/components/TextLink/TextLink.js +3 -3
- package/dist/components/TextLink/TextLink.stories.d.ts +3 -3
- package/dist/components/private/CheckableBase/CheckableBase.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.js +7 -16
- package/dist/components/private/InputBase/HintText.d.ts.map +1 -1
- package/dist/components/private/InputBase/HintText.js +5 -6
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/global/fonts.css.d.ts +2 -0
- package/dist/styles/global/fonts.css.d.ts.map +1 -0
- package/dist/styles/global/fonts.css.js +24 -0
- package/dist/styles/global/reset.css.d.ts +2 -0
- package/dist/styles/global/reset.css.d.ts.map +1 -0
- package/dist/styles/global/reset.css.js +53 -0
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/styles/index.js +6 -0
- package/dist/styles/reset.css.d.ts +1 -0
- package/dist/styles/reset.css.d.ts.map +1 -1
- package/dist/styles/reset.css.js +9 -1
- package/dist/styles/resetStyles.d.ts +6 -0
- package/dist/styles/resetStyles.d.ts.map +1 -1
- package/dist/styles/resetStyles.js +17 -0
- package/dist/styles/sprinkles.css.d.ts +53 -67
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +88 -56
- package/dist/utils/index.js +2 -2
- package/dist/utils/sprinkles.d.ts +2 -5
- package/dist/utils/sprinkles.d.ts.map +1 -1
- package/dist/utils/sprinkles.js +2 -8
- package/package.json +3 -3
- package/dist/styles/global.css.d.ts +0 -2
- package/dist/styles/global.css.d.ts.map +0 -1
- package/dist/styles/global.css.js +0 -71
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { AlertCircleIcon, AlertIcon, CheckCircleIcon, InformationIcon, WindowCloseIcon } from '@autoguru/icons';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
+
import { sprinkles } from "../../styles/index.js";
|
|
6
7
|
import { Box } from "../Box/Box.js";
|
|
7
|
-
import { useBoxStyles } from "../Box/useBoxStyles.js";
|
|
8
8
|
import { Button } from "../Button/Button.js";
|
|
9
9
|
import { Icon } from "../Icon/Icon.js";
|
|
10
10
|
import { IntentStripe } from "../IntentStripe/IntentStripe.js";
|
|
@@ -52,11 +52,11 @@ export const Alert = _ref => {
|
|
|
52
52
|
display: "flex",
|
|
53
53
|
gap: "2",
|
|
54
54
|
children: [_jsx(Box, {
|
|
55
|
-
alignSelf: "
|
|
55
|
+
alignSelf: "start",
|
|
56
56
|
children: _jsx(Icon, {
|
|
57
57
|
icon: iconMapForIntent[intent],
|
|
58
58
|
size: "medium",
|
|
59
|
-
className:
|
|
59
|
+
className: sprinkles({
|
|
60
60
|
marginY: '2',
|
|
61
61
|
marginLeft: '2'
|
|
62
62
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EACN,oBAAoB,EAGpB,WAAW,EACX,iBAAiB,EAEjB,YAAY,EACZ,SAAS,EACT,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,KAChB,SAAQ,IAAI,CACX,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,OAAO,GAAG,IAAI,CAC3B;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,IAAI,CAAC,EAAE,QAAQ,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EACN,oBAAoB,EAGpB,WAAW,EACX,iBAAiB,EAEjB,YAAY,EACZ,SAAS,EACT,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,KAChB,SAAQ,IAAI,CACX,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,OAAO,GAAG,IAAI,CAC3B;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,IAAI,CAAC,EAAE,QAAQ,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAsC3C,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -8,7 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { cloneElement, createElement, isValidElement } from 'react';
|
|
11
|
-
import {
|
|
11
|
+
import { componentStyles } from "../../styles/index.js";
|
|
12
12
|
import { Icon } from "../Icon/Icon.js";
|
|
13
13
|
import { Inline } from "../Inline/Inline.js";
|
|
14
14
|
import { Text } from "../Text/Text.js";
|
|
@@ -28,10 +28,10 @@ export const Anchor = _ref => {
|
|
|
28
28
|
colour: 'link'
|
|
29
29
|
});
|
|
30
30
|
const props = _objectSpread({
|
|
31
|
-
className: clsx(
|
|
32
|
-
|
|
31
|
+
className: clsx(componentStyles({
|
|
32
|
+
as: Component,
|
|
33
33
|
display: 'inline'
|
|
34
|
-
}), className),
|
|
34
|
+
}), styles.root, textStyles, className),
|
|
35
35
|
disabled
|
|
36
36
|
}, rest);
|
|
37
37
|
const childs = _jsxs(Inline, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AllHTMLAttributes, ElementType, ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type BoxStylesProps } from './newBox/boxStyles';
|
|
4
|
-
|
|
4
|
+
import type { CommonBoxProps } from './newBox/useBox';
|
|
5
|
+
export interface BoxProps extends CommonBoxProps, Omit<BoxStylesProps, 'as'>, Omit<AllHTMLAttributes<HTMLElement>, 'as' | 'className' | 'color' | 'height' | 'is' | 'size' | 'width'> {
|
|
5
6
|
as?: ElementType;
|
|
6
7
|
is?: ElementType;
|
|
7
8
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,QAChB,SAAQ,cAAc,EACrB,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,EAC1B,IAAI,CACH,iBAAiB,CAAC,WAAW,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CACjE;IACF,EAAE,CAAC,EAAE,WAAW,CAAC;IAEjB,EAAE,CAAC,EAAE,WAAW,CAAC;IAEjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAKD,eAAO,MAAM,GAAG,8EA8Rf,CAAC"}
|
|
@@ -2,65 +2,97 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["is", "as", "children", "className", "display", "
|
|
5
|
+
const _excluded = ["is", "as", "children", "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", "textWrap", "borderRadius", "borderColor", "borderStyle", "borderWidth", "borderWidthX", "borderWidthY", "borderBottomColor", "borderBottomStyle", "borderBottomWidth", "borderLeftColor", "borderLeftStyle", "borderLeftWidth", "borderRightColor", "borderRightStyle", "borderRightWidth", "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", "margin", "marginX", "marginY", "marginBottom", "marginLeft", "marginRight", "marginTop", "p", "pb", "pl", "pr", "pt", "px", "padding", "paddingX", "paddingY", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop"];
|
|
6
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
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
8
|
import clsx from 'clsx';
|
|
9
9
|
import React, { forwardRef } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { borderReset } from "../../styles/reset.css.js";
|
|
11
|
+
import { elementResetStyles } from "../../styles/resetStyles.js";
|
|
12
|
+
import { sprinkles } from "../../styles/sprinkles.css.js";
|
|
13
|
+
import { dataAttrs } from "../../utils/dataAttrs.js";
|
|
11
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
15
|
export const Box = forwardRef((_ref, ref) => {
|
|
13
16
|
let {
|
|
14
17
|
is = 'div',
|
|
15
18
|
as = is,
|
|
16
19
|
children,
|
|
17
|
-
className,
|
|
20
|
+
className: _className,
|
|
21
|
+
odComponent,
|
|
22
|
+
testId,
|
|
18
23
|
display,
|
|
19
|
-
|
|
24
|
+
height,
|
|
20
25
|
maxWidth,
|
|
21
26
|
minWidth,
|
|
22
|
-
height,
|
|
23
|
-
position,
|
|
24
27
|
overflow,
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
overflowX,
|
|
29
|
+
overflowY,
|
|
27
30
|
pointerEvents,
|
|
31
|
+
position,
|
|
32
|
+
size,
|
|
33
|
+
userSelect,
|
|
34
|
+
useVar,
|
|
35
|
+
width,
|
|
36
|
+
bg,
|
|
37
|
+
backgroundColor,
|
|
28
38
|
backgroundColour,
|
|
29
39
|
boxShadow,
|
|
30
40
|
color,
|
|
31
41
|
colour,
|
|
42
|
+
fg,
|
|
32
43
|
opacity,
|
|
44
|
+
fontSize,
|
|
45
|
+
fontWeight,
|
|
46
|
+
lineHeight,
|
|
47
|
+
text,
|
|
48
|
+
textAlign,
|
|
49
|
+
textWrap,
|
|
33
50
|
borderRadius,
|
|
34
51
|
borderColor,
|
|
52
|
+
borderStyle,
|
|
53
|
+
borderWidth,
|
|
54
|
+
borderWidthX,
|
|
55
|
+
borderWidthY,
|
|
35
56
|
borderBottomColor,
|
|
57
|
+
borderBottomStyle,
|
|
58
|
+
borderBottomWidth,
|
|
36
59
|
borderLeftColor,
|
|
60
|
+
borderLeftStyle,
|
|
61
|
+
borderLeftWidth,
|
|
37
62
|
borderRightColor,
|
|
63
|
+
borderRightStyle,
|
|
64
|
+
borderRightWidth,
|
|
38
65
|
borderTopColor,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
borderColourY,
|
|
42
|
-
borderColourTop,
|
|
43
|
-
borderColourRight,
|
|
44
|
-
borderColourBottom,
|
|
45
|
-
borderColourLeft,
|
|
46
|
-
borderWidth,
|
|
47
|
-
borderWidthX,
|
|
48
|
-
borderWidthY,
|
|
66
|
+
borderTopStyle,
|
|
67
|
+
borderTopWidth,
|
|
49
68
|
borderWidthTop,
|
|
50
69
|
borderWidthRight,
|
|
51
70
|
borderWidthBottom,
|
|
52
71
|
borderWidthLeft,
|
|
72
|
+
borderColour,
|
|
73
|
+
borderColourX,
|
|
74
|
+
borderColourY,
|
|
75
|
+
borderBottomColour,
|
|
76
|
+
borderLeftColour,
|
|
77
|
+
borderRightColour,
|
|
78
|
+
borderTopColour,
|
|
79
|
+
alignContent,
|
|
53
80
|
alignItems,
|
|
54
|
-
|
|
81
|
+
alignSelf,
|
|
82
|
+
columnGap,
|
|
55
83
|
flexDirection,
|
|
56
84
|
flexGrow,
|
|
57
85
|
flexShrink,
|
|
58
86
|
flexWrap,
|
|
59
|
-
justifyContent,
|
|
60
|
-
justifySelf,
|
|
61
87
|
gap,
|
|
62
|
-
|
|
88
|
+
gridAutoColumns,
|
|
89
|
+
gridAutoFlow,
|
|
90
|
+
gridAutoRows,
|
|
91
|
+
gridColumns,
|
|
92
|
+
justifyContent,
|
|
93
|
+
placeItems,
|
|
63
94
|
rowGap,
|
|
95
|
+
order,
|
|
64
96
|
m,
|
|
65
97
|
mb,
|
|
66
98
|
ml,
|
|
@@ -70,10 +102,10 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
70
102
|
margin,
|
|
71
103
|
marginX,
|
|
72
104
|
marginY,
|
|
73
|
-
marginTop,
|
|
74
105
|
marginBottom,
|
|
75
106
|
marginLeft,
|
|
76
107
|
marginRight,
|
|
108
|
+
marginTop,
|
|
77
109
|
p,
|
|
78
110
|
pb,
|
|
79
111
|
pl,
|
|
@@ -83,60 +115,88 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
83
115
|
padding,
|
|
84
116
|
paddingX,
|
|
85
117
|
paddingY,
|
|
86
|
-
paddingTop,
|
|
87
118
|
paddingBottom,
|
|
88
119
|
paddingLeft,
|
|
89
|
-
paddingRight
|
|
120
|
+
paddingRight,
|
|
121
|
+
paddingTop
|
|
90
122
|
} = _ref,
|
|
91
123
|
allOtherProps = _objectWithoutProperties(_ref, _excluded);
|
|
92
|
-
const
|
|
93
|
-
|
|
124
|
+
const Component = as;
|
|
125
|
+
const hasBorder = Boolean(borderColor || borderStyle || borderWidth || borderWidthX || borderWidthY || borderBottomColor || borderBottomStyle || borderBottomWidth || borderLeftColor || borderLeftStyle || borderLeftWidth || borderRightColor || borderRightStyle || borderRightWidth || borderTopColor || borderTopStyle || borderTopWidth || borderWidthTop || borderWidthRight || borderWidthBottom || borderWidthLeft || borderColour || borderColourX || borderColourY || borderBottomColour || borderLeftColour || borderRightColour || borderTopColour);
|
|
126
|
+
const styles = sprinkles({
|
|
94
127
|
display,
|
|
95
|
-
|
|
128
|
+
height,
|
|
96
129
|
maxWidth,
|
|
97
130
|
minWidth,
|
|
98
|
-
height,
|
|
99
|
-
position,
|
|
100
131
|
overflow,
|
|
101
|
-
|
|
102
|
-
|
|
132
|
+
overflowX,
|
|
133
|
+
overflowY,
|
|
103
134
|
pointerEvents,
|
|
135
|
+
position,
|
|
136
|
+
size,
|
|
137
|
+
userSelect,
|
|
138
|
+
useVar,
|
|
139
|
+
width,
|
|
140
|
+
bg,
|
|
141
|
+
backgroundColor,
|
|
104
142
|
backgroundColour,
|
|
105
143
|
boxShadow,
|
|
106
144
|
color,
|
|
107
145
|
colour,
|
|
146
|
+
fg,
|
|
108
147
|
opacity,
|
|
148
|
+
fontSize,
|
|
149
|
+
fontWeight,
|
|
150
|
+
lineHeight,
|
|
151
|
+
text,
|
|
152
|
+
textAlign,
|
|
153
|
+
textWrap,
|
|
109
154
|
borderRadius,
|
|
110
155
|
borderColor,
|
|
156
|
+
borderStyle,
|
|
157
|
+
borderWidth,
|
|
158
|
+
borderWidthX,
|
|
159
|
+
borderWidthY,
|
|
111
160
|
borderBottomColor,
|
|
161
|
+
borderBottomStyle,
|
|
162
|
+
borderBottomWidth,
|
|
112
163
|
borderLeftColor,
|
|
164
|
+
borderLeftStyle,
|
|
165
|
+
borderLeftWidth,
|
|
113
166
|
borderRightColor,
|
|
167
|
+
borderRightStyle,
|
|
168
|
+
borderRightWidth,
|
|
114
169
|
borderTopColor,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
borderColourY,
|
|
118
|
-
borderColourTop,
|
|
119
|
-
borderColourRight,
|
|
120
|
-
borderColourBottom,
|
|
121
|
-
borderColourLeft,
|
|
122
|
-
borderWidth,
|
|
123
|
-
borderWidthX,
|
|
124
|
-
borderWidthY,
|
|
170
|
+
borderTopStyle,
|
|
171
|
+
borderTopWidth,
|
|
125
172
|
borderWidthTop,
|
|
126
173
|
borderWidthRight,
|
|
127
174
|
borderWidthBottom,
|
|
128
175
|
borderWidthLeft,
|
|
176
|
+
borderColour,
|
|
177
|
+
borderColourX,
|
|
178
|
+
borderColourY,
|
|
179
|
+
borderBottomColour,
|
|
180
|
+
borderLeftColour,
|
|
181
|
+
borderRightColour,
|
|
182
|
+
borderTopColour,
|
|
183
|
+
alignContent,
|
|
129
184
|
alignItems,
|
|
130
|
-
|
|
185
|
+
alignSelf,
|
|
186
|
+
columnGap,
|
|
131
187
|
flexDirection,
|
|
132
188
|
flexGrow,
|
|
133
189
|
flexShrink,
|
|
134
190
|
flexWrap,
|
|
135
|
-
justifyContent,
|
|
136
|
-
justifySelf,
|
|
137
191
|
gap,
|
|
138
|
-
|
|
192
|
+
gridAutoColumns,
|
|
193
|
+
gridAutoFlow,
|
|
194
|
+
gridAutoRows,
|
|
195
|
+
gridColumns,
|
|
196
|
+
justifyContent,
|
|
197
|
+
placeItems,
|
|
139
198
|
rowGap,
|
|
199
|
+
order,
|
|
140
200
|
m,
|
|
141
201
|
mb,
|
|
142
202
|
ml,
|
|
@@ -146,10 +206,10 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
146
206
|
margin,
|
|
147
207
|
marginX,
|
|
148
208
|
marginY,
|
|
149
|
-
marginTop,
|
|
150
209
|
marginBottom,
|
|
151
210
|
marginLeft,
|
|
152
211
|
marginRight,
|
|
212
|
+
marginTop,
|
|
153
213
|
p,
|
|
154
214
|
pb,
|
|
155
215
|
pl,
|
|
@@ -159,16 +219,18 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
159
219
|
padding,
|
|
160
220
|
paddingX,
|
|
161
221
|
paddingY,
|
|
162
|
-
paddingTop,
|
|
163
222
|
paddingBottom,
|
|
164
223
|
paddingLeft,
|
|
165
|
-
paddingRight
|
|
224
|
+
paddingRight,
|
|
225
|
+
paddingTop
|
|
166
226
|
});
|
|
167
|
-
const
|
|
168
|
-
return _jsx(Component, _objectSpread(_objectSpread({
|
|
227
|
+
const className = clsx(elementResetStyles(as), hasBorder && borderReset, styles, _className);
|
|
228
|
+
return _jsx(Component, _objectSpread(_objectSpread(_objectSpread({}, allOtherProps), dataAttrs({
|
|
229
|
+
'od-component': odComponent === null || odComponent === void 0 ? void 0 : odComponent.toLocaleLowerCase(),
|
|
230
|
+
testId
|
|
231
|
+
})), {}, {
|
|
232
|
+
className: className,
|
|
169
233
|
ref: ref,
|
|
170
|
-
className: clsx(cls, className)
|
|
171
|
-
}, allOtherProps), {}, {
|
|
172
234
|
children: children
|
|
173
235
|
}));
|
|
174
236
|
});
|