@protonradio/proton-ui 0.13.0 → 0.13.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.
- package/dist/components/ActionMenu/ActionMenu.cjs.js +1 -1
- package/dist/components/ActionMenu/ActionMenu.cjs.js.map +1 -1
- package/dist/components/ActionMenu/ActionMenu.es.js +139 -139
- package/dist/components/ActionMenu/ActionMenu.es.js.map +1 -1
- package/dist/components/Badge/Badge.cjs.js +1 -1
- package/dist/components/Badge/Badge.cjs.js.map +1 -1
- package/dist/components/Badge/Badge.es.js +6 -6
- package/dist/components/Badge/Badge.es.js.map +1 -1
- package/dist/components/Banner/Banner.cjs.js +1 -1
- package/dist/components/Banner/Banner.cjs.js.map +1 -1
- package/dist/components/Banner/Banner.es.js +34 -34
- package/dist/components/Banner/Banner.es.js.map +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.cjs.js.map +1 -1
- package/dist/components/Button/Button.es.js +36 -36
- package/dist/components/Button/Button.es.js.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.es.js +15 -15
- package/dist/components/ButtonGroup/ButtonGroup.es.js.map +1 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +1 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +1 -1
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +26 -26
- package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +1 -1
- package/dist/components/Checkbox/CheckboxIndicator.cjs.js +1 -1
- package/dist/components/Checkbox/CheckboxIndicator.cjs.js.map +1 -1
- package/dist/components/Checkbox/CheckboxIndicator.es.js +5 -5
- package/dist/components/Checkbox/CheckboxIndicator.es.js.map +1 -1
- package/dist/components/Checkbox/CheckboxInput/CheckboxInput.cjs.js +1 -1
- package/dist/components/Checkbox/CheckboxInput/CheckboxInput.cjs.js.map +1 -1
- package/dist/components/Checkbox/CheckboxInput/CheckboxInput.es.js +59 -59
- package/dist/components/Checkbox/CheckboxInput/CheckboxInput.es.js.map +1 -1
- package/dist/components/Checkbox/CheckboxRadioGroup/CheckboxRadioGroup.cjs.js +1 -1
- package/dist/components/Checkbox/CheckboxRadioGroup/CheckboxRadioGroup.cjs.js.map +1 -1
- package/dist/components/Checkbox/CheckboxRadioGroup/CheckboxRadioGroup.es.js +51 -51
- package/dist/components/Checkbox/CheckboxRadioGroup/CheckboxRadioGroup.es.js.map +1 -1
- package/dist/components/Elevation/Elevation.cjs.js +1 -1
- package/dist/components/Elevation/Elevation.cjs.js.map +1 -1
- package/dist/components/Elevation/Elevation.es.js +6 -6
- package/dist/components/Elevation/Elevation.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/AlertCircle.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/AlertCircle.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/AlertCircle.es.js +10 -10
- package/dist/components/Icon/IconComponents/AlertCircle.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/AmazonMusicLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/AmazonMusicLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/AmazonMusicLogo.es.js +8 -8
- package/dist/components/Icon/IconComponents/AmazonMusicLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/AppleLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/AppleLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/AppleLogo.es.js +12 -12
- package/dist/components/Icon/IconComponents/AppleLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/AppleMusicLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/AppleMusicLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/AppleMusicLogo.es.js +17 -17
- package/dist/components/Icon/IconComponents/AppleMusicLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Archive.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Archive.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Archive.es.js +8 -8
- package/dist/components/Icon/IconComponents/Archive.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/ArrowLeft.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/ArrowLeft.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/ArrowLeft.es.js +11 -11
- package/dist/components/Icon/IconComponents/ArrowLeft.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/ArrowRight.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/ArrowRight.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/ArrowRight.es.js +11 -11
- package/dist/components/Icon/IconComponents/ArrowRight.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/BandcampLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/BandcampLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/BandcampLogo.es.js +10 -10
- package/dist/components/Icon/IconComponents/BandcampLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Bank.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Bank.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Bank.es.js +8 -8
- package/dist/components/Icon/IconComponents/Bank.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/BeatportLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/BeatportLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/BeatportLogo.es.js +7 -7
- package/dist/components/Icon/IconComponents/BeatportLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Bell.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Bell.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Bell.es.js +6 -6
- package/dist/components/Icon/IconComponents/Bell.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Box.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Box.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Box.es.js +10 -10
- package/dist/components/Icon/IconComponents/Box.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Calendar.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Calendar.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Calendar.es.js +22 -22
- package/dist/components/Icon/IconComponents/Calendar.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Camera.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Camera.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Camera.es.js +14 -14
- package/dist/components/Icon/IconComponents/Camera.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/CaretDown.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/CaretDown.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/CaretDown.es.js +9 -9
- package/dist/components/Icon/IconComponents/CaretDown.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/CaretRight.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/CaretRight.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/CaretRight.es.js +9 -9
- package/dist/components/Icon/IconComponents/CaretRight.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Chart.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Chart.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Chart.es.js +9 -9
- package/dist/components/Icon/IconComponents/Chart.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Chatboxes.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Chatboxes.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Chatboxes.es.js +15 -15
- package/dist/components/Icon/IconComponents/Chatboxes.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/CheckCircle.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/CheckCircle.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/CheckCircle.es.js +8 -8
- package/dist/components/Icon/IconComponents/CheckCircle.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Checkmark.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Checkmark.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Checkmark.es.js +9 -9
- package/dist/components/Icon/IconComponents/Checkmark.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/CheckmarkThick.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/CheckmarkThick.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/CheckmarkThick.es.js +6 -6
- package/dist/components/Icon/IconComponents/CheckmarkThick.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronDown.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/ChevronDown.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronDown.es.js +9 -9
- package/dist/components/Icon/IconComponents/ChevronDown.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronLeft.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/ChevronLeft.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronLeft.es.js +6 -6
- package/dist/components/Icon/IconComponents/ChevronLeft.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronRight.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/ChevronRight.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronRight.es.js +6 -6
- package/dist/components/Icon/IconComponents/ChevronRight.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronSquareDown.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/ChevronSquareDown.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronSquareDown.es.js +11 -11
- package/dist/components/Icon/IconComponents/ChevronSquareDown.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronUp.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/ChevronUp.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/ChevronUp.es.js +8 -8
- package/dist/components/Icon/IconComponents/ChevronUp.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Close.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Close.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Close.es.js +7 -7
- package/dist/components/Icon/IconComponents/Close.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Cog.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Cog.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Cog.es.js +5 -5
- package/dist/components/Icon/IconComponents/Cog.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Comment.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Comment.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Comment.es.js +10 -10
- package/dist/components/Icon/IconComponents/Comment.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Connections.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Connections.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Connections.es.js +10 -10
- package/dist/components/Icon/IconComponents/Connections.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Copy.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Copy.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Copy.es.js +14 -14
- package/dist/components/Icon/IconComponents/Copy.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/DangerCircle.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/DangerCircle.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/DangerCircle.es.js +3 -3
- package/dist/components/Icon/IconComponents/DangerCircle.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Dashboard.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Dashboard.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Dashboard.es.js +10 -10
- package/dist/components/Icon/IconComponents/Dashboard.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/DeezerLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/DeezerLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/DeezerLogo.es.js +6 -6
- package/dist/components/Icon/IconComponents/DeezerLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Download.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Download.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Download.es.js +6 -6
- package/dist/components/Icon/IconComponents/Download.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/DragHandle.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/DragHandle.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/DragHandle.es.js +7 -7
- package/dist/components/Icon/IconComponents/DragHandle.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/DropboxLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/DropboxLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/DropboxLogo.es.js +13 -13
- package/dist/components/Icon/IconComponents/DropboxLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Edit.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Edit.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Edit.es.js +12 -12
- package/dist/components/Icon/IconComponents/Edit.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Ellipsis.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Ellipsis.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Ellipsis.es.js +19 -19
- package/dist/components/Icon/IconComponents/Ellipsis.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/EmailThick.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/EmailThick.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/EmailThick.es.js +11 -11
- package/dist/components/Icon/IconComponents/EmailThick.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/EmailThin.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/EmailThin.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/EmailThin.es.js +12 -12
- package/dist/components/Icon/IconComponents/EmailThin.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/ExternalLink.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/ExternalLink.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/ExternalLink.es.js +9 -9
- package/dist/components/Icon/IconComponents/ExternalLink.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/FacebookLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/FacebookLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/FacebookLogo.es.js +11 -11
- package/dist/components/Icon/IconComponents/FacebookLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Filter.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Filter.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Filter.es.js +9 -9
- package/dist/components/Icon/IconComponents/Filter.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/GitHubLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/GitHubLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/GitHubLogo.es.js +10 -10
- package/dist/components/Icon/IconComponents/GitHubLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Globe.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Globe.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Globe.es.js +3 -3
- package/dist/components/Icon/IconComponents/Globe.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/GoogleDriveLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/GoogleDriveLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/GoogleDriveLogo.es.js +24 -24
- package/dist/components/Icon/IconComponents/GoogleDriveLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Hamburger.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Hamburger.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Hamburger.es.js +10 -10
- package/dist/components/Icon/IconComponents/Hamburger.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Heartbeat.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Heartbeat.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Heartbeat.es.js +11 -11
- package/dist/components/Icon/IconComponents/Heartbeat.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Info.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Info.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Info.es.js +9 -9
- package/dist/components/Icon/IconComponents/Info.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/InfoOutline.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/InfoOutline.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/InfoOutline.es.js +13 -13
- package/dist/components/Icon/IconComponents/InfoOutline.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/InstagramLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/InstagramLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/InstagramLogo.es.js +16 -16
- package/dist/components/Icon/IconComponents/InstagramLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/IntercomLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/IntercomLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/IntercomLogo.es.js +15 -15
- package/dist/components/Icon/IconComponents/IntercomLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Keyboard.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Keyboard.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Keyboard.es.js +9 -9
- package/dist/components/Icon/IconComponents/Keyboard.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Label.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Label.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Label.es.js +14 -14
- package/dist/components/Icon/IconComponents/Label.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Lightning.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Lightning.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Lightning.es.js +9 -9
- package/dist/components/Icon/IconComponents/Lightning.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Link.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Link.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Link.es.js +6 -6
- package/dist/components/Icon/IconComponents/Link.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/List.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/List.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/List.es.js +13 -13
- package/dist/components/Icon/IconComponents/List.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Lock.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Lock.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Lock.es.js +5 -5
- package/dist/components/Icon/IconComponents/Lock.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/MessengerLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/MessengerLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/MessengerLogo.es.js +11 -11
- package/dist/components/Icon/IconComponents/MessengerLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Money.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Money.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Money.es.js +13 -13
- package/dist/components/Icon/IconComponents/Money.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/MoneyOutline.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/MoneyOutline.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/MoneyOutline.es.js +13 -13
- package/dist/components/Icon/IconComponents/MoneyOutline.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/MusicNote.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/MusicNote.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/MusicNote.es.js +12 -12
- package/dist/components/Icon/IconComponents/MusicNote.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/PacmanLoader.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/PacmanLoader.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/PacmanLoader.es.js +11 -11
- package/dist/components/Icon/IconComponents/PacmanLoader.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Pause.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Pause.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Pause.es.js +12 -12
- package/dist/components/Icon/IconComponents/Pause.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/PayPalLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/PayPalLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/PayPalLogo.es.js +12 -12
- package/dist/components/Icon/IconComponents/PayPalLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Pencil.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Pencil.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Pencil.es.js +9 -9
- package/dist/components/Icon/IconComponents/Pencil.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/PhoneThick.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/PhoneThick.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/PhoneThick.es.js +6 -6
- package/dist/components/Icon/IconComponents/PhoneThick.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/PhoneThin.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/PhoneThin.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/PhoneThin.es.js +6 -6
- package/dist/components/Icon/IconComponents/PhoneThin.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/PiggyBank.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/PiggyBank.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/PiggyBank.es.js +3 -3
- package/dist/components/Icon/IconComponents/PiggyBank.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Play.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Play.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Play.es.js +10 -10
- package/dist/components/Icon/IconComponents/Play.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/ProtonLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/ProtonLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/ProtonLogo.es.js +13 -13
- package/dist/components/Icon/IconComponents/ProtonLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Quote.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Quote.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Quote.es.js +8 -8
- package/dist/components/Icon/IconComponents/Quote.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Radio.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Radio.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Radio.es.js +16 -16
- package/dist/components/Icon/IconComponents/Radio.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/RemoveCircle.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/RemoveCircle.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/RemoveCircle.es.js +10 -10
- package/dist/components/Icon/IconComponents/RemoveCircle.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Rocket.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Rocket.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Rocket.es.js +15 -15
- package/dist/components/Icon/IconComponents/Rocket.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Search.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Search.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Search.es.js +9 -9
- package/dist/components/Icon/IconComponents/Search.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Share.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Share.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Share.es.js +8 -8
- package/dist/components/Icon/IconComponents/Share.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/SignOut.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/SignOut.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/SignOut.es.js +14 -14
- package/dist/components/Icon/IconComponents/SignOut.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/SoundcloudLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/SoundcloudLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/SoundcloudLogo.es.js +3 -3
- package/dist/components/Icon/IconComponents/SoundcloudLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/SpotifyLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/SpotifyLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/SpotifyLogo.es.js +13 -13
- package/dist/components/Icon/IconComponents/SpotifyLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Spy.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Spy.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Spy.es.js +7 -7
- package/dist/components/Icon/IconComponents/Spy.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Star.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Star.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Star.es.js +8 -8
- package/dist/components/Icon/IconComponents/Star.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/StarCircle.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/StarCircle.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/StarCircle.es.js +10 -10
- package/dist/components/Icon/IconComponents/StarCircle.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/SuccessCircle.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/SuccessCircle.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/SuccessCircle.es.js +10 -10
- package/dist/components/Icon/IconComponents/SuccessCircle.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/TelegramLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/TelegramLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/TelegramLogo.es.js +9 -9
- package/dist/components/Icon/IconComponents/TelegramLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/TiktokLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/TiktokLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/TiktokLogo.es.js +10 -10
- package/dist/components/Icon/IconComponents/TiktokLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Tracklist.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Tracklist.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Tracklist.es.js +6 -6
- package/dist/components/Icon/IconComponents/Tracklist.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/TrashCan.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/TrashCan.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/TrashCan.es.js +8 -8
- package/dist/components/Icon/IconComponents/TrashCan.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/TraxsourceLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/TraxsourceLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/TraxsourceLogo.es.js +15 -15
- package/dist/components/Icon/IconComponents/TraxsourceLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/USDCLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/USDCLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/USDCLogo.es.js +16 -16
- package/dist/components/Icon/IconComponents/USDCLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/User.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/User.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/User.es.js +12 -12
- package/dist/components/Icon/IconComponents/User.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/UserAdd.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/UserAdd.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/UserAdd.es.js +10 -10
- package/dist/components/Icon/IconComponents/UserAdd.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Users.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Users.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Users.es.js +8 -8
- package/dist/components/Icon/IconComponents/Users.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/Verified.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/Verified.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/Verified.es.js +9 -9
- package/dist/components/Icon/IconComponents/Verified.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/WarningTriangle.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/WarningTriangle.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/WarningTriangle.es.js +11 -11
- package/dist/components/Icon/IconComponents/WarningTriangle.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/WesternUnionLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/WesternUnionLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/WesternUnionLogo.es.js +13 -13
- package/dist/components/Icon/IconComponents/WesternUnionLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/WhatsappLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/WhatsappLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/WhatsappLogo.es.js +15 -15
- package/dist/components/Icon/IconComponents/WhatsappLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/WhatsappLogoThin.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/WhatsappLogoThin.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/WhatsappLogoThin.es.js +19 -19
- package/dist/components/Icon/IconComponents/WhatsappLogoThin.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/XTwitterLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/XTwitterLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/XTwitterLogo.es.js +10 -10
- package/dist/components/Icon/IconComponents/XTwitterLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/YandexLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/YandexLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/YandexLogo.es.js +9 -9
- package/dist/components/Icon/IconComponents/YandexLogo.es.js.map +1 -1
- package/dist/components/Icon/IconComponents/YoutubeLogo.cjs.js +1 -1
- package/dist/components/Icon/IconComponents/YoutubeLogo.cjs.js.map +1 -1
- package/dist/components/Icon/IconComponents/YoutubeLogo.es.js +14 -14
- package/dist/components/Icon/IconComponents/YoutubeLogo.es.js.map +1 -1
- package/dist/components/ImageBackground/ImageBackground.cjs.js +1 -1
- package/dist/components/ImageBackground/ImageBackground.cjs.js.map +1 -1
- package/dist/components/ImageBackground/ImageBackground.es.js +18 -18
- package/dist/components/ImageBackground/ImageBackground.es.js.map +1 -1
- package/dist/components/Input/BaseInput/Input.cjs.js +1 -1
- package/dist/components/Input/BaseInput/Input.cjs.js.map +1 -1
- package/dist/components/Input/BaseInput/Input.es.js +73 -73
- package/dist/components/Input/BaseInput/Input.es.js.map +1 -1
- package/dist/components/Input/CopyInput/CopyInput.cjs.js +1 -1
- package/dist/components/Input/CopyInput/CopyInput.cjs.js.map +1 -1
- package/dist/components/Input/CopyInput/CopyInput.es.js +23 -23
- package/dist/components/Input/CopyInput/CopyInput.es.js.map +1 -1
- package/dist/components/Input/OTPInput/OTPInput.cjs.js +1 -1
- package/dist/components/Input/OTPInput/OTPInput.cjs.js.map +1 -1
- package/dist/components/Input/OTPInput/OTPInput.es.js +58 -58
- package/dist/components/Input/OTPInput/OTPInput.es.js.map +1 -1
- package/dist/components/Input/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/Input/SearchInput/SearchInput.cjs.js.map +1 -1
- package/dist/components/Input/SearchInput/SearchInput.es.js +45 -45
- package/dist/components/Input/SearchInput/SearchInput.es.js.map +1 -1
- package/dist/components/Menu/MenuTrigger.cjs.js +1 -1
- package/dist/components/Menu/MenuTrigger.cjs.js.map +1 -1
- package/dist/components/Menu/MenuTrigger.es.js +31 -31
- package/dist/components/Menu/MenuTrigger.es.js.map +1 -1
- package/dist/components/Menu/PopoverMenu.cjs.js +1 -1
- package/dist/components/Menu/PopoverMenu.cjs.js.map +1 -1
- package/dist/components/Menu/PopoverMenu.es.js +53 -53
- package/dist/components/Menu/PopoverMenu.es.js.map +1 -1
- package/dist/components/Modal/Modal.cjs.js +1 -1
- package/dist/components/Modal/Modal.cjs.js.map +1 -1
- package/dist/components/Modal/Modal.es.js +49 -49
- package/dist/components/Modal/Modal.es.js.map +1 -1
- package/dist/components/Overlay/Overlay.cjs.js +1 -1
- package/dist/components/Overlay/Overlay.cjs.js.map +1 -1
- package/dist/components/Overlay/Overlay.es.js +9 -9
- package/dist/components/Overlay/Overlay.es.js.map +1 -1
- package/dist/components/Popover/Popover.cjs.js +1 -1
- package/dist/components/Popover/Popover.cjs.js.map +1 -1
- package/dist/components/Popover/Popover.es.js +29 -29
- package/dist/components/Popover/Popover.es.js.map +1 -1
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js +1 -1
- package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js.map +1 -1
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js +7 -7
- package/dist/components/ScreenOverlay/ScreenOverlay.es.js.map +1 -1
- package/dist/components/Select/Select.cjs.js +1 -1
- package/dist/components/Select/Select.cjs.js.map +1 -1
- package/dist/components/Select/Select.es.js +83 -83
- package/dist/components/Select/Select.es.js.map +1 -1
- package/dist/components/Switch/Switch.cjs.js +1 -1
- package/dist/components/Switch/Switch.cjs.js.map +1 -1
- package/dist/components/Switch/Switch.es.js +26 -26
- package/dist/components/Switch/Switch.es.js.map +1 -1
- package/dist/components/Table/BaseTable/Collection/collectionParser.cjs.js +1 -1
- package/dist/components/Table/BaseTable/Collection/useTableCollection.cjs.js +1 -1
- package/dist/components/Table/BaseTable/Table.cjs.js +1 -1
- package/dist/components/Table/BaseTable/Table.cjs.js.map +1 -1
- package/dist/components/Table/BaseTable/Table.es.js +37 -37
- package/dist/components/Table/BaseTable/Table.es.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableBody.cjs.js +1 -1
- package/dist/components/Table/BaseTable/elements/TableBody.cjs.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableBody.es.js +2 -2
- package/dist/components/Table/BaseTable/elements/TableBody.es.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableCell.cjs.js +1 -1
- package/dist/components/Table/BaseTable/elements/TableCell.cjs.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableCell.es.js +7 -7
- package/dist/components/Table/BaseTable/elements/TableCell.es.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableHeader.cjs.js +1 -1
- package/dist/components/Table/BaseTable/elements/TableHeader.cjs.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableHeader.es.js +2 -2
- package/dist/components/Table/BaseTable/elements/TableHeader.es.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableHeaderCell.cjs.js +1 -1
- package/dist/components/Table/BaseTable/elements/TableHeaderCell.cjs.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableHeaderCell.es.js +4 -4
- package/dist/components/Table/BaseTable/elements/TableHeaderCell.es.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableHeaderRow.cjs.js +1 -1
- package/dist/components/Table/BaseTable/elements/TableHeaderRow.cjs.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableHeaderRow.es.js +2 -2
- package/dist/components/Table/BaseTable/elements/TableHeaderRow.es.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableRoot.cjs.js +1 -1
- package/dist/components/Table/BaseTable/elements/TableRoot.cjs.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableRoot.es.js +7 -7
- package/dist/components/Table/BaseTable/elements/TableRoot.es.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableRow.cjs.js +1 -1
- package/dist/components/Table/BaseTable/elements/TableRow.cjs.js.map +1 -1
- package/dist/components/Table/BaseTable/elements/TableRow.es.js +2 -2
- package/dist/components/Table/BaseTable/elements/TableRow.es.js.map +1 -1
- package/dist/components/Table/DataTable/DataTable.cjs.js +1 -1
- package/dist/components/Table/DataTable/DataTable.cjs.js.map +1 -1
- package/dist/components/Table/DataTable/DataTable.es.js +70 -70
- package/dist/components/Table/DataTable/DataTable.es.js.map +1 -1
- package/dist/components/Table/DataTable/DataTableRow.cjs.js +1 -1
- package/dist/components/Table/DataTable/DataTableRow.cjs.js.map +1 -1
- package/dist/components/Table/DataTable/DataTableRow.es.js +15 -21
- package/dist/components/Table/DataTable/DataTableRow.es.js.map +1 -1
- package/dist/components/Text/TextCountdown/TextCountdown.cjs.js +1 -1
- package/dist/components/Text/TextCountdown/TextCountdown.cjs.js.map +1 -1
- package/dist/components/Text/TextCountdown/TextCountdown.es.js +12 -12
- package/dist/components/Text/TextCountdown/TextCountdown.es.js.map +1 -1
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js +1 -1
- package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js +8 -8
- package/dist/components/Text/TextEllipsis/TextEllipsis.es.js.map +1 -1
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js +1 -1
- package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js.map +1 -1
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js +17 -17
- package/dist/components/Text/TextEmphasis/TextEmphasis.es.js.map +1 -1
- package/dist/components/ThemeProvider.cjs.js +1 -1
- package/dist/components/ThemeProvider.cjs.js.map +1 -1
- package/dist/components/ThemeProvider.es.js +17 -17
- package/dist/components/ThemeProvider.es.js.map +1 -1
- package/dist/components/Tombstone/Tombstone.cjs.js +1 -1
- package/dist/components/Tombstone/Tombstone.cjs.js.map +1 -1
- package/dist/components/Tombstone/Tombstone.es.js +12 -12
- package/dist/components/Tombstone/Tombstone.es.js.map +1 -1
- package/dist/components/Tooltip/ResponsiveTooltip.cjs.js +1 -1
- package/dist/components/Tooltip/ResponsiveTooltip.cjs.js.map +1 -1
- package/dist/components/Tooltip/ResponsiveTooltip.es.js +34 -34
- package/dist/components/Tooltip/ResponsiveTooltip.es.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.cjs.js +1 -1
- package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.es.js +30 -30
- package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
- package/dist/components/Waveform/Waveform.cjs.js +1 -1
- package/dist/components/Waveform/Waveform.cjs.js.map +1 -1
- package/dist/components/Waveform/Waveform.es.js +77 -77
- package/dist/components/Waveform/Waveform.es.js.map +1 -1
- package/dist/components/Waveform/WaveformBar.cjs.js +1 -1
- package/dist/components/Waveform/WaveformBar.cjs.js.map +1 -1
- package/dist/components/Waveform/WaveformBar.es.js +22 -22
- package/dist/components/Waveform/WaveformBar.es.js.map +1 -1
- package/dist/hooks/useBreakpoint.cjs.js +1 -1
- package/dist/hooks/useIsClosing.cjs.js +1 -1
- package/dist/hooks/useMergedRef.cjs.js +1 -1
- package/dist/hooks/usePalette.cjs.js +1 -1
- package/package.json +1 -1
- package/dist/_virtual/jsx-runtime.cjs.js +0 -2
- package/dist/_virtual/jsx-runtime.cjs.js.map +0 -1
- package/dist/_virtual/jsx-runtime.es.js +0 -5
- package/dist/_virtual/jsx-runtime.es.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.cjs.js +0 -2
- package/dist/_virtual/react-jsx-runtime.development.cjs.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.cjs.js +0 -2
- package/dist/_virtual/react-jsx-runtime.production.cjs.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -15
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -245
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +0 -10
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -36
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.cjs.js +0 -2
- package/dist/node_modules/react/jsx-runtime.cjs.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.es.js +0 -9
- package/dist/node_modules/react/jsx-runtime.es.js.map +0 -1
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { csx as
|
|
4
|
-
import { isUrlExternal as
|
|
1
|
+
import { jsxs as _, Fragment as h, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v } from "react";
|
|
3
|
+
import { csx as f } from "../../utils/string.es.js";
|
|
4
|
+
import { isUrlExternal as y, handleInternalNavigation as N } from "../../utils/navigation.es.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
const
|
|
6
|
+
const U = {
|
|
7
7
|
primary: "primary",
|
|
8
8
|
secondary: "secondary",
|
|
9
9
|
success: "success",
|
|
10
10
|
danger: "danger",
|
|
11
11
|
translucent: "translucent"
|
|
12
|
-
},
|
|
12
|
+
}, $ = {
|
|
13
13
|
small: "small",
|
|
14
14
|
medium: "medium",
|
|
15
15
|
large: "large",
|
|
16
16
|
xlarge: "xlarge",
|
|
17
17
|
"2xlarge": "2xlarge"
|
|
18
|
-
},
|
|
18
|
+
}, b = v(
|
|
19
19
|
({
|
|
20
|
-
variant:
|
|
21
|
-
size:
|
|
22
|
-
fullWidth:
|
|
20
|
+
variant: x = "primary",
|
|
21
|
+
size: c = "medium",
|
|
22
|
+
fullWidth: i = !1,
|
|
23
23
|
icon: m,
|
|
24
24
|
to: t,
|
|
25
25
|
target: e,
|
|
26
|
-
onPress:
|
|
26
|
+
onPress: n,
|
|
27
27
|
type: B = "button",
|
|
28
28
|
isDisabled: r,
|
|
29
29
|
"data-testid": g,
|
|
30
30
|
children: u
|
|
31
31
|
}, d) => {
|
|
32
|
-
const l = t &&
|
|
33
|
-
className:
|
|
32
|
+
const l = t && y(t), p = {
|
|
33
|
+
className: f(
|
|
34
34
|
"proton-Button",
|
|
35
|
-
`proton-Button--${
|
|
36
|
-
|
|
35
|
+
`proton-Button--${x}`,
|
|
36
|
+
i && "proton-Button--fullWidth",
|
|
37
37
|
r && "proton-Button--disabled",
|
|
38
|
-
|
|
38
|
+
c && `proton-Button--${c}`
|
|
39
39
|
),
|
|
40
40
|
"data-testid": g,
|
|
41
41
|
...t && { "aria-disabled": r },
|
|
42
42
|
...r && { tabIndex: -1 }
|
|
43
|
-
},
|
|
44
|
-
m && /* @__PURE__ */
|
|
43
|
+
}, s = /* @__PURE__ */ _(h, { children: [
|
|
44
|
+
m && /* @__PURE__ */ a(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
|
-
className:
|
|
47
|
+
className: f(
|
|
48
48
|
"proton-Button__icon-decorator",
|
|
49
|
-
|
|
49
|
+
i && "proton-Button__icon-decorator--fullWidth"
|
|
50
50
|
),
|
|
51
51
|
children: m
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
u && /* @__PURE__ */
|
|
54
|
+
u && /* @__PURE__ */ a("div", { className: "proton-Button__text", children: u })
|
|
55
55
|
] });
|
|
56
|
-
return t ? /* @__PURE__ */
|
|
56
|
+
return t ? /* @__PURE__ */ a(
|
|
57
57
|
"a",
|
|
58
58
|
{
|
|
59
|
-
...
|
|
59
|
+
...p,
|
|
60
60
|
href: t,
|
|
61
61
|
target: e || (l ? "_blank" : void 0),
|
|
62
62
|
rel: l || e === "_blank" ? "noopener noreferrer" : void 0,
|
|
63
63
|
ref: d,
|
|
64
|
-
onClick: (
|
|
64
|
+
onClick: (o) => {
|
|
65
65
|
if (r) {
|
|
66
|
-
|
|
66
|
+
o.preventDefault();
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
!l && !e &&
|
|
69
|
+
!l && !e && N(o, t), n == null || n(o);
|
|
70
70
|
},
|
|
71
71
|
role: "button",
|
|
72
|
-
children:
|
|
72
|
+
children: s
|
|
73
73
|
}
|
|
74
|
-
) : /* @__PURE__ */
|
|
74
|
+
) : /* @__PURE__ */ a(
|
|
75
75
|
"button",
|
|
76
76
|
{
|
|
77
|
-
...
|
|
77
|
+
...p,
|
|
78
78
|
type: B,
|
|
79
79
|
disabled: r,
|
|
80
80
|
ref: d,
|
|
81
|
-
onClick: (
|
|
82
|
-
!r &&
|
|
81
|
+
onClick: (o) => {
|
|
82
|
+
!r && n && n(o);
|
|
83
83
|
},
|
|
84
|
-
children:
|
|
84
|
+
children: s
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
|
-
|
|
89
|
+
b.displayName = "ProtonUIButton";
|
|
90
90
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
b as Button,
|
|
92
|
+
$ as ButtonSizes,
|
|
93
|
+
U as ButtonVariants
|
|
94
94
|
};
|
|
95
95
|
//# sourceMappingURL=Button.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.es.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, type MouseEvent, type ReactNode, type RefObject } from \"react\";\n\nimport { csx } from \"../../utils/string\";\nimport {\n isUrlExternal,\n handleInternalNavigation,\n} from \"../../utils/navigation\";\nimport \"./Button.css\";\n\nexport type ButtonVariant =\n | \"primary\"\n | \"secondary\"\n | \"success\"\n | \"danger\"\n | \"translucent\";\n\nexport const ButtonVariants: Record<ButtonVariant, ButtonVariant> = {\n primary: \"primary\",\n secondary: \"secondary\",\n success: \"success\",\n danger: \"danger\",\n translucent: \"translucent\",\n};\n\nexport type ButtonSize = \"small\" | \"medium\" | \"large\" | \"xlarge\" | \"2xlarge\";\n\nexport const ButtonSizes: Record<ButtonSize, ButtonSize> = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n xlarge: \"xlarge\",\n \"2xlarge\": \"2xlarge\",\n};\n\nexport interface ButtonProps {\n /** The button's visual aesthetic\n * - type {@link ButtonVariant}\n */\n variant?: ButtonVariant;\n\n /** The size of the button\n * - type {@link ButtonSize}\n * @default \"medium\"\n */\n size?: ButtonSize;\n\n /** Should the button be full width?\n * @default false\n */\n fullWidth?: boolean;\n\n /** The prefix to display within the button */\n icon?: ReactNode;\n\n /** Should the button be non-interactive? */\n isDisabled?: boolean;\n\n /** The URL that the button should link to. Turns the element into an `a` tag. If the URL is external, you should pass the entire URL to the `to` prop (e.g. `https://example.com`). */\n to?: string;\n\n /** The target attribute for the link. Defaults to `_blank` if the URL is external. */\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | string;\n\n /** Called when the button is pressed (on release, not keydown) */\n onPress?: (e: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;\n\n /** The type of button */\n type?: \"button\" | \"submit\" | \"reset\";\n\n /** The test ID for the button */\n \"data-testid\"?: string;\n\n /** The content to display within the button */\n children?: ReactNode;\n}\n\n/**\n * A customizable button component that can render as either a button or anchor element.\n *\n * API:\n * - {@link ButtonProps}\n */\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n ButtonProps\n>(\n (\n {\n variant = \"primary\",\n size = \"medium\",\n fullWidth = false,\n icon,\n to,\n target,\n onPress,\n type = \"button\",\n isDisabled,\n \"data-testid\": testId,\n children,\n }: ButtonProps,\n ref\n ) => {\n const isExternal = to && isUrlExternal(to);\n\n const commonProps = {\n className: csx(\n \"proton-Button\",\n `proton-Button--${variant}`,\n fullWidth && \"proton-Button--fullWidth\",\n isDisabled && \"proton-Button--disabled\",\n size && `proton-Button--${size}`\n ),\n \"data-testid\": testId,\n ...(to && { \"aria-disabled\": isDisabled }),\n ...(isDisabled && { tabIndex: -1 }),\n };\n\n const content = (\n <>\n {icon && (\n <div\n className={csx(\n \"proton-Button__icon-decorator\",\n fullWidth && \"proton-Button__icon-decorator--fullWidth\"\n )}\n >\n {icon}\n </div>\n )}\n {children && <div className=\"proton-Button__text\">{children}</div>}\n </>\n );\n\n if (to) {\n return (\n <a\n {...commonProps}\n href={to}\n target={target || (isExternal ? \"_blank\" : undefined)}\n rel={\n isExternal || target === \"_blank\"\n ? \"noopener noreferrer\"\n : undefined\n }\n ref={ref as RefObject<HTMLAnchorElement>}\n onClick={(e) => {\n if (isDisabled) {\n e.preventDefault();\n return;\n }\n\n if (!isExternal && !target) {\n handleInternalNavigation(e, to);\n }\n\n onPress?.(e);\n }}\n role=\"button\"\n >\n {content}\n </a>\n );\n }\n\n return (\n <button\n {...commonProps}\n type={type}\n disabled={isDisabled}\n ref={ref as RefObject<HTMLButtonElement>}\n onClick={(e) => {\n if (!isDisabled && onPress) {\n onPress(e);\n }\n }}\n >\n {content}\n </button>\n );\n }\n);\n\nButton.displayName = \"ProtonUIButton\";\n"],"names":["ButtonVariants","ButtonSizes","Button","forwardRef","variant","size","fullWidth","icon","to","target","onPress","type","isDisabled","testId","children","ref","isExternal","isUrlExternal","commonProps","csx","content","jsxs","Fragment","jsx","e","handleInternalNavigation"],"mappings":";;;;;AAkBO,MAAMA,IAAuD;AAAA,EAClE,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,aAAa;AACf,GAIaC,IAA8C;AAAA,EACzD,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,WAAW;AACb,GAkDaC,IAASC;AAAA,EAIpB,CACE;AAAA,IACE,SAAAC,IAAU;AAAA,IACV,MAAAC,IAAO;AAAA,IACP,WAAAC,IAAY;AAAA,IACZ,MAAAC;AAAA,IACA,IAAAC;AAAA,IACA,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,YAAAC;AAAA,IACA,eAAeC;AAAA,IACf,UAAAC;AAAA,EAAA,GAEFC,MACG;AACH,UAAMC,IAAaR,KAAMS,EAAcT,CAAE,GAEnCU,IAAc;AAAA,MAClB,WAAWC;AAAA,QACT;AAAA,QACA,kBAAkBf,CAAO;AAAA,QACzBE,KAAa;AAAA,QACbM,KAAc;AAAA,QACdP,KAAQ,kBAAkBA,CAAI;AAAA,MAAA;AAAA,MAEhC,eAAeQ;AAAA,MACf,GAAIL,KAAM,EAAE,iBAAiBI,EAAA;AAAA,MAC7B,GAAIA,KAAc,EAAE,UAAU,GAAA;AAAA,IAAG,GAG7BQ,
|
|
1
|
+
{"version":3,"file":"Button.es.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, type MouseEvent, type ReactNode, type RefObject } from \"react\";\n\nimport { csx } from \"../../utils/string\";\nimport {\n isUrlExternal,\n handleInternalNavigation,\n} from \"../../utils/navigation\";\nimport \"./Button.css\";\n\nexport type ButtonVariant =\n | \"primary\"\n | \"secondary\"\n | \"success\"\n | \"danger\"\n | \"translucent\";\n\nexport const ButtonVariants: Record<ButtonVariant, ButtonVariant> = {\n primary: \"primary\",\n secondary: \"secondary\",\n success: \"success\",\n danger: \"danger\",\n translucent: \"translucent\",\n};\n\nexport type ButtonSize = \"small\" | \"medium\" | \"large\" | \"xlarge\" | \"2xlarge\";\n\nexport const ButtonSizes: Record<ButtonSize, ButtonSize> = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n xlarge: \"xlarge\",\n \"2xlarge\": \"2xlarge\",\n};\n\nexport interface ButtonProps {\n /** The button's visual aesthetic\n * - type {@link ButtonVariant}\n */\n variant?: ButtonVariant;\n\n /** The size of the button\n * - type {@link ButtonSize}\n * @default \"medium\"\n */\n size?: ButtonSize;\n\n /** Should the button be full width?\n * @default false\n */\n fullWidth?: boolean;\n\n /** The prefix to display within the button */\n icon?: ReactNode;\n\n /** Should the button be non-interactive? */\n isDisabled?: boolean;\n\n /** The URL that the button should link to. Turns the element into an `a` tag. If the URL is external, you should pass the entire URL to the `to` prop (e.g. `https://example.com`). */\n to?: string;\n\n /** The target attribute for the link. Defaults to `_blank` if the URL is external. */\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | string;\n\n /** Called when the button is pressed (on release, not keydown) */\n onPress?: (e: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;\n\n /** The type of button */\n type?: \"button\" | \"submit\" | \"reset\";\n\n /** The test ID for the button */\n \"data-testid\"?: string;\n\n /** The content to display within the button */\n children?: ReactNode;\n}\n\n/**\n * A customizable button component that can render as either a button or anchor element.\n *\n * API:\n * - {@link ButtonProps}\n */\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n ButtonProps\n>(\n (\n {\n variant = \"primary\",\n size = \"medium\",\n fullWidth = false,\n icon,\n to,\n target,\n onPress,\n type = \"button\",\n isDisabled,\n \"data-testid\": testId,\n children,\n }: ButtonProps,\n ref\n ) => {\n const isExternal = to && isUrlExternal(to);\n\n const commonProps = {\n className: csx(\n \"proton-Button\",\n `proton-Button--${variant}`,\n fullWidth && \"proton-Button--fullWidth\",\n isDisabled && \"proton-Button--disabled\",\n size && `proton-Button--${size}`\n ),\n \"data-testid\": testId,\n ...(to && { \"aria-disabled\": isDisabled }),\n ...(isDisabled && { tabIndex: -1 }),\n };\n\n const content = (\n <>\n {icon && (\n <div\n className={csx(\n \"proton-Button__icon-decorator\",\n fullWidth && \"proton-Button__icon-decorator--fullWidth\"\n )}\n >\n {icon}\n </div>\n )}\n {children && <div className=\"proton-Button__text\">{children}</div>}\n </>\n );\n\n if (to) {\n return (\n <a\n {...commonProps}\n href={to}\n target={target || (isExternal ? \"_blank\" : undefined)}\n rel={\n isExternal || target === \"_blank\"\n ? \"noopener noreferrer\"\n : undefined\n }\n ref={ref as RefObject<HTMLAnchorElement>}\n onClick={(e) => {\n if (isDisabled) {\n e.preventDefault();\n return;\n }\n\n if (!isExternal && !target) {\n handleInternalNavigation(e, to);\n }\n\n onPress?.(e);\n }}\n role=\"button\"\n >\n {content}\n </a>\n );\n }\n\n return (\n <button\n {...commonProps}\n type={type}\n disabled={isDisabled}\n ref={ref as RefObject<HTMLButtonElement>}\n onClick={(e) => {\n if (!isDisabled && onPress) {\n onPress(e);\n }\n }}\n >\n {content}\n </button>\n );\n }\n);\n\nButton.displayName = \"ProtonUIButton\";\n"],"names":["ButtonVariants","ButtonSizes","Button","forwardRef","variant","size","fullWidth","icon","to","target","onPress","type","isDisabled","testId","children","ref","isExternal","isUrlExternal","commonProps","csx","content","jsxs","Fragment","jsx","e","handleInternalNavigation"],"mappings":";;;;;AAkBO,MAAMA,IAAuD;AAAA,EAClE,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,aAAa;AACf,GAIaC,IAA8C;AAAA,EACzD,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,WAAW;AACb,GAkDaC,IAASC;AAAA,EAIpB,CACE;AAAA,IACE,SAAAC,IAAU;AAAA,IACV,MAAAC,IAAO;AAAA,IACP,WAAAC,IAAY;AAAA,IACZ,MAAAC;AAAA,IACA,IAAAC;AAAA,IACA,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,YAAAC;AAAA,IACA,eAAeC;AAAA,IACf,UAAAC;AAAA,EAAA,GAEFC,MACG;AACH,UAAMC,IAAaR,KAAMS,EAAcT,CAAE,GAEnCU,IAAc;AAAA,MAClB,WAAWC;AAAA,QACT;AAAA,QACA,kBAAkBf,CAAO;AAAA,QACzBE,KAAa;AAAA,QACbM,KAAc;AAAA,QACdP,KAAQ,kBAAkBA,CAAI;AAAA,MAAA;AAAA,MAEhC,eAAeQ;AAAA,MACf,GAAIL,KAAM,EAAE,iBAAiBI,EAAA;AAAA,MAC7B,GAAIA,KAAc,EAAE,UAAU,GAAA;AAAA,IAAG,GAG7BQ,IACJ,gBAAAC,EAAAC,GAAA,EACG,UAAA;AAAA,MAAAf,KACC,gBAAAgB;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWJ;AAAA,YACT;AAAA,YACAb,KAAa;AAAA,UAAA;AAAA,UAGd,UAAAC;AAAA,QAAA;AAAA,MAAA;AAAA,MAGJO,KAAY,gBAAAS,EAAC,OAAA,EAAI,WAAU,uBAAuB,UAAAT,EAAA,CAAS;AAAA,IAAA,GAC9D;AAGF,WAAIN,IAEA,gBAAAe;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAGL;AAAA,QACJ,MAAMV;AAAA,QACN,QAAQC,MAAWO,IAAa,WAAW;AAAA,QAC3C,KACEA,KAAcP,MAAW,WACrB,wBACA;AAAA,QAEN,KAAAM;AAAA,QACA,SAAS,CAACS,MAAM;AACd,cAAIZ,GAAY;AACd,YAAAY,EAAE,eAAA;AACF;AAAA,UACF;AAEA,UAAI,CAACR,KAAc,CAACP,KAClBgB,EAAyBD,GAAGhB,CAAE,GAGhCE,KAAA,QAAAA,EAAUc;AAAA,QACZ;AAAA,QACA,MAAK;AAAA,QAEJ,UAAAJ;AAAA,MAAA;AAAA,IAAA,IAML,gBAAAG;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAGL;AAAA,QACJ,MAAAP;AAAA,QACA,UAAUC;AAAA,QACV,KAAAG;AAAA,QACA,SAAS,CAACS,MAAM;AACd,UAAI,CAACZ,KAAcF,KACjBA,EAAQc,CAAC;AAAA,QAEb;AAAA,QAEC,UAAAJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEAlB,EAAO,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),B=require("react"),d=require("radix-ui");;/* empty css */function u({name:a="ButtonGroup",value:t,defaultValue:o,onChange:e,children:i,"data-testid":l}){const r=t!==void 0,[p,c]=B.useState(()=>o||""),G=r?t||"":p;return s.jsx(d.RadioGroup.Root,{name:a,value:r?t:void 0,defaultValue:r?void 0:o,onValueChange:n=>{r||c(n),e==null||e(n)},orientation:"horizontal",className:"proton-ButtonGroup","data-value":G,"data-testid":l,"aria-label":a,children:i})}u.displayName="ProtonUIButtonGroup";u.Option=function({value:t,children:o,"data-testid":e}){const i=typeof o=="string"?o:t;return s.jsx(d.RadioGroup.Item,{value:t,className:"proton-ButtonGroup__option","data-testid":e||void 0,"aria-label":i,children:o})};exports.ButtonGroup=u;
|
|
2
2
|
//# sourceMappingURL=ButtonGroup.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroup.cjs.js","sources":["../../../src/components/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useState } from \"react\";\nimport { RadioGroup as RadixRadioGroup } from \"radix-ui\";\n\nimport \"./ButtonGroup.css\";\n\nexport interface ButtonGroupProps {\n /**\n * The name of the ButtonGroup.\n */\n name?: string;\n /**\n * The value of the currently selected option in the ButtonGroup. Providing\n * this prop causes the component to become controlled.\n */\n value?: string;\n /**\n * The initially selected value of the ButtonGroup.\n */\n defaultValue?: string;\n /**\n * Called when the ButtonGroup's selected value changes.\n */\n onChange?: (value: string) => void;\n /**\n * The ButtonGroup.Option elements to be rendered as the selectable values.\n */\n children?: ReactNode;\n /** The test ID for the component. */\n \"data-testid\"?: string;\n}\n\n/**\n * A radio button group component that allows selection of a single option from multiple choices.\n *\n * API:\n * - {@link ButtonGroupProps}\n */\nexport function ButtonGroup({\n name = \"ButtonGroup\",\n value,\n defaultValue,\n onChange,\n children,\n \"data-testid\": testId,\n}: ButtonGroupProps) {\n const isControlled = value !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n () => defaultValue || \"\"\n );\n const dataValue = isControlled ? (value || \"\") : uncontrolledValue;\n\n return (\n <RadixRadioGroup.Root\n name={name}\n value={isControlled ? value : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n onValueChange={(v) => {\n if (!isControlled) setUncontrolledValue(v);\n onChange?.(v);\n }}\n orientation=\"horizontal\"\n className=\"proton-ButtonGroup\"\n data-value={dataValue}\n data-testid={testId}\n aria-label={name}\n >\n {children}\n </RadixRadioGroup.Root>\n );\n}\n\nButtonGroup.displayName = \"ProtonUIButtonGroup\";\n\nexport interface ButtonGroupOptionProps {\n /**\n * The value of this option. When this option is selected, this value will\n * become the ButtonGroup's new `value`.\n */\n value: string;\n /**\n * The text or component to be rendered as this option's content.\n */\n children: ReactNode;\n /** The test ID for this option. */\n \"data-testid\"?: string;\n}\n\n/**\n * A radio button option for the ButtonGroup.\n *\n * API:\n * - {@link ButtonGroupOptionProps}\n */\nButtonGroup.Option = function ButtonGroupOption({\n value,\n children,\n \"data-testid\": testId,\n}: ButtonGroupOptionProps) {\n const accessibleLabel = typeof children === \"string\" ? children : value;\n\n return (\n <RadixRadioGroup.Item\n value={value}\n className=\"proton-ButtonGroup__option\"\n data-testid={testId || undefined}\n aria-label={accessibleLabel}\n >\n {children}\n </RadixRadioGroup.Item>\n );\n};\n"],"names":["ButtonGroup","name","value","defaultValue","onChange","children","testId","isControlled","uncontrolledValue","setUncontrolledValue","useState","dataValue","jsx","RadixRadioGroup","v","accessibleLabel"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonGroup.cjs.js","sources":["../../../src/components/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useState } from \"react\";\nimport { RadioGroup as RadixRadioGroup } from \"radix-ui\";\n\nimport \"./ButtonGroup.css\";\n\nexport interface ButtonGroupProps {\n /**\n * The name of the ButtonGroup.\n */\n name?: string;\n /**\n * The value of the currently selected option in the ButtonGroup. Providing\n * this prop causes the component to become controlled.\n */\n value?: string;\n /**\n * The initially selected value of the ButtonGroup.\n */\n defaultValue?: string;\n /**\n * Called when the ButtonGroup's selected value changes.\n */\n onChange?: (value: string) => void;\n /**\n * The ButtonGroup.Option elements to be rendered as the selectable values.\n */\n children?: ReactNode;\n /** The test ID for the component. */\n \"data-testid\"?: string;\n}\n\n/**\n * A radio button group component that allows selection of a single option from multiple choices.\n *\n * API:\n * - {@link ButtonGroupProps}\n */\nexport function ButtonGroup({\n name = \"ButtonGroup\",\n value,\n defaultValue,\n onChange,\n children,\n \"data-testid\": testId,\n}: ButtonGroupProps) {\n const isControlled = value !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n () => defaultValue || \"\"\n );\n const dataValue = isControlled ? (value || \"\") : uncontrolledValue;\n\n return (\n <RadixRadioGroup.Root\n name={name}\n value={isControlled ? value : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n onValueChange={(v) => {\n if (!isControlled) setUncontrolledValue(v);\n onChange?.(v);\n }}\n orientation=\"horizontal\"\n className=\"proton-ButtonGroup\"\n data-value={dataValue}\n data-testid={testId}\n aria-label={name}\n >\n {children}\n </RadixRadioGroup.Root>\n );\n}\n\nButtonGroup.displayName = \"ProtonUIButtonGroup\";\n\nexport interface ButtonGroupOptionProps {\n /**\n * The value of this option. When this option is selected, this value will\n * become the ButtonGroup's new `value`.\n */\n value: string;\n /**\n * The text or component to be rendered as this option's content.\n */\n children: ReactNode;\n /** The test ID for this option. */\n \"data-testid\"?: string;\n}\n\n/**\n * A radio button option for the ButtonGroup.\n *\n * API:\n * - {@link ButtonGroupOptionProps}\n */\nButtonGroup.Option = function ButtonGroupOption({\n value,\n children,\n \"data-testid\": testId,\n}: ButtonGroupOptionProps) {\n const accessibleLabel = typeof children === \"string\" ? children : value;\n\n return (\n <RadixRadioGroup.Item\n value={value}\n className=\"proton-ButtonGroup__option\"\n data-testid={testId || undefined}\n aria-label={accessibleLabel}\n >\n {children}\n </RadixRadioGroup.Item>\n );\n};\n"],"names":["ButtonGroup","name","value","defaultValue","onChange","children","testId","isControlled","uncontrolledValue","setUncontrolledValue","useState","dataValue","jsx","RadixRadioGroup","v","accessibleLabel"],"mappings":"kMAuCO,SAASA,EAAY,CAC1B,KAAAC,EAAO,cACP,MAAAC,EACA,aAAAC,EACA,SAAAC,EACA,SAAAC,EACA,cAAeC,CACjB,EAAqB,CACnB,MAAMC,EAAeL,IAAU,OACzB,CAACM,EAAmBC,CAAoB,EAAIC,EAAAA,SAChD,IAAMP,GAAgB,EAAA,EAElBQ,EAAYJ,EAAgBL,GAAS,GAAMM,EAEjD,OACEI,EAAAA,IAACC,EAAAA,WAAgB,KAAhB,CACC,KAAAZ,EACA,MAAOM,EAAeL,EAAQ,OAC9B,aAAcK,EAAe,OAAYJ,EACzC,cAAgBW,GAAM,CACfP,GAAcE,EAAqBK,CAAC,EACzCV,GAAA,MAAAA,EAAWU,EACb,EACA,YAAY,aACZ,UAAU,qBACV,aAAYH,EACZ,cAAaL,EACb,aAAYL,EAEX,SAAAI,CAAA,CAAA,CAGP,CAEAL,EAAY,YAAc,sBAsB1BA,EAAY,OAAS,SAA2B,CAC9C,MAAAE,EACA,SAAAG,EACA,cAAeC,CACjB,EAA2B,CACzB,MAAMS,EAAkB,OAAOV,GAAa,SAAWA,EAAWH,EAElE,OACEU,EAAAA,IAACC,EAAAA,WAAgB,KAAhB,CACC,MAAAX,EACA,UAAU,6BACV,cAAaI,GAAU,OACvB,aAAYS,EAEX,SAAAV,CAAA,CAAA,CAGP"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f } from "react";
|
|
3
|
-
import { RadioGroup as
|
|
3
|
+
import { RadioGroup as s } from "radix-ui";
|
|
4
4
|
/* empty css */
|
|
5
5
|
function p({
|
|
6
6
|
name: i = "ButtonGroup",
|
|
7
7
|
value: t,
|
|
8
8
|
defaultValue: o,
|
|
9
9
|
onChange: a,
|
|
10
|
-
children:
|
|
10
|
+
children: n,
|
|
11
11
|
"data-testid": d
|
|
12
12
|
}) {
|
|
13
|
-
const r = t !== void 0, [l,
|
|
13
|
+
const r = t !== void 0, [l, c] = f(
|
|
14
14
|
() => o || ""
|
|
15
|
-
),
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
|
|
15
|
+
), m = r ? t || "" : l;
|
|
16
|
+
return /* @__PURE__ */ e(
|
|
17
|
+
s.Root,
|
|
18
18
|
{
|
|
19
19
|
name: i,
|
|
20
20
|
value: r ? t : void 0,
|
|
21
21
|
defaultValue: r ? void 0 : o,
|
|
22
|
-
onValueChange: (
|
|
23
|
-
r ||
|
|
22
|
+
onValueChange: (u) => {
|
|
23
|
+
r || c(u), a == null || a(u);
|
|
24
24
|
},
|
|
25
25
|
orientation: "horizontal",
|
|
26
26
|
className: "proton-ButtonGroup",
|
|
27
|
-
"data-value":
|
|
27
|
+
"data-value": m,
|
|
28
28
|
"data-testid": d,
|
|
29
29
|
"aria-label": i,
|
|
30
|
-
children:
|
|
30
|
+
children: n
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}
|
|
@@ -37,14 +37,14 @@ p.Option = function({
|
|
|
37
37
|
children: o,
|
|
38
38
|
"data-testid": a
|
|
39
39
|
}) {
|
|
40
|
-
const
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
|
|
40
|
+
const n = typeof o == "string" ? o : t;
|
|
41
|
+
return /* @__PURE__ */ e(
|
|
42
|
+
s.Item,
|
|
43
43
|
{
|
|
44
44
|
value: t,
|
|
45
45
|
className: "proton-ButtonGroup__option",
|
|
46
46
|
"data-testid": a || void 0,
|
|
47
|
-
"aria-label":
|
|
47
|
+
"aria-label": n,
|
|
48
48
|
children: o
|
|
49
49
|
}
|
|
50
50
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroup.es.js","sources":["../../../src/components/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useState } from \"react\";\nimport { RadioGroup as RadixRadioGroup } from \"radix-ui\";\n\nimport \"./ButtonGroup.css\";\n\nexport interface ButtonGroupProps {\n /**\n * The name of the ButtonGroup.\n */\n name?: string;\n /**\n * The value of the currently selected option in the ButtonGroup. Providing\n * this prop causes the component to become controlled.\n */\n value?: string;\n /**\n * The initially selected value of the ButtonGroup.\n */\n defaultValue?: string;\n /**\n * Called when the ButtonGroup's selected value changes.\n */\n onChange?: (value: string) => void;\n /**\n * The ButtonGroup.Option elements to be rendered as the selectable values.\n */\n children?: ReactNode;\n /** The test ID for the component. */\n \"data-testid\"?: string;\n}\n\n/**\n * A radio button group component that allows selection of a single option from multiple choices.\n *\n * API:\n * - {@link ButtonGroupProps}\n */\nexport function ButtonGroup({\n name = \"ButtonGroup\",\n value,\n defaultValue,\n onChange,\n children,\n \"data-testid\": testId,\n}: ButtonGroupProps) {\n const isControlled = value !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n () => defaultValue || \"\"\n );\n const dataValue = isControlled ? (value || \"\") : uncontrolledValue;\n\n return (\n <RadixRadioGroup.Root\n name={name}\n value={isControlled ? value : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n onValueChange={(v) => {\n if (!isControlled) setUncontrolledValue(v);\n onChange?.(v);\n }}\n orientation=\"horizontal\"\n className=\"proton-ButtonGroup\"\n data-value={dataValue}\n data-testid={testId}\n aria-label={name}\n >\n {children}\n </RadixRadioGroup.Root>\n );\n}\n\nButtonGroup.displayName = \"ProtonUIButtonGroup\";\n\nexport interface ButtonGroupOptionProps {\n /**\n * The value of this option. When this option is selected, this value will\n * become the ButtonGroup's new `value`.\n */\n value: string;\n /**\n * The text or component to be rendered as this option's content.\n */\n children: ReactNode;\n /** The test ID for this option. */\n \"data-testid\"?: string;\n}\n\n/**\n * A radio button option for the ButtonGroup.\n *\n * API:\n * - {@link ButtonGroupOptionProps}\n */\nButtonGroup.Option = function ButtonGroupOption({\n value,\n children,\n \"data-testid\": testId,\n}: ButtonGroupOptionProps) {\n const accessibleLabel = typeof children === \"string\" ? children : value;\n\n return (\n <RadixRadioGroup.Item\n value={value}\n className=\"proton-ButtonGroup__option\"\n data-testid={testId || undefined}\n aria-label={accessibleLabel}\n >\n {children}\n </RadixRadioGroup.Item>\n );\n};\n"],"names":["ButtonGroup","name","value","defaultValue","onChange","children","testId","isControlled","uncontrolledValue","setUncontrolledValue","useState","dataValue","jsx","RadixRadioGroup","v","accessibleLabel"],"mappings":";;;;AAuCO,SAASA,EAAY;AAAA,EAC1B,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAeC;AACjB,GAAqB;AACnB,QAAMC,IAAeL,MAAU,QACzB,CAACM,GAAmBC,CAAoB,IAAIC;AAAA,IAChD,MAAMP,KAAgB;AAAA,EAAA,GAElBQ,IAAYJ,IAAgBL,KAAS,KAAMM;AAEjD,
|
|
1
|
+
{"version":3,"file":"ButtonGroup.es.js","sources":["../../../src/components/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useState } from \"react\";\nimport { RadioGroup as RadixRadioGroup } from \"radix-ui\";\n\nimport \"./ButtonGroup.css\";\n\nexport interface ButtonGroupProps {\n /**\n * The name of the ButtonGroup.\n */\n name?: string;\n /**\n * The value of the currently selected option in the ButtonGroup. Providing\n * this prop causes the component to become controlled.\n */\n value?: string;\n /**\n * The initially selected value of the ButtonGroup.\n */\n defaultValue?: string;\n /**\n * Called when the ButtonGroup's selected value changes.\n */\n onChange?: (value: string) => void;\n /**\n * The ButtonGroup.Option elements to be rendered as the selectable values.\n */\n children?: ReactNode;\n /** The test ID for the component. */\n \"data-testid\"?: string;\n}\n\n/**\n * A radio button group component that allows selection of a single option from multiple choices.\n *\n * API:\n * - {@link ButtonGroupProps}\n */\nexport function ButtonGroup({\n name = \"ButtonGroup\",\n value,\n defaultValue,\n onChange,\n children,\n \"data-testid\": testId,\n}: ButtonGroupProps) {\n const isControlled = value !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n () => defaultValue || \"\"\n );\n const dataValue = isControlled ? (value || \"\") : uncontrolledValue;\n\n return (\n <RadixRadioGroup.Root\n name={name}\n value={isControlled ? value : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n onValueChange={(v) => {\n if (!isControlled) setUncontrolledValue(v);\n onChange?.(v);\n }}\n orientation=\"horizontal\"\n className=\"proton-ButtonGroup\"\n data-value={dataValue}\n data-testid={testId}\n aria-label={name}\n >\n {children}\n </RadixRadioGroup.Root>\n );\n}\n\nButtonGroup.displayName = \"ProtonUIButtonGroup\";\n\nexport interface ButtonGroupOptionProps {\n /**\n * The value of this option. When this option is selected, this value will\n * become the ButtonGroup's new `value`.\n */\n value: string;\n /**\n * The text or component to be rendered as this option's content.\n */\n children: ReactNode;\n /** The test ID for this option. */\n \"data-testid\"?: string;\n}\n\n/**\n * A radio button option for the ButtonGroup.\n *\n * API:\n * - {@link ButtonGroupOptionProps}\n */\nButtonGroup.Option = function ButtonGroupOption({\n value,\n children,\n \"data-testid\": testId,\n}: ButtonGroupOptionProps) {\n const accessibleLabel = typeof children === \"string\" ? children : value;\n\n return (\n <RadixRadioGroup.Item\n value={value}\n className=\"proton-ButtonGroup__option\"\n data-testid={testId || undefined}\n aria-label={accessibleLabel}\n >\n {children}\n </RadixRadioGroup.Item>\n );\n};\n"],"names":["ButtonGroup","name","value","defaultValue","onChange","children","testId","isControlled","uncontrolledValue","setUncontrolledValue","useState","dataValue","jsx","RadixRadioGroup","v","accessibleLabel"],"mappings":";;;;AAuCO,SAASA,EAAY;AAAA,EAC1B,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAeC;AACjB,GAAqB;AACnB,QAAMC,IAAeL,MAAU,QACzB,CAACM,GAAmBC,CAAoB,IAAIC;AAAA,IAChD,MAAMP,KAAgB;AAAA,EAAA,GAElBQ,IAAYJ,IAAgBL,KAAS,KAAMM;AAEjD,SACE,gBAAAI;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,MAAAZ;AAAA,MACA,OAAOM,IAAeL,IAAQ;AAAA,MAC9B,cAAcK,IAAe,SAAYJ;AAAA,MACzC,eAAe,CAACW,MAAM;AACpB,QAAKP,KAAcE,EAAqBK,CAAC,GACzCV,KAAA,QAAAA,EAAWU;AAAA,MACb;AAAA,MACA,aAAY;AAAA,MACZ,WAAU;AAAA,MACV,cAAYH;AAAA,MACZ,eAAaL;AAAA,MACb,cAAYL;AAAA,MAEX,UAAAI;AAAA,IAAA;AAAA,EAAA;AAGP;AAEAL,EAAY,cAAc;AAsB1BA,EAAY,SAAS,SAA2B;AAAA,EAC9C,OAAAE;AAAA,EACA,UAAAG;AAAA,EACA,eAAeC;AACjB,GAA2B;AACzB,QAAMS,IAAkB,OAAOV,KAAa,WAAWA,IAAWH;AAElE,SACE,gBAAAU;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,OAAAX;AAAA,MACA,WAAU;AAAA,MACV,eAAaI,KAAU;AAAA,MACvB,cAAYS;AAAA,MAEX,UAAAV;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),W=require("react"),s=require("../Button/Button.cjs.js"),m=require("../Icon/IconComponents/ChevronDown.cjs.js"),p=require("../Menu/MenuTrigger.cjs.js");;/* empty css */const c=44;function u({items:e,defaultValue:o,children:d,onSelectionChange:a,disabledKeys:g,selectedKey:h,icon:x,variant:i,fullWidth:r,onPress:B,...n}){const S=r?c/2:0;return t.jsxs("div",{className:"proton-ButtonWithSelect",children:[t.jsx("div",{className:"proton-ButtonWithSelect__button",style:{"--proton-button-text-shift":`${S}px`,"--flex":r?1:0},children:t.jsx(s.Button,{...n,onPress:B,icon:x,fullWidth:r,variant:i,"data-testid":"ButtonWithSelect-Button",children:d})}),t.jsx(p.MenuTrigger,{items:e,disabled:n.isDisabled,disabledKeys:g,onSelectionChange:a,selectedKey:h,renderTrigger:({isOpen:j,setIsOpen:T})=>t.jsx(l,{...n,variant:i,onPress:()=>{T(!j)}})})]})}u.displayName="ProtonUIButtonWithSelect";const l=W.forwardRef((e,o)=>t.jsx("div",{className:"proton-ButtonWithSelect__trigger",style:{"--trigger-width":`${c}px`},children:t.jsx(s.Button,{...e,to:void 0,"data-testid":"ButtonWithSelect-Trigger",ref:o,children:t.jsx("div",{className:"proton-ButtonWithSelect__trigger-content",children:t.jsx(m.ChevronDown,{size:16})})})}));l.displayName="ProtonUIButtonWithSelectTrigger";exports.ButtonWithSelect=u;
|
|
2
2
|
//# sourceMappingURL=ButtonWithSelect.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonWithSelect.cjs.js","sources":["../../../src/components/ButtonWithSelect/ButtonWithSelect.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button, type ButtonProps } from \"../Button/Button\";\nimport { ChevronDown } from \"../Icon/IconComponents/ChevronDown\";\nimport { MenuTrigger } from \"../Menu/MenuTrigger\";\nimport type { ActionMenuAction } from \"../ActionMenu/ActionMenu\";\n\nimport \"./ButtonWithSelect.css\";\n\nconst FIXED_TRIGGER_WIDTH = 44;\n\ninterface ButtonWithSelectProps extends ButtonProps {\n /**\n * The default value of the select menu.\n */\n defaultValue?: string;\n /**\n * The keys of the disabled items.\n */\n disabledKeys?: string[];\n /**\n * The items to display in the select menu.\n * - type {@link ActionMenuAction}\n */\n items: ActionMenuAction[];\n /**\n * The callback function to call when the selection changes.\n */\n onSelectionChange?: (key: string) => void;\n /**\n * The key of the selected item.\n */\n selectedKey?: string;\n}\n\n/**\n * A button with a select menu.\n *\n * API:\n * - {@link ButtonWithSelectProps}\n * - extends {@link ButtonProps}\n */\nexport function ButtonWithSelect({\n items,\n defaultValue,\n children,\n onSelectionChange,\n disabledKeys,\n selectedKey,\n icon,\n variant,\n fullWidth,\n onPress,\n ...buttonProps\n}: ButtonWithSelectProps) {\n const textShift = fullWidth ? FIXED_TRIGGER_WIDTH / 2 : 0;\n\n return (\n <div className=\"proton-ButtonWithSelect\">\n <div\n className=\"proton-ButtonWithSelect__button\"\n style={\n {\n \"--proton-button-text-shift\": `${textShift}px`,\n \"--flex\": fullWidth ? 1 : 0,\n } as React.CSSProperties\n }\n >\n <Button\n {...buttonProps}\n onPress={onPress}\n icon={icon}\n fullWidth={fullWidth}\n variant={variant}\n data-testid=\"ButtonWithSelect-Button\"\n >\n {children}\n </Button>\n </div>\n\n <MenuTrigger\n items={items}\n disabled={buttonProps.isDisabled}\n disabledKeys={disabledKeys}\n onSelectionChange={onSelectionChange}\n selectedKey={selectedKey}\n renderTrigger={({ isOpen, setIsOpen }) => {\n return (\n <TriggerButton\n {...buttonProps}\n variant={variant}\n onPress={() => {\n setIsOpen(!isOpen);\n }}\n />\n );\n }}\n />\n </div>\n );\n}\n\nButtonWithSelect.displayName = \"ProtonUIButtonWithSelect\";\n\nconst TriggerButton = React.forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n ButtonProps\n>((props, ref) => {\n return (\n <div\n className=\"proton-ButtonWithSelect__trigger\"\n style={\n {\n \"--trigger-width\": `${FIXED_TRIGGER_WIDTH}px`,\n } as React.CSSProperties\n }\n >\n <Button {...{ ...props, to: undefined }} data-testid=\"ButtonWithSelect-Trigger\" ref={ref}>\n <div className=\"proton-ButtonWithSelect__trigger-content\">\n <ChevronDown size={16} />\n </div>\n </Button>\n </div>\n );\n});\n\nTriggerButton.displayName = \"ProtonUIButtonWithSelectTrigger\";\n"],"names":["FIXED_TRIGGER_WIDTH","ButtonWithSelect","items","defaultValue","children","onSelectionChange","disabledKeys","selectedKey","icon","variant","fullWidth","onPress","buttonProps","textShift","jsxs","jsx","Button","MenuTrigger","isOpen","setIsOpen","TriggerButton","React","props","ref","ChevronDown"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonWithSelect.cjs.js","sources":["../../../src/components/ButtonWithSelect/ButtonWithSelect.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button, type ButtonProps } from \"../Button/Button\";\nimport { ChevronDown } from \"../Icon/IconComponents/ChevronDown\";\nimport { MenuTrigger } from \"../Menu/MenuTrigger\";\nimport type { ActionMenuAction } from \"../ActionMenu/ActionMenu\";\n\nimport \"./ButtonWithSelect.css\";\n\nconst FIXED_TRIGGER_WIDTH = 44;\n\ninterface ButtonWithSelectProps extends ButtonProps {\n /**\n * The default value of the select menu.\n */\n defaultValue?: string;\n /**\n * The keys of the disabled items.\n */\n disabledKeys?: string[];\n /**\n * The items to display in the select menu.\n * - type {@link ActionMenuAction}\n */\n items: ActionMenuAction[];\n /**\n * The callback function to call when the selection changes.\n */\n onSelectionChange?: (key: string) => void;\n /**\n * The key of the selected item.\n */\n selectedKey?: string;\n}\n\n/**\n * A button with a select menu.\n *\n * API:\n * - {@link ButtonWithSelectProps}\n * - extends {@link ButtonProps}\n */\nexport function ButtonWithSelect({\n items,\n defaultValue,\n children,\n onSelectionChange,\n disabledKeys,\n selectedKey,\n icon,\n variant,\n fullWidth,\n onPress,\n ...buttonProps\n}: ButtonWithSelectProps) {\n const textShift = fullWidth ? FIXED_TRIGGER_WIDTH / 2 : 0;\n\n return (\n <div className=\"proton-ButtonWithSelect\">\n <div\n className=\"proton-ButtonWithSelect__button\"\n style={\n {\n \"--proton-button-text-shift\": `${textShift}px`,\n \"--flex\": fullWidth ? 1 : 0,\n } as React.CSSProperties\n }\n >\n <Button\n {...buttonProps}\n onPress={onPress}\n icon={icon}\n fullWidth={fullWidth}\n variant={variant}\n data-testid=\"ButtonWithSelect-Button\"\n >\n {children}\n </Button>\n </div>\n\n <MenuTrigger\n items={items}\n disabled={buttonProps.isDisabled}\n disabledKeys={disabledKeys}\n onSelectionChange={onSelectionChange}\n selectedKey={selectedKey}\n renderTrigger={({ isOpen, setIsOpen }) => {\n return (\n <TriggerButton\n {...buttonProps}\n variant={variant}\n onPress={() => {\n setIsOpen(!isOpen);\n }}\n />\n );\n }}\n />\n </div>\n );\n}\n\nButtonWithSelect.displayName = \"ProtonUIButtonWithSelect\";\n\nconst TriggerButton = React.forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n ButtonProps\n>((props, ref) => {\n return (\n <div\n className=\"proton-ButtonWithSelect__trigger\"\n style={\n {\n \"--trigger-width\": `${FIXED_TRIGGER_WIDTH}px`,\n } as React.CSSProperties\n }\n >\n <Button {...{ ...props, to: undefined }} data-testid=\"ButtonWithSelect-Trigger\" ref={ref}>\n <div className=\"proton-ButtonWithSelect__trigger-content\">\n <ChevronDown size={16} />\n </div>\n </Button>\n </div>\n );\n});\n\nTriggerButton.displayName = \"ProtonUIButtonWithSelectTrigger\";\n"],"names":["FIXED_TRIGGER_WIDTH","ButtonWithSelect","items","defaultValue","children","onSelectionChange","disabledKeys","selectedKey","icon","variant","fullWidth","onPress","buttonProps","textShift","jsxs","jsx","Button","MenuTrigger","isOpen","setIsOpen","TriggerButton","React","props","ref","ChevronDown"],"mappings":"qTAQA,MAAMA,EAAsB,GAiCrB,SAASC,EAAiB,CAC/B,MAAAC,EACA,aAAAC,EACA,SAAAC,EACA,kBAAAC,EACA,aAAAC,EACA,YAAAC,EACA,KAAAC,EACA,QAAAC,EACA,UAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EAA0B,CACxB,MAAMC,EAAYH,EAAYV,EAAsB,EAAI,EAExD,OACEc,EAAAA,KAAC,MAAA,CAAI,UAAU,0BACb,SAAA,CAAAC,EAAAA,IAAC,MAAA,CACC,UAAU,kCACV,MACE,CACE,6BAA8B,GAAGF,CAAS,KAC1C,SAAUH,EAAY,EAAI,CAAA,EAI9B,SAAAK,EAAAA,IAACC,EAAAA,OAAA,CACE,GAAGJ,EACJ,QAAAD,EACA,KAAAH,EACA,UAAAE,EACA,QAAAD,EACA,cAAY,0BAEX,SAAAL,CAAA,CAAA,CACH,CAAA,EAGFW,EAAAA,IAACE,EAAAA,YAAA,CACC,MAAAf,EACA,SAAUU,EAAY,WACtB,aAAAN,EACA,kBAAAD,EACA,YAAAE,EACA,cAAe,CAAC,CAAE,OAAAW,EAAQ,UAAAC,KAEtBJ,EAAAA,IAACK,EAAA,CACE,GAAGR,EACJ,QAAAH,EACA,QAAS,IAAM,CACbU,EAAU,CAACD,CAAM,CACnB,CAAA,CAAA,CAGN,CAAA,CACF,EACF,CAEJ,CAEAjB,EAAiB,YAAc,2BAE/B,MAAMmB,EAAgBC,EAAM,WAG1B,CAACC,EAAOC,IAENR,EAAAA,IAAC,MAAA,CACC,UAAU,mCACV,MACE,CACE,kBAAmB,GAAGf,CAAmB,IAAA,EAI7C,SAAAe,EAAAA,IAACC,UAAa,GAAGM,EAAO,GAAI,OAAa,cAAY,2BAA2B,IAAAC,EAC9E,SAAAR,EAAAA,IAAC,OAAI,UAAU,2CACb,eAACS,EAAAA,YAAA,CAAY,KAAM,EAAA,CAAI,CAAA,CACzB,CAAA,CACF,CAAA,CAAA,CAGL,EAEDJ,EAAc,YAAc"}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as S, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import x from "react";
|
|
3
3
|
import { Button as s } from "../Button/Button.es.js";
|
|
4
|
-
import { ChevronDown as
|
|
5
|
-
import { MenuTrigger as
|
|
4
|
+
import { ChevronDown as W } from "../Icon/IconComponents/ChevronDown.es.js";
|
|
5
|
+
import { MenuTrigger as _ } from "../Menu/MenuTrigger.es.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
const c = 44;
|
|
8
|
-
function
|
|
8
|
+
function T({
|
|
9
9
|
items: e,
|
|
10
10
|
defaultValue: i,
|
|
11
11
|
children: d,
|
|
12
12
|
onSelectionChange: a,
|
|
13
|
-
disabledKeys:
|
|
14
|
-
selectedKey:
|
|
15
|
-
icon:
|
|
13
|
+
disabledKeys: m,
|
|
14
|
+
selectedKey: u,
|
|
15
|
+
icon: g,
|
|
16
16
|
variant: n,
|
|
17
17
|
fullWidth: r,
|
|
18
|
-
onPress:
|
|
18
|
+
onPress: h,
|
|
19
19
|
...o
|
|
20
20
|
}) {
|
|
21
|
-
const
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */ t
|
|
21
|
+
const p = r ? c / 2 : 0;
|
|
22
|
+
return /* @__PURE__ */ S("div", { className: "proton-ButtonWithSelect", children: [
|
|
23
|
+
/* @__PURE__ */ t(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
26
|
className: "proton-ButtonWithSelect__button",
|
|
27
27
|
style: {
|
|
28
|
-
"--proton-button-text-shift": `${
|
|
28
|
+
"--proton-button-text-shift": `${p}px`,
|
|
29
29
|
"--flex": r ? 1 : 0
|
|
30
30
|
},
|
|
31
|
-
children: /* @__PURE__ */ t
|
|
31
|
+
children: /* @__PURE__ */ t(
|
|
32
32
|
s,
|
|
33
33
|
{
|
|
34
34
|
...o,
|
|
35
|
-
onPress:
|
|
36
|
-
icon:
|
|
35
|
+
onPress: h,
|
|
36
|
+
icon: g,
|
|
37
37
|
fullWidth: r,
|
|
38
38
|
variant: n,
|
|
39
39
|
"data-testid": "ButtonWithSelect-Button",
|
|
@@ -42,21 +42,21 @@ function W({
|
|
|
42
42
|
)
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
/* @__PURE__ */ t
|
|
46
|
-
|
|
45
|
+
/* @__PURE__ */ t(
|
|
46
|
+
_,
|
|
47
47
|
{
|
|
48
48
|
items: e,
|
|
49
49
|
disabled: o.isDisabled,
|
|
50
|
-
disabledKeys:
|
|
50
|
+
disabledKeys: m,
|
|
51
51
|
onSelectionChange: a,
|
|
52
|
-
selectedKey:
|
|
53
|
-
renderTrigger: ({ isOpen:
|
|
52
|
+
selectedKey: u,
|
|
53
|
+
renderTrigger: ({ isOpen: B, setIsOpen: f }) => /* @__PURE__ */ t(
|
|
54
54
|
l,
|
|
55
55
|
{
|
|
56
56
|
...o,
|
|
57
57
|
variant: n,
|
|
58
58
|
onPress: () => {
|
|
59
|
-
|
|
59
|
+
f(!B);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
)
|
|
@@ -64,19 +64,19 @@ function W({
|
|
|
64
64
|
)
|
|
65
65
|
] });
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
const l =
|
|
67
|
+
T.displayName = "ProtonUIButtonWithSelect";
|
|
68
|
+
const l = x.forwardRef((e, i) => /* @__PURE__ */ t(
|
|
69
69
|
"div",
|
|
70
70
|
{
|
|
71
71
|
className: "proton-ButtonWithSelect__trigger",
|
|
72
72
|
style: {
|
|
73
73
|
"--trigger-width": `${c}px`
|
|
74
74
|
},
|
|
75
|
-
children: /* @__PURE__ */ t
|
|
75
|
+
children: /* @__PURE__ */ t(s, { ...e, to: void 0, "data-testid": "ButtonWithSelect-Trigger", ref: i, children: /* @__PURE__ */ t("div", { className: "proton-ButtonWithSelect__trigger-content", children: /* @__PURE__ */ t(W, { size: 16 }) }) })
|
|
76
76
|
}
|
|
77
77
|
));
|
|
78
78
|
l.displayName = "ProtonUIButtonWithSelectTrigger";
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
T as ButtonWithSelect
|
|
81
81
|
};
|
|
82
82
|
//# sourceMappingURL=ButtonWithSelect.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonWithSelect.es.js","sources":["../../../src/components/ButtonWithSelect/ButtonWithSelect.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button, type ButtonProps } from \"../Button/Button\";\nimport { ChevronDown } from \"../Icon/IconComponents/ChevronDown\";\nimport { MenuTrigger } from \"../Menu/MenuTrigger\";\nimport type { ActionMenuAction } from \"../ActionMenu/ActionMenu\";\n\nimport \"./ButtonWithSelect.css\";\n\nconst FIXED_TRIGGER_WIDTH = 44;\n\ninterface ButtonWithSelectProps extends ButtonProps {\n /**\n * The default value of the select menu.\n */\n defaultValue?: string;\n /**\n * The keys of the disabled items.\n */\n disabledKeys?: string[];\n /**\n * The items to display in the select menu.\n * - type {@link ActionMenuAction}\n */\n items: ActionMenuAction[];\n /**\n * The callback function to call when the selection changes.\n */\n onSelectionChange?: (key: string) => void;\n /**\n * The key of the selected item.\n */\n selectedKey?: string;\n}\n\n/**\n * A button with a select menu.\n *\n * API:\n * - {@link ButtonWithSelectProps}\n * - extends {@link ButtonProps}\n */\nexport function ButtonWithSelect({\n items,\n defaultValue,\n children,\n onSelectionChange,\n disabledKeys,\n selectedKey,\n icon,\n variant,\n fullWidth,\n onPress,\n ...buttonProps\n}: ButtonWithSelectProps) {\n const textShift = fullWidth ? FIXED_TRIGGER_WIDTH / 2 : 0;\n\n return (\n <div className=\"proton-ButtonWithSelect\">\n <div\n className=\"proton-ButtonWithSelect__button\"\n style={\n {\n \"--proton-button-text-shift\": `${textShift}px`,\n \"--flex\": fullWidth ? 1 : 0,\n } as React.CSSProperties\n }\n >\n <Button\n {...buttonProps}\n onPress={onPress}\n icon={icon}\n fullWidth={fullWidth}\n variant={variant}\n data-testid=\"ButtonWithSelect-Button\"\n >\n {children}\n </Button>\n </div>\n\n <MenuTrigger\n items={items}\n disabled={buttonProps.isDisabled}\n disabledKeys={disabledKeys}\n onSelectionChange={onSelectionChange}\n selectedKey={selectedKey}\n renderTrigger={({ isOpen, setIsOpen }) => {\n return (\n <TriggerButton\n {...buttonProps}\n variant={variant}\n onPress={() => {\n setIsOpen(!isOpen);\n }}\n />\n );\n }}\n />\n </div>\n );\n}\n\nButtonWithSelect.displayName = \"ProtonUIButtonWithSelect\";\n\nconst TriggerButton = React.forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n ButtonProps\n>((props, ref) => {\n return (\n <div\n className=\"proton-ButtonWithSelect__trigger\"\n style={\n {\n \"--trigger-width\": `${FIXED_TRIGGER_WIDTH}px`,\n } as React.CSSProperties\n }\n >\n <Button {...{ ...props, to: undefined }} data-testid=\"ButtonWithSelect-Trigger\" ref={ref}>\n <div className=\"proton-ButtonWithSelect__trigger-content\">\n <ChevronDown size={16} />\n </div>\n </Button>\n </div>\n );\n});\n\nTriggerButton.displayName = \"ProtonUIButtonWithSelectTrigger\";\n"],"names":["FIXED_TRIGGER_WIDTH","ButtonWithSelect","items","defaultValue","children","onSelectionChange","disabledKeys","selectedKey","icon","variant","fullWidth","onPress","buttonProps","textShift","jsxs","jsx","Button","MenuTrigger","isOpen","setIsOpen","TriggerButton","React","props","ref","ChevronDown"],"mappings":";;;;;;AAQA,MAAMA,IAAsB;AAiCrB,SAASC,EAAiB;AAAA,EAC/B,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,GAA0B;AACxB,QAAMC,IAAYH,IAAYV,IAAsB,IAAI;AAExD,
|
|
1
|
+
{"version":3,"file":"ButtonWithSelect.es.js","sources":["../../../src/components/ButtonWithSelect/ButtonWithSelect.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button, type ButtonProps } from \"../Button/Button\";\nimport { ChevronDown } from \"../Icon/IconComponents/ChevronDown\";\nimport { MenuTrigger } from \"../Menu/MenuTrigger\";\nimport type { ActionMenuAction } from \"../ActionMenu/ActionMenu\";\n\nimport \"./ButtonWithSelect.css\";\n\nconst FIXED_TRIGGER_WIDTH = 44;\n\ninterface ButtonWithSelectProps extends ButtonProps {\n /**\n * The default value of the select menu.\n */\n defaultValue?: string;\n /**\n * The keys of the disabled items.\n */\n disabledKeys?: string[];\n /**\n * The items to display in the select menu.\n * - type {@link ActionMenuAction}\n */\n items: ActionMenuAction[];\n /**\n * The callback function to call when the selection changes.\n */\n onSelectionChange?: (key: string) => void;\n /**\n * The key of the selected item.\n */\n selectedKey?: string;\n}\n\n/**\n * A button with a select menu.\n *\n * API:\n * - {@link ButtonWithSelectProps}\n * - extends {@link ButtonProps}\n */\nexport function ButtonWithSelect({\n items,\n defaultValue,\n children,\n onSelectionChange,\n disabledKeys,\n selectedKey,\n icon,\n variant,\n fullWidth,\n onPress,\n ...buttonProps\n}: ButtonWithSelectProps) {\n const textShift = fullWidth ? FIXED_TRIGGER_WIDTH / 2 : 0;\n\n return (\n <div className=\"proton-ButtonWithSelect\">\n <div\n className=\"proton-ButtonWithSelect__button\"\n style={\n {\n \"--proton-button-text-shift\": `${textShift}px`,\n \"--flex\": fullWidth ? 1 : 0,\n } as React.CSSProperties\n }\n >\n <Button\n {...buttonProps}\n onPress={onPress}\n icon={icon}\n fullWidth={fullWidth}\n variant={variant}\n data-testid=\"ButtonWithSelect-Button\"\n >\n {children}\n </Button>\n </div>\n\n <MenuTrigger\n items={items}\n disabled={buttonProps.isDisabled}\n disabledKeys={disabledKeys}\n onSelectionChange={onSelectionChange}\n selectedKey={selectedKey}\n renderTrigger={({ isOpen, setIsOpen }) => {\n return (\n <TriggerButton\n {...buttonProps}\n variant={variant}\n onPress={() => {\n setIsOpen(!isOpen);\n }}\n />\n );\n }}\n />\n </div>\n );\n}\n\nButtonWithSelect.displayName = \"ProtonUIButtonWithSelect\";\n\nconst TriggerButton = React.forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n ButtonProps\n>((props, ref) => {\n return (\n <div\n className=\"proton-ButtonWithSelect__trigger\"\n style={\n {\n \"--trigger-width\": `${FIXED_TRIGGER_WIDTH}px`,\n } as React.CSSProperties\n }\n >\n <Button {...{ ...props, to: undefined }} data-testid=\"ButtonWithSelect-Trigger\" ref={ref}>\n <div className=\"proton-ButtonWithSelect__trigger-content\">\n <ChevronDown size={16} />\n </div>\n </Button>\n </div>\n );\n});\n\nTriggerButton.displayName = \"ProtonUIButtonWithSelectTrigger\";\n"],"names":["FIXED_TRIGGER_WIDTH","ButtonWithSelect","items","defaultValue","children","onSelectionChange","disabledKeys","selectedKey","icon","variant","fullWidth","onPress","buttonProps","textShift","jsxs","jsx","Button","MenuTrigger","isOpen","setIsOpen","TriggerButton","React","props","ref","ChevronDown"],"mappings":";;;;;;AAQA,MAAMA,IAAsB;AAiCrB,SAASC,EAAiB;AAAA,EAC/B,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,GAA0B;AACxB,QAAMC,IAAYH,IAAYV,IAAsB,IAAI;AAExD,SACE,gBAAAc,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,OACE;AAAA,UACE,8BAA8B,GAAGF,CAAS;AAAA,UAC1C,UAAUH,IAAY,IAAI;AAAA,QAAA;AAAA,QAI9B,UAAA,gBAAAK;AAAA,UAACC;AAAA,UAAA;AAAA,YACE,GAAGJ;AAAA,YACJ,SAAAD;AAAA,YACA,MAAAH;AAAA,YACA,WAAAE;AAAA,YACA,SAAAD;AAAA,YACA,eAAY;AAAA,YAEX,UAAAL;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,IAGF,gBAAAW;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,OAAAf;AAAA,QACA,UAAUU,EAAY;AAAA,QACtB,cAAAN;AAAA,QACA,mBAAAD;AAAA,QACA,aAAAE;AAAA,QACA,eAAe,CAAC,EAAE,QAAAW,GAAQ,WAAAC,QAEtB,gBAAAJ;AAAA,UAACK;AAAA,UAAA;AAAA,YACE,GAAGR;AAAA,YACJ,SAAAH;AAAA,YACA,SAAS,MAAM;AACb,cAAAU,EAAU,CAACD,CAAM;AAAA,YACnB;AAAA,UAAA;AAAA,QAAA;AAAA,MAGN;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;AAEAjB,EAAiB,cAAc;AAE/B,MAAMmB,IAAgBC,EAAM,WAG1B,CAACC,GAAOC,MAEN,gBAAAR;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACV,OACE;AAAA,MACE,mBAAmB,GAAGf,CAAmB;AAAA,IAAA;AAAA,IAI7C,UAAA,gBAAAe,EAACC,KAAa,GAAGM,GAAO,IAAI,QAAa,eAAY,4BAA2B,KAAAC,GAC9E,UAAA,gBAAAR,EAAC,SAAI,WAAU,4CACb,4BAACS,GAAA,EAAY,MAAM,GAAA,CAAI,EAAA,CACzB,EAAA,CACF;AAAA,EAAA;AAAA,CAGL;AAEDJ,EAAc,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");;/* empty css */const e=require("../../utils/string.cjs.js"),r=({round:t=!1})=>t?o.jsx("span",{className:e.csx("proton-CheckboxIndicator","proton-CheckboxIndicator--round"),"aria-hidden":!0,children:o.jsx("span",{className:"proton-CheckboxIndicator__dot"})}):o.jsx("svg",{className:e.csx("proton-CheckboxIndicator","proton-CheckboxIndicator--checkmark"),viewBox:"0 0 20 18","aria-hidden":!0,children:o.jsx("path",{className:"proton-CheckboxIndicator__path",d:"M4 10l4 4 10-10",fill:"none",stroke:"currentColor",strokeWidth:"2.86",strokeLinecap:"round",strokeLinejoin:"round",pathLength:1})});r.displayName="ProtonUICheckboxIndicator";exports.CheckboxIndicator=r;
|
|
2
2
|
//# sourceMappingURL=CheckboxIndicator.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxIndicator.cjs.js","sources":["../../../src/components/Checkbox/CheckboxIndicator.tsx"],"sourcesContent":["\"use client\";\n\nimport { csx } from \"../../utils\";\nimport \"./CheckboxIndicator.css\";\n\nexport interface CheckboxIndicatorProps {\n /**\n * When true, show a round dot indicator.\n * @default false\n */\n round?: boolean;\n}\n\n/**\n * Visual indicator for checkbox checked state.\n * @note Visibility is driven by parent checked state via CSS.\n */\nexport const CheckboxIndicator = ({\n round = false,\n}: CheckboxIndicatorProps) => {\n if (round) {\n return (\n <span\n className={csx(\n \"proton-CheckboxIndicator\",\n \"proton-CheckboxIndicator--round\",\n )}\n aria-hidden\n >\n <span className=\"proton-CheckboxIndicator__dot\" />\n </span>\n );\n }\n\n return (\n <svg\n className={csx(\n \"proton-CheckboxIndicator\",\n \"proton-CheckboxIndicator--checkmark\",\n )}\n viewBox=\"0 0 20 18\"\n aria-hidden\n >\n <path\n className=\"proton-CheckboxIndicator__path\"\n d=\"M4 10l4 4 10-10\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.86\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n pathLength={1}\n />\n </svg>\n );\n};\n\nCheckboxIndicator.displayName = \"ProtonUICheckboxIndicator\";\n"],"names":["CheckboxIndicator","round","jsx","csx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"CheckboxIndicator.cjs.js","sources":["../../../src/components/Checkbox/CheckboxIndicator.tsx"],"sourcesContent":["\"use client\";\n\nimport { csx } from \"../../utils\";\nimport \"./CheckboxIndicator.css\";\n\nexport interface CheckboxIndicatorProps {\n /**\n * When true, show a round dot indicator.\n * @default false\n */\n round?: boolean;\n}\n\n/**\n * Visual indicator for checkbox checked state.\n * @note Visibility is driven by parent checked state via CSS.\n */\nexport const CheckboxIndicator = ({\n round = false,\n}: CheckboxIndicatorProps) => {\n if (round) {\n return (\n <span\n className={csx(\n \"proton-CheckboxIndicator\",\n \"proton-CheckboxIndicator--round\",\n )}\n aria-hidden\n >\n <span className=\"proton-CheckboxIndicator__dot\" />\n </span>\n );\n }\n\n return (\n <svg\n className={csx(\n \"proton-CheckboxIndicator\",\n \"proton-CheckboxIndicator--checkmark\",\n )}\n viewBox=\"0 0 20 18\"\n aria-hidden\n >\n <path\n className=\"proton-CheckboxIndicator__path\"\n d=\"M4 10l4 4 10-10\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.86\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n pathLength={1}\n />\n </svg>\n );\n};\n\nCheckboxIndicator.displayName = \"ProtonUICheckboxIndicator\";\n"],"names":["CheckboxIndicator","round","jsx","csx"],"mappings":"4MAiBaA,EAAoB,CAAC,CAChC,MAAAC,EAAQ,EACV,IACMA,EAEAC,EAAAA,IAAC,OAAA,CACC,UAAWC,EAAAA,IACT,2BACA,iCAAA,EAEF,cAAW,GAEX,SAAAD,EAAAA,IAAC,OAAA,CAAK,UAAU,+BAAA,CAAgC,CAAA,CAAA,EAMpDA,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,IACT,2BACA,qCAAA,EAEF,QAAQ,YACR,cAAW,GAEX,SAAAD,EAAAA,IAAC,OAAA,CACC,UAAU,iCACV,EAAE,kBACF,KAAK,OACL,OAAO,eACP,YAAY,OACZ,cAAc,QACd,eAAe,QACf,WAAY,CAAA,CAAA,CACd,CAAA,EAKNF,EAAkB,YAAc"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { csx as r } from "../../utils/string.es.js";
|
|
4
4
|
const e = ({
|
|
5
5
|
round: t = !1
|
|
6
|
-
}) => t ? /* @__PURE__ */ o
|
|
6
|
+
}) => t ? /* @__PURE__ */ o(
|
|
7
7
|
"span",
|
|
8
8
|
{
|
|
9
9
|
className: r(
|
|
@@ -11,9 +11,9 @@ const e = ({
|
|
|
11
11
|
"proton-CheckboxIndicator--round"
|
|
12
12
|
),
|
|
13
13
|
"aria-hidden": !0,
|
|
14
|
-
children: /* @__PURE__ */ o
|
|
14
|
+
children: /* @__PURE__ */ o("span", { className: "proton-CheckboxIndicator__dot" })
|
|
15
15
|
}
|
|
16
|
-
) : /* @__PURE__ */ o
|
|
16
|
+
) : /* @__PURE__ */ o(
|
|
17
17
|
"svg",
|
|
18
18
|
{
|
|
19
19
|
className: r(
|
|
@@ -22,7 +22,7 @@ const e = ({
|
|
|
22
22
|
),
|
|
23
23
|
viewBox: "0 0 20 18",
|
|
24
24
|
"aria-hidden": !0,
|
|
25
|
-
children: /* @__PURE__ */ o
|
|
25
|
+
children: /* @__PURE__ */ o(
|
|
26
26
|
"path",
|
|
27
27
|
{
|
|
28
28
|
className: "proton-CheckboxIndicator__path",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxIndicator.es.js","sources":["../../../src/components/Checkbox/CheckboxIndicator.tsx"],"sourcesContent":["\"use client\";\n\nimport { csx } from \"../../utils\";\nimport \"./CheckboxIndicator.css\";\n\nexport interface CheckboxIndicatorProps {\n /**\n * When true, show a round dot indicator.\n * @default false\n */\n round?: boolean;\n}\n\n/**\n * Visual indicator for checkbox checked state.\n * @note Visibility is driven by parent checked state via CSS.\n */\nexport const CheckboxIndicator = ({\n round = false,\n}: CheckboxIndicatorProps) => {\n if (round) {\n return (\n <span\n className={csx(\n \"proton-CheckboxIndicator\",\n \"proton-CheckboxIndicator--round\",\n )}\n aria-hidden\n >\n <span className=\"proton-CheckboxIndicator__dot\" />\n </span>\n );\n }\n\n return (\n <svg\n className={csx(\n \"proton-CheckboxIndicator\",\n \"proton-CheckboxIndicator--checkmark\",\n )}\n viewBox=\"0 0 20 18\"\n aria-hidden\n >\n <path\n className=\"proton-CheckboxIndicator__path\"\n d=\"M4 10l4 4 10-10\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.86\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n pathLength={1}\n />\n </svg>\n );\n};\n\nCheckboxIndicator.displayName = \"ProtonUICheckboxIndicator\";\n"],"names":["CheckboxIndicator","round","jsx","csx"],"mappings":";;;AAiBO,MAAMA,IAAoB,CAAC;AAAA,EAChC,OAAAC,IAAQ;AACV,MACMA,
|
|
1
|
+
{"version":3,"file":"CheckboxIndicator.es.js","sources":["../../../src/components/Checkbox/CheckboxIndicator.tsx"],"sourcesContent":["\"use client\";\n\nimport { csx } from \"../../utils\";\nimport \"./CheckboxIndicator.css\";\n\nexport interface CheckboxIndicatorProps {\n /**\n * When true, show a round dot indicator.\n * @default false\n */\n round?: boolean;\n}\n\n/**\n * Visual indicator for checkbox checked state.\n * @note Visibility is driven by parent checked state via CSS.\n */\nexport const CheckboxIndicator = ({\n round = false,\n}: CheckboxIndicatorProps) => {\n if (round) {\n return (\n <span\n className={csx(\n \"proton-CheckboxIndicator\",\n \"proton-CheckboxIndicator--round\",\n )}\n aria-hidden\n >\n <span className=\"proton-CheckboxIndicator__dot\" />\n </span>\n );\n }\n\n return (\n <svg\n className={csx(\n \"proton-CheckboxIndicator\",\n \"proton-CheckboxIndicator--checkmark\",\n )}\n viewBox=\"0 0 20 18\"\n aria-hidden\n >\n <path\n className=\"proton-CheckboxIndicator__path\"\n d=\"M4 10l4 4 10-10\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.86\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n pathLength={1}\n />\n </svg>\n );\n};\n\nCheckboxIndicator.displayName = \"ProtonUICheckboxIndicator\";\n"],"names":["CheckboxIndicator","round","jsx","csx"],"mappings":";;;AAiBO,MAAMA,IAAoB,CAAC;AAAA,EAChC,OAAAC,IAAQ;AACV,MACMA,IAEA,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAEF,eAAW;AAAA,IAEX,UAAA,gBAAAD,EAAC,QAAA,EAAK,WAAU,gCAAA,CAAgC;AAAA,EAAA;AAAA,IAMpD,gBAAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAEF,SAAQ;AAAA,IACR,eAAW;AAAA,IAEX,UAAA,gBAAAD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,GAAE;AAAA,QACF,MAAK;AAAA,QACL,QAAO;AAAA,QACP,aAAY;AAAA,QACZ,eAAc;AAAA,QACd,gBAAe;AAAA,QACf,YAAY;AAAA,MAAA;AAAA,IAAA;AAAA,EACd;AAAA;AAKNF,EAAkB,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),B=require("../../../hooks/useMergedRef.cjs.js"),M=require("../CheckboxIndicator.cjs.js");;/* empty css */const r=require("../../../utils/string.cjs.js"),I=c.forwardRef(({checked:l,defaultChecked:_,onChange:n,name:p,value:j,isDisabled:x=!1,isRequired:h=!1,id:v,"data-testid":C,label:o,description:s,error:t,indeterminate:b=!1,round:i=!1},y)=>{const a=c.useRef(null),g=B.useMergedRef(a,y),m=l!==void 0,d=c.useId();c.useEffect(()=>{a.current&&(a.current.indeterminate=b)},[b]);const N=q=>{n==null||n(q.target.checked)},f=v||`${d}-checkbox`,u=typeof t=="string"?`${d}-error`:void 0,k=typeof s=="string"?`${d}-description`:void 0,R=[u,k].filter(Boolean).join(" ")||void 0;return e.jsxs("div",{children:[e.jsx("div",{className:r.csx(x&&"proton-CheckboxInput--disabled"),children:e.jsxs("div",{className:r.csx("proton-CheckboxInput__container",i&&"proton-CheckboxInput__container--round"),children:[typeof o=="string"?e.jsx("label",{htmlFor:f,className:"proton-CheckboxInput__label",children:o}):o,e.jsxs("span",{className:"proton-CheckboxInput__box",children:[e.jsx("input",{ref:g,id:f,name:p,type:"checkbox",...m?{checked:l}:{defaultChecked:_},value:j,disabled:x,required:h,onChange:N,className:r.csx("proton-CheckboxInput__input",t&&"proton-CheckboxInput__input--error",i&&"proton-CheckboxInput__input--round"),"aria-label":o?void 0:p,"aria-invalid":!!t,"aria-errormessage":u,"aria-describedby":R,"data-testid":C}),e.jsx(M.CheckboxIndicator,{round:i})]}),typeof s=="string"?e.jsxs("div",{id:k,"aria-live":"polite",children:[s,h&&e.jsx("span",{"aria-hidden":"true",children:" *"})]}):s]})}),typeof t=="string"?e.jsx("div",{role:"alert",className:r.csx("proton-CheckboxInput__error"),id:u,children:t}):t]})});I.displayName="ProtonUICheckboxInput";exports.CheckboxInput=I;
|
|
2
2
|
//# sourceMappingURL=CheckboxInput.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxInput.cjs.js","sources":["../../../../src/components/Checkbox/CheckboxInput/CheckboxInput.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, useEffect, useId, useRef, type ForwardedRef, type ReactNode, type ChangeEvent } from \"react\";\n\nimport { useMergedRef } from \"../../../hooks/useMergedRef\";\nimport { csx } from \"../../../utils\";\nimport { CheckboxIndicator } from \"../CheckboxIndicator\";\nimport \"./CheckboxInput.css\";\n\nexport interface CheckboxInputProps {\n /**\n * Whether the checkbox is checked (controlled mode).\n */\n checked?: boolean;\n\n /**\n * Whether the checkbox is checked by default (uncontrolled mode).\n */\n defaultChecked?: boolean;\n\n /** The error attribute of the checkbox input. */\n error?: ReactNode | string;\n\n /** The description attribute of the checkbox input. */\n description?: ReactNode | string;\n\n /** The test id attribute of the checkbox `input` element. */\n \"data-testid\"?: string;\n\n /**\n * Callback fired when the checkbox state changes.\n */\n onChange?: (checked: boolean) => void;\n\n /**\n * Whether the checkbox is in an indeterminate state. Used for checkboxes that are neither checked nor unchecked.\n * @default false\n * @external https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate\n * @reference @external https://medium.com/indigoag-eng/indeterminate-checkboxes-are-weird-704b246c0f19\n */\n indeterminate?: boolean;\n\n /** The id attribute of the checkbox input. */\n id?: string;\n\n /** Whether the checkbox is disabled.\n * @default false\n */\n isDisabled?: boolean;\n\n /** Whether the checkbox is required.\n * @default false\n */\n isRequired?: boolean;\n\n /** The name attribute of the checkbox input. */\n name: string;\n\n /** The label attribute of the checkbox input. */\n label?: string | ReactNode;\n\n /**\n * The value attribute of the checkbox input (for form submission).\n * @external https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#value\n */\n value?: string;\n\n /**\n * Whether the checkbox should be rendered as a round control (with a dot indicator when checked).\n * @default false\n */\n round?: boolean;\n}\n\n/**\n * A checkbox input component with support for labels, descriptions, error states, and controlled/uncontrolled modes.\n *\n * API:\n * - {@link CheckboxInputProps}\n */\nexport const CheckboxInput = forwardRef<HTMLInputElement, CheckboxInputProps>(\n (\n {\n checked: controlledChecked,\n defaultChecked,\n onChange,\n name,\n value,\n isDisabled = false,\n isRequired = false,\n id,\n \"data-testid\": testId,\n label,\n description,\n error,\n indeterminate = false,\n round = false,\n },\n forwardedRef: ForwardedRef<HTMLInputElement>,\n ) => {\n const checkboxRef = useRef<HTMLInputElement>(null);\n const setRefs = useMergedRef(checkboxRef, forwardedRef);\n const isControlled = controlledChecked !== undefined;\n const idBase = useId();\n\n // indeterminate state can only be set via JS\n useEffect(() => {\n if (checkboxRef.current) {\n checkboxRef.current.indeterminate = indeterminate;\n }\n }, [indeterminate]);\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>) => {\n onChange?.(e.target.checked);\n };\n\n const checkboxId = id || `${idBase}-checkbox`;\n const errorId = typeof error === \"string\" ? `${idBase}-error` : undefined;\n const descriptionId =\n typeof description === \"string\" ? `${idBase}-description` : undefined;\n const ariaDescribedBy =\n [errorId, descriptionId].filter(Boolean).join(\" \") || undefined;\n\n return (\n <div>\n <div className={csx(isDisabled && \"proton-CheckboxInput--disabled\")}>\n <div\n className={csx(\n \"proton-CheckboxInput__container\",\n round && \"proton-CheckboxInput__container--round\",\n )}\n >\n {typeof label === \"string\" ? (\n <label\n htmlFor={checkboxId}\n className=\"proton-CheckboxInput__label\"\n >\n {label}\n </label>\n ) : (\n label\n )}\n\n <span className=\"proton-CheckboxInput__box\">\n <input\n ref={setRefs}\n id={checkboxId}\n name={name}\n type=\"checkbox\"\n {...(isControlled\n ? { checked: controlledChecked }\n : { defaultChecked })}\n value={value}\n disabled={isDisabled}\n required={isRequired}\n onChange={handleChange}\n className={csx(\n \"proton-CheckboxInput__input\",\n error && \"proton-CheckboxInput__input--error\",\n round && \"proton-CheckboxInput__input--round\",\n )}\n aria-label={!label ? name : undefined}\n aria-invalid={Boolean(error)}\n aria-errormessage={errorId}\n aria-describedby={ariaDescribedBy}\n data-testid={testId}\n />\n <CheckboxIndicator round={round} />\n </span>\n\n {typeof description === \"string\" ? (\n <div id={descriptionId} aria-live=\"polite\">\n {description}\n {isRequired && <span aria-hidden=\"true\"> *</span>}\n </div>\n ) : (\n description\n )}\n </div>\n </div>\n\n {typeof error === \"string\" ? (\n <div\n role=\"alert\"\n className={csx(\"proton-CheckboxInput__error\")}\n id={errorId}\n >\n {error}\n </div>\n ) : (\n error\n )}\n </div>\n );\n },\n);\n\nCheckboxInput.displayName = \"ProtonUICheckboxInput\";\n"],"names":["CheckboxInput","forwardRef","controlledChecked","defaultChecked","onChange","name","value","isDisabled","isRequired","id","testId","label","description","error","indeterminate","round","forwardedRef","checkboxRef","useRef","setRefs","useMergedRef","isControlled","idBase","useId","useEffect","handleChange","e","checkboxId","errorId","descriptionId","ariaDescribedBy","jsx","csx","jsxs","CheckboxIndicator"],"mappings":"
|
|
1
|
+
{"version":3,"file":"CheckboxInput.cjs.js","sources":["../../../../src/components/Checkbox/CheckboxInput/CheckboxInput.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, useEffect, useId, useRef, type ForwardedRef, type ReactNode, type ChangeEvent } from \"react\";\n\nimport { useMergedRef } from \"../../../hooks/useMergedRef\";\nimport { csx } from \"../../../utils\";\nimport { CheckboxIndicator } from \"../CheckboxIndicator\";\nimport \"./CheckboxInput.css\";\n\nexport interface CheckboxInputProps {\n /**\n * Whether the checkbox is checked (controlled mode).\n */\n checked?: boolean;\n\n /**\n * Whether the checkbox is checked by default (uncontrolled mode).\n */\n defaultChecked?: boolean;\n\n /** The error attribute of the checkbox input. */\n error?: ReactNode | string;\n\n /** The description attribute of the checkbox input. */\n description?: ReactNode | string;\n\n /** The test id attribute of the checkbox `input` element. */\n \"data-testid\"?: string;\n\n /**\n * Callback fired when the checkbox state changes.\n */\n onChange?: (checked: boolean) => void;\n\n /**\n * Whether the checkbox is in an indeterminate state. Used for checkboxes that are neither checked nor unchecked.\n * @default false\n * @external https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate\n * @reference @external https://medium.com/indigoag-eng/indeterminate-checkboxes-are-weird-704b246c0f19\n */\n indeterminate?: boolean;\n\n /** The id attribute of the checkbox input. */\n id?: string;\n\n /** Whether the checkbox is disabled.\n * @default false\n */\n isDisabled?: boolean;\n\n /** Whether the checkbox is required.\n * @default false\n */\n isRequired?: boolean;\n\n /** The name attribute of the checkbox input. */\n name: string;\n\n /** The label attribute of the checkbox input. */\n label?: string | ReactNode;\n\n /**\n * The value attribute of the checkbox input (for form submission).\n * @external https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#value\n */\n value?: string;\n\n /**\n * Whether the checkbox should be rendered as a round control (with a dot indicator when checked).\n * @default false\n */\n round?: boolean;\n}\n\n/**\n * A checkbox input component with support for labels, descriptions, error states, and controlled/uncontrolled modes.\n *\n * API:\n * - {@link CheckboxInputProps}\n */\nexport const CheckboxInput = forwardRef<HTMLInputElement, CheckboxInputProps>(\n (\n {\n checked: controlledChecked,\n defaultChecked,\n onChange,\n name,\n value,\n isDisabled = false,\n isRequired = false,\n id,\n \"data-testid\": testId,\n label,\n description,\n error,\n indeterminate = false,\n round = false,\n },\n forwardedRef: ForwardedRef<HTMLInputElement>,\n ) => {\n const checkboxRef = useRef<HTMLInputElement>(null);\n const setRefs = useMergedRef(checkboxRef, forwardedRef);\n const isControlled = controlledChecked !== undefined;\n const idBase = useId();\n\n // indeterminate state can only be set via JS\n useEffect(() => {\n if (checkboxRef.current) {\n checkboxRef.current.indeterminate = indeterminate;\n }\n }, [indeterminate]);\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>) => {\n onChange?.(e.target.checked);\n };\n\n const checkboxId = id || `${idBase}-checkbox`;\n const errorId = typeof error === \"string\" ? `${idBase}-error` : undefined;\n const descriptionId =\n typeof description === \"string\" ? `${idBase}-description` : undefined;\n const ariaDescribedBy =\n [errorId, descriptionId].filter(Boolean).join(\" \") || undefined;\n\n return (\n <div>\n <div className={csx(isDisabled && \"proton-CheckboxInput--disabled\")}>\n <div\n className={csx(\n \"proton-CheckboxInput__container\",\n round && \"proton-CheckboxInput__container--round\",\n )}\n >\n {typeof label === \"string\" ? (\n <label\n htmlFor={checkboxId}\n className=\"proton-CheckboxInput__label\"\n >\n {label}\n </label>\n ) : (\n label\n )}\n\n <span className=\"proton-CheckboxInput__box\">\n <input\n ref={setRefs}\n id={checkboxId}\n name={name}\n type=\"checkbox\"\n {...(isControlled\n ? { checked: controlledChecked }\n : { defaultChecked })}\n value={value}\n disabled={isDisabled}\n required={isRequired}\n onChange={handleChange}\n className={csx(\n \"proton-CheckboxInput__input\",\n error && \"proton-CheckboxInput__input--error\",\n round && \"proton-CheckboxInput__input--round\",\n )}\n aria-label={!label ? name : undefined}\n aria-invalid={Boolean(error)}\n aria-errormessage={errorId}\n aria-describedby={ariaDescribedBy}\n data-testid={testId}\n />\n <CheckboxIndicator round={round} />\n </span>\n\n {typeof description === \"string\" ? (\n <div id={descriptionId} aria-live=\"polite\">\n {description}\n {isRequired && <span aria-hidden=\"true\"> *</span>}\n </div>\n ) : (\n description\n )}\n </div>\n </div>\n\n {typeof error === \"string\" ? (\n <div\n role=\"alert\"\n className={csx(\"proton-CheckboxInput__error\")}\n id={errorId}\n >\n {error}\n </div>\n ) : (\n error\n )}\n </div>\n );\n },\n);\n\nCheckboxInput.displayName = \"ProtonUICheckboxInput\";\n"],"names":["CheckboxInput","forwardRef","controlledChecked","defaultChecked","onChange","name","value","isDisabled","isRequired","id","testId","label","description","error","indeterminate","round","forwardedRef","checkboxRef","useRef","setRefs","useMergedRef","isControlled","idBase","useId","useEffect","handleChange","e","checkboxId","errorId","descriptionId","ariaDescribedBy","jsx","csx","jsxs","CheckboxIndicator"],"mappings":"uTAgFaA,EAAgBC,EAAAA,WAC3B,CACE,CACE,QAASC,EACT,eAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,GAAAC,EACA,cAAeC,EACf,MAAAC,EACA,YAAAC,EACA,MAAAC,EACA,cAAAC,EAAgB,GAChB,MAAAC,EAAQ,EAAA,EAEVC,IACG,CACH,MAAMC,EAAcC,EAAAA,OAAyB,IAAI,EAC3CC,EAAUC,EAAAA,aAAaH,EAAaD,CAAY,EAChDK,EAAenB,IAAsB,OACrCoB,EAASC,EAAAA,MAAA,EAGfC,EAAAA,UAAU,IAAM,CACVP,EAAY,UACdA,EAAY,QAAQ,cAAgBH,EAExC,EAAG,CAACA,CAAa,CAAC,EAElB,MAAMW,EAAgBC,GAAqC,CACzDtB,GAAA,MAAAA,EAAWsB,EAAE,OAAO,QACtB,EAEMC,EAAalB,GAAM,GAAGa,CAAM,YAC5BM,EAAU,OAAOf,GAAU,SAAW,GAAGS,CAAM,SAAW,OAC1DO,EACJ,OAAOjB,GAAgB,SAAW,GAAGU,CAAM,eAAiB,OACxDQ,EACJ,CAACF,EAASC,CAAa,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GAAK,OAExD,cACG,MAAA,CACC,SAAA,CAAAE,MAAC,MAAA,CAAI,UAAWC,EAAAA,IAAIzB,GAAc,gCAAgC,EAChE,SAAA0B,EAAAA,KAAC,MAAA,CACC,UAAWD,EAAAA,IACT,kCACAjB,GAAS,wCAAA,EAGV,SAAA,CAAA,OAAOJ,GAAU,SAChBoB,EAAAA,IAAC,QAAA,CACC,QAASJ,EACT,UAAU,8BAET,SAAAhB,CAAA,CAAA,EAGHA,EAGFsB,EAAAA,KAAC,OAAA,CAAK,UAAU,4BACd,SAAA,CAAAF,EAAAA,IAAC,QAAA,CACC,IAAKZ,EACL,GAAIQ,EACJ,KAAAtB,EACA,KAAK,WACJ,GAAIgB,EACD,CAAE,QAASnB,CAAA,EACX,CAAE,eAAAC,CAAA,EACN,MAAAG,EACA,SAAUC,EACV,SAAUC,EACV,SAAUiB,EACV,UAAWO,EAAAA,IACT,8BACAnB,GAAS,qCACTE,GAAS,oCAAA,EAEX,aAAaJ,EAAe,OAAPN,EACrB,eAAc,EAAQQ,EACtB,oBAAmBe,EACnB,mBAAkBE,EAClB,cAAapB,CAAA,CAAA,EAEfqB,MAACG,EAAAA,mBAAkB,MAAAnB,CAAA,CAAc,CAAA,EACnC,EAEC,OAAOH,GAAgB,SACtBqB,EAAAA,KAAC,OAAI,GAAIJ,EAAe,YAAU,SAC/B,SAAA,CAAAjB,EACAJ,GAAcuB,EAAAA,IAAC,OAAA,CAAK,cAAY,OAAO,SAAA,IAAA,CAAO,CAAA,CAAA,CACjD,EAEAnB,CAAA,CAAA,CAAA,EAGN,EAEC,OAAOC,GAAU,SAChBkB,EAAAA,IAAC,MAAA,CACC,KAAK,QACL,UAAWC,EAAAA,IAAI,6BAA6B,EAC5C,GAAIJ,EAEH,SAAAf,CAAA,CAAA,EAGHA,CAAA,EAEJ,CAEJ,CACF,EAEAb,EAAc,YAAc"}
|