@autoguru/overdrive 4.43.6-next.7 → 4.43.6-next.9
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 +2 -2
- 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.map +1 -1
- package/dist/components/Box/Box.js +106 -49
- package/dist/components/Box/newBox/boxStyles.d.ts +456 -1
- package/dist/components/Box/newBox/boxStyles.d.ts.map +1 -1
- package/dist/components/Box/newBox/boxStyles.js +7 -13
- package/dist/components/Box/useBoxStyles.d.ts.map +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 +1 -1
- package/dist/components/DatePicker/DatePicker.js +2 -2
- package/dist/components/DropDown/DropDown.stories.d.ts +1 -1
- package/dist/components/Heading/Heading.stories.d.ts +83 -81
- 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 +84 -82
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts.map +1 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts +1 -1
- package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -1
- package/dist/components/NumberBubble/NumberBubble.js +2 -2
- package/dist/components/OptionList/OptionList.d.ts +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/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 +6 -15
- 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/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 -1
- package/dist/styles/reset.css.d.ts.map +1 -1
- package/dist/styles/reset.css.js +4 -3
- 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 +86 -94
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +67 -35
- 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 +1 -1
|
@@ -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";
|
|
@@ -56,7 +56,7 @@ export const Alert = _ref => {
|
|
|
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 +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,8EAgSf,CAAC"}
|
|
@@ -2,69 +2,98 @@
|
|
|
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", "odComponent", "testId", "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", "justifySelf", "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 { borderReset } from "../../styles/reset.css.js";
|
|
11
|
+
import { elementResetStyles } from "../../styles/resetStyles.js";
|
|
12
|
+
import { sprinkles } from "../../styles/sprinkles.css.js";
|
|
10
13
|
import { dataAttrs } from "../../utils/dataAttrs.js";
|
|
11
|
-
import { boxStyles } from "./newBox/boxStyles.js";
|
|
12
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
15
|
export const Box = forwardRef((_ref, ref) => {
|
|
14
16
|
let {
|
|
15
17
|
is = 'div',
|
|
16
18
|
as = is,
|
|
17
19
|
children,
|
|
18
|
-
className,
|
|
20
|
+
className: _className,
|
|
19
21
|
odComponent,
|
|
20
22
|
testId,
|
|
21
23
|
display,
|
|
22
|
-
|
|
24
|
+
height,
|
|
23
25
|
maxWidth,
|
|
24
26
|
minWidth,
|
|
25
|
-
height,
|
|
26
|
-
position,
|
|
27
27
|
overflow,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
overflowX,
|
|
29
|
+
overflowY,
|
|
30
30
|
pointerEvents,
|
|
31
|
+
position,
|
|
32
|
+
size,
|
|
33
|
+
userSelect,
|
|
34
|
+
useVar,
|
|
35
|
+
width,
|
|
36
|
+
bg,
|
|
31
37
|
backgroundColor,
|
|
32
38
|
backgroundColour,
|
|
33
39
|
boxShadow,
|
|
34
40
|
color,
|
|
35
41
|
colour,
|
|
42
|
+
fg,
|
|
36
43
|
opacity,
|
|
44
|
+
fontSize,
|
|
45
|
+
fontWeight,
|
|
46
|
+
lineHeight,
|
|
47
|
+
text,
|
|
48
|
+
textAlign,
|
|
49
|
+
textWrap,
|
|
37
50
|
borderRadius,
|
|
38
51
|
borderColor,
|
|
52
|
+
borderStyle,
|
|
53
|
+
borderWidth,
|
|
54
|
+
borderWidthX,
|
|
55
|
+
borderWidthY,
|
|
39
56
|
borderBottomColor,
|
|
57
|
+
borderBottomStyle,
|
|
58
|
+
borderBottomWidth,
|
|
40
59
|
borderLeftColor,
|
|
60
|
+
borderLeftStyle,
|
|
61
|
+
borderLeftWidth,
|
|
41
62
|
borderRightColor,
|
|
63
|
+
borderRightStyle,
|
|
64
|
+
borderRightWidth,
|
|
42
65
|
borderTopColor,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
borderColourY,
|
|
46
|
-
borderColourTop,
|
|
47
|
-
borderColourRight,
|
|
48
|
-
borderColourBottom,
|
|
49
|
-
borderColourLeft,
|
|
50
|
-
borderWidth,
|
|
51
|
-
borderWidthX,
|
|
52
|
-
borderWidthY,
|
|
66
|
+
borderTopStyle,
|
|
67
|
+
borderTopWidth,
|
|
53
68
|
borderWidthTop,
|
|
54
69
|
borderWidthRight,
|
|
55
70
|
borderWidthBottom,
|
|
56
71
|
borderWidthLeft,
|
|
72
|
+
borderColour,
|
|
73
|
+
borderColourX,
|
|
74
|
+
borderColourY,
|
|
75
|
+
borderBottomColour,
|
|
76
|
+
borderLeftColour,
|
|
77
|
+
borderRightColour,
|
|
78
|
+
borderTopColour,
|
|
79
|
+
alignContent,
|
|
57
80
|
alignItems,
|
|
58
|
-
|
|
81
|
+
alignSelf,
|
|
82
|
+
columnGap,
|
|
59
83
|
flexDirection,
|
|
60
84
|
flexGrow,
|
|
61
85
|
flexShrink,
|
|
62
86
|
flexWrap,
|
|
87
|
+
gap,
|
|
88
|
+
gridAutoColumns,
|
|
89
|
+
gridAutoFlow,
|
|
90
|
+
gridAutoRows,
|
|
91
|
+
gridColumns,
|
|
63
92
|
justifyContent,
|
|
64
93
|
justifySelf,
|
|
65
|
-
|
|
66
|
-
columnGap,
|
|
94
|
+
placeItems,
|
|
67
95
|
rowGap,
|
|
96
|
+
order,
|
|
68
97
|
m,
|
|
69
98
|
mb,
|
|
70
99
|
ml,
|
|
@@ -74,10 +103,10 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
74
103
|
margin,
|
|
75
104
|
marginX,
|
|
76
105
|
marginY,
|
|
77
|
-
marginTop,
|
|
78
106
|
marginBottom,
|
|
79
107
|
marginLeft,
|
|
80
108
|
marginRight,
|
|
109
|
+
marginTop,
|
|
81
110
|
p,
|
|
82
111
|
pb,
|
|
83
112
|
pl,
|
|
@@ -87,61 +116,89 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
87
116
|
padding,
|
|
88
117
|
paddingX,
|
|
89
118
|
paddingY,
|
|
90
|
-
paddingTop,
|
|
91
119
|
paddingBottom,
|
|
92
120
|
paddingLeft,
|
|
93
|
-
paddingRight
|
|
121
|
+
paddingRight,
|
|
122
|
+
paddingTop
|
|
94
123
|
} = _ref,
|
|
95
124
|
allOtherProps = _objectWithoutProperties(_ref, _excluded);
|
|
96
|
-
const
|
|
97
|
-
|
|
125
|
+
const Component = as;
|
|
126
|
+
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);
|
|
127
|
+
const styles = sprinkles({
|
|
98
128
|
display,
|
|
99
|
-
|
|
129
|
+
height,
|
|
100
130
|
maxWidth,
|
|
101
131
|
minWidth,
|
|
102
|
-
height,
|
|
103
|
-
position,
|
|
104
132
|
overflow,
|
|
105
|
-
|
|
106
|
-
|
|
133
|
+
overflowX,
|
|
134
|
+
overflowY,
|
|
107
135
|
pointerEvents,
|
|
136
|
+
position,
|
|
137
|
+
size,
|
|
138
|
+
userSelect,
|
|
139
|
+
useVar,
|
|
140
|
+
width,
|
|
141
|
+
bg,
|
|
108
142
|
backgroundColor,
|
|
109
143
|
backgroundColour,
|
|
110
144
|
boxShadow,
|
|
111
145
|
color,
|
|
112
146
|
colour,
|
|
147
|
+
fg,
|
|
113
148
|
opacity,
|
|
149
|
+
fontSize,
|
|
150
|
+
fontWeight,
|
|
151
|
+
lineHeight,
|
|
152
|
+
text,
|
|
153
|
+
textAlign,
|
|
154
|
+
textWrap,
|
|
114
155
|
borderRadius,
|
|
115
156
|
borderColor,
|
|
157
|
+
borderStyle,
|
|
158
|
+
borderWidth,
|
|
159
|
+
borderWidthX,
|
|
160
|
+
borderWidthY,
|
|
116
161
|
borderBottomColor,
|
|
162
|
+
borderBottomStyle,
|
|
163
|
+
borderBottomWidth,
|
|
117
164
|
borderLeftColor,
|
|
165
|
+
borderLeftStyle,
|
|
166
|
+
borderLeftWidth,
|
|
118
167
|
borderRightColor,
|
|
168
|
+
borderRightStyle,
|
|
169
|
+
borderRightWidth,
|
|
119
170
|
borderTopColor,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
borderColourY,
|
|
123
|
-
borderColourTop,
|
|
124
|
-
borderColourRight,
|
|
125
|
-
borderColourBottom,
|
|
126
|
-
borderColourLeft,
|
|
127
|
-
borderWidth,
|
|
128
|
-
borderWidthX,
|
|
129
|
-
borderWidthY,
|
|
171
|
+
borderTopStyle,
|
|
172
|
+
borderTopWidth,
|
|
130
173
|
borderWidthTop,
|
|
131
174
|
borderWidthRight,
|
|
132
175
|
borderWidthBottom,
|
|
133
176
|
borderWidthLeft,
|
|
177
|
+
borderColour,
|
|
178
|
+
borderColourX,
|
|
179
|
+
borderColourY,
|
|
180
|
+
borderBottomColour,
|
|
181
|
+
borderLeftColour,
|
|
182
|
+
borderRightColour,
|
|
183
|
+
borderTopColour,
|
|
184
|
+
alignContent,
|
|
134
185
|
alignItems,
|
|
135
|
-
|
|
186
|
+
alignSelf,
|
|
187
|
+
columnGap,
|
|
136
188
|
flexDirection,
|
|
137
189
|
flexGrow,
|
|
138
190
|
flexShrink,
|
|
139
191
|
flexWrap,
|
|
192
|
+
gap,
|
|
193
|
+
gridAutoColumns,
|
|
194
|
+
gridAutoFlow,
|
|
195
|
+
gridAutoRows,
|
|
196
|
+
gridColumns,
|
|
140
197
|
justifyContent,
|
|
141
198
|
justifySelf,
|
|
142
|
-
|
|
143
|
-
columnGap,
|
|
199
|
+
placeItems,
|
|
144
200
|
rowGap,
|
|
201
|
+
order,
|
|
145
202
|
m,
|
|
146
203
|
mb,
|
|
147
204
|
ml,
|
|
@@ -151,10 +208,10 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
151
208
|
margin,
|
|
152
209
|
marginX,
|
|
153
210
|
marginY,
|
|
154
|
-
marginTop,
|
|
155
211
|
marginBottom,
|
|
156
212
|
marginLeft,
|
|
157
213
|
marginRight,
|
|
214
|
+
marginTop,
|
|
158
215
|
p,
|
|
159
216
|
pb,
|
|
160
217
|
pl,
|
|
@@ -164,17 +221,17 @@ export const Box = forwardRef((_ref, ref) => {
|
|
|
164
221
|
padding,
|
|
165
222
|
paddingX,
|
|
166
223
|
paddingY,
|
|
167
|
-
paddingTop,
|
|
168
224
|
paddingBottom,
|
|
169
225
|
paddingLeft,
|
|
170
|
-
paddingRight
|
|
226
|
+
paddingRight,
|
|
227
|
+
paddingTop
|
|
171
228
|
});
|
|
172
|
-
const
|
|
229
|
+
const className = clsx(elementResetStyles(as), hasBorder && borderReset, styles, _className);
|
|
173
230
|
return _jsx(Component, _objectSpread(_objectSpread(_objectSpread({}, allOtherProps), dataAttrs({
|
|
174
231
|
'od-component': odComponent === null || odComponent === void 0 ? void 0 : odComponent.toLocaleLowerCase(),
|
|
175
232
|
testId
|
|
176
233
|
})), {}, {
|
|
177
|
-
className:
|
|
234
|
+
className: className,
|
|
178
235
|
ref: ref,
|
|
179
236
|
children: children
|
|
180
237
|
}));
|