@lightsparkdev/ui 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +23 -0
- package/dist/chunk-2RF46PE5.js +127 -0
- package/dist/chunk-4X3K3VRC.js +263 -0
- package/dist/chunk-6AV4TE6I.js +20 -0
- package/dist/chunk-6RDG2DE3.js +25 -0
- package/dist/chunk-7ENCWBAN.js +112 -0
- package/dist/chunk-7NQH4LBZ.js +25 -0
- package/dist/chunk-ACZDUWPH.js +304 -0
- package/dist/chunk-BKOTW3CK.js +51 -0
- package/dist/chunk-BZ5MKMI2.js +58 -0
- package/dist/chunk-CIGAQ47A.js +45 -0
- package/dist/chunk-CLU2FRJZ.js +29 -0
- package/dist/chunk-CQDQFIWT.js +24 -0
- package/dist/chunk-DE24BV2C.js +61 -0
- package/dist/chunk-FETTWCK3.js +101 -0
- package/dist/chunk-I4PO6FQP.js +36 -0
- package/dist/chunk-IJVWYT5G.js +8 -0
- package/dist/chunk-JSGRNWSB.js +233 -0
- package/dist/chunk-K7MPHJNG.js +66 -0
- package/dist/chunk-L7XFJWMY.js +93 -0
- package/dist/chunk-LAMQKQU3.js +56 -0
- package/dist/chunk-LJYASIJC.js +117 -0
- package/dist/chunk-LWTUQB7O.js +34 -0
- package/dist/chunk-LZHLWOXG.js +94 -0
- package/dist/chunk-NBCCPGA4.js +17 -0
- package/dist/chunk-O27TAUAS.js +76 -0
- package/dist/chunk-QR7BKTM6.js +131 -0
- package/dist/chunk-RUVXOYBL.js +19 -0
- package/dist/chunk-SVQELXFK.js +131 -0
- package/dist/chunk-W4GDCWKZ.js +86 -0
- package/dist/chunk-WOR7J4KZ.js +37 -0
- package/dist/chunk-WVEK4LFA.js +137 -0
- package/dist/chunk-WVJNZRKF.js +741 -0
- package/dist/chunk-X6BI4STY.js +23 -0
- package/dist/chunk-XTEEADPV.js +288 -0
- package/dist/chunk-Y4RJ7WS4.js +38 -0
- package/dist/components/Button.cjs +1645 -0
- package/dist/components/Button.d.cts +62 -0
- package/dist/components/Button.d.ts +62 -0
- package/dist/components/Button.js +21 -0
- package/dist/components/ButtonRow.cjs +1759 -0
- package/dist/components/ButtonRow.d.cts +24 -0
- package/dist/components/ButtonRow.d.ts +24 -0
- package/dist/components/ButtonRow.js +21 -0
- package/dist/components/Collapsible.cjs +1433 -0
- package/dist/components/Collapsible.d.cts +35 -0
- package/dist/components/Collapsible.d.ts +35 -0
- package/dist/components/Collapsible.js +21 -0
- package/dist/components/CommandKey.cjs +72 -0
- package/dist/components/CommandKey.d.cts +12 -0
- package/dist/components/CommandKey.d.ts +12 -0
- package/dist/components/CommandKey.js +8 -0
- package/dist/components/CopyToClipboardButton.cjs +1346 -0
- package/dist/components/CopyToClipboardButton.d.cts +18 -0
- package/dist/components/CopyToClipboardButton.d.ts +18 -0
- package/dist/components/CopyToClipboardButton.js +15 -0
- package/dist/components/CurrencyAmount.cjs +1355 -0
- package/dist/components/CurrencyAmount.d.cts +24 -0
- package/dist/components/CurrencyAmount.d.ts +24 -0
- package/dist/components/CurrencyAmount.js +16 -0
- package/dist/components/Icon.cjs +1265 -0
- package/dist/components/Icon.d.cts +29 -0
- package/dist/components/Icon.d.ts +29 -0
- package/dist/components/Icon.js +15 -0
- package/dist/components/LightboxImage.cjs +186 -0
- package/dist/components/LightboxImage.d.cts +8 -0
- package/dist/components/LightboxImage.d.ts +8 -0
- package/dist/components/LightboxImage.js +9 -0
- package/dist/components/LightsparkProvider.cjs +1332 -0
- package/dist/components/LightsparkProvider.d.cts +8 -0
- package/dist/components/LightsparkProvider.d.ts +8 -0
- package/dist/components/LightsparkProvider.js +14 -0
- package/dist/components/Loading.cjs +1317 -0
- package/dist/components/Loading.d.cts +27 -0
- package/dist/components/Loading.d.ts +27 -0
- package/dist/components/Loading.js +16 -0
- package/dist/components/Modal.cjs +1998 -0
- package/dist/components/Modal.d.cts +35 -0
- package/dist/components/Modal.d.ts +35 -0
- package/dist/components/Modal.js +21 -0
- package/dist/components/SecretContainer.cjs +1379 -0
- package/dist/components/SecretContainer.d.cts +10 -0
- package/dist/components/SecretContainer.d.ts +10 -0
- package/dist/components/SecretContainer.js +16 -0
- package/dist/components/TextIconAligner.cjs +1309 -0
- package/dist/components/TextIconAligner.d.cts +23 -0
- package/dist/components/TextIconAligner.d.ts +23 -0
- package/dist/components/TextIconAligner.js +14 -0
- package/dist/components/UnstyledButton.cjs +1190 -0
- package/dist/components/UnstyledButton.d.cts +10 -0
- package/dist/components/UnstyledButton.d.ts +10 -0
- package/dist/components/UnstyledButton.js +12 -0
- package/dist/components/documentation/AnchorLinkHeader.cjs +1387 -0
- package/dist/components/documentation/AnchorLinkHeader.d.cts +8 -0
- package/dist/components/documentation/AnchorLinkHeader.d.ts +8 -0
- package/dist/components/documentation/AnchorLinkHeader.js +16 -0
- package/dist/components/documentation/index.cjs +1388 -0
- package/dist/components/documentation/index.d.cts +5 -0
- package/dist/components/documentation/index.d.ts +5 -0
- package/dist/components/documentation/index.js +15 -0
- package/dist/components/index.cjs +2720 -0
- package/dist/components/index.d.cts +23 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/index.js +82 -0
- package/dist/hooks/useLiveRef.cjs +41 -0
- package/dist/hooks/useLiveRef.d.cts +8 -0
- package/dist/hooks/useLiveRef.d.ts +8 -0
- package/dist/hooks/useLiveRef.js +7 -0
- package/dist/icons/AI.cjs +49 -0
- package/dist/icons/AI.d.cts +5 -0
- package/dist/icons/AI.d.ts +5 -0
- package/dist/icons/AI.js +30 -0
- package/dist/icons/AnchorLink.cjs +48 -0
- package/dist/icons/AnchorLink.d.cts +5 -0
- package/dist/icons/AnchorLink.d.ts +5 -0
- package/dist/icons/AnchorLink.js +29 -0
- package/dist/icons/AppIcon.cjs +88 -0
- package/dist/icons/AppIcon.d.cts +5 -0
- package/dist/icons/AppIcon.d.ts +5 -0
- package/dist/icons/AppIcon.js +69 -0
- package/dist/icons/ArrowCircleTier1.cjs +48 -0
- package/dist/icons/ArrowCircleTier1.d.cts +5 -0
- package/dist/icons/ArrowCircleTier1.d.ts +5 -0
- package/dist/icons/ArrowCircleTier1.js +29 -0
- package/dist/icons/ArrowCircleTier2.cjs +48 -0
- package/dist/icons/ArrowCircleTier2.d.cts +5 -0
- package/dist/icons/ArrowCircleTier2.d.ts +5 -0
- package/dist/icons/ArrowCircleTier2.js +29 -0
- package/dist/icons/ArrowCircleTier3.cjs +48 -0
- package/dist/icons/ArrowCircleTier3.d.cts +5 -0
- package/dist/icons/ArrowCircleTier3.d.ts +5 -0
- package/dist/icons/ArrowCircleTier3.js +29 -0
- package/dist/icons/ArrowDown.cjs +53 -0
- package/dist/icons/ArrowDown.d.cts +5 -0
- package/dist/icons/ArrowDown.d.ts +5 -0
- package/dist/icons/ArrowDown.js +30 -0
- package/dist/icons/ArrowUp.cjs +53 -0
- package/dist/icons/ArrowUp.d.cts +5 -0
- package/dist/icons/ArrowUp.d.ts +5 -0
- package/dist/icons/ArrowUp.js +30 -0
- package/dist/icons/Bell.cjs +57 -0
- package/dist/icons/Bell.d.cts +8 -0
- package/dist/icons/Bell.d.ts +8 -0
- package/dist/icons/Bell.js +38 -0
- package/dist/icons/BellOn.cjs +67 -0
- package/dist/icons/BellOn.d.cts +8 -0
- package/dist/icons/BellOn.d.ts +8 -0
- package/dist/icons/BellOn.js +48 -0
- package/dist/icons/BitcoinB.cjs +46 -0
- package/dist/icons/BitcoinB.d.cts +5 -0
- package/dist/icons/BitcoinB.d.ts +5 -0
- package/dist/icons/BitcoinB.js +27 -0
- package/dist/icons/BitcoinBOnRoundedSquare.cjs +48 -0
- package/dist/icons/BitcoinBOnRoundedSquare.d.cts +5 -0
- package/dist/icons/BitcoinBOnRoundedSquare.d.ts +5 -0
- package/dist/icons/BitcoinBOnRoundedSquare.js +29 -0
- package/dist/icons/Bolt.cjs +116 -0
- package/dist/icons/Bolt.d.cts +9 -0
- package/dist/icons/Bolt.d.ts +9 -0
- package/dist/icons/Bolt.js +97 -0
- package/dist/icons/Camera.cjs +55 -0
- package/dist/icons/Camera.d.cts +5 -0
- package/dist/icons/Camera.d.ts +5 -0
- package/dist/icons/Camera.js +36 -0
- package/dist/icons/CameraCapture.cjs +97 -0
- package/dist/icons/CameraCapture.d.cts +5 -0
- package/dist/icons/CameraCapture.d.ts +5 -0
- package/dist/icons/CameraCapture.js +78 -0
- package/dist/icons/Channel.cjs +67 -0
- package/dist/icons/Channel.d.cts +5 -0
- package/dist/icons/Channel.d.ts +5 -0
- package/dist/icons/Channel.js +48 -0
- package/dist/icons/ChannelBalance.cjs +58 -0
- package/dist/icons/ChannelBalance.d.cts +5 -0
- package/dist/icons/ChannelBalance.d.ts +5 -0
- package/dist/icons/ChannelBalance.js +39 -0
- package/dist/icons/ChannelOpen.cjs +64 -0
- package/dist/icons/ChannelOpen.d.cts +5 -0
- package/dist/icons/ChannelOpen.d.ts +5 -0
- package/dist/icons/ChannelOpen.js +45 -0
- package/dist/icons/CheckboxIcon.cjs +81 -0
- package/dist/icons/CheckboxIcon.d.cts +8 -0
- package/dist/icons/CheckboxIcon.d.ts +8 -0
- package/dist/icons/CheckboxIcon.js +62 -0
- package/dist/icons/Checkmark.cjs +47 -0
- package/dist/icons/Checkmark.d.cts +5 -0
- package/dist/icons/Checkmark.d.ts +5 -0
- package/dist/icons/Checkmark.js +28 -0
- package/dist/icons/CheckmarkCircleGreen.cjs +49 -0
- package/dist/icons/CheckmarkCircleGreen.d.cts +5 -0
- package/dist/icons/CheckmarkCircleGreen.d.ts +5 -0
- package/dist/icons/CheckmarkCircleGreen.js +30 -0
- package/dist/icons/CheckmarkCircleTier1.cjs +49 -0
- package/dist/icons/CheckmarkCircleTier1.d.cts +5 -0
- package/dist/icons/CheckmarkCircleTier1.d.ts +5 -0
- package/dist/icons/CheckmarkCircleTier1.js +30 -0
- package/dist/icons/CheckmarkCircleTier2.cjs +49 -0
- package/dist/icons/CheckmarkCircleTier2.d.cts +5 -0
- package/dist/icons/CheckmarkCircleTier2.d.ts +5 -0
- package/dist/icons/CheckmarkCircleTier2.js +30 -0
- package/dist/icons/CheckmarkCircleTier3.cjs +49 -0
- package/dist/icons/CheckmarkCircleTier3.d.cts +5 -0
- package/dist/icons/CheckmarkCircleTier3.d.ts +5 -0
- package/dist/icons/CheckmarkCircleTier3.js +30 -0
- package/dist/icons/Chevron.cjs +45 -0
- package/dist/icons/Chevron.d.cts +5 -0
- package/dist/icons/Chevron.d.ts +5 -0
- package/dist/icons/Chevron.js +26 -0
- package/dist/icons/CircleCheck.cjs +54 -0
- package/dist/icons/CircleCheck.d.cts +5 -0
- package/dist/icons/CircleCheck.d.ts +5 -0
- package/dist/icons/CircleCheck.js +31 -0
- package/dist/icons/CircleCheckOutline.cjs +51 -0
- package/dist/icons/CircleCheckOutline.d.cts +5 -0
- package/dist/icons/CircleCheckOutline.d.ts +5 -0
- package/dist/icons/CircleCheckOutline.js +28 -0
- package/dist/icons/CirclePlus.cjs +43 -0
- package/dist/icons/CirclePlus.d.cts +5 -0
- package/dist/icons/CirclePlus.d.ts +5 -0
- package/dist/icons/CirclePlus.js +20 -0
- package/dist/icons/Clock.cjs +53 -0
- package/dist/icons/Clock.d.cts +5 -0
- package/dist/icons/Clock.d.ts +5 -0
- package/dist/icons/Clock.js +30 -0
- package/dist/icons/Close.cjs +47 -0
- package/dist/icons/Close.d.cts +5 -0
- package/dist/icons/Close.d.ts +5 -0
- package/dist/icons/Close.js +28 -0
- package/dist/icons/Code.cjs +48 -0
- package/dist/icons/Code.d.cts +5 -0
- package/dist/icons/Code.d.ts +5 -0
- package/dist/icons/Code.js +29 -0
- package/dist/icons/Copy.cjs +45 -0
- package/dist/icons/Copy.d.cts +5 -0
- package/dist/icons/Copy.d.ts +5 -0
- package/dist/icons/Copy.js +26 -0
- package/dist/icons/CreditCard.cjs +52 -0
- package/dist/icons/CreditCard.d.cts +5 -0
- package/dist/icons/CreditCard.d.ts +5 -0
- package/dist/icons/CreditCard.js +33 -0
- package/dist/icons/DeleteIcon.cjs +63 -0
- package/dist/icons/DeleteIcon.d.cts +5 -0
- package/dist/icons/DeleteIcon.d.ts +5 -0
- package/dist/icons/DeleteIcon.js +44 -0
- package/dist/icons/Dollar.cjs +48 -0
- package/dist/icons/Dollar.d.cts +5 -0
- package/dist/icons/Dollar.d.ts +5 -0
- package/dist/icons/Dollar.js +29 -0
- package/dist/icons/Dots.cjs +38 -0
- package/dist/icons/Dots.d.cts +5 -0
- package/dist/icons/Dots.d.ts +5 -0
- package/dist/icons/Dots.js +19 -0
- package/dist/icons/Down.cjs +47 -0
- package/dist/icons/Down.d.cts +5 -0
- package/dist/icons/Down.d.ts +5 -0
- package/dist/icons/Down.js +28 -0
- package/dist/icons/Download.cjs +45 -0
- package/dist/icons/Download.d.cts +5 -0
- package/dist/icons/Download.d.ts +5 -0
- package/dist/icons/Download.js +26 -0
- package/dist/icons/ExclamationPoint.cjs +67 -0
- package/dist/icons/ExclamationPoint.d.cts +5 -0
- package/dist/icons/ExclamationPoint.d.ts +5 -0
- package/dist/icons/ExclamationPoint.js +48 -0
- package/dist/icons/Exit.cjs +46 -0
- package/dist/icons/Exit.d.cts +5 -0
- package/dist/icons/Exit.d.ts +5 -0
- package/dist/icons/Exit.js +27 -0
- package/dist/icons/Explorer.cjs +43 -0
- package/dist/icons/Explorer.d.cts +5 -0
- package/dist/icons/Explorer.d.ts +5 -0
- package/dist/icons/Explorer.js +24 -0
- package/dist/icons/Eye.cjs +54 -0
- package/dist/icons/Eye.d.cts +5 -0
- package/dist/icons/Eye.d.ts +5 -0
- package/dist/icons/Eye.js +35 -0
- package/dist/icons/EyeDropper.cjs +46 -0
- package/dist/icons/EyeDropper.d.cts +5 -0
- package/dist/icons/EyeDropper.d.ts +5 -0
- package/dist/icons/EyeDropper.js +27 -0
- package/dist/icons/FlutterTwoTone.cjs +70 -0
- package/dist/icons/FlutterTwoTone.d.cts +5 -0
- package/dist/icons/FlutterTwoTone.d.ts +5 -0
- package/dist/icons/FlutterTwoTone.js +51 -0
- package/dist/icons/Gear.cjs +54 -0
- package/dist/icons/Gear.d.cts +5 -0
- package/dist/icons/Gear.d.ts +5 -0
- package/dist/icons/Gear.js +35 -0
- package/dist/icons/Github.cjs +45 -0
- package/dist/icons/Github.d.cts +5 -0
- package/dist/icons/Github.d.ts +5 -0
- package/dist/icons/Github.js +26 -0
- package/dist/icons/GoTwoTone.cjs +86 -0
- package/dist/icons/GoTwoTone.d.cts +5 -0
- package/dist/icons/GoTwoTone.d.ts +5 -0
- package/dist/icons/GoTwoTone.js +67 -0
- package/dist/icons/GraphQLTwoTone.cjs +145 -0
- package/dist/icons/GraphQLTwoTone.d.cts +5 -0
- package/dist/icons/GraphQLTwoTone.d.ts +5 -0
- package/dist/icons/GraphQLTwoTone.js +126 -0
- package/dist/icons/HeartOutline.cjs +70 -0
- package/dist/icons/HeartOutline.d.cts +8 -0
- package/dist/icons/HeartOutline.d.ts +8 -0
- package/dist/icons/HeartOutline.js +51 -0
- package/dist/icons/HorizontalArrows.cjs +60 -0
- package/dist/icons/HorizontalArrows.d.cts +5 -0
- package/dist/icons/HorizontalArrows.d.ts +5 -0
- package/dist/icons/HorizontalArrows.js +41 -0
- package/dist/icons/Info.cjs +68 -0
- package/dist/icons/Info.d.cts +5 -0
- package/dist/icons/Info.d.ts +5 -0
- package/dist/icons/Info.js +49 -0
- package/dist/icons/InvoiceNew.cjs +46 -0
- package/dist/icons/InvoiceNew.d.cts +5 -0
- package/dist/icons/InvoiceNew.d.ts +5 -0
- package/dist/icons/InvoiceNew.js +27 -0
- package/dist/icons/JavaScriptTwoTone.cjs +83 -0
- package/dist/icons/JavaScriptTwoTone.d.cts +5 -0
- package/dist/icons/JavaScriptTwoTone.d.ts +5 -0
- package/dist/icons/JavaScriptTwoTone.js +64 -0
- package/dist/icons/JavaTwoTone.cjs +48 -0
- package/dist/icons/JavaTwoTone.d.cts +5 -0
- package/dist/icons/JavaTwoTone.d.ts +5 -0
- package/dist/icons/JavaTwoTone.js +29 -0
- package/dist/icons/KotlinTwoTone.cjs +62 -0
- package/dist/icons/KotlinTwoTone.d.cts +5 -0
- package/dist/icons/KotlinTwoTone.d.ts +5 -0
- package/dist/icons/KotlinTwoTone.js +43 -0
- package/dist/icons/LeftArrow.cjs +46 -0
- package/dist/icons/LeftArrow.d.cts +5 -0
- package/dist/icons/LeftArrow.d.ts +5 -0
- package/dist/icons/LeftArrow.js +27 -0
- package/dist/icons/LightningOnRoundedSquare.cjs +46 -0
- package/dist/icons/LightningOnRoundedSquare.d.cts +5 -0
- package/dist/icons/LightningOnRoundedSquare.d.ts +5 -0
- package/dist/icons/LightningOnRoundedSquare.js +27 -0
- package/dist/icons/LinkIcon.cjs +58 -0
- package/dist/icons/LinkIcon.d.cts +5 -0
- package/dist/icons/LinkIcon.d.ts +5 -0
- package/dist/icons/LinkIcon.js +39 -0
- package/dist/icons/LoadingSpinner.cjs +202 -0
- package/dist/icons/LoadingSpinner.d.cts +5 -0
- package/dist/icons/LoadingSpinner.d.ts +5 -0
- package/dist/icons/LoadingSpinner.js +183 -0
- package/dist/icons/Lock.cjs +56 -0
- package/dist/icons/Lock.d.cts +5 -0
- package/dist/icons/Lock.d.ts +5 -0
- package/dist/icons/Lock.js +37 -0
- package/dist/icons/Logo.cjs +78 -0
- package/dist/icons/Logo.d.cts +5 -0
- package/dist/icons/Logo.d.ts +5 -0
- package/dist/icons/Logo.js +33 -0
- package/dist/icons/LogoBolt.cjs +125 -0
- package/dist/icons/LogoBolt.d.cts +5 -0
- package/dist/icons/LogoBolt.d.ts +5 -0
- package/dist/icons/LogoBolt.js +106 -0
- package/dist/icons/LogoOnCircle.cjs +56 -0
- package/dist/icons/LogoOnCircle.d.cts +5 -0
- package/dist/icons/LogoOnCircle.d.ts +5 -0
- package/dist/icons/LogoOnCircle.js +37 -0
- package/dist/icons/MagicWand.cjs +75 -0
- package/dist/icons/MagicWand.d.cts +5 -0
- package/dist/icons/MagicWand.d.ts +5 -0
- package/dist/icons/MagicWand.js +56 -0
- package/dist/icons/Mail.cjs +47 -0
- package/dist/icons/Mail.d.cts +5 -0
- package/dist/icons/Mail.d.ts +5 -0
- package/dist/icons/Mail.js +28 -0
- package/dist/icons/Monitor.cjs +71 -0
- package/dist/icons/Monitor.d.cts +5 -0
- package/dist/icons/Monitor.d.ts +5 -0
- package/dist/icons/Monitor.js +52 -0
- package/dist/icons/NodeAdd.cjs +44 -0
- package/dist/icons/NodeAdd.d.cts +5 -0
- package/dist/icons/NodeAdd.d.ts +5 -0
- package/dist/icons/NodeAdd.js +25 -0
- package/dist/icons/NotEye.cjs +56 -0
- package/dist/icons/NotEye.d.cts +5 -0
- package/dist/icons/NotEye.d.ts +5 -0
- package/dist/icons/NotEye.js +37 -0
- package/dist/icons/NoteLine.cjs +44 -0
- package/dist/icons/NoteLine.d.cts +5 -0
- package/dist/icons/NoteLine.d.ts +5 -0
- package/dist/icons/NoteLine.js +25 -0
- package/dist/icons/PaperPlane.cjs +45 -0
- package/dist/icons/PaperPlane.d.cts +5 -0
- package/dist/icons/PaperPlane.d.ts +5 -0
- package/dist/icons/PaperPlane.js +26 -0
- package/dist/icons/Pencil.cjs +46 -0
- package/dist/icons/Pencil.d.cts +8 -0
- package/dist/icons/Pencil.d.ts +8 -0
- package/dist/icons/Pencil.js +27 -0
- package/dist/icons/Person.cjs +48 -0
- package/dist/icons/Person.d.cts +5 -0
- package/dist/icons/Person.d.ts +5 -0
- package/dist/icons/Person.js +29 -0
- package/dist/icons/Phone.cjs +57 -0
- package/dist/icons/Phone.d.cts +5 -0
- package/dist/icons/Phone.d.ts +5 -0
- package/dist/icons/Phone.js +38 -0
- package/dist/icons/PiggyBank.cjs +72 -0
- package/dist/icons/PiggyBank.d.cts +5 -0
- package/dist/icons/PiggyBank.d.ts +5 -0
- package/dist/icons/PiggyBank.js +49 -0
- package/dist/icons/Plus.cjs +74 -0
- package/dist/icons/Plus.d.cts +5 -0
- package/dist/icons/Plus.d.ts +5 -0
- package/dist/icons/Plus.js +55 -0
- package/dist/icons/PythonTwoTone.cjs +54 -0
- package/dist/icons/PythonTwoTone.d.cts +5 -0
- package/dist/icons/PythonTwoTone.d.ts +5 -0
- package/dist/icons/PythonTwoTone.js +35 -0
- package/dist/icons/QRCodeIcon.cjs +125 -0
- package/dist/icons/QRCodeIcon.d.cts +5 -0
- package/dist/icons/QRCodeIcon.d.ts +5 -0
- package/dist/icons/QRCodeIcon.js +106 -0
- package/dist/icons/ReactTwoTone.cjs +80 -0
- package/dist/icons/ReactTwoTone.d.cts +5 -0
- package/dist/icons/ReactTwoTone.d.ts +5 -0
- package/dist/icons/ReactTwoTone.js +61 -0
- package/dist/icons/Receive.cjs +47 -0
- package/dist/icons/Receive.d.cts +6 -0
- package/dist/icons/Receive.d.ts +6 -0
- package/dist/icons/Receive.js +28 -0
- package/dist/icons/Recycling.cjs +46 -0
- package/dist/icons/Recycling.d.cts +5 -0
- package/dist/icons/Recycling.d.ts +5 -0
- package/dist/icons/Recycling.js +27 -0
- package/dist/icons/Restart.cjs +46 -0
- package/dist/icons/Restart.d.cts +5 -0
- package/dist/icons/Restart.d.ts +5 -0
- package/dist/icons/Restart.js +27 -0
- package/dist/icons/RightArrow.cjs +46 -0
- package/dist/icons/RightArrow.d.cts +5 -0
- package/dist/icons/RightArrow.d.ts +5 -0
- package/dist/icons/RightArrow.js +27 -0
- package/dist/icons/Roadmap.cjs +46 -0
- package/dist/icons/Roadmap.d.cts +5 -0
- package/dist/icons/Roadmap.d.ts +5 -0
- package/dist/icons/Roadmap.js +27 -0
- package/dist/icons/Route.cjs +59 -0
- package/dist/icons/Route.d.cts +6 -0
- package/dist/icons/Route.d.ts +6 -0
- package/dist/icons/Route.js +40 -0
- package/dist/icons/RustTwoTone.cjs +60 -0
- package/dist/icons/RustTwoTone.d.cts +5 -0
- package/dist/icons/RustTwoTone.d.ts +5 -0
- package/dist/icons/RustTwoTone.js +41 -0
- package/dist/icons/Satoshi.cjs +59 -0
- package/dist/icons/Satoshi.d.cts +5 -0
- package/dist/icons/Satoshi.d.ts +5 -0
- package/dist/icons/Satoshi.js +40 -0
- package/dist/icons/SatoshiRounded.cjs +85 -0
- package/dist/icons/SatoshiRounded.d.cts +5 -0
- package/dist/icons/SatoshiRounded.d.ts +5 -0
- package/dist/icons/SatoshiRounded.js +66 -0
- package/dist/icons/Search.cjs +47 -0
- package/dist/icons/Search.d.cts +5 -0
- package/dist/icons/Search.d.ts +5 -0
- package/dist/icons/Search.js +28 -0
- package/dist/icons/SecurityKey.cjs +71 -0
- package/dist/icons/SecurityKey.d.cts +5 -0
- package/dist/icons/SecurityKey.d.ts +5 -0
- package/dist/icons/SecurityKey.js +52 -0
- package/dist/icons/Selector.cjs +61 -0
- package/dist/icons/Selector.d.cts +5 -0
- package/dist/icons/Selector.d.ts +5 -0
- package/dist/icons/Selector.js +42 -0
- package/dist/icons/SemiCircleOverlap.cjs +58 -0
- package/dist/icons/SemiCircleOverlap.d.cts +5 -0
- package/dist/icons/SemiCircleOverlap.d.ts +5 -0
- package/dist/icons/SemiCircleOverlap.js +39 -0
- package/dist/icons/Send.cjs +47 -0
- package/dist/icons/Send.d.cts +6 -0
- package/dist/icons/Send.d.ts +6 -0
- package/dist/icons/Send.js +28 -0
- package/dist/icons/Sidebar.cjs +48 -0
- package/dist/icons/Sidebar.d.cts +5 -0
- package/dist/icons/Sidebar.d.ts +5 -0
- package/dist/icons/Sidebar.js +29 -0
- package/dist/icons/StackedLines.cjs +52 -0
- package/dist/icons/StackedLines.d.cts +5 -0
- package/dist/icons/StackedLines.d.ts +5 -0
- package/dist/icons/StackedLines.js +29 -0
- package/dist/icons/SwiftTwoTone.cjs +59 -0
- package/dist/icons/SwiftTwoTone.d.cts +5 -0
- package/dist/icons/SwiftTwoTone.d.ts +5 -0
- package/dist/icons/SwiftTwoTone.js +40 -0
- package/dist/icons/Team.cjs +46 -0
- package/dist/icons/Team.d.cts +5 -0
- package/dist/icons/Team.d.ts +5 -0
- package/dist/icons/Team.js +27 -0
- package/dist/icons/Terminal.cjs +49 -0
- package/dist/icons/Terminal.d.cts +5 -0
- package/dist/icons/Terminal.d.ts +5 -0
- package/dist/icons/Terminal.js +30 -0
- package/dist/icons/Trash.cjs +49 -0
- package/dist/icons/Trash.d.cts +5 -0
- package/dist/icons/Trash.d.ts +5 -0
- package/dist/icons/Trash.js +30 -0
- package/dist/icons/TrashOld.cjs +53 -0
- package/dist/icons/TrashOld.d.cts +8 -0
- package/dist/icons/TrashOld.d.ts +8 -0
- package/dist/icons/TrashOld.js +34 -0
- package/dist/icons/TwoArrowsDown.cjs +53 -0
- package/dist/icons/TwoArrowsDown.d.cts +5 -0
- package/dist/icons/TwoArrowsDown.d.ts +5 -0
- package/dist/icons/TwoArrowsDown.js +30 -0
- package/dist/icons/TwoArrowsUp.cjs +53 -0
- package/dist/icons/TwoArrowsUp.d.cts +5 -0
- package/dist/icons/TwoArrowsUp.d.ts +5 -0
- package/dist/icons/TwoArrowsUp.js +30 -0
- package/dist/icons/Upload.cjs +45 -0
- package/dist/icons/Upload.d.cts +5 -0
- package/dist/icons/Upload.d.ts +5 -0
- package/dist/icons/Upload.js +26 -0
- package/dist/icons/VerticalArrows.cjs +59 -0
- package/dist/icons/VerticalArrows.d.cts +8 -0
- package/dist/icons/VerticalArrows.d.ts +8 -0
- package/dist/icons/VerticalArrows.js +40 -0
- package/dist/icons/ViewAll.cjs +45 -0
- package/dist/icons/ViewAll.d.cts +5 -0
- package/dist/icons/ViewAll.d.ts +5 -0
- package/dist/icons/ViewAll.js +26 -0
- package/dist/icons/WalletSDKIcon.cjs +59 -0
- package/dist/icons/WalletSDKIcon.d.cts +5 -0
- package/dist/icons/WalletSDKIcon.d.ts +5 -0
- package/dist/icons/WalletSDKIcon.js +40 -0
- package/dist/icons/WarningIcon.cjs +48 -0
- package/dist/icons/WarningIcon.d.cts +5 -0
- package/dist/icons/WarningIcon.d.ts +5 -0
- package/dist/icons/WarningIcon.js +29 -0
- package/dist/icons/WarningSign.cjs +57 -0
- package/dist/icons/WarningSign.d.cts +5 -0
- package/dist/icons/WarningSign.d.ts +5 -0
- package/dist/icons/WarningSign.js +38 -0
- package/dist/icons/index.cjs +1267 -0
- package/dist/icons/index.d.cts +5 -0
- package/dist/icons/index.d.ts +5 -0
- package/dist/icons/index.js +15 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +0 -0
- package/dist/router.cjs +1082 -0
- package/dist/router.d.cts +39 -0
- package/dist/router.d.ts +39 -0
- package/dist/router.js +24 -0
- package/dist/static/fonts/LightsparkIcons/LightsparkIcons.eot +0 -0
- package/dist/static/fonts/LightsparkIcons/LightsparkIcons.svg +14 -0
- package/dist/static/fonts/LightsparkIcons/LightsparkIcons.ttf +0 -0
- package/dist/static/fonts/LightsparkIcons/LightsparkIcons.woff +0 -0
- package/dist/static/fonts/LightsparkIcons/README.md +1 -0
- package/dist/static/fonts/LightsparkIcons/glyph-svg-src/btc.svg +3 -0
- package/dist/static/fonts/LightsparkIcons/glyph-svg-src/margin-btc.svg +3 -0
- package/dist/static/fonts/LightsparkIcons/glyph-svg-src/margin-sats.svg +7 -0
- package/dist/static/fonts/LightsparkIcons/glyph-svg-src/sats.svg +7 -0
- package/dist/static/fonts.css +14 -0
- package/dist/static/images/Checkmark.svg +3 -0
- package/dist/static/images/FramedLogoOnCircle.svg +12 -0
- package/dist/static/images/Logo.svg +55 -0
- package/dist/static/images/RainLogo.png +0 -0
- package/dist/static/images/RotatedElipseGradient-2x.png +0 -0
- package/dist/static/images/RotatedElipseGradient.png +0 -0
- package/dist/static/images/country-flags/us.svg +10 -0
- package/dist/styles/breakpoints.cjs +263 -0
- package/dist/styles/breakpoints.d.cts +88 -0
- package/dist/styles/breakpoints.d.ts +88 -0
- package/dist/styles/breakpoints.js +19 -0
- package/dist/styles/colors.cjs +1177 -0
- package/dist/styles/colors.d.cts +135 -0
- package/dist/styles/colors.d.ts +135 -0
- package/dist/styles/colors.js +41 -0
- package/dist/styles/common.cjs +1248 -0
- package/dist/styles/common.d.cts +48 -0
- package/dist/styles/common.d.ts +48 -0
- package/dist/styles/common.js +59 -0
- package/dist/styles/constants.cjs +32 -0
- package/dist/styles/constants.d.cts +5 -0
- package/dist/styles/constants.d.ts +5 -0
- package/dist/styles/constants.js +7 -0
- package/dist/styles/fields.cjs +1361 -0
- package/dist/styles/fields.d.cts +67 -0
- package/dist/styles/fields.d.ts +67 -0
- package/dist/styles/fields.js +192 -0
- package/dist/styles/fonts/typography/Article.cjs +1388 -0
- package/dist/styles/fonts/typography/Article.d.cts +10 -0
- package/dist/styles/fonts/typography/Article.d.ts +10 -0
- package/dist/styles/fonts/typography/Article.js +17 -0
- package/dist/styles/fonts/typography/Body.cjs +1012 -0
- package/dist/styles/fonts/typography/Body.d.cts +23 -0
- package/dist/styles/fonts/typography/Body.d.ts +23 -0
- package/dist/styles/fonts/typography/Body.js +13 -0
- package/dist/styles/fonts/typography/Code.cjs +68 -0
- package/dist/styles/fonts/typography/Code.d.cts +10 -0
- package/dist/styles/fonts/typography/Code.d.ts +10 -0
- package/dist/styles/fonts/typography/Code.js +9 -0
- package/dist/styles/fonts/typography/Display.cjs +1022 -0
- package/dist/styles/fonts/typography/Display.d.cts +15 -0
- package/dist/styles/fonts/typography/Display.d.ts +15 -0
- package/dist/styles/fonts/typography/Display.js +15 -0
- package/dist/styles/fonts/typography/Headline.cjs +1076 -0
- package/dist/styles/fonts/typography/Headline.d.cts +18 -0
- package/dist/styles/fonts/typography/Headline.d.ts +18 -0
- package/dist/styles/fonts/typography/Headline.js +19 -0
- package/dist/styles/fonts/typography/Label.cjs +1012 -0
- package/dist/styles/fonts/typography/Label.d.cts +18 -0
- package/dist/styles/fonts/typography/Label.d.ts +18 -0
- package/dist/styles/fonts/typography/Label.js +13 -0
- package/dist/styles/fonts/typography/LabelStrong.cjs +1023 -0
- package/dist/styles/fonts/typography/LabelStrong.d.cts +18 -0
- package/dist/styles/fonts/typography/LabelStrong.d.ts +18 -0
- package/dist/styles/fonts/typography/LabelStrong.js +13 -0
- package/dist/styles/fonts/typography/Title.cjs +1011 -0
- package/dist/styles/fonts/typography/Title.d.cts +18 -0
- package/dist/styles/fonts/typography/Title.d.ts +18 -0
- package/dist/styles/fonts/typography/Title.js +13 -0
- package/dist/styles/fonts/typography/index.cjs +1513 -0
- package/dist/styles/fonts/typography/index.d.cts +13 -0
- package/dist/styles/fonts/typography/index.d.ts +13 -0
- package/dist/styles/fonts/typography/index.js +41 -0
- package/dist/styles/fonts/typographyTokens.cjs +768 -0
- package/dist/styles/fonts/typographyTokens.d.cts +723 -0
- package/dist/styles/fonts/typographyTokens.d.ts +723 -0
- package/dist/styles/fonts/typographyTokens.js +13 -0
- package/dist/styles/global.cjs +1315 -0
- package/dist/styles/global.d.cts +10 -0
- package/dist/styles/global.d.ts +10 -0
- package/dist/styles/global.js +15 -0
- package/dist/styles/type.cjs +1362 -0
- package/dist/styles/type.d.cts +28 -0
- package/dist/styles/type.d.ts +28 -0
- package/dist/styles/type.js +153 -0
- package/dist/styles/utils.cjs +1259 -0
- package/dist/styles/utils.d.cts +29 -0
- package/dist/styles/utils.d.ts +29 -0
- package/dist/styles/utils.js +38 -0
- package/dist/styles/z-index.cjs +53 -0
- package/dist/styles/z-index.d.cts +25 -0
- package/dist/styles/z-index.d.ts +25 -0
- package/dist/styles/z-index.js +7 -0
- package/dist/types/index.cjs +18 -0
- package/dist/types/index.d.cts +11 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.js +0 -0
- package/dist/types/utils.cjs +37 -0
- package/dist/types/utils.d.cts +16 -0
- package/dist/types/utils.d.ts +16 -0
- package/dist/types/utils.js +13 -0
- package/dist/utils/strings.cjs +87 -0
- package/dist/utils/strings.d.cts +12 -0
- package/dist/utils/strings.d.ts +12 -0
- package/dist/utils/strings.js +21 -0
- package/package.json +72 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import {
|
|
2
|
+
overflowAutoWithoutScrollbars
|
|
3
|
+
} from "./chunk-LZHLWOXG.js";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "./chunk-L7XFJWMY.js";
|
|
7
|
+
|
|
8
|
+
// src/components/Collapsible.tsx
|
|
9
|
+
import styled from "@emotion/styled";
|
|
10
|
+
import { useEffect, useState } from "react";
|
|
11
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
12
|
+
function Collapsible({
|
|
13
|
+
children,
|
|
14
|
+
className,
|
|
15
|
+
text,
|
|
16
|
+
open,
|
|
17
|
+
handleToggle,
|
|
18
|
+
hamburger,
|
|
19
|
+
full
|
|
20
|
+
}) {
|
|
21
|
+
const [isOpen, setIsOpen] = useState(open);
|
|
22
|
+
const handleClick = () => {
|
|
23
|
+
if (handleToggle) {
|
|
24
|
+
handleToggle(!isOpen);
|
|
25
|
+
}
|
|
26
|
+
setIsOpen(!isOpen);
|
|
27
|
+
};
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
setIsOpen(open);
|
|
30
|
+
}, [open]);
|
|
31
|
+
const iconName = hamburger ? isOpen ? "Close" : "StackedLines" : "Down";
|
|
32
|
+
const iconWidth = iconName === "Close" ? 12 : 14;
|
|
33
|
+
return /* @__PURE__ */ jsxs(StyledCollapsible, { className, children: [
|
|
34
|
+
/* @__PURE__ */ jsxs(StyledCollapsibleButton, { onClick: handleClick, children: [
|
|
35
|
+
text ? text : /* @__PURE__ */ jsx("div", {}),
|
|
36
|
+
/* @__PURE__ */ jsx(IconContainer, { isOpen, hamburger, children: /* @__PURE__ */ jsx(Icon, { width: iconWidth, name: iconName }) })
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ jsx(CollapsingContainer, { isOpen, full, children: /* @__PURE__ */ jsx(InnerPadding, { children }) })
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
var StyledCollapsible = styled.div`
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
`;
|
|
45
|
+
var StyledCollapsibleButton = styled.button`
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
background: none;
|
|
51
|
+
border: none;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
border-radius: 8px;
|
|
54
|
+
padding: 0;
|
|
55
|
+
`;
|
|
56
|
+
var IconContainer = styled.div`
|
|
57
|
+
${(props) => {
|
|
58
|
+
if (props.hamburger) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
return props.isOpen ? `transform: rotate(0deg);` : `transform: rotate(-90deg);`;
|
|
62
|
+
}}
|
|
63
|
+
transition: transform 0.25s ease-out;
|
|
64
|
+
width: 20px;
|
|
65
|
+
`;
|
|
66
|
+
var CollapsingContainer = styled.div`
|
|
67
|
+
overflow: scroll;
|
|
68
|
+
opacity: 0;
|
|
69
|
+
animation-duration: 0.4s;
|
|
70
|
+
animation-fill-mode: forwards;
|
|
71
|
+
|
|
72
|
+
${(props) => props.isOpen ? `height: 100%; animation-name: fadeIn;` : `height: 0; animation-name: fadeOut;`}
|
|
73
|
+
${(props) => props.full ? `height: ${props.isOpen ? "100vh" : 0};` : ""}
|
|
74
|
+
|
|
75
|
+
${overflowAutoWithoutScrollbars}
|
|
76
|
+
|
|
77
|
+
@keyframes fadeIn {
|
|
78
|
+
from {
|
|
79
|
+
opacity: 0;
|
|
80
|
+
transform: translateY(-10px);
|
|
81
|
+
}
|
|
82
|
+
to {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
transform: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes fadeOut {
|
|
89
|
+
from {
|
|
90
|
+
opacity: 1;
|
|
91
|
+
transform: none;
|
|
92
|
+
}
|
|
93
|
+
to {
|
|
94
|
+
opacity: 0;
|
|
95
|
+
transform: translateY(-10px);
|
|
96
|
+
visibility: hidden;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
100
|
+
var InnerPadding = styled.div`
|
|
101
|
+
padding: 4px 0 4px 16px;
|
|
102
|
+
gap: 4px;
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
`;
|
|
106
|
+
|
|
107
|
+
export {
|
|
108
|
+
Collapsible,
|
|
109
|
+
StyledCollapsible,
|
|
110
|
+
StyledCollapsibleButton,
|
|
111
|
+
CollapsingContainer
|
|
112
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colors
|
|
3
|
+
} from "./chunk-ACZDUWPH.js";
|
|
4
|
+
import {
|
|
5
|
+
getTypographyString
|
|
6
|
+
} from "./chunk-WVJNZRKF.js";
|
|
7
|
+
|
|
8
|
+
// src/styles/fonts/typography/Body.tsx
|
|
9
|
+
import styled from "@emotion/styled";
|
|
10
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
11
|
+
var Body = ({ children, color, size = "Medium" /* Medium */ }) => {
|
|
12
|
+
return /* @__PURE__ */ jsx(StyledBody, { size, color, children });
|
|
13
|
+
};
|
|
14
|
+
var StyledBody = styled.span`
|
|
15
|
+
display: block;
|
|
16
|
+
color: ${({ theme, color }) => `${color || theme.text || colors.black}`};
|
|
17
|
+
${({ theme, size }) => {
|
|
18
|
+
return size ? getTypographyString(theme.typography[theme.app].Body[size]) : "";
|
|
19
|
+
}}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
Body,
|
|
24
|
+
StyledBody
|
|
25
|
+
};
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getTypography
|
|
3
|
+
} from "./chunk-WVJNZRKF.js";
|
|
4
|
+
import {
|
|
5
|
+
useBreakpoints
|
|
6
|
+
} from "./chunk-JSGRNWSB.js";
|
|
7
|
+
import {
|
|
8
|
+
__spreadProps,
|
|
9
|
+
__spreadValues
|
|
10
|
+
} from "./chunk-CIGAQ47A.js";
|
|
11
|
+
|
|
12
|
+
// src/styles/colors.tsx
|
|
13
|
+
import { css, useTheme } from "@emotion/react";
|
|
14
|
+
var neutral = {
|
|
15
|
+
black: "#000000",
|
|
16
|
+
gray5: "#0D0D0D",
|
|
17
|
+
gray10: "#1A1A1A",
|
|
18
|
+
gray15: "#262626",
|
|
19
|
+
gray20: "#333333",
|
|
20
|
+
gray25: "#404040",
|
|
21
|
+
gray30: "#4D4D4D",
|
|
22
|
+
gray40: "#666666",
|
|
23
|
+
gray50: "#808080",
|
|
24
|
+
gray60: "#999999",
|
|
25
|
+
gray70: "#B3B3B3",
|
|
26
|
+
gray80: "#CCCCCC",
|
|
27
|
+
gray85: "#D9D9D9",
|
|
28
|
+
gray90: "#E6E6E6",
|
|
29
|
+
gray95: "#F2F2F2",
|
|
30
|
+
white: "#FFFFFF"
|
|
31
|
+
};
|
|
32
|
+
var uma = {
|
|
33
|
+
background: "#F9F9F9",
|
|
34
|
+
black: "#16171A",
|
|
35
|
+
blue: "#0068C9",
|
|
36
|
+
blue50: "#C0C9D6",
|
|
37
|
+
blue80: "#DCE2EA",
|
|
38
|
+
blue90: "#EBEEF2",
|
|
39
|
+
blue95: "#F2F5F7",
|
|
40
|
+
grey300: "#DEDFE4",
|
|
41
|
+
secondary: "#686A72",
|
|
42
|
+
stroke: "#C0C9D6",
|
|
43
|
+
strokeProminent: "#9BA7B9",
|
|
44
|
+
fill: "#EBEEF2"
|
|
45
|
+
};
|
|
46
|
+
var darkGradient = "#1d1d1d linear-gradient(180deg, #090909 63.08%, #1d1d1d 100.52%)";
|
|
47
|
+
var Themes = /* @__PURE__ */ ((Themes2) => {
|
|
48
|
+
Themes2["Light"] = "light";
|
|
49
|
+
Themes2["Dark"] = "dark";
|
|
50
|
+
return Themes2;
|
|
51
|
+
})(Themes || {});
|
|
52
|
+
var primary = "#FFF14E";
|
|
53
|
+
var colors = __spreadProps(__spreadValues({}, neutral), {
|
|
54
|
+
uma,
|
|
55
|
+
// green
|
|
56
|
+
success: "#17C27C",
|
|
57
|
+
// blue
|
|
58
|
+
blue43: "#145BC6",
|
|
59
|
+
blue22: "#0E2E60",
|
|
60
|
+
blue58: "#28BFFF",
|
|
61
|
+
blue95: "#EBEEF2",
|
|
62
|
+
// yellow
|
|
63
|
+
primary,
|
|
64
|
+
warning: primary,
|
|
65
|
+
// orange
|
|
66
|
+
danger: "#FD2C0F",
|
|
67
|
+
// neutral
|
|
68
|
+
secondary: neutral.black,
|
|
69
|
+
// billing
|
|
70
|
+
tier1: "#179257",
|
|
71
|
+
tier2: "#8B38DE",
|
|
72
|
+
tier3: "#0048F7"
|
|
73
|
+
});
|
|
74
|
+
function extend(obj, rest) {
|
|
75
|
+
return __spreadValues(__spreadValues({}, obj), rest);
|
|
76
|
+
}
|
|
77
|
+
function extendBase(obj, rest) {
|
|
78
|
+
return __spreadValues(__spreadValues({}, obj), rest);
|
|
79
|
+
}
|
|
80
|
+
function hcNeutralFromBg(bgHex, defaultHex, altHex) {
|
|
81
|
+
const bgRGB = hexToRGB(bgHex);
|
|
82
|
+
const hcRGB = hexToRGB(defaultHex);
|
|
83
|
+
if (!bgRGB || !hcRGB)
|
|
84
|
+
return defaultHex;
|
|
85
|
+
const c = contrast(bgRGB, hcRGB);
|
|
86
|
+
if (c < 4.5) {
|
|
87
|
+
return altHex;
|
|
88
|
+
}
|
|
89
|
+
return defaultHex;
|
|
90
|
+
}
|
|
91
|
+
var lightBaseTheme = {
|
|
92
|
+
type: "light" /* Light */,
|
|
93
|
+
app: "Lightspark" /* Lightspark */,
|
|
94
|
+
bg: colors.white,
|
|
95
|
+
smBg: colors.white,
|
|
96
|
+
c05Neutral: neutral.gray95,
|
|
97
|
+
c1Neutral: neutral.gray90,
|
|
98
|
+
c15Neutral: neutral.gray85,
|
|
99
|
+
c2Neutral: neutral.gray80,
|
|
100
|
+
c3Neutral: neutral.gray70,
|
|
101
|
+
c4Neutral: neutral.gray60,
|
|
102
|
+
c5Neutral: neutral.gray50,
|
|
103
|
+
c6Neutral: neutral.gray40,
|
|
104
|
+
c7Neutral: neutral.gray30,
|
|
105
|
+
c8Neutral: neutral.gray20,
|
|
106
|
+
c9Neutral: neutral.gray10,
|
|
107
|
+
danger: colors.danger,
|
|
108
|
+
hcNeutral: colors.black,
|
|
109
|
+
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
110
|
+
info: colors.blue43,
|
|
111
|
+
lcNeutral: neutral.gray80,
|
|
112
|
+
link: colors.blue43,
|
|
113
|
+
mcNeutral: neutral.gray40,
|
|
114
|
+
onInfoText: colors.white,
|
|
115
|
+
onPrimaryText: colors.black,
|
|
116
|
+
onSuccessText: colors.white,
|
|
117
|
+
primary: colors.primary,
|
|
118
|
+
secondary: colors.secondary,
|
|
119
|
+
success: colors.success,
|
|
120
|
+
text: colors.black,
|
|
121
|
+
typography: getTypography(),
|
|
122
|
+
vlcNeutral: neutral.gray95,
|
|
123
|
+
warning: colors.warning
|
|
124
|
+
};
|
|
125
|
+
var darkBaseTheme = {
|
|
126
|
+
type: "dark" /* Dark */,
|
|
127
|
+
app: "Lightspark" /* Lightspark */,
|
|
128
|
+
bg: colors.black,
|
|
129
|
+
smBg: colors.black,
|
|
130
|
+
c05Neutral: neutral.gray5,
|
|
131
|
+
c1Neutral: neutral.gray10,
|
|
132
|
+
c15Neutral: neutral.gray15,
|
|
133
|
+
c2Neutral: neutral.gray20,
|
|
134
|
+
c3Neutral: neutral.gray30,
|
|
135
|
+
c4Neutral: neutral.gray40,
|
|
136
|
+
c5Neutral: neutral.gray50,
|
|
137
|
+
c6Neutral: neutral.gray60,
|
|
138
|
+
c7Neutral: neutral.gray70,
|
|
139
|
+
c8Neutral: neutral.gray80,
|
|
140
|
+
c9Neutral: neutral.gray90,
|
|
141
|
+
danger: colors.danger,
|
|
142
|
+
hcNeutral: colors.white,
|
|
143
|
+
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.white, colors.black),
|
|
144
|
+
info: colors.white,
|
|
145
|
+
lcNeutral: neutral.gray40,
|
|
146
|
+
link: colors.blue43,
|
|
147
|
+
mcNeutral: neutral.gray60,
|
|
148
|
+
onInfoText: colors.white,
|
|
149
|
+
onPrimaryText: colors.black,
|
|
150
|
+
onSuccessText: colors.white,
|
|
151
|
+
primary: colors.primary,
|
|
152
|
+
secondary: colors.secondary,
|
|
153
|
+
success: colors.success,
|
|
154
|
+
text: colors.white,
|
|
155
|
+
typography: getTypography(),
|
|
156
|
+
vlcNeutral: neutral.gray20,
|
|
157
|
+
warning: colors.warning
|
|
158
|
+
};
|
|
159
|
+
var lightTheme = extend(lightBaseTheme, {
|
|
160
|
+
header: extendBase(lightBaseTheme, {
|
|
161
|
+
text: colors.gray60
|
|
162
|
+
}),
|
|
163
|
+
nav: extendBase(lightBaseTheme, {
|
|
164
|
+
text: colors.gray10,
|
|
165
|
+
secondary: colors.secondary
|
|
166
|
+
}),
|
|
167
|
+
content: extendBase(lightBaseTheme, {
|
|
168
|
+
bg: colors.white,
|
|
169
|
+
smBg: colors.white
|
|
170
|
+
}),
|
|
171
|
+
controls: extendBase(lightBaseTheme, {
|
|
172
|
+
bg: neutral.gray95,
|
|
173
|
+
smBg: neutral.gray95,
|
|
174
|
+
text: neutral.gray60,
|
|
175
|
+
secondary: colors.secondary
|
|
176
|
+
})
|
|
177
|
+
});
|
|
178
|
+
var darkTheme = extend(darkBaseTheme, {
|
|
179
|
+
header: extendBase(darkBaseTheme, {}),
|
|
180
|
+
nav: extendBase(darkBaseTheme, {}),
|
|
181
|
+
content: extendBase(darkBaseTheme, {}),
|
|
182
|
+
controls: extendBase(darkBaseTheme, {
|
|
183
|
+
bg: neutral.gray40,
|
|
184
|
+
smBg: neutral.gray40,
|
|
185
|
+
text: neutral.white,
|
|
186
|
+
secondary: colors.secondary
|
|
187
|
+
})
|
|
188
|
+
});
|
|
189
|
+
var umaLightTheme = extend(lightTheme, {
|
|
190
|
+
app: "UmaDocs" /* UmaDocs */,
|
|
191
|
+
bg: uma.background,
|
|
192
|
+
smBg: uma.background,
|
|
193
|
+
secondary: uma.secondary,
|
|
194
|
+
text: uma.black,
|
|
195
|
+
link: uma.blue,
|
|
196
|
+
content: extendBase(lightBaseTheme, {
|
|
197
|
+
bg: uma.background,
|
|
198
|
+
smBg: uma.background,
|
|
199
|
+
text: uma.black,
|
|
200
|
+
secondary: uma.secondary
|
|
201
|
+
}),
|
|
202
|
+
controls: extendBase(lightBaseTheme, {
|
|
203
|
+
text: uma.black,
|
|
204
|
+
secondary: uma.secondary,
|
|
205
|
+
bg: uma.blue90
|
|
206
|
+
})
|
|
207
|
+
});
|
|
208
|
+
var themeWithTypography = (theme, typography) => {
|
|
209
|
+
return extendBase(theme, { typography });
|
|
210
|
+
};
|
|
211
|
+
var themes = {
|
|
212
|
+
light: lightTheme,
|
|
213
|
+
dark: darkTheme,
|
|
214
|
+
uma: {
|
|
215
|
+
light: umaLightTheme
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
var isDark = (theme) => theme.type === "dark" /* Dark */;
|
|
219
|
+
var isLight = (theme) => theme.type === "light" /* Light */;
|
|
220
|
+
var themeOr = (lightValue, darkValue) => ({ theme }) => {
|
|
221
|
+
return isLight(theme) ? lightValue : darkValue;
|
|
222
|
+
};
|
|
223
|
+
function ifLight(style) {
|
|
224
|
+
return function({ theme }) {
|
|
225
|
+
if (theme.type === "light" /* Light */) {
|
|
226
|
+
return css`
|
|
227
|
+
${style}
|
|
228
|
+
`;
|
|
229
|
+
}
|
|
230
|
+
return "";
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
function ifDark(style) {
|
|
234
|
+
return function({ theme }) {
|
|
235
|
+
if (theme.type === "dark" /* Dark */) {
|
|
236
|
+
return css`
|
|
237
|
+
${style}
|
|
238
|
+
`;
|
|
239
|
+
}
|
|
240
|
+
return "";
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function luminance(r, g, b) {
|
|
244
|
+
const a = [r, g, b].map(function(v) {
|
|
245
|
+
v /= 255;
|
|
246
|
+
return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
|
|
247
|
+
});
|
|
248
|
+
return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
|
|
249
|
+
}
|
|
250
|
+
function contrast(rgb1, rgb2) {
|
|
251
|
+
const lum1 = luminance(rgb1[0], rgb1[1], rgb1[2]);
|
|
252
|
+
const lum2 = luminance(rgb2[0], rgb2[1], rgb2[2]);
|
|
253
|
+
const brightest = Math.max(lum1, lum2);
|
|
254
|
+
const darkest = Math.min(lum1, lum2);
|
|
255
|
+
return (brightest + 0.05) / (darkest + 0.05);
|
|
256
|
+
}
|
|
257
|
+
function componentToHex(c) {
|
|
258
|
+
const hex = c.toString(16);
|
|
259
|
+
return hex.length === 1 ? "0" + hex : hex;
|
|
260
|
+
}
|
|
261
|
+
function rgbToHex(r, g, b) {
|
|
262
|
+
return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
|
263
|
+
}
|
|
264
|
+
function hexToRGB(hex) {
|
|
265
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
266
|
+
return result ? [
|
|
267
|
+
parseInt(result[1], 16),
|
|
268
|
+
parseInt(result[2], 16),
|
|
269
|
+
parseInt(result[3], 16)
|
|
270
|
+
] : [0, 0, 0];
|
|
271
|
+
}
|
|
272
|
+
function hexToRGBAStr(hex, alpha) {
|
|
273
|
+
const rgb = hexToRGB(hex);
|
|
274
|
+
return `rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, ${alpha})`;
|
|
275
|
+
}
|
|
276
|
+
function useThemeBg() {
|
|
277
|
+
const theme = useTheme();
|
|
278
|
+
const bp = useBreakpoints();
|
|
279
|
+
const isSm = bp.current("sm" /* sm */);
|
|
280
|
+
if (isDark(theme)) {
|
|
281
|
+
return darkGradient;
|
|
282
|
+
}
|
|
283
|
+
return isSm ? theme.smBg : theme.bg;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export {
|
|
287
|
+
darkGradient,
|
|
288
|
+
Themes,
|
|
289
|
+
colors,
|
|
290
|
+
themeWithTypography,
|
|
291
|
+
themes,
|
|
292
|
+
isDark,
|
|
293
|
+
isLight,
|
|
294
|
+
themeOr,
|
|
295
|
+
ifLight,
|
|
296
|
+
ifDark,
|
|
297
|
+
luminance,
|
|
298
|
+
contrast,
|
|
299
|
+
componentToHex,
|
|
300
|
+
rgbToHex,
|
|
301
|
+
hexToRGB,
|
|
302
|
+
hexToRGBAStr,
|
|
303
|
+
useThemeBg
|
|
304
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Icon
|
|
3
|
+
} from "./chunk-L7XFJWMY.js";
|
|
4
|
+
|
|
5
|
+
// src/components/TextIconAligner.tsx
|
|
6
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
7
|
+
function TextIconAligner({
|
|
8
|
+
text,
|
|
9
|
+
rightIcon,
|
|
10
|
+
leftIcon,
|
|
11
|
+
onClick
|
|
12
|
+
}) {
|
|
13
|
+
const leftIconNode = leftIcon ? /* @__PURE__ */ jsx(
|
|
14
|
+
Icon,
|
|
15
|
+
{
|
|
16
|
+
name: leftIcon.name,
|
|
17
|
+
width: leftIcon.lg ? 16 : 12,
|
|
18
|
+
mr: leftIcon.mr || 6,
|
|
19
|
+
color: leftIcon.color
|
|
20
|
+
}
|
|
21
|
+
) : null;
|
|
22
|
+
const rightIconNode = rightIcon ? /* @__PURE__ */ jsx(
|
|
23
|
+
Icon,
|
|
24
|
+
{
|
|
25
|
+
name: rightIcon.name,
|
|
26
|
+
width: rightIcon.lg ? 16 : 12,
|
|
27
|
+
ml: rightIcon.ml || 6,
|
|
28
|
+
color: rightIcon.color
|
|
29
|
+
}
|
|
30
|
+
) : null;
|
|
31
|
+
return /* @__PURE__ */ jsxs(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
css: {
|
|
35
|
+
cursor: onClick ? "pointer" : "inherit",
|
|
36
|
+
display: "inline-flex",
|
|
37
|
+
alignItems: "center"
|
|
38
|
+
},
|
|
39
|
+
onClick,
|
|
40
|
+
children: [
|
|
41
|
+
leftIconNode,
|
|
42
|
+
text,
|
|
43
|
+
rightIconNode
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
TextIconAligner
|
|
51
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Icon
|
|
3
|
+
} from "./chunk-L7XFJWMY.js";
|
|
4
|
+
|
|
5
|
+
// src/components/Loading.tsx
|
|
6
|
+
import styled from "@emotion/styled";
|
|
7
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
8
|
+
var defaultProps = {
|
|
9
|
+
size: 60,
|
|
10
|
+
center: true,
|
|
11
|
+
ml: 0
|
|
12
|
+
};
|
|
13
|
+
function Loading({
|
|
14
|
+
center = defaultProps.center,
|
|
15
|
+
size = defaultProps.size,
|
|
16
|
+
ml = defaultProps.ml
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ jsx(LoadingWrapper, { center, ml, children: /* @__PURE__ */ jsx(Rotate, { children: /* @__PURE__ */ jsx(Icon, { name: "LoadingSpinner", width: size }) }) });
|
|
19
|
+
}
|
|
20
|
+
Loading.defaultProps = defaultProps;
|
|
21
|
+
var LoadingWrapper = styled.div`
|
|
22
|
+
flex-grow: 1;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
text-align: center;
|
|
27
|
+
width: 100%;
|
|
28
|
+
margin-left: ${({ ml }) => ml}px;
|
|
29
|
+
|
|
30
|
+
${({ center }) => center && `
|
|
31
|
+
position: absolute;
|
|
32
|
+
height: 100%;
|
|
33
|
+
width: 100%;
|
|
34
|
+
top: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
right: 0;
|
|
38
|
+
margin: 0 !important;
|
|
39
|
+
`}
|
|
40
|
+
`;
|
|
41
|
+
var Rotate = styled.div`
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
animation: rotate 0.5s linear infinite;
|
|
44
|
+
|
|
45
|
+
@keyframes rotate {
|
|
46
|
+
0% {
|
|
47
|
+
transform: rotate(0deg);
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
transform: rotate(360deg);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
Loading,
|
|
57
|
+
LoadingWrapper
|
|
58
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __async = (__this, __arguments, generator) => {
|
|
21
|
+
return new Promise((resolve, reject) => {
|
|
22
|
+
var fulfilled = (value) => {
|
|
23
|
+
try {
|
|
24
|
+
step(generator.next(value));
|
|
25
|
+
} catch (e) {
|
|
26
|
+
reject(e);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var rejected = (value) => {
|
|
30
|
+
try {
|
|
31
|
+
step(generator.throw(value));
|
|
32
|
+
} catch (e) {
|
|
33
|
+
reject(e);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
__spreadValues,
|
|
43
|
+
__spreadProps,
|
|
44
|
+
__async
|
|
45
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// src/styles/z-index.tsx
|
|
2
|
+
var z = {
|
|
3
|
+
card: 1,
|
|
4
|
+
fieldError: 1,
|
|
5
|
+
textInput: 2,
|
|
6
|
+
select: 3,
|
|
7
|
+
selectFocused: 4,
|
|
8
|
+
walletActionPreviewTopGradient: 1,
|
|
9
|
+
headerContainer: 99,
|
|
10
|
+
smBanner: 99,
|
|
11
|
+
headerTop: 100,
|
|
12
|
+
navMenu: 100,
|
|
13
|
+
smNavMenu: 100,
|
|
14
|
+
navAction: 101,
|
|
15
|
+
smNavAction: 100,
|
|
16
|
+
// keep under navDropdown
|
|
17
|
+
tooltip: 160,
|
|
18
|
+
notificationBanner: 170,
|
|
19
|
+
qrReaderVideo: 180,
|
|
20
|
+
qrReaderOverlay: 181,
|
|
21
|
+
modalOverlay: 190,
|
|
22
|
+
modalContainer: 191,
|
|
23
|
+
dropdown: 192,
|
|
24
|
+
toast: 200
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
z
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colors
|
|
3
|
+
} from "./chunk-ACZDUWPH.js";
|
|
4
|
+
import {
|
|
5
|
+
getTypographyString
|
|
6
|
+
} from "./chunk-WVJNZRKF.js";
|
|
7
|
+
|
|
8
|
+
// src/styles/fonts/typography/Title.tsx
|
|
9
|
+
import styled from "@emotion/styled";
|
|
10
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
11
|
+
var Title = ({ children, color, size = "Medium" /* Medium */ }) => {
|
|
12
|
+
return /* @__PURE__ */ jsx(StyledTitle, { size, color, children });
|
|
13
|
+
};
|
|
14
|
+
var StyledTitle = styled.span`
|
|
15
|
+
color: ${({ theme, color }) => `${color || theme.text || colors.black}`};
|
|
16
|
+
${({ theme, size }) => {
|
|
17
|
+
return size ? getTypographyString(theme.typography[theme.app].Title[size]) : "";
|
|
18
|
+
}}
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
Title,
|
|
23
|
+
StyledTitle
|
|
24
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Headline
|
|
3
|
+
} from "./chunk-W4GDCWKZ.js";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "./chunk-L7XFJWMY.js";
|
|
7
|
+
import {
|
|
8
|
+
__spreadProps,
|
|
9
|
+
__spreadValues
|
|
10
|
+
} from "./chunk-CIGAQ47A.js";
|
|
11
|
+
|
|
12
|
+
// src/components/documentation/AnchorLinkHeader.tsx
|
|
13
|
+
import { useTheme } from "@emotion/react";
|
|
14
|
+
import styled from "@emotion/styled";
|
|
15
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
16
|
+
var AnchorLinkHeader = (props) => {
|
|
17
|
+
const theme = useTheme();
|
|
18
|
+
return /* @__PURE__ */ jsx(StyledAnchorLinkHeader, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs(Headline, __spreadProps(__spreadValues({}, props), { children: [
|
|
19
|
+
props.children,
|
|
20
|
+
/* @__PURE__ */ jsx(
|
|
21
|
+
IconWrapper,
|
|
22
|
+
{
|
|
23
|
+
name: "AnchorLink",
|
|
24
|
+
color: props.color || theme.text,
|
|
25
|
+
width: 0
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
] })) }));
|
|
29
|
+
};
|
|
30
|
+
var IconWrapper = styled(Icon)`
|
|
31
|
+
width: 20px;
|
|
32
|
+
opacity: 0;
|
|
33
|
+
margin: 0 0 4px -20px;
|
|
34
|
+
transform: translateX(-8px);
|
|
35
|
+
transition:
|
|
36
|
+
opacity 0.1s ease-out,
|
|
37
|
+
transform 0.1s ease-out;
|
|
38
|
+
|
|
39
|
+
svg {
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
var StyledAnchorLinkHeader = styled.div`
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
align-items: center;
|
|
47
|
+
width: fit-content;
|
|
48
|
+
|
|
49
|
+
a {
|
|
50
|
+
padding-right: 24px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:hover ${IconWrapper} {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
transform: translateX(0px);
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
AnchorLinkHeader
|
|
61
|
+
};
|