braid-design-system 33.11.0 → 33.11.1
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 +8 -0
- package/dist/lib/components/Actions/Actions.cjs +14 -2
- package/dist/lib/components/Actions/Actions.css.cjs +21 -0
- package/dist/lib/components/Actions/Actions.css.mjs +22 -0
- package/dist/lib/components/Actions/Actions.mjs +14 -2
- package/dist/lib/components/Inline/Inline.css.cjs +1 -0
- package/dist/lib/components/Inline/Inline.css.mjs +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 33.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **Actions:** Ensure full width on mobile ([#1858](https://github.com/seek-oss/braid-design-system/pull/1858))
|
|
8
|
+
|
|
9
|
+
Ensure that the children of an `Action` component are always full width on mobile, including within a centred flex container.
|
|
10
|
+
|
|
3
11
|
## 33.11.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const react = require("react");
|
|
4
|
-
const
|
|
4
|
+
const lib_components_Box_Box_cjs = require("../Box/Box.cjs");
|
|
5
5
|
const lib_components_Actions_ActionsContext_cjs = require("./ActionsContext.cjs");
|
|
6
|
+
const lib_components_Actions_Actions_css_cjs = require("./Actions.css.cjs");
|
|
6
7
|
const actionsSpace = "xsmall";
|
|
7
8
|
const Actions = ({ size, data, children }) => {
|
|
8
9
|
const contextValue = react.useMemo(() => ({ size }), [size]);
|
|
9
|
-
return /* @__PURE__ */ jsxRuntime.jsx(lib_components_Actions_ActionsContext_cjs.ActionsContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsx(lib_components_Actions_ActionsContext_cjs.ActionsContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11
|
+
lib_components_Box_Box_cjs.Box,
|
|
12
|
+
{
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: { mobile: "column", [lib_components_Actions_Actions_css_cjs.actionsBreakpoint]: "row" },
|
|
15
|
+
flexWrap: "wrap",
|
|
16
|
+
gap: actionsSpace,
|
|
17
|
+
className: lib_components_Actions_Actions_css_cjs.root,
|
|
18
|
+
data,
|
|
19
|
+
children
|
|
20
|
+
}
|
|
21
|
+
) });
|
|
10
22
|
};
|
|
11
23
|
exports.Actions = Actions;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
const lib_css_responsiveStyle_cjs = require("../../css/responsiveStyle.cjs");
|
|
5
|
+
const lib_components_Inline_Inline_css_cjs = require("../Inline/Inline.css.cjs");
|
|
6
|
+
fileScope.setFileScope("src/lib/components/Actions/Actions.css.ts", "braid-design-system");
|
|
7
|
+
const actionsBreakpoint = "tablet";
|
|
8
|
+
const root = css.style(lib_css_responsiveStyle_cjs.responsiveStyle({
|
|
9
|
+
mobile: {
|
|
10
|
+
alignSelf: "stretch"
|
|
11
|
+
},
|
|
12
|
+
[actionsBreakpoint]: {
|
|
13
|
+
alignSelf: "auto"
|
|
14
|
+
}
|
|
15
|
+
}), "root");
|
|
16
|
+
css.globalStyle(`${root} > *`, lib_css_responsiveStyle_cjs.responsiveStyle({
|
|
17
|
+
[actionsBreakpoint]: lib_components_Inline_Inline_css_cjs.fitContentStyleRule
|
|
18
|
+
}));
|
|
19
|
+
fileScope.endFileScope();
|
|
20
|
+
exports.actionsBreakpoint = actionsBreakpoint;
|
|
21
|
+
exports.root = root;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style, globalStyle } from "@vanilla-extract/css";
|
|
3
|
+
import { responsiveStyle } from "../../css/responsiveStyle.mjs";
|
|
4
|
+
import { fitContentStyleRule } from "../Inline/Inline.css.mjs";
|
|
5
|
+
setFileScope("src/lib/components/Actions/Actions.css.ts", "braid-design-system");
|
|
6
|
+
const actionsBreakpoint = "tablet";
|
|
7
|
+
const root = style(responsiveStyle({
|
|
8
|
+
mobile: {
|
|
9
|
+
alignSelf: "stretch"
|
|
10
|
+
},
|
|
11
|
+
[actionsBreakpoint]: {
|
|
12
|
+
alignSelf: "auto"
|
|
13
|
+
}
|
|
14
|
+
}), "root");
|
|
15
|
+
globalStyle(`${root} > *`, responsiveStyle({
|
|
16
|
+
[actionsBreakpoint]: fitContentStyleRule
|
|
17
|
+
}));
|
|
18
|
+
endFileScope();
|
|
19
|
+
export {
|
|
20
|
+
actionsBreakpoint,
|
|
21
|
+
root
|
|
22
|
+
};
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Box } from "../Box/Box.mjs";
|
|
4
4
|
import { ActionsContext } from "./ActionsContext.mjs";
|
|
5
|
+
import { root, actionsBreakpoint } from "./Actions.css.mjs";
|
|
5
6
|
const actionsSpace = "xsmall";
|
|
6
7
|
const Actions = ({ size, data, children }) => {
|
|
7
8
|
const contextValue = useMemo(() => ({ size }), [size]);
|
|
8
|
-
return /* @__PURE__ */ jsx(ActionsContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
9
|
+
return /* @__PURE__ */ jsx(ActionsContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
10
|
+
Box,
|
|
11
|
+
{
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: { mobile: "column", [actionsBreakpoint]: "row" },
|
|
14
|
+
flexWrap: "wrap",
|
|
15
|
+
gap: actionsSpace,
|
|
16
|
+
className: root,
|
|
17
|
+
data,
|
|
18
|
+
children
|
|
19
|
+
}
|
|
20
|
+
) });
|
|
9
21
|
};
|
|
10
22
|
export {
|
|
11
23
|
Actions
|
|
@@ -25,5 +25,6 @@ css.globalStyle(`${fitContentWide} > *`, lib_css_responsiveStyle_cjs.responsiveS
|
|
|
25
25
|
fileScope.endFileScope();
|
|
26
26
|
exports.fitContentDesktop = fitContentDesktop;
|
|
27
27
|
exports.fitContentMobile = fitContentMobile;
|
|
28
|
+
exports.fitContentStyleRule = fitContentStyleRule;
|
|
28
29
|
exports.fitContentTablet = fitContentTablet;
|
|
29
30
|
exports.fitContentWide = fitContentWide;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "braid-design-system",
|
|
3
|
-
"version": "33.11.
|
|
3
|
+
"version": "33.11.1",
|
|
4
4
|
"description": "Themeable design system for the SEEK Group",
|
|
5
5
|
"homepage": "https://seek-oss.github.io/braid-design-system/",
|
|
6
6
|
"bugs": {
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"fast-glob": "^3.3.2",
|
|
212
212
|
"fs-extra": "^10.1.0",
|
|
213
213
|
"html-validate": "^9.7.1",
|
|
214
|
-
"playroom": "0.44.
|
|
214
|
+
"playroom": "0.44.2",
|
|
215
215
|
"prettier": "^3.4.1",
|
|
216
216
|
"react": "^19.1.0",
|
|
217
217
|
"react-dom": "^19.1.0",
|