@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,101 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Icon
|
|
3
|
+
} from "./chunk-L7XFJWMY.js";
|
|
4
|
+
|
|
5
|
+
// src/components/CurrencyAmount.tsx
|
|
6
|
+
import { gql } from "@apollo/client";
|
|
7
|
+
import styled from "@emotion/styled";
|
|
8
|
+
import {
|
|
9
|
+
CurrencyUnit,
|
|
10
|
+
formatCurrencyStr,
|
|
11
|
+
isCurrencyMap,
|
|
12
|
+
mapCurrencyAmount
|
|
13
|
+
} from "@lightsparkdev/core";
|
|
14
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
15
|
+
function CurrencyAmount({
|
|
16
|
+
amount,
|
|
17
|
+
displayUnit = CurrencyUnit.SATOSHI,
|
|
18
|
+
shortNumber = false,
|
|
19
|
+
showUnits = false,
|
|
20
|
+
includeEstimatedIndicator = false,
|
|
21
|
+
/* Product has voted to hide msats from end users.
|
|
22
|
+
showSubSatDigits should only be used in ops tools: */
|
|
23
|
+
showSubSatDigits = false,
|
|
24
|
+
ml = 0
|
|
25
|
+
}) {
|
|
26
|
+
const unit = displayUnit;
|
|
27
|
+
const amountMap = isCurrencyMap(amount) ? amount : mapCurrencyAmount(amount);
|
|
28
|
+
const value = amountMap[unit];
|
|
29
|
+
const defaultFormattedNumber = amountMap.formatted[unit];
|
|
30
|
+
let formattedNumber = defaultFormattedNumber;
|
|
31
|
+
if (shortNumber) {
|
|
32
|
+
formattedNumber = formatCurrencyStr(
|
|
33
|
+
{ value: Number(value), unit },
|
|
34
|
+
1,
|
|
35
|
+
true
|
|
36
|
+
);
|
|
37
|
+
} else if (showSubSatDigits) {
|
|
38
|
+
formattedNumber = formatCurrencyStr(
|
|
39
|
+
{ value: Number(value), unit: CurrencyUnit.SATOSHI },
|
|
40
|
+
3
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
if (showUnits) {
|
|
44
|
+
formattedNumber += ` ${shorttext(unit, value)}`;
|
|
45
|
+
}
|
|
46
|
+
return /* @__PURE__ */ jsxs(StyledCurrencyAmount, { ml, children: [
|
|
47
|
+
includeEstimatedIndicator && "Est. ",
|
|
48
|
+
/* @__PURE__ */ jsx(CurrencyIcon, { unit }),
|
|
49
|
+
formattedNumber
|
|
50
|
+
] });
|
|
51
|
+
}
|
|
52
|
+
var CurrencyIcon = ({ unit }) => {
|
|
53
|
+
switch (unit) {
|
|
54
|
+
case CurrencyUnit.BITCOIN:
|
|
55
|
+
return /* @__PURE__ */ jsx(Icon, { name: "BitcoinB", width: 8, verticalAlign: -2, mr: 2 });
|
|
56
|
+
case CurrencyUnit.SATOSHI:
|
|
57
|
+
return /* @__PURE__ */ jsx(Icon, { name: "Satoshi", width: 8, verticalAlign: -2, mr: 2 });
|
|
58
|
+
default:
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
var shorttext = (unit, value) => {
|
|
63
|
+
const pl = value !== 1;
|
|
64
|
+
switch (unit) {
|
|
65
|
+
case CurrencyUnit.BITCOIN:
|
|
66
|
+
return "BTC";
|
|
67
|
+
case CurrencyUnit.MILLIBITCOIN:
|
|
68
|
+
return "mBTC";
|
|
69
|
+
case CurrencyUnit.MICROBITCOIN:
|
|
70
|
+
return "\u03BCBTC";
|
|
71
|
+
case CurrencyUnit.SATOSHI:
|
|
72
|
+
return `sat${pl ? "s" : ""}`;
|
|
73
|
+
case CurrencyUnit.MILLISATOSHI:
|
|
74
|
+
return `msat${pl ? "s" : ""}`;
|
|
75
|
+
}
|
|
76
|
+
return unit;
|
|
77
|
+
};
|
|
78
|
+
var StyledCurrencyAmount = styled.span`
|
|
79
|
+
color: inherit !important;
|
|
80
|
+
white-space: nowrap;
|
|
81
|
+
font-feature-settings:
|
|
82
|
+
"tnum" on,
|
|
83
|
+
"lnum" on;
|
|
84
|
+
margin-left: ${({ ml }) => ml}px;
|
|
85
|
+
`;
|
|
86
|
+
CurrencyAmount.fragments = {
|
|
87
|
+
amount: gql`
|
|
88
|
+
fragment CurrencyAmount_amount on CurrencyAmount {
|
|
89
|
+
original_value
|
|
90
|
+
original_unit
|
|
91
|
+
preferred_currency_unit
|
|
92
|
+
preferred_currency_value_rounded
|
|
93
|
+
preferred_currency_value_approx
|
|
94
|
+
}
|
|
95
|
+
`
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
CurrencyAmount,
|
|
100
|
+
CurrencyIcon
|
|
101
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colors
|
|
3
|
+
} from "./chunk-ACZDUWPH.js";
|
|
4
|
+
import {
|
|
5
|
+
getTypographyString
|
|
6
|
+
} from "./chunk-WVJNZRKF.js";
|
|
7
|
+
|
|
8
|
+
// src/styles/fonts/typography/LabelStrong.tsx
|
|
9
|
+
import styled from "@emotion/styled";
|
|
10
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
11
|
+
var LabelStrong = ({
|
|
12
|
+
children,
|
|
13
|
+
color,
|
|
14
|
+
size = "Medium" /* Medium */
|
|
15
|
+
}) => {
|
|
16
|
+
return /* @__PURE__ */ jsx(StyledLabelStrong, { size, color, children });
|
|
17
|
+
};
|
|
18
|
+
var StyledLabelStrong = styled.label`
|
|
19
|
+
color: ${({ theme, color }) => `${color || theme.text || colors.black}`};
|
|
20
|
+
${({ theme, size }) => {
|
|
21
|
+
return size ? getTypographyString(theme.typography[theme.app]["Label Strong"][size]) : "";
|
|
22
|
+
}}
|
|
23
|
+
cursor: inherit;
|
|
24
|
+
|
|
25
|
+
* {
|
|
26
|
+
color: ${({ theme, color }) => `${color || theme.text || colors.black}`};
|
|
27
|
+
${({ theme, size }) => {
|
|
28
|
+
return size ? getTypographyString(theme.typography[theme.app]["Label Strong"][size]) : "";
|
|
29
|
+
}}
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
LabelStrong,
|
|
35
|
+
StyledLabelStrong
|
|
36
|
+
};
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
// src/styles/breakpoints.tsx
|
|
2
|
+
import { css } from "@emotion/react";
|
|
3
|
+
import { debounce } from "lodash-es";
|
|
4
|
+
import { Fragment, useLayoutEffect, useState } from "react";
|
|
5
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
6
|
+
var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
|
|
7
|
+
Breakpoints2["sm"] = "sm";
|
|
8
|
+
Breakpoints2["md"] = "md";
|
|
9
|
+
Breakpoints2["lg"] = "lg";
|
|
10
|
+
return Breakpoints2;
|
|
11
|
+
})(Breakpoints || {});
|
|
12
|
+
var breakpoints = {
|
|
13
|
+
["sm" /* sm */]: 640,
|
|
14
|
+
["md" /* md */]: 834,
|
|
15
|
+
["lg" /* lg */]: 1200
|
|
16
|
+
};
|
|
17
|
+
var BreakpointRanges = /* @__PURE__ */ ((BreakpointRanges2) => {
|
|
18
|
+
BreakpointRanges2["sm"] = "sm";
|
|
19
|
+
BreakpointRanges2["lg"] = "lg";
|
|
20
|
+
BreakpointRanges2["minSmMaxMd"] = "minSmMaxMd";
|
|
21
|
+
BreakpointRanges2["minMdMaxLg"] = "minMdMaxLg";
|
|
22
|
+
BreakpointRanges2["minSmMaxLg"] = "minSmMaxLg";
|
|
23
|
+
BreakpointRanges2["maxLg"] = "maxLg";
|
|
24
|
+
BreakpointRanges2["maxMd"] = "maxMd";
|
|
25
|
+
BreakpointRanges2["minSm"] = "minSm";
|
|
26
|
+
BreakpointRanges2["minMd"] = "minMd";
|
|
27
|
+
return BreakpointRanges2;
|
|
28
|
+
})(BreakpointRanges || {});
|
|
29
|
+
var breakpointFn = (mq) => (style) => `@media ${mq} { ${style} }`;
|
|
30
|
+
var bp = {
|
|
31
|
+
key: Breakpoints,
|
|
32
|
+
["sm" /* sm */]: breakpointFn(`(max-width:${breakpoints.sm}px)`),
|
|
33
|
+
["lg" /* lg */]: breakpointFn(`(min-width:${breakpoints.lg}px)`),
|
|
34
|
+
["minSmMaxLg" /* minSmMaxLg */]: breakpointFn(
|
|
35
|
+
`(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.lg - 1}px)`
|
|
36
|
+
),
|
|
37
|
+
["minSmMaxMd" /* minSmMaxMd */]: breakpointFn(
|
|
38
|
+
`(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.md - 1}px)`
|
|
39
|
+
),
|
|
40
|
+
["minMdMaxLg" /* minMdMaxLg */]: breakpointFn(
|
|
41
|
+
`(min-width:${breakpoints.md}px) and (max-width:${breakpoints.lg - 1}px)`
|
|
42
|
+
),
|
|
43
|
+
["maxLg" /* maxLg */]: breakpointFn(`(max-width:${breakpoints.lg - 1}px)`),
|
|
44
|
+
["maxMd" /* maxMd */]: breakpointFn(`(max-width:${breakpoints.md - 1}px)`),
|
|
45
|
+
["minSm" /* minSm */]: breakpointFn(`(min-width:${breakpoints.sm + 1}px)`),
|
|
46
|
+
["minMd" /* minMd */]: breakpointFn(`(min-width:${breakpoints.md + 1}px)`),
|
|
47
|
+
current: function(assertBp) {
|
|
48
|
+
const currentBp = (
|
|
49
|
+
/* window is undefined in first server side render for Next apps: */
|
|
50
|
+
typeof window === "undefined" ? "sm" /* sm */ : window.getComputedStyle(document.body, ":before").content.replace(/"/g, "")
|
|
51
|
+
);
|
|
52
|
+
if (assertBp) {
|
|
53
|
+
return inRange(
|
|
54
|
+
currentBp,
|
|
55
|
+
assertBp
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
return currentBp;
|
|
59
|
+
},
|
|
60
|
+
switch: (smVal, minSmMaxMdVal, minMdMaxLgVal, lgVal) => {
|
|
61
|
+
const currentBp = bp.current();
|
|
62
|
+
if (currentBp === "sm" /* sm */) {
|
|
63
|
+
return smVal;
|
|
64
|
+
} else if (currentBp === "minSmMaxMd" /* minSmMaxMd */) {
|
|
65
|
+
return minSmMaxMdVal;
|
|
66
|
+
} else if (currentBp === "minMdMaxLg" /* minMdMaxLg */) {
|
|
67
|
+
return minMdMaxLgVal;
|
|
68
|
+
}
|
|
69
|
+
return lgVal;
|
|
70
|
+
},
|
|
71
|
+
isSm: () => bp.current("sm" /* sm */),
|
|
72
|
+
isMinSm: () => bp.current("minSm" /* minSm */),
|
|
73
|
+
isMinSmMaxMd: () => bp.current("minSmMaxMd" /* minSmMaxMd */),
|
|
74
|
+
isMinMdMaxLg: () => bp.current("minMdMaxLg" /* minMdMaxLg */),
|
|
75
|
+
isLg: () => bp.current("lg" /* lg */)
|
|
76
|
+
};
|
|
77
|
+
function inRange(currentBp, assertBp) {
|
|
78
|
+
const isSm = currentBp === "sm" /* sm */;
|
|
79
|
+
const isMinSmMaxMd = currentBp === "minSmMaxMd" /* minSmMaxMd */;
|
|
80
|
+
const isMinMdMaxLg = currentBp === "minMdMaxLg" /* minMdMaxLg */;
|
|
81
|
+
const isLg = currentBp === "lg" /* lg */;
|
|
82
|
+
if (assertBp) {
|
|
83
|
+
switch (assertBp) {
|
|
84
|
+
case "sm" /* sm */:
|
|
85
|
+
return isSm;
|
|
86
|
+
case "minSmMaxMd" /* minSmMaxMd */:
|
|
87
|
+
return isMinSmMaxMd;
|
|
88
|
+
case "minMdMaxLg" /* minMdMaxLg */:
|
|
89
|
+
return isMinMdMaxLg;
|
|
90
|
+
case "lg" /* lg */:
|
|
91
|
+
return isLg;
|
|
92
|
+
case "minSmMaxLg" /* minSmMaxLg */:
|
|
93
|
+
return isMinSmMaxMd || isMinMdMaxLg;
|
|
94
|
+
case "maxLg" /* maxLg */:
|
|
95
|
+
return isSm || isMinSmMaxMd || isMinMdMaxLg;
|
|
96
|
+
case "maxMd" /* maxMd */:
|
|
97
|
+
return isSm || isMinSmMaxMd;
|
|
98
|
+
case "minSm" /* minSm */:
|
|
99
|
+
return isMinSmMaxMd || isMinMdMaxLg || isLg;
|
|
100
|
+
case "minMd" /* minMd */:
|
|
101
|
+
return isMinMdMaxLg || isLg;
|
|
102
|
+
default:
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
function useBreakpoints() {
|
|
109
|
+
const [currentBp, setCurrentBp] = useState(bp.current());
|
|
110
|
+
useLayoutEffect(() => {
|
|
111
|
+
const handleResize = () => {
|
|
112
|
+
const newBp = bp.current();
|
|
113
|
+
if (newBp !== currentBp) {
|
|
114
|
+
setCurrentBp(newBp);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
handleResize();
|
|
118
|
+
window.addEventListener("resize", handleResize);
|
|
119
|
+
window.addEventListener("deviceorientation", handleResize);
|
|
120
|
+
return () => {
|
|
121
|
+
window.removeEventListener("resize", handleResize);
|
|
122
|
+
window.removeEventListener("deviceorientation", handleResize);
|
|
123
|
+
};
|
|
124
|
+
});
|
|
125
|
+
return bp;
|
|
126
|
+
}
|
|
127
|
+
function useScreenWidth() {
|
|
128
|
+
const [screenWidth, setScreenWidth] = useState(window.innerWidth);
|
|
129
|
+
useLayoutEffect(() => {
|
|
130
|
+
const handleResize = debounce(() => {
|
|
131
|
+
setScreenWidth(window.innerWidth);
|
|
132
|
+
}, 200);
|
|
133
|
+
handleResize();
|
|
134
|
+
window.addEventListener("resize", handleResize);
|
|
135
|
+
window.addEventListener("deviceorientation", handleResize);
|
|
136
|
+
return () => {
|
|
137
|
+
window.removeEventListener("resize", handleResize);
|
|
138
|
+
window.removeEventListener("deviceorientation", handleResize);
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
return screenWidth;
|
|
142
|
+
}
|
|
143
|
+
var DisplayBreakpoint = ({
|
|
144
|
+
sm,
|
|
145
|
+
minSmMaxMd,
|
|
146
|
+
minMdMaxLg,
|
|
147
|
+
lg,
|
|
148
|
+
maxLg,
|
|
149
|
+
maxMd,
|
|
150
|
+
minSm,
|
|
151
|
+
minMd,
|
|
152
|
+
cssStr,
|
|
153
|
+
children
|
|
154
|
+
}) => {
|
|
155
|
+
const breakpoint = (() => {
|
|
156
|
+
switch (true) {
|
|
157
|
+
case sm:
|
|
158
|
+
return bp.sm;
|
|
159
|
+
case minSmMaxMd:
|
|
160
|
+
return bp.minSmMaxMd;
|
|
161
|
+
case minMdMaxLg:
|
|
162
|
+
return bp.minMdMaxLg;
|
|
163
|
+
case lg:
|
|
164
|
+
return bp.lg;
|
|
165
|
+
case maxLg:
|
|
166
|
+
return bp.maxLg;
|
|
167
|
+
case maxMd:
|
|
168
|
+
return bp.maxMd;
|
|
169
|
+
case minSm:
|
|
170
|
+
return bp.minSm;
|
|
171
|
+
case minMd:
|
|
172
|
+
return bp.minMd;
|
|
173
|
+
default:
|
|
174
|
+
return bp.sm;
|
|
175
|
+
}
|
|
176
|
+
})();
|
|
177
|
+
return /* @__PURE__ */ jsx(
|
|
178
|
+
"div",
|
|
179
|
+
{
|
|
180
|
+
css: css`
|
|
181
|
+
display: none;
|
|
182
|
+
${breakpoint(`display: block; ${cssStr}`)}
|
|
183
|
+
`,
|
|
184
|
+
children
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
};
|
|
188
|
+
function Breakpoint({
|
|
189
|
+
sm,
|
|
190
|
+
minSmMaxMd,
|
|
191
|
+
minMdMaxLg,
|
|
192
|
+
lg,
|
|
193
|
+
maxLg,
|
|
194
|
+
maxMd,
|
|
195
|
+
minSm,
|
|
196
|
+
minMd,
|
|
197
|
+
children
|
|
198
|
+
}) {
|
|
199
|
+
const bp2 = useBreakpoints();
|
|
200
|
+
const shouldRender = (() => {
|
|
201
|
+
switch (true) {
|
|
202
|
+
case sm:
|
|
203
|
+
return bp2.current("sm" /* sm */);
|
|
204
|
+
case minSmMaxMd:
|
|
205
|
+
return bp2.current("minSmMaxMd" /* minSmMaxMd */);
|
|
206
|
+
case minMdMaxLg:
|
|
207
|
+
return bp2.current("minMdMaxLg" /* minMdMaxLg */);
|
|
208
|
+
case lg:
|
|
209
|
+
return bp2.current("lg" /* lg */);
|
|
210
|
+
case maxLg:
|
|
211
|
+
return bp2.current("maxLg" /* maxLg */);
|
|
212
|
+
case maxMd:
|
|
213
|
+
return bp2.current("maxMd" /* maxMd */);
|
|
214
|
+
case minSm:
|
|
215
|
+
return bp2.current("minSm" /* minSm */);
|
|
216
|
+
case minMd:
|
|
217
|
+
return bp2.current("minMd" /* minMd */);
|
|
218
|
+
default:
|
|
219
|
+
return bp2.current("sm" /* sm */);
|
|
220
|
+
}
|
|
221
|
+
})();
|
|
222
|
+
return shouldRender ? /* @__PURE__ */ jsx(Fragment, { children }) : null;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export {
|
|
226
|
+
Breakpoints,
|
|
227
|
+
BreakpointRanges,
|
|
228
|
+
bp,
|
|
229
|
+
useBreakpoints,
|
|
230
|
+
useScreenWidth,
|
|
231
|
+
DisplayBreakpoint,
|
|
232
|
+
Breakpoint
|
|
233
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UnstyledButton
|
|
3
|
+
} from "./chunk-X6BI4STY.js";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "./chunk-L7XFJWMY.js";
|
|
7
|
+
import {
|
|
8
|
+
StyledTooltip
|
|
9
|
+
} from "./chunk-QR7BKTM6.js";
|
|
10
|
+
import {
|
|
11
|
+
__async
|
|
12
|
+
} from "./chunk-CIGAQ47A.js";
|
|
13
|
+
|
|
14
|
+
// src/components/CopyToClipboardButton.tsx
|
|
15
|
+
import styled from "@emotion/styled";
|
|
16
|
+
import { nanoid } from "nanoid";
|
|
17
|
+
import { useState } from "react";
|
|
18
|
+
import { Fragment, jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
19
|
+
var CopyToClipboardButton = (props) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const originalTooltipContent = props.tooltipContent || "Click to copy";
|
|
22
|
+
const icon = props.icon || "Copy";
|
|
23
|
+
const id = `copy-node-name-${(_a = props.id) != null ? _a : nanoid()}`;
|
|
24
|
+
const [tooltipContent, setTooltipContent] = useState(originalTooltipContent);
|
|
25
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
26
|
+
/* @__PURE__ */ jsxs(
|
|
27
|
+
Button,
|
|
28
|
+
{
|
|
29
|
+
type: "button",
|
|
30
|
+
onClick: () => {
|
|
31
|
+
void (() => __async(void 0, null, function* () {
|
|
32
|
+
try {
|
|
33
|
+
yield navigator.clipboard.writeText(props.value);
|
|
34
|
+
setTooltipContent("Copied!");
|
|
35
|
+
} catch (err) {
|
|
36
|
+
setTooltipContent("Unable to copy");
|
|
37
|
+
}
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
setTooltipContent(originalTooltipContent);
|
|
40
|
+
}, 2e3);
|
|
41
|
+
}))();
|
|
42
|
+
},
|
|
43
|
+
css: props.buttonCSS,
|
|
44
|
+
ml: props.ml,
|
|
45
|
+
"data-tooltip-id": id,
|
|
46
|
+
children: [
|
|
47
|
+
props.children ? /* @__PURE__ */ jsx(Children, { children: props.children }) : null,
|
|
48
|
+
/* @__PURE__ */ jsx(Icon, { name: icon, width: props.isSm ? 12 : 16 })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsx(StyledTooltip, { id, place: props.place || "right", variant: "dark", children: tooltipContent })
|
|
53
|
+
] });
|
|
54
|
+
};
|
|
55
|
+
var Children = styled.span`
|
|
56
|
+
margin-right: 4px;
|
|
57
|
+
`;
|
|
58
|
+
var Button = styled(UnstyledButton)`
|
|
59
|
+
background: rgba(0, 0, 0, 0);
|
|
60
|
+
vertical-align: middle;
|
|
61
|
+
${({ ml }) => ml ? `margin-left: ${ml}px` : ""};
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
CopyToClipboardButton
|
|
66
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isString
|
|
3
|
+
} from "./chunk-LAMQKQU3.js";
|
|
4
|
+
import {
|
|
5
|
+
rootFontSizePx
|
|
6
|
+
} from "./chunk-QR7BKTM6.js";
|
|
7
|
+
import {
|
|
8
|
+
__async
|
|
9
|
+
} from "./chunk-CIGAQ47A.js";
|
|
10
|
+
|
|
11
|
+
// src/components/Icon.tsx
|
|
12
|
+
import styled from "@emotion/styled";
|
|
13
|
+
import { useLayoutEffect, useState } from "react";
|
|
14
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
15
|
+
var iconMap = {};
|
|
16
|
+
function loadIcon(iconName) {
|
|
17
|
+
return __async(this, null, function* () {
|
|
18
|
+
let IconComp;
|
|
19
|
+
try {
|
|
20
|
+
({ default: IconComp } = yield import(
|
|
21
|
+
/* webpackMode: "eager" */
|
|
22
|
+
// this can't be a variable only, needs to have some string constraints:
|
|
23
|
+
`./icons/${iconName}.js`
|
|
24
|
+
));
|
|
25
|
+
} catch (e) {
|
|
26
|
+
throw new Error(`Icon ${iconName} not found`);
|
|
27
|
+
}
|
|
28
|
+
iconMap[iconName] = IconComp;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function Icon({
|
|
32
|
+
className,
|
|
33
|
+
name,
|
|
34
|
+
width,
|
|
35
|
+
tutorialStep,
|
|
36
|
+
mr = 0,
|
|
37
|
+
ml = 0,
|
|
38
|
+
verticalAlign = "middle",
|
|
39
|
+
color = void 0
|
|
40
|
+
}) {
|
|
41
|
+
const [, setLoading] = useState(false);
|
|
42
|
+
const IconComponent = iconMap[name] || null;
|
|
43
|
+
useLayoutEffect(() => {
|
|
44
|
+
void (() => __async(this, null, function* () {
|
|
45
|
+
if (!iconMap[name]) {
|
|
46
|
+
setLoading(true);
|
|
47
|
+
yield loadIcon(name);
|
|
48
|
+
setLoading(false);
|
|
49
|
+
}
|
|
50
|
+
}))();
|
|
51
|
+
}, [name]);
|
|
52
|
+
const w = parseFloat((width / rootFontSizePx).toFixed(2));
|
|
53
|
+
const mrRems = parseFloat((mr / rootFontSizePx).toFixed(2));
|
|
54
|
+
const mlRems = parseFloat((ml / rootFontSizePx).toFixed(2));
|
|
55
|
+
const va = typeof verticalAlign === "string" ? verticalAlign : parseFloat((verticalAlign / rootFontSizePx).toFixed(2));
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
IconContainer,
|
|
58
|
+
{
|
|
59
|
+
className,
|
|
60
|
+
w,
|
|
61
|
+
mr: mrRems,
|
|
62
|
+
ml: mlRems,
|
|
63
|
+
verticalAlign: va,
|
|
64
|
+
fontColor: color,
|
|
65
|
+
"data-tutorial-tip": tutorialStep == null ? void 0 : tutorialStep.toString(),
|
|
66
|
+
children: IconComponent ? /* @__PURE__ */ jsx(IconComponent, {}) : null
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
var IconContainer = styled.span`
|
|
71
|
+
pointer-events: none;
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
${({ mr, ml, w }) => `
|
|
74
|
+
width: ${w}em;
|
|
75
|
+
/* ensure no shrink in flex containers: */
|
|
76
|
+
min-width: ${w}em;
|
|
77
|
+
${mr ? `margin-right: ${mr}em;` : ""}
|
|
78
|
+
${ml ? `margin-left: ${ml}em;` : ""}
|
|
79
|
+
`}
|
|
80
|
+
|
|
81
|
+
vertical-align: ${({ verticalAlign }) => isString(verticalAlign) ? verticalAlign : `${verticalAlign}em`};
|
|
82
|
+
|
|
83
|
+
${({ fontColor }) => `
|
|
84
|
+
& svg {
|
|
85
|
+
color: ${fontColor || "inherit"};
|
|
86
|
+
}
|
|
87
|
+
`}
|
|
88
|
+
`;
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
Icon,
|
|
92
|
+
IconContainer
|
|
93
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// src/utils/strings.tsx
|
|
2
|
+
var capitalize = (str) => {
|
|
3
|
+
if (str.length === 0) {
|
|
4
|
+
return str;
|
|
5
|
+
}
|
|
6
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
7
|
+
};
|
|
8
|
+
var makeEnumPretty = (enumValue, capitalizeAllWords = true) => {
|
|
9
|
+
let formatted = enumValue.toLowerCase().split("_");
|
|
10
|
+
if (capitalizeAllWords) {
|
|
11
|
+
formatted = formatted.map((word) => capitalize(word));
|
|
12
|
+
} else if (formatted.length > 0) {
|
|
13
|
+
formatted[0] = capitalize(formatted[0]);
|
|
14
|
+
}
|
|
15
|
+
return formatted.join(" ");
|
|
16
|
+
};
|
|
17
|
+
var elide = (s, first, last) => {
|
|
18
|
+
if (s === void 0 || s === null)
|
|
19
|
+
return s;
|
|
20
|
+
return s.substring(0, first) + "..." + s.substring(s.length - (last != null ? last : 0));
|
|
21
|
+
};
|
|
22
|
+
function removeChars(value, beginIndex, endIndex) {
|
|
23
|
+
return value.slice(0, beginIndex) + value.slice(endIndex || beginIndex + 1);
|
|
24
|
+
}
|
|
25
|
+
function isString(str) {
|
|
26
|
+
return typeof str === "string";
|
|
27
|
+
}
|
|
28
|
+
function removeCommas(value) {
|
|
29
|
+
return value.replace(/,/g, "");
|
|
30
|
+
}
|
|
31
|
+
function addCommasToDigits(value) {
|
|
32
|
+
if (typeof value === "number") {
|
|
33
|
+
value = value.toString();
|
|
34
|
+
}
|
|
35
|
+
const existingCommasRemoved = removeCommas(value);
|
|
36
|
+
const [int, decimal] = existingCommasRemoved.split(".");
|
|
37
|
+
const intWithCommas = int.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
38
|
+
return decimal ? `${intWithCommas}.${decimal}` : intWithCommas;
|
|
39
|
+
}
|
|
40
|
+
function removeLeadingZeros(value) {
|
|
41
|
+
if (value.length > 1) {
|
|
42
|
+
return value.replace(/^0+(?=\d)/, "");
|
|
43
|
+
}
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
capitalize,
|
|
49
|
+
makeEnumPretty,
|
|
50
|
+
elide,
|
|
51
|
+
removeChars,
|
|
52
|
+
isString,
|
|
53
|
+
removeCommas,
|
|
54
|
+
addCommasToDigits,
|
|
55
|
+
removeLeadingZeros
|
|
56
|
+
};
|