braid-design-system 34.1.0 → 34.3.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 +82 -0
- package/dist/css.cjs +3 -2
- package/dist/css.d.cts +4 -0
- package/dist/css.d.mts +4 -0
- package/dist/css.mjs +3 -2
- package/dist/lib/components/Autosuggest/Autosuggest.playroom.d.cts +2 -2
- package/dist/lib/components/Autosuggest/Autosuggest.playroom.d.mts +2 -2
- package/dist/lib/components/Badge/Badge.cjs +3 -1
- package/dist/lib/components/Badge/Badge.d.cts +2 -0
- package/dist/lib/components/Badge/Badge.d.mts +2 -0
- package/dist/lib/components/Badge/Badge.mjs +3 -1
- package/dist/lib/components/Box/BoxRenderer.d.cts +2 -2
- package/dist/lib/components/Box/BoxRenderer.d.mts +2 -2
- package/dist/lib/components/BraidTestProvider/BraidTestProvider.d.cts +2 -2
- package/dist/lib/components/BraidTestProvider/BraidTestProvider.d.mts +2 -2
- package/dist/lib/components/Button/Button.d.mts +1 -0
- package/dist/lib/components/Dialog/Dialog.d.mts +1 -0
- package/dist/lib/components/Drawer/Drawer.d.cts +1 -1
- package/dist/lib/components/Drawer/Drawer.d.mts +2 -1
- package/dist/lib/components/Inline/Inline.cjs +4 -4
- package/dist/lib/components/Inline/Inline.css.cjs +4 -1
- package/dist/lib/components/Inline/Inline.css.mjs +3 -1
- package/dist/lib/components/Inline/Inline.d.cts +1 -0
- package/dist/lib/components/Inline/Inline.d.mts +1 -0
- package/dist/lib/components/Inline/Inline.mjs +5 -5
- package/dist/lib/components/MenuItem/useMenuItem.d.mts +1 -0
- package/dist/lib/components/MenuRenderer/MenuRenderer.cjs +1 -1
- package/dist/lib/components/MenuRenderer/MenuRenderer.d.mts +1 -0
- package/dist/lib/components/MenuRenderer/MenuRenderer.mjs +1 -1
- package/dist/lib/components/MonthPicker/MonthPicker.d.cts +2 -2
- package/dist/lib/components/MonthPicker/MonthPicker.d.mts +2 -2
- package/dist/lib/components/RadioGroup/RadioGroup.d.cts +2 -2
- package/dist/lib/components/RadioGroup/RadioGroup.d.mts +2 -2
- package/dist/lib/components/Stepper/StepperContext.d.mts +1 -0
- package/dist/lib/components/Tag/Tag.playroom.d.cts +2 -2
- package/dist/lib/components/Tag/Tag.playroom.d.mts +2 -2
- package/dist/lib/components/TextDropdown/TextDropdown.d.cts +2 -2
- package/dist/lib/components/TextDropdown/TextDropdown.d.mts +2 -2
- package/dist/lib/components/TextLink/TextLink.d.mts +1 -0
- package/dist/lib/components/Textarea/Textarea.cjs +1 -0
- package/dist/lib/components/Textarea/Textarea.css.cjs +5 -1
- package/dist/lib/components/Textarea/Textarea.css.mjs +5 -2
- package/dist/lib/components/Textarea/Textarea.mjs +2 -1
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.d.mts +1 -0
- package/dist/lib/components/icons/IconContainer.d.mts +1 -0
- package/dist/lib/components/private/Field/Field.d.mts +1 -0
- package/dist/lib/components/private/FieldGroup/FieldGroup.d.mts +1 -0
- package/dist/lib/components/private/Modal/Modal.css.cjs +20 -3
- package/dist/lib/components/private/Modal/Modal.css.mjs +18 -5
- package/dist/lib/components/private/Modal/ModalContent.cjs +131 -67
- package/dist/lib/components/private/Modal/ModalContent.d.cts +9 -3
- package/dist/lib/components/private/Modal/ModalContent.d.mts +10 -3
- package/dist/lib/components/private/Modal/ModalContent.mjs +134 -70
- package/dist/lib/components/private/ScrollContainer/ScrollContainer.cjs +25 -6
- package/dist/lib/components/private/ScrollContainer/ScrollContainer.css.cjs +14 -6
- package/dist/lib/components/private/ScrollContainer/ScrollContainer.css.mjs +15 -7
- package/dist/lib/components/private/ScrollContainer/ScrollContainer.mjs +25 -6
- package/dist/lib/components/private/Typography/Typography.d.mts +1 -0
- package/dist/lib/components/private/scrollbars.css.cjs +27 -0
- package/dist/lib/components/private/scrollbars.css.mjs +26 -0
- package/dist/lib/playroom/FrameComponent.d.cts +2 -2
- package/dist/lib/playroom/FrameComponent.d.mts +2 -2
- package/dist/lib/playroom/components/Placeholder/Placeholder.d.cts +2 -2
- package/dist/lib/playroom/components/Placeholder/Placeholder.d.mts +2 -2
- package/dist/lib/playroom/components/PlaceholderHeader/PlaceholderHeader.d.cts +4 -4
- package/dist/lib/playroom/components/PlaceholderHeader/PlaceholderHeader.d.mts +4 -4
- package/dist/lib/playroom/playroomState.d.mts +1 -0
- package/dist/lib/playroom/snippets/BrandedContainer.cjs +16 -0
- package/dist/lib/playroom/snippets/BrandedContainer.mjs +15 -0
- package/dist/lib/playroom/snippets/CardList.cjs +10 -0
- package/dist/lib/playroom/snippets/CardList.mjs +9 -0
- package/dist/lib/playroom/snippets/CompactPage.cjs +10 -0
- package/dist/lib/playroom/snippets/CompactPage.mjs +9 -0
- package/dist/lib/playroom/snippets/DividedList.cjs +10 -0
- package/dist/lib/playroom/snippets/DividedList.mjs +9 -0
- package/dist/lib/playroom/snippets/Form.cjs +14 -0
- package/dist/lib/playroom/snippets/Form.mjs +13 -0
- package/dist/lib/playroom/snippets/Inline.cjs +4 -0
- package/dist/lib/playroom/snippets/Inline.mjs +4 -0
- package/dist/lib/playroom/snippets/SpaciousPage.cjs +10 -0
- package/dist/lib/playroom/snippets/SpaciousPage.mjs +9 -0
- package/dist/lib/playroom/snippets/StandardPage.cjs +10 -0
- package/dist/lib/playroom/snippets/StandardPage.mjs +9 -0
- package/dist/lib/playroom/snippets/StandardSection.cjs +10 -0
- package/dist/lib/playroom/snippets/StandardSection.mjs +9 -0
- package/dist/lib/playroom/snippets/SteppedSection.cjs +10 -0
- package/dist/lib/playroom/snippets/SteppedSection.mjs +9 -0
- package/dist/lib/playroom/snippets/TabbedSection.cjs +10 -0
- package/dist/lib/playroom/snippets/TabbedSection.mjs +9 -0
- package/dist/lib/playroom/snippets/TableSection.cjs +10 -0
- package/dist/lib/playroom/snippets/TableSection.mjs +9 -0
- package/dist/lib/playroom/snippets.cjs +22 -4
- package/dist/lib/playroom/snippets.mjs +108 -90
- package/dist/lib/themes/baseTokens/nvl.cjs +9 -9
- package/dist/lib/themes/baseTokens/nvl.mjs +9 -9
- package/package.json +3 -4
- package/dist/lib/playroom/snippets/layouts.cjs +0 -22
- package/dist/lib/playroom/snippets/layouts.mjs +0 -21
- package/dist/lib/playroom/snippets/sections.cjs +0 -59
- package/dist/lib/playroom/snippets/sections.mjs +0 -58
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 34.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **Inline:** Add _noWrap_ prop to support single-row compositions ([#2069](https://github.com/seek-oss/braid-design-system/pull/2069))
|
|
8
|
+
|
|
9
|
+
**EXAMPLE USAGE:**
|
|
10
|
+
|
|
11
|
+
```jsx
|
|
12
|
+
<Inline space="small" noWrap>
|
|
13
|
+
<Placeholder width={20} height={48} />
|
|
14
|
+
<Placeholder width={80} height={48} />
|
|
15
|
+
<Placeholder width={40} height={48} />
|
|
16
|
+
</Inline>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- **Textarea:** Ensure focus ring displays correctly ([#2066](https://github.com/seek-oss/braid-design-system/pull/2066))
|
|
22
|
+
|
|
23
|
+
- **Heading:** Increase line height to improve legibility ([#2073](https://github.com/seek-oss/braid-design-system/pull/2073))
|
|
24
|
+
|
|
25
|
+
Increases the line height of all `Heading` levels to improve legibility of wrapping lines of text — focusing on reducing the collision of diacritical marks in Thai Script.
|
|
26
|
+
|
|
27
|
+
## 34.2.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- **Dialog:** Add `coverImage` support ([#2052](https://github.com/seek-oss/braid-design-system/pull/2052))
|
|
32
|
+
|
|
33
|
+
Add support for providing a URL for a cover image to display at the top of the Dialog via the `coverImage` prop.
|
|
34
|
+
The provided image must be compatible with the [CSS background-image “url” function].
|
|
35
|
+
|
|
36
|
+
**EXAMPLE USAGE:**
|
|
37
|
+
|
|
38
|
+
```jsx
|
|
39
|
+
<Dialog
|
|
40
|
+
title="Cover Image"
|
|
41
|
+
coverImage="https://placehold.co/1600x900/051A49/FFFFFF/png?text=++++++16:9++++++"
|
|
42
|
+
open={true}
|
|
43
|
+
onClose={() => {}}
|
|
44
|
+
>
|
|
45
|
+
<Placeholder height={100} width="100%" label="Dialog Content" />
|
|
46
|
+
</Dialog>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
[CSS background-image “url” function]: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/background-image
|
|
50
|
+
|
|
51
|
+
- **vars:** Exposed `vars.transition`. Transition CSS variables are available in stylesheets and runtime styles. ([#2034](https://github.com/seek-oss/braid-design-system/pull/2034))
|
|
52
|
+
|
|
53
|
+
**EXAMPLE USAGE:**
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
import { vars } from 'braid-design-system/css':
|
|
57
|
+
|
|
58
|
+
export const myStyle = style({
|
|
59
|
+
transition: vars.transition.fast,
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- **Badge:** Added aria-hidden and aria-label props. ([#2034](https://github.com/seek-oss/braid-design-system/pull/2034))
|
|
64
|
+
|
|
65
|
+
`aria-hidden` allows a badge to be hidden from assistive technology
|
|
66
|
+
|
|
67
|
+
`aria-label` allows visible badge text to be overridden with a more descriptive label for screen readers
|
|
68
|
+
|
|
69
|
+
**EXAMPLE USAGE:**
|
|
70
|
+
|
|
71
|
+
```jsx
|
|
72
|
+
<Badge aria-hidden>Deprecated</Badge>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
```jsx
|
|
76
|
+
<Badge aria-label="You have 2 notifications">2</Badge>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- **seekJobs, seekBusiness:** Update webfont url ([#2044](https://github.com/seek-oss/braid-design-system/pull/2044))
|
|
82
|
+
|
|
83
|
+
Point to the `www.seek.com` domain instead of `www.seek.com.au`.
|
|
84
|
+
|
|
3
85
|
## 34.1.0
|
|
4
86
|
|
|
5
87
|
### Minor Changes
|
package/dist/css.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const require_atoms = require('./lib/css/atoms/atoms.cjs');
|
|
|
8
8
|
const require_globalTypographyStyles = require('./lib/css/globalTypographyStyles.cjs');
|
|
9
9
|
|
|
10
10
|
//#region src/css.ts
|
|
11
|
-
const { grid, space, touchableSize, contentWidth, backgroundColor: { surfaceDark: _, bodyDark: __, ...backgroundColor }, foregroundColor, textWeight, borderColor, borderRadius, borderWidth, shadow } = require_vars_css.vars;
|
|
11
|
+
const { grid, space, touchableSize, contentWidth, backgroundColor: { surfaceDark: _, bodyDark: __, ...backgroundColor }, foregroundColor, textWeight, borderColor, borderRadius, borderWidth, shadow, transition } = require_vars_css.vars;
|
|
12
12
|
const vars = {
|
|
13
13
|
grid,
|
|
14
14
|
space,
|
|
@@ -20,7 +20,8 @@ const vars = {
|
|
|
20
20
|
borderColor,
|
|
21
21
|
borderRadius,
|
|
22
22
|
borderWidth,
|
|
23
|
-
shadow
|
|
23
|
+
shadow,
|
|
24
|
+
transition
|
|
24
25
|
};
|
|
25
26
|
function atoms(props) {
|
|
26
27
|
if (process.env.NODE_ENV !== "production") {
|
package/dist/css.d.cts
CHANGED
|
@@ -131,6 +131,10 @@ declare const vars: {
|
|
|
131
131
|
medium: `var(--${string})`;
|
|
132
132
|
large: `var(--${string})`;
|
|
133
133
|
};
|
|
134
|
+
transition: {
|
|
135
|
+
fast: `var(--${string})`;
|
|
136
|
+
touchable: `var(--${string})`;
|
|
137
|
+
};
|
|
134
138
|
};
|
|
135
139
|
declare function atoms(props: Omit<Atoms, 'background'>): string;
|
|
136
140
|
//#endregion
|
package/dist/css.d.mts
CHANGED
|
@@ -131,6 +131,10 @@ declare const vars: {
|
|
|
131
131
|
medium: `var(--${string})`;
|
|
132
132
|
large: `var(--${string})`;
|
|
133
133
|
};
|
|
134
|
+
transition: {
|
|
135
|
+
fast: `var(--${string})`;
|
|
136
|
+
touchable: `var(--${string})`;
|
|
137
|
+
};
|
|
134
138
|
};
|
|
135
139
|
declare function atoms(props: Omit<Atoms, 'background'>): string;
|
|
136
140
|
//#endregion
|
package/dist/css.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { atoms as atoms$1 } from "./lib/css/atoms/atoms.mjs";
|
|
|
7
7
|
import { globalHeadingStyle, globalTextStyle } from "./lib/css/globalTypographyStyles.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/css.ts
|
|
10
|
-
const { grid, space, touchableSize, contentWidth, backgroundColor: { surfaceDark: _, bodyDark: __, ...backgroundColor }, foregroundColor, textWeight, borderColor, borderRadius, borderWidth, shadow } = vars$1;
|
|
10
|
+
const { grid, space, touchableSize, contentWidth, backgroundColor: { surfaceDark: _, bodyDark: __, ...backgroundColor }, foregroundColor, textWeight, borderColor, borderRadius, borderWidth, shadow, transition } = vars$1;
|
|
11
11
|
const vars = {
|
|
12
12
|
grid,
|
|
13
13
|
space,
|
|
@@ -19,7 +19,8 @@ const vars = {
|
|
|
19
19
|
borderColor,
|
|
20
20
|
borderRadius,
|
|
21
21
|
borderWidth,
|
|
22
|
-
shadow
|
|
22
|
+
shadow,
|
|
23
|
+
transition
|
|
23
24
|
};
|
|
24
25
|
function atoms(props) {
|
|
25
26
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AutosuggestBaseProps, AutosuggestLabelProps } from "./Autosuggest.cjs";
|
|
2
2
|
import { StateProp } from "../../playroom/playroomState.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react from "react";
|
|
4
4
|
import { Optional } from "utility-types";
|
|
5
5
|
|
|
6
6
|
//#region src/lib/components/Autosuggest/Autosuggest.playroom.d.ts
|
|
@@ -12,6 +12,6 @@ declare function Autosuggest<Value>({
|
|
|
12
12
|
onClear,
|
|
13
13
|
tabIndex,
|
|
14
14
|
...restProps
|
|
15
|
-
}: PlayroomAutosuggestProps<Value>):
|
|
15
|
+
}: PlayroomAutosuggestProps<Value>): react.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Autosuggest };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AutosuggestBaseProps, AutosuggestLabelProps } from "./Autosuggest.mjs";
|
|
2
2
|
import { StateProp } from "../../playroom/playroomState.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react from "react";
|
|
4
4
|
import { Optional } from "utility-types";
|
|
5
5
|
|
|
6
6
|
//#region src/lib/components/Autosuggest/Autosuggest.playroom.d.ts
|
|
@@ -12,6 +12,6 @@ declare function Autosuggest<Value>({
|
|
|
12
12
|
onClear,
|
|
13
13
|
tabIndex,
|
|
14
14
|
...restProps
|
|
15
|
-
}: PlayroomAutosuggestProps<Value>):
|
|
15
|
+
}: PlayroomAutosuggestProps<Value>): react.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Autosuggest };
|
|
@@ -35,7 +35,7 @@ const stringifyChildren = (children) => {
|
|
|
35
35
|
if (typeof children === "number") return children.toString();
|
|
36
36
|
return children.join("");
|
|
37
37
|
};
|
|
38
|
-
const Badge = (0, react.forwardRef)(({ tone = "info", weight = "regular", bleedY: bleedYProp, title, children, id, data, tabIndex, "aria-describedby": ariaDescribedBy, ...restProps }, ref) => {
|
|
38
|
+
const Badge = (0, react.forwardRef)(({ tone = "info", weight = "regular", bleedY: bleedYProp, title, children, id, data, tabIndex, "aria-describedby": ariaDescribedBy, "aria-hidden": ariaHidden, "aria-label": ariaLabel, ...restProps }, ref) => {
|
|
39
39
|
(0, assert.default)(validBadgeTones.indexOf(tone) >= 0, `Badge tone of "${tone}" is not valid.`);
|
|
40
40
|
(0, assert.default)(react.Children.toArray(children).every((child) => ["string", "number"].includes(typeof child)), "Badge may only contain strings or numbers");
|
|
41
41
|
const textContext = (0, react.useContext)(require_TextContext.TextContext);
|
|
@@ -53,6 +53,8 @@ const Badge = (0, react.forwardRef)(({ tone = "info", weight = "regular", bleedY
|
|
|
53
53
|
ref,
|
|
54
54
|
tabIndex,
|
|
55
55
|
"aria-describedby": ariaDescribedBy,
|
|
56
|
+
"aria-hidden": ariaHidden,
|
|
57
|
+
"aria-label": ariaLabel,
|
|
56
58
|
title: title ?? (!ariaDescribedBy ? stringifyChildren(children) : void 0),
|
|
57
59
|
background: weight === "strong" ? tone : lightModeBackgroundForTone[tone],
|
|
58
60
|
paddingY: require_Badge_css.verticalPadding,
|
|
@@ -18,6 +18,8 @@ interface BadgeProps {
|
|
|
18
18
|
data?: DataAttributeMap;
|
|
19
19
|
tabIndex?: BoxProps['tabIndex'];
|
|
20
20
|
'aria-describedby'?: string;
|
|
21
|
+
'aria-hidden'?: boolean;
|
|
22
|
+
'aria-label'?: string;
|
|
21
23
|
}
|
|
22
24
|
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
23
25
|
//#endregion
|
|
@@ -18,6 +18,8 @@ interface BadgeProps {
|
|
|
18
18
|
data?: DataAttributeMap;
|
|
19
19
|
tabIndex?: BoxProps['tabIndex'];
|
|
20
20
|
'aria-describedby'?: string;
|
|
21
|
+
'aria-hidden'?: boolean;
|
|
22
|
+
'aria-label'?: string;
|
|
21
23
|
}
|
|
22
24
|
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
23
25
|
//#endregion
|
|
@@ -33,7 +33,7 @@ const stringifyChildren = (children) => {
|
|
|
33
33
|
if (typeof children === "number") return children.toString();
|
|
34
34
|
return children.join("");
|
|
35
35
|
};
|
|
36
|
-
const Badge = forwardRef(({ tone = "info", weight = "regular", bleedY: bleedYProp, title, children, id, data, tabIndex, "aria-describedby": ariaDescribedBy, ...restProps }, ref) => {
|
|
36
|
+
const Badge = forwardRef(({ tone = "info", weight = "regular", bleedY: bleedYProp, title, children, id, data, tabIndex, "aria-describedby": ariaDescribedBy, "aria-hidden": ariaHidden, "aria-label": ariaLabel, ...restProps }, ref) => {
|
|
37
37
|
assert(validBadgeTones.indexOf(tone) >= 0, `Badge tone of "${tone}" is not valid.`);
|
|
38
38
|
assert(Children.toArray(children).every((child) => ["string", "number"].includes(typeof child)), "Badge may only contain strings or numbers");
|
|
39
39
|
const textContext = useContext(TextContext);
|
|
@@ -51,6 +51,8 @@ const Badge = forwardRef(({ tone = "info", weight = "regular", bleedY: bleedYPro
|
|
|
51
51
|
ref,
|
|
52
52
|
tabIndex,
|
|
53
53
|
"aria-describedby": ariaDescribedBy,
|
|
54
|
+
"aria-hidden": ariaHidden,
|
|
55
|
+
"aria-label": ariaLabel,
|
|
54
56
|
title: title ?? (!ariaDescribedBy ? stringifyChildren(children) : void 0),
|
|
55
57
|
background: weight === "strong" ? tone : lightModeBackgroundForTone[tone],
|
|
56
58
|
paddingY: verticalPadding,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Atoms } from "../../css/atoms/atoms.cjs";
|
|
2
2
|
import { BoxShadow } from "../../css/atoms/atomicProperties.cjs";
|
|
3
3
|
import { BoxBaseProps, SimpleBackground } from "./Box.cjs";
|
|
4
|
+
import * as react from "react";
|
|
4
5
|
import { ReactElement } from "react";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/components/Box/BoxRenderer.d.ts
|
|
8
8
|
interface BoxRendererProps extends BoxBaseProps {
|
|
@@ -18,6 +18,6 @@ declare const BoxRenderer: ({
|
|
|
18
18
|
background,
|
|
19
19
|
boxShadow,
|
|
20
20
|
...props
|
|
21
|
-
}: BoxRendererProps) =>
|
|
21
|
+
}: BoxRendererProps) => react.JSX.Element | null;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { BoxRenderer };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Atoms } from "../../css/atoms/atoms.mjs";
|
|
2
2
|
import { BoxShadow } from "../../css/atoms/atomicProperties.mjs";
|
|
3
3
|
import { BoxBaseProps, SimpleBackground } from "./Box.mjs";
|
|
4
|
+
import * as react from "react";
|
|
4
5
|
import { ReactElement } from "react";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/components/Box/BoxRenderer.d.ts
|
|
8
8
|
interface BoxRendererProps extends BoxBaseProps {
|
|
@@ -18,6 +18,6 @@ declare const BoxRenderer: ({
|
|
|
18
18
|
background,
|
|
19
19
|
boxShadow,
|
|
20
20
|
...props
|
|
21
|
-
}: BoxRendererProps) =>
|
|
21
|
+
}: BoxRendererProps) => react.JSX.Element | null;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { BoxRenderer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Breakpoint } from "../../css/breakpoints.cjs";
|
|
2
2
|
import { BraidProviderProps } from "../BraidProvider/BraidProvider.cjs";
|
|
3
3
|
import { index_d_exports } from "../../themes/index.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/lib/components/BraidTestProvider/BraidTestProvider.d.ts
|
|
7
7
|
interface BraidTestProviderProps extends Omit<BraidProviderProps, 'theme' | 'styleBody'> {
|
|
@@ -12,6 +12,6 @@ declare const BraidTestProvider: ({
|
|
|
12
12
|
themeName,
|
|
13
13
|
breakpoint,
|
|
14
14
|
...restProps
|
|
15
|
-
}: BraidTestProviderProps) =>
|
|
15
|
+
}: BraidTestProviderProps) => react.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { BraidTestProvider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Breakpoint } from "../../css/breakpoints.mjs";
|
|
2
2
|
import { BraidProviderProps } from "../BraidProvider/BraidProvider.mjs";
|
|
3
3
|
import { index_d_exports } from "../../themes/index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/lib/components/BraidTestProvider/BraidTestProvider.d.ts
|
|
7
7
|
interface BraidTestProviderProps extends Omit<BraidProviderProps, 'theme' | 'styleBody'> {
|
|
@@ -12,6 +12,6 @@ declare const BraidTestProvider: ({
|
|
|
12
12
|
themeName,
|
|
13
13
|
breakpoint,
|
|
14
14
|
...restProps
|
|
15
|
-
}: BraidTestProviderProps) =>
|
|
15
|
+
}: BraidTestProviderProps) => react.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { BraidTestProvider };
|
|
@@ -3,6 +3,7 @@ import { UseIconProps } from "../../hooks/useIcon/index.mjs";
|
|
|
3
3
|
import { buttonTones } from "./buttonTones.mjs";
|
|
4
4
|
import * as react from "react";
|
|
5
5
|
import { AllHTMLAttributes, ReactElement, ReactNode } from "react";
|
|
6
|
+
|
|
6
7
|
//#region src/lib/components/Button/Button.d.ts
|
|
7
8
|
declare const buttonVariants: readonly ["solid", "ghost", "soft", "transparent"];
|
|
8
9
|
declare const buttonSizes: readonly ["standard", "small"];
|
|
@@ -8,7 +8,7 @@ declare const modalStyle: {
|
|
|
8
8
|
readonly headingLevel: "2";
|
|
9
9
|
readonly illustration: undefined;
|
|
10
10
|
};
|
|
11
|
-
interface DrawerProps extends Omit<ModalProps, keyof typeof modalStyle | 'width' | 'position'> {
|
|
11
|
+
interface DrawerProps extends Omit<ModalProps, keyof typeof modalStyle | 'width' | 'position' | 'coverImage'> {
|
|
12
12
|
width?: (typeof validWidths)[number];
|
|
13
13
|
position?: (typeof validPositions)[number];
|
|
14
14
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ModalProps } from "../private/Modal/Modal.mjs";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
+
|
|
3
4
|
//#region src/lib/components/Drawer/Drawer.d.ts
|
|
4
5
|
declare const validWidths: readonly ["small", "medium", "large"];
|
|
5
6
|
declare const validPositions: readonly ["left", "right"];
|
|
@@ -7,7 +8,7 @@ declare const modalStyle: {
|
|
|
7
8
|
readonly headingLevel: "2";
|
|
8
9
|
readonly illustration: undefined;
|
|
9
10
|
};
|
|
10
|
-
interface DrawerProps extends Omit<ModalProps, keyof typeof modalStyle | 'width' | 'position'> {
|
|
11
|
+
interface DrawerProps extends Omit<ModalProps, keyof typeof modalStyle | 'width' | 'position' | 'coverImage'> {
|
|
11
12
|
width?: (typeof validWidths)[number];
|
|
12
13
|
position?: (typeof validPositions)[number];
|
|
13
14
|
}
|
|
@@ -8,7 +8,7 @@ assert = require_runtime.__toESM(assert);
|
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
|
|
10
10
|
//#region src/lib/components/Inline/Inline.tsx
|
|
11
|
-
const Inline = ({ space = "none", align, alignY, collapseBelow, reverse = false, component = "div", data, children, ...restProps }) => {
|
|
11
|
+
const Inline = ({ space = "none", align, alignY, collapseBelow, reverse = false, component = "div", data, children, noWrap = false, ...restProps }) => {
|
|
12
12
|
(0, assert.default)(!reverse || reverse && collapseBelow, "The `reverse` prop should only be applied in combination with the `collapseBelow` prop.\nIf you do not want to collapse responsively, it is recommended to reorder the content directly.\n\nSee documentation for details: https://seek-oss.github.io/braid-design-system/components/Inline#reversing-the-order");
|
|
13
13
|
const { collapseMobile, collapseTablet, collapseDesktop, collapsibleAlignmentProps } = require_collapsibleAlignmentProps.resolveCollapsibleAlignmentProps({
|
|
14
14
|
align,
|
|
@@ -21,13 +21,13 @@ const Inline = ({ space = "none", align, alignY, collapseBelow, reverse = false,
|
|
|
21
21
|
component,
|
|
22
22
|
...collapsibleAlignmentProps,
|
|
23
23
|
gap: space,
|
|
24
|
-
flexWrap: "wrap",
|
|
25
|
-
className: collapseBelow ? {
|
|
24
|
+
flexWrap: noWrap ? "nowrap" : "wrap",
|
|
25
|
+
className: [collapseBelow ? {
|
|
26
26
|
[require_Inline_css.fitContentMobile]: !collapseMobile,
|
|
27
27
|
[require_Inline_css.fitContentTablet]: !collapseTablet,
|
|
28
28
|
[require_Inline_css.fitContentDesktop]: !collapseDesktop,
|
|
29
29
|
[require_Inline_css.fitContentWide]: true
|
|
30
|
-
} : require_Inline_css.fitContentMobile,
|
|
30
|
+
} : require_Inline_css.fitContentMobile, noWrap && require_Inline_css.preventShrink],
|
|
31
31
|
...require_buildDataAttributes.default({
|
|
32
32
|
data,
|
|
33
33
|
validateRestProps: restProps
|
|
@@ -9,6 +9,7 @@ const fitContentMobile = (0, _vanilla_extract_css.style)({}, "fitContentMobile")
|
|
|
9
9
|
const fitContentTablet = (0, _vanilla_extract_css.style)({}, "fitContentTablet");
|
|
10
10
|
const fitContentDesktop = (0, _vanilla_extract_css.style)({}, "fitContentDesktop");
|
|
11
11
|
const fitContentWide = (0, _vanilla_extract_css.style)({}, "fitContentWide");
|
|
12
|
+
const preventShrink = (0, _vanilla_extract_css.style)({}, "preventShrink");
|
|
12
13
|
const fitContentStyleRule = {
|
|
13
14
|
flexBasis: "auto",
|
|
14
15
|
width: "auto",
|
|
@@ -18,6 +19,7 @@ const fitContentStyleRule = {
|
|
|
18
19
|
(0, _vanilla_extract_css.globalStyle)(`${fitContentTablet} > *`, require_responsiveStyle.responsiveStyle({ tablet: fitContentStyleRule }));
|
|
19
20
|
(0, _vanilla_extract_css.globalStyle)(`${fitContentDesktop} > *`, require_responsiveStyle.responsiveStyle({ desktop: fitContentStyleRule }));
|
|
20
21
|
(0, _vanilla_extract_css.globalStyle)(`${fitContentWide} > *`, require_responsiveStyle.responsiveStyle({ wide: fitContentStyleRule }));
|
|
22
|
+
(0, _vanilla_extract_css.globalStyle)(`${preventShrink} > *`, { flexShrink: 0 });
|
|
21
23
|
(0, _vanilla_extract_css_fileScope.endFileScope)();
|
|
22
24
|
|
|
23
25
|
//#endregion
|
|
@@ -25,4 +27,5 @@ exports.fitContentDesktop = fitContentDesktop;
|
|
|
25
27
|
exports.fitContentMobile = fitContentMobile;
|
|
26
28
|
exports.fitContentStyleRule = fitContentStyleRule;
|
|
27
29
|
exports.fitContentTablet = fitContentTablet;
|
|
28
|
-
exports.fitContentWide = fitContentWide;
|
|
30
|
+
exports.fitContentWide = fitContentWide;
|
|
31
|
+
exports.preventShrink = preventShrink;
|
|
@@ -8,6 +8,7 @@ const fitContentMobile = style({}, "fitContentMobile");
|
|
|
8
8
|
const fitContentTablet = style({}, "fitContentTablet");
|
|
9
9
|
const fitContentDesktop = style({}, "fitContentDesktop");
|
|
10
10
|
const fitContentWide = style({}, "fitContentWide");
|
|
11
|
+
const preventShrink = style({}, "preventShrink");
|
|
11
12
|
const fitContentStyleRule = {
|
|
12
13
|
flexBasis: "auto",
|
|
13
14
|
width: "auto",
|
|
@@ -17,7 +18,8 @@ globalStyle(`${fitContentMobile} > *`, fitContentStyleRule);
|
|
|
17
18
|
globalStyle(`${fitContentTablet} > *`, responsiveStyle({ tablet: fitContentStyleRule }));
|
|
18
19
|
globalStyle(`${fitContentDesktop} > *`, responsiveStyle({ desktop: fitContentStyleRule }));
|
|
19
20
|
globalStyle(`${fitContentWide} > *`, responsiveStyle({ wide: fitContentStyleRule }));
|
|
21
|
+
globalStyle(`${preventShrink} > *`, { flexShrink: 0 });
|
|
20
22
|
endFileScope();
|
|
21
23
|
|
|
22
24
|
//#endregion
|
|
23
|
-
export { fitContentDesktop, fitContentMobile, fitContentStyleRule, fitContentTablet, fitContentWide };
|
|
25
|
+
export { fitContentDesktop, fitContentMobile, fitContentStyleRule, fitContentTablet, fitContentWide, preventShrink };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import buildDataAttributes_default from "../private/buildDataAttributes.mjs";
|
|
2
2
|
import { Box } from "../Box/Box.mjs";
|
|
3
|
-
import { fitContentDesktop, fitContentMobile, fitContentTablet, fitContentWide } from "./Inline.css.mjs";
|
|
3
|
+
import { fitContentDesktop, fitContentMobile, fitContentTablet, fitContentWide, preventShrink } from "./Inline.css.mjs";
|
|
4
4
|
import { resolveCollapsibleAlignmentProps } from "../../utils/collapsibleAlignmentProps.mjs";
|
|
5
5
|
import assert from "assert";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/components/Inline/Inline.tsx
|
|
9
|
-
const Inline = ({ space = "none", align, alignY, collapseBelow, reverse = false, component = "div", data, children, ...restProps }) => {
|
|
9
|
+
const Inline = ({ space = "none", align, alignY, collapseBelow, reverse = false, component = "div", data, children, noWrap = false, ...restProps }) => {
|
|
10
10
|
assert(!reverse || reverse && collapseBelow, "The `reverse` prop should only be applied in combination with the `collapseBelow` prop.\nIf you do not want to collapse responsively, it is recommended to reorder the content directly.\n\nSee documentation for details: https://seek-oss.github.io/braid-design-system/components/Inline#reversing-the-order");
|
|
11
11
|
const { collapseMobile, collapseTablet, collapseDesktop, collapsibleAlignmentProps } = resolveCollapsibleAlignmentProps({
|
|
12
12
|
align,
|
|
@@ -19,13 +19,13 @@ const Inline = ({ space = "none", align, alignY, collapseBelow, reverse = false,
|
|
|
19
19
|
component,
|
|
20
20
|
...collapsibleAlignmentProps,
|
|
21
21
|
gap: space,
|
|
22
|
-
flexWrap: "wrap",
|
|
23
|
-
className: collapseBelow ? {
|
|
22
|
+
flexWrap: noWrap ? "nowrap" : "wrap",
|
|
23
|
+
className: [collapseBelow ? {
|
|
24
24
|
[fitContentMobile]: !collapseMobile,
|
|
25
25
|
[fitContentTablet]: !collapseTablet,
|
|
26
26
|
[fitContentDesktop]: !collapseDesktop,
|
|
27
27
|
[fitContentWide]: true
|
|
28
|
-
} : fitContentMobile,
|
|
28
|
+
} : fitContentMobile, noWrap && preventShrink],
|
|
29
29
|
...buildDataAttributes_default({
|
|
30
30
|
data,
|
|
31
31
|
validateRestProps: restProps
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataAttributeMap } from "../private/buildDataAttributes.mjs";
|
|
2
2
|
import { BadgeProps } from "../Badge/Badge.mjs";
|
|
3
3
|
import { ReactElement, ReactNode } from "react";
|
|
4
|
+
|
|
4
5
|
//#region src/lib/components/MenuItem/useMenuItem.d.ts
|
|
5
6
|
type MenuItemTone = 'critical' | undefined;
|
|
6
7
|
interface UseMenuItemProps {
|
|
@@ -7,9 +7,9 @@ const require_Overlay = require('../private/Overlay/Overlay.cjs');
|
|
|
7
7
|
const require_Popover = require('../private/Popover/Popover.cjs');
|
|
8
8
|
const require_getNextIndex = require('../private/getNextIndex.cjs');
|
|
9
9
|
const require_normalizeKey = require('../private/normalizeKey.cjs');
|
|
10
|
+
const require_ScrollContainer = require('../private/ScrollContainer/ScrollContainer.cjs');
|
|
10
11
|
const require_MenuRendererContext = require('./MenuRendererContext.cjs');
|
|
11
12
|
const require_MenuItemDivider = require('../MenuItemDivider/MenuItemDivider.cjs');
|
|
12
|
-
const require_ScrollContainer = require('../private/ScrollContainer/ScrollContainer.cjs');
|
|
13
13
|
const require_MenuRenderer_actions = require('./MenuRenderer.actions.cjs');
|
|
14
14
|
const require_MenuRendererItemContext = require('./MenuRendererItemContext.cjs');
|
|
15
15
|
const require_MenuRenderer_css = require('./MenuRenderer.css.cjs');
|
|
@@ -3,6 +3,7 @@ import { DataAttributeMap } from "../private/buildDataAttributes.mjs";
|
|
|
3
3
|
import { PopoverProps } from "../private/Popover/Popover.mjs";
|
|
4
4
|
import { width as width$1 } from "./MenuRenderer.css.mjs";
|
|
5
5
|
import { FC, KeyboardEvent, MouseEvent, ReactNode, Ref } from "react";
|
|
6
|
+
|
|
6
7
|
//#region src/lib/components/MenuRenderer/MenuRenderer.d.ts
|
|
7
8
|
interface TriggerProps {
|
|
8
9
|
'aria-haspopup': boolean;
|
|
@@ -6,9 +6,9 @@ import { Overlay } from "../private/Overlay/Overlay.mjs";
|
|
|
6
6
|
import { Popover } from "../private/Popover/Popover.mjs";
|
|
7
7
|
import { getNextIndex } from "../private/getNextIndex.mjs";
|
|
8
8
|
import { normalizeKey } from "../private/normalizeKey.mjs";
|
|
9
|
+
import { ScrollContainer } from "../private/ScrollContainer/ScrollContainer.mjs";
|
|
9
10
|
import { MenuRendererContext } from "./MenuRendererContext.mjs";
|
|
10
11
|
import { MenuItemDivider } from "../MenuItemDivider/MenuItemDivider.mjs";
|
|
11
|
-
import { ScrollContainer } from "../private/ScrollContainer/ScrollContainer.mjs";
|
|
12
12
|
import { actionTypes } from "./MenuRenderer.actions.mjs";
|
|
13
13
|
import { MenuRendererItemContext } from "./MenuRendererItemContext.mjs";
|
|
14
14
|
import { menuHeightLimit, menuYPadding, width } from "./MenuRenderer.css.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldGroupBaseProps, FieldLabelVariant } from "../private/FieldGroup/FieldGroup.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/components/MonthPicker/MonthPicker.d.ts
|
|
5
5
|
interface MonthPickerValue {
|
|
@@ -39,7 +39,7 @@ declare const MonthPicker: {
|
|
|
39
39
|
tabIndex,
|
|
40
40
|
monthNames,
|
|
41
41
|
...restProps
|
|
42
|
-
}: MonthPickerProps):
|
|
42
|
+
}: MonthPickerProps): react.JSX.Element;
|
|
43
43
|
displayName: string;
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldGroupBaseProps, FieldLabelVariant } from "../private/FieldGroup/FieldGroup.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/components/MonthPicker/MonthPicker.d.ts
|
|
5
5
|
interface MonthPickerValue {
|
|
@@ -39,7 +39,7 @@ declare const MonthPicker: {
|
|
|
39
39
|
tabIndex,
|
|
40
40
|
monthNames,
|
|
41
41
|
...restProps
|
|
42
|
-
}: MonthPickerProps):
|
|
42
|
+
}: MonthPickerProps): react.JSX.Element;
|
|
43
43
|
displayName: string;
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InlineFieldProps } from "../private/InlineField/InlineField.cjs";
|
|
2
2
|
import { FieldGroupBaseProps, FieldLabelVariant } from "../private/FieldGroup/FieldGroup.cjs";
|
|
3
3
|
import { RadioItemProps } from "./RadioItem.cjs";
|
|
4
|
+
import * as react from "react";
|
|
4
5
|
import { FormEvent, ReactElement } from "react";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/components/RadioGroup/RadioGroup.d.ts
|
|
8
8
|
type RadioGroupBaseProps<Value = NonNullable<string | number>> = FieldGroupBaseProps & {
|
|
@@ -25,7 +25,7 @@ declare const RadioGroup: {
|
|
|
25
25
|
tone,
|
|
26
26
|
size,
|
|
27
27
|
...props
|
|
28
|
-
}: RadioGroupProps):
|
|
28
|
+
}: RadioGroupProps): react.JSX.Element;
|
|
29
29
|
displayName: string;
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InlineFieldProps } from "../private/InlineField/InlineField.mjs";
|
|
2
2
|
import { FieldGroupBaseProps, FieldLabelVariant } from "../private/FieldGroup/FieldGroup.mjs";
|
|
3
3
|
import { RadioItemProps } from "./RadioItem.mjs";
|
|
4
|
+
import * as react from "react";
|
|
4
5
|
import { FormEvent, ReactElement } from "react";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/components/RadioGroup/RadioGroup.d.ts
|
|
8
8
|
type RadioGroupBaseProps<Value = NonNullable<string | number>> = FieldGroupBaseProps & {
|
|
@@ -25,7 +25,7 @@ declare const RadioGroup: {
|
|
|
25
25
|
tone,
|
|
26
26
|
size,
|
|
27
27
|
...props
|
|
28
|
-
}: RadioGroupProps):
|
|
28
|
+
}: RadioGroupProps): react.JSX.Element;
|
|
29
29
|
displayName: string;
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { tone as tone$1 } from "./Stepper.css.mjs";
|
|
2
2
|
import { KeyboardEvent, ReactNode } from "react";
|
|
3
|
+
|
|
3
4
|
//#region src/lib/components/Stepper/StepperContext.d.ts
|
|
4
5
|
type StepperMode = 'linear' | 'non-linear';
|
|
5
6
|
type StepperTone = Exclude<keyof typeof tone$1, 'formAccent'>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TagProps } from "./Tag.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/components/Tag/Tag.playroom.d.ts
|
|
5
5
|
declare const Tag: ({
|
|
6
6
|
icon,
|
|
7
7
|
size,
|
|
8
8
|
...restProps
|
|
9
|
-
}: TagProps) =>
|
|
9
|
+
}: TagProps) => react.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Tag };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TagProps } from "./Tag.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/components/Tag/Tag.playroom.d.ts
|
|
5
5
|
declare const Tag: ({
|
|
6
6
|
icon,
|
|
7
7
|
size,
|
|
8
8
|
...restProps
|
|
9
|
-
}: TagProps) =>
|
|
9
|
+
}: TagProps) => react.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Tag };
|