@viraui/react 0.0.16 → 0.0.18
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/catalog.json +18 -0
- package/dist/components/avatar/avatar.css +1 -55
- package/dist/components/avatar/avatar.d.ts +1 -2
- package/dist/components/avatar/avatar.js +49 -14
- package/dist/components/avatar/avatar.module.js +7 -0
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/basic-input/basic-input.css +1 -45
- package/dist/components/basic-input/basic-input.d.ts +0 -1
- package/dist/components/basic-input/basic-input.js +24 -13
- package/dist/components/basic-input/basic-input.module.js +3 -0
- package/dist/components/basic-input/field-helper-copy.d.ts +2 -1
- package/dist/components/basic-input/field-helper-copy.js +43 -24
- package/dist/components/basic-input/field-label.css +1 -0
- package/dist/components/basic-input/field-label.d.ts +11 -0
- package/dist/components/basic-input/field-label.js +25 -0
- package/dist/components/basic-input/field-label.module.js +3 -0
- package/dist/components/basic-input/index.d.ts +7 -2
- package/dist/components/basic-input/input-control-group.d.ts +2 -0
- package/dist/components/basic-input/input-control-group.js +40 -7
- package/dist/components/button/button.css +1 -157
- package/dist/components/button/button.d.ts +2 -3
- package/dist/components/button/button.js +100 -55
- package/dist/components/button/button.module.js +7 -0
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/checkbox/checkbox.css +1 -0
- package/dist/components/checkbox/checkbox.d.ts +65 -0
- package/dist/components/checkbox/checkbox.guide.json +22 -0
- package/dist/components/checkbox/checkbox.js +76 -0
- package/dist/components/checkbox/checkbox.module.js +10 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/clamp-text/clamp-text.css +1 -12
- package/dist/components/clamp-text/clamp-text.d.ts +1 -2
- package/dist/components/clamp-text/clamp-text.js +27 -22
- package/dist/components/clamp-text/clamp-text.module.js +3 -0
- package/dist/components/clamp-text/index.d.ts +2 -2
- package/dist/components/elevator/elevator.d.ts +5 -5
- package/dist/components/elevator/elevator.js +27 -27
- package/dist/components/elevator/index.d.ts +2 -2
- package/dist/components/icon/icon.css +1 -7
- package/dist/components/icon/icon.d.ts +2 -3
- package/dist/components/icon/icon.js +18 -9
- package/dist/components/icon/icon.module.js +3 -0
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/icon-button/icon-button.d.ts +2 -2
- package/dist/components/icon-button/icon-button.js +10 -3
- package/dist/components/icon-button/index.d.ts +2 -2
- package/dist/components/index.d.ts +20 -17
- package/dist/components/linear-progress/index.d.ts +2 -0
- package/dist/components/linear-progress/linear-progress.css +1 -0
- package/dist/components/linear-progress/linear-progress.d.ts +44 -0
- package/dist/components/linear-progress/linear-progress.guide.json +27 -0
- package/dist/components/linear-progress/linear-progress.js +61 -0
- package/dist/components/linear-progress/linear-progress.module.js +8 -0
- package/dist/components/radio/index.d.ts +4 -0
- package/dist/components/radio/radio-group.d.ts +44 -0
- package/dist/components/radio/radio-group.js +54 -0
- package/dist/components/radio/radio.css +1 -0
- package/dist/components/radio/radio.d.ts +44 -0
- package/dist/components/radio/radio.guide.json +26 -0
- package/dist/components/radio/radio.js +45 -0
- package/dist/components/radio/radio.module.js +9 -0
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/select-group.d.ts +1 -1
- package/dist/components/select/select-group.js +37 -9
- package/dist/components/select/select-indicator-slot.js +33 -10
- package/dist/components/select/select-option.d.ts +1 -1
- package/dist/components/select/select-option.js +40 -10
- package/dist/components/select/select-separator.js +14 -6
- package/dist/components/select/select.css +1 -193
- package/dist/components/select/select.d.ts +10 -11
- package/dist/components/select/select.js +156 -32
- package/dist/components/select/select.module.js +19 -0
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/skeleton/skeleton.css +1 -36
- package/dist/components/skeleton/skeleton.d.ts +2 -3
- package/dist/components/skeleton/skeleton.js +26 -15
- package/dist/components/skeleton/skeleton.module.js +6 -0
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/slider-control.d.ts +1 -2
- package/dist/components/slider/slider-control.js +43 -19
- package/dist/components/slider/slider-utils.js +6 -3
- package/dist/components/slider/slider.css +1 -64
- package/dist/components/slider/slider.d.ts +5 -8
- package/dist/components/slider/slider.js +83 -17
- package/dist/components/slider/slider.module.js +12 -0
- package/dist/components/spinner/index.d.ts +2 -2
- package/dist/components/spinner/spinner.css +1 -45
- package/dist/components/spinner/spinner.d.ts +1 -2
- package/dist/components/spinner/spinner.js +29 -6
- package/dist/components/spinner/spinner.module.js +7 -0
- package/dist/components/stack/index.d.ts +2 -2
- package/dist/components/stack/stack.css +1 -57
- package/dist/components/stack/stack.d.ts +2 -3
- package/dist/components/stack/stack.js +40 -36
- package/dist/components/stack/stack.module.js +3 -0
- package/dist/components/surface/index.d.ts +2 -2
- package/dist/components/surface/surface.css +1 -70
- package/dist/components/surface/surface.d.ts +10 -6
- package/dist/components/surface/surface.js +43 -40
- package/dist/components/surface/surface.module.js +6 -0
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/switch.css +1 -73
- package/dist/components/switch/switch.d.ts +17 -5
- package/dist/components/switch/switch.js +62 -13
- package/dist/components/switch/switch.module.js +7 -0
- package/dist/components/text/index.d.ts +2 -2
- package/dist/components/text/text.css +1 -145
- package/dist/components/text/text.d.ts +8 -3
- package/dist/components/text/text.js +46 -41
- package/dist/components/text/text.module.js +3 -0
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/textarea.css +1 -45
- package/dist/components/textarea/textarea.d.ts +3 -4
- package/dist/components/textarea/textarea.js +51 -11
- package/dist/components/textarea/textarea.module.js +7 -0
- package/dist/components/textfield/index.d.ts +2 -2
- package/dist/components/textfield/textfield.css +1 -87
- package/dist/components/textfield/textfield.d.ts +3 -4
- package/dist/components/textfield/textfield.js +58 -12
- package/dist/components/textfield/textfield.module.js +9 -0
- package/dist/components/title/index.d.ts +2 -2
- package/dist/components/title/title.css +1 -137
- package/dist/components/title/title.d.ts +8 -3
- package/dist/components/title/title.js +44 -39
- package/dist/components/title/title.module.js +3 -0
- package/dist/consumption.json +6 -2
- package/dist/core/elevation/elevation-types.js +6 -3
- package/dist/core/elevation/get-elevation-props.d.ts +1 -1
- package/dist/core/elevation/get-elevation-props.js +14 -11
- package/dist/core/props/intrinsic-vira-props.js +12 -9
- package/dist/core/styles/resolve-axis-padding.d.ts +1 -1
- package/dist/core/styles/resolve-axis-padding.js +15 -16
- package/dist/core/theme/resolve-theme-value.d.ts +1 -1
- package/dist/core/theme/resolve-theme-value.js +7 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +24 -1
- package/dist/internal-icons/icon-registry.d.ts +33 -239
- package/dist/internal-icons/icon-registry.js +52 -670
- package/dist/internal-icons/icons/duo/CaretDown.js +1 -1
- package/dist/internal-icons/icons/duo/CaretLeft.js +1 -1
- package/dist/internal-icons/icons/duo/CaretRight.js +1 -1
- package/dist/internal-icons/icons/duo/CaretUp.js +1 -1
- package/dist/internal-icons/icons/duo/CircleHalfDottedClock.d.ts +7 -0
- package/dist/internal-icons/icons/duo/CircleHalfDottedClock.js +13 -0
- package/dist/internal-icons/icons/duo/{Embed.d.ts → Clock.d.ts} +3 -3
- package/dist/internal-icons/icons/duo/Clock.js +13 -0
- package/dist/internal-icons/icons/duo/History.d.ts +7 -0
- package/dist/internal-icons/icons/duo/History.js +13 -0
- package/dist/internal-icons/icons/duo/{Box3.d.ts → Lock.d.ts} +3 -3
- package/dist/internal-icons/icons/duo/Lock.js +13 -0
- package/dist/internal-icons/icons/duo/LockOpen.d.ts +7 -0
- package/dist/internal-icons/icons/duo/LockOpen.js +13 -0
- package/dist/internal-icons/icons/duo/Magnifier.d.ts +7 -0
- package/dist/internal-icons/icons/duo/Magnifier.js +13 -0
- package/dist/internal-icons/icons/duo/{Child.d.ts → Minus.d.ts} +3 -3
- package/dist/internal-icons/icons/duo/{ShapeRectangle.js → Minus.js} +4 -4
- package/dist/internal-icons/icons/duo/{Task.d.ts → Plus.d.ts} +3 -3
- package/dist/internal-icons/icons/duo/{ProfileBasic.js → Plus.js} +4 -4
- package/dist/internal-icons/icons/duo/Quickstart.d.ts +7 -0
- package/dist/internal-icons/icons/duo/Quickstart.js +13 -0
- package/dist/internal-icons/icons/duo/{Img4k.d.ts → Xmark.d.ts} +3 -3
- package/dist/internal-icons/icons/duo/Xmark.js +13 -0
- package/dist/internal-icons/icons/duo/index.d.ts +33 -239
- package/dist/internal-icons/icons/duo/index.js +33 -239
- package/dist/preflight.css +1 -1
- package/package.json +10 -9
- package/dist/components/avatar/index.js +0 -1
- package/dist/components/basic-input/index.js +0 -1
- package/dist/components/button/index.js +0 -1
- package/dist/components/clamp-text/index.js +0 -1
- package/dist/components/elevator/index.js +0 -1
- package/dist/components/icon/index.js +0 -1
- package/dist/components/icon-button/index.js +0 -1
- package/dist/components/index.js +0 -17
- package/dist/components/select/index.js +0 -1
- package/dist/components/skeleton/index.js +0 -1
- package/dist/components/slider/index.js +0 -1
- package/dist/components/slider/slider-control.css +0 -71
- package/dist/components/spinner/index.js +0 -1
- package/dist/components/stack/index.js +0 -1
- package/dist/components/surface/index.js +0 -1
- package/dist/components/switch/index.js +0 -1
- package/dist/components/text/index.js +0 -1
- package/dist/components/textarea/index.js +0 -1
- package/dist/components/textfield/index.js +0 -1
- package/dist/components/title/index.js +0 -1
- package/dist/internal-icons/icons/duo/AddSection.d.ts +0 -7
- package/dist/internal-icons/icons/duo/AddSection.js +0 -13
- package/dist/internal-icons/icons/duo/AiDeveloper.d.ts +0 -7
- package/dist/internal-icons/icons/duo/AiDeveloper.js +0 -13
- package/dist/internal-icons/icons/duo/AiLoading.d.ts +0 -7
- package/dist/internal-icons/icons/duo/AiLoading.js +0 -13
- package/dist/internal-icons/icons/duo/Album3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Album3.js +0 -13
- package/dist/internal-icons/icons/duo/ArchiveContent2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ArchiveContent2.js +0 -13
- package/dist/internal-icons/icons/duo/ArrowRotate.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ArrowRotate.js +0 -13
- package/dist/internal-icons/icons/duo/ArrowRotateAnticlockwiseCheck.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ArrowRotateAnticlockwiseCheck.js +0 -13
- package/dist/internal-icons/icons/duo/ArrowRotateAnticlockwiseSlash.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ArrowRotateAnticlockwiseSlash.js +0 -13
- package/dist/internal-icons/icons/duo/ArrowRotateAnticlockwiseXmark.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ArrowRotateAnticlockwiseXmark.js +0 -13
- package/dist/internal-icons/icons/duo/ArrowRotateClockwiseSlash.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ArrowRotateClockwiseSlash.js +0 -13
- package/dist/internal-icons/icons/duo/ArrowsFilter.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ArrowsFilter.js +0 -13
- package/dist/internal-icons/icons/duo/ArrowsToLineY2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ArrowsToLineY2.js +0 -13
- package/dist/internal-icons/icons/duo/Birdhouse.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Birdhouse.js +0 -13
- package/dist/internal-icons/icons/duo/BookmarkList.d.ts +0 -7
- package/dist/internal-icons/icons/duo/BookmarkList.js +0 -13
- package/dist/internal-icons/icons/duo/BookmarkedBook.d.ts +0 -7
- package/dist/internal-icons/icons/duo/BookmarkedBook.js +0 -13
- package/dist/internal-icons/icons/duo/BookmarkedBook2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/BookmarkedBook2.js +0 -13
- package/dist/internal-icons/icons/duo/Box3.js +0 -13
- package/dist/internal-icons/icons/duo/BoxSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/BoxSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/BoxSparkle2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/BoxSparkle2.js +0 -13
- package/dist/internal-icons/icons/duo/Brochure.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Brochure.js +0 -13
- package/dist/internal-icons/icons/duo/ButtonPlus.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ButtonPlus.js +0 -13
- package/dist/internal-icons/icons/duo/Calculator3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Calculator3.js +0 -13
- package/dist/internal-icons/icons/duo/Chart3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Chart3.js +0 -13
- package/dist/internal-icons/icons/duo/ChartBar.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ChartBar.js +0 -13
- package/dist/internal-icons/icons/duo/ChartCandlestick2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ChartCandlestick2.js +0 -13
- package/dist/internal-icons/icons/duo/ChatImage.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ChatImage.js +0 -13
- package/dist/internal-icons/icons/duo/ChatInfo.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ChatInfo.js +0 -13
- package/dist/internal-icons/icons/duo/ChatTask.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ChatTask.js +0 -13
- package/dist/internal-icons/icons/duo/CheckBoxArrow.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CheckBoxArrow.js +0 -13
- package/dist/internal-icons/icons/duo/ChevronLeftToLine.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ChevronLeftToLine.js +0 -13
- package/dist/internal-icons/icons/duo/ChevronRightToLine.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ChevronRightToLine.js +0 -13
- package/dist/internal-icons/icons/duo/Child.js +0 -13
- package/dist/internal-icons/icons/duo/CircleCoinIn.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleCoinIn.js +0 -13
- package/dist/internal-icons/icons/duo/CircleCoinOut.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleCoinOut.js +0 -13
- package/dist/internal-icons/icons/duo/CircleCoinPlus.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleCoinPlus.js +0 -13
- package/dist/internal-icons/icons/duo/CircleConversion.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleConversion.js +0 -13
- package/dist/internal-icons/icons/duo/CircleCross.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleCross.js +0 -13
- package/dist/internal-icons/icons/duo/CircleHalfArrowDown.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleHalfArrowDown.js +0 -13
- package/dist/internal-icons/icons/duo/CircleHalfArrowLeft.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleHalfArrowLeft.js +0 -13
- package/dist/internal-icons/icons/duo/CircleHalfArrowRight.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleHalfArrowRight.js +0 -13
- package/dist/internal-icons/icons/duo/CircleHalfArrowUp.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleHalfArrowUp.js +0 -13
- package/dist/internal-icons/icons/duo/CircleHalfDottedChart2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CircleHalfDottedChart2.js +0 -13
- package/dist/internal-icons/icons/duo/ClockTime.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ClockTime.js +0 -13
- package/dist/internal-icons/icons/duo/CloneDashed3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CloneDashed3.js +0 -13
- package/dist/internal-icons/icons/duo/CloneImageDashed.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CloneImageDashed.js +0 -13
- package/dist/internal-icons/icons/duo/CloneVideoDashed.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CloneVideoDashed.js +0 -13
- package/dist/internal-icons/icons/duo/CloudeCode.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CloudeCode.js +0 -13
- package/dist/internal-icons/icons/duo/CoinStack.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CoinStack.js +0 -13
- package/dist/internal-icons/icons/duo/ConditionalLogic.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ConditionalLogic.js +0 -13
- package/dist/internal-icons/icons/duo/ConnectPlus.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ConnectPlus.js +0 -13
- package/dist/internal-icons/icons/duo/Connection3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Connection3.js +0 -13
- package/dist/internal-icons/icons/duo/CopyDelete.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CopyDelete.js +0 -13
- package/dist/internal-icons/icons/duo/CopyId.d.ts +0 -7
- package/dist/internal-icons/icons/duo/CopyId.js +0 -13
- package/dist/internal-icons/icons/duo/Deaf.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Deaf.js +0 -13
- package/dist/internal-icons/icons/duo/DependencyLink.d.ts +0 -7
- package/dist/internal-icons/icons/duo/DependencyLink.js +0 -13
- package/dist/internal-icons/icons/duo/DesktopDock.d.ts +0 -7
- package/dist/internal-icons/icons/duo/DesktopDock.js +0 -13
- package/dist/internal-icons/icons/duo/DiamondSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/DiamondSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/DocumentScan.d.ts +0 -7
- package/dist/internal-icons/icons/duo/DocumentScan.js +0 -13
- package/dist/internal-icons/icons/duo/Dog2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Dog2.js +0 -13
- package/dist/internal-icons/icons/duo/DogLeash.d.ts +0 -7
- package/dist/internal-icons/icons/duo/DogLeash.js +0 -13
- package/dist/internal-icons/icons/duo/DogSlash.d.ts +0 -7
- package/dist/internal-icons/icons/duo/DogSlash.js +0 -13
- package/dist/internal-icons/icons/duo/DotFormation.d.ts +0 -7
- package/dist/internal-icons/icons/duo/DotFormation.js +0 -13
- package/dist/internal-icons/icons/duo/DrawFinger.d.ts +0 -7
- package/dist/internal-icons/icons/duo/DrawFinger.js +0 -13
- package/dist/internal-icons/icons/duo/Ear.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Ear.js +0 -13
- package/dist/internal-icons/icons/duo/EarSound.d.ts +0 -7
- package/dist/internal-icons/icons/duo/EarSound.js +0 -13
- package/dist/internal-icons/icons/duo/Embed.js +0 -13
- package/dist/internal-icons/icons/duo/EnterDoor.d.ts +0 -7
- package/dist/internal-icons/icons/duo/EnterDoor.js +0 -13
- package/dist/internal-icons/icons/duo/EnterHome.d.ts +0 -7
- package/dist/internal-icons/icons/duo/EnterHome.js +0 -13
- package/dist/internal-icons/icons/duo/ExitDoor.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ExitDoor.js +0 -13
- package/dist/internal-icons/icons/duo/Export2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Export2.js +0 -13
- package/dist/internal-icons/icons/duo/EyeSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/EyeSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/FaceRobot.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FaceRobot.js +0 -13
- package/dist/internal-icons/icons/duo/FaceRobot2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FaceRobot2.js +0 -13
- package/dist/internal-icons/icons/duo/FaceRobot3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FaceRobot3.js +0 -13
- package/dist/internal-icons/icons/duo/FerrisWheel.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FerrisWheel.js +0 -13
- package/dist/internal-icons/icons/duo/FileExport.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FileExport.js +0 -13
- package/dist/internal-icons/icons/duo/FlagMenu.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FlagMenu.js +0 -13
- package/dist/internal-icons/icons/duo/FocusCenter.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FocusCenter.js +0 -13
- package/dist/internal-icons/icons/duo/FoodOrder.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FoodOrder.js +0 -13
- package/dist/internal-icons/icons/duo/FuelCan.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FuelCan.js +0 -13
- package/dist/internal-icons/icons/duo/FuelCan2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/FuelCan2.js +0 -13
- package/dist/internal-icons/icons/duo/Gear3Sparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Gear3Sparkle.js +0 -13
- package/dist/internal-icons/icons/duo/GridSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/GridSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/HandHoldingGlobe.d.ts +0 -7
- package/dist/internal-icons/icons/duo/HandHoldingGlobe.js +0 -13
- package/dist/internal-icons/icons/duo/Handshake2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Handshake2.js +0 -13
- package/dist/internal-icons/icons/duo/Haptic.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Haptic.js +0 -13
- package/dist/internal-icons/icons/duo/HelpChat.d.ts +0 -7
- package/dist/internal-icons/icons/duo/HelpChat.js +0 -13
- package/dist/internal-icons/icons/duo/HexagonSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/HexagonSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/Hiking.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Hiking.js +0 -13
- package/dist/internal-icons/icons/duo/History2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/History2.js +0 -13
- package/dist/internal-icons/icons/duo/HorseHead.d.ts +0 -7
- package/dist/internal-icons/icons/duo/HorseHead.js +0 -13
- package/dist/internal-icons/icons/duo/HouseDollarSign.d.ts +0 -7
- package/dist/internal-icons/icons/duo/HouseDollarSign.js +0 -13
- package/dist/internal-icons/icons/duo/HouseMinus2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/HouseMinus2.js +0 -13
- package/dist/internal-icons/icons/duo/Images3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Images3.js +0 -13
- package/dist/internal-icons/icons/duo/Img4k.js +0 -13
- package/dist/internal-icons/icons/duo/InsertCrypto.d.ts +0 -7
- package/dist/internal-icons/icons/duo/InsertCrypto.js +0 -13
- package/dist/internal-icons/icons/duo/InsertDollar.d.ts +0 -7
- package/dist/internal-icons/icons/duo/InsertDollar.js +0 -13
- package/dist/internal-icons/icons/duo/InstantMoney.d.ts +0 -7
- package/dist/internal-icons/icons/duo/InstantMoney.js +0 -13
- package/dist/internal-icons/icons/duo/InvoiceIn.d.ts +0 -7
- package/dist/internal-icons/icons/duo/InvoiceIn.js +0 -13
- package/dist/internal-icons/icons/duo/InwardFlow.d.ts +0 -7
- package/dist/internal-icons/icons/duo/InwardFlow.js +0 -13
- package/dist/internal-icons/icons/duo/JoinedHands.d.ts +0 -7
- package/dist/internal-icons/icons/duo/JoinedHands.js +0 -13
- package/dist/internal-icons/icons/duo/LawShield.d.ts +0 -7
- package/dist/internal-icons/icons/duo/LawShield.js +0 -13
- package/dist/internal-icons/icons/duo/Lectern.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Lectern.js +0 -13
- package/dist/internal-icons/icons/duo/Lectern2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Lectern2.js +0 -13
- package/dist/internal-icons/icons/duo/LightSpark.d.ts +0 -7
- package/dist/internal-icons/icons/duo/LightSpark.js +0 -13
- package/dist/internal-icons/icons/duo/LightSpark2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/LightSpark2.js +0 -13
- package/dist/internal-icons/icons/duo/ListExport.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ListExport.js +0 -13
- package/dist/internal-icons/icons/duo/ListFavs3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ListFavs3.js +0 -13
- package/dist/internal-icons/icons/duo/ListFavs4.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ListFavs4.js +0 -13
- package/dist/internal-icons/icons/duo/LoadingStatus.d.ts +0 -7
- package/dist/internal-icons/icons/duo/LoadingStatus.js +0 -13
- package/dist/internal-icons/icons/duo/LoadingStatus2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/LoadingStatus2.js +0 -13
- package/dist/internal-icons/icons/duo/LockedChat.d.ts +0 -7
- package/dist/internal-icons/icons/duo/LockedChat.js +0 -13
- package/dist/internal-icons/icons/duo/MagicHat.d.ts +0 -7
- package/dist/internal-icons/icons/duo/MagicHat.js +0 -13
- package/dist/internal-icons/icons/duo/MagicRabbit.d.ts +0 -7
- package/dist/internal-icons/icons/duo/MagicRabbit.js +0 -13
- package/dist/internal-icons/icons/duo/MagnifierSparkle2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/MagnifierSparkle2.js +0 -13
- package/dist/internal-icons/icons/duo/MediaLibrary2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/MediaLibrary2.js +0 -13
- package/dist/internal-icons/icons/duo/Membership.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Membership.js +0 -13
- package/dist/internal-icons/icons/duo/Menu4.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Menu4.js +0 -13
- package/dist/internal-icons/icons/duo/MilitaryMedal.d.ts +0 -7
- package/dist/internal-icons/icons/duo/MilitaryMedal.js +0 -13
- package/dist/internal-icons/icons/duo/MobileCircuit.d.ts +0 -7
- package/dist/internal-icons/icons/duo/MobileCircuit.js +0 -13
- package/dist/internal-icons/icons/duo/MoneyRefund.d.ts +0 -7
- package/dist/internal-icons/icons/duo/MoneyRefund.js +0 -13
- package/dist/internal-icons/icons/duo/MoneyRefund2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/MoneyRefund2.js +0 -13
- package/dist/internal-icons/icons/duo/MotionAlongPath.d.ts +0 -7
- package/dist/internal-icons/icons/duo/MotionAlongPath.js +0 -13
- package/dist/internal-icons/icons/duo/Msgs2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Msgs2.js +0 -13
- package/dist/internal-icons/icons/duo/Navigation.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Navigation.js +0 -13
- package/dist/internal-icons/icons/duo/NavigationHorizontal.d.ts +0 -7
- package/dist/internal-icons/icons/duo/NavigationHorizontal.js +0 -13
- package/dist/internal-icons/icons/duo/NavigationVertical.d.ts +0 -7
- package/dist/internal-icons/icons/duo/NavigationVertical.js +0 -13
- package/dist/internal-icons/icons/duo/ObjectSelection.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ObjectSelection.js +0 -13
- package/dist/internal-icons/icons/duo/OfficeUser.d.ts +0 -7
- package/dist/internal-icons/icons/duo/OfficeUser.js +0 -13
- package/dist/internal-icons/icons/duo/OpenExternal.d.ts +0 -7
- package/dist/internal-icons/icons/duo/OpenExternal.js +0 -13
- package/dist/internal-icons/icons/duo/OrbitSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/OrbitSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/OutwardFlow.d.ts +0 -7
- package/dist/internal-icons/icons/duo/OutwardFlow.js +0 -13
- package/dist/internal-icons/icons/duo/PaperPlaneFast.d.ts +0 -7
- package/dist/internal-icons/icons/duo/PaperPlaneFast.js +0 -13
- package/dist/internal-icons/icons/duo/Parachute.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Parachute.js +0 -13
- package/dist/internal-icons/icons/duo/Paw.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Paw.js +0 -13
- package/dist/internal-icons/icons/duo/Peace.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Peace.js +0 -13
- package/dist/internal-icons/icons/duo/PicnicTable.d.ts +0 -7
- package/dist/internal-icons/icons/duo/PicnicTable.js +0 -13
- package/dist/internal-icons/icons/duo/Pillow.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Pillow.js +0 -13
- package/dist/internal-icons/icons/duo/Playground.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Playground.js +0 -13
- package/dist/internal-icons/icons/duo/Playlist4.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Playlist4.js +0 -13
- package/dist/internal-icons/icons/duo/Plug3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Plug3.js +0 -13
- package/dist/internal-icons/icons/duo/Plug3Sparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Plug3Sparkle.js +0 -13
- package/dist/internal-icons/icons/duo/PlugOff.d.ts +0 -7
- package/dist/internal-icons/icons/duo/PlugOff.js +0 -13
- package/dist/internal-icons/icons/duo/PlugSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/PlugSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/PopEffect.d.ts +0 -7
- package/dist/internal-icons/icons/duo/PopEffect.js +0 -13
- package/dist/internal-icons/icons/duo/ProfileAnalytics.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ProfileAnalytics.js +0 -13
- package/dist/internal-icons/icons/duo/ProfileBasic.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ProgressIndicator2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ProgressIndicator2.js +0 -13
- package/dist/internal-icons/icons/duo/QuickActions.d.ts +0 -7
- package/dist/internal-icons/icons/duo/QuickActions.js +0 -13
- package/dist/internal-icons/icons/duo/QuickTimer.d.ts +0 -7
- package/dist/internal-icons/icons/duo/QuickTimer.js +0 -13
- package/dist/internal-icons/icons/duo/Rabbit.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Rabbit.js +0 -13
- package/dist/internal-icons/icons/duo/Receipt3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Receipt3.js +0 -13
- package/dist/internal-icons/icons/duo/Receipt4.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Receipt4.js +0 -13
- package/dist/internal-icons/icons/duo/Redo2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Redo2.js +0 -13
- package/dist/internal-icons/icons/duo/Redo3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Redo3.js +0 -13
- package/dist/internal-icons/icons/duo/Refresh3AnticlockwiseSlash.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Refresh3AnticlockwiseSlash.js +0 -13
- package/dist/internal-icons/icons/duo/Refresh3ClockwiseSlash.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Refresh3ClockwiseSlash.js +0 -13
- package/dist/internal-icons/icons/duo/RefreshAnticlockwiseSlash.d.ts +0 -7
- package/dist/internal-icons/icons/duo/RefreshAnticlockwiseSlash.js +0 -13
- package/dist/internal-icons/icons/duo/RefreshClockwiseSlash.d.ts +0 -7
- package/dist/internal-icons/icons/duo/RefreshClockwiseSlash.js +0 -13
- package/dist/internal-icons/icons/duo/Refrigerator.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Refrigerator.js +0 -13
- package/dist/internal-icons/icons/duo/RemoteControl.d.ts +0 -7
- package/dist/internal-icons/icons/duo/RemoteControl.js +0 -13
- package/dist/internal-icons/icons/duo/RemoteControl2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/RemoteControl2.js +0 -13
- package/dist/internal-icons/icons/duo/ReportFile.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ReportFile.js +0 -13
- package/dist/internal-icons/icons/duo/Reposition.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Reposition.js +0 -13
- package/dist/internal-icons/icons/duo/Rerouting.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Rerouting.js +0 -13
- package/dist/internal-icons/icons/duo/Robot2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Robot2.js +0 -13
- package/dist/internal-icons/icons/duo/Robot3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Robot3.js +0 -13
- package/dist/internal-icons/icons/duo/Robot4.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Robot4.js +0 -13
- package/dist/internal-icons/icons/duo/RockOn.d.ts +0 -7
- package/dist/internal-icons/icons/duo/RockOn.js +0 -13
- package/dist/internal-icons/icons/duo/RopeStanchions.d.ts +0 -7
- package/dist/internal-icons/icons/duo/RopeStanchions.js +0 -13
- package/dist/internal-icons/icons/duo/Rotation3602.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Rotation3602.js +0 -13
- package/dist/internal-icons/icons/duo/SavedItems2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SavedItems2.js +0 -13
- package/dist/internal-icons/icons/duo/ScaleImg4k.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ScaleImg4k.js +0 -13
- package/dist/internal-icons/icons/duo/ScanImage.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ScanImage.js +0 -13
- package/dist/internal-icons/icons/duo/ScissorsSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ScissorsSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/Seatbelt.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Seatbelt.js +0 -13
- package/dist/internal-icons/icons/duo/ShakaHand.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ShakaHand.js +0 -13
- package/dist/internal-icons/icons/duo/ShapeRectangle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Shovel.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Shovel.js +0 -13
- package/dist/internal-icons/icons/duo/ShuffleSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/ShuffleSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/SideProfileQuestion.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SideProfileQuestion.js +0 -13
- package/dist/internal-icons/icons/duo/SideProfileSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SideProfileSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/SidebarEdit.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SidebarEdit.js +0 -13
- package/dist/internal-icons/icons/duo/SlashCircle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SlashCircle.js +0 -13
- package/dist/internal-icons/icons/duo/Sliders4.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Sliders4.js +0 -13
- package/dist/internal-icons/icons/duo/Snail.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Snail.js +0 -13
- package/dist/internal-icons/icons/duo/Spiral.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Spiral.js +0 -13
- package/dist/internal-icons/icons/duo/SplitView.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SplitView.js +0 -13
- package/dist/internal-icons/icons/duo/SquareDashedSearchSparkle.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SquareDashedSearchSparkle.js +0 -13
- package/dist/internal-icons/icons/duo/SquareDashedText.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SquareDashedText.js +0 -13
- package/dist/internal-icons/icons/duo/SquarePath.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SquarePath.js +0 -13
- package/dist/internal-icons/icons/duo/Star2Slash.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Star2Slash.js +0 -13
- package/dist/internal-icons/icons/duo/StopSign.d.ts +0 -7
- package/dist/internal-icons/icons/duo/StopSign.js +0 -13
- package/dist/internal-icons/icons/duo/StopwatchBolt.d.ts +0 -7
- package/dist/internal-icons/icons/duo/StopwatchBolt.js +0 -13
- package/dist/internal-icons/icons/duo/SummitFlag.d.ts +0 -7
- package/dist/internal-icons/icons/duo/SummitFlag.js +0 -13
- package/dist/internal-icons/icons/duo/Sunrise2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Sunrise2.js +0 -13
- package/dist/internal-icons/icons/duo/Task.js +0 -13
- package/dist/internal-icons/icons/duo/Task2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Task2.js +0 -13
- package/dist/internal-icons/icons/duo/TaskDebug.d.ts +0 -7
- package/dist/internal-icons/icons/duo/TaskDebug.js +0 -13
- package/dist/internal-icons/icons/duo/TaskSearch.d.ts +0 -7
- package/dist/internal-icons/icons/duo/TaskSearch.js +0 -13
- package/dist/internal-icons/icons/duo/Teepee.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Teepee.js +0 -13
- package/dist/internal-icons/icons/duo/TextAdjust.d.ts +0 -7
- package/dist/internal-icons/icons/duo/TextAdjust.js +0 -13
- package/dist/internal-icons/icons/duo/TheatreMask.d.ts +0 -7
- package/dist/internal-icons/icons/duo/TheatreMask.js +0 -13
- package/dist/internal-icons/icons/duo/TheatreMask2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/TheatreMask2.js +0 -13
- package/dist/internal-icons/icons/duo/TimerProgress.d.ts +0 -7
- package/dist/internal-icons/icons/duo/TimerProgress.js +0 -13
- package/dist/internal-icons/icons/duo/TimerProgress2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/TimerProgress2.js +0 -13
- package/dist/internal-icons/icons/duo/TransactionSplit.d.ts +0 -7
- package/dist/internal-icons/icons/duo/TransactionSplit.js +0 -13
- package/dist/internal-icons/icons/duo/Undo2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Undo2.js +0 -13
- package/dist/internal-icons/icons/duo/Undo3.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Undo3.js +0 -13
- package/dist/internal-icons/icons/duo/UnicornHead.d.ts +0 -7
- package/dist/internal-icons/icons/duo/UnicornHead.js +0 -13
- package/dist/internal-icons/icons/duo/UserContact.d.ts +0 -7
- package/dist/internal-icons/icons/duo/UserContact.js +0 -13
- package/dist/internal-icons/icons/duo/UserVoice2.d.ts +0 -7
- package/dist/internal-icons/icons/duo/UserVoice2.js +0 -13
- package/dist/internal-icons/icons/duo/VipBadge.d.ts +0 -7
- package/dist/internal-icons/icons/duo/VipBadge.js +0 -13
- package/dist/internal-icons/icons/duo/VoiceCaption.d.ts +0 -7
- package/dist/internal-icons/icons/duo/VoiceCaption.js +0 -13
- package/dist/internal-icons/icons/duo/WalletCoins.d.ts +0 -7
- package/dist/internal-icons/icons/duo/WalletCoins.js +0 -13
- package/dist/internal-icons/icons/duo/Weight.d.ts +0 -7
- package/dist/internal-icons/icons/duo/Weight.js +0 -13
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Button as PrimitiveButton } from '@base-ui/react/button';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
|
|
2
4
|
import * as React from 'react';
|
|
3
|
-
import './button.css';
|
|
4
|
-
import type { ReactNode } from 'react';
|
|
5
|
-
import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
|
|
6
5
|
/**
|
|
7
6
|
* Public Button props.
|
|
8
7
|
*
|
|
@@ -1,62 +1,107 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button as PrimitiveButton } from '@base-ui/react/button';
|
|
4
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
5
|
-
import { Spinner } from '../../components/spinner/index.js';
|
|
6
|
-
import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
|
|
7
|
-
import { clsx } from 'clsx';
|
|
8
|
-
import * as React from 'react';
|
|
1
|
+
"use client";
|
|
9
2
|
import './button.css';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
4
|
+
import { Spinner } from "../spinner/spinner.js";
|
|
5
|
+
import button_module_default from "./button.module.js";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
9
|
+
import * as React from "react";
|
|
10
|
+
import { Button } from "@base-ui/react/button";
|
|
11
|
+
//#region src/components/button/button.tsx
|
|
12
|
+
var spinnerDimensionsBySize = {
|
|
13
|
+
small: "small",
|
|
14
|
+
medium: "small",
|
|
15
|
+
big: "regular"
|
|
14
16
|
};
|
|
15
17
|
function usesButtonPrimitiveRender(render) {
|
|
16
|
-
|
|
18
|
+
return render === void 0 || React.isValidElement(render) && render.type === "button";
|
|
17
19
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
var ButtonRenderRoot = ({ isDisabled, ref, render, rootProps }) => {
|
|
21
|
+
const { onClick, ...restRootProps } = rootProps;
|
|
22
|
+
return useRender({
|
|
23
|
+
defaultTagName: "button",
|
|
24
|
+
render,
|
|
25
|
+
ref,
|
|
26
|
+
state: { disabled: isDisabled },
|
|
27
|
+
props: {
|
|
28
|
+
...restRootProps,
|
|
29
|
+
onClick: (event) => {
|
|
30
|
+
if (isDisabled) {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
onClick?.(event);
|
|
35
|
+
},
|
|
36
|
+
...isDisabled ? { "aria-disabled": true } : {}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
37
39
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
var ButtonRoot = ({ children, className, intrinsicAttributes, isDisabled, isIconOnly, icon, iconPosition, loading, passThroughProps, ref, render, size, variant }) => {
|
|
41
|
+
const rootProps = {
|
|
42
|
+
...passThroughProps,
|
|
43
|
+
...intrinsicAttributes,
|
|
44
|
+
"aria-busy": loading || void 0,
|
|
45
|
+
children,
|
|
46
|
+
className: clsx(button_module_default.Button, className),
|
|
47
|
+
"data-loading": loading ? "true" : "false",
|
|
48
|
+
"data-size": size,
|
|
49
|
+
"data-icon-only": isIconOnly ? "true" : void 0,
|
|
50
|
+
"data-icon-position": icon && !isIconOnly ? iconPosition : void 0,
|
|
51
|
+
"data-variant": variant
|
|
52
|
+
};
|
|
53
|
+
if (usesButtonPrimitiveRender(render)) return /* @__PURE__ */ jsx(Button, {
|
|
54
|
+
...rootProps,
|
|
55
|
+
render,
|
|
56
|
+
ref,
|
|
57
|
+
disabled: isDisabled,
|
|
58
|
+
focusableWhenDisabled: loading
|
|
59
|
+
});
|
|
60
|
+
return /* @__PURE__ */ jsx(ButtonRenderRoot, {
|
|
61
|
+
isDisabled,
|
|
62
|
+
ref,
|
|
63
|
+
render,
|
|
64
|
+
rootProps
|
|
65
|
+
});
|
|
55
66
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
var Button$1 = ({ children, className, disabled, icon, iconPosition = "start", loading = false, size = "medium", variant = "primary", ...otherProps }) => {
|
|
68
|
+
const isDisabled = disabled || loading;
|
|
69
|
+
const isIconOnly = Boolean(icon) && (children == null || children === "");
|
|
70
|
+
const { componentProps, intrinsicAttributes } = extractIntrinsicViraProps(otherProps);
|
|
71
|
+
const { render, ref, ...passThroughProps } = componentProps;
|
|
72
|
+
return /* @__PURE__ */ jsxs(ButtonRoot, {
|
|
73
|
+
className,
|
|
74
|
+
intrinsicAttributes,
|
|
75
|
+
isDisabled,
|
|
76
|
+
isIconOnly,
|
|
77
|
+
icon,
|
|
78
|
+
iconPosition,
|
|
79
|
+
loading,
|
|
80
|
+
passThroughProps,
|
|
81
|
+
ref,
|
|
82
|
+
render,
|
|
83
|
+
size,
|
|
84
|
+
variant,
|
|
85
|
+
children: [isIconOnly ? /* @__PURE__ */ jsx("span", {
|
|
86
|
+
"aria-hidden": "true",
|
|
87
|
+
className: button_module_default.Content,
|
|
88
|
+
"data-loading": loading ? "true" : "false",
|
|
89
|
+
children: icon
|
|
90
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [icon && /* @__PURE__ */ jsx("span", {
|
|
91
|
+
"aria-hidden": "true",
|
|
92
|
+
className: button_module_default.Content,
|
|
93
|
+
"data-loading": loading ? "true" : "false",
|
|
94
|
+
children: icon
|
|
95
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
96
|
+
className: button_module_default.Content,
|
|
97
|
+
"data-loading": loading ? "true" : "false",
|
|
98
|
+
children
|
|
99
|
+
})] }), loading ? /* @__PURE__ */ jsx("span", {
|
|
100
|
+
"aria-hidden": "true",
|
|
101
|
+
className: button_module_default.SpinnerOverlay,
|
|
102
|
+
children: /* @__PURE__ */ jsx(Spinner, { size: spinnerDimensionsBySize[size] })
|
|
103
|
+
}) : null]
|
|
104
|
+
});
|
|
62
105
|
};
|
|
106
|
+
//#endregion
|
|
107
|
+
export { Button$1 as Button };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Button } from './button
|
|
2
|
-
export type { ButtonProps } from './button
|
|
1
|
+
export { Button } from './button';
|
|
2
|
+
export type { ButtonProps } from './button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.checkbox-module_Checkbox_3oGip{--checkbox-size:var(--space-medium);--checkbox-radius:var(--radius-x-small);--checkbox-background:var(--global-contrast);--checkbox-border-color:transparent;--checkbox-indicator-color:contrast-color(var(--global-primary));&:has([required]) [data-field-label]:after{content:" *";color:var(--highlight-red)}}.checkbox-module_CheckboxRoot_PeyF5{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;appearance:none;border:0;box-shadow:inset 0 0 0 1px var(--checkbox-border-color);inline-size:var(--checkbox-size);block-size:var(--checkbox-size);background:var(--checkbox-background);border-radius:var(--checkbox-radius);&[data-size=regular]{--checkbox-size:var(--space-large);--checkbox-radius:var(--radius-small)}&[data-checked]:not([data-disabled]):not([data-invalid]),&[data-indeterminate]:not([data-disabled]):not([data-invalid]){--checkbox-background:var(--global-primary);--checkbox-border-color:var(--global-primary);box-shadow:none}&[data-invalid]:not([data-disabled]),.checkbox-module_Checkbox_3oGip[data-invalid]>&:not([data-disabled]){--checkbox-border-color:var(--highlight-red);--checkbox-indicator-color:var(--global-primary);box-shadow:inset 0 0 0 1px var(--highlight-red);outline-color:oklab(from var(--highlight-red) l a b/.5)}&[data-disabled],.checkbox-module_Checkbox_3oGip[data-disabled]>&{--checkbox-background:var(--global-disabled-background);--checkbox-border-color:transparent;--checkbox-indicator-color:var(--global-disabled-foreground);box-shadow:none}}.checkbox-module_Indicator_C-k-l{display:inline-flex;align-items:center;justify-content:center;color:var(--checkbox-indicator-color)}.checkbox-module_Icon_926Sa{stroke:currentColor}.checkbox-module_CheckboxRoot_PeyF5:not([data-indeterminate]) .checkbox-module_MinusIcon_Q57pY,.checkbox-module_CheckboxRoot_PeyF5[data-indeterminate] .checkbox-module_CheckIcon_XqUcs{display:none}.checkbox-module_CheckboxRoot_PeyF5[data-indeterminate] .checkbox-module_MinusIcon_Q57pY{display:inline-flex}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { CheckboxRoot, FieldRoot } from '@base-ui/react';
|
|
2
|
+
import { StackProps } from '..';
|
|
3
|
+
import { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
|
|
4
|
+
import type * as React from 'react';
|
|
5
|
+
/**
|
|
6
|
+
* Public Checkbox props.
|
|
7
|
+
*
|
|
8
|
+
* Includes Base UI checkbox props such as `checked`, `defaultChecked`, `indeterminate`,
|
|
9
|
+
* `disabled`, and change handlers, plus optional field copy rendered with the shared Vira
|
|
10
|
+
* field label/helper pattern.
|
|
11
|
+
*
|
|
12
|
+
* @default Base UI pass-through props keep upstream defaults.
|
|
13
|
+
*/
|
|
14
|
+
export type CheckboxProps = CheckboxRoot.Props & Omit<FieldRoot.Props, 'ref'> & {
|
|
15
|
+
/**
|
|
16
|
+
* Adds `data-grow="false"` to the field root when false.
|
|
17
|
+
*
|
|
18
|
+
* @default The field root does not render a grow attribute.
|
|
19
|
+
*/
|
|
20
|
+
grow?: IntrinsicViraProps['grow'];
|
|
21
|
+
/**
|
|
22
|
+
* Adds `data-shrink="false"` to the field root when false.
|
|
23
|
+
*
|
|
24
|
+
* @default The field root does not render a shrink attribute.
|
|
25
|
+
*/
|
|
26
|
+
shrink?: IntrinsicViraProps['shrink'];
|
|
27
|
+
/**
|
|
28
|
+
* Visible label rendered with shared internal `FieldLabel`.
|
|
29
|
+
*
|
|
30
|
+
* @default No label is rendered.
|
|
31
|
+
*/
|
|
32
|
+
label?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Helper copy rendered with `Field.Description` and `Text` while the field is valid.
|
|
35
|
+
*
|
|
36
|
+
* @default No description is rendered.
|
|
37
|
+
*/
|
|
38
|
+
description?: React.ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Error copy rendered with `Field.Error` and `Text` in the same slot as `description`.
|
|
41
|
+
* Replaces description while the field is invalid.
|
|
42
|
+
*
|
|
43
|
+
* @default No static error copy is rendered.
|
|
44
|
+
*/
|
|
45
|
+
error?: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Controls the visual checkbox size.
|
|
48
|
+
*
|
|
49
|
+
* @default 'small'
|
|
50
|
+
*/
|
|
51
|
+
size?: 'regular' | 'small';
|
|
52
|
+
/**
|
|
53
|
+
* Sets block padding using one token for both sides or a `[start, end]` tuple.
|
|
54
|
+
*
|
|
55
|
+
* @default No block padding.
|
|
56
|
+
*/
|
|
57
|
+
vPadding?: StackProps['vPadding'];
|
|
58
|
+
/**
|
|
59
|
+
* Sets inline padding using one token for both sides or a `[start, end]` tuple.
|
|
60
|
+
*
|
|
61
|
+
* @default No inline padding.
|
|
62
|
+
*/
|
|
63
|
+
hPadding?: StackProps['hPadding'];
|
|
64
|
+
};
|
|
65
|
+
export declare const Checkbox: React.FC<CheckboxProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Checkbox",
|
|
3
|
+
"summary": "Field-wrapped checkbox control with optional field copy.",
|
|
4
|
+
"whenToUse": [
|
|
5
|
+
"Single or multi-select boolean choices with optional label and helper text",
|
|
6
|
+
"Invalid and disabled states with Switch-parity focus treatment"
|
|
7
|
+
],
|
|
8
|
+
"whenNotToUse": [
|
|
9
|
+
"Unlabeled checkbox without aria-label on the root",
|
|
10
|
+
"Mutually exclusive options in a set (use radio pattern instead)"
|
|
11
|
+
],
|
|
12
|
+
"accessibility": [
|
|
13
|
+
"Provide visible label or aria-label so the checkbox has an accessible name",
|
|
14
|
+
"Checked and indeterminate states must map to native checkbox semantics exposed by the control",
|
|
15
|
+
"Surface invalid state and error copy through the shared field pattern"
|
|
16
|
+
],
|
|
17
|
+
"antiPatterns": [
|
|
18
|
+
"Rendering a checkbox without label and without aria-label",
|
|
19
|
+
"Expecting description to stay visible when invalid without an error message"
|
|
20
|
+
],
|
|
21
|
+
"related": ["Switch", "Stack", "Text"]
|
|
22
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import './checkbox.css';
|
|
3
|
+
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
4
|
+
import { FieldHelperCopy } from "../basic-input/field-helper-copy.js";
|
|
5
|
+
import { FieldLabel } from "../basic-input/field-label.js";
|
|
6
|
+
import { Stack } from "../stack/stack.js";
|
|
7
|
+
import checkbox_module_default from "./checkbox.module.js";
|
|
8
|
+
import { Icon } from "../icon/icon.js";
|
|
9
|
+
import { clsx } from "clsx";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Checkbox, Field } from "@base-ui/react";
|
|
12
|
+
//#region src/components/checkbox/checkbox.tsx
|
|
13
|
+
var Checkbox$1 = ({ className, description, dirty, disabled, error, invalid, label, name, ref, size = "small", vPadding, hPadding, touched, validate, validationDebounceTime, validationMode, ...checkboxRootProps }) => {
|
|
14
|
+
const hasTextDescription = Boolean(description || error);
|
|
15
|
+
const iconSize = size === "small" ? 12 : 16;
|
|
16
|
+
const { componentProps, intrinsicAttributes } = extractIntrinsicViraProps(checkboxRootProps);
|
|
17
|
+
return /* @__PURE__ */ jsx(Field.Root, {
|
|
18
|
+
...intrinsicAttributes,
|
|
19
|
+
className: checkbox_module_default.Checkbox,
|
|
20
|
+
dirty,
|
|
21
|
+
disabled,
|
|
22
|
+
invalid,
|
|
23
|
+
name,
|
|
24
|
+
touched,
|
|
25
|
+
validate,
|
|
26
|
+
validationDebounceTime,
|
|
27
|
+
validationMode,
|
|
28
|
+
render: /* @__PURE__ */ jsx(Stack, {
|
|
29
|
+
direction: "row",
|
|
30
|
+
columnGap: size === "small" ? "small" : "medium",
|
|
31
|
+
fillChildren: false,
|
|
32
|
+
vAlign: hasTextDescription ? "start" : "center"
|
|
33
|
+
}),
|
|
34
|
+
children: /* @__PURE__ */ jsx(Field.Label, { children: /* @__PURE__ */ jsxs(Stack, {
|
|
35
|
+
direction: "row",
|
|
36
|
+
columnGap: size === "small" ? "small" : "medium",
|
|
37
|
+
fillChildren: false,
|
|
38
|
+
vAlign: hasTextDescription ? "start" : "center",
|
|
39
|
+
...hPadding !== void 0 ? { hPadding } : {},
|
|
40
|
+
...vPadding !== void 0 ? { vPadding } : {},
|
|
41
|
+
children: [/* @__PURE__ */ jsx(Checkbox.Root, {
|
|
42
|
+
...componentProps,
|
|
43
|
+
className: clsx(checkbox_module_default.CheckboxRoot, className),
|
|
44
|
+
"data-size": size,
|
|
45
|
+
disabled,
|
|
46
|
+
name,
|
|
47
|
+
ref,
|
|
48
|
+
children: /* @__PURE__ */ jsxs(Checkbox.Indicator, {
|
|
49
|
+
className: checkbox_module_default.Indicator,
|
|
50
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
51
|
+
className: clsx(checkbox_module_default.Icon, checkbox_module_default.CheckIcon),
|
|
52
|
+
name: "Check",
|
|
53
|
+
size: iconSize
|
|
54
|
+
}), /* @__PURE__ */ jsx(Icon, {
|
|
55
|
+
className: clsx(checkbox_module_default.Icon, checkbox_module_default.MinusIcon),
|
|
56
|
+
name: "Minus",
|
|
57
|
+
size: iconSize
|
|
58
|
+
})]
|
|
59
|
+
})
|
|
60
|
+
}), label || description || error ? /* @__PURE__ */ jsxs(Stack, {
|
|
61
|
+
direction: "column",
|
|
62
|
+
fillChildren: false,
|
|
63
|
+
rowGap: size === "small" ? "2x-small" : "x-small",
|
|
64
|
+
children: [label && /* @__PURE__ */ jsx(FieldLabel, {
|
|
65
|
+
size: size === "small" ? "small" : "medium",
|
|
66
|
+
children: label
|
|
67
|
+
}), /* @__PURE__ */ jsx(FieldHelperCopy, {
|
|
68
|
+
description,
|
|
69
|
+
error
|
|
70
|
+
})]
|
|
71
|
+
}) : null]
|
|
72
|
+
}) })
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { Checkbox$1 as Checkbox };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var checkbox_module_default = {
|
|
2
|
+
Checkbox: "checkbox-module_Checkbox_3oGip",
|
|
3
|
+
CheckboxRoot: "checkbox-module_CheckboxRoot_PeyF5",
|
|
4
|
+
Indicator: "checkbox-module_Indicator_C-k-l",
|
|
5
|
+
Icon: "checkbox-module_Icon_926Sa",
|
|
6
|
+
MinusIcon: "checkbox-module_MinusIcon_Q57pY",
|
|
7
|
+
CheckIcon: "checkbox-module_CheckIcon_XqUcs"
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { checkbox_module_default as default };
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
:scope {
|
|
3
|
-
display: -webkit-box;
|
|
4
|
-
-webkit-line-clamp: var(--clamp-text-rows, 1);
|
|
5
|
-
-webkit-box-orient: vertical;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
|
|
8
|
-
&[data-clamp-text-inline='true'] {
|
|
9
|
-
display: -webkit-inline-box;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
.clamp-text-module_ClampText_Whnkd{display:-webkit-box;-webkit-line-clamp:var(--clamp-text-rows,1);-webkit-box-orient:vertical;overflow:hidden;&[data-clamp-text-inline=true]{display:-webkit-inline-box}}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
|
|
2
3
|
import type * as React from 'react';
|
|
3
|
-
import './clamp-text.css';
|
|
4
|
-
import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
|
|
5
4
|
/**
|
|
6
5
|
* Public ClampText props.
|
|
7
6
|
*
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
-
import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
|
|
4
|
-
import { clsx } from 'clsx';
|
|
5
|
-
import { useMemo } from 'react';
|
|
1
|
+
"use client";
|
|
6
2
|
import './clamp-text.css';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
3
|
+
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
4
|
+
import clamp_text_module_default from "./clamp-text.module.js";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
7
|
+
import { useMemo } from "react";
|
|
8
|
+
//#region src/components/clamp-text/clamp-text.tsx
|
|
9
|
+
var ClampText = ({ className, inline = false, ref, render, rows = 1, style, ...otherProps }) => {
|
|
10
|
+
const { componentProps, intrinsicAttributes } = extractIntrinsicViraProps(otherProps);
|
|
11
|
+
const dynamicStyle = useMemo(() => ({ "--clamp-text-rows": rows }), [rows]);
|
|
12
|
+
return useRender({
|
|
13
|
+
defaultTagName: "span",
|
|
14
|
+
render,
|
|
15
|
+
ref,
|
|
16
|
+
props: {
|
|
17
|
+
...componentProps,
|
|
18
|
+
...intrinsicAttributes,
|
|
19
|
+
"data-clamp-text-inline": inline ? "true" : "false",
|
|
20
|
+
className: clsx(clamp_text_module_default.ClampText, className),
|
|
21
|
+
style: {
|
|
22
|
+
...dynamicStyle,
|
|
23
|
+
...style
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
24
27
|
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ClampText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ClampText } from './clamp-text
|
|
2
|
-
export type { ClampTextProps } from './clamp-text
|
|
1
|
+
export { ClampText } from './clamp-text';
|
|
2
|
+
export type { ClampTextProps } from './clamp-text';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { ElevationDirection, ElevationLevel, ElevationShadowColor } from '../../core/elevation/elevation-types';
|
|
2
|
+
import { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
|
|
1
3
|
import type * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export { ELEVATION_DEFAULTS } from '../../core/elevation/elevation-types.js';
|
|
6
|
-
export { getElevationProps } from '../../core/elevation/get-elevation-props.js';
|
|
4
|
+
export type { ElevationDirection, ElevationLevel, ElevationShadowColor, } from '../../core/elevation/elevation-types';
|
|
5
|
+
export { ELEVATION_DEFAULTS } from '../../core/elevation/elevation-types';
|
|
6
|
+
export { getElevationProps } from '../../core/elevation/get-elevation-props';
|
|
7
7
|
/**
|
|
8
8
|
* Public Elevator props.
|
|
9
9
|
*
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
2
|
+
import "../../core/elevation/elevation-types.js";
|
|
3
|
+
import { getElevationProps } from "../../core/elevation/get-elevation-props.js";
|
|
4
|
+
import { Children, cloneElement, isValidElement } from "react";
|
|
5
|
+
//#region src/components/elevator/elevator.tsx
|
|
6
|
+
var mergeChildStyle = (childStyle, elevationStyle) => ({
|
|
7
|
+
...childStyle ?? {},
|
|
8
|
+
...elevationStyle
|
|
9
9
|
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
});
|
|
28
|
-
});
|
|
10
|
+
var Elevator = ({ children, resting, hover, direction, shadowColor, extraShadow, ...otherProps }) => {
|
|
11
|
+
const { intrinsicAttributes } = extractIntrinsicViraProps(otherProps);
|
|
12
|
+
const elevation = getElevationProps({
|
|
13
|
+
resting,
|
|
14
|
+
...hover !== void 0 ? { hover } : {},
|
|
15
|
+
...direction !== void 0 ? { direction } : {},
|
|
16
|
+
...shadowColor !== void 0 ? { shadowColor } : {},
|
|
17
|
+
...extraShadow !== void 0 ? { extraShadow } : {}
|
|
18
|
+
});
|
|
19
|
+
return Children.map(children, (child) => {
|
|
20
|
+
if (!isValidElement(child)) return child;
|
|
21
|
+
return cloneElement(child, {
|
|
22
|
+
...intrinsicAttributes,
|
|
23
|
+
...elevation.attributes,
|
|
24
|
+
style: mergeChildStyle(child.props.style, elevation.style)
|
|
25
|
+
});
|
|
26
|
+
});
|
|
29
27
|
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { Elevator };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ELEVATION_DEFAULTS, Elevator, getElevationProps } from './elevator
|
|
2
|
-
export type { ElevationDirection, ElevationLevel, ElevationShadowColor, ElevatorProps } from './elevator
|
|
1
|
+
export { ELEVATION_DEFAULTS, Elevator, getElevationProps } from './elevator';
|
|
2
|
+
export type { ElevationDirection, ElevationLevel, ElevationShadowColor, ElevatorProps } from './elevator';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
3
|
-
import type { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
|
|
1
|
+
import { GeneratedIconName, GeneratedIconVariant } from '../../../dist/internal-icons/icon-registry.js';
|
|
2
|
+
import { IntrinsicViraProps } from '../../core/props/intrinsic-vira-props';
|
|
4
3
|
export type IconName = GeneratedIconName;
|
|
5
4
|
export type IconVariant = GeneratedIconVariant;
|
|
6
5
|
export type IconProps = React.ComponentProps<'svg'> & IntrinsicViraProps & {
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { generatedDefaultIconVariant, generatedIconRegistry } from '#internal-icons/icon-registry';
|
|
3
|
-
import { extractIntrinsicViraProps } from '../../core/props/intrinsic-vira-props.js';
|
|
4
|
-
import { clsx } from 'clsx';
|
|
5
1
|
import './icon.css';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
3
|
+
import icon_module_default from "./icon.module.js";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { generatedDefaultIconVariant, generatedIconRegistry } from "#internal-icons/icon-registry";
|
|
7
|
+
//#region src/components/icon/icon.tsx
|
|
8
|
+
var Icon = ({ className, name, size = 24, variant = generatedDefaultIconVariant, ...otherProps }) => {
|
|
9
|
+
const ResolvedIcon = generatedIconRegistry[generatedIconRegistry[variant] ? variant : generatedDefaultIconVariant][name];
|
|
10
|
+
const { componentProps, intrinsicAttributes } = extractIntrinsicViraProps(otherProps);
|
|
11
|
+
return /* @__PURE__ */ jsx(ResolvedIcon, {
|
|
12
|
+
...componentProps,
|
|
13
|
+
...intrinsicAttributes,
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
className: clsx(icon_module_default.Icon, className),
|
|
16
|
+
size
|
|
17
|
+
});
|
|
11
18
|
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Icon };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Icon } from './icon
|
|
2
|
-
export type { IconProps } from './icon
|
|
1
|
+
export { Icon } from './icon';
|
|
2
|
+
export type { IconName, IconProps, IconVariant } from './icon';
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Button } from "../button/button.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/icon-button/icon-button.tsx
|
|
4
|
+
var IconButton = ({ icon, size = "medium", ...props }) => /* @__PURE__ */ jsx(Button, {
|
|
5
|
+
icon,
|
|
6
|
+
size,
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { IconButton };
|