braid-design-system 32.22.0 → 32.23.0
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 32.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **Spread:** Add `component` prop support ([#1559](https://github.com/seek-oss/braid-design-system/pull/1559))
|
|
8
|
+
|
|
9
|
+
Enable support for changing the underlying HTML element of the `Spread` component.
|
|
10
|
+
|
|
11
|
+
**EXAMPLE USAGE:**
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
<Spread component="span">...</Spread>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- **Spread:** Add `data` prop support ([#1559](https://github.com/seek-oss/braid-design-system/pull/1559))
|
|
18
|
+
|
|
19
|
+
**EXAMPLE USAGE:**
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
<Spread data={{ test: 123 }}>...</Spread>
|
|
23
|
+
```
|
|
24
|
+
|
|
3
25
|
## 32.22.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -3,12 +3,16 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
3
3
|
const lib_components_Box_Box_cjs = require("../Box/Box.cjs");
|
|
4
4
|
const lib_utils_align_cjs = require("../../utils/align.cjs");
|
|
5
5
|
const lib_components_Spread_Spread_css_cjs = require("./Spread.css.cjs");
|
|
6
|
+
const lib_components_private_buildDataAttributes_cjs = require("../private/buildDataAttributes.cjs");
|
|
6
7
|
const Spread = ({
|
|
8
|
+
component,
|
|
7
9
|
children,
|
|
8
10
|
space,
|
|
9
11
|
direction = "horizontal",
|
|
10
12
|
align,
|
|
11
|
-
alignY
|
|
13
|
+
alignY,
|
|
14
|
+
data,
|
|
15
|
+
...restProps
|
|
12
16
|
}) => {
|
|
13
17
|
const isVertical = direction === "vertical";
|
|
14
18
|
const isHorizontal = !isVertical;
|
|
@@ -21,6 +25,7 @@ const Spread = ({
|
|
|
21
25
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22
26
|
lib_components_Box_Box_cjs.Box,
|
|
23
27
|
{
|
|
28
|
+
component,
|
|
24
29
|
display: "flex",
|
|
25
30
|
flexDirection: isVertical ? "column" : "row",
|
|
26
31
|
width: "full",
|
|
@@ -28,6 +33,7 @@ const Spread = ({
|
|
|
28
33
|
justifyContent: "spaceBetween",
|
|
29
34
|
alignItems,
|
|
30
35
|
className: lib_components_Spread_Spread_css_cjs.responsiveGap({ gap: space }),
|
|
36
|
+
...lib_components_private_buildDataAttributes_cjs.buildDataAttributes({ data, validateRestProps: restProps }),
|
|
31
37
|
children
|
|
32
38
|
}
|
|
33
39
|
);
|
|
@@ -2,12 +2,16 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box } from "../Box/Box.mjs";
|
|
3
3
|
import { alignToFlexAlign, alignYToFlexAlign } from "../../utils/align.mjs";
|
|
4
4
|
import { responsiveGap } from "./Spread.css.mjs";
|
|
5
|
+
import { buildDataAttributes } from "../private/buildDataAttributes.mjs";
|
|
5
6
|
const Spread = ({
|
|
7
|
+
component,
|
|
6
8
|
children,
|
|
7
9
|
space,
|
|
8
10
|
direction = "horizontal",
|
|
9
11
|
align,
|
|
10
|
-
alignY
|
|
12
|
+
alignY,
|
|
13
|
+
data,
|
|
14
|
+
...restProps
|
|
11
15
|
}) => {
|
|
12
16
|
const isVertical = direction === "vertical";
|
|
13
17
|
const isHorizontal = !isVertical;
|
|
@@ -20,6 +24,7 @@ const Spread = ({
|
|
|
20
24
|
return /* @__PURE__ */ jsx(
|
|
21
25
|
Box,
|
|
22
26
|
{
|
|
27
|
+
component,
|
|
23
28
|
display: "flex",
|
|
24
29
|
flexDirection: isVertical ? "column" : "row",
|
|
25
30
|
width: "full",
|
|
@@ -27,6 +32,7 @@ const Spread = ({
|
|
|
27
32
|
justifyContent: "spaceBetween",
|
|
28
33
|
alignItems,
|
|
29
34
|
className: responsiveGap({ gap: space }),
|
|
35
|
+
...buildDataAttributes({ data, validateRestProps: restProps }),
|
|
30
36
|
children
|
|
31
37
|
}
|
|
32
38
|
);
|
|
@@ -3713,13 +3713,15 @@ declare const responsiveGapProperties: {
|
|
|
3713
3713
|
type RequiredResponsiveValue<Value extends string | number> = RequiredConditionalValue<typeof responsiveGapProperties, Value>;
|
|
3714
3714
|
|
|
3715
3715
|
interface SpreadProps {
|
|
3716
|
+
component?: BoxProps['component'];
|
|
3716
3717
|
children: ReactNodeNoStrings;
|
|
3717
3718
|
space: RequiredResponsiveValue<Space>;
|
|
3718
3719
|
direction?: 'horizontal' | 'vertical';
|
|
3719
3720
|
align?: OptionalResponsiveValue<Align>;
|
|
3720
3721
|
alignY?: OptionalResponsiveValue<AlignY>;
|
|
3722
|
+
data?: DataAttributeMap;
|
|
3721
3723
|
}
|
|
3722
|
-
declare const Spread$1: ({ children, space, direction, align, alignY, }: SpreadProps) => React.JSX.Element;
|
|
3724
|
+
declare const Spread$1: ({ component, children, space, direction, align, alignY, data, ...restProps }: SpreadProps) => React.JSX.Element;
|
|
3723
3725
|
|
|
3724
3726
|
interface StepProps {
|
|
3725
3727
|
children: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "braid-design-system",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.23.0",
|
|
4
4
|
"description": "Themeable design system for the SEEK Group",
|
|
5
5
|
"homepage": "https://seek-oss.github.io/braid-design-system/",
|
|
6
6
|
"bugs": {
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"react-dom": "^18.3.1",
|
|
227
227
|
"react-router-dom": "^6.3.0",
|
|
228
228
|
"sanitize-html": "^2.12.1",
|
|
229
|
-
"sku": "13.0.
|
|
229
|
+
"sku": "13.0.4",
|
|
230
230
|
"storybook": "7.6.20",
|
|
231
231
|
"svgo": "^2.8.0",
|
|
232
232
|
"title-case": "^3.0.3",
|