braid-design-system 33.10.0 → 34.0.0-seperate-codemod-20250618035833
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 +4 -99
- package/dist/css.cjs +0 -2
- package/dist/css.d.mts +1 -1
- package/dist/css.d.ts +1 -1
- package/dist/css.mjs +0 -2
- package/dist/index.d.mts +8 -32
- package/dist/index.d.ts +8 -32
- package/dist/lib/color/palette.cjs +2 -1
- package/dist/lib/color/palette.mjs +2 -1
- package/dist/lib/components/Accordion/AccordionItem.cjs +41 -27
- package/dist/lib/components/Accordion/AccordionItem.css.cjs +12 -6
- package/dist/lib/components/Accordion/AccordionItem.css.mjs +12 -6
- package/dist/lib/components/Accordion/AccordionItem.mjs +41 -27
- package/dist/lib/components/Alert/Alert.cjs +12 -0
- package/dist/lib/components/Alert/Alert.css.cjs +8 -0
- package/dist/lib/components/Alert/Alert.css.mjs +8 -0
- package/dist/lib/components/Alert/Alert.mjs +13 -1
- package/dist/lib/components/BraidProvider/BraidProvider.cjs +2 -0
- package/dist/lib/components/BraidProvider/BraidProvider.mjs +2 -0
- package/dist/lib/components/BraidTestProvider/BraidTestProvider.cjs +0 -22
- package/dist/lib/components/BraidTestProvider/BraidTestProvider.mjs +0 -22
- package/dist/lib/components/Button/Button.cjs +11 -0
- package/dist/lib/components/Button/Button.css.cjs +8 -0
- package/dist/lib/components/Button/Button.css.mjs +8 -0
- package/dist/lib/components/Button/Button.mjs +12 -1
- package/dist/lib/components/Stepper/Step.cjs +22 -10
- package/dist/lib/components/Stepper/Step.mjs +23 -11
- package/dist/lib/components/Stepper/Stepper.css.cjs +12 -11
- package/dist/lib/components/Stepper/Stepper.css.mjs +12 -11
- package/dist/lib/components/Tabs/Tab.cjs +17 -2
- package/dist/lib/components/Tabs/Tab.mjs +18 -3
- package/dist/lib/components/Tabs/TabPanel.cjs +16 -4
- package/dist/lib/components/Tabs/TabPanel.mjs +18 -6
- package/dist/lib/components/Tabs/Tabs.css.cjs +14 -1
- package/dist/lib/components/Tabs/Tabs.css.mjs +14 -1
- package/dist/lib/components/TextDropdown/TextDropdown.cjs +16 -5
- package/dist/lib/components/TextDropdown/TextDropdown.css.cjs +14 -8
- package/dist/lib/components/TextDropdown/TextDropdown.css.mjs +14 -8
- package/dist/lib/components/TextDropdown/TextDropdown.mjs +17 -6
- package/dist/lib/components/TextLink/TextLink.css.cjs +4 -4
- package/dist/lib/components/TextLink/TextLink.css.mjs +4 -4
- package/dist/lib/components/Toggle/Toggle.cjs +9 -0
- package/dist/lib/components/Toggle/Toggle.css.cjs +11 -8
- package/dist/lib/components/Toggle/Toggle.css.mjs +11 -8
- package/dist/lib/components/Toggle/Toggle.mjs +10 -1
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.cjs +21 -34
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.mjs +21 -34
- package/dist/lib/components/private/Field/Field.cjs +2 -0
- package/dist/lib/components/private/Field/Field.css.cjs +8 -0
- package/dist/lib/components/private/Field/Field.css.mjs +8 -0
- package/dist/lib/components/private/Field/Field.mjs +3 -1
- package/dist/lib/components/private/FieldOverlay/FieldOverlay.cjs +1 -0
- package/dist/lib/components/private/FieldOverlay/FieldOverlay.mjs +1 -0
- package/dist/lib/components/private/InlineField/InlineField.css.cjs +10 -3
- package/dist/lib/components/private/InlineField/InlineField.css.mjs +10 -3
- package/dist/lib/components/private/InlineField/StyledInput.cjs +8 -0
- package/dist/lib/components/private/InlineField/StyledInput.mjs +9 -1
- package/dist/lib/components/private/Modal/Modal.css.cjs +8 -0
- package/dist/lib/components/private/Modal/Modal.css.mjs +8 -0
- package/dist/lib/components/private/Modal/ModalContent.cjs +17 -5
- package/dist/lib/components/private/Modal/ModalContent.mjs +18 -6
- package/dist/lib/components/private/Overlay/Overlay.cjs +6 -1
- package/dist/lib/components/private/Overlay/Overlay.mjs +6 -1
- package/dist/lib/components/private/hideFocusRings/hideFocusRings.cjs +2 -0
- package/dist/lib/components/private/hideFocusRings/hideFocusRings.css.cjs +14 -0
- package/dist/lib/components/private/hideFocusRings/hideFocusRings.css.mjs +15 -0
- package/dist/lib/components/private/hideFocusRings/hideFocusRings.mjs +1 -0
- package/dist/lib/components/private/hideFocusRings/hideFocusRingsDataAttribute.cjs +3 -0
- package/dist/lib/components/private/hideFocusRings/hideFocusRingsDataAttribute.mjs +4 -0
- package/dist/lib/components/private/hideFocusRings/useHideFocusRings.cjs +18 -0
- package/dist/lib/components/private/hideFocusRings/useHideFocusRings.mjs +19 -0
- package/dist/lib/components/useToast/Toast.cjs +2 -0
- package/dist/lib/components/useToast/Toast.mjs +2 -0
- package/dist/lib/css/atoms/atomicProperties.cjs +2 -6
- package/dist/lib/css/atoms/atomicProperties.mjs +2 -6
- package/dist/lib/css/atoms/atoms.cjs +0 -36
- package/dist/lib/css/atoms/atoms.mjs +0 -34
- package/dist/lib/css/reset/reset.css.cjs +11 -7
- package/dist/lib/css/reset/reset.css.mjs +11 -7
- package/dist/lib/playroom/useScope.cjs +2 -4
- package/dist/lib/playroom/useScope.mjs +2 -4
- package/dist/lib/themes/apac/tokens.cjs +11 -264
- package/dist/lib/themes/apac/tokens.mjs +12 -263
- package/dist/lib/themes/baseTokens/{nvl.cjs → apac.cjs} +103 -97
- package/dist/lib/themes/baseTokens/{nvl.mjs → apac.mjs} +101 -98
- package/dist/lib/themes/seekBusiness/tokens.cjs +13 -5
- package/dist/lib/themes/seekBusiness/tokens.mjs +12 -4
- package/dist/lib/themes/seekJobs/tokens.cjs +184 -4
- package/dist/lib/themes/seekJobs/tokens.mjs +183 -3
- package/package.json +6 -3
- package/dist/lib/css/outlineStyle.cjs +0 -17
- package/dist/lib/css/outlineStyle.mjs +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,111 +1,18 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 34.0.0-seperate-codemod-20250618035833
|
|
4
4
|
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
- **Box, atoms**: Add `sticky` to `position`. ([#1806](https://github.com/seek-oss/braid-design-system/pull/1806))
|
|
8
|
-
|
|
9
|
-
**EXAMPLE USAGE:**
|
|
10
|
-
|
|
11
|
-
```jsx
|
|
12
|
-
<Box position="sticky" top={0} ... />
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
- **Box, atoms**: Deprecate `outline` value `none`, and `boxShadow` value `outlineFocus`. ([#1810](https://github.com/seek-oss/braid-design-system/pull/1810))
|
|
16
|
-
|
|
17
|
-
Previously it was recommended to hide an element's `outline` in favour of using `boxShadow="outlineFocus"`.
|
|
18
|
-
|
|
19
|
-
Braid now leverages the `outline` property directly, managing focus rings of interactive elements as part of its scoped CSS reset.
|
|
20
|
-
|
|
21
|
-
**MIGRATION GUIDE:**
|
|
22
|
-
|
|
23
|
-
For styling the focus ring via `Box`:
|
|
24
|
-
|
|
25
|
-
1. Remove usage of `outline="none"` and `boxShadow="outlineFocus"`
|
|
26
|
-
2. Refer to [`focus outlines`] for guidance on leveraging Braid's focus outline styles.
|
|
27
|
-
|
|
28
|
-
```diff
|
|
29
|
-
- <Box outline="none" className={styles.customFocusStyles} />
|
|
30
|
-
+ <Box />
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
For styling the focus outline of an element based on the focus of another element, see [`outlineStyle`].
|
|
34
|
-
|
|
35
|
-
[`focus outlines`]: https://seek-oss.github.io/braid-design-system/components/Box#focus-outlines
|
|
36
|
-
[`outlineStyle`]: https://seek-oss.github.io/braid-design-system/css/outlineStyle
|
|
37
|
-
|
|
38
|
-
- **seekBusiness:** Migrate to updated visual language ([#1819](https://github.com/seek-oss/braid-design-system/pull/1819))
|
|
39
|
-
|
|
40
|
-
Migrate `seekBusiness` theme to new visual language.
|
|
41
|
-
Adopts the `seekJobs` theme for the latest design standards, rather than the legacy `apac` theme, while retaining the `seekBusiness` brand accent colour.
|
|
42
|
-
|
|
43
|
-
### Patch Changes
|
|
44
|
-
|
|
45
|
-
- **ButtonIcon**: Ensure the focus outline is styled consistently with other components. ([#1810](https://github.com/seek-oss/braid-design-system/pull/1810))
|
|
46
|
-
|
|
47
|
-
Fix issue which caused the Braid focus outline to show along with the native browser focus outline.
|
|
48
|
-
|
|
49
|
-
- **apac:** Deprecate theme in favour of `seekJobs` theme ([#1820](https://github.com/seek-oss/braid-design-system/pull/1820))
|
|
50
|
-
|
|
51
|
-
**MIGRATION GUIDE:**
|
|
52
|
-
|
|
53
|
-
```diff
|
|
54
|
-
# App.tsx
|
|
55
|
-
- import apac from 'braid-design-system/themes/apac';
|
|
56
|
-
+ import seekJobs from 'braid-design-system/themes/seekJobs';
|
|
57
|
-
|
|
58
|
-
- <BraidProvider theme={apac} ...>
|
|
59
|
-
+ <BraidProvider theme={seekJobs} ...>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
- Migrate from custom focus ring visibility to native `:focus-visible` behaviour. ([#1810](https://github.com/seek-oss/braid-design-system/pull/1810))
|
|
63
|
-
|
|
64
|
-
Previously Braid would change the presentation of focus ring outlines based on the user input, i.e. mouse or keyboard,
|
|
65
|
-
to prevent showing focus rings on click.
|
|
66
|
-
With the updated Browser Support Policy, we can now leverage the native `:focus-visible` pseudo class instead.
|
|
67
|
-
|
|
68
|
-
- **Dialog, Drawer**: Ensure the focus outline is correctly applied to the title. ([#1810](https://github.com/seek-oss/braid-design-system/pull/1810))
|
|
69
|
-
|
|
70
|
-
Fix issue where focus outline would not be long enough to wrap the entire title text in certain situations.
|
|
71
|
-
|
|
72
|
-
## 33.9.1
|
|
73
|
-
|
|
74
|
-
### Patch Changes
|
|
75
|
-
|
|
76
|
-
- **ButtonIcon, TooltipRenderer:** Remove unnecessary intermediary element around the tooltip trigger. ([#1814](https://github.com/seek-oss/braid-design-system/pull/1814))
|
|
77
|
-
|
|
78
|
-
- **BraidTestProvider:** Use stubs instead of mocks to fill missing APIs in jsdom ([#1809](https://github.com/seek-oss/braid-design-system/pull/1809))
|
|
79
|
-
|
|
80
|
-
This change allows the BraidTestProvider to be framework agnostic for tests and discourages testing the stubbed browser APIs directly.
|
|
81
|
-
|
|
82
|
-
## 33.9.0
|
|
83
|
-
|
|
84
|
-
### Minor Changes
|
|
5
|
+
### Major Changes
|
|
85
6
|
|
|
86
7
|
- @braid-design-system/codemod has been moved to its own package. ([#1801](https://github.com/seek-oss/braid-design-system/pull/1801))
|
|
87
8
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
The `braid-upgrade` command is now no longer part of the `braid-design-system` package. Instead, `braid-upgrade` can be run via the `@braid-design-system/codemod` package.
|
|
9
|
+
The `braid-upgrade` command is now no longer apart of the core Braid Design System. Instead, `braid-upgrade` can be run via the `@braid-design-system/codemod` package.
|
|
91
10
|
|
|
92
11
|
#### Example
|
|
93
12
|
|
|
94
13
|
```bash
|
|
95
|
-
pnpm
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### Patch Changes
|
|
99
|
-
|
|
100
|
-
- **BraidTestProvider:** Provide `ResizeObserver` & `IntersectionObserver` stubs to jsdom ([#1811](https://github.com/seek-oss/braid-design-system/pull/1811))
|
|
101
|
-
|
|
102
|
-
Fixes an issue where rendering certain Braid components within a test environment could throw errors due to missing APIs in jsdom, causing tests to fail with the following error:
|
|
103
|
-
|
|
14
|
+
pnpm --package=@braid-design-system/codemod dlx braid-upgrade v31.11 "**/*.{ts,tsx}
|
|
104
15
|
```
|
|
105
|
-
ReferenceError: IntersectionObserver is not defined
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## 33.8.0
|
|
109
16
|
|
|
110
17
|
### Minor Changes
|
|
111
18
|
|
|
@@ -146,8 +53,6 @@
|
|
|
146
53
|
|
|
147
54
|
Fixes an issue where the close button inside the `Dialog` or `Drawer` was incorrectly inside an `aria-hidden` region.
|
|
148
55
|
|
|
149
|
-
- **useToast**: Simplify internal logic, refining how the theme is applied to Toasts ([#1797](https://github.com/seek-oss/braid-design-system/pull/1797))
|
|
150
|
-
|
|
151
56
|
- **Autosuggest**: Ensure suggestions dropdown is visible, even when `Autosuggest` is inside a container with overflow hidden. ([#1738](https://github.com/seek-oss/braid-design-system/pull/1738))
|
|
152
57
|
|
|
153
58
|
## 33.7.0
|
package/dist/css.cjs
CHANGED
|
@@ -4,7 +4,6 @@ const lib_css_atoms_atoms_cjs = require("./lib/css/atoms/atoms.cjs");
|
|
|
4
4
|
const lib_css_breakpoints_cjs = require("./lib/css/breakpoints.cjs");
|
|
5
5
|
const lib_css_colorModeStyle_cjs = require("./lib/css/colorModeStyle.cjs");
|
|
6
6
|
const lib_css_globalTypographyStyles_cjs = require("./lib/css/globalTypographyStyles.cjs");
|
|
7
|
-
const lib_css_outlineStyle_cjs = require("./lib/css/outlineStyle.cjs");
|
|
8
7
|
const lib_css_responsiveStyle_cjs = require("./lib/css/responsiveStyle.cjs");
|
|
9
8
|
const lib_themes_vars_css_cjs = require("./lib/themes/vars.css.cjs");
|
|
10
9
|
const {
|
|
@@ -49,7 +48,6 @@ exports.breakpoints = lib_css_breakpoints_cjs.breakpoints;
|
|
|
49
48
|
exports.colorModeStyle = lib_css_colorModeStyle_cjs.colorModeStyle;
|
|
50
49
|
exports.globalHeadingStyle = lib_css_globalTypographyStyles_cjs.globalHeadingStyle;
|
|
51
50
|
exports.globalTextStyle = lib_css_globalTypographyStyles_cjs.globalTextStyle;
|
|
52
|
-
exports.outlineStyle = lib_css_outlineStyle_cjs.outlineStyle;
|
|
53
51
|
exports.responsiveStyle = lib_css_responsiveStyle_cjs.responsiveStyle;
|
|
54
52
|
exports.atoms = atoms;
|
|
55
53
|
exports.vars = vars;
|
package/dist/css.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Breakpoint, atoms, breakpoints, colorModeStyle, globalHeadingStyle, globalTextStyle,
|
|
1
|
+
export { Breakpoint, atoms, breakpoints, colorModeStyle, globalHeadingStyle, globalTextStyle, responsiveStyle, vars } from './index.js';
|
package/dist/css.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Breakpoint, atoms, breakpoints, colorModeStyle, globalHeadingStyle, globalTextStyle,
|
|
1
|
+
export { Breakpoint, atoms, breakpoints, colorModeStyle, globalHeadingStyle, globalTextStyle, responsiveStyle, vars } from './index.js';
|
package/dist/css.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { atoms as atoms$1 } from "./lib/css/atoms/atoms.mjs";
|
|
|
2
2
|
import { breakpoints } from "./lib/css/breakpoints.mjs";
|
|
3
3
|
import { colorModeStyle } from "./lib/css/colorModeStyle.mjs";
|
|
4
4
|
import { globalHeadingStyle, globalTextStyle } from "./lib/css/globalTypographyStyles.mjs";
|
|
5
|
-
import { outlineStyle } from "./lib/css/outlineStyle.mjs";
|
|
6
5
|
import { responsiveStyle } from "./lib/css/responsiveStyle.mjs";
|
|
7
6
|
import { vars as vars$1 } from "./lib/themes/vars.css.mjs";
|
|
8
7
|
const {
|
|
@@ -49,7 +48,6 @@ export {
|
|
|
49
48
|
colorModeStyle,
|
|
50
49
|
globalHeadingStyle,
|
|
51
50
|
globalTextStyle,
|
|
52
|
-
outlineStyle,
|
|
53
51
|
responsiveStyle,
|
|
54
52
|
vars
|
|
55
53
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -976,15 +976,6 @@ declare const responsiveAtomicProperties: {
|
|
|
976
976
|
length: 4;
|
|
977
977
|
};
|
|
978
978
|
values: {
|
|
979
|
-
sticky: {
|
|
980
|
-
defaultClass: string;
|
|
981
|
-
conditions: {
|
|
982
|
-
mobile: string;
|
|
983
|
-
tablet: string;
|
|
984
|
-
desktop: string;
|
|
985
|
-
wide: string;
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
979
|
relative: {
|
|
989
980
|
defaultClass: string;
|
|
990
981
|
conditions: {
|
|
@@ -2194,7 +2185,7 @@ declare const responsiveAtomicProperties: {
|
|
|
2194
2185
|
declare const sprinkles: ((props: {
|
|
2195
2186
|
readonly overflow?: "hidden" | "scroll" | "visible" | "auto" | undefined;
|
|
2196
2187
|
readonly userSelect?: "none" | undefined;
|
|
2197
|
-
readonly outline?: "none" |
|
|
2188
|
+
readonly outline?: "none" | undefined;
|
|
2198
2189
|
readonly opacity?: 0 | undefined;
|
|
2199
2190
|
readonly zIndex?: 0 | 2 | 1 | "dropdownBackdrop" | "dropdown" | "sticky" | "modalBackdrop" | "modal" | "notification" | undefined;
|
|
2200
2191
|
readonly cursor?: "default" | "pointer" | undefined;
|
|
@@ -2216,12 +2207,12 @@ declare const sprinkles: ((props: {
|
|
|
2216
2207
|
desktop?: "none" | "flex" | "block" | "inline" | "inlineBlock" | undefined;
|
|
2217
2208
|
wide?: "none" | "flex" | "block" | "inline" | "inlineBlock" | undefined;
|
|
2218
2209
|
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<2 | 1 | 4 | 3, "none" | "flex" | "block" | "inline" | "inlineBlock" | null>;
|
|
2219
|
-
readonly position?: ("
|
|
2220
|
-
mobile?: "
|
|
2221
|
-
tablet?: "
|
|
2222
|
-
desktop?: "
|
|
2223
|
-
wide?: "
|
|
2224
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<2 | 1 | 4 | 3, "
|
|
2210
|
+
readonly position?: ("relative" | "absolute" | "fixed" | {
|
|
2211
|
+
mobile?: "relative" | "absolute" | "fixed" | undefined;
|
|
2212
|
+
tablet?: "relative" | "absolute" | "fixed" | undefined;
|
|
2213
|
+
desktop?: "relative" | "absolute" | "fixed" | undefined;
|
|
2214
|
+
wide?: "relative" | "absolute" | "fixed" | undefined;
|
|
2215
|
+
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<2 | 1 | 4 | 3, "relative" | "absolute" | "fixed" | null>;
|
|
2225
2216
|
readonly borderRadius?: ("small" | "large" | "xlarge" | "standard" | "none" | "full" | {
|
|
2226
2217
|
mobile?: "small" | "large" | "xlarge" | "standard" | "none" | "full" | undefined;
|
|
2227
2218
|
tablet?: "small" | "large" | "xlarge" | "standard" | "none" | "full" | undefined;
|
|
@@ -4384,16 +4375,6 @@ interface GlobalHeadingProps {
|
|
|
4384
4375
|
}
|
|
4385
4376
|
declare const globalHeadingStyle: ({ weight, level, }: GlobalHeadingProps) => StyleRule;
|
|
4386
4377
|
|
|
4387
|
-
declare const outlineStyle: (selector: string) => {
|
|
4388
|
-
outline: string;
|
|
4389
|
-
transition: string;
|
|
4390
|
-
selectors: {
|
|
4391
|
-
[x: string]: {
|
|
4392
|
-
outlineColor: `var(--${string})`;
|
|
4393
|
-
};
|
|
4394
|
-
};
|
|
4395
|
-
};
|
|
4396
|
-
|
|
4397
4378
|
type CSSProps = Omit<StyleRule, '@media' | '@supports'>;
|
|
4398
4379
|
interface ResponsiveStyle {
|
|
4399
4380
|
mobile?: CSSProps;
|
|
@@ -4532,11 +4513,6 @@ declare const vars: {
|
|
|
4532
4513
|
};
|
|
4533
4514
|
declare function atoms(props: Omit<Atoms, 'background'>): string;
|
|
4534
4515
|
|
|
4535
|
-
/**
|
|
4536
|
-
* @deprecated the `apac` theme is deprecated and will be removed in a future release.
|
|
4537
|
-
*
|
|
4538
|
-
* Use the `seekJobs` theme instead.
|
|
4539
|
-
*/
|
|
4540
4516
|
declare const _default$6: {
|
|
4541
4517
|
vanillaTheme: string;
|
|
4542
4518
|
name: string;
|
|
@@ -5350,5 +5326,5 @@ declare const _default: {
|
|
|
5350
5326
|
code: string;
|
|
5351
5327
|
}[];
|
|
5352
5328
|
|
|
5353
|
-
export { Accordion$1 as Accordion, Accordion as Accordion$1, AccordionItem$1 as AccordionItem, AccordionItem as AccordionItem$1, Actions, Alert$1 as Alert, Alert as Alert$1, Autosuggest$1 as Autosuggest, Autosuggest as Autosuggest$1, Badge$1 as Badge, Badge as Badge$1, Bleed$1 as Bleed, Bleed as Bleed$1, PublicBox as Box, Box as Box$1, BoxRenderer, BraidPortal, BraidProvider, BraidTestProvider, Button$1 as Button, Button as Button$1, ButtonIcon$1 as ButtonIcon, ButtonIcon as ButtonIcon$1, ButtonLink$1 as ButtonLink, ButtonLink as ButtonLink$1, Card$1 as Card, Card as Card$1, Checkbox$1 as Checkbox, Checkbox as Checkbox$1, CheckboxStandalone$1 as CheckboxStandalone, CheckboxStandalone as CheckboxStandalone$1, Column, Columns$1 as Columns, Columns as Columns$1, ContentBlock, Dialog$1 as Dialog, Dialog as Dialog$1, Disclosure$1 as Disclosure, Disclosure as Disclosure$1, Divider, Drawer$1 as Drawer, Drawer as Drawer$1, Dropdown$1 as Dropdown, Dropdown as Dropdown$1, FieldLabel$1 as FieldLabel, FieldLabel as FieldLabel$1, FieldMessage$1 as FieldMessage, FieldMessage as FieldMessage$1, Heading$1 as Heading, Heading as Heading$1, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline$1 as Inline, Inline as Inline$1, Link$1 as Link, Link as Link$1, List$1 as List, List as List$1, Loader, MenuItem$1 as MenuItem, MenuItem as MenuItem$1, MenuItemCheckbox$1 as MenuItemCheckbox, MenuItemCheckbox as MenuItemCheckbox$1, MenuItemDivider, MenuItemLink$1 as MenuItemLink, MenuItemLink as MenuItemLink$1, MenuRenderer, MonthPicker$1 as MonthPicker, MonthPicker as MonthPicker$1, Notice$1 as Notice, Notice as Notice$1, OverflowMenu, Page, PageBlock, Pagination$1 as Pagination, Pagination as Pagination$1, PasswordField$1 as PasswordField, PasswordField as PasswordField$1, Placeholder, RadioGroup$1 as RadioGroup, RadioGroup as RadioGroup$1, RadioItem, Rating$1 as Rating, Rating as Rating$1, Secondary, Spread$1 as Spread, Spread as Spread$1, Stack$1 as Stack, Stack as Stack$1, Step$1 as Step, Stepper, Strong, Tab$1 as Tab, Tab as Tab$1, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs$1 as Tabs, Tabs as Tabs$1, TabsProvider, Tag$1 as Tag, Tag as Tag$1, Text, TextDropdown$1 as TextDropdown, TextDropdown as TextDropdown$1, TextField$1 as TextField, TextField as TextField$1, TextLink, TextLinkButton, Textarea$1 as Textarea, Textarea as Textarea$1, ThemeNameConsumer, Tiles$1 as Tiles, Tiles as Tiles$1, ToastProvider, Toggle$1 as Toggle, Toggle as Toggle$1, TooltipRenderer, _default$1 as _default, _default as _default$1, _default$6 as _default$2, _default$2 as _default$3, _default$4, _default$5, _default$3 as _default$6, atoms, breakpoints, colorModeStyle, filterSuggestions, globalHeadingStyle, globalTextStyle, makeLinkComponent,
|
|
5329
|
+
export { Accordion$1 as Accordion, Accordion as Accordion$1, AccordionItem$1 as AccordionItem, AccordionItem as AccordionItem$1, Actions, Alert$1 as Alert, Alert as Alert$1, Autosuggest$1 as Autosuggest, Autosuggest as Autosuggest$1, Badge$1 as Badge, Badge as Badge$1, Bleed$1 as Bleed, Bleed as Bleed$1, PublicBox as Box, Box as Box$1, BoxRenderer, BraidPortal, BraidProvider, BraidTestProvider, Button$1 as Button, Button as Button$1, ButtonIcon$1 as ButtonIcon, ButtonIcon as ButtonIcon$1, ButtonLink$1 as ButtonLink, ButtonLink as ButtonLink$1, Card$1 as Card, Card as Card$1, Checkbox$1 as Checkbox, Checkbox as Checkbox$1, CheckboxStandalone$1 as CheckboxStandalone, CheckboxStandalone as CheckboxStandalone$1, Column, Columns$1 as Columns, Columns as Columns$1, ContentBlock, Dialog$1 as Dialog, Dialog as Dialog$1, Disclosure$1 as Disclosure, Disclosure as Disclosure$1, Divider, Drawer$1 as Drawer, Drawer as Drawer$1, Dropdown$1 as Dropdown, Dropdown as Dropdown$1, FieldLabel$1 as FieldLabel, FieldLabel as FieldLabel$1, FieldMessage$1 as FieldMessage, FieldMessage as FieldMessage$1, Heading$1 as Heading, Heading as Heading$1, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline$1 as Inline, Inline as Inline$1, Link$1 as Link, Link as Link$1, List$1 as List, List as List$1, Loader, MenuItem$1 as MenuItem, MenuItem as MenuItem$1, MenuItemCheckbox$1 as MenuItemCheckbox, MenuItemCheckbox as MenuItemCheckbox$1, MenuItemDivider, MenuItemLink$1 as MenuItemLink, MenuItemLink as MenuItemLink$1, MenuRenderer, MonthPicker$1 as MonthPicker, MonthPicker as MonthPicker$1, Notice$1 as Notice, Notice as Notice$1, OverflowMenu, Page, PageBlock, Pagination$1 as Pagination, Pagination as Pagination$1, PasswordField$1 as PasswordField, PasswordField as PasswordField$1, Placeholder, RadioGroup$1 as RadioGroup, RadioGroup as RadioGroup$1, RadioItem, Rating$1 as Rating, Rating as Rating$1, Secondary, Spread$1 as Spread, Spread as Spread$1, Stack$1 as Stack, Stack as Stack$1, Step$1 as Step, Stepper, Strong, Tab$1 as Tab, Tab as Tab$1, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs$1 as Tabs, Tabs as Tabs$1, TabsProvider, Tag$1 as Tag, Tag as Tag$1, Text, TextDropdown$1 as TextDropdown, TextDropdown as TextDropdown$1, TextField$1 as TextField, TextField as TextField$1, TextLink, TextLinkButton, Textarea$1 as Textarea, Textarea as Textarea$1, ThemeNameConsumer, Tiles$1 as Tiles, Tiles as Tiles$1, ToastProvider, Toggle$1 as Toggle, Toggle as Toggle$1, TooltipRenderer, _default$1 as _default, _default as _default$1, _default$6 as _default$2, _default$2 as _default$3, _default$4, _default$5, _default$3 as _default$6, atoms, breakpoints, colorModeStyle, filterSuggestions, globalHeadingStyle, globalTextStyle, makeLinkComponent, responsiveStyle, useColor, useResponsiveValue, useScope, useSpace, useThemeName, useToast, vars };
|
|
5354
5330
|
export type { Breakpoint, LinkComponent };
|
package/dist/index.d.ts
CHANGED
|
@@ -976,15 +976,6 @@ declare const responsiveAtomicProperties: {
|
|
|
976
976
|
length: 4;
|
|
977
977
|
};
|
|
978
978
|
values: {
|
|
979
|
-
sticky: {
|
|
980
|
-
defaultClass: string;
|
|
981
|
-
conditions: {
|
|
982
|
-
mobile: string;
|
|
983
|
-
tablet: string;
|
|
984
|
-
desktop: string;
|
|
985
|
-
wide: string;
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
979
|
relative: {
|
|
989
980
|
defaultClass: string;
|
|
990
981
|
conditions: {
|
|
@@ -2194,7 +2185,7 @@ declare const responsiveAtomicProperties: {
|
|
|
2194
2185
|
declare const sprinkles: ((props: {
|
|
2195
2186
|
readonly overflow?: "hidden" | "scroll" | "visible" | "auto" | undefined;
|
|
2196
2187
|
readonly userSelect?: "none" | undefined;
|
|
2197
|
-
readonly outline?: "none" |
|
|
2188
|
+
readonly outline?: "none" | undefined;
|
|
2198
2189
|
readonly opacity?: 0 | undefined;
|
|
2199
2190
|
readonly zIndex?: 0 | 2 | 1 | "dropdownBackdrop" | "dropdown" | "sticky" | "modalBackdrop" | "modal" | "notification" | undefined;
|
|
2200
2191
|
readonly cursor?: "default" | "pointer" | undefined;
|
|
@@ -2216,12 +2207,12 @@ declare const sprinkles: ((props: {
|
|
|
2216
2207
|
desktop?: "none" | "flex" | "block" | "inline" | "inlineBlock" | undefined;
|
|
2217
2208
|
wide?: "none" | "flex" | "block" | "inline" | "inlineBlock" | undefined;
|
|
2218
2209
|
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<2 | 1 | 4 | 3, "none" | "flex" | "block" | "inline" | "inlineBlock" | null>;
|
|
2219
|
-
readonly position?: ("
|
|
2220
|
-
mobile?: "
|
|
2221
|
-
tablet?: "
|
|
2222
|
-
desktop?: "
|
|
2223
|
-
wide?: "
|
|
2224
|
-
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<2 | 1 | 4 | 3, "
|
|
2210
|
+
readonly position?: ("relative" | "absolute" | "fixed" | {
|
|
2211
|
+
mobile?: "relative" | "absolute" | "fixed" | undefined;
|
|
2212
|
+
tablet?: "relative" | "absolute" | "fixed" | undefined;
|
|
2213
|
+
desktop?: "relative" | "absolute" | "fixed" | undefined;
|
|
2214
|
+
wide?: "relative" | "absolute" | "fixed" | undefined;
|
|
2215
|
+
} | undefined) | _vanilla_extract_sprinkles.ResponsiveArray<2 | 1 | 4 | 3, "relative" | "absolute" | "fixed" | null>;
|
|
2225
2216
|
readonly borderRadius?: ("small" | "large" | "xlarge" | "standard" | "none" | "full" | {
|
|
2226
2217
|
mobile?: "small" | "large" | "xlarge" | "standard" | "none" | "full" | undefined;
|
|
2227
2218
|
tablet?: "small" | "large" | "xlarge" | "standard" | "none" | "full" | undefined;
|
|
@@ -4384,16 +4375,6 @@ interface GlobalHeadingProps {
|
|
|
4384
4375
|
}
|
|
4385
4376
|
declare const globalHeadingStyle: ({ weight, level, }: GlobalHeadingProps) => StyleRule;
|
|
4386
4377
|
|
|
4387
|
-
declare const outlineStyle: (selector: string) => {
|
|
4388
|
-
outline: string;
|
|
4389
|
-
transition: string;
|
|
4390
|
-
selectors: {
|
|
4391
|
-
[x: string]: {
|
|
4392
|
-
outlineColor: `var(--${string})`;
|
|
4393
|
-
};
|
|
4394
|
-
};
|
|
4395
|
-
};
|
|
4396
|
-
|
|
4397
4378
|
type CSSProps = Omit<StyleRule, '@media' | '@supports'>;
|
|
4398
4379
|
interface ResponsiveStyle {
|
|
4399
4380
|
mobile?: CSSProps;
|
|
@@ -4532,11 +4513,6 @@ declare const vars: {
|
|
|
4532
4513
|
};
|
|
4533
4514
|
declare function atoms(props: Omit<Atoms, 'background'>): string;
|
|
4534
4515
|
|
|
4535
|
-
/**
|
|
4536
|
-
* @deprecated the `apac` theme is deprecated and will be removed in a future release.
|
|
4537
|
-
*
|
|
4538
|
-
* Use the `seekJobs` theme instead.
|
|
4539
|
-
*/
|
|
4540
4516
|
declare const _default$6: {
|
|
4541
4517
|
vanillaTheme: string;
|
|
4542
4518
|
name: string;
|
|
@@ -5350,5 +5326,5 @@ declare const _default: {
|
|
|
5350
5326
|
code: string;
|
|
5351
5327
|
}[];
|
|
5352
5328
|
|
|
5353
|
-
export { Accordion$1 as Accordion, Accordion as Accordion$1, AccordionItem$1 as AccordionItem, AccordionItem as AccordionItem$1, Actions, Alert$1 as Alert, Alert as Alert$1, Autosuggest$1 as Autosuggest, Autosuggest as Autosuggest$1, Badge$1 as Badge, Badge as Badge$1, Bleed$1 as Bleed, Bleed as Bleed$1, PublicBox as Box, Box as Box$1, BoxRenderer, BraidPortal, BraidProvider, BraidTestProvider, Button$1 as Button, Button as Button$1, ButtonIcon$1 as ButtonIcon, ButtonIcon as ButtonIcon$1, ButtonLink$1 as ButtonLink, ButtonLink as ButtonLink$1, Card$1 as Card, Card as Card$1, Checkbox$1 as Checkbox, Checkbox as Checkbox$1, CheckboxStandalone$1 as CheckboxStandalone, CheckboxStandalone as CheckboxStandalone$1, Column, Columns$1 as Columns, Columns as Columns$1, ContentBlock, Dialog$1 as Dialog, Dialog as Dialog$1, Disclosure$1 as Disclosure, Disclosure as Disclosure$1, Divider, Drawer$1 as Drawer, Drawer as Drawer$1, Dropdown$1 as Dropdown, Dropdown as Dropdown$1, FieldLabel$1 as FieldLabel, FieldLabel as FieldLabel$1, FieldMessage$1 as FieldMessage, FieldMessage as FieldMessage$1, Heading$1 as Heading, Heading as Heading$1, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline$1 as Inline, Inline as Inline$1, Link$1 as Link, Link as Link$1, List$1 as List, List as List$1, Loader, MenuItem$1 as MenuItem, MenuItem as MenuItem$1, MenuItemCheckbox$1 as MenuItemCheckbox, MenuItemCheckbox as MenuItemCheckbox$1, MenuItemDivider, MenuItemLink$1 as MenuItemLink, MenuItemLink as MenuItemLink$1, MenuRenderer, MonthPicker$1 as MonthPicker, MonthPicker as MonthPicker$1, Notice$1 as Notice, Notice as Notice$1, OverflowMenu, Page, PageBlock, Pagination$1 as Pagination, Pagination as Pagination$1, PasswordField$1 as PasswordField, PasswordField as PasswordField$1, Placeholder, RadioGroup$1 as RadioGroup, RadioGroup as RadioGroup$1, RadioItem, Rating$1 as Rating, Rating as Rating$1, Secondary, Spread$1 as Spread, Spread as Spread$1, Stack$1 as Stack, Stack as Stack$1, Step$1 as Step, Stepper, Strong, Tab$1 as Tab, Tab as Tab$1, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs$1 as Tabs, Tabs as Tabs$1, TabsProvider, Tag$1 as Tag, Tag as Tag$1, Text, TextDropdown$1 as TextDropdown, TextDropdown as TextDropdown$1, TextField$1 as TextField, TextField as TextField$1, TextLink, TextLinkButton, Textarea$1 as Textarea, Textarea as Textarea$1, ThemeNameConsumer, Tiles$1 as Tiles, Tiles as Tiles$1, ToastProvider, Toggle$1 as Toggle, Toggle as Toggle$1, TooltipRenderer, _default$1 as _default, _default as _default$1, _default$6 as _default$2, _default$2 as _default$3, _default$4, _default$5, _default$3 as _default$6, atoms, breakpoints, colorModeStyle, filterSuggestions, globalHeadingStyle, globalTextStyle, makeLinkComponent,
|
|
5329
|
+
export { Accordion$1 as Accordion, Accordion as Accordion$1, AccordionItem$1 as AccordionItem, AccordionItem as AccordionItem$1, Actions, Alert$1 as Alert, Alert as Alert$1, Autosuggest$1 as Autosuggest, Autosuggest as Autosuggest$1, Badge$1 as Badge, Badge as Badge$1, Bleed$1 as Bleed, Bleed as Bleed$1, PublicBox as Box, Box as Box$1, BoxRenderer, BraidPortal, BraidProvider, BraidTestProvider, Button$1 as Button, Button as Button$1, ButtonIcon$1 as ButtonIcon, ButtonIcon as ButtonIcon$1, ButtonLink$1 as ButtonLink, ButtonLink as ButtonLink$1, Card$1 as Card, Card as Card$1, Checkbox$1 as Checkbox, Checkbox as Checkbox$1, CheckboxStandalone$1 as CheckboxStandalone, CheckboxStandalone as CheckboxStandalone$1, Column, Columns$1 as Columns, Columns as Columns$1, ContentBlock, Dialog$1 as Dialog, Dialog as Dialog$1, Disclosure$1 as Disclosure, Disclosure as Disclosure$1, Divider, Drawer$1 as Drawer, Drawer as Drawer$1, Dropdown$1 as Dropdown, Dropdown as Dropdown$1, FieldLabel$1 as FieldLabel, FieldLabel as FieldLabel$1, FieldMessage$1 as FieldMessage, FieldMessage as FieldMessage$1, Heading$1 as Heading, Heading as Heading$1, Hidden, HiddenVisually, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline$1 as Inline, Inline as Inline$1, Link$1 as Link, Link as Link$1, List$1 as List, List as List$1, Loader, MenuItem$1 as MenuItem, MenuItem as MenuItem$1, MenuItemCheckbox$1 as MenuItemCheckbox, MenuItemCheckbox as MenuItemCheckbox$1, MenuItemDivider, MenuItemLink$1 as MenuItemLink, MenuItemLink as MenuItemLink$1, MenuRenderer, MonthPicker$1 as MonthPicker, MonthPicker as MonthPicker$1, Notice$1 as Notice, Notice as Notice$1, OverflowMenu, Page, PageBlock, Pagination$1 as Pagination, Pagination as Pagination$1, PasswordField$1 as PasswordField, PasswordField as PasswordField$1, Placeholder, RadioGroup$1 as RadioGroup, RadioGroup as RadioGroup$1, RadioItem, Rating$1 as Rating, Rating as Rating$1, Secondary, Spread$1 as Spread, Spread as Spread$1, Stack$1 as Stack, Stack as Stack$1, Step$1 as Step, Stepper, Strong, Tab$1 as Tab, Tab as Tab$1, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs$1 as Tabs, Tabs as Tabs$1, TabsProvider, Tag$1 as Tag, Tag as Tag$1, Text, TextDropdown$1 as TextDropdown, TextDropdown as TextDropdown$1, TextField$1 as TextField, TextField as TextField$1, TextLink, TextLinkButton, Textarea$1 as Textarea, Textarea as Textarea$1, ThemeNameConsumer, Tiles$1 as Tiles, Tiles as Tiles$1, ToastProvider, Toggle$1 as Toggle, Toggle as Toggle$1, TooltipRenderer, _default$1 as _default, _default as _default$1, _default$6 as _default$2, _default$2 as _default$3, _default$4, _default$5, _default$3 as _default$6, atoms, breakpoints, colorModeStyle, filterSuggestions, globalHeadingStyle, globalTextStyle, makeLinkComponent, responsiveStyle, useColor, useResponsiveValue, useScope, useSpace, useThemeName, useToast, vars };
|
|
5354
5330
|
export type { Breakpoint, LinkComponent };
|
|
@@ -7,12 +7,14 @@ const lib_components_Disclosure_useDisclosure_cjs = require("../Disclosure/useDi
|
|
|
7
7
|
const lib_components_Spread_Spread_cjs = require("../Spread/Spread.cjs");
|
|
8
8
|
const lib_components_Stack_Stack_cjs = require("../Stack/Stack.cjs");
|
|
9
9
|
const lib_components_Text_Text_cjs = require("../Text/Text.cjs");
|
|
10
|
+
const lib_components_private_Overlay_Overlay_cjs = require("../private/Overlay/Overlay.cjs");
|
|
10
11
|
const lib_components_private_badgeSlotSpace_cjs = require("../private/badgeSlotSpace.cjs");
|
|
11
12
|
const lib_components_private_buildDataAttributes_cjs = require("../private/buildDataAttributes.cjs");
|
|
12
13
|
const lib_components_Accordion_Accordion_cjs = require("./Accordion.cjs");
|
|
13
14
|
const lib_components_Accordion_AccordionContext_cjs = require("./AccordionContext.cjs");
|
|
14
15
|
const lib_components_Accordion_AccordionItem_css_cjs = require("./AccordionItem.css.cjs");
|
|
15
16
|
const lib_components_icons_IconChevron_IconChevron_cjs = require("../icons/IconChevron/IconChevron.cjs");
|
|
17
|
+
const lib_components_private_hideFocusRings_hideFocusRings_css_cjs = require("../private/hideFocusRings/hideFocusRings.css.cjs");
|
|
16
18
|
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
17
19
|
const assert__default = /* @__PURE__ */ _interopDefaultCompat(assert);
|
|
18
20
|
const itemSpaceForSize = {
|
|
@@ -84,33 +86,45 @@ const AccordionItem = ({
|
|
|
84
86
|
lib_components_private_buildDataAttributes_cjs.buildDataAttributes({ data, validateRestProps: restProps });
|
|
85
87
|
}
|
|
86
88
|
return /* @__PURE__ */ jsxRuntime.jsxs(lib_components_Stack_Stack_cjs.Stack, { space: itemSpace, data, children: [
|
|
87
|
-
/* @__PURE__ */ jsxRuntime.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
89
|
+
/* @__PURE__ */ jsxRuntime.jsxs(lib_components_Box_Box_cjs.Box, { position: "relative", display: "flex", children: [
|
|
90
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
91
|
+
lib_components_Box_Box_cjs.Box,
|
|
92
|
+
{
|
|
93
|
+
component: "button",
|
|
94
|
+
type: "button",
|
|
95
|
+
cursor: "pointer",
|
|
96
|
+
className: lib_components_Accordion_AccordionItem_css_cjs.button,
|
|
97
|
+
outline: "none",
|
|
98
|
+
width: "full",
|
|
99
|
+
textAlign: "left",
|
|
100
|
+
...buttonProps,
|
|
101
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lib_components_Box_Box_cjs.Box, { component: "span", position: "relative", children: /* @__PURE__ */ jsxRuntime.jsxs(lib_components_Spread_Spread_cjs.Spread, { component: "span", space: itemSpace, children: [
|
|
102
|
+
/* @__PURE__ */ jsxRuntime.jsxs(lib_components_Text_Text_cjs.Text, { size, weight, tone, icon, children: [
|
|
103
|
+
badge ? /* @__PURE__ */ jsxRuntime.jsx(lib_components_Box_Box_cjs.Box, { component: "span", paddingRight: lib_components_private_badgeSlotSpace_cjs.badgeSlotSpace, children: label }) : label,
|
|
104
|
+
badge ? react.cloneElement(badge, {}) : null
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
107
|
+
lib_components_Text_Text_cjs.Text,
|
|
108
|
+
{
|
|
109
|
+
size,
|
|
110
|
+
weight,
|
|
111
|
+
tone: tone === "neutral" ? "secondary" : tone,
|
|
112
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lib_components_icons_IconChevron_IconChevron_cjs.IconChevron, { direction: expanded ? "up" : "down" })
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
] }) })
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
119
|
+
lib_components_private_Overlay_Overlay_cjs.Overlay,
|
|
120
|
+
{
|
|
121
|
+
boxShadow: "outlineFocus",
|
|
122
|
+
borderRadius: "standard",
|
|
123
|
+
transition: "fast",
|
|
124
|
+
className: [lib_components_Accordion_AccordionItem_css_cjs.focusRing, lib_components_private_hideFocusRings_hideFocusRings_css_cjs.hideFocusRingsClassName]
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] }),
|
|
114
128
|
/* @__PURE__ */ jsxRuntime.jsx(lib_components_Box_Box_cjs.Box, { display: expanded ? "block" : "none", ...contentProps, children })
|
|
115
129
|
] });
|
|
116
130
|
};
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
const
|
|
4
|
+
const cssUtils = require("@vanilla-extract/css-utils");
|
|
5
5
|
const lib_themes_vars_css_cjs = require("../../themes/vars.css.cjs");
|
|
6
6
|
const lib_components_private_touchable_virtualTouchable_css_cjs = require("../private/touchable/virtualTouchable.css.cjs");
|
|
7
7
|
fileScope.setFileScope("src/lib/components/Accordion/AccordionItem.css.ts", "braid-design-system");
|
|
8
8
|
const button = css.style([{}, lib_components_private_touchable_virtualTouchable_css_cjs.virtualTouchable], "button");
|
|
9
|
-
const focusRing = css.style(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const focusRing = css.style({
|
|
10
|
+
top: cssUtils.calc.negate(lib_themes_vars_css_cjs.vars.space.xsmall),
|
|
11
|
+
bottom: cssUtils.calc.negate(lib_themes_vars_css_cjs.vars.space.xsmall),
|
|
12
|
+
left: cssUtils.calc.negate(lib_themes_vars_css_cjs.vars.space.xxsmall),
|
|
13
|
+
right: cssUtils.calc.negate(lib_themes_vars_css_cjs.vars.space.xxsmall),
|
|
14
|
+
selectors: {
|
|
15
|
+
[`${button}:focus ~ &`]: {
|
|
16
|
+
opacity: 1
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, "focusRing");
|
|
14
20
|
fileScope.endFileScope();
|
|
15
21
|
exports.button = button;
|
|
16
22
|
exports.focusRing = focusRing;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
|
-
import {
|
|
3
|
+
import { calc } from "@vanilla-extract/css-utils";
|
|
4
4
|
import { vars } from "../../themes/vars.css.mjs";
|
|
5
5
|
import { virtualTouchable } from "../private/touchable/virtualTouchable.css.mjs";
|
|
6
6
|
setFileScope("src/lib/components/Accordion/AccordionItem.css.ts", "braid-design-system");
|
|
7
7
|
const button = style([{}, virtualTouchable], "button");
|
|
8
|
-
const focusRing = style(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const focusRing = style({
|
|
9
|
+
top: calc.negate(vars.space.xsmall),
|
|
10
|
+
bottom: calc.negate(vars.space.xsmall),
|
|
11
|
+
left: calc.negate(vars.space.xxsmall),
|
|
12
|
+
right: calc.negate(vars.space.xxsmall),
|
|
13
|
+
selectors: {
|
|
14
|
+
[`${button}:focus ~ &`]: {
|
|
15
|
+
opacity: 1
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, "focusRing");
|
|
13
19
|
endFileScope();
|
|
14
20
|
export {
|
|
15
21
|
button,
|
|
@@ -6,12 +6,14 @@ import { useDisclosure } from "../Disclosure/useDisclosure.mjs";
|
|
|
6
6
|
import { Spread } from "../Spread/Spread.mjs";
|
|
7
7
|
import { Stack } from "../Stack/Stack.mjs";
|
|
8
8
|
import { Text } from "../Text/Text.mjs";
|
|
9
|
+
import { Overlay } from "../private/Overlay/Overlay.mjs";
|
|
9
10
|
import { badgeSlotSpace } from "../private/badgeSlotSpace.mjs";
|
|
10
11
|
import { buildDataAttributes } from "../private/buildDataAttributes.mjs";
|
|
11
12
|
import { defaultSize } from "./Accordion.mjs";
|
|
12
13
|
import { AccordionContext, validTones } from "./AccordionContext.mjs";
|
|
13
14
|
import { button, focusRing } from "./AccordionItem.css.mjs";
|
|
14
15
|
import { IconChevron } from "../icons/IconChevron/IconChevron.mjs";
|
|
16
|
+
import { hideFocusRingsClassName } from "../private/hideFocusRings/hideFocusRings.css.mjs";
|
|
15
17
|
const itemSpaceForSize = {
|
|
16
18
|
xsmall: "small",
|
|
17
19
|
small: "small",
|
|
@@ -81,33 +83,45 @@ const AccordionItem = ({
|
|
|
81
83
|
buildDataAttributes({ data, validateRestProps: restProps });
|
|
82
84
|
}
|
|
83
85
|
return /* @__PURE__ */ jsxs(Stack, { space: itemSpace, data, children: [
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
86
|
+
/* @__PURE__ */ jsxs(Box, { position: "relative", display: "flex", children: [
|
|
87
|
+
/* @__PURE__ */ jsx(
|
|
88
|
+
Box,
|
|
89
|
+
{
|
|
90
|
+
component: "button",
|
|
91
|
+
type: "button",
|
|
92
|
+
cursor: "pointer",
|
|
93
|
+
className: button,
|
|
94
|
+
outline: "none",
|
|
95
|
+
width: "full",
|
|
96
|
+
textAlign: "left",
|
|
97
|
+
...buttonProps,
|
|
98
|
+
children: /* @__PURE__ */ jsx(Box, { component: "span", position: "relative", children: /* @__PURE__ */ jsxs(Spread, { component: "span", space: itemSpace, children: [
|
|
99
|
+
/* @__PURE__ */ jsxs(Text, { size, weight, tone, icon, children: [
|
|
100
|
+
badge ? /* @__PURE__ */ jsx(Box, { component: "span", paddingRight: badgeSlotSpace, children: label }) : label,
|
|
101
|
+
badge ? cloneElement(badge, {}) : null
|
|
102
|
+
] }),
|
|
103
|
+
/* @__PURE__ */ jsx(
|
|
104
|
+
Text,
|
|
105
|
+
{
|
|
106
|
+
size,
|
|
107
|
+
weight,
|
|
108
|
+
tone: tone === "neutral" ? "secondary" : tone,
|
|
109
|
+
children: /* @__PURE__ */ jsx(IconChevron, { direction: expanded ? "up" : "down" })
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
] }) })
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
/* @__PURE__ */ jsx(
|
|
116
|
+
Overlay,
|
|
117
|
+
{
|
|
118
|
+
boxShadow: "outlineFocus",
|
|
119
|
+
borderRadius: "standard",
|
|
120
|
+
transition: "fast",
|
|
121
|
+
className: [focusRing, hideFocusRingsClassName]
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
] }),
|
|
111
125
|
/* @__PURE__ */ jsx(Box, { display: expanded ? "block" : "none", ...contentProps, children })
|
|
112
126
|
] });
|
|
113
127
|
};
|