braid-design-system 32.1.0 → 32.2.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 +133 -0
- package/codemod/dist/wrapper.js +181 -183
- package/color-mode/query-param/index.d.ts +1 -0
- package/color-mode/query-param/package.json +1 -1
- package/css/index.d.ts +1 -0
- package/css/package.json +1 -1
- package/dist/ToastContext.chunk.cjs +21 -21
- package/dist/ToastContext.chunk.mjs +120 -120
- package/dist/Toggle.chunk.cjs +22 -32
- package/dist/Toggle.chunk.mjs +199 -209
- package/dist/color-mode/query-param.mjs +1 -1
- package/dist/css.d.ts +1 -667
- package/dist/css.mjs +7 -7
- package/dist/index.d.ts +1 -3952
- package/dist/index.mjs +164 -164
- package/dist/playroom/FrameComponent.d.ts +1 -323
- package/dist/playroom/FrameComponent.mjs +4 -4
- package/dist/playroom/components.d.ts +1 -4027
- package/dist/playroom/components.mjs +124 -124
- package/dist/playroom/scope.d.ts +1 -385
- package/dist/playroom/scope.mjs +4 -4
- package/dist/playroom/snippets.d.ts +1 -7
- package/dist/playroomState.chunk.cjs +1 -1
- package/dist/playroomState.chunk.mjs +3 -3
- package/dist/reset.d.ts +5075 -1
- package/dist/side-effects/lib/components/BraidProvider/BraidProvider.mjs +12 -12
- package/dist/side-effects/lib/css/reset/index.mjs +1 -1
- package/dist/side-effects/lib/css/reset/resetTracker.mjs +2 -2
- package/dist/side-effects/lib/themes/baseTokens/apac.cjs +8 -9
- package/dist/side-effects/lib/themes/baseTokens/apac.mjs +8 -10
- package/dist/side-effects/lib/themes/index.mjs +5 -5
- package/dist/side-effects/lib/themes/makeRuntimeTokens.cjs +4 -10
- package/dist/side-effects/lib/themes/makeRuntimeTokens.mjs +5 -10
- package/dist/side-effects/lib/themes/tokenType.cjs +15 -0
- package/dist/side-effects/lib/themes/tokenType.mjs +16 -0
- package/dist/styles/lib/components/Accordion/AccordionItem.css.mjs +3 -3
- package/dist/styles/lib/components/Alert/Alert.css.mjs +3 -3
- package/dist/styles/lib/components/Autosuggest/Autosuggest.css.mjs +6 -6
- package/dist/styles/lib/components/Button/Button.css.cjs +24 -23
- package/dist/styles/lib/components/Button/Button.css.mjs +39 -38
- package/dist/styles/lib/components/ButtonIcon/ButtonIcon.css.mjs +1 -1
- package/dist/styles/lib/components/Column/Column.css.mjs +3 -3
- package/dist/styles/lib/components/ContentBlock/ContentBlock.css.mjs +1 -1
- package/dist/styles/lib/components/Divider/Divider.css.mjs +7 -7
- package/dist/styles/lib/components/Dropdown/Dropdown.css.mjs +2 -2
- package/dist/styles/lib/components/Hidden/Hidden.css.mjs +1 -1
- package/dist/styles/lib/components/HiddenVisually/HiddenVisually.css.mjs +1 -1
- package/dist/styles/lib/components/List/List.css.mjs +4 -4
- package/dist/styles/lib/components/Loader/Loader.css.mjs +7 -7
- package/dist/styles/lib/components/MenuItem/useMenuItem.css.mjs +1 -1
- package/dist/styles/lib/components/MenuRenderer/MenuRenderer.css.mjs +5 -5
- package/dist/styles/lib/components/MonthPicker/MonthPicker.css.mjs +1 -1
- package/dist/styles/lib/components/OverflowMenu/OverflowMenu.css.mjs +1 -1
- package/dist/styles/lib/components/Pagination/Pagination.css.mjs +6 -6
- package/dist/styles/lib/components/Rating/Rating.css.mjs +6 -6
- package/dist/styles/lib/components/Stepper/Stepper.css.mjs +21 -21
- package/dist/styles/lib/components/Tabs/Tabs.css.mjs +17 -17
- package/dist/styles/lib/components/Tag/Tag.css.mjs +1 -1
- package/dist/styles/lib/components/TextDropdown/TextDropdown.css.mjs +4 -4
- package/dist/styles/lib/components/TextLink/TextLink.css.mjs +8 -8
- package/dist/styles/lib/components/Textarea/Highlight/Highlight.css.mjs +1 -1
- package/dist/styles/lib/components/Textarea/Textarea.css.mjs +3 -3
- package/dist/styles/lib/components/Tiles/Tiles.css.mjs +5 -5
- package/dist/styles/lib/components/Toggle/Toggle.css.mjs +20 -20
- package/dist/styles/lib/components/TooltipRenderer/TooltipRenderer.css.cjs +1 -5
- package/dist/styles/lib/components/TooltipRenderer/TooltipRenderer.css.mjs +7 -11
- package/dist/styles/lib/components/icons/IconArrow/IconArrow.css.mjs +4 -4
- package/dist/styles/lib/components/icons/IconChevron/IconChevron.css.mjs +4 -4
- package/dist/styles/lib/components/icons/IconThumb/IconThumb.css.mjs +2 -2
- package/dist/styles/lib/components/private/AvoidWidowIcon/AvoidWidowIcon.css.mjs +1 -1
- package/dist/styles/lib/components/private/Field/Field.css.mjs +8 -8
- package/dist/styles/lib/components/private/InlineField/InlineField.css.mjs +17 -17
- package/dist/styles/lib/components/private/Keyline/Keyline.css.cjs +4 -0
- package/dist/styles/lib/components/private/Keyline/Keyline.css.mjs +11 -7
- package/dist/styles/lib/components/private/Modal/Modal.css.mjs +16 -16
- package/dist/styles/lib/components/private/Modal/ModalExternalGutter.mjs +1 -1
- package/dist/styles/lib/components/private/Placeholder/Placeholder.css.mjs +6 -6
- package/dist/styles/lib/components/private/Truncate/Truncate.css.mjs +1 -1
- package/dist/styles/lib/components/private/hideFocusRings/hideFocusRings.css.mjs +2 -2
- package/dist/styles/lib/components/private/hideFocusRings/hideFocusRingsDataAttribute.mjs +1 -1
- package/dist/styles/lib/components/private/touchable/debugTouchable.mjs +1 -1
- package/dist/styles/lib/components/private/touchable/hitArea.mjs +1 -1
- package/dist/styles/lib/components/private/touchable/virtualTouchable.css.mjs +4 -4
- package/dist/styles/lib/components/private/touchable/virtualTouchableRules.mjs +2 -2
- package/dist/styles/lib/components/useToast/Toast.css.mjs +1 -1
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +6 -6
- package/dist/styles/lib/css/atoms/atoms.mjs +3 -3
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +8 -8
- package/dist/styles/lib/css/breakpoints.mjs +2 -2
- package/dist/styles/lib/css/colorModeStyle.mjs +2 -2
- package/dist/styles/lib/css/lineHeightContainer.css.mjs +3 -3
- package/dist/styles/lib/css/negativeMargin/negativeMargin.css.cjs +4 -9
- package/dist/styles/lib/css/negativeMargin/negativeMargin.css.mjs +3 -8
- package/dist/styles/lib/css/reset/reset.css.mjs +3 -3
- package/dist/styles/lib/css/responsiveStyle.cjs +2 -2
- package/dist/styles/lib/css/responsiveStyle.mjs +3 -3
- package/dist/styles/lib/css/textAlignedToIcon.css.mjs +3 -3
- package/dist/styles/lib/css/typography.css.cjs +1 -16
- package/dist/styles/lib/css/typography.css.mjs +5 -20
- package/dist/styles/lib/hooks/useIcon/icon.css.mjs +8 -8
- package/dist/styles/lib/themes/apac/apacTheme.css.mjs +3 -3
- package/dist/styles/lib/themes/apac/tokens.mjs +2 -2
- package/dist/styles/lib/themes/docs/docsTheme.css.mjs +3 -3
- package/dist/styles/lib/themes/docs/tokens.cjs +8 -8
- package/dist/styles/lib/themes/docs/tokens.mjs +8 -10
- package/dist/styles/lib/themes/makeBraidTheme.mjs +4 -4
- package/dist/styles/lib/themes/makeVanillaTheme.cjs +23 -10
- package/dist/styles/lib/themes/makeVanillaTheme.mjs +23 -10
- package/dist/styles/lib/themes/seekBusiness/seekBusinessTheme.css.mjs +3 -3
- package/dist/styles/lib/themes/seekBusiness/tokens.mjs +2 -2
- package/dist/styles/lib/themes/vars.css.mjs +3 -3
- package/dist/styles/lib/themes/wireframe/tokens.cjs +25 -29
- package/dist/styles/lib/themes/wireframe/tokens.mjs +25 -31
- package/dist/styles/lib/themes/wireframe/wireframeTheme.css.mjs +3 -3
- package/dist/styles/lib/utils/index.mjs +6 -6
- package/dist/test.d.ts +1 -890
- package/dist/test.mjs +2 -2
- package/dist/themes/apac.d.ts +1 -137
- package/dist/themes/apac.mjs +2 -2
- package/dist/themes/docs.d.ts +1 -137
- package/dist/themes/docs.mjs +2 -2
- package/dist/themes/seekBusiness.d.ts +1 -137
- package/dist/themes/seekBusiness.mjs +2 -2
- package/dist/themes/wireframe.d.ts +1 -137
- package/dist/themes/wireframe.mjs +2 -2
- package/package.json +4 -3
- package/playroom/FrameComponent/index.d.ts +2 -0
- package/playroom/FrameComponent/package.json +1 -1
- package/playroom/components/index.d.ts +1 -0
- package/playroom/components/package.json +1 -1
- package/playroom/scope/index.d.ts +2 -0
- package/playroom/scope/package.json +1 -1
- package/playroom/snippets/index.d.ts +2 -0
- package/playroom/snippets/package.json +1 -1
- package/reset/index.d.ts +1 -0
- package/reset/package.json +1 -1
- package/test/index.d.ts +1 -0
- package/test/package.json +1 -1
- package/themes/apac/index.d.ts +2 -0
- package/themes/apac/package.json +1 -1
- package/themes/docs/index.d.ts +2 -0
- package/themes/docs/package.json +1 -1
- package/themes/seekBusiness/index.d.ts +2 -0
- package/themes/seekBusiness/package.json +1 -1
- package/themes/wireframe/index.d.ts +2 -0
- package/themes/wireframe/package.json +1 -1
- package/dist/styles/lib/components/Badge/Badge.css.cjs +0 -27
- package/dist/styles/lib/components/Badge/Badge.css.mjs +0 -28
package/dist/Toggle.chunk.mjs
CHANGED
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useThemeName, useResponsiveValue, Stack, Box, buildDataAttributes, Divider, useIcon, virtualTouchable, Columns, Column, Inline, Text, Overlay, ActionsContext, useBackground, iconContainerSize, IconClear, Keyline, IconPositive, IconCritical, TextContext, HeadingContext, textStyles, FieldOverlay, ButtonIcon, Bleed, useColoredBoxClasses, BackgroundProvider, ButtonContainer, useButtonStyles, ButtonOverlays, ButtonText, resolveResponsiveRangeProps, optimizeResponsiveArray, Typography, BraidPortal, TextLinkButton, AvoidWidowIcon, useDefaultTextProps, flattenChildren, DefaultTextPropsProvider, iconSize, Hidden, useSpace, negativeMargin, resolveResponsiveProp, useBackgroundLightness } from "./ToastContext.chunk.mjs";
|
|
2
|
+
import { useBraidTheme, useLinkComponent } from "./side-effects/lib/components/BraidProvider/BraidProvider.mjs";
|
|
3
3
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
4
4
|
import assert from "assert";
|
|
5
5
|
import { createContext, useMemo, useState, useContext, cloneElement, useEffect, Fragment, forwardRef, useCallback, useRef, useReducer, Children, createRef } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
6
|
+
import { normalizeResponsiveValue, mapResponsiveValue } from "./styles/lib/css/atoms/sprinkles.css.mjs";
|
|
7
|
+
import { root, rotate, flip, mirror } from "./styles/lib/components/icons/IconArrow/IconArrow.css.mjs";
|
|
8
|
+
import { root as root$2, down } from "./styles/lib/components/icons/IconThumb/IconThumb.css.mjs";
|
|
9
|
+
import { button, focusRing } from "./styles/lib/components/Accordion/AccordionItem.css.mjs";
|
|
10
|
+
import { hideFocusRingsClassName } from "./styles/lib/components/private/hideFocusRings/hideFocusRings.css.mjs";
|
|
11
|
+
import { textAlignedToIcon } from "./styles/lib/css/textAlignedToIcon.css.mjs";
|
|
12
|
+
import { closeButton, closeButtonFocus, closeButtonHover } from "./styles/lib/components/Alert/Alert.css.mjs";
|
|
13
13
|
import dedent from "dedent";
|
|
14
14
|
import parseHighlights from "autosuggest-highlight/parse/index.js";
|
|
15
|
-
import {
|
|
15
|
+
import { root as root$3 } from "./styles/lib/components/HiddenVisually/HiddenVisually.css.mjs";
|
|
16
16
|
import { createPortal } from "react-dom";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { atoms } from "./styles/lib/css/atoms/atoms.mjs";
|
|
18
|
+
import { fontWeight, tone, touchableText, fontFamily, headingWeight, heading } from "./styles/lib/css/typography.css.mjs";
|
|
19
19
|
import { RemoveScroll } from "react-remove-scroll";
|
|
20
|
-
import {
|
|
20
|
+
import { backdrop, backdropVisible, menu, groupHeading } from "./styles/lib/components/Autosuggest/Autosuggest.css.mjs";
|
|
21
21
|
import matchHighlights from "autosuggest-highlight/match/index.js";
|
|
22
|
-
import { l as lineHeightContainer } from "./styles/lib/css/lineHeightContainer.css.mjs";
|
|
23
|
-
import { c as constants, b as bleedY } from "./styles/lib/components/Badge/Badge.css.mjs";
|
|
24
22
|
import clsx from "clsx";
|
|
25
23
|
import FocusLock from "react-focus-lock";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
24
|
+
import { externalGutter } from "./styles/lib/components/private/Modal/ModalExternalGutter.mjs";
|
|
25
|
+
import { headingRoot, headingFocus, pointerEventsAll, maxSize, closeIconOffset, resetStackingContext, backdrop as backdrop$1, horiztontalTransition, modalContainer, entrance, exit, fixedStackingContext } from "./styles/lib/components/private/Modal/Modal.css.mjs";
|
|
26
|
+
import { lineHeightContainer } from "./styles/lib/css/lineHeightContainer.css.mjs";
|
|
27
|
+
import { currentColor, size, minCharacterWidth, trimGutter } from "./styles/lib/components/List/List.css.mjs";
|
|
28
|
+
import { rootSize, delay, size as size$1, currentColor as currentColor$1, circle } from "./styles/lib/components/Loader/Loader.css.mjs";
|
|
29
|
+
import { menuItem } from "./styles/lib/components/MenuItem/useMenuItem.css.mjs";
|
|
30
|
+
import { backdrop as backdrop$2, menuIsClosed, width, placementBottom } from "./styles/lib/components/MenuRenderer/MenuRenderer.css.mjs";
|
|
31
|
+
import { triggerOffset } from "./styles/lib/components/OverflowMenu/OverflowMenu.css.mjs";
|
|
33
32
|
import { isMobile } from "is-mobile";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
33
|
+
import { field as field$1 } from "./styles/lib/components/Dropdown/Dropdown.css.mjs";
|
|
34
|
+
import { nativeInput } from "./styles/lib/components/MonthPicker/MonthPicker.css.mjs";
|
|
35
|
+
import { hover, background, current, lightModeCurrentKeyline, darkModeCurrentKeyline } from "./styles/lib/components/Pagination/Pagination.css.mjs";
|
|
36
|
+
import { realField, realFieldPosition, isMixed, fakeField, fakeFieldSize, selected, focusOverlay as focusOverlay$1, hoverOverlay as hoverOverlay$1, checkboxIndicator, radioIndicator, root as root$4, labelOffset, badgeOffset, children } from "./styles/lib/components/private/InlineField/InlineField.css.mjs";
|
|
37
|
+
import { starSpacing, textSpacing, lightModeStarColor, darkModeStarColor } from "./styles/lib/components/Rating/Rating.css.mjs";
|
|
38
|
+
import { step, tone as tone$1, progressTrack, progressTrackCentered, progressLine, progressUnfilled, indicatorContainer, focusOverlay as focusOverlay$2, indicator, highlight, complete, active, inner, tick, stretch, stretchLastAboveTablet } from "./styles/lib/components/Stepper/Stepper.css.mjs";
|
|
39
|
+
import { tab, cropToIconX, hoveredTab, tabFocusRing, scroll as scroll$1, nowrap, mask, marginAuto, divider, tabUnderline, tabUnderlineActiveDarkMode, underlineLeft, underlineWidth, tabPanel, tabPanelFocusRing } from "./styles/lib/components/Tabs/Tabs.css.mjs";
|
|
41
40
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
41
|
+
import { clearGutter } from "./styles/lib/components/Tag/Tag.css.mjs";
|
|
42
|
+
import { root as root$5 } from "./styles/lib/components/Textarea/Highlight/Highlight.css.mjs";
|
|
43
|
+
import { highlights, field as field$2 } from "./styles/lib/components/Textarea/Textarea.css.mjs";
|
|
44
|
+
import { select, focusOverlay as focusOverlay$3 } from "./styles/lib/components/TextDropdown/TextDropdown.css.mjs";
|
|
45
|
+
import { root as root$1, up, left, right } from "./styles/lib/components/icons/IconChevron/IconChevron.css.mjs";
|
|
46
|
+
import { secondaryIconSpace, field, placeholderColor, iconSpace, verticalDivider, focusOverlay, hoverOverlay } from "./styles/lib/components/private/Field/Field.css.mjs";
|
|
47
|
+
import { columnsWide, columnsDesktop, columnsTablet, columnsMobile } from "./styles/lib/components/Tiles/Tiles.css.mjs";
|
|
48
|
+
import { root as root$6, realField as realField$1, realFieldPosition as realFieldPosition$1, fieldSize, slideContainer, slideContainerSize, slideTrack, slideTrackMask, slideTrackBgLightMode, slideTrackBgDarkMode, slideTrackSelected, slider, icon as icon$1, focusOverlay as focusOverlay$4, hoverOverlay as hoverOverlay$2, label } from "./styles/lib/components/Toggle/Toggle.css.mjs";
|
|
50
49
|
const ThemeNameConsumer = ({ children: children2 }) => children2(useThemeName());
|
|
51
50
|
const useColor = () => useBraidTheme().color;
|
|
52
51
|
const useBreakpoint = () => {
|
|
@@ -2549,7 +2548,7 @@ const Field = ({
|
|
|
2549
2548
|
}
|
|
2550
2549
|
),
|
|
2551
2550
|
/* @__PURE__ */ jsx(FieldOverlay, { variant: "focus", className: focusOverlay }),
|
|
2552
|
-
/* @__PURE__ */ jsx(FieldOverlay, { variant: "
|
|
2551
|
+
/* @__PURE__ */ jsx(FieldOverlay, { variant: "formAccent", className: hoverOverlay })
|
|
2553
2552
|
] });
|
|
2554
2553
|
const fieldPadding = "small";
|
|
2555
2554
|
return /* @__PURE__ */ jsxs(Stack, { space: "xsmall", children: [
|
|
@@ -3026,7 +3025,6 @@ function GroupHeading({ children: children2 }) {
|
|
|
3026
3025
|
Box,
|
|
3027
3026
|
{
|
|
3028
3027
|
paddingX: "small",
|
|
3029
|
-
borderRadius: "standard",
|
|
3030
3028
|
className: [
|
|
3031
3029
|
groupHeading,
|
|
3032
3030
|
touchableText.xsmall,
|
|
@@ -3590,11 +3588,12 @@ const lightModeBackgroundForTone = {
|
|
|
3590
3588
|
neutral: "neutralLight",
|
|
3591
3589
|
caution: "cautionLight"
|
|
3592
3590
|
};
|
|
3591
|
+
const verticalPadding = "xxsmall";
|
|
3593
3592
|
const Badge = forwardRef(
|
|
3594
3593
|
({
|
|
3595
3594
|
tone: tone2 = "info",
|
|
3596
3595
|
weight = "regular",
|
|
3597
|
-
bleedY
|
|
3596
|
+
bleedY = false,
|
|
3598
3597
|
title,
|
|
3599
3598
|
children: children2,
|
|
3600
3599
|
id,
|
|
@@ -3613,16 +3612,12 @@ const Badge = forwardRef(
|
|
|
3613
3612
|
),
|
|
3614
3613
|
"Badge may only contain strings or numbers"
|
|
3615
3614
|
);
|
|
3616
|
-
|
|
3615
|
+
const content = /* @__PURE__ */ jsx(
|
|
3617
3616
|
Box,
|
|
3618
3617
|
{
|
|
3619
3618
|
component: "span",
|
|
3620
3619
|
display: "flex",
|
|
3621
3620
|
cursor: "default",
|
|
3622
|
-
className: [
|
|
3623
|
-
lineHeightContainer[constants.textSize],
|
|
3624
|
-
bleedY$1 ? bleedY : null
|
|
3625
|
-
],
|
|
3626
3621
|
...buildDataAttributes({ data, validateRestProps: restProps }),
|
|
3627
3622
|
children: /* @__PURE__ */ jsx(
|
|
3628
3623
|
Box,
|
|
@@ -3634,23 +3629,16 @@ const Badge = forwardRef(
|
|
|
3634
3629
|
"aria-describedby": ariaDescribedBy,
|
|
3635
3630
|
title: title ?? (!ariaDescribedBy ? children2 : void 0),
|
|
3636
3631
|
background: weight === "strong" ? tone2 : lightModeBackgroundForTone[tone2],
|
|
3632
|
+
paddingY: verticalPadding,
|
|
3637
3633
|
paddingX: "xsmall",
|
|
3638
|
-
borderRadius: "
|
|
3634
|
+
borderRadius: "standard",
|
|
3639
3635
|
overflow: "hidden",
|
|
3640
|
-
children: /* @__PURE__ */ jsx(
|
|
3641
|
-
Text,
|
|
3642
|
-
{
|
|
3643
|
-
size: constants.textSize,
|
|
3644
|
-
weight: "medium",
|
|
3645
|
-
truncate: true,
|
|
3646
|
-
baseline: false,
|
|
3647
|
-
children: children2
|
|
3648
|
-
}
|
|
3649
|
-
)
|
|
3636
|
+
children: /* @__PURE__ */ jsx(Text, { size: "xsmall", weight: "medium", truncate: true, children: children2 })
|
|
3650
3637
|
}
|
|
3651
3638
|
)
|
|
3652
3639
|
}
|
|
3653
3640
|
);
|
|
3641
|
+
return bleedY ? /* @__PURE__ */ jsx(Bleed, { component: "span", vertical: verticalPadding, children: content }) : content;
|
|
3654
3642
|
}
|
|
3655
3643
|
);
|
|
3656
3644
|
Badge.displayName = "Badge";
|
|
@@ -3693,7 +3681,7 @@ const ButtonLink = forwardRef(
|
|
|
3693
3681
|
size: size2,
|
|
3694
3682
|
tone: tone2,
|
|
3695
3683
|
variant,
|
|
3696
|
-
bleedY
|
|
3684
|
+
bleedY,
|
|
3697
3685
|
bleed,
|
|
3698
3686
|
icon: icon2,
|
|
3699
3687
|
iconPosition,
|
|
@@ -3703,7 +3691,7 @@ const ButtonLink = forwardRef(
|
|
|
3703
3691
|
}, ref) => {
|
|
3704
3692
|
const LinkComponent = useLinkComponent(ref);
|
|
3705
3693
|
if (process.env.NODE_ENV !== "production") {
|
|
3706
|
-
if (typeof
|
|
3694
|
+
if (typeof bleedY !== "undefined") {
|
|
3707
3695
|
console.warn(
|
|
3708
3696
|
dedent`
|
|
3709
3697
|
The "bleedY" prop has been deprecated and will be removed in a future version. Use "bleed" instead.
|
|
@@ -3729,7 +3717,7 @@ const ButtonLink = forwardRef(
|
|
|
3729
3717
|
variant,
|
|
3730
3718
|
tone: tone2,
|
|
3731
3719
|
size: size2,
|
|
3732
|
-
bleed: bleed ||
|
|
3720
|
+
bleed: bleed || bleedY,
|
|
3733
3721
|
loading
|
|
3734
3722
|
}),
|
|
3735
3723
|
children: [
|
|
@@ -3761,7 +3749,7 @@ const validCardComponents = [
|
|
|
3761
3749
|
"main",
|
|
3762
3750
|
"section"
|
|
3763
3751
|
];
|
|
3764
|
-
const borderRadius$2 = "
|
|
3752
|
+
const borderRadius$2 = "large";
|
|
3765
3753
|
const Card = ({
|
|
3766
3754
|
children: children2,
|
|
3767
3755
|
component = "div",
|
|
@@ -3889,6 +3877,7 @@ const StyledInput = forwardRef(
|
|
|
3889
3877
|
const accentBackground = disabled ? "neutralLight" : "formAccent";
|
|
3890
3878
|
const isMixed$1 = isCheckbox && checked === "mixed";
|
|
3891
3879
|
const fieldBackground = disabled ? { lightMode: "neutralSoft", darkMode: "neutral" } : { lightMode: "surface" };
|
|
3880
|
+
const defaultBorder = checked ? "formAccent" : "default";
|
|
3892
3881
|
useEffect(() => {
|
|
3893
3882
|
if (ref && typeof ref === "object" && ref.current && isCheckbox) {
|
|
3894
3883
|
ref.current.indeterminate = isMixed$1;
|
|
@@ -3945,7 +3934,7 @@ const StyledInput = forwardRef(
|
|
|
3945
3934
|
/* @__PURE__ */ jsx(
|
|
3946
3935
|
FieldOverlay,
|
|
3947
3936
|
{
|
|
3948
|
-
variant: disabled ? "disabled" :
|
|
3937
|
+
variant: disabled ? "disabled" : defaultBorder,
|
|
3949
3938
|
borderRadius: fieldBorderRadius,
|
|
3950
3939
|
visible: tone2 !== "critical" || disabled
|
|
3951
3940
|
}
|
|
@@ -3979,7 +3968,7 @@ const StyledInput = forwardRef(
|
|
|
3979
3968
|
/* @__PURE__ */ jsx(
|
|
3980
3969
|
FieldOverlay,
|
|
3981
3970
|
{
|
|
3982
|
-
variant: "
|
|
3971
|
+
variant: "formAccent",
|
|
3983
3972
|
borderRadius: fieldBorderRadius,
|
|
3984
3973
|
className: hoverOverlay$1,
|
|
3985
3974
|
children: /* @__PURE__ */ jsx(Indicator, { type, hover: true, checked: true })
|
|
@@ -4220,7 +4209,7 @@ const Heading = ({
|
|
|
4220
4209
|
) });
|
|
4221
4210
|
const modalPadding = ["gutter", "large"];
|
|
4222
4211
|
const ModalContentHeader = forwardRef(
|
|
4223
|
-
({ title, headingLevel, description, descriptionId, center }, ref) => /* @__PURE__ */ jsxs(Stack, { space: "
|
|
4212
|
+
({ title, headingLevel, description, descriptionId, center }, ref) => /* @__PURE__ */ jsxs(Stack, { space: "small", children: [
|
|
4224
4213
|
/* @__PURE__ */ jsx(Heading, { level: headingLevel, align: center ? "center" : void 0, children: /* @__PURE__ */ jsxs(
|
|
4225
4214
|
Box,
|
|
4226
4215
|
{
|
|
@@ -5208,6 +5197,7 @@ function Menu({
|
|
|
5208
5197
|
transition: "fast",
|
|
5209
5198
|
right: align === "right" ? 0 : void 0,
|
|
5210
5199
|
opacity: !open ? 0 : void 0,
|
|
5200
|
+
overflow: "hidden",
|
|
5211
5201
|
className: [
|
|
5212
5202
|
!open && menuIsClosed,
|
|
5213
5203
|
width$1 !== "content" && width[width$1],
|
|
@@ -5656,7 +5646,7 @@ const getYears = (min, max, ascending) => [...new Array(max - min + 1)].map((_v,
|
|
|
5656
5646
|
const yearStr = String(ascending ? i + min : max - i);
|
|
5657
5647
|
return /* @__PURE__ */ jsx("option", { value: yearStr, children: yearStr }, yearStr);
|
|
5658
5648
|
});
|
|
5659
|
-
const currYear = new Date().getFullYear();
|
|
5649
|
+
const currYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5660
5650
|
const renderNativeInput = isMobile({ tablet: true });
|
|
5661
5651
|
const customValueToString = ({ month, year }) => month && year ? `${year}-${month < 10 ? "0" : ""}${month}` : void 0;
|
|
5662
5652
|
const stringToCustomValue = (value) => {
|
|
@@ -5840,7 +5830,7 @@ const paginate = ({
|
|
|
5840
5830
|
}
|
|
5841
5831
|
return Array.from(Array(pageCount).keys()).map((p) => p + minPage);
|
|
5842
5832
|
};
|
|
5843
|
-
const borderRadius = "
|
|
5833
|
+
const borderRadius = "standard";
|
|
5844
5834
|
const PageNav = ({
|
|
5845
5835
|
label: label2,
|
|
5846
5836
|
direction
|
|
@@ -7514,7 +7504,7 @@ const Highlight = ({ children: children2 }) => /* @__PURE__ */ jsx(
|
|
|
7514
7504
|
Box,
|
|
7515
7505
|
{
|
|
7516
7506
|
component: "mark",
|
|
7517
|
-
borderRadius: "
|
|
7507
|
+
borderRadius: "small",
|
|
7518
7508
|
background: { lightMode: "criticalLight", darkMode: "critical" },
|
|
7519
7509
|
className: root$5,
|
|
7520
7510
|
children: children2
|
|
@@ -7997,7 +7987,7 @@ const Toggle = forwardRef(
|
|
|
7997
7987
|
{
|
|
7998
7988
|
position: "absolute",
|
|
7999
7989
|
background: "surface",
|
|
8000
|
-
boxShadow: "borderField",
|
|
7990
|
+
boxShadow: on ? "borderFormAccent" : "borderField",
|
|
8001
7991
|
transition: "fast",
|
|
8002
7992
|
display: "flex",
|
|
8003
7993
|
alignItems: "center",
|
|
@@ -8017,9 +8007,9 @@ const Toggle = forwardRef(
|
|
|
8017
8007
|
/* @__PURE__ */ jsx(
|
|
8018
8008
|
FieldOverlay,
|
|
8019
8009
|
{
|
|
8020
|
-
variant: "
|
|
8010
|
+
variant: "formAccent",
|
|
8021
8011
|
borderRadius: "full",
|
|
8022
|
-
className: hoverOverlay$2
|
|
8012
|
+
className: !on ? hoverOverlay$2 : void 0
|
|
8023
8013
|
}
|
|
8024
8014
|
)
|
|
8025
8015
|
]
|
|
@@ -8048,144 +8038,144 @@ const Toggle = forwardRef(
|
|
|
8048
8038
|
}
|
|
8049
8039
|
);
|
|
8050
8040
|
export {
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8041
|
+
Accordion,
|
|
8042
|
+
AccordionItem,
|
|
8043
|
+
Actions,
|
|
8044
|
+
Alert,
|
|
8045
|
+
AllowCloseContext,
|
|
8046
|
+
Autosuggest,
|
|
8047
|
+
Badge,
|
|
8048
|
+
BoxRenderer,
|
|
8049
|
+
ButtonLink,
|
|
8050
|
+
Card,
|
|
8051
|
+
Checkbox,
|
|
8052
|
+
CheckboxStandalone,
|
|
8053
|
+
Dialog,
|
|
8054
|
+
Disclosure,
|
|
8055
|
+
Drawer,
|
|
8056
|
+
Dropdown,
|
|
8057
|
+
FieldLabel,
|
|
8058
|
+
FieldMessage,
|
|
8059
|
+
Heading,
|
|
8060
|
+
HiddenVisually,
|
|
8061
|
+
IconAdd,
|
|
8062
|
+
IconArrow,
|
|
8063
|
+
IconBookmark,
|
|
8064
|
+
IconCaution,
|
|
8065
|
+
IconChevron,
|
|
8066
|
+
IconCompany,
|
|
8067
|
+
IconCompose,
|
|
8068
|
+
IconCopy,
|
|
8069
|
+
IconCreditCard,
|
|
8070
|
+
IconDate,
|
|
8071
|
+
IconDelete,
|
|
8072
|
+
IconDesktop,
|
|
8073
|
+
IconDocument,
|
|
8074
|
+
IconDocumentBroken,
|
|
8075
|
+
IconDownload,
|
|
8076
|
+
IconEdit,
|
|
8077
|
+
IconEducation,
|
|
8078
|
+
IconFilter,
|
|
8079
|
+
IconFlag,
|
|
8080
|
+
IconGrid,
|
|
8081
|
+
IconHeart,
|
|
8082
|
+
IconHelp,
|
|
8083
|
+
IconHistory,
|
|
8084
|
+
IconHome,
|
|
8085
|
+
IconImage,
|
|
8086
|
+
IconInfo,
|
|
8087
|
+
IconInvoice,
|
|
8088
|
+
IconLanguage,
|
|
8089
|
+
IconLink,
|
|
8090
|
+
IconLinkBroken,
|
|
8091
|
+
IconList,
|
|
8092
|
+
IconLocation,
|
|
8093
|
+
IconMail,
|
|
8094
|
+
IconMinus,
|
|
8095
|
+
IconMobile,
|
|
8096
|
+
IconMoney,
|
|
8097
|
+
IconNewWindow,
|
|
8098
|
+
IconNote,
|
|
8099
|
+
IconNotification,
|
|
8100
|
+
IconOverflow,
|
|
8101
|
+
IconPeople,
|
|
8102
|
+
IconPersonAdd,
|
|
8103
|
+
IconPersonVerified,
|
|
8104
|
+
IconPhone,
|
|
8105
|
+
IconPlatformAndroid,
|
|
8106
|
+
IconPlatformApple,
|
|
8107
|
+
IconPrint,
|
|
8108
|
+
IconProfile,
|
|
8109
|
+
IconPromote,
|
|
8110
|
+
IconRecommended,
|
|
8111
|
+
IconRefresh,
|
|
8112
|
+
IconResume,
|
|
8113
|
+
IconSearch,
|
|
8114
|
+
IconSecurity,
|
|
8115
|
+
IconSend,
|
|
8116
|
+
IconSent,
|
|
8117
|
+
IconSettings,
|
|
8118
|
+
IconShare,
|
|
8119
|
+
IconSocialFacebook,
|
|
8120
|
+
IconSocialGitHub,
|
|
8121
|
+
IconSocialInstagram,
|
|
8122
|
+
IconSocialLinkedIn,
|
|
8123
|
+
IconSocialMedium,
|
|
8124
|
+
IconSocialTwitter,
|
|
8125
|
+
IconSocialYouTube,
|
|
8126
|
+
IconStar,
|
|
8127
|
+
IconStatistics,
|
|
8128
|
+
IconSubCategory,
|
|
8129
|
+
IconTag,
|
|
8130
|
+
IconThumb,
|
|
8131
|
+
IconTick,
|
|
8132
|
+
IconTime,
|
|
8133
|
+
IconTip,
|
|
8134
|
+
IconUpload,
|
|
8135
|
+
IconVideo,
|
|
8136
|
+
IconVisibility,
|
|
8137
|
+
IconWorkExperience,
|
|
8138
|
+
IconZoomIn,
|
|
8139
|
+
IconZoomOut,
|
|
8140
|
+
Link,
|
|
8141
|
+
List,
|
|
8142
|
+
Loader,
|
|
8143
|
+
MenuItem,
|
|
8144
|
+
MenuItemCheckbox,
|
|
8145
|
+
MenuItemDivider,
|
|
8146
|
+
MenuItemLink,
|
|
8147
|
+
MenuRenderer,
|
|
8148
|
+
MonthPicker,
|
|
8149
|
+
Notice,
|
|
8150
|
+
OverflowMenu,
|
|
8151
|
+
Pagination,
|
|
8152
|
+
PasswordField,
|
|
8153
|
+
Radio,
|
|
8154
|
+
RadioGroup,
|
|
8155
|
+
RadioItem,
|
|
8156
|
+
Rating,
|
|
8157
|
+
Secondary,
|
|
8158
|
+
Step,
|
|
8159
|
+
Stepper,
|
|
8160
|
+
Strong,
|
|
8161
|
+
Tab,
|
|
8162
|
+
TabPanel,
|
|
8163
|
+
TabPanels,
|
|
8164
|
+
Tabs,
|
|
8165
|
+
TabsProvider,
|
|
8166
|
+
Tag,
|
|
8167
|
+
TextDropdown,
|
|
8168
|
+
TextField,
|
|
8169
|
+
Textarea,
|
|
8170
|
+
ThemeNameConsumer,
|
|
8171
|
+
Tiles,
|
|
8172
|
+
Toggle,
|
|
8173
|
+
defaultPageLimit,
|
|
8174
|
+
filterSuggestions,
|
|
8175
|
+
parseSimpleToComplexOption,
|
|
8176
|
+
tones$1 as tones,
|
|
8177
|
+
useBreakpoint,
|
|
8178
|
+
useColor,
|
|
8179
|
+
validCardComponents,
|
|
8180
|
+
validSpaceValues
|
|
8191
8181
|
};
|