braid-design-system 34.5.0 → 34.6.1

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +4 -2
  3. package/dist/_virtual/_rolldown/runtime.cjs +1 -1
  4. package/dist/index.cjs +2 -0
  5. package/dist/index.d.cts +2 -1
  6. package/dist/index.d.mts +2 -1
  7. package/dist/index.mjs +2 -1
  8. package/dist/lib/components/Autosuggest/Autosuggest.cjs +2 -1
  9. package/dist/lib/components/Autosuggest/Autosuggest.mjs +2 -1
  10. package/dist/lib/components/BraidProvider/BraidProvider.cjs +3 -2
  11. package/dist/lib/components/BraidProvider/BraidProvider.mjs +3 -2
  12. package/dist/lib/components/Button/ButtonLoader.css.mjs +2 -1
  13. package/dist/lib/components/ButtonLink/ButtonLink.playroom.cjs +2 -1
  14. package/dist/lib/components/ButtonLink/ButtonLink.playroom.mjs +2 -1
  15. package/dist/lib/components/FieldMessage/FieldMessage.playroom.cjs +2 -1
  16. package/dist/lib/components/FieldMessage/FieldMessage.playroom.mjs +2 -1
  17. package/dist/lib/components/Link/Link.cjs +2 -1
  18. package/dist/lib/components/Link/Link.mjs +2 -1
  19. package/dist/lib/components/Loader/Loader.css.cjs +6 -5
  20. package/dist/lib/components/Loader/Loader.css.mjs +11 -9
  21. package/dist/lib/components/PageBlock/PageBlock.cjs +2 -1
  22. package/dist/lib/components/PageBlock/PageBlock.mjs +2 -1
  23. package/dist/lib/components/Stepper/Stepper.css.cjs +1 -1
  24. package/dist/lib/components/Stepper/Stepper.css.mjs +1 -1
  25. package/dist/lib/components/Table/TableBody.cjs +2 -1
  26. package/dist/lib/components/Table/TableBody.mjs +2 -1
  27. package/dist/lib/components/Table/TableCell.cjs +2 -1
  28. package/dist/lib/components/Table/TableCell.mjs +2 -1
  29. package/dist/lib/components/Table/TableFooter.cjs +2 -1
  30. package/dist/lib/components/Table/TableFooter.mjs +2 -1
  31. package/dist/lib/components/Table/TableHeader.cjs +2 -1
  32. package/dist/lib/components/Table/TableHeader.mjs +2 -1
  33. package/dist/lib/components/TextLink/TextLink.mjs +2 -1
  34. package/dist/lib/components/Textarea/formatRanges.cjs +3 -2
  35. package/dist/lib/components/Textarea/formatRanges.mjs +3 -2
  36. package/dist/lib/components/TooltipRenderer/TooltipRenderer.cjs +2 -1
  37. package/dist/lib/components/TooltipRenderer/TooltipRenderer.mjs +2 -1
  38. package/dist/lib/components/icons/IconCompanyVerified/IconCompanyVerified.cjs +14 -0
  39. package/dist/lib/components/icons/IconCompanyVerified/IconCompanyVerified.d.cts +7 -0
  40. package/dist/lib/components/icons/IconCompanyVerified/IconCompanyVerified.d.mts +7 -0
  41. package/dist/lib/components/icons/IconCompanyVerified/IconCompanyVerified.mjs +14 -0
  42. package/dist/lib/components/icons/IconCompanyVerified/IconCompanyVerifiedSvg.cjs +23 -0
  43. package/dist/lib/components/icons/IconCompanyVerified/IconCompanyVerifiedSvg.mjs +23 -0
  44. package/dist/lib/components/icons/IconPersonVerified/IconPersonVerifiedSvg.cjs +2 -3
  45. package/dist/lib/components/icons/IconPersonVerified/IconPersonVerifiedSvg.mjs +2 -3
  46. package/dist/lib/components/icons/index.d.cts +2 -1
  47. package/dist/lib/components/icons/index.d.mts +2 -1
  48. package/dist/lib/components/index.d.cts +2 -1
  49. package/dist/lib/components/index.d.mts +2 -1
  50. package/dist/lib/components/private/Modal/Modal.cjs +2 -1
  51. package/dist/lib/components/private/Modal/Modal.mjs +2 -1
  52. package/dist/lib/components/private/Popover/Popover.cjs +11 -9
  53. package/dist/lib/components/private/Popover/Popover.css.mjs +5 -4
  54. package/dist/lib/components/private/Popover/Popover.mjs +11 -9
  55. package/dist/lib/components/useToast/Toast.cjs +7 -6
  56. package/dist/lib/components/useToast/Toast.mjs +7 -6
  57. package/dist/lib/components/useToast/useFlipList.cjs +20 -22
  58. package/dist/lib/components/useToast/useFlipList.mjs +20 -22
  59. package/dist/lib/hooks/useIcon/icon.css.cjs +4 -7
  60. package/dist/lib/hooks/useIcon/icon.css.mjs +4 -7
  61. package/dist/lib/playroom/FrameComponent.cjs +2 -1
  62. package/dist/lib/playroom/FrameComponent.mjs +2 -1
  63. package/dist/lib/playroom/components.cjs +2 -0
  64. package/dist/lib/playroom/components.d.cts +2 -1
  65. package/dist/lib/playroom/components.d.mts +2 -1
  66. package/dist/lib/playroom/components.mjs +2 -1
  67. package/dist/playroom/components.cjs +2 -0
  68. package/dist/playroom/components.d.cts +2 -1
  69. package/dist/playroom/components.d.mts +2 -1
  70. package/dist/playroom/components.mjs +2 -1
  71. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # braid-design-system
2
2
 
3
+ ## 34.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix Dialog/Drawer crashing under Jest (CJS) when resolving `react-focus-lock` ([#2108](https://github.com/seek-oss/braid-design-system/pull/2108))
8
+
9
+ ## 34.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - **IconCompanyVerified**: Add component ([#2101](https://github.com/seek-oss/braid-design-system/pull/2101))
14
+
15
+ **EXAMPLE USAGE:**
16
+
17
+ ```jsx
18
+ <IconCompanyVerified />
19
+ ```
20
+
21
+ - **IconPersonVerified**: Update design ([#2101](https://github.com/seek-oss/braid-design-system/pull/2101))
22
+
23
+ **EXAMPLE USAGE:**
24
+
25
+ ```jsx
26
+ <IconPersonVerified />
27
+ ```
28
+
3
29
  ## 34.5.0
4
30
 
5
31
  ### Minor Changes
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  <div align="center" >
2
- <img src="logo.png#gh-light-mode-only" alt="BRAID" title="BRAID" width="186px" />
3
- <img src="logo-inverted.png#gh-dark-mode-only" alt="BRAID" title="BRAID" width="186px" />
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/seek-oss/braid-design-system/HEAD/logo-inverted.png" />
4
+ <img src="https://raw.githubusercontent.com/seek-oss/braid-design-system/HEAD/logo.png" alt="BRAID" title="BRAID" width="186px" />
5
+ </picture>
4
6
  <br/>
5
7
  <br/>
6
8
  Themeable design system for the SEEK Group.
@@ -24,7 +24,7 @@ var __copyProps = (to, from, except, desc) => {
24
24
  }
25
25
  return to;
26
26
  };
27
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
28
28
  value: mod,
29
29
  enumerable: true
30
30
  }) : target, mod));
package/dist/index.cjs CHANGED
@@ -27,6 +27,7 @@ const require_IconChecklist = require("./lib/components/icons/IconChecklist/Icon
27
27
  const require_IconChevron = require("./lib/components/icons/IconChevron/IconChevron.cjs");
28
28
  const require_IconClear = require("./lib/components/icons/IconClear/IconClear.cjs");
29
29
  const require_IconCompany = require("./lib/components/icons/IconCompany/IconCompany.cjs");
30
+ const require_IconCompanyVerified = require("./lib/components/icons/IconCompanyVerified/IconCompanyVerified.cjs");
30
31
  const require_IconCompose = require("./lib/components/icons/IconCompose/IconCompose.cjs");
31
32
  const require_IconCopy = require("./lib/components/icons/IconCopy/IconCopy.cjs");
32
33
  const require_IconCoverLetter = require("./lib/components/icons/IconCoverLetter/IconCoverLetter.cjs");
@@ -240,6 +241,7 @@ exports.IconChecklist = require_IconChecklist.IconChecklist;
240
241
  exports.IconChevron = require_IconChevron.IconChevron;
241
242
  exports.IconClear = require_IconClear.IconClear;
242
243
  exports.IconCompany = require_IconCompany.IconCompany;
244
+ exports.IconCompanyVerified = require_IconCompanyVerified.IconCompanyVerified;
243
245
  exports.IconCompose = require_IconCompose.IconCompose;
244
246
  exports.IconCopy = require_IconCopy.IconCopy;
245
247
  exports.IconCoverLetter = require_IconCoverLetter.IconCoverLetter;
package/dist/index.d.cts CHANGED
@@ -97,6 +97,7 @@ import { IconChecklist } from "./lib/components/icons/IconChecklist/IconChecklis
97
97
  import { IconChevron } from "./lib/components/icons/IconChevron/IconChevron.cjs";
98
98
  import { IconClear } from "./lib/components/icons/IconClear/IconClear.cjs";
99
99
  import { IconCompany } from "./lib/components/icons/IconCompany/IconCompany.cjs";
100
+ import { IconCompanyVerified } from "./lib/components/icons/IconCompanyVerified/IconCompanyVerified.cjs";
100
101
  import { IconCompose } from "./lib/components/icons/IconCompose/IconCompose.cjs";
101
102
  import { IconCopy } from "./lib/components/icons/IconCopy/IconCopy.cjs";
102
103
  import { IconCoverLetter } from "./lib/components/icons/IconCoverLetter/IconCoverLetter.cjs";
@@ -195,4 +196,4 @@ import { IconWorkExperience } from "./lib/components/icons/IconWorkExperience/Ic
195
196
  import { IconZoomIn } from "./lib/components/icons/IconZoomIn/IconZoomIn.cjs";
196
197
  import { IconZoomOut } from "./lib/components/icons/IconZoomOut/IconZoomOut.cjs";
197
198
  import { LinkComponent } from "./lib/components/index.cjs";
198
- 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, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
199
+ 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, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompanyVerified, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
package/dist/index.d.mts CHANGED
@@ -97,6 +97,7 @@ import { IconChecklist } from "./lib/components/icons/IconChecklist/IconChecklis
97
97
  import { IconChevron } from "./lib/components/icons/IconChevron/IconChevron.mjs";
98
98
  import { IconClear } from "./lib/components/icons/IconClear/IconClear.mjs";
99
99
  import { IconCompany } from "./lib/components/icons/IconCompany/IconCompany.mjs";
100
+ import { IconCompanyVerified } from "./lib/components/icons/IconCompanyVerified/IconCompanyVerified.mjs";
100
101
  import { IconCompose } from "./lib/components/icons/IconCompose/IconCompose.mjs";
101
102
  import { IconCopy } from "./lib/components/icons/IconCopy/IconCopy.mjs";
102
103
  import { IconCoverLetter } from "./lib/components/icons/IconCoverLetter/IconCoverLetter.mjs";
@@ -195,4 +196,4 @@ import { IconWorkExperience } from "./lib/components/icons/IconWorkExperience/Ic
195
196
  import { IconZoomIn } from "./lib/components/icons/IconZoomIn/IconZoomIn.mjs";
196
197
  import { IconZoomOut } from "./lib/components/icons/IconZoomOut/IconZoomOut.mjs";
197
198
  import { LinkComponent } from "./lib/components/index.mjs";
198
- 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, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
199
+ 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, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompanyVerified, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, LinkComponent, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
package/dist/index.mjs CHANGED
@@ -26,6 +26,7 @@ import { IconChecklist } from "./lib/components/icons/IconChecklist/IconChecklis
26
26
  import { IconChevron } from "./lib/components/icons/IconChevron/IconChevron.mjs";
27
27
  import { IconClear } from "./lib/components/icons/IconClear/IconClear.mjs";
28
28
  import { IconCompany } from "./lib/components/icons/IconCompany/IconCompany.mjs";
29
+ import { IconCompanyVerified } from "./lib/components/icons/IconCompanyVerified/IconCompanyVerified.mjs";
29
30
  import { IconCompose } from "./lib/components/icons/IconCompose/IconCompose.mjs";
30
31
  import { IconCopy } from "./lib/components/icons/IconCopy/IconCopy.mjs";
31
32
  import { IconCoverLetter } from "./lib/components/icons/IconCoverLetter/IconCoverLetter.mjs";
@@ -194,4 +195,4 @@ import { TextField } from "./lib/components/TextField/TextField.mjs";
194
195
  import { Tiles } from "./lib/components/Tiles/Tiles.mjs";
195
196
  import { Toggle } from "./lib/components/Toggle/Toggle.mjs";
196
197
  import { ToastProvider, useToast } from "./lib/components/useToast/ToastContext.mjs";
197
- 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, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
198
+ 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, IconAI, IconAdd, IconArrow, IconAttachment, IconBluetooth, IconBold, IconBookmark, IconBulletList, IconCareer, IconCategory, IconCaution, IconChecklist, IconChevron, IconClear, IconCompany, IconCompanyVerified, IconCompose, IconCopy, IconCoverLetter, IconCreditCard, IconCritical, IconDate, IconDelete, IconDesktop, IconDisallow, IconDocument, IconDocumentBroken, IconDownload, IconEdit, IconEducation, IconEnlarge, IconExperience, IconFilter, IconFlag, IconGift, IconGlobe, IconGrid, IconHash, IconHeart, IconHelp, IconHistory, IconHome, IconImage, IconImageBroken, IconInfo, IconInvoice, IconItalic, IconLanguage, IconLicence, IconLink, IconLinkBroken, IconLocation, IconMail, IconMessage, IconMicrophone, IconMinus, IconMobile, IconMoney, IconNewWindow, IconNote, IconNotification, IconNumberedList, IconOverflow, IconPeople, IconPersonAdd, IconPersonVerified, IconPhone, IconPhotoAdd, IconPlatformAndroid, IconPlatformApple, IconPositive, IconPrint, IconProfile, IconPromote, IconQR, IconRecommended, IconRedo, IconRefresh, IconRenderer, IconResume, IconRocket, IconSearch, IconSecurity, IconSend, IconSent, IconSentiment, IconSettings, IconShare, IconSkills, IconSocialFacebook, IconSocialGitHub, IconSocialInstagram, IconSocialLinkedIn, IconSocialMedium, IconSocialTiktok, IconSocialX, IconSocialYouTube, IconSort, IconStar, IconStatistics, IconSubCategory, IconTag, IconThumb, IconTick, IconTime, IconTip, IconTitle, IconUndo, IconUpload, IconVideo, IconVisibility, IconWorkExperience, IconZoomIn, IconZoomOut, Inline, Link, List, Loader, MenuItem, MenuItemCheckbox, MenuItemDivider, MenuItemLink, MenuRenderer, MonthPicker, Notice, OverflowMenu, Page, PageBlock, Pagination, PasswordField, RadioGroup, RadioItem, Rating, Secondary, Spread, Stack, Step, Stepper, Strong, Tab, TabPanel, TabPanels, Table, TableBody, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Tabs, TabsProvider, Tag, Text, TextDropdown, TextField, TextLink, TextLinkButton, Textarea, ThemeNameConsumer, Tiles, ToastProvider, Toggle, TooltipRenderer, filterSuggestions, makeLinkComponent, useColor, useResponsiveValue, useSpace, useThemeName, useToast };
@@ -43,7 +43,8 @@ const SUGGESTION_MOUSE_ENTER = 8;
43
43
  const HAS_SUGGESTIONS_CHANGED = 9;
44
44
  function SuggestionItem({ suggestion, highlighted, selected, onHover, id, ...restProps }) {
45
45
  const { highlights = [], onClear, clearLabel, data } = suggestion;
46
- const suggestionParts = (0, autosuggest_highlight_parse_index_js.default)(suggestion.label ?? suggestion.text, highlights.map(({ start, end }) => [start, end]));
46
+ const label = suggestion.label ?? suggestion.text;
47
+ const suggestionParts = (0, autosuggest_highlight_parse_index_js.default)(label, highlights.map(({ start, end }) => [start, end]));
47
48
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
48
49
  component: "li",
49
50
  cursor: "pointer",
@@ -39,7 +39,8 @@ const SUGGESTION_MOUSE_ENTER = 8;
39
39
  const HAS_SUGGESTIONS_CHANGED = 9;
40
40
  function SuggestionItem({ suggestion, highlighted, selected, onHover, id, ...restProps }) {
41
41
  const { highlights = [], onClear, clearLabel, data } = suggestion;
42
- const suggestionParts = parseHighlights(suggestion.label ?? suggestion.text, highlights.map(({ start, end }) => [start, end]));
42
+ const label = suggestion.label ?? suggestion.text;
43
+ const suggestionParts = parseHighlights(label, highlights.map(({ start, end }) => [start, end]));
43
44
  return /* @__PURE__ */ jsx(Box, {
44
45
  component: "li",
45
46
  cursor: "pointer",
@@ -14,10 +14,11 @@ let react_jsx_runtime = require("react/jsx-runtime");
14
14
  //#region src/lib/components/BraidProvider/BraidProvider.tsx
15
15
  if (process.env.NODE_ENV === "development") require_resetTracker.ensureResetImported();
16
16
  const makeLinkComponent = (render) => ({ __forwardRef__: (0, react.forwardRef)(render) });
17
- const LinkComponentContext = (0, react.createContext)(makeLinkComponent((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
17
+ const DefaultLinkComponent = makeLinkComponent((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
18
18
  ref,
19
19
  ...props
20
- })));
20
+ }));
21
+ const LinkComponentContext = (0, react.createContext)(DefaultLinkComponent);
21
22
  const useLinkComponent = (ref) => {
22
23
  const linkComponent = (0, react.useContext)(LinkComponentContext);
23
24
  (0, assert.default)(!ref || "__forwardRef__" in linkComponent, dedent.default`
@@ -11,10 +11,11 @@ import { jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region src/lib/components/BraidProvider/BraidProvider.tsx
12
12
  if (process.env.NODE_ENV === "development") ensureResetImported();
13
13
  const makeLinkComponent = (render) => ({ __forwardRef__: forwardRef(render) });
14
- const LinkComponentContext = createContext(makeLinkComponent((props, ref) => /* @__PURE__ */ jsx("a", {
14
+ const DefaultLinkComponent = makeLinkComponent((props, ref) => /* @__PURE__ */ jsx("a", {
15
15
  ref,
16
16
  ...props
17
- })));
17
+ }));
18
+ const LinkComponentContext = createContext(DefaultLinkComponent);
18
19
  const useLinkComponent = (ref) => {
19
20
  const linkComponent = useContext(LinkComponentContext);
20
21
  assert(!ref || "__forwardRef__" in linkComponent, dedent`
@@ -2,7 +2,8 @@ import { endFileScope, setFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { keyframes, style } from "@vanilla-extract/css";
3
3
  //#region src/lib/components/Button/ButtonLoader.css.ts
4
4
  setFileScope("src/lib/components/Button/ButtonLoader.css.ts", "braid-design-system");
5
- const loading = style({ animation: `${keyframes({ to: { transform: "rotate(360deg)" } }, "spin")} 0.7s linear infinite` }, "loading");
5
+ const spin = keyframes({ to: { transform: "rotate(360deg)" } }, "spin");
6
+ const loading = style({ animation: `${spin} 0.7s linear infinite` }, "loading");
6
7
  endFileScope();
7
8
  //#endregion
8
9
  export { loading };
@@ -4,9 +4,10 @@ let react = require("react");
4
4
  let react_jsx_runtime = require("react/jsx-runtime");
5
5
  //#region src/lib/components/ButtonLink/ButtonLink.playroom.tsx
6
6
  const ButtonLink = (0, react.forwardRef)(({ variant, ...restProps }, ref) => {
7
+ const isValidVariant = variant && require_Button.buttonVariants.indexOf(variant) > -1;
7
8
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonLink.ButtonLink, {
8
9
  ref,
9
- variant: variant && require_Button.buttonVariants.indexOf(variant) > -1 ? variant : void 0,
10
+ variant: isValidVariant ? variant : void 0,
10
11
  ...restProps
11
12
  });
12
13
  });
@@ -4,9 +4,10 @@ import { forwardRef } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/lib/components/ButtonLink/ButtonLink.playroom.tsx
6
6
  const ButtonLink = forwardRef(({ variant, ...restProps }, ref) => {
7
+ const isValidVariant = variant && buttonVariants.indexOf(variant) > -1;
7
8
  return /* @__PURE__ */ jsx(ButtonLink$1, {
8
9
  ref,
9
- variant: variant && buttonVariants.indexOf(variant) > -1 ? variant : void 0,
10
+ variant: isValidVariant ? variant : void 0,
10
11
  ...restProps
11
12
  });
12
13
  });
@@ -3,8 +3,9 @@ const require_FieldMessage = require("./FieldMessage.cjs");
3
3
  let react_jsx_runtime = require("react/jsx-runtime");
4
4
  //#region src/lib/components/FieldMessage/FieldMessage.playroom.tsx
5
5
  const FieldMessage = ({ id, tone, ...restProps }) => {
6
+ const resolvedId = require_useFallbackId.useFallbackId(id);
6
7
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FieldMessage.FieldMessage, {
7
- id: require_useFallbackId.useFallbackId(id),
8
+ id: resolvedId,
8
9
  tone: tone && require_FieldMessage.tones.indexOf(tone) > -1 ? tone : void 0,
9
10
  ...restProps
10
11
  });
@@ -3,8 +3,9 @@ import { FieldMessage as FieldMessage$1, tones } from "./FieldMessage.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/lib/components/FieldMessage/FieldMessage.playroom.tsx
5
5
  const FieldMessage = ({ id, tone, ...restProps }) => {
6
+ const resolvedId = useFallbackId(id);
6
7
  return /* @__PURE__ */ jsx(FieldMessage$1, {
7
- id: useFallbackId(id),
8
+ id: resolvedId,
8
9
  tone: tone && tones.indexOf(tone) > -1 ? tone : void 0,
9
10
  ...restProps
10
11
  });
@@ -8,7 +8,8 @@ let clsx = require("clsx");
8
8
  clsx = require_runtime.__toESM(clsx, 1);
9
9
  //#region src/lib/components/Link/Link.tsx
10
10
  const Link = (0, react.forwardRef)(({ href, className, data, ...restProps }, ref) => {
11
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_BraidProvider.useLinkComponent(ref), {
11
+ const LinkComponent = require_BraidProvider.useLinkComponent(ref);
12
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LinkComponent, {
12
13
  ref,
13
14
  href,
14
15
  className: (0, clsx.default)(require_atoms.atoms({ reset: "a" }), className),
@@ -6,7 +6,8 @@ import { jsx } from "react/jsx-runtime";
6
6
  import clsx from "clsx";
7
7
  //#region src/lib/components/Link/Link.tsx
8
8
  const Link = forwardRef(({ href, className, data, ...restProps }, ref) => {
9
- return /* @__PURE__ */ jsx(useLinkComponent(ref), {
9
+ const LinkComponent = useLinkComponent(ref);
10
+ return /* @__PURE__ */ jsx(LinkComponent, {
10
11
  ref,
11
12
  href,
12
13
  className: clsx(atoms({ reset: "a" }), className),
@@ -13,11 +13,12 @@ const size = (0, _vanilla_extract_css.styleVariants)(require_vars_css.vars.textS
13
13
  tablet: { height: tablet.fontSize }
14
14
  }), "size");
15
15
  const currentColor = (0, _vanilla_extract_css.style)({ fill: "currentcolor" }, "currentColor");
16
+ const bounce = (0, _vanilla_extract_css.keyframes)({
17
+ "33%": { transform: `translateY(-1.4em)` },
18
+ "66%": { transform: `translateY(1.4em)` }
19
+ }, "bounce");
16
20
  const bounceAnimation = (0, _vanilla_extract_css.style)({
17
- animationName: (0, _vanilla_extract_css.keyframes)({
18
- "33%": { transform: `translateY(-1.4em)` },
19
- "66%": { transform: `translateY(1.4em)` }
20
- }, "bounce"),
21
+ animationName: bounce,
21
22
  animationFillMode: "both",
22
23
  animationIterationCount: "infinite",
23
24
  animationTimingFunction: "ease-in-out",
@@ -27,7 +28,7 @@ const animationDelayInMs = 70;
27
28
  const circle = (0, _vanilla_extract_css.style)([bounceAnimation, (0, _vanilla_extract_css.style)({
28
29
  transform: `translateY(1.4em)`,
29
30
  selectors: {
30
- [`&:nth-child(1)`]: { animationDelay: `${animationDelayInMs * 2}ms` },
31
+ [`&:nth-child(1)`]: { animationDelay: `140ms` },
31
32
  [`&:nth-child(2)`]: { animationDelay: `${animationDelayInMs}ms` }
32
33
  }
33
34
  }, "circle")], "circle");
@@ -13,11 +13,12 @@ const size = styleVariants(vars.textSize, ({ mobile, tablet }) => responsiveStyl
13
13
  tablet: { height: tablet.fontSize }
14
14
  }), "size");
15
15
  const currentColor = style({ fill: "currentcolor" }, "currentColor");
16
+ const bounce = keyframes({
17
+ "33%": { transform: `translateY(-1.4em)` },
18
+ "66%": { transform: `translateY(1.4em)` }
19
+ }, "bounce");
16
20
  const bounceAnimation = style({
17
- animationName: keyframes({
18
- "33%": { transform: `translateY(-1.4em)` },
19
- "66%": { transform: `translateY(1.4em)` }
20
- }, "bounce"),
21
+ animationName: bounce,
21
22
  animationFillMode: "both",
22
23
  animationIterationCount: "infinite",
23
24
  animationTimingFunction: "ease-in-out",
@@ -27,16 +28,17 @@ const animationDelayInMs = 70;
27
28
  const circle = style([bounceAnimation, style({
28
29
  transform: `translateY(1.4em)`,
29
30
  selectors: {
30
- [`&:nth-child(1)`]: { animationDelay: `${animationDelayInMs * 2}ms` },
31
+ [`&:nth-child(1)`]: { animationDelay: `140ms` },
31
32
  [`&:nth-child(2)`]: { animationDelay: `${animationDelayInMs}ms` }
32
33
  }
33
34
  }, "circle")], "circle");
35
+ const fade = keyframes({
36
+ from: { opacity: 0 },
37
+ to: { opacity: 1 }
38
+ }, "fade");
34
39
  const delay = style({
35
40
  opacity: 0,
36
- animationName: keyframes({
37
- from: { opacity: 0 },
38
- to: { opacity: 1 }
39
- }, "fade"),
41
+ animationName: fade,
40
42
  animationIterationCount: "1",
41
43
  animationFillMode: "forwards",
42
44
  animationTimingFunction: "ease-in",
@@ -13,9 +13,10 @@ const validPageBlockComponents = [
13
13
  "nav"
14
14
  ];
15
15
  const PageBlock = ({ children, width = "large", component: componentProp, data, ...restProps }) => {
16
+ const component = componentProp && validPageBlockComponents.includes(componentProp) ? componentProp : "div";
16
17
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
17
18
  width: "full",
18
- component: componentProp && validPageBlockComponents.includes(componentProp) ? componentProp : "div",
19
+ component,
19
20
  paddingX: require_pageBlockGutters.pageBlockGutters,
20
21
  ...require_buildDataAttributes.default({
21
22
  data,
@@ -13,9 +13,10 @@ const validPageBlockComponents = [
13
13
  "nav"
14
14
  ];
15
15
  const PageBlock = ({ children, width = "large", component: componentProp, data, ...restProps }) => {
16
+ const component = componentProp && validPageBlockComponents.includes(componentProp) ? componentProp : "div";
16
17
  return /* @__PURE__ */ jsx(Box, {
17
18
  width: "full",
18
- component: componentProp && validPageBlockComponents.includes(componentProp) ? componentProp : "div",
19
+ component,
19
20
  paddingX: pageBlockGutters,
20
21
  ...buildDataAttributes_default({
21
22
  data,
@@ -76,7 +76,7 @@ const tick = (0, _vanilla_extract_css.style)([
76
76
  const progressBarGap = "xxsmall";
77
77
  const dotSize = 2;
78
78
  const progressTrack = (0, _vanilla_extract_css.style)({
79
- background: `repeating-linear-gradient(90deg, ${baseColourVar}, ${baseColourVar} ${dotSize}px, transparent ${dotSize}px, transparent ${dotSize * 2}px)`,
79
+ background: `repeating-linear-gradient(90deg, ${baseColourVar}, ${baseColourVar} ${dotSize}px, transparent ${dotSize}px, transparent 4px)`,
80
80
  height: require_vars_css.vars.borderWidth.large,
81
81
  width: `${(0, _vanilla_extract_css_utils.calc)("100%").subtract(stepIndicatorSize).subtract((0, _vanilla_extract_css_utils.calc)(require_vars_css.vars.space[progressBarGap]).multiply(2))}`,
82
82
  top: `${(0, _vanilla_extract_css_utils.calc)(stepIndicatorSize).subtract(require_vars_css.vars.borderWidth.large).divide(2)}`,
@@ -76,7 +76,7 @@ const tick = style([
76
76
  const progressBarGap = "xxsmall";
77
77
  const dotSize = 2;
78
78
  const progressTrack = style({
79
- background: `repeating-linear-gradient(90deg, ${baseColourVar}, ${baseColourVar} ${dotSize}px, transparent ${dotSize}px, transparent ${dotSize * 2}px)`,
79
+ background: `repeating-linear-gradient(90deg, ${baseColourVar}, ${baseColourVar} ${dotSize}px, transparent ${dotSize}px, transparent 4px)`,
80
80
  height: vars.borderWidth.large,
81
81
  width: `${calc("100%").subtract(stepIndicatorSize).subtract(calc(vars.space[progressBarGap]).multiply(2))}`,
82
82
  top: `${calc(stepIndicatorSize).subtract(vars.borderWidth.large).divide(2)}`,
@@ -9,7 +9,8 @@ let react = require("react");
9
9
  let react_jsx_runtime = require("react/jsx-runtime");
10
10
  //#region src/lib/components/Table/TableBody.tsx
11
11
  const TableBody = (0, react.forwardRef)(({ children, data, ...restProps }, ref) => {
12
- (0, assert.default)((0, react.useContext)(require_TableContext.TableContext), "TableBody must be used within a Table component");
12
+ const tableContext = (0, react.useContext)(require_TableContext.TableContext);
13
+ (0, assert.default)(tableContext, "TableBody must be used within a Table component");
13
14
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_TableContext.TableBodyContext.Provider, {
14
15
  value: true,
15
16
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
@@ -7,7 +7,8 @@ import { forwardRef, useContext } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  //#region src/lib/components/Table/TableBody.tsx
9
9
  const TableBody = forwardRef(({ children, data, ...restProps }, ref) => {
10
- assert(useContext(TableContext), "TableBody must be used within a Table component");
10
+ const tableContext = useContext(TableContext);
11
+ assert(tableContext, "TableBody must be used within a Table component");
11
12
  return /* @__PURE__ */ jsx(TableBodyContext.Provider, {
12
13
  value: true,
13
14
  children: /* @__PURE__ */ jsx(Box, {
@@ -93,7 +93,8 @@ const TableCell = (0, react.forwardRef)((props, ref) => {
93
93
  });
94
94
  const TableHeaderCell = (0, react.forwardRef)((props, ref) => {
95
95
  const tableHeaderContext = (0, react.useContext)(require_TableContext.TableHeaderContext);
96
- (0, assert.default)((0, react.useContext)(require_TableContext.TableRowContext), "TableHeaderCell cannot be used outside a TableRow component");
96
+ const tableRowContext = (0, react.useContext)(require_TableContext.TableRowContext);
97
+ (0, assert.default)(tableRowContext, "TableHeaderCell cannot be used outside a TableRow component");
97
98
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Cell, {
98
99
  ...props,
99
100
  header: true,
@@ -91,7 +91,8 @@ const TableCell = forwardRef((props, ref) => {
91
91
  });
92
92
  const TableHeaderCell = forwardRef((props, ref) => {
93
93
  const tableHeaderContext = useContext(TableHeaderContext);
94
- assert(useContext(TableRowContext), "TableHeaderCell cannot be used outside a TableRow component");
94
+ const tableRowContext = useContext(TableRowContext);
95
+ assert(tableRowContext, "TableHeaderCell cannot be used outside a TableRow component");
95
96
  return /* @__PURE__ */ jsx(Cell, {
96
97
  ...props,
97
98
  header: true,
@@ -9,7 +9,8 @@ let react = require("react");
9
9
  let react_jsx_runtime = require("react/jsx-runtime");
10
10
  //#region src/lib/components/Table/TableFooter.tsx
11
11
  const TableFooter = (0, react.forwardRef)(({ children, data, ...restProps }, ref) => {
12
- (0, assert.default)((0, react.useContext)(require_TableContext.TableContext), "TableFooter must be used within a Table component");
12
+ const tableContext = (0, react.useContext)(require_TableContext.TableContext);
13
+ (0, assert.default)(tableContext, "TableFooter must be used within a Table component");
13
14
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_TableContext.TableFooterContext.Provider, {
14
15
  value: true,
15
16
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
@@ -7,7 +7,8 @@ import { forwardRef, useContext } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  //#region src/lib/components/Table/TableFooter.tsx
9
9
  const TableFooter = forwardRef(({ children, data, ...restProps }, ref) => {
10
- assert(useContext(TableContext), "TableFooter must be used within a Table component");
10
+ const tableContext = useContext(TableContext);
11
+ assert(tableContext, "TableFooter must be used within a Table component");
11
12
  return /* @__PURE__ */ jsx(TableFooterContext.Provider, {
12
13
  value: true,
13
14
  children: /* @__PURE__ */ jsx(Box, {
@@ -9,7 +9,8 @@ let react = require("react");
9
9
  let react_jsx_runtime = require("react/jsx-runtime");
10
10
  //#region src/lib/components/Table/TableHeader.tsx
11
11
  const TableHeader = (0, react.forwardRef)(({ children, data, ...restProps }, ref) => {
12
- (0, assert.default)((0, react.useContext)(require_TableContext.TableContext), "TableHeader must be used within a Table component");
12
+ const tableContext = (0, react.useContext)(require_TableContext.TableContext);
13
+ (0, assert.default)(tableContext, "TableHeader must be used within a Table component");
13
14
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_TableContext.TableHeaderContext.Provider, {
14
15
  value: true,
15
16
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
@@ -7,7 +7,8 @@ import { forwardRef, useContext } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  //#region src/lib/components/Table/TableHeader.tsx
9
9
  const TableHeader = forwardRef(({ children, data, ...restProps }, ref) => {
10
- assert(useContext(TableContext), "TableHeader must be used within a Table component");
10
+ const tableContext = useContext(TableContext);
11
+ assert(tableContext, "TableHeader must be used within a Table component");
11
12
  return /* @__PURE__ */ jsx(TableHeaderContext.Provider, {
12
13
  value: true,
13
14
  children: /* @__PURE__ */ jsx(Box, {
@@ -18,7 +18,8 @@ const useLinkStyles = ({ reset = "a", weight, showVisited = false, hitArea = "st
18
18
  const backgroundContext = useBackground();
19
19
  const textContext = useContext(TextContext);
20
20
  const isWeakDueToTextTone = !useContext(HeadingContext_default) && textContext?.tone !== "neutral";
21
- return clsx(base, weight === "weak" || isWeakDueToTextTone ? weakLink : [isPlainBackground(backgroundContext.lightMode, "light") || weight === "regular" ? regularLinkLightMode[backgroundLightness.lightMode] : weakLink, isPlainBackground(backgroundContext.darkMode, "dark") || weight === "regular" ? regularLinkDarkMode[backgroundLightness.darkMode] : weakLink], weight !== "weak" ? fontWeight.medium : void 0, showVisited ? [visitedLightMode[backgroundLightness.lightMode], visitedDarkMode[backgroundLightness.darkMode]] : "", reset !== false ? atoms({ reset: typeof reset === "string" ? reset : "a" }) : null, atoms({ cursor: "pointer" }), hitArea === "large" && virtualTouchable);
21
+ const linkStyles = weight === "weak" || isWeakDueToTextTone ? weakLink : [isPlainBackground(backgroundContext.lightMode, "light") || weight === "regular" ? regularLinkLightMode[backgroundLightness.lightMode] : weakLink, isPlainBackground(backgroundContext.darkMode, "dark") || weight === "regular" ? regularLinkDarkMode[backgroundLightness.darkMode] : weakLink];
22
+ return clsx(base, linkStyles, weight !== "weak" ? fontWeight.medium : void 0, showVisited ? [visitedLightMode[backgroundLightness.lightMode], visitedDarkMode[backgroundLightness.darkMode]] : "", reset !== false ? atoms({ reset: typeof reset === "string" ? reset : "a" }) : null, atoms({ cursor: "pointer" }), hitArea === "large" && virtualTouchable);
22
23
  };
23
24
  const TextLinkContent = ({ icon, iconPosition = "leading", children }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
24
25
  icon && iconPosition === "leading" ? /* @__PURE__ */ jsx(AvoidWidowIcon, {
@@ -7,7 +7,7 @@ autosuggest_highlight_parse_index_js = require_runtime.__toESM(autosuggest_highl
7
7
  const formatRanges = (value, highlightRanges, tone) => {
8
8
  if (highlightRanges && value) {
9
9
  let lastEnd = 0;
10
- return (0, autosuggest_highlight_parse_index_js.default)(value, highlightRanges.sort((a, b) => a.start > b.start ? 1 : -1).reduce((acc, { end, start }) => {
10
+ const validatedAndSortedRanges = highlightRanges.sort((a, b) => a.start > b.start ? 1 : -1).reduce((acc, { end, start }) => {
11
11
  const resolvedEnd = end || value.length;
12
12
  if (resolvedEnd <= start) return acc;
13
13
  const adjustedRange = [];
@@ -19,7 +19,8 @@ const formatRanges = (value, highlightRanges, tone) => {
19
19
  lastEnd = resolvedEnd;
20
20
  }
21
21
  return [...acc, ...adjustedRange];
22
- }, []).map(({ start, end }) => [start, end || value.length])).reduce((acc, { text, highlight }, i) => {
22
+ }, []);
23
+ return (0, autosuggest_highlight_parse_index_js.default)(value, validatedAndSortedRanges.map(({ start, end }) => [start, end || value.length])).reduce((acc, { text, highlight }, i) => {
23
24
  if (text) acc.push(highlight ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Highlight.Highlight, {
24
25
  tone,
25
26
  children: text
@@ -5,7 +5,7 @@ import parseHighlights from "autosuggest-highlight/parse/index.js";
5
5
  const formatRanges = (value, highlightRanges, tone) => {
6
6
  if (highlightRanges && value) {
7
7
  let lastEnd = 0;
8
- return parseHighlights(value, highlightRanges.sort((a, b) => a.start > b.start ? 1 : -1).reduce((acc, { end, start }) => {
8
+ const validatedAndSortedRanges = highlightRanges.sort((a, b) => a.start > b.start ? 1 : -1).reduce((acc, { end, start }) => {
9
9
  const resolvedEnd = end || value.length;
10
10
  if (resolvedEnd <= start) return acc;
11
11
  const adjustedRange = [];
@@ -17,7 +17,8 @@ const formatRanges = (value, highlightRanges, tone) => {
17
17
  lastEnd = resolvedEnd;
18
18
  }
19
19
  return [...acc, ...adjustedRange];
20
- }, []).map(({ start, end }) => [start, end || value.length])).reduce((acc, { text, highlight }, i) => {
20
+ }, []);
21
+ return parseHighlights(value, validatedAndSortedRanges.map(({ start, end }) => [start, end || value.length])).reduce((acc, { text, highlight }, i) => {
21
22
  if (text) acc.push(highlight ? /* @__PURE__ */ jsx(Highlight, {
22
23
  tone,
23
24
  children: text
@@ -17,8 +17,9 @@ const offsetSpace = "small";
17
17
  const StaticTooltipContext = (0, react.createContext)(false);
18
18
  const clamp = (min, value, max) => Math.max(min, Math.min(value, max));
19
19
  const TooltipTextDefaultsProvider = ({ children }) => {
20
+ const themeName = require_useThemeName.useThemeName();
20
21
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_defaultTextProps.DefaultTextPropsProvider, {
21
- size: require_useThemeName.useThemeName() === "docs" ? "small" : void 0,
22
+ size: themeName === "docs" ? "small" : void 0,
22
23
  weight: "medium",
23
24
  children
24
25
  });
@@ -15,8 +15,9 @@ const offsetSpace = "small";
15
15
  const StaticTooltipContext = createContext(false);
16
16
  const clamp = (min, value, max) => Math.max(min, Math.min(value, max));
17
17
  const TooltipTextDefaultsProvider = ({ children }) => {
18
+ const themeName = useThemeName();
18
19
  return /* @__PURE__ */ jsx(DefaultTextPropsProvider, {
19
- size: useThemeName() === "docs" ? "small" : void 0,
20
+ size: themeName === "docs" ? "small" : void 0,
20
21
  weight: "medium",
21
22
  children
22
23
  });
@@ -0,0 +1,14 @@
1
+ const require_Box = require("../../Box/Box.cjs");
2
+ const require_IconContainer = require("../IconContainer.cjs");
3
+ const require_IconCompanyVerifiedSvg = require("./IconCompanyVerifiedSvg.cjs");
4
+ let react_jsx_runtime = require("react/jsx-runtime");
5
+ //#region src/lib/components/icons/IconCompanyVerified/IconCompanyVerified.tsx
6
+ const IconCompanyVerified = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_IconContainer.IconContainer, {
7
+ ...props,
8
+ children: (svgProps) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
9
+ component: require_IconCompanyVerifiedSvg.IconCompanyVerifiedSvg,
10
+ ...svgProps
11
+ })
12
+ });
13
+ //#endregion
14
+ exports.IconCompanyVerified = IconCompanyVerified;
@@ -0,0 +1,7 @@
1
+ import { IconContainerProps } from "../IconContainer.cjs";
2
+ import { FC } from "react";
3
+ //#region src/lib/components/icons/IconCompanyVerified/IconCompanyVerified.d.ts
4
+ type IconCompanyVerifiedProps = IconContainerProps;
5
+ declare const IconCompanyVerified: FC<IconCompanyVerifiedProps>;
6
+ //#endregion
7
+ export { IconCompanyVerified, IconCompanyVerifiedProps };
@@ -0,0 +1,7 @@
1
+ import { IconContainerProps } from "../IconContainer.mjs";
2
+ import { FC } from "react";
3
+ //#region src/lib/components/icons/IconCompanyVerified/IconCompanyVerified.d.ts
4
+ type IconCompanyVerifiedProps = IconContainerProps;
5
+ declare const IconCompanyVerified: FC<IconCompanyVerifiedProps>;
6
+ //#endregion
7
+ export { IconCompanyVerified, IconCompanyVerifiedProps };