@autoguru/overdrive 4.43.6-next.6 → 4.43.6-next.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boxStyles.d.ts","sourceRoot":"","sources":["../../../../lib/components/Box/newBox/boxStyles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"boxStyles.d.ts","sourceRoot":"","sources":["../../../../lib/components/Box/newBox/boxStyles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAIzC,OAAO,EAEN,KAAK,SAAS,EAEd,KAAK,sBAAsB,EAC3B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG3D,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,UAAU,CAAC,CAAC,CAAC,GACxE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,GACjC,UAAU,CAAC;AAEZ,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAe5D,eAAO,MAAM,0BAA0B,GAAI,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,6BAIvE,cAAc,CAAC,CAAC,CAAC;;;CA8BnB,CAAC;AASF,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,WAAW,GAAG,KAAK,EACtD,OAAO,cAAc,CAAC,CAAC,CAAC,WAIxB,CAAC"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
const _excluded = ["as", "className"];
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
+
import { borderWidthReset } from "../../../styles/reset.css.js";
|
|
6
7
|
import { resetStyles } from "../../../styles/resetStyles.js";
|
|
7
8
|
import { sprinkles, sprinklesLegacyColours } from "../../../styles/sprinkles.css.js";
|
|
8
9
|
import { filterPropsWithStyles } from "../../../utils/sprinkles.js";
|
|
@@ -14,6 +15,7 @@ export const boxStylesWithFilteredProps = _ref => {
|
|
|
14
15
|
className
|
|
15
16
|
} = _ref,
|
|
16
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
let hasBorder = false;
|
|
17
19
|
const {
|
|
18
20
|
sprinklesProps,
|
|
19
21
|
sprinklesLegacyColourProps,
|
|
@@ -21,7 +23,8 @@ export const boxStylesWithFilteredProps = _ref => {
|
|
|
21
23
|
} = filterPropsWithStyles(props);
|
|
22
24
|
for (const postfix of borderPostfixes) {
|
|
23
25
|
for (const property of borderProperties) {
|
|
24
|
-
if (props[`border${postfix}${property}`]) {
|
|
26
|
+
if (!!props[`border${postfix}${property}`] || !!props[`border${property}${postfix}`]) {
|
|
27
|
+
hasBorder = true;
|
|
25
28
|
sprinklesProps[`border${postfix}Style`] = 'solid';
|
|
26
29
|
}
|
|
27
30
|
}
|
|
@@ -29,7 +32,7 @@ export const boxStylesWithFilteredProps = _ref => {
|
|
|
29
32
|
return {
|
|
30
33
|
className: clsx(resetStyles({
|
|
31
34
|
as: as ? `${as}` : as
|
|
32
|
-
}), sprinkles(sprinklesProps), sprinklesLegacyColours(sprinklesLegacyColourProps), className),
|
|
35
|
+
}), hasBorder && borderWidthReset, sprinkles(sprinklesProps), sprinklesLegacyColours(sprinklesLegacyColourProps), className),
|
|
33
36
|
baseProps
|
|
34
37
|
};
|
|
35
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset.css.d.ts","sourceRoot":"","sources":["../../lib/styles/reset.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQlE,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAUF,eAAO,MAAM,SAAS,QASpB,CAAC;AAsHH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCnB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,OAAO,CAAC;AAEjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAC1C,cAAc,CAAC,OAAO,aAAa,CAAC,CACpC,CAAC"}
|
|
1
|
+
{"version":3,"file":"reset.css.d.ts","sourceRoot":"","sources":["../../lib/styles/reset.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQlE,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAUF,eAAO,MAAM,gBAAgB,QAI3B,CAAC;AAEH,eAAO,MAAM,SAAS,QASpB,CAAC;AAsHH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCnB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,OAAO,CAAC;AAEjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAC1C,cAAc,CAAC,OAAO,aAAa,CAAC,CACpC,CAAC"}
|
package/dist/styles/reset.css.js
CHANGED
|
@@ -20,6 +20,13 @@ const trimmedElement = style({
|
|
|
20
20
|
[cssLayerReset]: _objectSpread({}, trimmed)
|
|
21
21
|
}
|
|
22
22
|
}, "trimmedElement");
|
|
23
|
+
export const borderWidthReset = style({
|
|
24
|
+
'@layer': {
|
|
25
|
+
[cssLayerReset]: {
|
|
26
|
+
borderWidth: 0
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, "borderWidthReset");
|
|
23
30
|
export const container = style({
|
|
24
31
|
'@layer': {
|
|
25
32
|
[cssLayerReset]: {
|
|
@@ -78,7 +85,7 @@ const input = [trimmedElement, style({
|
|
|
78
85
|
'@layer': {
|
|
79
86
|
[cssLayerReset]: {
|
|
80
87
|
appearance: 'none',
|
|
81
|
-
|
|
88
|
+
borderStyle: 'none',
|
|
82
89
|
selectors: {
|
|
83
90
|
'&::-ms-clear': {
|
|
84
91
|
display: 'none'
|
package/package.json
CHANGED