Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor SidePanel #2903

Open
wants to merge 6 commits into
base: next
Choose a base branch
from
Open

Refactor SidePanel #2903

wants to merge 6 commits into from

Conversation

sirineJ
Copy link
Contributor

@sirineJ sirineJ commented Jan 21, 2025

Addresses DSYS-878

Purpose

Refactor the SidePanel component to replace react-modal with the Dialog component. Remove the react-modal dependency.

Approach and changes

  • Replace DesktopSidePanel and MobileSidePanel with Dialog
  • add default translations for backButtonLabel
  • remove react-modal package
  • split Dialog's preventClose prop into : preventOutsideClickClose , preventEscapeKeyClose and hideCloseButton.

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

@sirineJ sirineJ self-assigned this Jan 21, 2025
Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
oss-circuit-ui ✅ Ready (Inspect) Visit Preview Jan 22, 2025 11:08am

Copy link

changeset-bot bot commented Jan 21, 2025

⚠️ No Changeset found

Latest commit: 2843340

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 21, 2025

Size Change: +3.66 kB (+0.54%)

Total Size: 676 kB

Filename Size Change
packages/circuit-ui/dist/components/DateInput/DateInput.js 3.02 kB +14 B (+0.47%)
packages/circuit-ui/dist/components/Dialog/Dialog.js 1.84 kB +48 B (+2.67%)
packages/circuit-ui/dist/components/Modal/Modal.js 874 B +37 B (+4.42%)
packages/circuit-ui/dist/components/Popover/Popover.js 1.94 kB +11 B (+0.57%)
packages/circuit-ui/dist/components/SidePanel/components/DesktopSidePanel/DesktopSidePanel.js 0 B -442 B (removed) 🏆
packages/circuit-ui/dist/components/SidePanel/components/MobileSidePanel/MobileSidePanel.js 0 B -434 B (removed) 🏆
packages/circuit-ui/dist/components/SidePanel/SidePanel.js 1.11 kB -21 B (-1.85%)
packages/circuit-ui/dist/components/SidePanel/SidePanelContext.js 1.42 kB -286 B (-16.77%) 👏
packages/circuit-ui/dist/components/Toggletip/Toggletip.js 1.49 kB -49 B (-3.18%)
packages/circuit-ui/dist/style.css 20.6 kB -243 B (-1.17%)
packages/circuit-ui/dist/components/SidePanel/translations/bg-BG.json.js 102 B +102 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/cs-CZ.json.js 99 B +99 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/da-DK.json.js 99 B +99 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/de-AT.json.js 99 B +99 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/de-CH.json.js 99 B +99 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/de-DE.json.js 99 B +99 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/de-LU.json.js 99 B +99 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/el-CY.json.js 101 B +101 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/el-GR.json.js 101 B +101 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/en-AU.json.js 96 B +96 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/en-GB.json.js 96 B +96 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/en-IE.json.js 96 B +96 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/en-MT.json.js 96 B +96 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/en-US.json.js 96 B +96 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/es-CL.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/es-CO.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/es-ES.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/es-MX.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/es-PE.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/es-US.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/et-EE.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/fi-FI.json.js 97 B +97 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/fr-BE.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/fr-CH.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/fr-FR.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/fr-LU.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/hr-HR.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/hu-HU.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/index.js 881 B +881 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/it-CH.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/it-IT.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/lt-LT.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/lv-LV.json.js 100 B +100 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/nb-NO.json.js 99 B +99 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/nl-BE.json.js 97 B +97 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/nl-NL.json.js 97 B +97 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/pl-PL.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/pt-BR.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/pt-PT.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/ro-RO.json.js 99 B +99 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/sk-SK.json.js 98 B +98 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/sl-SI.json.js 97 B +97 B (new file) 🆕
packages/circuit-ui/dist/components/SidePanel/translations/sv-SE.json.js 100 B +100 B (new file) 🆕
ℹ️ View Unchanged
Filename Size
packages/circuit-ui/dist/components/Anchor/Anchor.js 440 B
packages/circuit-ui/dist/components/AspectRatio/AspectRatio.js 427 B
packages/circuit-ui/dist/components/Avatar/Avatar.js 920 B
packages/circuit-ui/dist/components/Badge/Badge.js 451 B
packages/circuit-ui/dist/components/Body/Body.js 737 B
packages/circuit-ui/dist/components/BodyLarge/BodyLarge.js 325 B
packages/circuit-ui/dist/components/Button/base.js 1.18 kB
packages/circuit-ui/dist/components/Button/Button.js 540 B
packages/circuit-ui/dist/components/Button/IconButton.js 710 B
packages/circuit-ui/dist/components/Button/translations/bg-BG.json.js 107 B
packages/circuit-ui/dist/components/Button/translations/cs-CZ.json.js 98 B
packages/circuit-ui/dist/components/Button/translations/da-DK.json.js 93 B
packages/circuit-ui/dist/components/Button/translations/de-AT.json.js 91 B
packages/circuit-ui/dist/components/Button/translations/de-CH.json.js 91 B
packages/circuit-ui/dist/components/Button/translations/de-DE.json.js 91 B
packages/circuit-ui/dist/components/Button/translations/de-LU.json.js 91 B
packages/circuit-ui/dist/components/Button/translations/el-CY.json.js 102 B
packages/circuit-ui/dist/components/Button/translations/el-GR.json.js 102 B
packages/circuit-ui/dist/components/Button/translations/en-AU.json.js 90 B
packages/circuit-ui/dist/components/Button/translations/en-GB.json.js 90 B
packages/circuit-ui/dist/components/Button/translations/en-IE.json.js 90 B
packages/circuit-ui/dist/components/Button/translations/en-MT.json.js 90 B
packages/circuit-ui/dist/components/Button/translations/en-US.json.js 90 B
packages/circuit-ui/dist/components/Button/translations/es-CL.json.js 95 B
packages/circuit-ui/dist/components/Button/translations/es-CO.json.js 95 B
packages/circuit-ui/dist/components/Button/translations/es-ES.json.js 95 B
packages/circuit-ui/dist/components/Button/translations/es-MX.json.js 95 B
packages/circuit-ui/dist/components/Button/translations/es-PE.json.js 95 B
packages/circuit-ui/dist/components/Button/translations/es-US.json.js 95 B
packages/circuit-ui/dist/components/Button/translations/et-EE.json.js 91 B
packages/circuit-ui/dist/components/Button/translations/fi-FI.json.js 95 B
packages/circuit-ui/dist/components/Button/translations/fr-BE.json.js 97 B
packages/circuit-ui/dist/components/Button/translations/fr-CH.json.js 97 B
packages/circuit-ui/dist/components/Button/translations/fr-FR.json.js 97 B
packages/circuit-ui/dist/components/Button/translations/fr-LU.json.js 97 B
packages/circuit-ui/dist/components/Button/translations/hr-HR.json.js 98 B
packages/circuit-ui/dist/components/Button/translations/hu-HU.json.js 97 B
packages/circuit-ui/dist/components/Button/translations/index.js 881 B
packages/circuit-ui/dist/components/Button/translations/it-CH.json.js 101 B
packages/circuit-ui/dist/components/Button/translations/it-IT.json.js 101 B
packages/circuit-ui/dist/components/Button/translations/lt-LT.json.js 95 B
packages/circuit-ui/dist/components/Button/translations/lv-LV.json.js 94 B
packages/circuit-ui/dist/components/Button/translations/nb-NO.json.js 93 B
packages/circuit-ui/dist/components/Button/translations/nl-BE.json.js 92 B
packages/circuit-ui/dist/components/Button/translations/nl-NL.json.js 92 B
packages/circuit-ui/dist/components/Button/translations/pl-PL.json.js 100 B
packages/circuit-ui/dist/components/Button/translations/pt-BR.json.js 97 B
packages/circuit-ui/dist/components/Button/translations/pt-PT.json.js 97 B
packages/circuit-ui/dist/components/Button/translations/ro-RO.json.js 99 B
packages/circuit-ui/dist/components/Button/translations/sk-SK.json.js 113 B
packages/circuit-ui/dist/components/Button/translations/sl-SI.json.js 96 B
packages/circuit-ui/dist/components/Button/translations/sv-SE.json.js 94 B
packages/circuit-ui/dist/components/ButtonGroup/ButtonGroup.js 586 B
packages/circuit-ui/dist/components/Calendar/Calendar.js 2.92 kB
packages/circuit-ui/dist/components/Calendar/CalendarService.js 1.63 kB
packages/circuit-ui/dist/components/Calendar/translations/bg-BG.json.js 158 B
packages/circuit-ui/dist/components/Calendar/translations/cs-CZ.json.js 139 B
packages/circuit-ui/dist/components/Calendar/translations/da-DK.json.js 133 B
packages/circuit-ui/dist/components/Calendar/translations/de-AT.json.js 137 B
packages/circuit-ui/dist/components/Calendar/translations/de-CH.json.js 137 B
packages/circuit-ui/dist/components/Calendar/translations/de-DE.json.js 137 B
packages/circuit-ui/dist/components/Calendar/translations/de-LU.json.js 136 B
packages/circuit-ui/dist/components/Calendar/translations/el-CY.json.js 158 B
packages/circuit-ui/dist/components/Calendar/translations/el-GR.json.js 158 B
packages/circuit-ui/dist/components/Calendar/translations/en-AU.json.js 130 B
packages/circuit-ui/dist/components/Calendar/translations/en-GB.json.js 129 B
packages/circuit-ui/dist/components/Calendar/translations/en-IE.json.js 130 B
packages/circuit-ui/dist/components/Calendar/translations/en-MT.json.js 129 B
packages/circuit-ui/dist/components/Calendar/translations/en-US.json.js 130 B
packages/circuit-ui/dist/components/Calendar/translations/es-CL.json.js 128 B
packages/circuit-ui/dist/components/Calendar/translations/es-CO.json.js 129 B
packages/circuit-ui/dist/components/Calendar/translations/es-ES.json.js 130 B
packages/circuit-ui/dist/components/Calendar/translations/es-MX.json.js 128 B
packages/circuit-ui/dist/components/Calendar/translations/es-PE.json.js 130 B
packages/circuit-ui/dist/components/Calendar/translations/es-US.json.js 130 B
packages/circuit-ui/dist/components/Calendar/translations/et-EE.json.js 130 B
packages/circuit-ui/dist/components/Calendar/translations/fi-FI.json.js 135 B
packages/circuit-ui/dist/components/Calendar/translations/fr-BE.json.js 135 B
packages/circuit-ui/dist/components/Calendar/translations/fr-CH.json.js 135 B
packages/circuit-ui/dist/components/Calendar/translations/fr-FR.json.js 135 B
packages/circuit-ui/dist/components/Calendar/translations/fr-LU.json.js 135 B
packages/circuit-ui/dist/components/Calendar/translations/hr-HR.json.js 138 B
packages/circuit-ui/dist/components/Calendar/translations/hu-HU.json.js 137 B
packages/circuit-ui/dist/components/Calendar/translations/index.js 881 B
packages/circuit-ui/dist/components/Calendar/translations/it-CH.json.js 132 B
packages/circuit-ui/dist/components/Calendar/translations/it-IT.json.js 132 B
packages/circuit-ui/dist/components/Calendar/translations/lt-LT.json.js 134 B
packages/circuit-ui/dist/components/Calendar/translations/lv-LV.json.js 145 B
packages/circuit-ui/dist/components/Calendar/translations/nb-NO.json.js 131 B
packages/circuit-ui/dist/components/Calendar/translations/nl-BE.json.js 126 B
packages/circuit-ui/dist/components/Calendar/translations/nl-NL.json.js 126 B
packages/circuit-ui/dist/components/Calendar/translations/pl-PL.json.js 141 B
packages/circuit-ui/dist/components/Calendar/translations/pt-BR.json.js 133 B
packages/circuit-ui/dist/components/Calendar/translations/pt-PT.json.js 134 B
packages/circuit-ui/dist/components/Calendar/translations/ro-RO.json.js 135 B
packages/circuit-ui/dist/components/Calendar/translations/sk-SK.json.js 144 B
packages/circuit-ui/dist/components/Calendar/translations/sl-SI.json.js 135 B
packages/circuit-ui/dist/components/Calendar/translations/sv-SE.json.js 140 B
packages/circuit-ui/dist/components/Card/Card.js 284 B
packages/circuit-ui/dist/components/Card/components/Footer/Footer.js 300 B
packages/circuit-ui/dist/components/Card/components/Header/Header.js 427 B
packages/circuit-ui/dist/components/Carousel/Carousel.js 1.24 kB
packages/circuit-ui/dist/components/Carousel/components/Buttons/Buttons.js 377 B
packages/circuit-ui/dist/components/Carousel/components/Container/Container.js 204 B
packages/circuit-ui/dist/components/Carousel/components/Controls/Controls.js 203 B
packages/circuit-ui/dist/components/Carousel/components/Slide/Slide.js 619 B
packages/circuit-ui/dist/components/Carousel/components/Slide/SlideService.js 350 B
packages/circuit-ui/dist/components/Carousel/components/SlideImage/SlideImage.js 294 B
packages/circuit-ui/dist/components/Carousel/components/Slides/Slides.js 224 B
packages/circuit-ui/dist/components/Carousel/components/Status/Status.js 279 B
packages/circuit-ui/dist/components/Carousel/constants.js 223 B
packages/circuit-ui/dist/components/Carousel/index.js 235 B
packages/circuit-ui/dist/components/Checkbox/Checkbox.js 1.02 kB
packages/circuit-ui/dist/components/Checkbox/IndeterminateIcon.js 270 B
packages/circuit-ui/dist/components/CheckboxGroup/CheckboxGroup.js 904 B
packages/circuit-ui/dist/components/CloseButton/CloseButton.js 286 B
packages/circuit-ui/dist/components/ColorInput/ColorInput.js 1.38 kB
packages/circuit-ui/dist/components/ColorInput/ColorInputService.js 291 B
packages/circuit-ui/dist/components/Compact/Compact.js 317 B
packages/circuit-ui/dist/components/ComponentsContext/components/Link/Link.js 191 B
packages/circuit-ui/dist/components/ComponentsContext/ComponentsContext.js 154 B
packages/circuit-ui/dist/components/ComponentsContext/useComponents.js 172 B
packages/circuit-ui/dist/components/CurrencyInput/CurrencyInput.js 914 B
packages/circuit-ui/dist/components/CurrencyInput/CurrencyInputService.js 165 B
packages/circuit-ui/dist/components/DateInput/components/DateSegment.js 1.17 kB
packages/circuit-ui/dist/components/DateInput/DateInputService.js 333 B
packages/circuit-ui/dist/components/DateInput/hooks/usePlainDateState.js 1.16 kB
packages/circuit-ui/dist/components/DateInput/hooks/useSegmentFocus.js 391 B
packages/circuit-ui/dist/components/DateInput/translations/bg-BG.json.js 258 B
packages/circuit-ui/dist/components/DateInput/translations/cs-CZ.json.js 214 B
packages/circuit-ui/dist/components/DateInput/translations/da-DK.json.js 202 B
packages/circuit-ui/dist/components/DateInput/translations/de-AT.json.js 207 B
packages/circuit-ui/dist/components/DateInput/translations/de-CH.json.js 207 B
packages/circuit-ui/dist/components/DateInput/translations/de-DE.json.js 207 B
packages/circuit-ui/dist/components/DateInput/translations/de-LU.json.js 207 B
packages/circuit-ui/dist/components/DateInput/translations/el-CY.json.js 262 B
packages/circuit-ui/dist/components/DateInput/translations/el-GR.json.js 263 B
packages/circuit-ui/dist/components/DateInput/translations/en-AU.json.js 193 B
packages/circuit-ui/dist/components/DateInput/translations/en-GB.json.js 193 B
packages/circuit-ui/dist/components/DateInput/translations/en-IE.json.js 193 B
packages/circuit-ui/dist/components/DateInput/translations/en-MT.json.js 193 B
packages/circuit-ui/dist/components/DateInput/translations/en-US.json.js 194 B
packages/circuit-ui/dist/components/DateInput/translations/es-CL.json.js 206 B
packages/circuit-ui/dist/components/DateInput/translations/es-CO.json.js 204 B
packages/circuit-ui/dist/components/DateInput/translations/es-ES.json.js 205 B
packages/circuit-ui/dist/components/DateInput/translations/es-MX.json.js 204 B
packages/circuit-ui/dist/components/DateInput/translations/es-PE.json.js 205 B
packages/circuit-ui/dist/components/DateInput/translations/es-US.json.js 205 B
packages/circuit-ui/dist/components/DateInput/translations/et-EE.json.js 214 B
packages/circuit-ui/dist/components/DateInput/translations/fi-FI.json.js 222 B
packages/circuit-ui/dist/components/DateInput/translations/fr-BE.json.js 211 B
packages/circuit-ui/dist/components/DateInput/translations/fr-CH.json.js 211 B
packages/circuit-ui/dist/components/DateInput/translations/fr-FR.json.js 211 B
packages/circuit-ui/dist/components/DateInput/translations/fr-LU.json.js 211 B
packages/circuit-ui/dist/components/DateInput/translations/hr-HR.json.js 207 B
packages/circuit-ui/dist/components/DateInput/translations/hu-HU.json.js 222 B
packages/circuit-ui/dist/components/DateInput/translations/index.js 881 B
packages/circuit-ui/dist/components/DateInput/translations/it-CH.json.js 202 B
packages/circuit-ui/dist/components/DateInput/translations/it-IT.json.js 203 B
packages/circuit-ui/dist/components/DateInput/translations/lt-LT.json.js 209 B
packages/circuit-ui/dist/components/DateInput/translations/lv-LV.json.js 215 B
packages/circuit-ui/dist/components/DateInput/translations/nb-NO.json.js 202 B
packages/circuit-ui/dist/components/DateInput/translations/nl-BE.json.js 198 B
packages/circuit-ui/dist/components/DateInput/translations/nl-NL.json.js 198 B
packages/circuit-ui/dist/components/DateInput/translations/pl-PL.json.js 212 B
packages/circuit-ui/dist/components/DateInput/translations/pt-BR.json.js 199 B
packages/circuit-ui/dist/components/DateInput/translations/pt-PT.json.js 200 B
packages/circuit-ui/dist/components/DateInput/translations/ro-RO.json.js 207 B
packages/circuit-ui/dist/components/DateInput/translations/sk-SK.json.js 214 B
packages/circuit-ui/dist/components/DateInput/translations/sl-SI.json.js 206 B
packages/circuit-ui/dist/components/DateInput/translations/sv-SE.json.js 207 B
packages/circuit-ui/dist/components/Dialog/DialogService.js 328 B
packages/circuit-ui/dist/components/Dialog/translations/bg-BG.json.js 108 B
packages/circuit-ui/dist/components/Dialog/translations/cs-CZ.json.js 100 B
packages/circuit-ui/dist/components/Dialog/translations/da-DK.json.js 96 B
packages/circuit-ui/dist/components/Dialog/translations/de-AT.json.js 103 B
packages/circuit-ui/dist/components/Dialog/translations/de-CH.json.js 103 B
packages/circuit-ui/dist/components/Dialog/translations/de-DE.json.js 103 B
packages/circuit-ui/dist/components/Dialog/translations/de-LU.json.js 103 B
packages/circuit-ui/dist/components/Dialog/translations/el-CY.json.js 111 B
packages/circuit-ui/dist/components/Dialog/translations/el-GR.json.js 111 B
packages/circuit-ui/dist/components/Dialog/translations/en-AU.json.js 96 B
packages/circuit-ui/dist/components/Dialog/translations/en-GB.json.js 96 B
packages/circuit-ui/dist/components/Dialog/translations/en-IE.json.js 96 B
packages/circuit-ui/dist/components/Dialog/translations/en-MT.json.js 96 B
packages/circuit-ui/dist/components/Dialog/translations/en-US.json.js 96 B
packages/circuit-ui/dist/components/Dialog/translations/es-CL.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/es-CO.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/es-ES.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/es-MX.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/es-PE.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/es-US.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/et-EE.json.js 98 B
packages/circuit-ui/dist/components/Dialog/translations/fi-FI.json.js 98 B
packages/circuit-ui/dist/components/Dialog/translations/fr-BE.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/fr-CH.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/fr-FR.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/fr-LU.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/hr-HR.json.js 100 B
packages/circuit-ui/dist/components/Dialog/translations/hu-HU.json.js 102 B
packages/circuit-ui/dist/components/Dialog/translations/index.js 881 B
packages/circuit-ui/dist/components/Dialog/translations/it-CH.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/it-IT.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/lt-LT.json.js 102 B
packages/circuit-ui/dist/components/Dialog/translations/lv-LV.json.js 101 B
packages/circuit-ui/dist/components/Dialog/translations/nb-NO.json.js 97 B
packages/circuit-ui/dist/components/Dialog/translations/nl-BE.json.js 98 B
packages/circuit-ui/dist/components/Dialog/translations/nl-NL.json.js 100 B
packages/circuit-ui/dist/components/Dialog/translations/pl-PL.json.js 100 B
packages/circuit-ui/dist/components/Dialog/translations/pt-BR.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/pt-PT.json.js 99 B
packages/circuit-ui/dist/components/Dialog/translations/ro-RO.json.js 101 B
packages/circuit-ui/dist/components/Dialog/translations/sk-SK.json.js 102 B
packages/circuit-ui/dist/components/Dialog/translations/sl-SI.json.js 98 B
packages/circuit-ui/dist/components/Dialog/translations/sv-SE.json.js 99 B
packages/circuit-ui/dist/components/Display/Display.js 617 B
packages/circuit-ui/dist/components/Field/Field.js 1.03 kB
packages/circuit-ui/dist/components/Field/FieldService.js 173 B
packages/circuit-ui/dist/components/Hamburger/Hamburger.js 786 B
packages/circuit-ui/dist/components/Headline/Headline.js 603 B
packages/circuit-ui/dist/components/Hr/Hr.js 290 B
packages/circuit-ui/dist/components/Image/Image.js 320 B
packages/circuit-ui/dist/components/ImageInput/ImageInput.js 1.66 kB
packages/circuit-ui/dist/components/Input/Input.js 1.03 kB
packages/circuit-ui/dist/components/legacy/Grid/Col/Col.js 672 B
packages/circuit-ui/dist/components/legacy/Grid/constants.js 93 B
packages/circuit-ui/dist/components/legacy/Grid/Grid/Grid.js 325 B
packages/circuit-ui/dist/components/legacy/Grid/Row/Row.js 319 B
packages/circuit-ui/dist/components/legacy/Grid/utils.js 499 B
packages/circuit-ui/dist/components/legacy/InlineElements/InlineElements.js 718 B
packages/circuit-ui/dist/components/legacy/Tooltip/Tooltip.js 759 B
packages/circuit-ui/dist/components/List/List.js 476 B
packages/circuit-ui/dist/components/ListItem/ListItem.js 1.12 kB
packages/circuit-ui/dist/components/ListItemGroup/ListItemGroup.js 1.01 kB
packages/circuit-ui/dist/components/Modal/createUseModal.js 351 B
packages/circuit-ui/dist/components/Modal/index.js 114 B
packages/circuit-ui/dist/components/Modal/ModalContext.js 684 B
packages/circuit-ui/dist/components/Notification/constants.js 169 B
packages/circuit-ui/dist/components/NotificationBanner/NotificationBanner.js 1.19 kB
packages/circuit-ui/dist/components/NotificationFullscreen/NotificationFullscreen.js 626 B
packages/circuit-ui/dist/components/NotificationInline/NotificationInline.js 1.12 kB
packages/circuit-ui/dist/components/NotificationModal/NotificationModal.js 1.05 kB
packages/circuit-ui/dist/components/NotificationModal/useNotificationModal.js 131 B
packages/circuit-ui/dist/components/NotificationToast/NotificationToast.js 1.06 kB
packages/circuit-ui/dist/components/Numeral/Numeral.js 294 B
packages/circuit-ui/dist/components/Pagination/components/PageList/PageList.js 470 B
packages/circuit-ui/dist/components/Pagination/components/PageSelect/PageSelect.js 505 B
packages/circuit-ui/dist/components/Pagination/Pagination.js 842 B
packages/circuit-ui/dist/components/Pagination/PaginationService.js 133 B
packages/circuit-ui/dist/components/PercentageInput/PercentageInput.js 805 B
packages/circuit-ui/dist/components/PercentageInput/PercentageInputService.js 165 B
packages/circuit-ui/dist/components/PhoneNumberInput/PhoneNumberInput.js 1.79 kB
packages/circuit-ui/dist/components/PhoneNumberInput/PhoneNumberInputService.js 665 B
packages/circuit-ui/dist/components/Popover/components/PopoverItem.js 424 B
packages/circuit-ui/dist/components/ProgressBar/ProgressBar.js 1 kB
packages/circuit-ui/dist/components/RadioButton/RadioButton.js 879 B
packages/circuit-ui/dist/components/RadioButtonGroup/RadioButtonGroup.js 1.02 kB
packages/circuit-ui/dist/components/SearchInput/SearchInput.js 746 B
packages/circuit-ui/dist/components/Select/Select.js 1.14 kB
packages/circuit-ui/dist/components/Selector/Selector.js 1.15 kB
packages/circuit-ui/dist/components/SelectorGroup/SelectorGroup.js 1.09 kB
packages/circuit-ui/dist/components/SideNavigation/components/DesktopNavigation/DesktopNavigation.js 729 B
packages/circuit-ui/dist/components/SideNavigation/components/MobileNavigation/MobileNavigation.js 1.23 kB
packages/circuit-ui/dist/components/SideNavigation/components/PrimaryLink/PrimaryLink.js 997 B
packages/circuit-ui/dist/components/SideNavigation/components/SecondaryLinks/SecondaryLinks.js 895 B
packages/circuit-ui/dist/components/SideNavigation/SideNavigation.js 605 B
packages/circuit-ui/dist/components/SidePanel/components/Header/Header.js 466 B
packages/circuit-ui/dist/components/SidePanel/constants.js 114 B
packages/circuit-ui/dist/components/SidePanel/useSidePanel.js 511 B
packages/circuit-ui/dist/components/Skeleton/Skeleton.js 521 B
packages/circuit-ui/dist/components/SkipLink/SkipLink.js 202 B
packages/circuit-ui/dist/components/Spinner/Spinner.js 458 B
packages/circuit-ui/dist/components/StackContext/StackContext.js 133 B
packages/circuit-ui/dist/components/Step/hooks/useStep.js 1.16 kB
packages/circuit-ui/dist/components/Step/Step.js 248 B
packages/circuit-ui/dist/components/Step/StepService.js 625 B
packages/circuit-ui/dist/components/SubHeadline/SubHeadline.js 328 B
packages/circuit-ui/dist/components/Table/components/SortArrow/SortArrow.js 405 B
packages/circuit-ui/dist/components/Table/components/TableBody/TableBody.js 521 B
packages/circuit-ui/dist/components/Table/components/TableCell/TableCell.js 383 B
packages/circuit-ui/dist/components/Table/components/TableHead/TableHead.js 653 B
packages/circuit-ui/dist/components/Table/components/TableHeader/TableHeader.js 650 B
packages/circuit-ui/dist/components/Table/components/TableRow/TableRow.js 260 B
packages/circuit-ui/dist/components/Table/Table.js 1.43 kB
packages/circuit-ui/dist/components/Table/utils.js 675 B
packages/circuit-ui/dist/components/Tabs/components/Tab/Tab.js 406 B
packages/circuit-ui/dist/components/Tabs/components/TabList/TabList.js 499 B
packages/circuit-ui/dist/components/Tabs/components/TabPanel/TabPanel.js 265 B
packages/circuit-ui/dist/components/Tabs/Tabs.js 978 B
packages/circuit-ui/dist/components/Tag/Tag.js 917 B
packages/circuit-ui/dist/components/TextArea/TextArea.js 388 B
packages/circuit-ui/dist/components/TextArea/useAutoExpand.js 576 B
packages/circuit-ui/dist/components/Timestamp/Timestamp.js 680 B
packages/circuit-ui/dist/components/Timestamp/TimestampService.js 831 B
packages/circuit-ui/dist/components/Title/Title.js 295 B
packages/circuit-ui/dist/components/ToastContext/createUseToast.js 256 B
packages/circuit-ui/dist/components/ToastContext/ToastContext.js 944 B
packages/circuit-ui/dist/components/Toggle/Toggle.js 897 B
packages/circuit-ui/dist/components/Tooltip/Tooltip.js 1.69 kB
packages/circuit-ui/dist/components/TopNavigation/components/UtilityLinks/UtilityLinks.js 646 B
packages/circuit-ui/dist/components/TopNavigation/TopNavigation.js 670 B
packages/circuit-ui/dist/experimental.js 96 B
packages/circuit-ui/dist/hooks/useAnimation/useAnimation.js 311 B
packages/circuit-ui/dist/hooks/useClickOutside/useClickOutside.js 412 B
packages/circuit-ui/dist/hooks/useCollapsible/useCollapsible.js 754 B
packages/circuit-ui/dist/hooks/useComponentSize/useComponentSize.js 472 B
packages/circuit-ui/dist/hooks/useEscapeKey/useEscapeKey.js 278 B
packages/circuit-ui/dist/hooks/useFocusList/useFocusList.js 436 B
packages/circuit-ui/dist/hooks/useI18n/useI18n.js 297 B
packages/circuit-ui/dist/hooks/useLatest/useLatest.js 211 B
packages/circuit-ui/dist/hooks/useLocale/useLocale.js 389 B
packages/circuit-ui/dist/hooks/useMedia/useMedia.js 254 B
packages/circuit-ui/dist/hooks/usePrevious/usePrevious.js 214 B
packages/circuit-ui/dist/hooks/useScrollLock/useScrollLock.js 434 B
packages/circuit-ui/dist/hooks/useStack/useStack.js 620 B
packages/circuit-ui/dist/hooks/useSwipe/useSwipe.js 455 B
packages/circuit-ui/dist/index.js 1.42 kB
packages/circuit-ui/dist/legacy.js 356 B
packages/circuit-ui/dist/styles/clsx.js 126 B
packages/circuit-ui/dist/styles/is-prop-valid.js 114 B
packages/circuit-ui/dist/styles/shared.js 267 B
packages/circuit-ui/dist/styles/style-mixins.js 1.39 kB
packages/circuit-ui/dist/styles/styled.js 100 B
packages/circuit-ui/dist/styles/utility.js 188 B
packages/circuit-ui/dist/util/date.js 685 B
packages/circuit-ui/dist/util/env.js 166 B
packages/circuit-ui/dist/util/errors.js 658 B
packages/circuit-ui/dist/util/helpers.js 699 B
packages/circuit-ui/dist/util/i18n.js 708 B
packages/circuit-ui/dist/util/id.js 127 B
packages/circuit-ui/dist/util/input-value.js 254 B
packages/circuit-ui/dist/util/key-codes.js 185 B
packages/circuit-ui/dist/util/logger.js 237 B
packages/circuit-ui/dist/util/promises.js 93 B
packages/circuit-ui/dist/util/refs.js 176 B
packages/circuit-ui/dist/util/type-check.js 205 B
packages/circuit-ui/dist/vendor/dialog-polyfill/index.js 5.76 kB
packages/design-tokens/dist/cjs/index.js 1.27 kB
packages/design-tokens/dist/cjs/scripts/build.js 1.79 kB
packages/design-tokens/dist/cjs/themes/dark.js 1.56 kB
packages/design-tokens/dist/cjs/themes/fonts.js 1.06 kB
packages/design-tokens/dist/cjs/themes/legacy/light.js 1.5 kB
packages/design-tokens/dist/cjs/themes/light.js 1.63 kB
packages/design-tokens/dist/cjs/themes/schema.js 1.93 kB
packages/design-tokens/dist/cjs/themes/shared.js 1.55 kB
packages/design-tokens/dist/cjs/types/index.js 439 B
packages/design-tokens/dist/cjs/utils/theme-prop-type.js 1.29 kB
packages/design-tokens/dist/es/index.js 676 B
packages/design-tokens/dist/es/scripts/build.js 1.61 kB
packages/design-tokens/dist/es/themes/dark.js 1.5 kB
packages/design-tokens/dist/es/themes/fonts.js 1 kB
packages/design-tokens/dist/es/themes/legacy/light.js 1.4 kB
packages/design-tokens/dist/es/themes/light.js 1.57 kB
packages/design-tokens/dist/es/themes/schema.js 1.87 kB
packages/design-tokens/dist/es/themes/shared.js 1.49 kB
packages/design-tokens/dist/es/types/index.js 392 B
packages/design-tokens/dist/es/utils/theme-prop-type.js 1.14 kB
packages/icons/dist/Accessibility.js 1.19 kB
packages/icons/dist/Account.js 1.39 kB
packages/icons/dist/Accounting.js 1.25 kB
packages/icons/dist/ActivateCard.js 1.47 kB
packages/icons/dist/Active.js 1.09 kB
packages/icons/dist/Add.js 1.2 kB
packages/icons/dist/AddEmployees.js 1.07 kB
packages/icons/dist/AddItems.js 1.02 kB
packages/icons/dist/Alarm.js 1.59 kB
packages/icons/dist/Alelo.js 1.66 kB
packages/icons/dist/Alert.js 1.19 kB
packages/icons/dist/AlternativePaymentMethod.js 1.9 kB
packages/icons/dist/AmericanExpress.js 2.73 kB
packages/icons/dist/Apm.js 1.4 kB
packages/icons/dist/ApplePay.js 2.23 kB
packages/icons/dist/Apps.js 1.26 kB
packages/icons/dist/Archive.js 960 B
packages/icons/dist/Area.js 1.06 kB
packages/icons/dist/ArrowDown.js 1.01 kB
packages/icons/dist/ArrowLeft.js 1.1 kB
packages/icons/dist/ArrowRight.js 1.13 kB
packages/icons/dist/ArrowSlanted.js 1.36 kB
packages/icons/dist/ArrowUp.js 1.01 kB
packages/icons/dist/Article.js 1.39 kB
packages/icons/dist/Atm.js 1.04 kB
packages/icons/dist/Attachment.js 1.14 kB
packages/icons/dist/AutomaticBalanceTransfer.js 1.1 kB
packages/icons/dist/BancoEstado.js 2.53 kB
packages/icons/dist/Bancontact.js 4.64 kB
packages/icons/dist/Bank.js 978 B
packages/icons/dist/Barcode.js 1.06 kB
packages/icons/dist/Basket.js 1.07 kB
packages/icons/dist/Battery.js 1.25 kB
packages/icons/dist/BatteryAlert.js 1.1 kB
packages/icons/dist/Bitcoin.js 1.42 kB
packages/icons/dist/Blik.js 2.3 kB
packages/icons/dist/Bluetooth.js 1.59 kB
packages/icons/dist/Boleto.js 3.08 kB
packages/icons/dist/Briefcase.js 1.11 kB
packages/icons/dist/BrowserSecure.js 1.08 kB
packages/icons/dist/Cafe.js 1.03 kB
packages/icons/dist/Calendar.js 1.02 kB
packages/icons/dist/Callback.js 1.73 kB
packages/icons/dist/Camera.js 1.12 kB
packages/icons/dist/CardIn.js 1.52 kB
packages/icons/dist/CardOut.js 1.47 kB
packages/icons/dist/CardReaderAir.js 1 kB
packages/icons/dist/CardReaderSolo.js 967 B
packages/icons/dist/CardReaderSoloLite.js 1.02 kB
packages/icons/dist/CardSecurity.js 1.08 kB
packages/icons/dist/CardUnknown.js 1.74 kB
packages/icons/dist/Cash.js 1.04 kB
packages/icons/dist/CashAdvance.js 1.14 kB
packages/icons/dist/CashStack.js 1.04 kB
packages/icons/dist/Challenge.js 1.01 kB
packages/icons/dist/Checkmark.js 1.26 kB
packages/icons/dist/Checkout.js 988 B
packages/icons/dist/Cheque.js 1.36 kB
packages/icons/dist/ChevronDown.js 1.08 kB
packages/icons/dist/ChevronLeft.js 1.07 kB
packages/icons/dist/ChevronRight.js 1.08 kB
packages/icons/dist/ChevronUp.js 1.09 kB
packages/icons/dist/Close.js 1.08 kB
packages/icons/dist/Clothing.js 1.16 kB
packages/icons/dist/Code.js 1.1 kB
packages/icons/dist/ColorCorrection.js 1.1 kB
packages/icons/dist/ColorInversion.js 1.11 kB
packages/icons/dist/Company.js 1.02 kB
packages/icons/dist/Conecs.js 2.55 kB
packages/icons/dist/Confirm.js 1.13 kB
packages/icons/dist/ContactPicker.js 1.37 kB
packages/icons/dist/Cookie.js 1.14 kB
packages/icons/dist/CookiePreferences.js 1.19 kB
packages/icons/dist/Copy.js 979 B
packages/icons/dist/CreditNote.js 1.23 kB
packages/icons/dist/Crop.js 978 B
packages/icons/dist/CustomAmount.js 1.32 kB
packages/icons/dist/Customize.js 1.05 kB
packages/icons/dist/Dankort.js 1.17 kB
packages/icons/dist/Delete.js 1.1 kB
packages/icons/dist/DeliveryNote.js 1.45 kB
packages/icons/dist/DinersClub.js 9.19 kB
packages/icons/dist/DirectDebit.js 1.41 kB
packages/icons/dist/Discount.js 1.64 kB
packages/icons/dist/Discover.js 2.54 kB
packages/icons/dist/Download.js 1.33 kB
packages/icons/dist/DownloadCloud.js 1.08 kB
packages/icons/dist/Drag.js 1.14 kB
packages/icons/dist/DriverLicense.js 1.14 kB
packages/icons/dist/Ec.js 2.82 kB
packages/icons/dist/Edit.js 1.23 kB
packages/icons/dist/Eftpos.js 3.82 kB
packages/icons/dist/ElectronicInvoice.js 1.26 kB
packages/icons/dist/Elo.js 2.13 kB
packages/icons/dist/Elv.js 1.48 kB
packages/icons/dist/Email.js 1.02 kB
packages/icons/dist/EmailChat.js 1.06 kB
packages/icons/dist/Employees.js 1.88 kB
packages/icons/dist/Eps.js 4.12 kB
packages/icons/dist/Expenses.js 1.46 kB
packages/icons/dist/ExternalLink.js 1.13 kB
packages/icons/dist/Facebook.js 1.08 kB
packages/icons/dist/FacebookMessenger.js 1.07 kB
packages/icons/dist/FasterPayments.js 2.4 kB
packages/icons/dist/Favorite.js 1.24 kB
packages/icons/dist/FeeCalculator.js 1.07 kB
packages/icons/dist/FeesSummary.js 1.04 kB
packages/icons/dist/File.js 930 B
packages/icons/dist/Filter.js 1.2 kB
packages/icons/dist/FilterApplied.js 1.49 kB
packages/icons/dist/FlagAe.js 1.21 kB
packages/icons/dist/FlagAr.js 3.61 kB
packages/icons/dist/FlagAt.js 1.2 kB
packages/icons/dist/FlagAu.js 1.67 kB
packages/icons/dist/FlagBe.js 1.21 kB
packages/icons/dist/FlagBg.js 1.2 kB
packages/icons/dist/FlagBr.js 1.43 kB
packages/icons/dist/FlagCa.js 1.46 kB
packages/icons/dist/FlagCh.js 1.25 kB
packages/icons/dist/FlagCl.js 1.26 kB
packages/icons/dist/FlagCo.js 1.16 kB
packages/icons/dist/FlagCy.js 2.19 kB
packages/icons/dist/FlagCz.js 1.24 kB
packages/icons/dist/FlagDe.js 1.22 kB
packages/icons/dist/FlagDk.js 1.21 kB
packages/icons/dist/FlagEe.js 1.19 kB
packages/icons/dist/FlagEs.js 1.19 kB
packages/icons/dist/FlagFi.js 1.21 kB
packages/icons/dist/FlagFr.js 1.22 kB
packages/icons/dist/FlagGb.js 1.83 kB
packages/icons/dist/FlagGr.js 1.2 kB
packages/icons/dist/FlagHk.js 1.48 kB
packages/icons/dist/FlagHr.js 3.37 kB
packages/icons/dist/FlagHu.js 1.2 kB
packages/icons/dist/FlagIe.js 1.21 kB
packages/icons/dist/FlagIt.js 1.22 kB
packages/icons/dist/FlagJa.js 1.19 kB
packages/icons/dist/FlagJp.js 1.16 kB
packages/icons/dist/FlagLt.js 1.2 kB
packages/icons/dist/FlagLu.js 1.2 kB
packages/icons/dist/FlagLv.js 1.17 kB
packages/icons/dist/FlagMt.js 1.67 kB
packages/icons/dist/FlagMx.js 1.24 kB
packages/icons/dist/FlagMy.js 1.3 kB
packages/icons/dist/FlagNl.js 1.21 kB
packages/icons/dist/FlagNo.js 1.31 kB
packages/icons/dist/FlagNz.js 1.41 kB
packages/icons/dist/FlagPe.js 1.11 kB
packages/icons/dist/FlagPl.js 1.19 kB
packages/icons/dist/FlagPt.js 1.42 kB
packages/icons/dist/FlagRo.js 1.15 kB
packages/icons/dist/FlagSe.js 1.26 kB
packages/icons/dist/FlagSg.js 1.21 kB
packages/icons/dist/FlagSi.js 1.71 kB
packages/icons/dist/FlagSk.js 1.63 kB
packages/icons/dist/FlagUs.js 2.01 kB
packages/icons/dist/Flashlight.js 1.13 kB
packages/icons/dist/FlashOff.js 1.13 kB
packages/icons/dist/FlashOn.js 1.03 kB
packages/icons/dist/FlipCamera.js 1.44 kB
packages/icons/dist/Freeze.js 1.94 kB
packages/icons/dist/Gauge.js 1.12 kB
packages/icons/dist/GeneralSettings.js 2.25 kB
packages/icons/dist/GiftCard.js 1.03 kB
packages/icons/dist/Giropay.js 2.34 kB
packages/icons/dist/Globe.js 1.31 kB
packages/icons/dist/GooglePay.js 2.43 kB
packages/icons/dist/Grid.js 959 B
packages/icons/dist/HamburgerMenu.js 937 B
packages/icons/dist/Health.js 1.32 kB
packages/icons/dist/Help.js 1.37 kB
packages/icons/dist/Hide.js 1.19 kB
packages/icons/dist/Hiper.js 1.56 kB
packages/icons/dist/Hipercard.js 3.84 kB
packages/icons/dist/History.js 972 B
packages/icons/dist/Home.js 1 kB
packages/icons/dist/Hospitality.js 1.01 kB
packages/icons/dist/Id.js 1.28 kB
packages/icons/dist/Ideal.js 2.31 kB
packages/icons/dist/Image.js 1.07 kB
packages/icons/dist/index.js 2.69 kB
packages/icons/dist/Info.js 1.05 kB
packages/icons/dist/Instagram.js 1.3 kB
packages/icons/dist/Insurance.js 1.07 kB
packages/icons/dist/InterestOnBalance.js 1.07 kB
packages/icons/dist/Inventory.js 1.27 kB
packages/icons/dist/Invoice.js 989 B
packages/icons/dist/Items.js 1.36 kB
packages/icons/dist/Jcb.js 2.58 kB
packages/icons/dist/Key.js 1.16 kB
packages/icons/dist/Klarna.js 1.88 kB
packages/icons/dist/Language.js 1.16 kB
packages/icons/dist/Laptop.js 969 B
packages/icons/dist/Legal.js 1.08 kB
packages/icons/dist/Like.js 951 B
packages/icons/dist/Link.js 1.16 kB
packages/icons/dist/Linkedin.js 1.12 kB
packages/icons/dist/List.js 980 B
packages/icons/dist/LiveChat.js 977 B
packages/icons/dist/Location.js 1.03 kB
packages/icons/dist/Login.js 1 kB
packages/icons/dist/Logout.js 1.01 kB
packages/icons/dist/Loja.js 1.01 kB
packages/icons/dist/Maestro.js 2.63 kB
packages/icons/dist/Manage.js 1.05 kB
packages/icons/dist/Mastercard.js 2.5 kB
packages/icons/dist/Mcc.js 1.13 kB
packages/icons/dist/MealVoucher.js 1.54 kB
packages/icons/dist/Messenger.js 1.11 kB
packages/icons/dist/Minus.js 994 B
packages/icons/dist/MobilePhone.js 962 B
packages/icons/dist/Moon.js 985 B
packages/icons/dist/More.js 931 B
packages/icons/dist/MoreCircle.js 1.67 kB
packages/icons/dist/Mybank.js 2.56 kB
packages/icons/dist/Nfc.js 1.27 kB
packages/icons/dist/NfcPayment.js 2.68 kB
packages/icons/dist/NoCosts.js 1.67 kB
packages/icons/dist/NoSim.js 1.11 kB
packages/icons/dist/NotificationCenter.js 989 B
packages/icons/dist/Notify.js 1.22 kB
packages/icons/dist/NotifyCircle.js 1.07 kB
packages/icons/dist/OnlinePayments.js 1.22 kB
packages/icons/dist/OnlineStore.js 1.03 kB
packages/icons/dist/Orders.js 1.58 kB
packages/icons/dist/Package.js 1.06 kB
packages/icons/dist/PaidOut.js 1.25 kB
packages/icons/dist/ParcelLocker.js 1.21 kB
packages/icons/dist/Passport.js 993 B
packages/icons/dist/Pause.js 1.18 kB
packages/icons/dist/Paused.js 1.03 kB
packages/icons/dist/PaymentLink.js 1.21 kB
packages/icons/dist/PaymentMethods.js 1.09 kB
packages/icons/dist/Payouts.js 1.69 kB
packages/icons/dist/PayoutSettings.js 2.38 kB
packages/icons/dist/PayPal.js 6.01 kB
packages/icons/dist/Percentage.js 2.17 kB
packages/icons/dist/Phone.js 1.04 kB
packages/icons/dist/PhoneChat.js 1.09 kB
packages/icons/dist/Pinterest.js 1.32 kB
packages/icons/dist/Pix.js 1.69 kB
packages/icons/dist/PixFull.js 4.01 kB
packages/icons/dist/Play.js 1.17 kB
packages/icons/dist/Plus.js 1.04 kB
packages/icons/dist/PostFinance.js 2.35 kB
packages/icons/dist/Printer.js 995 B
packages/icons/dist/PrintFailed.js 1.33 kB
packages/icons/dist/Profile.js 990 B
packages/icons/dist/Promote.js 1.23 kB
packages/icons/dist/Przelewy24.js 2.32 kB
packages/icons/dist/QrCode.js 1.55 kB
packages/icons/dist/Random.js 1.85 kB
packages/icons/dist/Receipt.js 1.2 kB
packages/icons/dist/ReceiptAttached.js 1.23 kB
packages/icons/dist/ReceiptMissing.js 1.19 kB
packages/icons/dist/ReceiptSmart.js 1.34 kB
packages/icons/dist/ReceiptUnreviewed.js 1.15 kB
packages/icons/dist/RecurringInvoice.js 1.22 kB
packages/icons/dist/RedCompra.js 4.45 kB
packages/icons/dist/Refer.js 1.15 kB
packages/icons/dist/ReferAFriend.js 2.13 kB
packages/icons/dist/Refresh.js 1.1 kB
packages/icons/dist/Refunded.js 1.15 kB
packages/icons/dist/Remove.js 921 B
packages/icons/dist/Reports.js 1.21 kB
packages/icons/dist/ResidencePermit.js 1.04 kB
packages/icons/dist/Reward.js 1.1 kB
packages/icons/dist/Sales.js 1.48 kB
packages/icons/dist/SamsungPay.js 2.48 kB
packages/icons/dist/Satispay.js 3.16 kB
packages/icons/dist/Search.js 1.16 kB
packages/icons/dist/Secure.js 1.04 kB
packages/icons/dist/SecurePayments.js 1.01 kB
packages/icons/dist/SelectAll.js 1.47 kB
packages/icons/dist/Send.js 1.27 kB
packages/icons/dist/Sepa.js 1.99 kB
packages/icons/dist/Services.js 1.07 kB
packages/icons/dist/Settings.js 1.22 kB
packages/icons/dist/Share.js 1.1 kB
packages/icons/dist/Shop.js 1.04 kB
packages/icons/dist/SimCard.js 1.04 kB
packages/icons/dist/Sodexo.js 1.96 kB
packages/icons/dist/Sofort.js 2.39 kB
packages/icons/dist/Sort.js 1.68 kB
packages/icons/dist/Sparkles.js 1.76 kB
packages/icons/dist/Stop.js 969 B
packages/icons/dist/Stopped.js 1.03 kB
packages/icons/dist/StoreEditor.js 1.6 kB
packages/icons/dist/SumUpCard.js 958 B
packages/icons/dist/SumUpConnect.js 1.28 kB
packages/icons/dist/SumUpLogo.js 2.13 kB
packages/icons/dist/SumUpLogomark.js 1.07 kB
packages/icons/dist/Sun.js 1.25 kB
packages/icons/dist/Support.js 1.13 kB
packages/icons/dist/Swile.js 3.21 kB
packages/icons/dist/Tablet.js 976 B
packages/icons/dist/TapToPay.js 1.31 kB
packages/icons/dist/Taxes.js 1.34 kB
packages/icons/dist/ThumbDown.js 990 B
packages/icons/dist/ThumbUp.js 993 B
packages/icons/dist/Ticket.js 1.67 kB
packages/icons/dist/Time.js 1.37 kB
packages/icons/dist/Tipping.js 1.01 kB
packages/icons/dist/Transactions.js 1.47 kB
packages/icons/dist/TransferIn.js 1.15 kB
packages/icons/dist/TransferOut.js 1.15 kB
packages/icons/dist/Transit.js 1.46 kB
packages/icons/dist/Truck.js 1.09 kB
packages/icons/dist/Twitter.js 1.03 kB
packages/icons/dist/Unfavorite.js 1.59 kB
packages/icons/dist/UnionPay.js 6.84 kB
packages/icons/dist/Upgrade.js 1.14 kB
packages/icons/dist/Upload.js 1.15 kB
packages/icons/dist/UploadCloud.js 1.1 kB
packages/icons/dist/View.js 1.4 kB
packages/icons/dist/VirtualTerminal.js 974 B
packages/icons/dist/Visa.js 1.8 kB
packages/icons/dist/VisaElectron.js 3.93 kB
packages/icons/dist/Volume.js 1.22 kB
packages/icons/dist/Vpay.js 1.86 kB
packages/icons/dist/Vr.js 1.25 kB
packages/icons/dist/Webspace.js 1.39 kB
packages/icons/dist/WhatsApp.js 1.45 kB
packages/icons/dist/Wifi.js 1.19 kB
packages/icons/dist/WireTransfer.js 1.77 kB
packages/icons/dist/Youtube.js 1.07 kB
packages/icons/dist/ZipFile.js 1.03 kB

compressed-size-action

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 96.17834% with 6 lines in your changes missing coverage. Please review.

Project coverage is 88.07%. Comparing base (6ad9edb) to head (714716c).

Files with missing lines Patch % Lines
...ages/circuit-ui/components/SidePanel/SidePanel.tsx 97.00% 3 Missing ⚠️
...rcuit-ui/components/SidePanel/SidePanelContext.tsx 91.66% 2 Missing ⚠️
packages/circuit-ui/components/Dialog/Dialog.tsx 96.29% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             next    #2903      +/-   ##
==========================================
+ Coverage   87.98%   88.07%   +0.09%     
==========================================
  Files         227      222       -5     
  Lines       13088    12911     -177     
  Branches     1795     1777      -18     
==========================================
- Hits        11515    11372     -143     
+ Misses       1519     1486      -33     
+ Partials       54       53       -1     
Files with missing lines Coverage Δ
...ages/circuit-ui/components/DateInput/DateInput.tsx 98.21% <100.00%> (+<0.01%) ⬆️
packages/circuit-ui/components/Modal/Modal.tsx 88.33% <100.00%> (+0.83%) ⬆️
packages/circuit-ui/components/Popover/Popover.tsx 95.62% <100.00%> (+0.02%) ⬆️
...s/circuit-ui/components/SidePanel/useSidePanel.tsx 100.00% <ø> (ø)
...ages/circuit-ui/components/Toggletip/Toggletip.tsx 100.00% <ø> (ø)
packages/circuit-ui/components/Dialog/Dialog.tsx 89.81% <96.29%> (+2.43%) ⬆️
...rcuit-ui/components/SidePanel/SidePanelContext.tsx 98.64% <91.66%> (+4.39%) ⬆️
...ages/circuit-ui/components/SidePanel/SidePanel.tsx 97.08% <97.00%> (+14.58%) ⬆️

@sirineJ sirineJ force-pushed the feat/DSYS-878/remove-react-modal branch from 2843340 to 714716c Compare January 22, 2025 11:06
@sirineJ sirineJ marked this pull request as ready for review January 22, 2025 11:10
@sirineJ sirineJ requested a review from a team as a code owner January 22, 2025 11:10
@sirineJ sirineJ requested a review from connor-baer January 22, 2025 11:10
Copy link
Member

@connor-baer connor-baer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the first half of my review that focuses on the changes in the Dialog component (and issues I had missed in previous reviews 🙈).

I'll review the SidePanel related changes next.

@@ -5,7 +5,7 @@
display: flex;
align-items: center;
width: 100%;
background-color: var(--cui-bg-normal);
background-color: var(--cui-bg-elevated);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💖

@@ -140,14 +151,14 @@ export const Dialog = forwardRef<HTMLDialogElement, DialogProps>(
if (open && dialogElement) {
timeoutId = setTimeout(() => {
if (initialFocusRef?.current) {
initialFocusRef?.current?.focus();
initialFocusRef?.current?.focus({ preventScroll: true });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a neat improvement!

event.preventDefault();
}
},
[preventClose],
[preventOutsideClickClose],
);

useEffect(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would split this useEffect into multiple, granular effects to improve performance:

  • Registering the dialog with the polyfill. This should only happen once, on mount.
  • Setting the animation duration as a custom property. This should re-run whenever the animation duration value changes (i.e. it shouldn't use the animationDurationRef)
  • Adding the keydown event listener...
  • ...and adding the close event listener. I'd separate the event listener effects since they are added under different conditions

lastFocusedElementRef.current = null;
handleDialogClose();
}, [handleDialogClose]);
if (!preventOutsideClickClose) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is redundant since useClickOutside is only enabled when preventOutsideClickClose is truthy on line 285.

Comment on lines +287 to +290
useEscapeKey((e: KeyboardEvent) => {
e.preventDefault();
handleDialogClose();
}, open && !preventEscapeKeyClose);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This inline arrow function changes on every render, which means the event listener inside useEscapeKey will be removed and re-added on every render. Wrap it in useCallback to avoid that.

@@ -166,42 +166,79 @@ describe('Dialog', () => {
render(<Dialog {...props} open />);
vi.runAllTimers();
expect(screen.getByText('Dialog content')).toBeVisible();
expect(screen.getByRole('button', { name: 'Close' })).toBeInTheDocument();
Copy link
Member

@connor-baer connor-baer Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.toBeVisible() is a bit stricter/safer since it also ensures that the button isn't visually hidden.

Suggested change
expect(screen.getByRole('button', { name: 'Close' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Close' })).toBeVisible();

/**
* Prevent users from closing the modal by clicking/tapping the overlay or
* pressing the escape key, and hides the close button.
* @default `false`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @default `false`.
* @default false

@@ -57,6 +66,7 @@ export const Modal = forwardRef<HTMLDialogElement, ModalProps>((props, ref) => {
hideCloseButton,
variant = 'contextual',
className,
preventClose,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be explicit about the default value here in case the underlying default values in Dialog change.

Suggested change
preventClose,
preventClose = false,

Comment on lines +65 to +67
| 'preventOutsideClickClose'
| 'preventEscapeKeyClose'
| 'hideCloseButton'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: We could export a PublicDialogProps type from the Dialog component to avoid having to omit all these private props in every component that builds on top of it (and potentially forgetting to omit one in the future).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants