braid-design-system 32.5.0 → 32.7.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.
@@ -1,4 +1,4 @@
1
- const snippets$I = [{
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$H = [{
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$G = [{
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$F = [{
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$E = [{
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$D = [{
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$C = [{
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$B = [{
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$A = [{
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$z = [{
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$y = [{
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$x = [{
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$w = [{
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$v = [{
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$u = [{
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$t = [{
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$s = [{
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$r = [{
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$q = [{
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$p = [{
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$o = [{
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$n = [{
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$m = [{
494
+ const snippets$n = [{
495
495
  name: "Standard",
496
496
  code: "<Loader />"
497
497
  }];
498
- const snippets$l = [{
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$k = [{
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$j = [{
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$I,
810
- Actions: snippets$H,
811
- Alert: snippets$G,
812
- Autosuggest: snippets$F,
813
- Badge: snippets$E,
814
- Bleed: snippets$D,
815
- Button: snippets$C,
816
- ButtonIcon: snippets$B,
817
- Card: snippets$A,
818
- Checkbox: snippets$z,
819
- Columns: snippets$y,
820
- ContentBlock: snippets$x,
821
- Dialog: snippets$w,
822
- Disclosure: snippets$v,
823
- Divider: snippets$u,
824
- Drawer: snippets$t,
825
- Dropdown: snippets$s,
826
- FieldLabel: snippets$r,
827
- FieldMessage: snippets$q,
828
- Heading: snippets$p,
829
- Inline: snippets$o,
830
- List: snippets$n,
831
- Loader: snippets$m,
832
- MonthPicker: snippets$l,
833
- Notice: snippets$k,
834
- OverflowMenu: snippets$j,
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,
@@ -71,7 +71,7 @@ function useFallbackState(stateKey, value, onChange, defaultValue) {
71
71
  unwrapValue(args[0])
72
72
  );
73
73
  }
74
- (handler || noop)(...args);
74
+ return (handler || noop)(...args);
75
75
  };
76
76
  const handleChange = wrapChangeHandler(onChange || noop);
77
77
  const resolvedValue = value ?? (stateKey ? playroomState.getState(stateKey) ?? defaultValue : internalStateValue);
@@ -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
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { ForwardRefRenderFunction, AnchorHTMLAttributes, ComponentType, ReactNode, ReactElement, AllHTMLAttributes, ElementType, RefAttributes, Ref, KeyboardEvent, MouseEvent, FormEvent } from 'react';
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'> & {
@@ -3172,7 +3173,7 @@ interface ModalContentProps {
3172
3173
 
3173
3174
  interface ModalProps extends Omit<ModalContentProps, 'onClose' | 'scrollLock' | 'headingRef' | 'modalRef'> {
3174
3175
  open: boolean;
3175
- onClose: (openState: false) => void;
3176
+ onClose: (openState: false) => void | false;
3176
3177
  }
3177
3178
 
3178
3179
  declare const modalStyle$1: {
@@ -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/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.5.0",
3
+ "version": "32.7.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.9.2",
192
+ "sku": "12.1.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",