braid-design-system 32.5.0 → 32.6.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 +34 -0
- package/dist/ToastContext.chunk.cjs +4 -0
- package/dist/ToastContext.chunk.mjs +4 -0
- package/dist/Toggle.chunk.cjs +60 -0
- package/dist/Toggle.chunk.mjs +61 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -1
- package/dist/playroom/components.cjs +14 -5
- package/dist/playroom/components.d.ts +1 -1
- package/dist/playroom/components.mjs +15 -6
- package/dist/playroom/snippets.cjs +60 -52
- package/dist/playroom/snippets.mjs +60 -52
- package/dist/reset.d.ts +18 -4
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 32.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **PageBlock:** Add new component ([#1307](https://github.com/seek-oss/braid-design-system/pull/1307))
|
|
8
|
+
|
|
9
|
+
Provides a top-level page container, constraining the content width (using `ContentBlock`) while establishing common screen gutters on smaller devices.
|
|
10
|
+
|
|
11
|
+
**EXAMPLE USAGE:**
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
<PageBlock width="large">...</PageBlock>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- **Button, TextLinkButton:** Add `aria-label` support ([#1304](https://github.com/seek-oss/braid-design-system/pull/1304))
|
|
18
|
+
|
|
19
|
+
Provide support for `aria-label`, enabling additional context to be given to assistive technologies where context is typically visual.
|
|
20
|
+
|
|
21
|
+
**EXAMPLE USAGE:**
|
|
22
|
+
|
|
23
|
+
```jsx
|
|
24
|
+
<Button aria-label="Save job">Save</Button>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
- **IconMessage:** Add new component ([#1303](https://github.com/seek-oss/braid-design-system/pull/1303))
|
|
28
|
+
|
|
29
|
+
Add new `IconMessage` component.
|
|
30
|
+
|
|
31
|
+
**EXAMPLE USAGE:**
|
|
32
|
+
|
|
33
|
+
```jsx
|
|
34
|
+
<IconMessage />
|
|
35
|
+
```
|
|
36
|
+
|
|
3
37
|
## 32.5.0
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
|
@@ -1612,6 +1612,7 @@ const Button = React.forwardRef(
|
|
|
1612
1612
|
"aria-controls": ariaControls,
|
|
1613
1613
|
"aria-expanded": ariaExpanded,
|
|
1614
1614
|
"aria-describedby": ariaDescribedBy,
|
|
1615
|
+
"aria-label": ariaLabel,
|
|
1615
1616
|
data,
|
|
1616
1617
|
...restProps
|
|
1617
1618
|
}, ref) => {
|
|
@@ -1645,6 +1646,7 @@ const Button = React.forwardRef(
|
|
|
1645
1646
|
"aria-controls": ariaControls,
|
|
1646
1647
|
"aria-expanded": ariaExpanded,
|
|
1647
1648
|
"aria-describedby": ariaDescribedBy,
|
|
1649
|
+
"aria-label": ariaLabel,
|
|
1648
1650
|
onClick,
|
|
1649
1651
|
disabled: loading,
|
|
1650
1652
|
...buildDataAttributes({ data, validateRestProps: restProps }),
|
|
@@ -2082,6 +2084,7 @@ const TextLinkButton = ({
|
|
|
2082
2084
|
"aria-controls": ariaControls,
|
|
2083
2085
|
"aria-expanded": ariaExpanded,
|
|
2084
2086
|
"aria-describedby": ariaDescribedBy,
|
|
2087
|
+
"aria-label": ariaLabel,
|
|
2085
2088
|
tabIndex,
|
|
2086
2089
|
icon,
|
|
2087
2090
|
iconPosition,
|
|
@@ -2115,6 +2118,7 @@ const TextLinkButton = ({
|
|
|
2115
2118
|
"aria-controls": ariaControls,
|
|
2116
2119
|
"aria-expanded": ariaExpanded,
|
|
2117
2120
|
"aria-describedby": ariaDescribedBy,
|
|
2121
|
+
"aria-label": ariaLabel,
|
|
2118
2122
|
id,
|
|
2119
2123
|
className: classes,
|
|
2120
2124
|
...buildDataAttributes({ data, validateRestProps: restProps }),
|
|
@@ -1605,6 +1605,7 @@ const Button = forwardRef(
|
|
|
1605
1605
|
"aria-controls": ariaControls,
|
|
1606
1606
|
"aria-expanded": ariaExpanded,
|
|
1607
1607
|
"aria-describedby": ariaDescribedBy,
|
|
1608
|
+
"aria-label": ariaLabel,
|
|
1608
1609
|
data,
|
|
1609
1610
|
...restProps
|
|
1610
1611
|
}, ref) => {
|
|
@@ -1638,6 +1639,7 @@ const Button = forwardRef(
|
|
|
1638
1639
|
"aria-controls": ariaControls,
|
|
1639
1640
|
"aria-expanded": ariaExpanded,
|
|
1640
1641
|
"aria-describedby": ariaDescribedBy,
|
|
1642
|
+
"aria-label": ariaLabel,
|
|
1641
1643
|
onClick,
|
|
1642
1644
|
disabled: loading,
|
|
1643
1645
|
...buildDataAttributes({ data, validateRestProps: restProps }),
|
|
@@ -2075,6 +2077,7 @@ const TextLinkButton = ({
|
|
|
2075
2077
|
"aria-controls": ariaControls,
|
|
2076
2078
|
"aria-expanded": ariaExpanded,
|
|
2077
2079
|
"aria-describedby": ariaDescribedBy,
|
|
2080
|
+
"aria-label": ariaLabel,
|
|
2078
2081
|
tabIndex,
|
|
2079
2082
|
icon,
|
|
2080
2083
|
iconPosition,
|
|
@@ -2108,6 +2111,7 @@ const TextLinkButton = ({
|
|
|
2108
2111
|
"aria-controls": ariaControls,
|
|
2109
2112
|
"aria-expanded": ariaExpanded,
|
|
2110
2113
|
"aria-describedby": ariaDescribedBy,
|
|
2114
|
+
"aria-label": ariaLabel,
|
|
2111
2115
|
id,
|
|
2112
2116
|
className: classes,
|
|
2113
2117
|
...buildDataAttributes({ data, validateRestProps: restProps }),
|
package/dist/Toggle.chunk.cjs
CHANGED
|
@@ -961,6 +961,37 @@ const IconMail = (props) => {
|
|
|
961
961
|
const iconProps = ToastContext.useIcon(props);
|
|
962
962
|
return /* @__PURE__ */ jsxRuntime.jsx(ToastContext.Box, { component: IconMailSvg, ...iconProps });
|
|
963
963
|
};
|
|
964
|
+
const IconMessageSvg = ({ title, titleId, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
965
|
+
"svg",
|
|
966
|
+
{
|
|
967
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
968
|
+
width: 16,
|
|
969
|
+
height: 16,
|
|
970
|
+
viewBox: "0 0 24 24",
|
|
971
|
+
focusable: "false",
|
|
972
|
+
fill: "currentColor",
|
|
973
|
+
"aria-labelledby": titleId,
|
|
974
|
+
...props,
|
|
975
|
+
children: [
|
|
976
|
+
title ? /* @__PURE__ */ jsxRuntime.jsx("title", { id: titleId, children: title }) : null,
|
|
977
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
978
|
+
"path",
|
|
979
|
+
{
|
|
980
|
+
d: "M12 3a9 9 0 0 0-7.605 13.815L3 21l4.909-.982A9 9 0 1 0 12 3Z",
|
|
981
|
+
fill: "none",
|
|
982
|
+
stroke: "currentColor",
|
|
983
|
+
strokeLinecap: "round",
|
|
984
|
+
strokeLinejoin: "round",
|
|
985
|
+
strokeWidth: 2
|
|
986
|
+
}
|
|
987
|
+
)
|
|
988
|
+
]
|
|
989
|
+
}
|
|
990
|
+
);
|
|
991
|
+
const IconMessage = (props) => {
|
|
992
|
+
const iconProps = ToastContext.useIcon(props);
|
|
993
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToastContext.Box, { component: IconMessageSvg, ...iconProps });
|
|
994
|
+
};
|
|
964
995
|
const IconMinusSvg = ({ title, titleId, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
965
996
|
"svg",
|
|
966
997
|
{
|
|
@@ -5876,6 +5907,33 @@ const Notice = ({
|
|
|
5876
5907
|
}
|
|
5877
5908
|
);
|
|
5878
5909
|
};
|
|
5910
|
+
const validPageBlockComponents = [
|
|
5911
|
+
"div",
|
|
5912
|
+
"article",
|
|
5913
|
+
"aside",
|
|
5914
|
+
"main",
|
|
5915
|
+
"section",
|
|
5916
|
+
"nav"
|
|
5917
|
+
];
|
|
5918
|
+
const gutters = { mobile: "xsmall", tablet: "gutter" };
|
|
5919
|
+
const PageBlock = ({
|
|
5920
|
+
children,
|
|
5921
|
+
width = "large",
|
|
5922
|
+
component: componentProp,
|
|
5923
|
+
data,
|
|
5924
|
+
...restProps
|
|
5925
|
+
}) => {
|
|
5926
|
+
const component = componentProp && validPageBlockComponents.includes(componentProp) ? componentProp : "div";
|
|
5927
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5928
|
+
ToastContext.Box,
|
|
5929
|
+
{
|
|
5930
|
+
component,
|
|
5931
|
+
paddingX: gutters,
|
|
5932
|
+
...ToastContext.buildDataAttributes({ data, validateRestProps: restProps }),
|
|
5933
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToastContext.ContentBlock, { width, children })
|
|
5934
|
+
}
|
|
5935
|
+
);
|
|
5936
|
+
};
|
|
5879
5937
|
const paginate = ({
|
|
5880
5938
|
page,
|
|
5881
5939
|
total,
|
|
@@ -8163,6 +8221,7 @@ exports.IconLinkBroken = IconLinkBroken;
|
|
|
8163
8221
|
exports.IconList = IconList;
|
|
8164
8222
|
exports.IconLocation = IconLocation;
|
|
8165
8223
|
exports.IconMail = IconMail;
|
|
8224
|
+
exports.IconMessage = IconMessage;
|
|
8166
8225
|
exports.IconMinus = IconMinus;
|
|
8167
8226
|
exports.IconMobile = IconMobile;
|
|
8168
8227
|
exports.IconMoney = IconMoney;
|
|
@@ -8220,6 +8279,7 @@ exports.MenuRenderer = MenuRenderer;
|
|
|
8220
8279
|
exports.MonthPicker = MonthPicker;
|
|
8221
8280
|
exports.Notice = Notice;
|
|
8222
8281
|
exports.OverflowMenu = OverflowMenu;
|
|
8282
|
+
exports.PageBlock = PageBlock;
|
|
8223
8283
|
exports.Pagination = Pagination;
|
|
8224
8284
|
exports.PasswordField = PasswordField;
|
|
8225
8285
|
exports.Radio = Radio;
|
package/dist/Toggle.chunk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useThemeName, useResponsiveValue, Stack, Box, buildDataAttributes, Divider, useIcon, virtualTouchable, Columns, Column, Inline, Text, Overlay, ActionsContext, useBackground, iconContainerSize, IconClear, IconPositive, IconCritical, TextContext, HeadingContext, useBackgroundLightness, textStyles, FieldOverlay, ButtonIcon, Bleed, useColoredBoxClasses, BackgroundProvider, ButtonContainer, useButtonStyles, ButtonOverlays, ButtonText, resolveResponsiveRangeProps, optimizeResponsiveArray, Typography, BraidPortal, TextLinkButton, AvoidWidowIcon, useDefaultTextProps, flattenChildren, DefaultTextPropsProvider, iconSize, Hidden, useSpace, negativeMargin, resolveResponsiveProp } from "./ToastContext.chunk.mjs";
|
|
1
|
+
import { useThemeName, useResponsiveValue, Stack, Box, buildDataAttributes, Divider, useIcon, virtualTouchable, Columns, Column, Inline, Text, Overlay, ActionsContext, useBackground, iconContainerSize, IconClear, IconPositive, IconCritical, TextContext, HeadingContext, useBackgroundLightness, textStyles, FieldOverlay, ButtonIcon, Bleed, useColoredBoxClasses, BackgroundProvider, ButtonContainer, useButtonStyles, ButtonOverlays, ButtonText, resolveResponsiveRangeProps, optimizeResponsiveArray, Typography, BraidPortal, TextLinkButton, AvoidWidowIcon, useDefaultTextProps, flattenChildren, DefaultTextPropsProvider, iconSize, ContentBlock, Hidden, useSpace, negativeMargin, resolveResponsiveProp } from "./ToastContext.chunk.mjs";
|
|
2
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";
|
|
@@ -953,6 +953,37 @@ const IconMail = (props) => {
|
|
|
953
953
|
const iconProps = useIcon(props);
|
|
954
954
|
return /* @__PURE__ */ jsx(Box, { component: IconMailSvg, ...iconProps });
|
|
955
955
|
};
|
|
956
|
+
const IconMessageSvg = ({ title, titleId, ...props }) => /* @__PURE__ */ jsxs(
|
|
957
|
+
"svg",
|
|
958
|
+
{
|
|
959
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
960
|
+
width: 16,
|
|
961
|
+
height: 16,
|
|
962
|
+
viewBox: "0 0 24 24",
|
|
963
|
+
focusable: "false",
|
|
964
|
+
fill: "currentColor",
|
|
965
|
+
"aria-labelledby": titleId,
|
|
966
|
+
...props,
|
|
967
|
+
children: [
|
|
968
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
969
|
+
/* @__PURE__ */ jsx(
|
|
970
|
+
"path",
|
|
971
|
+
{
|
|
972
|
+
d: "M12 3a9 9 0 0 0-7.605 13.815L3 21l4.909-.982A9 9 0 1 0 12 3Z",
|
|
973
|
+
fill: "none",
|
|
974
|
+
stroke: "currentColor",
|
|
975
|
+
strokeLinecap: "round",
|
|
976
|
+
strokeLinejoin: "round",
|
|
977
|
+
strokeWidth: 2
|
|
978
|
+
}
|
|
979
|
+
)
|
|
980
|
+
]
|
|
981
|
+
}
|
|
982
|
+
);
|
|
983
|
+
const IconMessage = (props) => {
|
|
984
|
+
const iconProps = useIcon(props);
|
|
985
|
+
return /* @__PURE__ */ jsx(Box, { component: IconMessageSvg, ...iconProps });
|
|
986
|
+
};
|
|
956
987
|
const IconMinusSvg = ({ title, titleId, ...props }) => /* @__PURE__ */ jsxs(
|
|
957
988
|
"svg",
|
|
958
989
|
{
|
|
@@ -5868,6 +5899,33 @@ const Notice = ({
|
|
|
5868
5899
|
}
|
|
5869
5900
|
);
|
|
5870
5901
|
};
|
|
5902
|
+
const validPageBlockComponents = [
|
|
5903
|
+
"div",
|
|
5904
|
+
"article",
|
|
5905
|
+
"aside",
|
|
5906
|
+
"main",
|
|
5907
|
+
"section",
|
|
5908
|
+
"nav"
|
|
5909
|
+
];
|
|
5910
|
+
const gutters = { mobile: "xsmall", tablet: "gutter" };
|
|
5911
|
+
const PageBlock = ({
|
|
5912
|
+
children: children2,
|
|
5913
|
+
width: width2 = "large",
|
|
5914
|
+
component: componentProp,
|
|
5915
|
+
data,
|
|
5916
|
+
...restProps
|
|
5917
|
+
}) => {
|
|
5918
|
+
const component = componentProp && validPageBlockComponents.includes(componentProp) ? componentProp : "div";
|
|
5919
|
+
return /* @__PURE__ */ jsx(
|
|
5920
|
+
Box,
|
|
5921
|
+
{
|
|
5922
|
+
component,
|
|
5923
|
+
paddingX: gutters,
|
|
5924
|
+
...buildDataAttributes({ data, validateRestProps: restProps }),
|
|
5925
|
+
children: /* @__PURE__ */ jsx(ContentBlock, { width: width2, children: children2 })
|
|
5926
|
+
}
|
|
5927
|
+
);
|
|
5928
|
+
};
|
|
5871
5929
|
const paginate = ({
|
|
5872
5930
|
page,
|
|
5873
5931
|
total,
|
|
@@ -8156,6 +8214,7 @@ export {
|
|
|
8156
8214
|
IconList,
|
|
8157
8215
|
IconLocation,
|
|
8158
8216
|
IconMail,
|
|
8217
|
+
IconMessage,
|
|
8159
8218
|
IconMinus,
|
|
8160
8219
|
IconMobile,
|
|
8161
8220
|
IconMoney,
|
|
@@ -8213,6 +8272,7 @@ export {
|
|
|
8213
8272
|
MonthPicker,
|
|
8214
8273
|
Notice,
|
|
8215
8274
|
OverflowMenu,
|
|
8275
|
+
PageBlock,
|
|
8216
8276
|
Pagination,
|
|
8217
8277
|
PasswordField,
|
|
8218
8278
|
Radio,
|
package/dist/index.cjs
CHANGED
|
@@ -82,6 +82,7 @@ exports.IconLinkBroken = Toggle.IconLinkBroken;
|
|
|
82
82
|
exports.IconList = Toggle.IconList;
|
|
83
83
|
exports.IconLocation = Toggle.IconLocation;
|
|
84
84
|
exports.IconMail = Toggle.IconMail;
|
|
85
|
+
exports.IconMessage = Toggle.IconMessage;
|
|
85
86
|
exports.IconMinus = Toggle.IconMinus;
|
|
86
87
|
exports.IconMobile = Toggle.IconMobile;
|
|
87
88
|
exports.IconMoney = Toggle.IconMoney;
|
|
@@ -139,6 +140,7 @@ exports.MenuRenderer = Toggle.MenuRenderer;
|
|
|
139
140
|
exports.MonthPicker = Toggle.MonthPicker;
|
|
140
141
|
exports.Notice = Toggle.Notice;
|
|
141
142
|
exports.OverflowMenu = Toggle.OverflowMenu;
|
|
143
|
+
exports.PageBlock = Toggle.PageBlock;
|
|
142
144
|
exports.Pagination = Toggle.Pagination;
|
|
143
145
|
exports.PasswordField = Toggle.PasswordField;
|
|
144
146
|
exports.Radio = Toggle.Radio;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Accordion, AccordionItem, Actions, Alert, Autosuggest, Badge, Bleed, PublicBox as Box, BoxRenderer, BraidPortal, BraidProvider, Button, ButtonIcon, ButtonLink, Card, Checkbox, CheckboxStandalone, Column, Columns, ContentBlock, Dialog, Disclosure, Divider, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, Hidden, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconRenderer, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Pagination, PasswordField, Radio, RadioGroup, RadioItem, Rating, Secondary, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useBreakpoint, useColor, useResponsiveValue, useSpace, useThemeName, useToast } from './reset.js';
|
|
1
|
+
export { Accordion, AccordionItem, Actions, Alert, Autosuggest, Badge, Bleed, PublicBox as Box, BoxRenderer, BraidPortal, BraidProvider, Button, ButtonIcon, ButtonLink, Card, Checkbox, CheckboxStandalone, Column, Columns, ContentBlock, Dialog, Disclosure, Divider, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, Hidden, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconRenderer, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, PageBlock, Pagination, PasswordField, Radio, RadioGroup, RadioItem, Rating, Secondary, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useBreakpoint, useColor, useResponsiveValue, useSpace, useThemeName, useToast } from './reset.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BraidProvider, makeLinkComponent } from "./side-effects/lib/components/BraidProvider/BraidProvider.mjs";
|
|
2
2
|
import { Bleed, PublicBox, BraidPortal, Button, ButtonIcon, Column, Columns, ContentBlock, Divider, Hidden, IconClear, IconCritical, IconPositive, IconRenderer, Inline, Stack, Text, TextLink, TextLinkButton, ToastProvider, TooltipRenderer, useResponsiveValue, useSpace, useThemeName, useToast } from "./ToastContext.chunk.mjs";
|
|
3
|
-
import { Accordion, AccordionItem, Actions, Alert, Autosuggest, Badge, BoxRenderer, ButtonLink, Card, Checkbox, CheckboxStandalone, Dialog, Disclosure, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconCompany, IconCompose, IconCopy, IconCreditCard, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Link, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Pagination, PasswordField, Radio, RadioGroup, RadioItem, Rating, Secondary, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Tabs, TabsProvider, Tag, TextDropdown, TextField, Textarea, ThemeNameConsumer, Tiles, Toggle, filterSuggestions, useBreakpoint, useColor } from "./Toggle.chunk.mjs";
|
|
3
|
+
import { Accordion, AccordionItem, Actions, Alert, Autosuggest, Badge, BoxRenderer, ButtonLink, Card, Checkbox, CheckboxStandalone, Dialog, Disclosure, Drawer, Dropdown, FieldLabel, FieldMessage, Heading, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconCompany, IconCompose, IconCopy, IconCreditCard, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Link, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, PageBlock, Pagination, PasswordField, Radio, RadioGroup, RadioItem, Rating, Secondary, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Tabs, TabsProvider, Tag, TextDropdown, TextField, Textarea, ThemeNameConsumer, Tiles, Toggle, filterSuggestions, useBreakpoint, useColor } from "./Toggle.chunk.mjs";
|
|
4
4
|
export {
|
|
5
5
|
Accordion,
|
|
6
6
|
AccordionItem,
|
|
@@ -67,6 +67,7 @@ export {
|
|
|
67
67
|
IconList,
|
|
68
68
|
IconLocation,
|
|
69
69
|
IconMail,
|
|
70
|
+
IconMessage,
|
|
70
71
|
IconMinus,
|
|
71
72
|
IconMobile,
|
|
72
73
|
IconMoney,
|
|
@@ -127,6 +128,7 @@ export {
|
|
|
127
128
|
MonthPicker,
|
|
128
129
|
Notice,
|
|
129
130
|
OverflowMenu,
|
|
131
|
+
PageBlock,
|
|
130
132
|
Pagination,
|
|
131
133
|
PasswordField,
|
|
132
134
|
Radio,
|
|
@@ -14,6 +14,7 @@ const React = require("react");
|
|
|
14
14
|
const uuid = require("uuid");
|
|
15
15
|
const ToastContext = require("../ToastContext.chunk.cjs");
|
|
16
16
|
const styles_lib_css_atoms_atoms_cjs = require("../styles/lib/css/atoms/atoms.cjs");
|
|
17
|
+
const styles_lib_css_breakpoints_cjs = require("../styles/lib/css/breakpoints.cjs");
|
|
17
18
|
const styles_lib_css_atoms_atomicProperties_cjs = require("../styles/lib/css/atoms/atomicProperties.cjs");
|
|
18
19
|
const styles_lib_components_private_Placeholder_Placeholder_css_cjs = require("../styles/lib/components/private/Placeholder/Placeholder.css.cjs");
|
|
19
20
|
const sideEffects_lib_components_BraidProvider_BraidProvider_cjs = require("../side-effects/lib/components/BraidProvider/BraidProvider.cjs");
|
|
@@ -261,7 +262,13 @@ const CheckboxStandalone = ({
|
|
|
261
262
|
);
|
|
262
263
|
};
|
|
263
264
|
const validSpaceValues = Object.keys(styles_lib_css_atoms_atomicProperties_cjs.space);
|
|
264
|
-
const cleanSpaceValue = (space) =>
|
|
265
|
+
const cleanSpaceValue = (space) => {
|
|
266
|
+
const validResponsiveObject = typeof space === "object" && Object.keys(space).some(
|
|
267
|
+
(bp) => styles_lib_css_breakpoints_cjs.breakpointNames.includes(bp) && validSpaceValues.includes(space[bp])
|
|
268
|
+
);
|
|
269
|
+
const validSpace = typeof space === "string" && validSpaceValues.includes(space);
|
|
270
|
+
return validSpace || validResponsiveObject ? space : void 0;
|
|
271
|
+
};
|
|
265
272
|
const Columns = ({
|
|
266
273
|
space,
|
|
267
274
|
align,
|
|
@@ -271,7 +278,7 @@ const Columns = ({
|
|
|
271
278
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
272
279
|
ToastContext.Columns,
|
|
273
280
|
{
|
|
274
|
-
space: cleanSpaceValue(space),
|
|
281
|
+
space: cleanSpaceValue(space) || "none",
|
|
275
282
|
align: typeof align !== "boolean" ? align : void 0,
|
|
276
283
|
alignY: typeof alignY !== "boolean" ? alignY : void 0,
|
|
277
284
|
component: component && ToastContext.validColumnsComponents.indexOf(component) > -1 ? component : void 0,
|
|
@@ -431,7 +438,7 @@ const Inline = ({
|
|
|
431
438
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
432
439
|
ToastContext.Inline,
|
|
433
440
|
{
|
|
434
|
-
space: cleanSpaceValue(space),
|
|
441
|
+
space: cleanSpaceValue(space) || "none",
|
|
435
442
|
align: typeof align !== "boolean" ? align : void 0,
|
|
436
443
|
alignY: typeof alignY !== "boolean" ? alignY : void 0,
|
|
437
444
|
component: component && ToastContext.validInlineComponents.indexOf(component) > -1 ? component : void 0,
|
|
@@ -647,7 +654,7 @@ const Stack = ({
|
|
|
647
654
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
648
655
|
ToastContext.Stack,
|
|
649
656
|
{
|
|
650
|
-
space: cleanSpaceValue(space),
|
|
657
|
+
space: cleanSpaceValue(space) || "none",
|
|
651
658
|
align: typeof align !== "boolean" ? align : void 0,
|
|
652
659
|
component: component && ToastContext.validStackComponents.indexOf(component) > -1 ? component : void 0,
|
|
653
660
|
...restProps
|
|
@@ -784,7 +791,7 @@ const TextField = ({
|
|
|
784
791
|
const Tiles = ({ space, columns, ...restProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
785
792
|
Toggle$1.Tiles,
|
|
786
793
|
{
|
|
787
|
-
space: cleanSpaceValue(space),
|
|
794
|
+
space: cleanSpaceValue(space) || "none",
|
|
788
795
|
columns: typeof columns === "boolean" || !columns ? 1 : columns,
|
|
789
796
|
...restProps
|
|
790
797
|
}
|
|
@@ -929,6 +936,7 @@ exports.IconLinkBroken = Toggle$1.IconLinkBroken;
|
|
|
929
936
|
exports.IconList = Toggle$1.IconList;
|
|
930
937
|
exports.IconLocation = Toggle$1.IconLocation;
|
|
931
938
|
exports.IconMail = Toggle$1.IconMail;
|
|
939
|
+
exports.IconMessage = Toggle$1.IconMessage;
|
|
932
940
|
exports.IconMinus = Toggle$1.IconMinus;
|
|
933
941
|
exports.IconMobile = Toggle$1.IconMobile;
|
|
934
942
|
exports.IconMoney = Toggle$1.IconMoney;
|
|
@@ -978,6 +986,7 @@ exports.IconZoomOut = Toggle$1.IconZoomOut;
|
|
|
978
986
|
exports.Loader = Toggle$1.Loader;
|
|
979
987
|
exports.MenuItemDivider = Toggle$1.MenuItemDivider;
|
|
980
988
|
exports.MenuRenderer = Toggle$1.MenuRenderer;
|
|
989
|
+
exports.PageBlock = Toggle$1.PageBlock;
|
|
981
990
|
exports.RadioItem = Toggle$1.RadioItem;
|
|
982
991
|
exports.Secondary = Toggle$1.Secondary;
|
|
983
992
|
exports.Step = Toggle$1.Step;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Accordion$1 as Accordion, AccordionItem$1 as AccordionItem, Actions, Alert$1 as Alert, Autosuggest$1 as Autosuggest, Badge$1 as Badge, Bleed$1 as Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button$1 as Button, ButtonIcon$1 as ButtonIcon, ButtonLink$1 as ButtonLink, Card$1 as Card, Checkbox$1 as Checkbox, CheckboxStandalone$1 as CheckboxStandalone, Column, Columns$1 as Columns, ContentBlock, Dialog$1 as Dialog, Disclosure$1 as Disclosure, Divider, Drawer$1 as Drawer, Dropdown$1 as Dropdown, FieldLabel$1 as FieldLabel, FieldMessage$1 as FieldMessage, Heading$1 as Heading, Hidden, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconRenderer, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline$1 as Inline, Link$1 as Link, LinkComponent, List$1 as List, Loader, MenuItem$1 as MenuItem, MenuItemCheckbox$1 as MenuItemCheckbox, MenuItemDivider, MenuItemLink$1 as MenuItemLink, MenuRenderer, MonthPicker$1 as MonthPicker, Notice$1 as Notice, OverflowMenu$1 as OverflowMenu, Pagination$1 as Pagination, PasswordField$1 as PasswordField, Placeholder, Radio$1 as Radio, RadioGroup$1 as RadioGroup, RadioItem, Rating$1 as Rating, Secondary, Stack$1 as Stack, Step, Stepper, Strong, Tab$1 as Tab, TabPanel, TabPanels, Tabs$1 as Tabs, TabsProvider$1 as TabsProvider, Tag$1 as Tag, Text, TextDropdown$1 as TextDropdown, TextField$1 as TextField, TextLink, TextLinkButton, Textarea$1 as Textarea, ThemeNameConsumer, Tiles$1 as Tiles, ToastProvider, Toggle$1 as Toggle, TooltipRenderer$1 as TooltipRenderer, filterSuggestions, makeLinkComponent, useBreakpoint, useColor, useResponsiveValue, useSpace, useThemeName, useToast } from '../reset.js';
|
|
1
|
+
export { Accordion$1 as Accordion, AccordionItem$1 as AccordionItem, Actions, Alert$1 as Alert, Autosuggest$1 as Autosuggest, Badge$1 as Badge, Bleed$1 as Bleed, Box, BoxRenderer, BraidPortal, BraidProvider, Button$1 as Button, ButtonIcon$1 as ButtonIcon, ButtonLink$1 as ButtonLink, Card$1 as Card, Checkbox$1 as Checkbox, CheckboxStandalone$1 as CheckboxStandalone, Column, Columns$1 as Columns, ContentBlock, Dialog$1 as Dialog, Disclosure$1 as Disclosure, Divider, Drawer$1 as Drawer, Dropdown$1 as Dropdown, FieldLabel$1 as FieldLabel, FieldMessage$1 as FieldMessage, Heading$1 as Heading, Hidden, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconRenderer, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline$1 as Inline, Link$1 as Link, LinkComponent, List$1 as List, Loader, MenuItem$1 as MenuItem, MenuItemCheckbox$1 as MenuItemCheckbox, MenuItemDivider, MenuItemLink$1 as MenuItemLink, MenuRenderer, MonthPicker$1 as MonthPicker, Notice$1 as Notice, OverflowMenu$1 as OverflowMenu, PageBlock, Pagination$1 as Pagination, PasswordField$1 as PasswordField, Placeholder, Radio$1 as Radio, RadioGroup$1 as RadioGroup, RadioItem, Rating$1 as Rating, Secondary, Stack$1 as Stack, Step, Stepper, Strong, Tab$1 as Tab, TabPanel, TabPanels, Tabs$1 as Tabs, TabsProvider$1 as TabsProvider, Tag$1 as Tag, Text, TextDropdown$1 as TextDropdown, TextField$1 as TextField, TextLink, TextLinkButton, Textarea$1 as Textarea, ThemeNameConsumer, Tiles$1 as Tiles, ToastProvider, Toggle$1 as Toggle, TooltipRenderer$1 as TooltipRenderer, filterSuggestions, makeLinkComponent, useBreakpoint, useColor, useResponsiveValue, useSpace, useThemeName, useToast } from '../reset.js';
|
|
@@ -7,13 +7,14 @@ import "../styles/lib/themes/seekBusiness/seekBusinessTheme.css.mjs";
|
|
|
7
7
|
import { wireframe } from "../styles/lib/themes/wireframe/wireframeTheme.css.mjs";
|
|
8
8
|
import "../styles/lib/themes/docs/docsTheme.css.mjs";
|
|
9
9
|
import { Accordion as Accordion$1, validSpaceValues as validSpaceValues$1, AccordionItem as AccordionItem$1, Alert as Alert$1, Autosuggest as Autosuggest$1, Badge as Badge$1, ButtonLink as ButtonLink$1, Card as Card$1, validCardComponents, Checkbox as Checkbox$1, CheckboxStandalone as CheckboxStandalone$1, AllowCloseContext, Dialog as Dialog$1, Disclosure as Disclosure$1, Drawer as Drawer$1, Dropdown as Dropdown$1, FieldLabel as FieldLabel$1, FieldMessage as FieldMessage$1, tones, Heading as Heading$1, Link as Link$1, List as List$1, MonthPicker as MonthPicker$1, MenuItem as MenuItem$1, MenuItemLink as MenuItemLink$1, MenuItemCheckbox as MenuItemCheckbox$1, Notice as Notice$1, OverflowMenu as OverflowMenu$1, Pagination as Pagination$1, defaultPageLimit, PasswordField as PasswordField$1, Radio as Radio$1, RadioGroup as RadioGroup$1, Rating as Rating$1, TabsProvider as TabsProvider$1, Tabs as Tabs$1, Tab as Tab$1, Tag as Tag$1, Textarea as Textarea$1, TextDropdown as TextDropdown$1, parseSimpleToComplexOption, TextField as TextField$1, Tiles as Tiles$1, Toggle as Toggle$1 } from "../Toggle.chunk.mjs";
|
|
10
|
-
import { Actions, BoxRenderer, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconCompany, IconCompose, IconCopy, IconCreditCard, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Loader, MenuItemDivider, MenuRenderer, RadioItem, Secondary, Step, Stepper, Strong, TabPanel, TabPanels, ThemeNameConsumer, filterSuggestions, useBreakpoint, useColor } from "../Toggle.chunk.mjs";
|
|
10
|
+
import { Actions, BoxRenderer, HiddenVisually, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconCompany, IconCompose, IconCopy, IconCreditCard, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Loader, MenuItemDivider, MenuRenderer, PageBlock, RadioItem, Secondary, Step, Stepper, Strong, TabPanel, TabPanels, ThemeNameConsumer, filterSuggestions, useBreakpoint, useColor } from "../Toggle.chunk.mjs";
|
|
11
11
|
import { useFallbackState } from "../playroomState.chunk.mjs";
|
|
12
12
|
import { useRef, forwardRef, useState, useEffect } from "react";
|
|
13
13
|
import { v4 } from "uuid";
|
|
14
14
|
import { Bleed as Bleed$1, validBleedComponents, Box as Box$1, Button as Button$1, buttonVariants, ButtonIcon as ButtonIcon$1, buttonIconVariants, Columns as Columns$1, validColumnsComponents, Inline as Inline$1, validInlineComponents, IconClear, Stack as Stack$1, validStackComponents, TooltipRenderer as TooltipRenderer$1, useBackgroundLightness, PublicBox, Text } from "../ToastContext.chunk.mjs";
|
|
15
15
|
import { BraidPortal, Column, ContentBlock, Divider, Hidden, IconCritical, IconPositive, IconRenderer, TextLink, TextLinkButton, ToastProvider, useResponsiveValue, useSpace, useThemeName, useToast } from "../ToastContext.chunk.mjs";
|
|
16
16
|
import { atoms } from "../styles/lib/css/atoms/atoms.mjs";
|
|
17
|
+
import { breakpointNames } from "../styles/lib/css/breakpoints.mjs";
|
|
17
18
|
import { space } from "../styles/lib/css/atoms/atomicProperties.mjs";
|
|
18
19
|
import { lightTheme, darkTheme, box, label, line } from "../styles/lib/components/private/Placeholder/Placeholder.css.mjs";
|
|
19
20
|
import { BraidProvider, makeLinkComponent } from "../side-effects/lib/components/BraidProvider/BraidProvider.mjs";
|
|
@@ -259,7 +260,13 @@ const CheckboxStandalone = ({
|
|
|
259
260
|
);
|
|
260
261
|
};
|
|
261
262
|
const validSpaceValues = Object.keys(space);
|
|
262
|
-
const cleanSpaceValue = (space2) =>
|
|
263
|
+
const cleanSpaceValue = (space2) => {
|
|
264
|
+
const validResponsiveObject = typeof space2 === "object" && Object.keys(space2).some(
|
|
265
|
+
(bp) => breakpointNames.includes(bp) && validSpaceValues.includes(space2[bp])
|
|
266
|
+
);
|
|
267
|
+
const validSpace = typeof space2 === "string" && validSpaceValues.includes(space2);
|
|
268
|
+
return validSpace || validResponsiveObject ? space2 : void 0;
|
|
269
|
+
};
|
|
263
270
|
const Columns = ({
|
|
264
271
|
space: space2,
|
|
265
272
|
align,
|
|
@@ -269,7 +276,7 @@ const Columns = ({
|
|
|
269
276
|
}) => /* @__PURE__ */ jsx(
|
|
270
277
|
Columns$1,
|
|
271
278
|
{
|
|
272
|
-
space: cleanSpaceValue(space2),
|
|
279
|
+
space: cleanSpaceValue(space2) || "none",
|
|
273
280
|
align: typeof align !== "boolean" ? align : void 0,
|
|
274
281
|
alignY: typeof alignY !== "boolean" ? alignY : void 0,
|
|
275
282
|
component: component && validColumnsComponents.indexOf(component) > -1 ? component : void 0,
|
|
@@ -429,7 +436,7 @@ const Inline = ({
|
|
|
429
436
|
}) => /* @__PURE__ */ jsx(
|
|
430
437
|
Inline$1,
|
|
431
438
|
{
|
|
432
|
-
space: cleanSpaceValue(space2),
|
|
439
|
+
space: cleanSpaceValue(space2) || "none",
|
|
433
440
|
align: typeof align !== "boolean" ? align : void 0,
|
|
434
441
|
alignY: typeof alignY !== "boolean" ? alignY : void 0,
|
|
435
442
|
component: component && validInlineComponents.indexOf(component) > -1 ? component : void 0,
|
|
@@ -645,7 +652,7 @@ const Stack = ({
|
|
|
645
652
|
}) => /* @__PURE__ */ jsx(
|
|
646
653
|
Stack$1,
|
|
647
654
|
{
|
|
648
|
-
space: cleanSpaceValue(space2),
|
|
655
|
+
space: cleanSpaceValue(space2) || "none",
|
|
649
656
|
align: typeof align !== "boolean" ? align : void 0,
|
|
650
657
|
component: component && validStackComponents.indexOf(component) > -1 ? component : void 0,
|
|
651
658
|
...restProps
|
|
@@ -782,7 +789,7 @@ const TextField = ({
|
|
|
782
789
|
const Tiles = ({ space: space2, columns, ...restProps }) => /* @__PURE__ */ jsx(
|
|
783
790
|
Tiles$1,
|
|
784
791
|
{
|
|
785
|
-
space: cleanSpaceValue(space2),
|
|
792
|
+
space: cleanSpaceValue(space2) || "none",
|
|
786
793
|
columns: typeof columns === "boolean" || !columns ? 1 : columns,
|
|
787
794
|
...restProps
|
|
788
795
|
}
|
|
@@ -957,6 +964,7 @@ export {
|
|
|
957
964
|
IconList,
|
|
958
965
|
IconLocation,
|
|
959
966
|
IconMail,
|
|
967
|
+
IconMessage,
|
|
960
968
|
IconMinus,
|
|
961
969
|
IconMobile,
|
|
962
970
|
IconMoney,
|
|
@@ -1017,6 +1025,7 @@ export {
|
|
|
1017
1025
|
MonthPicker,
|
|
1018
1026
|
Notice,
|
|
1019
1027
|
OverflowMenu,
|
|
1028
|
+
PageBlock,
|
|
1020
1029
|
Pagination,
|
|
1021
1030
|
PasswordField,
|
|
1022
1031
|
Placeholder,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const snippets$
|
|
2
|
+
const snippets$J = [{
|
|
3
3
|
name: "Large",
|
|
4
4
|
code: '<Accordion>\n <AccordionItem label="Item 1">\n <Placeholder height={100} />\n </AccordionItem>\n <AccordionItem label="Item 2">\n <Placeholder height={100} />\n </AccordionItem>\n <AccordionItem label="Item 3">\n <Placeholder height={100} />\n </AccordionItem>\n </Accordion>'
|
|
5
5
|
}, {
|
|
@@ -21,7 +21,7 @@ const snippets$I = [{
|
|
|
21
21
|
name: "Standalone item with a badge",
|
|
22
22
|
code: '<AccordionItem label="Label" badge={<Badge tone="promote" weight="strong">\n Badge\n </Badge>}>\n <Placeholder height={100} />\n </AccordionItem>'
|
|
23
23
|
}];
|
|
24
|
-
const snippets$
|
|
24
|
+
const snippets$I = [{
|
|
25
25
|
name: "With multiple buttons",
|
|
26
26
|
code: '<Actions>\n <Button>Submit</Button>\n <Button variant="transparent">Cancel</Button>\n </Actions>'
|
|
27
27
|
}, {
|
|
@@ -34,7 +34,7 @@ const snippets$H = [{
|
|
|
34
34
|
name: "Small size",
|
|
35
35
|
code: '<Actions size="small">\n <Button>Button 1</Button>\n <Button>Button 2</Button>\n <Button variant="transparent">Button 3</Button>\n </Actions>'
|
|
36
36
|
}];
|
|
37
|
-
const snippets$
|
|
37
|
+
const snippets$H = [{
|
|
38
38
|
name: "Critical",
|
|
39
39
|
code: '<Alert tone="critical">\n <Text>Critical Alert</Text>\n </Alert>'
|
|
40
40
|
}, {
|
|
@@ -53,7 +53,7 @@ const snippets$G = [{
|
|
|
53
53
|
name: "Dismissible alert",
|
|
54
54
|
code: '<Alert onClose={() => {}} closeLabel="Close">\n <Text>Dismissible Alert</Text>\n </Alert>'
|
|
55
55
|
}];
|
|
56
|
-
const snippets$
|
|
56
|
+
const snippets$G = [{
|
|
57
57
|
name: "Standard",
|
|
58
58
|
code: `<Autosuggest id="fruit" label="Fruit" suggestions={[{
|
|
59
59
|
text: 'Apples'
|
|
@@ -128,7 +128,7 @@ const snippets$F = [{
|
|
|
128
128
|
text: 'Sydney'
|
|
129
129
|
}]} />`
|
|
130
130
|
}];
|
|
131
|
-
const snippets$
|
|
131
|
+
const snippets$F = [{
|
|
132
132
|
name: "Info",
|
|
133
133
|
code: '<Badge tone="info">Badge</Badge>'
|
|
134
134
|
}, {
|
|
@@ -168,7 +168,7 @@ const snippets$E = [{
|
|
|
168
168
|
name: "Multiple",
|
|
169
169
|
code: '<Inline space="small">\n <Badge tone="info">Badge</Badge>\n <Badge tone="positive">Badge</Badge>\n <Badge tone="promote">Badge</Badge>\n </Inline>'
|
|
170
170
|
}];
|
|
171
|
-
const snippets$
|
|
171
|
+
const snippets$E = [{
|
|
172
172
|
name: "On all sides",
|
|
173
173
|
code: '<Bleed space="gutter">\n <Placeholder height={80} />\n </Bleed>'
|
|
174
174
|
}, {
|
|
@@ -190,7 +190,7 @@ const snippets$D = [{
|
|
|
190
190
|
name: "To the right",
|
|
191
191
|
code: '<Bleed right="gutter">\n <Placeholder height={80} />\n </Bleed>'
|
|
192
192
|
}];
|
|
193
|
-
const snippets$
|
|
193
|
+
const snippets$D = [{
|
|
194
194
|
name: "Solid",
|
|
195
195
|
code: "<Button>Button</Button>"
|
|
196
196
|
}, {
|
|
@@ -251,7 +251,7 @@ const snippets$C = [{
|
|
|
251
251
|
name: "Small Transparent",
|
|
252
252
|
code: '<Button size="small" variant="transparent">\n Button\n </Button>'
|
|
253
253
|
}];
|
|
254
|
-
const snippets$
|
|
254
|
+
const snippets$C = [{
|
|
255
255
|
name: "Soft",
|
|
256
256
|
code: '<ButtonIcon variant="soft" icon={<IconBookmark />} label="Bookmark" id="buttonicon-soft" />'
|
|
257
257
|
}, {
|
|
@@ -264,7 +264,7 @@ const snippets$B = [{
|
|
|
264
264
|
name: "Secondary",
|
|
265
265
|
code: '<ButtonIcon tone="secondary" icon={<IconClear />} label="Close" id="buttonicon-secondary" />'
|
|
266
266
|
}];
|
|
267
|
-
const snippets$
|
|
267
|
+
const snippets$B = [{
|
|
268
268
|
name: "With Heading",
|
|
269
269
|
code: '<Card>\n <Stack space="gutter">\n <Heading level="3">Heading</Heading>\n <Text>Text</Text>\n </Stack>\n </Card>'
|
|
270
270
|
}, {
|
|
@@ -280,7 +280,7 @@ const snippets$A = [{
|
|
|
280
280
|
name: "With Overflow Menu",
|
|
281
281
|
code: '<Card>\n <Stack space="gutter">\n <Columns space="gutter">\n <Column>\n <Heading level="3">Heading</Heading>\n </Column>\n <Column width="content">\n <OverflowMenu label="Options">\n <MenuItem>Menu Item</MenuItem>\n </OverflowMenu>\n </Column>\n </Columns>\n <Text>Text</Text>\n </Stack>\n </Card>'
|
|
282
282
|
}];
|
|
283
|
-
const snippets$
|
|
283
|
+
const snippets$A = [{
|
|
284
284
|
name: "Standard",
|
|
285
285
|
code: '<Checkbox label="Label" />'
|
|
286
286
|
}, {
|
|
@@ -299,7 +299,7 @@ const snippets$z = [{
|
|
|
299
299
|
name: "With nested content",
|
|
300
300
|
code: '<Checkbox label="Label">\n <Placeholder height={100} />\n </Checkbox>'
|
|
301
301
|
}];
|
|
302
|
-
const snippets$
|
|
302
|
+
const snippets$z = [{
|
|
303
303
|
name: "2 Columns",
|
|
304
304
|
code: '<Columns space="gutter">\n <Column>\n <Placeholder height={60} label="Column" />\n </Column>\n <Column>\n <Placeholder height={60} label="Column" />\n </Column>\n </Columns>'
|
|
305
305
|
}, {
|
|
@@ -315,7 +315,7 @@ const snippets$y = [{
|
|
|
315
315
|
name: "Main Content With Sidebar",
|
|
316
316
|
code: '<Columns space="gutter" collapseBelow="tablet">\n <Column width="2/3">\n <Placeholder height={400} label="Main" />\n </Column>\n <Column>\n <Placeholder height={100} label="Sidebar" />\n </Column>\n </Columns>'
|
|
317
317
|
}];
|
|
318
|
-
const snippets$
|
|
318
|
+
const snippets$y = [{
|
|
319
319
|
name: "Standard",
|
|
320
320
|
code: "<ContentBlock>\n <Placeholder height={100} />\n </ContentBlock>"
|
|
321
321
|
}, {
|
|
@@ -328,7 +328,7 @@ const snippets$x = [{
|
|
|
328
328
|
name: "Large",
|
|
329
329
|
code: '<ContentBlock width="large">\n <Placeholder height={100} />\n </ContentBlock>'
|
|
330
330
|
}];
|
|
331
|
-
const snippets$
|
|
331
|
+
const snippets$x = [{
|
|
332
332
|
name: "Standard",
|
|
333
333
|
code: '<Dialog title="Dialog Heading" open={true}>\n <Placeholder width={250} height={100} />\n </Dialog>'
|
|
334
334
|
}, {
|
|
@@ -347,18 +347,18 @@ const snippets$w = [{
|
|
|
347
347
|
name: "Large",
|
|
348
348
|
code: '<Dialog title="Dialog Heading" width="large" open={true}>\n <Placeholder width="100%" height={100} />\n </Dialog>'
|
|
349
349
|
}];
|
|
350
|
-
const snippets$
|
|
350
|
+
const snippets$w = [{
|
|
351
351
|
name: "Standard",
|
|
352
352
|
code: '<Disclosure expandLabel="Show" collapseLabel="Hide">\n <Stack space="large">\n <Text>Content</Text>\n </Stack>\n </Disclosure>'
|
|
353
353
|
}];
|
|
354
|
-
const snippets$
|
|
354
|
+
const snippets$v = [{
|
|
355
355
|
name: "Regular",
|
|
356
356
|
code: "<Divider />"
|
|
357
357
|
}, {
|
|
358
358
|
name: "Strong",
|
|
359
359
|
code: '<Divider weight="strong" />'
|
|
360
360
|
}];
|
|
361
|
-
const snippets$
|
|
361
|
+
const snippets$u = [{
|
|
362
362
|
name: "Default",
|
|
363
363
|
code: '<Drawer title="Drawer Heading" open={true}>\n <Placeholder width="100%" height={100} />\n </Drawer>'
|
|
364
364
|
}, {
|
|
@@ -371,7 +371,7 @@ const snippets$t = [{
|
|
|
371
371
|
name: "Large",
|
|
372
372
|
code: '<Drawer title="Drawer Heading" width="large" open={true}>\n <Placeholder width="100%" height={100} />\n </Drawer>'
|
|
373
373
|
}];
|
|
374
|
-
const snippets$
|
|
374
|
+
const snippets$t = [{
|
|
375
375
|
name: "Standard",
|
|
376
376
|
code: '<Dropdown label="Label" placeholder="Please select">\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
377
377
|
}, {
|
|
@@ -393,7 +393,7 @@ const snippets$s = [{
|
|
|
393
393
|
name: "With a positive message",
|
|
394
394
|
code: '<Dropdown label="Label" placeholder="Please select" tone="positive" message="Positive message">\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
395
395
|
}];
|
|
396
|
-
const snippets$
|
|
396
|
+
const snippets$s = [{
|
|
397
397
|
name: "Standard",
|
|
398
398
|
code: '<FieldLabel label="Label" />'
|
|
399
399
|
}, {
|
|
@@ -403,7 +403,7 @@ const snippets$r = [{
|
|
|
403
403
|
name: "Standard with tertiary label",
|
|
404
404
|
code: '<FieldLabel label="Label" secondaryLabel="Optional" tertiaryLabel={<TextLink href="#">Help?</TextLink>} />'
|
|
405
405
|
}];
|
|
406
|
-
const snippets$
|
|
406
|
+
const snippets$r = [{
|
|
407
407
|
name: "Standard",
|
|
408
408
|
code: '<FieldMessage message="This is a message" />'
|
|
409
409
|
}, {
|
|
@@ -416,7 +416,7 @@ const snippets$q = [{
|
|
|
416
416
|
name: "Secondary message",
|
|
417
417
|
code: '<FieldMessage message="This is a message" secondaryMessage={<Text size="small" tone="secondary">\n Secondary\n </Text>} />'
|
|
418
418
|
}];
|
|
419
|
-
const snippets$
|
|
419
|
+
const snippets$q = [{
|
|
420
420
|
name: "Level 1",
|
|
421
421
|
code: '<Heading level="1">Heading</Heading>'
|
|
422
422
|
}, {
|
|
@@ -444,7 +444,7 @@ const snippets$p = [{
|
|
|
444
444
|
name: "Level 4 (Weak)",
|
|
445
445
|
code: '<Heading level="4" weight="weak">\n Heading\n </Heading>'
|
|
446
446
|
}];
|
|
447
|
-
const snippets$
|
|
447
|
+
const snippets$p = [{
|
|
448
448
|
name: "Small space",
|
|
449
449
|
code: '<Inline space="small">\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n </Inline>'
|
|
450
450
|
}, {
|
|
@@ -467,7 +467,7 @@ const snippets$o = [{
|
|
|
467
467
|
name: "Vertically centered",
|
|
468
468
|
code: '<Inline space="small" alignY="center">\n <Placeholder width={48} height={40} />\n <Placeholder width={48} height={100} />\n <Placeholder width={48} height={60} />\n </Inline>'
|
|
469
469
|
}];
|
|
470
|
-
const snippets$
|
|
470
|
+
const snippets$o = [{
|
|
471
471
|
name: "XSmall Space",
|
|
472
472
|
code: '<List space="xsmall">\n <Text>Text</Text>\n <Text>Text</Text>\n <Text>Text</Text>\n </List>'
|
|
473
473
|
}, {
|
|
@@ -492,11 +492,11 @@ const snippets$n = [{
|
|
|
492
492
|
name: "Icon",
|
|
493
493
|
code: '<List space="medium" type="icon" icon={<IconTick tone="positive" />}>\n <Text>Text</Text>\n <Text>Text</Text>\n <Text>Text</Text>\n </List>'
|
|
494
494
|
}];
|
|
495
|
-
const snippets$
|
|
495
|
+
const snippets$n = [{
|
|
496
496
|
name: "Standard",
|
|
497
497
|
code: "<Loader />"
|
|
498
498
|
}];
|
|
499
|
-
const snippets$
|
|
499
|
+
const snippets$m = [{
|
|
500
500
|
name: "Standard",
|
|
501
501
|
code: '<MonthPicker label="Month" />'
|
|
502
502
|
}, {
|
|
@@ -518,7 +518,7 @@ const snippets$l = [{
|
|
|
518
518
|
name: "With custom months and years",
|
|
519
519
|
code: `<MonthPicker label="Started" monthLabel="MM" yearLabel="YYYY" monthNames={['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']} />`
|
|
520
520
|
}];
|
|
521
|
-
const snippets$
|
|
521
|
+
const snippets$l = [{
|
|
522
522
|
name: "Critical",
|
|
523
523
|
code: '<Notice tone="critical">\n <Text>Critical Notice</Text>\n </Notice>'
|
|
524
524
|
}, {
|
|
@@ -531,10 +531,17 @@ const snippets$k = [{
|
|
|
531
531
|
name: "Promote",
|
|
532
532
|
code: '<Notice tone="promote">\n <Text>Promote Notice</Text>\n </Notice>'
|
|
533
533
|
}];
|
|
534
|
-
const snippets$
|
|
534
|
+
const snippets$k = [{
|
|
535
535
|
name: "Standard",
|
|
536
536
|
code: '<OverflowMenu label="Options">\n <MenuItem>Option</MenuItem>\n <MenuItem>Option</MenuItem>\n </OverflowMenu>'
|
|
537
537
|
}];
|
|
538
|
+
const snippets$j = [{
|
|
539
|
+
name: "Medium",
|
|
540
|
+
code: '<PageBlock width="medium">\n <Placeholder height={100} />\n </PageBlock>'
|
|
541
|
+
}, {
|
|
542
|
+
name: "Large",
|
|
543
|
+
code: '<PageBlock width="large">\n <Placeholder height={100} />\n </PageBlock>'
|
|
544
|
+
}];
|
|
538
545
|
const snippets$i = [{
|
|
539
546
|
name: "Standard",
|
|
540
547
|
code: "<Pagination />"
|
|
@@ -807,32 +814,33 @@ const snippets$1 = [{
|
|
|
807
814
|
code: '<TooltipRenderer tooltip={<Text>This is a tooltip!</Text>}>\n {({\n triggerProps\n }) => <Box {...triggerProps}>\n <Placeholder label="Tooltip trigger" height={100} />\n </Box>}\n </TooltipRenderer>'
|
|
808
815
|
}];
|
|
809
816
|
const snippets = Object.entries({
|
|
810
|
-
Accordion: snippets$
|
|
811
|
-
Actions: snippets$
|
|
812
|
-
Alert: snippets$
|
|
813
|
-
Autosuggest: snippets$
|
|
814
|
-
Badge: snippets$
|
|
815
|
-
Bleed: snippets$
|
|
816
|
-
Button: snippets$
|
|
817
|
-
ButtonIcon: snippets$
|
|
818
|
-
Card: snippets$
|
|
819
|
-
Checkbox: snippets$
|
|
820
|
-
Columns: snippets$
|
|
821
|
-
ContentBlock: snippets$
|
|
822
|
-
Dialog: snippets$
|
|
823
|
-
Disclosure: snippets$
|
|
824
|
-
Divider: snippets$
|
|
825
|
-
Drawer: snippets$
|
|
826
|
-
Dropdown: snippets$
|
|
827
|
-
FieldLabel: snippets$
|
|
828
|
-
FieldMessage: snippets$
|
|
829
|
-
Heading: snippets$
|
|
830
|
-
Inline: snippets$
|
|
831
|
-
List: snippets$
|
|
832
|
-
Loader: snippets$
|
|
833
|
-
MonthPicker: snippets$
|
|
834
|
-
Notice: snippets$
|
|
835
|
-
OverflowMenu: snippets$
|
|
817
|
+
Accordion: snippets$J,
|
|
818
|
+
Actions: snippets$I,
|
|
819
|
+
Alert: snippets$H,
|
|
820
|
+
Autosuggest: snippets$G,
|
|
821
|
+
Badge: snippets$F,
|
|
822
|
+
Bleed: snippets$E,
|
|
823
|
+
Button: snippets$D,
|
|
824
|
+
ButtonIcon: snippets$C,
|
|
825
|
+
Card: snippets$B,
|
|
826
|
+
Checkbox: snippets$A,
|
|
827
|
+
Columns: snippets$z,
|
|
828
|
+
ContentBlock: snippets$y,
|
|
829
|
+
Dialog: snippets$x,
|
|
830
|
+
Disclosure: snippets$w,
|
|
831
|
+
Divider: snippets$v,
|
|
832
|
+
Drawer: snippets$u,
|
|
833
|
+
Dropdown: snippets$t,
|
|
834
|
+
FieldLabel: snippets$s,
|
|
835
|
+
FieldMessage: snippets$r,
|
|
836
|
+
Heading: snippets$q,
|
|
837
|
+
Inline: snippets$p,
|
|
838
|
+
List: snippets$o,
|
|
839
|
+
Loader: snippets$n,
|
|
840
|
+
MonthPicker: snippets$m,
|
|
841
|
+
Notice: snippets$l,
|
|
842
|
+
OverflowMenu: snippets$k,
|
|
843
|
+
PageBlock: snippets$j,
|
|
836
844
|
Pagination: snippets$i,
|
|
837
845
|
PasswordField: snippets$h,
|
|
838
846
|
RadioGroup: snippets$g,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const snippets$
|
|
1
|
+
const snippets$J = [{
|
|
2
2
|
name: "Large",
|
|
3
3
|
code: '<Accordion>\n <AccordionItem label="Item 1">\n <Placeholder height={100} />\n </AccordionItem>\n <AccordionItem label="Item 2">\n <Placeholder height={100} />\n </AccordionItem>\n <AccordionItem label="Item 3">\n <Placeholder height={100} />\n </AccordionItem>\n </Accordion>'
|
|
4
4
|
}, {
|
|
@@ -20,7 +20,7 @@ const snippets$I = [{
|
|
|
20
20
|
name: "Standalone item with a badge",
|
|
21
21
|
code: '<AccordionItem label="Label" badge={<Badge tone="promote" weight="strong">\n Badge\n </Badge>}>\n <Placeholder height={100} />\n </AccordionItem>'
|
|
22
22
|
}];
|
|
23
|
-
const snippets$
|
|
23
|
+
const snippets$I = [{
|
|
24
24
|
name: "With multiple buttons",
|
|
25
25
|
code: '<Actions>\n <Button>Submit</Button>\n <Button variant="transparent">Cancel</Button>\n </Actions>'
|
|
26
26
|
}, {
|
|
@@ -33,7 +33,7 @@ const snippets$H = [{
|
|
|
33
33
|
name: "Small size",
|
|
34
34
|
code: '<Actions size="small">\n <Button>Button 1</Button>\n <Button>Button 2</Button>\n <Button variant="transparent">Button 3</Button>\n </Actions>'
|
|
35
35
|
}];
|
|
36
|
-
const snippets$
|
|
36
|
+
const snippets$H = [{
|
|
37
37
|
name: "Critical",
|
|
38
38
|
code: '<Alert tone="critical">\n <Text>Critical Alert</Text>\n </Alert>'
|
|
39
39
|
}, {
|
|
@@ -52,7 +52,7 @@ const snippets$G = [{
|
|
|
52
52
|
name: "Dismissible alert",
|
|
53
53
|
code: '<Alert onClose={() => {}} closeLabel="Close">\n <Text>Dismissible Alert</Text>\n </Alert>'
|
|
54
54
|
}];
|
|
55
|
-
const snippets$
|
|
55
|
+
const snippets$G = [{
|
|
56
56
|
name: "Standard",
|
|
57
57
|
code: `<Autosuggest id="fruit" label="Fruit" suggestions={[{
|
|
58
58
|
text: 'Apples'
|
|
@@ -127,7 +127,7 @@ const snippets$F = [{
|
|
|
127
127
|
text: 'Sydney'
|
|
128
128
|
}]} />`
|
|
129
129
|
}];
|
|
130
|
-
const snippets$
|
|
130
|
+
const snippets$F = [{
|
|
131
131
|
name: "Info",
|
|
132
132
|
code: '<Badge tone="info">Badge</Badge>'
|
|
133
133
|
}, {
|
|
@@ -167,7 +167,7 @@ const snippets$E = [{
|
|
|
167
167
|
name: "Multiple",
|
|
168
168
|
code: '<Inline space="small">\n <Badge tone="info">Badge</Badge>\n <Badge tone="positive">Badge</Badge>\n <Badge tone="promote">Badge</Badge>\n </Inline>'
|
|
169
169
|
}];
|
|
170
|
-
const snippets$
|
|
170
|
+
const snippets$E = [{
|
|
171
171
|
name: "On all sides",
|
|
172
172
|
code: '<Bleed space="gutter">\n <Placeholder height={80} />\n </Bleed>'
|
|
173
173
|
}, {
|
|
@@ -189,7 +189,7 @@ const snippets$D = [{
|
|
|
189
189
|
name: "To the right",
|
|
190
190
|
code: '<Bleed right="gutter">\n <Placeholder height={80} />\n </Bleed>'
|
|
191
191
|
}];
|
|
192
|
-
const snippets$
|
|
192
|
+
const snippets$D = [{
|
|
193
193
|
name: "Solid",
|
|
194
194
|
code: "<Button>Button</Button>"
|
|
195
195
|
}, {
|
|
@@ -250,7 +250,7 @@ const snippets$C = [{
|
|
|
250
250
|
name: "Small Transparent",
|
|
251
251
|
code: '<Button size="small" variant="transparent">\n Button\n </Button>'
|
|
252
252
|
}];
|
|
253
|
-
const snippets$
|
|
253
|
+
const snippets$C = [{
|
|
254
254
|
name: "Soft",
|
|
255
255
|
code: '<ButtonIcon variant="soft" icon={<IconBookmark />} label="Bookmark" id="buttonicon-soft" />'
|
|
256
256
|
}, {
|
|
@@ -263,7 +263,7 @@ const snippets$B = [{
|
|
|
263
263
|
name: "Secondary",
|
|
264
264
|
code: '<ButtonIcon tone="secondary" icon={<IconClear />} label="Close" id="buttonicon-secondary" />'
|
|
265
265
|
}];
|
|
266
|
-
const snippets$
|
|
266
|
+
const snippets$B = [{
|
|
267
267
|
name: "With Heading",
|
|
268
268
|
code: '<Card>\n <Stack space="gutter">\n <Heading level="3">Heading</Heading>\n <Text>Text</Text>\n </Stack>\n </Card>'
|
|
269
269
|
}, {
|
|
@@ -279,7 +279,7 @@ const snippets$A = [{
|
|
|
279
279
|
name: "With Overflow Menu",
|
|
280
280
|
code: '<Card>\n <Stack space="gutter">\n <Columns space="gutter">\n <Column>\n <Heading level="3">Heading</Heading>\n </Column>\n <Column width="content">\n <OverflowMenu label="Options">\n <MenuItem>Menu Item</MenuItem>\n </OverflowMenu>\n </Column>\n </Columns>\n <Text>Text</Text>\n </Stack>\n </Card>'
|
|
281
281
|
}];
|
|
282
|
-
const snippets$
|
|
282
|
+
const snippets$A = [{
|
|
283
283
|
name: "Standard",
|
|
284
284
|
code: '<Checkbox label="Label" />'
|
|
285
285
|
}, {
|
|
@@ -298,7 +298,7 @@ const snippets$z = [{
|
|
|
298
298
|
name: "With nested content",
|
|
299
299
|
code: '<Checkbox label="Label">\n <Placeholder height={100} />\n </Checkbox>'
|
|
300
300
|
}];
|
|
301
|
-
const snippets$
|
|
301
|
+
const snippets$z = [{
|
|
302
302
|
name: "2 Columns",
|
|
303
303
|
code: '<Columns space="gutter">\n <Column>\n <Placeholder height={60} label="Column" />\n </Column>\n <Column>\n <Placeholder height={60} label="Column" />\n </Column>\n </Columns>'
|
|
304
304
|
}, {
|
|
@@ -314,7 +314,7 @@ const snippets$y = [{
|
|
|
314
314
|
name: "Main Content With Sidebar",
|
|
315
315
|
code: '<Columns space="gutter" collapseBelow="tablet">\n <Column width="2/3">\n <Placeholder height={400} label="Main" />\n </Column>\n <Column>\n <Placeholder height={100} label="Sidebar" />\n </Column>\n </Columns>'
|
|
316
316
|
}];
|
|
317
|
-
const snippets$
|
|
317
|
+
const snippets$y = [{
|
|
318
318
|
name: "Standard",
|
|
319
319
|
code: "<ContentBlock>\n <Placeholder height={100} />\n </ContentBlock>"
|
|
320
320
|
}, {
|
|
@@ -327,7 +327,7 @@ const snippets$x = [{
|
|
|
327
327
|
name: "Large",
|
|
328
328
|
code: '<ContentBlock width="large">\n <Placeholder height={100} />\n </ContentBlock>'
|
|
329
329
|
}];
|
|
330
|
-
const snippets$
|
|
330
|
+
const snippets$x = [{
|
|
331
331
|
name: "Standard",
|
|
332
332
|
code: '<Dialog title="Dialog Heading" open={true}>\n <Placeholder width={250} height={100} />\n </Dialog>'
|
|
333
333
|
}, {
|
|
@@ -346,18 +346,18 @@ const snippets$w = [{
|
|
|
346
346
|
name: "Large",
|
|
347
347
|
code: '<Dialog title="Dialog Heading" width="large" open={true}>\n <Placeholder width="100%" height={100} />\n </Dialog>'
|
|
348
348
|
}];
|
|
349
|
-
const snippets$
|
|
349
|
+
const snippets$w = [{
|
|
350
350
|
name: "Standard",
|
|
351
351
|
code: '<Disclosure expandLabel="Show" collapseLabel="Hide">\n <Stack space="large">\n <Text>Content</Text>\n </Stack>\n </Disclosure>'
|
|
352
352
|
}];
|
|
353
|
-
const snippets$
|
|
353
|
+
const snippets$v = [{
|
|
354
354
|
name: "Regular",
|
|
355
355
|
code: "<Divider />"
|
|
356
356
|
}, {
|
|
357
357
|
name: "Strong",
|
|
358
358
|
code: '<Divider weight="strong" />'
|
|
359
359
|
}];
|
|
360
|
-
const snippets$
|
|
360
|
+
const snippets$u = [{
|
|
361
361
|
name: "Default",
|
|
362
362
|
code: '<Drawer title="Drawer Heading" open={true}>\n <Placeholder width="100%" height={100} />\n </Drawer>'
|
|
363
363
|
}, {
|
|
@@ -370,7 +370,7 @@ const snippets$t = [{
|
|
|
370
370
|
name: "Large",
|
|
371
371
|
code: '<Drawer title="Drawer Heading" width="large" open={true}>\n <Placeholder width="100%" height={100} />\n </Drawer>'
|
|
372
372
|
}];
|
|
373
|
-
const snippets$
|
|
373
|
+
const snippets$t = [{
|
|
374
374
|
name: "Standard",
|
|
375
375
|
code: '<Dropdown label="Label" placeholder="Please select">\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
376
376
|
}, {
|
|
@@ -392,7 +392,7 @@ const snippets$s = [{
|
|
|
392
392
|
name: "With a positive message",
|
|
393
393
|
code: '<Dropdown label="Label" placeholder="Please select" tone="positive" message="Positive message">\n <option>Option 1</option>\n <option>Option 2</option>\n <option>Option 3</option>\n </Dropdown>'
|
|
394
394
|
}];
|
|
395
|
-
const snippets$
|
|
395
|
+
const snippets$s = [{
|
|
396
396
|
name: "Standard",
|
|
397
397
|
code: '<FieldLabel label="Label" />'
|
|
398
398
|
}, {
|
|
@@ -402,7 +402,7 @@ const snippets$r = [{
|
|
|
402
402
|
name: "Standard with tertiary label",
|
|
403
403
|
code: '<FieldLabel label="Label" secondaryLabel="Optional" tertiaryLabel={<TextLink href="#">Help?</TextLink>} />'
|
|
404
404
|
}];
|
|
405
|
-
const snippets$
|
|
405
|
+
const snippets$r = [{
|
|
406
406
|
name: "Standard",
|
|
407
407
|
code: '<FieldMessage message="This is a message" />'
|
|
408
408
|
}, {
|
|
@@ -415,7 +415,7 @@ const snippets$q = [{
|
|
|
415
415
|
name: "Secondary message",
|
|
416
416
|
code: '<FieldMessage message="This is a message" secondaryMessage={<Text size="small" tone="secondary">\n Secondary\n </Text>} />'
|
|
417
417
|
}];
|
|
418
|
-
const snippets$
|
|
418
|
+
const snippets$q = [{
|
|
419
419
|
name: "Level 1",
|
|
420
420
|
code: '<Heading level="1">Heading</Heading>'
|
|
421
421
|
}, {
|
|
@@ -443,7 +443,7 @@ const snippets$p = [{
|
|
|
443
443
|
name: "Level 4 (Weak)",
|
|
444
444
|
code: '<Heading level="4" weight="weak">\n Heading\n </Heading>'
|
|
445
445
|
}];
|
|
446
|
-
const snippets$
|
|
446
|
+
const snippets$p = [{
|
|
447
447
|
name: "Small space",
|
|
448
448
|
code: '<Inline space="small">\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n <Placeholder width={48} height={48} />\n </Inline>'
|
|
449
449
|
}, {
|
|
@@ -466,7 +466,7 @@ const snippets$o = [{
|
|
|
466
466
|
name: "Vertically centered",
|
|
467
467
|
code: '<Inline space="small" alignY="center">\n <Placeholder width={48} height={40} />\n <Placeholder width={48} height={100} />\n <Placeholder width={48} height={60} />\n </Inline>'
|
|
468
468
|
}];
|
|
469
|
-
const snippets$
|
|
469
|
+
const snippets$o = [{
|
|
470
470
|
name: "XSmall Space",
|
|
471
471
|
code: '<List space="xsmall">\n <Text>Text</Text>\n <Text>Text</Text>\n <Text>Text</Text>\n </List>'
|
|
472
472
|
}, {
|
|
@@ -491,11 +491,11 @@ const snippets$n = [{
|
|
|
491
491
|
name: "Icon",
|
|
492
492
|
code: '<List space="medium" type="icon" icon={<IconTick tone="positive" />}>\n <Text>Text</Text>\n <Text>Text</Text>\n <Text>Text</Text>\n </List>'
|
|
493
493
|
}];
|
|
494
|
-
const snippets$
|
|
494
|
+
const snippets$n = [{
|
|
495
495
|
name: "Standard",
|
|
496
496
|
code: "<Loader />"
|
|
497
497
|
}];
|
|
498
|
-
const snippets$
|
|
498
|
+
const snippets$m = [{
|
|
499
499
|
name: "Standard",
|
|
500
500
|
code: '<MonthPicker label="Month" />'
|
|
501
501
|
}, {
|
|
@@ -517,7 +517,7 @@ const snippets$l = [{
|
|
|
517
517
|
name: "With custom months and years",
|
|
518
518
|
code: `<MonthPicker label="Started" monthLabel="MM" yearLabel="YYYY" monthNames={['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']} />`
|
|
519
519
|
}];
|
|
520
|
-
const snippets$
|
|
520
|
+
const snippets$l = [{
|
|
521
521
|
name: "Critical",
|
|
522
522
|
code: '<Notice tone="critical">\n <Text>Critical Notice</Text>\n </Notice>'
|
|
523
523
|
}, {
|
|
@@ -530,10 +530,17 @@ const snippets$k = [{
|
|
|
530
530
|
name: "Promote",
|
|
531
531
|
code: '<Notice tone="promote">\n <Text>Promote Notice</Text>\n </Notice>'
|
|
532
532
|
}];
|
|
533
|
-
const snippets$
|
|
533
|
+
const snippets$k = [{
|
|
534
534
|
name: "Standard",
|
|
535
535
|
code: '<OverflowMenu label="Options">\n <MenuItem>Option</MenuItem>\n <MenuItem>Option</MenuItem>\n </OverflowMenu>'
|
|
536
536
|
}];
|
|
537
|
+
const snippets$j = [{
|
|
538
|
+
name: "Medium",
|
|
539
|
+
code: '<PageBlock width="medium">\n <Placeholder height={100} />\n </PageBlock>'
|
|
540
|
+
}, {
|
|
541
|
+
name: "Large",
|
|
542
|
+
code: '<PageBlock width="large">\n <Placeholder height={100} />\n </PageBlock>'
|
|
543
|
+
}];
|
|
537
544
|
const snippets$i = [{
|
|
538
545
|
name: "Standard",
|
|
539
546
|
code: "<Pagination />"
|
|
@@ -806,32 +813,33 @@ const snippets$1 = [{
|
|
|
806
813
|
code: '<TooltipRenderer tooltip={<Text>This is a tooltip!</Text>}>\n {({\n triggerProps\n }) => <Box {...triggerProps}>\n <Placeholder label="Tooltip trigger" height={100} />\n </Box>}\n </TooltipRenderer>'
|
|
807
814
|
}];
|
|
808
815
|
const snippets = Object.entries({
|
|
809
|
-
Accordion: snippets$
|
|
810
|
-
Actions: snippets$
|
|
811
|
-
Alert: snippets$
|
|
812
|
-
Autosuggest: snippets$
|
|
813
|
-
Badge: snippets$
|
|
814
|
-
Bleed: snippets$
|
|
815
|
-
Button: snippets$
|
|
816
|
-
ButtonIcon: snippets$
|
|
817
|
-
Card: snippets$
|
|
818
|
-
Checkbox: snippets$
|
|
819
|
-
Columns: snippets$
|
|
820
|
-
ContentBlock: snippets$
|
|
821
|
-
Dialog: snippets$
|
|
822
|
-
Disclosure: snippets$
|
|
823
|
-
Divider: snippets$
|
|
824
|
-
Drawer: snippets$
|
|
825
|
-
Dropdown: snippets$
|
|
826
|
-
FieldLabel: snippets$
|
|
827
|
-
FieldMessage: snippets$
|
|
828
|
-
Heading: snippets$
|
|
829
|
-
Inline: snippets$
|
|
830
|
-
List: snippets$
|
|
831
|
-
Loader: snippets$
|
|
832
|
-
MonthPicker: snippets$
|
|
833
|
-
Notice: snippets$
|
|
834
|
-
OverflowMenu: snippets$
|
|
816
|
+
Accordion: snippets$J,
|
|
817
|
+
Actions: snippets$I,
|
|
818
|
+
Alert: snippets$H,
|
|
819
|
+
Autosuggest: snippets$G,
|
|
820
|
+
Badge: snippets$F,
|
|
821
|
+
Bleed: snippets$E,
|
|
822
|
+
Button: snippets$D,
|
|
823
|
+
ButtonIcon: snippets$C,
|
|
824
|
+
Card: snippets$B,
|
|
825
|
+
Checkbox: snippets$A,
|
|
826
|
+
Columns: snippets$z,
|
|
827
|
+
ContentBlock: snippets$y,
|
|
828
|
+
Dialog: snippets$x,
|
|
829
|
+
Disclosure: snippets$w,
|
|
830
|
+
Divider: snippets$v,
|
|
831
|
+
Drawer: snippets$u,
|
|
832
|
+
Dropdown: snippets$t,
|
|
833
|
+
FieldLabel: snippets$s,
|
|
834
|
+
FieldMessage: snippets$r,
|
|
835
|
+
Heading: snippets$q,
|
|
836
|
+
Inline: snippets$p,
|
|
837
|
+
List: snippets$o,
|
|
838
|
+
Loader: snippets$n,
|
|
839
|
+
MonthPicker: snippets$m,
|
|
840
|
+
Notice: snippets$l,
|
|
841
|
+
OverflowMenu: snippets$k,
|
|
842
|
+
PageBlock: snippets$j,
|
|
835
843
|
Pagination: snippets$i,
|
|
836
844
|
PasswordField: snippets$h,
|
|
837
845
|
RadioGroup: snippets$g,
|
package/dist/reset.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { ForwardRefRenderFunction, AnchorHTMLAttributes, ComponentType, ReactNode, ReactElement, AllHTMLAttributes, ElementType,
|
|
2
|
+
import React__default, { ForwardRefRenderFunction, AnchorHTMLAttributes, ComponentType, ReactNode, ReactElement, AllHTMLAttributes, ElementType, Ref, KeyboardEvent, MouseEvent, FormEvent } from 'react';
|
|
3
3
|
import { FontMetrics } from '@capsizecss/core';
|
|
4
4
|
import * as clsx from 'clsx';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
@@ -2855,6 +2855,7 @@ interface ButtonProps extends ButtonStyleProps {
|
|
|
2855
2855
|
'aria-controls'?: NativeButtonProps$1['aria-controls'];
|
|
2856
2856
|
'aria-expanded'?: NativeButtonProps$1['aria-expanded'];
|
|
2857
2857
|
'aria-describedby'?: NativeButtonProps$1['aria-describedby'];
|
|
2858
|
+
'aria-label'?: NativeButtonProps$1['aria-label'];
|
|
2858
2859
|
tabIndex?: NativeButtonProps$1['tabIndex'];
|
|
2859
2860
|
data?: DataAttributeMap;
|
|
2860
2861
|
}
|
|
@@ -2995,7 +2996,7 @@ type AutosuggestBaseProps<Value> = Omit<FieldBaseProps, 'value' | 'autoComplete'
|
|
|
2995
2996
|
};
|
|
2996
2997
|
type AutosuggestLabelProps = FieldLabelVariant$1;
|
|
2997
2998
|
type AutosuggestProps<Value> = AutosuggestBaseProps<Value> & AutosuggestLabelProps;
|
|
2998
|
-
declare const Autosuggest$1: <Value>(props: AutosuggestProps<Value> & RefAttributes<HTMLInputElement>) => ReactElement;
|
|
2999
|
+
declare const Autosuggest$1: <Value>(props: AutosuggestProps<Value> & React__default.RefAttributes<HTMLInputElement>) => ReactElement;
|
|
2999
3000
|
|
|
3000
3001
|
type FilterableSuggestion<Value> = Omit<Suggestion<Value>, 'highlights'>;
|
|
3001
3002
|
type FilterableGroupedSuggestions<Value> = Omit<GroupedSuggestions<Value>, 'suggestions'> & {
|
|
@@ -3205,10 +3206,11 @@ interface TextLinkButtonProps extends Omit<TextLinkStyles, 'showVisited'> {
|
|
|
3205
3206
|
'aria-controls'?: NativeSpanProps['aria-controls'];
|
|
3206
3207
|
'aria-expanded'?: NativeSpanProps['aria-expanded'];
|
|
3207
3208
|
'aria-describedby'?: NativeSpanProps['aria-describedby'];
|
|
3209
|
+
'aria-label'?: NativeSpanProps['aria-label'];
|
|
3208
3210
|
tabIndex?: NativeSpanProps['tabIndex'];
|
|
3209
3211
|
icon?: ReactElement<UseIconProps>;
|
|
3210
3212
|
}
|
|
3211
|
-
declare const TextLinkButton: ({ weight, hitArea, id, onClick, data, children, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-describedby": ariaDescribedBy, tabIndex, icon, iconPosition, ...restProps }: TextLinkButtonProps) => JSX.Element;
|
|
3213
|
+
declare const TextLinkButton: ({ weight, hitArea, id, onClick, data, children, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, tabIndex, icon, iconPosition, ...restProps }: TextLinkButtonProps) => JSX.Element;
|
|
3212
3214
|
|
|
3213
3215
|
type DisclosureBaseProps = {
|
|
3214
3216
|
expandLabel: string;
|
|
@@ -3495,6 +3497,15 @@ type NoticeProps = {
|
|
|
3495
3497
|
};
|
|
3496
3498
|
declare const Notice$1: ({ tone, data, children, ...restProps }: NoticeProps) => JSX.Element;
|
|
3497
3499
|
|
|
3500
|
+
declare const validPageBlockComponents: readonly ["div", "article", "aside", "main", "section", "nav"];
|
|
3501
|
+
interface Props$1 {
|
|
3502
|
+
children: ReactNode;
|
|
3503
|
+
width?: Extract<ContentBlockProps['width'], 'medium' | 'large'>;
|
|
3504
|
+
component?: (typeof validPageBlockComponents)[number];
|
|
3505
|
+
data?: DataAttributeMap;
|
|
3506
|
+
}
|
|
3507
|
+
declare const PageBlock: ({ children, width, component: componentProp, data, ...restProps }: Props$1) => JSX.Element;
|
|
3508
|
+
|
|
3498
3509
|
interface PaginationProps {
|
|
3499
3510
|
page: number;
|
|
3500
3511
|
total: number;
|
|
@@ -3926,6 +3937,9 @@ declare const IconLocation: (props: IconLocationProps) => JSX.Element;
|
|
|
3926
3937
|
type IconMailProps = UseIconProps;
|
|
3927
3938
|
declare const IconMail: (props: IconMailProps) => JSX.Element;
|
|
3928
3939
|
|
|
3940
|
+
type IconMessageProps = UseIconProps;
|
|
3941
|
+
declare const IconMessage: (props: IconMessageProps) => JSX.Element;
|
|
3942
|
+
|
|
3929
3943
|
type IconMinusProps = UseIconProps;
|
|
3930
3944
|
declare const IconMinus: (props: IconMinusProps) => JSX.Element;
|
|
3931
3945
|
|
|
@@ -5246,4 +5260,4 @@ declare const _default: {
|
|
|
5246
5260
|
code: string;
|
|
5247
5261
|
}[];
|
|
5248
5262
|
|
|
5249
|
-
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, Box, BoxRenderer, BraidPortal, BraidProvider, BraidTestProvider, Breakpoint, 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, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconRenderer, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline$1 as Inline, Inline as Inline$1, Link$1 as Link, Link as Link$1, LinkComponent, 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$1 as OverflowMenu, OverflowMenu as OverflowMenu$1, Pagination$1 as Pagination, Pagination as Pagination$1, PasswordField$1 as PasswordField, PasswordField as PasswordField$1, Placeholder, PublicBox, Radio$1 as Radio, Radio as Radio$1, RadioGroup$1 as RadioGroup, RadioGroup as RadioGroup$1, RadioItem, Rating$1 as Rating, Rating as Rating$1, Secondary, Stack$1 as Stack, Stack as Stack$1, Step$1 as Step, Stepper, Strong, Tab$1 as Tab, Tab as Tab$1, TabPanel, TabPanels, Tabs$1 as Tabs, Tabs as Tabs$1, TabsProvider$1 as TabsProvider, TabsProvider as TabsProvider$1, 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$1 as TooltipRenderer, TooltipRenderer as TooltipRenderer$1, _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, useBreakpoint, useColor, useResponsiveValue, useScope, useSpace, useThemeName, useToast, vars };
|
|
5263
|
+
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, Box, BoxRenderer, BraidPortal, BraidProvider, BraidTestProvider, Breakpoint, 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, IconAdd, IconArrow, IconBookmark, IconCaution, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconFilter, IconFlag, IconGrid, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconInfo, IconInvoice, IconLanguage, IconLink, IconLinkBroken, IconList, IconLocation, IconMail, IconMessage, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconRecommended, IconRefresh, IconRenderer, IconResume, IconSearch, IconSecurity, IconSend, IconSent, IconSettings, IconShare, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTwitter, IconSocialYouTube, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline$1 as Inline, Inline as Inline$1, Link$1 as Link, Link as Link$1, LinkComponent, 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$1 as OverflowMenu, OverflowMenu as OverflowMenu$1, PageBlock, Pagination$1 as Pagination, Pagination as Pagination$1, PasswordField$1 as PasswordField, PasswordField as PasswordField$1, Placeholder, PublicBox, Radio$1 as Radio, Radio as Radio$1, RadioGroup$1 as RadioGroup, RadioGroup as RadioGroup$1, RadioItem, Rating$1 as Rating, Rating as Rating$1, Secondary, Stack$1 as Stack, Stack as Stack$1, Step$1 as Step, Stepper, Strong, Tab$1 as Tab, Tab as Tab$1, TabPanel, TabPanels, Tabs$1 as Tabs, Tabs as Tabs$1, TabsProvider$1 as TabsProvider, TabsProvider as TabsProvider$1, 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$1 as TooltipRenderer, TooltipRenderer as TooltipRenderer$1, _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, useBreakpoint, useColor, useResponsiveValue, useScope, useSpace, useThemeName, useToast, vars };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "braid-design-system",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.6.0",
|
|
4
4
|
"description": "Themeable design system for the SEEK Group",
|
|
5
5
|
"homepage": "https://seek-oss.github.io/braid-design-system/",
|
|
6
6
|
"bugs": {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"react-dom": "^18.2.0",
|
|
190
190
|
"react-router-dom": "^6.3.0",
|
|
191
191
|
"sanitize-html": "^2.7.0",
|
|
192
|
-
"sku": "11.
|
|
192
|
+
"sku": "11.11.0",
|
|
193
193
|
"svgo": "^2.8.0",
|
|
194
194
|
"title-case": "^3.0.3"
|
|
195
195
|
},
|
|
@@ -204,10 +204,12 @@
|
|
|
204
204
|
"scripts": {
|
|
205
205
|
"build": "crackle package",
|
|
206
206
|
"codemod": "rm -rf ./codemod/dist && cp -r ../codemod/dist ./codemod/dist",
|
|
207
|
+
"preformat:eslint": "ignore-sync .eslintignore-sync",
|
|
207
208
|
"format:eslint": "eslint --cache --fix .",
|
|
208
209
|
"format:prettier": "prettier --cache --write .",
|
|
209
210
|
"generate:icons": "tsx ./scripts/generateIcons.cts",
|
|
210
211
|
"generate:snippets": "tsx ./scripts/generateSnippets.cts",
|
|
212
|
+
"prelint:eslint": "ignore-sync .eslintignore-sync",
|
|
211
213
|
"lint:eslint": "eslint --cache .",
|
|
212
214
|
"lint:prettier": "prettier --cache --list-different .",
|
|
213
215
|
"lint:tsc": "tsc",
|