@autoguru/overdrive 4.44.5 → 4.44.6

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,5 +1,3 @@
1
- export declare const child: {
2
- spaces: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none", string>;
3
- default: string;
4
- };
1
+ export declare const hr: string;
2
+ export declare const stackWithDividers: string;
5
3
  //# sourceMappingURL=Stack.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stack.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Stack.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK;;;CAWjB,CAAC"}
1
+ {"version":3,"file":"Stack.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Stack.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,EAAE,QAWb,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAO5B,CAAC"}
@@ -2,17 +2,28 @@
2
2
 
3
3
  import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
4
4
  __vanilla_filescope__.setFileScope("lib/components/Stack/Stack.css.ts", "@autoguru/overdrive");
5
- import { style, styleVariants } from '@vanilla-extract/css';
5
+ import { style } from '@vanilla-extract/css';
6
+ import { cssLayerComponent } from "../../styles/layers.css.js";
7
+ import { gapVar } from "../../styles/vars.css.js";
6
8
  import { overdriveTokens as vars } from "../../themes/theme.css.js";
7
- import { mapTokenToProperty } from "../../utils/mapTokenToProperty.js";
8
- export const child = {
9
- spaces: styleVariants(mapTokenToProperty(vars.space, value => ({
10
- paddingBottom: value
11
- })), "child_spaces"),
12
- default: style({
13
- ':last-child': {
14
- paddingBottom: 0
9
+ export const hr = style({
10
+ '@layer': {
11
+ [cssLayerComponent]: {
12
+ borderStyle: 'none',
13
+ boxShadow: `inset 0 0 0 1px ${vars.colours.background.neutral}`,
14
+ height: '1px',
15
+ margin: 0,
16
+ transform: `translateY(calc(${gapVar} * -1))`,
17
+ width: '100%'
15
18
  }
16
- }, "child_default")
17
- };
19
+ }
20
+ }, "hr");
21
+ export const stackWithDividers = style({
22
+ '@layer': {
23
+ [cssLayerComponent]: {
24
+ // double the flex gap to match spacing of original implementation
25
+ gap: `calc(2 * ${gapVar})`
26
+ }
27
+ }
28
+ }, "stackWithDividers");
18
29
  __vanilla_filescope__.endFileScope();
@@ -3,7 +3,7 @@
3
3
  import React, { Children, useMemo } from 'react';
4
4
  import flattenChildren from 'react-keyed-flatten-children';
5
5
  import { Box } from "../Box/Box.js";
6
- import * as styles from "./Divider.css.js";
6
+ import * as styles from "./Stack.css.js";
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  export const LIST_MAP = {
9
9
  ol: 'li',
@@ -53,7 +53,10 @@ export const Stack = ({
53
53
  const childEl = typeof as === 'string' && as in LIST_MAP ? LIST_MAP[as] : 'div';
54
54
  return /*#__PURE__*/_jsx(Box, {
55
55
  as: as,
56
- className: className,
56
+ className: {
57
+ [styles.stackWithDividers]: dividers,
58
+ className
59
+ },
57
60
  display: "flex",
58
61
  flexDirection: "column",
59
62
  gap: space,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoguru/overdrive",
3
- "version": "4.44.5",
3
+ "version": "4.44.6",
4
4
  "description": "Overdrive is a product component library, and design system for AutoGuru.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -84,18 +84,18 @@
84
84
  "@octokit/rest": "22.0.0",
85
85
  "@popperjs/core": "2.11.8",
86
86
  "@react-stately/toggle": "3.8.5",
87
- "@storybook/addon-a11y": "9.0.15",
88
- "@storybook/addon-docs": "9.0.15",
89
- "@storybook/addon-links": "9.0.15",
90
- "@storybook/addon-onboarding": "9.0.15",
91
- "@storybook/addon-vitest": "9.0.15",
92
- "@storybook/react-vite": "9.0.15",
87
+ "@storybook/addon-a11y": "9.0.16",
88
+ "@storybook/addon-docs": "9.0.16",
89
+ "@storybook/addon-links": "9.0.16",
90
+ "@storybook/addon-onboarding": "9.0.16",
91
+ "@storybook/addon-vitest": "9.0.16",
92
+ "@storybook/react-vite": "9.0.16",
93
93
  "@testing-library/dom": "^10.4.0",
94
94
  "@testing-library/jest-dom": "6.6.3",
95
95
  "@testing-library/react": "16.3.0",
96
96
  "@testing-library/react-hooks": "8.0.1",
97
97
  "@testing-library/user-event": "14.6.1",
98
- "@types/node": "24.0.10",
98
+ "@types/node": "24.0.13",
99
99
  "@types/react": "19.1.8",
100
100
  "@types/react-dom": "19.1.6",
101
101
  "@types/webpack-env": "1.18.8",
@@ -121,9 +121,9 @@
121
121
  "core-js": "3.44.0",
122
122
  "csstype": "3.1.3",
123
123
  "deepmerge": "4.3.1",
124
- "es-toolkit": "1.39.6",
124
+ "es-toolkit": "1.39.7",
125
125
  "eslint": "9.30.1",
126
- "eslint-plugin-storybook": "9.0.15",
126
+ "eslint-plugin-storybook": "9.0.16",
127
127
  "husky": "9.1.7",
128
128
  "intersection-observer": "0.12.2",
129
129
  "jsdom": "26.1.0",
@@ -147,13 +147,13 @@
147
147
  "react-stately": "3.39.0",
148
148
  "react-swipeable": "7.0.2",
149
149
  "rollup-plugin-visualizer": "6.0.3",
150
- "storybook": "9.0.15",
150
+ "storybook": "9.0.16",
151
151
  "storybook-addon-tag-badges": "2.0.1",
152
152
  "typescript": "5.8.3",
153
153
  "url-loader": "4.1.1",
154
- "vite": "7.0.2",
154
+ "vite": "7.0.4",
155
155
  "vitest": "3.2.4",
156
- "webpack": "5.99.9"
156
+ "webpack": "5.100.1"
157
157
  },
158
158
  "peerDependencies": {
159
159
  "@autoguru/icons": ">=1.8.8",
@@ -1,2 +0,0 @@
1
- export declare const hr: string;
2
- //# sourceMappingURL=Divider.css.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Divider.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Divider.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,EAAE,QAOb,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
4
- __vanilla_filescope__.setFileScope("lib/components/Stack/Divider.css.ts", "@autoguru/overdrive");
5
- import { style } from '@vanilla-extract/css';
6
- import { gapVar } from "../../styles/vars.css.js";
7
- import { overdriveTokens as vars } from "../../themes/theme.css.js";
8
- export const hr = style({
9
- borderStyle: 'none',
10
- boxShadow: `inset 0 0 0 1px ${vars.colours.background.neutral}`,
11
- height: '1px',
12
- margin: 0,
13
- transform: `translateY(calc(${gapVar}/-2))`,
14
- width: '100%'
15
- }, "hr");
16
- __vanilla_filescope__.endFileScope();