braid-design-system 32.6.0 → 32.8.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.
@@ -68,7 +68,7 @@ function useFallbackState(stateKey, value, onChange, defaultValue) {
68
68
  unwrapValue(args[0])
69
69
  );
70
70
  }
71
- (handler || noop)(...args);
71
+ return (handler || noop)(...args);
72
72
  };
73
73
  const handleChange = wrapChangeHandler(onChange || noop);
74
74
  const resolvedValue = value ?? (stateKey ? playroomState.getState(stateKey) ?? defaultValue : internalStateValue);
package/dist/reset.cjs CHANGED
@@ -1,2 +1,7 @@
1
1
  "use strict";
2
2
  require("./side-effects/lib/css/reset/index.cjs");
3
+ require("./styles/lib/themes/apac/apacTheme.css.cjs");
4
+ require("./styles/lib/themes/docs/docsTheme.css.cjs");
5
+ require("./styles/lib/themes/seekBusiness/seekBusinessTheme.css.cjs");
6
+ require("./styles/lib/themes/seekJobs/seekJobs.css.cjs");
7
+ require("./styles/lib/themes/wireframe/wireframeTheme.css.cjs");
package/dist/reset.d.ts CHANGED
@@ -3173,7 +3173,7 @@ interface ModalContentProps {
3173
3173
 
3174
3174
  interface ModalProps extends Omit<ModalContentProps, 'onClose' | 'scrollLock' | 'headingRef' | 'modalRef'> {
3175
3175
  open: boolean;
3176
- onClose: (openState: false) => void;
3176
+ onClose: (openState: false) => void | false;
3177
3177
  }
3178
3178
 
3179
3179
  declare const modalStyle$1: {
@@ -3887,6 +3887,11 @@ declare const IconEdit: (props: IconEditProps) => JSX.Element;
3887
3887
  type IconEducationProps = UseIconProps;
3888
3888
  declare const IconEducation: (props: IconEducationProps) => JSX.Element;
3889
3889
 
3890
+ type IconEnlargeProps = UseIconProps & {
3891
+ active?: boolean;
3892
+ };
3893
+ declare const IconEnlarge: ({ active, ...props }: IconEnlargeProps) => JSX.Element;
3894
+
3890
3895
  type IconFilterProps = UseIconProps;
3891
3896
  declare const IconFilter: (props: IconFilterProps) => JSX.Element;
3892
3897
 
@@ -5260,4 +5265,4 @@ declare const _default: {
5260
5265
  code: string;
5261
5266
  }[];
5262
5267
 
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 };
5268
+ 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, IconEnlarge, 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/dist/reset.mjs CHANGED
@@ -1 +1,6 @@
1
1
  import "./side-effects/lib/css/reset/index.mjs";
2
+ import "./styles/lib/themes/apac/apacTheme.css.mjs";
3
+ import "./styles/lib/themes/docs/docsTheme.css.mjs";
4
+ import "./styles/lib/themes/seekBusiness/seekBusinessTheme.css.mjs";
5
+ import "./styles/lib/themes/seekJobs/seekJobs.css.mjs";
6
+ import "./styles/lib/themes/wireframe/wireframeTheme.css.mjs";
@@ -6,6 +6,7 @@ const styles_lib_components_private_Modal_ModalExternalGutter_cjs = require("./M
6
6
  const styles_lib_css_responsiveStyle_cjs = require("../../../css/responsiveStyle.cjs");
7
7
  const styles_lib_themes_vars_css_cjs = require("../../../themes/vars.css.cjs");
8
8
  const styles_lib_css_atoms_atoms_cjs = require("../../../css/atoms/atoms.cjs");
9
+ const styles_lib_css_colorModeStyle_cjs = require("../../../css/colorModeStyle.cjs");
9
10
  fileScope.setFileScope("src/lib/components/private/Modal/Modal.css.ts?used", "braid-design-system");
10
11
  const fixedStackingContext = styles_lib_css_atoms_atoms_cjs.atoms({
11
12
  position: "fixed",
@@ -15,9 +16,16 @@ const resetStackingContext = styles_lib_css_atoms_atoms_cjs.atoms({
15
16
  position: "relative",
16
17
  zIndex: 0
17
18
  });
18
- const backdrop = css.style({
19
- background: "rgba(0, 0, 0, .4)"
20
- }, "backdrop");
19
+ const backdrop = css.style(styles_lib_css_colorModeStyle_cjs.colorModeStyle({
20
+ lightMode: {
21
+ background: "#000",
22
+ opacity: 0.4
23
+ },
24
+ darkMode: {
25
+ background: "#000",
26
+ opacity: 0.6
27
+ }
28
+ }), "backdrop");
21
29
  const reducedMotion = css.style({
22
30
  "@media": {
23
31
  "screen and (prefers-reduced-motion)": {
@@ -32,7 +40,7 @@ const entrance = {
32
40
  right: [reducedMotion, css.style(styles_lib_css_responsiveStyle_cjs.responsiveStyle({
33
41
  mobile: {
34
42
  opacity: 1,
35
- transform: "translateX(140%)"
43
+ transform: "translateX(110%)"
36
44
  },
37
45
  tablet: {
38
46
  opacity: 0,
@@ -42,7 +50,7 @@ const entrance = {
42
50
  left: [reducedMotion, css.style(styles_lib_css_responsiveStyle_cjs.responsiveStyle({
43
51
  mobile: {
44
52
  opacity: 1,
45
- transform: "translateX(-140%)"
53
+ transform: "translateX(-110%)"
46
54
  },
47
55
  tablet: {
48
56
  opacity: 0,
@@ -54,7 +62,7 @@ const exit = {
54
62
  right: [reducedMotion, css.style(styles_lib_css_responsiveStyle_cjs.responsiveStyle({
55
63
  mobile: {
56
64
  opacity: 1,
57
- transform: "translateX(140%)"
65
+ transform: "translateX(110%)"
58
66
  },
59
67
  tablet: {
60
68
  opacity: 0,
@@ -64,7 +72,7 @@ const exit = {
64
72
  left: [reducedMotion, css.style(styles_lib_css_responsiveStyle_cjs.responsiveStyle({
65
73
  mobile: {
66
74
  opacity: 1,
67
- transform: "translateX(-140%)"
75
+ transform: "translateX(-110%)"
68
76
  },
69
77
  tablet: {
70
78
  opacity: 0,
@@ -5,6 +5,7 @@ import { externalGutter } from "./ModalExternalGutter.mjs";
5
5
  import { responsiveStyle } from "../../../css/responsiveStyle.mjs";
6
6
  import { vars } from "../../../themes/vars.css.mjs";
7
7
  import { atoms } from "../../../css/atoms/atoms.mjs";
8
+ import { colorModeStyle } from "../../../css/colorModeStyle.mjs";
8
9
  setFileScope("src/lib/components/private/Modal/Modal.css.ts?used", "braid-design-system");
9
10
  const fixedStackingContext = atoms({
10
11
  position: "fixed",
@@ -14,9 +15,16 @@ const resetStackingContext = atoms({
14
15
  position: "relative",
15
16
  zIndex: 0
16
17
  });
17
- const backdrop = style({
18
- background: "rgba(0, 0, 0, .4)"
19
- }, "backdrop");
18
+ const backdrop = style(colorModeStyle({
19
+ lightMode: {
20
+ background: "#000",
21
+ opacity: 0.4
22
+ },
23
+ darkMode: {
24
+ background: "#000",
25
+ opacity: 0.6
26
+ }
27
+ }), "backdrop");
20
28
  const reducedMotion = style({
21
29
  "@media": {
22
30
  "screen and (prefers-reduced-motion)": {
@@ -31,7 +39,7 @@ const entrance = {
31
39
  right: [reducedMotion, style(responsiveStyle({
32
40
  mobile: {
33
41
  opacity: 1,
34
- transform: "translateX(140%)"
42
+ transform: "translateX(110%)"
35
43
  },
36
44
  tablet: {
37
45
  opacity: 0,
@@ -41,7 +49,7 @@ const entrance = {
41
49
  left: [reducedMotion, style(responsiveStyle({
42
50
  mobile: {
43
51
  opacity: 1,
44
- transform: "translateX(-140%)"
52
+ transform: "translateX(-110%)"
45
53
  },
46
54
  tablet: {
47
55
  opacity: 0,
@@ -53,7 +61,7 @@ const exit = {
53
61
  right: [reducedMotion, style(responsiveStyle({
54
62
  mobile: {
55
63
  opacity: 1,
56
- transform: "translateX(140%)"
64
+ transform: "translateX(110%)"
57
65
  },
58
66
  tablet: {
59
67
  opacity: 0,
@@ -63,7 +71,7 @@ const exit = {
63
71
  left: [reducedMotion, style(responsiveStyle({
64
72
  mobile: {
65
73
  opacity: 1,
66
- transform: "translateX(-140%)"
74
+ transform: "translateX(-110%)"
67
75
  },
68
76
  tablet: {
69
77
  opacity: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-design-system",
3
- "version": "32.6.0",
3
+ "version": "32.8.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.11.0",
192
+ "sku": "12.1.0",
193
193
  "svgo": "^2.8.0",
194
194
  "title-case": "^3.0.3"
195
195
  },