@lightsparkdev/ui 1.0.2 → 1.0.4
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/CHANGELOG.md +12 -0
- package/dist/{chunk-SGSLTG65.js → chunk-242JGEN4.js} +3 -3
- package/dist/{chunk-F6EVBEMN.js → chunk-2P6TCMZN.js} +2 -2
- package/dist/{chunk-J7SV67XL.js → chunk-3R5KJDSL.js} +1 -1
- package/dist/{chunk-L6S22JUU.js → chunk-4BERRPJN.js} +3 -3
- package/dist/{chunk-AI6DCUWK.js → chunk-4KURUJD2.js} +1 -1
- package/dist/{chunk-6H7PZJ2A.js → chunk-4X67A2CS.js} +2 -1
- package/dist/{chunk-YRYVSAWS.js → chunk-5F7IOIWL.js} +1 -1
- package/dist/{chunk-EMXTALIX.js → chunk-5ON3ICVC.js} +1 -1
- package/dist/{chunk-35WJ3PKH.js → chunk-642OXLAD.js} +2 -2
- package/dist/{chunk-SKXCT2FQ.js → chunk-7BSME2ZU.js} +2 -2
- package/dist/{chunk-GNVEN6UE.js → chunk-7COKMITX.js} +2 -2
- package/dist/{chunk-LL5YLPNM.js → chunk-7OJQZEVL.js} +5 -5
- package/dist/{chunk-GGEAODIA.js → chunk-7RLDCOUT.js} +4 -4
- package/dist/{chunk-S6AOKANU.js → chunk-7RMHMFS2.js} +4 -4
- package/dist/{chunk-CMQELZES.js → chunk-AZOVE32P.js} +2 -2
- package/dist/{chunk-5H32AOXL.js → chunk-BAGRU7JE.js} +1 -1
- package/dist/{chunk-2JYYREVX.js → chunk-BPGBJRZE.js} +1 -1
- package/dist/{chunk-UNULJ3P6.js → chunk-BRRDPQWW.js} +4 -4
- package/dist/{chunk-W3BAJ3HT.js → chunk-C3YODRA3.js} +15 -15
- package/dist/{chunk-HZ63YB4Y.js → chunk-C4HNAZFZ.js} +3 -3
- package/dist/{chunk-7NPHOJXD.js → chunk-CZFFMEAS.js} +5 -5
- package/dist/{chunk-HRZNVE2K.js → chunk-DIKOS5R6.js} +2 -2
- package/dist/{chunk-BMSSV6NX.js → chunk-DNGAINGL.js} +1 -1
- package/dist/{chunk-TVLELY54.js → chunk-DWUP3RDU.js} +4 -4
- package/dist/chunk-E5DUKMCU.js +65 -0
- package/dist/chunk-EIFK352Q.js +27 -0
- package/dist/{chunk-OA3BZAST.js → chunk-GLEAWATH.js} +3 -3
- package/dist/{chunk-KFX7US6Y.js → chunk-GQVNE3NU.js} +1 -1
- package/dist/{chunk-UBYBILLK.js → chunk-HPZVUEDJ.js} +2 -2
- package/dist/{chunk-TM3C4LEG.js → chunk-HVDX4OZJ.js} +2 -2
- package/dist/{chunk-6JFJDBV2.js → chunk-JAPRGAB7.js} +1 -1
- package/dist/{chunk-467PLJO3.js → chunk-JH53NBOD.js} +59 -10
- package/dist/{chunk-2XRCGW74.js → chunk-KBLCFXNL.js} +3 -3
- package/dist/{chunk-NYQLPSG3.js → chunk-KJHREJHT.js} +2 -2
- package/dist/{chunk-CZQER3QD.js → chunk-LFD2KVAB.js} +1 -1
- package/dist/{chunk-DCFB5MJ7.js → chunk-LGXMGWLV.js} +17 -16
- package/dist/{chunk-37RRWSDE.js → chunk-LLGN3OM3.js} +2 -2
- package/dist/{chunk-HA4AQO3T.js → chunk-MK2JFFUG.js} +1 -1
- package/dist/{chunk-EV6PGQPM.js → chunk-MNMVZI7D.js} +11 -11
- package/dist/{chunk-HP4VPMN7.js → chunk-OMY3WTAU.js} +2 -2
- package/dist/{chunk-VUXU77SU.js → chunk-OUHQXQOJ.js} +1 -1
- package/dist/{chunk-PNSZAJL7.js → chunk-OZQ5WPLN.js} +2 -2
- package/dist/{chunk-2H7TBKII.js → chunk-PDQVYUEW.js} +6 -6
- package/dist/{chunk-DNVKN2FG.js → chunk-QCHEDM2I.js} +3 -3
- package/dist/{chunk-CHK5DOMV.js → chunk-RESJONBZ.js} +2 -2
- package/dist/{chunk-XP3BAAUO.js → chunk-SZ4KKLYJ.js} +2 -2
- package/dist/{chunk-VYTN6ASZ.js → chunk-THTKSZSR.js} +2 -2
- package/dist/{chunk-KBYU4ZQ3.js → chunk-TNDSUTUN.js} +3 -3
- package/dist/{chunk-SRHSJOES.js → chunk-TNISOOCF.js} +1 -1
- package/dist/{chunk-55M7XHBZ.js → chunk-UNFCVZ32.js} +36 -33
- package/dist/{chunk-56QJRFP2.js → chunk-V523QTZQ.js} +2 -2
- package/dist/{chunk-A4JZESAS.js → chunk-VNQE6KEX.js} +16 -3
- package/dist/{chunk-5XZJEYHG.js → chunk-VR2GLRXH.js} +1 -1
- package/dist/chunk-VWD7T5MQ.js +74 -0
- package/dist/{chunk-XUVCOSIE.js → chunk-VXH6GWGE.js} +2 -2
- package/dist/{chunk-ZNZAY47J.js → chunk-W2N5QUG6.js} +9 -6
- package/dist/{chunk-D73OOC3E.js → chunk-WDJMAZFO.js} +3 -3
- package/dist/{chunk-WV5AB4ZB.js → chunk-XS4MH3QA.js} +102 -85
- package/dist/{chunk-TM2NGRD2.js → chunk-YRFCWL73.js} +5 -2
- package/dist/{chunk-CZCPVHVB.js → chunk-YRZ3VNBI.js} +2 -2
- package/dist/{chunk-JOQCJPOA.js → chunk-ZCXGHQQF.js} +9 -9
- package/dist/{chunk-UVGBD7XM.js → chunk-ZO35RX7V.js} +21 -13
- package/dist/{chunk-27SFWLPS.js → chunk-ZS7G6WIG.js} +1 -1
- package/dist/components/Badge.cjs +7845 -7476
- package/dist/components/Badge.d.cts +146 -7
- package/dist/components/Badge.d.ts +146 -7
- package/dist/components/Badge.js +20 -23
- package/dist/components/Banner/Banner.cjs +55 -26
- package/dist/components/Banner/Banner.d.cts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +18 -18
- package/dist/components/Button.cjs +46 -28
- package/dist/components/Button.d.cts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +20 -20
- package/dist/components/ButtonRow.cjs +49 -31
- package/dist/components/ButtonRow.d.cts +1 -1
- package/dist/components/ButtonRow.d.ts +1 -1
- package/dist/components/ButtonRow.js +22 -22
- package/dist/components/CardPage.cjs +16 -3
- package/dist/components/CardPage.js +24 -24
- package/dist/components/Checkbox.cjs +3 -3
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/CodeBlock.cjs +21 -7
- package/dist/components/CodeBlock.js +8 -8
- package/dist/components/CodeInput/CodeInput.cjs +17 -4
- package/dist/components/CodeInput/CodeInput.js +6 -6
- package/dist/components/CodeInput/SingleCodeInput.cjs +17 -4
- package/dist/components/CodeInput/SingleCodeInput.js +5 -5
- package/dist/components/Collapsible.cjs +82 -7
- package/dist/components/Collapsible.js +6 -6
- package/dist/components/CommaNumberInput.cjs +22 -8
- package/dist/components/CommaNumberInput.d.cts +1 -1
- package/dist/components/CommaNumberInput.d.ts +1 -1
- package/dist/components/CommaNumberInput.js +11 -11
- package/dist/components/ContentTable.cjs +17 -4
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.cjs +21 -7
- package/dist/components/CopyToClipboardButton.js +6 -6
- package/dist/components/CurrencyAmount.cjs +17 -4
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Drawer.cjs +293 -176
- package/dist/components/Drawer.d.cts +2 -0
- package/dist/components/Drawer.d.ts +2 -0
- package/dist/components/Drawer.js +22 -22
- package/dist/components/Dropdown.cjs +21 -7
- package/dist/components/Dropdown.d.cts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +5 -5
- package/dist/components/FileInput.cjs +17 -4
- package/dist/components/FileInput.js +10 -10
- package/dist/components/GradientCardHeader.js +5 -5
- package/dist/components/Icon/Icon.cjs +17 -4
- package/dist/components/Icon/Icon.d.cts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +3 -3
- package/dist/components/IconWithCircleBackground.cjs +7349 -7338
- package/dist/components/IconWithCircleBackground.js +4 -73
- package/dist/components/InfoIconTooltip.cjs +62 -32
- package/dist/components/InfoIconTooltip.d.cts +1 -1
- package/dist/components/InfoIconTooltip.d.ts +1 -1
- package/dist/components/InfoIconTooltip.js +19 -19
- package/dist/components/LightsparkProvider.cjs +16 -3
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.cjs +17 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +297 -147
- package/dist/components/Modal.d.cts +21 -15
- package/dist/components/Modal.d.ts +21 -15
- package/dist/components/Modal.js +27 -68
- package/dist/components/PageSection/PageSection.cjs +214 -100
- package/dist/components/PageSection/PageSection.d.cts +1 -1
- package/dist/components/PageSection/PageSection.d.ts +1 -1
- package/dist/components/PageSection/PageSection.js +27 -31
- package/dist/components/PageSection/PageSectionNav.cjs +50 -21
- package/dist/components/PageSection/PageSectionNav.js +20 -20
- package/dist/components/PhoneInput.cjs +22 -8
- package/dist/components/PhoneInput.d.cts +1 -1
- package/dist/components/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput.js +11 -11
- package/dist/components/Pill.cjs +17 -4
- package/dist/components/Pill.js +7 -7
- package/dist/components/ProgressBar.cjs +16 -3
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/Radio.cjs +7410 -7334
- package/dist/components/Radio.js +8 -22
- package/dist/components/SecretContainer.cjs +21 -7
- package/dist/components/SecretContainer.js +7 -7
- package/dist/components/StatusIndicator.js +4 -4
- package/dist/components/TextButton.cjs +46 -17
- package/dist/components/TextButton.d.cts +1 -1
- package/dist/components/TextButton.d.ts +1 -1
- package/dist/components/TextButton.js +19 -19
- package/dist/components/TextIconAligner.cjs +40 -11
- package/dist/components/TextIconAligner.d.cts +1 -1
- package/dist/components/TextIconAligner.d.ts +1 -1
- package/dist/components/TextIconAligner.js +17 -17
- package/dist/components/TextInput.cjs +22 -8
- package/dist/components/TextInput.d.cts +1 -1
- package/dist/components/TextInput.d.ts +1 -1
- package/dist/components/TextInput.js +10 -10
- package/dist/components/Toasts.cjs +66 -37
- package/dist/components/Toasts.d.cts +1 -1
- package/dist/components/Toasts.d.ts +1 -1
- package/dist/components/Toasts.js +20 -20
- package/dist/components/Toggle.cjs +108 -97
- package/dist/components/Toggle.js +4 -4
- package/dist/components/Tooltip.cjs +20 -6
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +17 -4
- package/dist/components/documentation/AnchorLinkHeader.d.cts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.d.ts +1 -1
- package/dist/components/documentation/AnchorLinkHeader.js +8 -8
- package/dist/components/documentation/DocsBodyParagraph.cjs +16 -3
- package/dist/components/documentation/DocsBodyParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyParagraph.js +6 -6
- package/dist/components/documentation/DocsBodyStrongParagraph.cjs +16 -3
- package/dist/components/documentation/DocsBodyStrongParagraph.d.cts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.d.ts +1 -1
- package/dist/components/documentation/DocsBodyStrongParagraph.js +6 -6
- package/dist/components/documentation/DocsHeadline.cjs +16 -3
- package/dist/components/documentation/DocsHeadline.d.cts +1 -1
- package/dist/components/documentation/DocsHeadline.d.ts +1 -1
- package/dist/components/documentation/DocsHeadline.js +7 -7
- package/dist/components/documentation/Video.cjs +16 -0
- package/dist/components/documentation/Video.d.cts +7 -1
- package/dist/components/documentation/Video.d.ts +7 -1
- package/dist/components/documentation/Video.js +18 -2
- package/dist/components/documentation/index.cjs +17 -4
- package/dist/components/documentation/index.d.cts +1 -1
- package/dist/components/documentation/index.d.ts +1 -1
- package/dist/components/documentation/index.js +8 -8
- package/dist/components/index.cjs +8474 -8234
- package/dist/components/index.d.cts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +69 -70
- package/dist/components/typography/Article.cjs +103 -28
- package/dist/components/typography/Article.js +14 -14
- package/dist/components/typography/Body.cjs +18 -4
- package/dist/components/typography/Body.d.cts +2 -2
- package/dist/components/typography/Body.d.ts +2 -2
- package/dist/components/typography/Body.js +6 -6
- package/dist/components/typography/BodyStrong.cjs +18 -4
- package/dist/components/typography/BodyStrong.d.cts +2 -2
- package/dist/components/typography/BodyStrong.d.ts +2 -2
- package/dist/components/typography/BodyStrong.js +6 -6
- package/dist/components/typography/Code.cjs +18 -4
- package/dist/components/typography/Code.d.cts +2 -2
- package/dist/components/typography/Code.d.ts +2 -2
- package/dist/components/typography/Code.js +6 -6
- package/dist/components/typography/Display.cjs +18 -4
- package/dist/components/typography/Display.d.cts +2 -2
- package/dist/components/typography/Display.d.ts +2 -2
- package/dist/components/typography/Display.js +6 -6
- package/dist/components/typography/Headline.cjs +18 -4
- package/dist/components/typography/Headline.d.cts +2 -2
- package/dist/components/typography/Headline.d.ts +2 -2
- package/dist/components/typography/Headline.js +6 -6
- package/dist/components/typography/Label.cjs +18 -4
- package/dist/components/typography/Label.d.cts +2 -2
- package/dist/components/typography/Label.d.ts +2 -2
- package/dist/components/typography/Label.js +6 -6
- package/dist/components/typography/LabelModerate.cjs +18 -4
- package/dist/components/typography/LabelModerate.d.cts +2 -2
- package/dist/components/typography/LabelModerate.d.ts +2 -2
- package/dist/components/typography/LabelModerate.js +6 -6
- package/dist/components/typography/LabelStrong.cjs +18 -4
- package/dist/components/typography/LabelStrong.d.cts +2 -2
- package/dist/components/typography/LabelStrong.d.ts +2 -2
- package/dist/components/typography/LabelStrong.js +6 -6
- package/dist/components/typography/Overline.cjs +18 -4
- package/dist/components/typography/Overline.d.cts +2 -2
- package/dist/components/typography/Overline.d.ts +2 -2
- package/dist/components/typography/Overline.js +6 -6
- package/dist/components/typography/Title.cjs +18 -4
- package/dist/components/typography/Title.d.cts +3 -3
- package/dist/components/typography/Title.d.ts +3 -3
- package/dist/components/typography/Title.js +6 -6
- package/dist/components/typography/index.cjs +105 -29
- package/dist/components/typography/index.d.cts +1 -1
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/index.js +22 -23
- package/dist/components/typography/renderTypography.cjs +34 -7
- package/dist/components/typography/renderTypography.d.cts +20 -20
- package/dist/components/typography/renderTypography.d.ts +20 -20
- package/dist/components/typography/renderTypography.js +16 -16
- package/dist/styles/buttons.d.cts +1 -1
- package/dist/styles/buttons.d.ts +1 -1
- package/dist/styles/common.cjs +20 -6
- package/dist/styles/common.d.cts +3 -2
- package/dist/styles/common.d.ts +3 -2
- package/dist/styles/common.js +2 -2
- package/dist/styles/fields.cjs +17 -4
- package/dist/styles/fields.d.cts +1 -1
- package/dist/styles/fields.d.ts +1 -1
- package/dist/styles/fields.js +4 -4
- package/dist/styles/global.cjs +16 -3
- package/dist/styles/global.d.cts +1 -1
- package/dist/styles/global.d.ts +1 -1
- package/dist/styles/global.js +3 -3
- package/dist/styles/themes.cjs +16 -3
- package/dist/styles/themes.d.cts +1 -1
- package/dist/styles/themes.d.ts +1 -1
- package/dist/styles/themes.js +1 -1
- package/dist/styles/tokens/spacing.cjs +60 -21
- package/dist/styles/tokens/spacing.d.cts +40 -20
- package/dist/styles/tokens/spacing.d.ts +40 -20
- package/dist/styles/tokens/spacing.js +1 -1
- package/dist/styles/type.d.cts +1 -1
- package/dist/styles/type.d.ts +1 -1
- package/dist/styles/type.js +4 -4
- package/dist/styles/typography.cjs +16 -3
- package/dist/styles/typography.d.cts +1 -1
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +2 -2
- package/dist/styles/utils.js +3 -3
- package/dist/{buttons-b7f56076.d.ts → themes-37e92940.d.ts} +91 -67
- package/dist/{buttons-e4eb84a2.d.ts → themes-832e46b2.d.ts} +91 -67
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.cjs +18 -4
- package/dist/utils/toNonTypographicReactNodes.d.cts +2 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +2 -1
- package/dist/utils/toNonTypographicReactNodes.js +4 -4
- package/dist/utils/toReactNodes.cjs +59 -21
- package/dist/utils/toReactNodes.d.cts +13 -9
- package/dist/utils/toReactNodes.d.ts +13 -9
- package/dist/utils/toReactNodes.js +19 -17
- package/package.json +1 -1
- package/dist/chunk-3XSQV5U4.js +0 -26
- package/dist/chunk-B2VYAIYR.js +0 -0
- package/dist/chunk-RSAYBOK5.js +0 -35
|
@@ -1,13 +1,152 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
+
import { F as FontColorKey } from '../themes-37e92940.js';
|
|
3
|
+
import { TypographyTypeKey } from '../styles/tokens/typography.cjs';
|
|
4
|
+
import { SimpleTypographyProps } from '../styles/typography.cjs';
|
|
5
|
+
import { ToReactNodesArgs } from '../utils/toReactNodes.cjs';
|
|
6
|
+
import { IconName } from './Icon/types.cjs';
|
|
7
|
+
import '@emotion/react';
|
|
8
|
+
import '@emotion/css';
|
|
9
|
+
import '../styles/colors.cjs';
|
|
10
|
+
import '@lightsparkdev/core';
|
|
11
|
+
import './typography/renderTypography.cjs';
|
|
12
|
+
import './typography/Code.cjs';
|
|
13
|
+
import '@emotion/styled';
|
|
14
|
+
import 'react';
|
|
15
|
+
import '../utils/toNonTypographicReactNodes.cjs';
|
|
16
|
+
import '../types/index.cjs';
|
|
17
|
+
import './typography/Overline.cjs';
|
|
18
|
+
import './typography/LabelStrong.cjs';
|
|
19
|
+
import './typography/LabelModerate.cjs';
|
|
20
|
+
import './typography/Title.cjs';
|
|
21
|
+
import './typography/Display.cjs';
|
|
22
|
+
import '../index-dcf19aa7.js';
|
|
23
|
+
import '../icons/AI.cjs';
|
|
24
|
+
import '../icons/AnchorLink.cjs';
|
|
25
|
+
import '../icons/ApiConnection.cjs';
|
|
26
|
+
import '../icons/AppIcon.cjs';
|
|
27
|
+
import '../icons/ArrowCircle.cjs';
|
|
28
|
+
import '../icons/ArrowCircleTier1.cjs';
|
|
29
|
+
import '../icons/ArrowCircleTier2.cjs';
|
|
30
|
+
import '../icons/ArrowCircleTier3.cjs';
|
|
31
|
+
import '../icons/ArrowCornerDownRight.cjs';
|
|
32
|
+
import '../icons/ArrowDown.cjs';
|
|
33
|
+
import '../icons/ArrowUp.cjs';
|
|
34
|
+
import '../icons/ArrowUpRightCircleFill.cjs';
|
|
35
|
+
import '../icons/Bank.cjs';
|
|
36
|
+
import '../icons/BitcoinB.cjs';
|
|
37
|
+
import '../icons/BitcoinBOnRoundedSquare.cjs';
|
|
38
|
+
import '../icons/CameraCapture.cjs';
|
|
39
|
+
import '../icons/CaretRight.cjs';
|
|
40
|
+
import '../icons/CentralArrowShareRight.cjs';
|
|
41
|
+
import '../icons/Checkmark.cjs';
|
|
42
|
+
import '../icons/CheckmarkCircleGreen.cjs';
|
|
43
|
+
import '../icons/CheckmarkCircleTier1.cjs';
|
|
44
|
+
import '../icons/CheckmarkCircleTier2.cjs';
|
|
45
|
+
import '../icons/CheckmarkCircleTier3.cjs';
|
|
46
|
+
import '../icons/Chevron.cjs';
|
|
47
|
+
import '../icons/ChevronLeft.cjs';
|
|
48
|
+
import '../icons/CircleCheck.cjs';
|
|
49
|
+
import '../icons/CircleCheckOutline.cjs';
|
|
50
|
+
import '../icons/CirclePlus.cjs';
|
|
51
|
+
import '../icons/Clock.cjs';
|
|
52
|
+
import '../icons/Close.cjs';
|
|
53
|
+
import '../icons/Code.cjs';
|
|
54
|
+
import '../icons/Copy.cjs';
|
|
55
|
+
import '../icons/CreditCard.cjs';
|
|
56
|
+
import '../icons/DeleteIcon.cjs';
|
|
57
|
+
import '../icons/Dollar.cjs';
|
|
58
|
+
import '../icons/DollarManrope.cjs';
|
|
59
|
+
import '../icons/DollarManropeSmall.cjs';
|
|
60
|
+
import '../icons/DotGrid1x3Horizontal.cjs';
|
|
61
|
+
import '../icons/Download.cjs';
|
|
62
|
+
import '../icons/Envelope.cjs';
|
|
63
|
+
import '../icons/ExclamationPoint.cjs';
|
|
64
|
+
import '../icons/Explorer.cjs';
|
|
65
|
+
import '../icons/Eye.cjs';
|
|
66
|
+
import '../icons/EyeDropper.cjs';
|
|
67
|
+
import '../icons/Figma.cjs';
|
|
68
|
+
import '../icons/FlutterTwoTone.cjs';
|
|
69
|
+
import '../icons/FramedLetterI.cjs';
|
|
70
|
+
import '../icons/Gear.cjs';
|
|
71
|
+
import '../icons/Github.cjs';
|
|
72
|
+
import '../icons/GoTwoTone.cjs';
|
|
73
|
+
import '../icons/GraphQLTwoTone.cjs';
|
|
74
|
+
import '../icons/HeartOutline.cjs';
|
|
75
|
+
import '../icons/Home.cjs';
|
|
76
|
+
import '../icons/HorizontalArrows.cjs';
|
|
77
|
+
import '../icons/Info.cjs';
|
|
78
|
+
import '../icons/JavaScriptTwoTone.cjs';
|
|
79
|
+
import '../icons/JavaTwoTone.cjs';
|
|
80
|
+
import '../icons/KotlinTwoTone.cjs';
|
|
81
|
+
import '../icons/LeftArrow.cjs';
|
|
82
|
+
import '../icons/LightningOnRoundedSquare.cjs';
|
|
83
|
+
import '../icons/LinkIcon.cjs';
|
|
84
|
+
import '../icons/LoadingSpinner.cjs';
|
|
85
|
+
import '../icons/Lock.cjs';
|
|
86
|
+
import '../icons/Logo.cjs';
|
|
87
|
+
import '../icons/LogoBolt.cjs';
|
|
88
|
+
import '../icons/LogoOnCircle.cjs';
|
|
89
|
+
import '../icons/MagicWand.cjs';
|
|
90
|
+
import '../icons/Minus.cjs';
|
|
91
|
+
import '../icons/Monitor.cjs';
|
|
92
|
+
import '../icons/NodeAdd.cjs';
|
|
93
|
+
import '../icons/NotEye.cjs';
|
|
94
|
+
import '../icons/PaperPlane.cjs';
|
|
95
|
+
import '../icons/Pencil.cjs';
|
|
96
|
+
import '../icons/Person.cjs';
|
|
97
|
+
import '../icons/PersonCircle.cjs';
|
|
98
|
+
import '../icons/PiggyBank.cjs';
|
|
99
|
+
import '../icons/Plus.cjs';
|
|
100
|
+
import '../icons/PythonTwoTone.cjs';
|
|
101
|
+
import '../icons/QRCodeIcon.cjs';
|
|
102
|
+
import '../icons/QuestionCircle.cjs';
|
|
103
|
+
import '../icons/QuestionCircleStrong.cjs';
|
|
104
|
+
import '../icons/ReactTwoTone.cjs';
|
|
105
|
+
import '../icons/Recycling.cjs';
|
|
106
|
+
import '../icons/Remove.cjs';
|
|
107
|
+
import '../icons/Restart.cjs';
|
|
108
|
+
import '../icons/RightArrow.cjs';
|
|
109
|
+
import '../icons/Roadmap.cjs';
|
|
110
|
+
import '../icons/RustTwoTone.cjs';
|
|
111
|
+
import '../icons/Satoshi.cjs';
|
|
112
|
+
import '../icons/SatoshiRounded.cjs';
|
|
113
|
+
import '../icons/Search.cjs';
|
|
114
|
+
import '../icons/SecurityKey.cjs';
|
|
115
|
+
import '../icons/Selector.cjs';
|
|
116
|
+
import '../icons/SemiCircleOverlap.cjs';
|
|
117
|
+
import '../icons/Share.cjs';
|
|
118
|
+
import '../icons/ShieldCheck.cjs';
|
|
119
|
+
import '../icons/Sidebar.cjs';
|
|
120
|
+
import '../icons/Sort.cjs';
|
|
121
|
+
import '../icons/StackedLines.cjs';
|
|
122
|
+
import '../icons/SwiftTwoTone.cjs';
|
|
123
|
+
import '../icons/TapSingle.cjs';
|
|
124
|
+
import '../icons/Team.cjs';
|
|
125
|
+
import '../icons/Terminal.cjs';
|
|
126
|
+
import '../icons/Trash.cjs';
|
|
127
|
+
import '../icons/TwoArrowsDown.cjs';
|
|
128
|
+
import '../icons/TwoArrowsUp.cjs';
|
|
129
|
+
import '../icons/Uma.cjs';
|
|
130
|
+
import '../icons/UmaBridgeLoading.cjs';
|
|
131
|
+
import '../icons/Upload.cjs';
|
|
132
|
+
import '../icons/WalletSDKIcon.cjs';
|
|
133
|
+
import '../icons/WarningSign.cjs';
|
|
2
134
|
|
|
3
|
-
type
|
|
4
|
-
type BadgeProps = {
|
|
5
|
-
|
|
6
|
-
|
|
135
|
+
type BadgeKind = "danger" | "default";
|
|
136
|
+
type BadgeProps<T extends TypographyTypeKey> = {
|
|
137
|
+
content?: ToReactNodesArgs<T> | undefined;
|
|
138
|
+
kind?: BadgeKind | undefined;
|
|
7
139
|
ml?: 0 | 4 | 6;
|
|
8
140
|
mr?: 0 | 4 | 6;
|
|
141
|
+
block?: boolean;
|
|
142
|
+
size?: "sm" | "lg";
|
|
143
|
+
icon?: {
|
|
144
|
+
name: IconName;
|
|
145
|
+
color?: FontColorKey | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
typography?: SimpleTypographyProps;
|
|
9
148
|
};
|
|
10
|
-
declare function Badge({
|
|
11
|
-
declare const
|
|
149
|
+
declare function Badge<T extends TypographyTypeKey>({ content: contentProp, kind, icon, ml, mr, size, block, typography: typographyProp, }: BadgeProps<T>): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
150
|
+
declare const badgeSmVPadding = 2;
|
|
12
151
|
|
|
13
|
-
export { Badge, BadgeProps,
|
|
152
|
+
export { Badge, BadgeProps, badgeSmVPadding };
|
|
@@ -1,13 +1,152 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
+
import { F as FontColorKey } from '../themes-832e46b2.js';
|
|
3
|
+
import { TypographyTypeKey } from '../styles/tokens/typography.js';
|
|
4
|
+
import { SimpleTypographyProps } from '../styles/typography.js';
|
|
5
|
+
import { ToReactNodesArgs } from '../utils/toReactNodes.js';
|
|
6
|
+
import { IconName } from './Icon/types.js';
|
|
7
|
+
import '@emotion/react';
|
|
8
|
+
import '@emotion/css';
|
|
9
|
+
import '../styles/colors.js';
|
|
10
|
+
import '@lightsparkdev/core';
|
|
11
|
+
import './typography/renderTypography.js';
|
|
12
|
+
import './typography/Code.js';
|
|
13
|
+
import '@emotion/styled';
|
|
14
|
+
import 'react';
|
|
15
|
+
import '../utils/toNonTypographicReactNodes.js';
|
|
16
|
+
import '../types/index.js';
|
|
17
|
+
import './typography/Overline.js';
|
|
18
|
+
import './typography/LabelStrong.js';
|
|
19
|
+
import './typography/LabelModerate.js';
|
|
20
|
+
import './typography/Title.js';
|
|
21
|
+
import './typography/Display.js';
|
|
22
|
+
import '../index-71766330.js';
|
|
23
|
+
import '../icons/AI.js';
|
|
24
|
+
import '../icons/AnchorLink.js';
|
|
25
|
+
import '../icons/ApiConnection.js';
|
|
26
|
+
import '../icons/AppIcon.js';
|
|
27
|
+
import '../icons/ArrowCircle.js';
|
|
28
|
+
import '../icons/ArrowCircleTier1.js';
|
|
29
|
+
import '../icons/ArrowCircleTier2.js';
|
|
30
|
+
import '../icons/ArrowCircleTier3.js';
|
|
31
|
+
import '../icons/ArrowCornerDownRight.js';
|
|
32
|
+
import '../icons/ArrowDown.js';
|
|
33
|
+
import '../icons/ArrowUp.js';
|
|
34
|
+
import '../icons/ArrowUpRightCircleFill.js';
|
|
35
|
+
import '../icons/Bank.js';
|
|
36
|
+
import '../icons/BitcoinB.js';
|
|
37
|
+
import '../icons/BitcoinBOnRoundedSquare.js';
|
|
38
|
+
import '../icons/CameraCapture.js';
|
|
39
|
+
import '../icons/CaretRight.js';
|
|
40
|
+
import '../icons/CentralArrowShareRight.js';
|
|
41
|
+
import '../icons/Checkmark.js';
|
|
42
|
+
import '../icons/CheckmarkCircleGreen.js';
|
|
43
|
+
import '../icons/CheckmarkCircleTier1.js';
|
|
44
|
+
import '../icons/CheckmarkCircleTier2.js';
|
|
45
|
+
import '../icons/CheckmarkCircleTier3.js';
|
|
46
|
+
import '../icons/Chevron.js';
|
|
47
|
+
import '../icons/ChevronLeft.js';
|
|
48
|
+
import '../icons/CircleCheck.js';
|
|
49
|
+
import '../icons/CircleCheckOutline.js';
|
|
50
|
+
import '../icons/CirclePlus.js';
|
|
51
|
+
import '../icons/Clock.js';
|
|
52
|
+
import '../icons/Close.js';
|
|
53
|
+
import '../icons/Code.js';
|
|
54
|
+
import '../icons/Copy.js';
|
|
55
|
+
import '../icons/CreditCard.js';
|
|
56
|
+
import '../icons/DeleteIcon.js';
|
|
57
|
+
import '../icons/Dollar.js';
|
|
58
|
+
import '../icons/DollarManrope.js';
|
|
59
|
+
import '../icons/DollarManropeSmall.js';
|
|
60
|
+
import '../icons/DotGrid1x3Horizontal.js';
|
|
61
|
+
import '../icons/Download.js';
|
|
62
|
+
import '../icons/Envelope.js';
|
|
63
|
+
import '../icons/ExclamationPoint.js';
|
|
64
|
+
import '../icons/Explorer.js';
|
|
65
|
+
import '../icons/Eye.js';
|
|
66
|
+
import '../icons/EyeDropper.js';
|
|
67
|
+
import '../icons/Figma.js';
|
|
68
|
+
import '../icons/FlutterTwoTone.js';
|
|
69
|
+
import '../icons/FramedLetterI.js';
|
|
70
|
+
import '../icons/Gear.js';
|
|
71
|
+
import '../icons/Github.js';
|
|
72
|
+
import '../icons/GoTwoTone.js';
|
|
73
|
+
import '../icons/GraphQLTwoTone.js';
|
|
74
|
+
import '../icons/HeartOutline.js';
|
|
75
|
+
import '../icons/Home.js';
|
|
76
|
+
import '../icons/HorizontalArrows.js';
|
|
77
|
+
import '../icons/Info.js';
|
|
78
|
+
import '../icons/JavaScriptTwoTone.js';
|
|
79
|
+
import '../icons/JavaTwoTone.js';
|
|
80
|
+
import '../icons/KotlinTwoTone.js';
|
|
81
|
+
import '../icons/LeftArrow.js';
|
|
82
|
+
import '../icons/LightningOnRoundedSquare.js';
|
|
83
|
+
import '../icons/LinkIcon.js';
|
|
84
|
+
import '../icons/LoadingSpinner.js';
|
|
85
|
+
import '../icons/Lock.js';
|
|
86
|
+
import '../icons/Logo.js';
|
|
87
|
+
import '../icons/LogoBolt.js';
|
|
88
|
+
import '../icons/LogoOnCircle.js';
|
|
89
|
+
import '../icons/MagicWand.js';
|
|
90
|
+
import '../icons/Minus.js';
|
|
91
|
+
import '../icons/Monitor.js';
|
|
92
|
+
import '../icons/NodeAdd.js';
|
|
93
|
+
import '../icons/NotEye.js';
|
|
94
|
+
import '../icons/PaperPlane.js';
|
|
95
|
+
import '../icons/Pencil.js';
|
|
96
|
+
import '../icons/Person.js';
|
|
97
|
+
import '../icons/PersonCircle.js';
|
|
98
|
+
import '../icons/PiggyBank.js';
|
|
99
|
+
import '../icons/Plus.js';
|
|
100
|
+
import '../icons/PythonTwoTone.js';
|
|
101
|
+
import '../icons/QRCodeIcon.js';
|
|
102
|
+
import '../icons/QuestionCircle.js';
|
|
103
|
+
import '../icons/QuestionCircleStrong.js';
|
|
104
|
+
import '../icons/ReactTwoTone.js';
|
|
105
|
+
import '../icons/Recycling.js';
|
|
106
|
+
import '../icons/Remove.js';
|
|
107
|
+
import '../icons/Restart.js';
|
|
108
|
+
import '../icons/RightArrow.js';
|
|
109
|
+
import '../icons/Roadmap.js';
|
|
110
|
+
import '../icons/RustTwoTone.js';
|
|
111
|
+
import '../icons/Satoshi.js';
|
|
112
|
+
import '../icons/SatoshiRounded.js';
|
|
113
|
+
import '../icons/Search.js';
|
|
114
|
+
import '../icons/SecurityKey.js';
|
|
115
|
+
import '../icons/Selector.js';
|
|
116
|
+
import '../icons/SemiCircleOverlap.js';
|
|
117
|
+
import '../icons/Share.js';
|
|
118
|
+
import '../icons/ShieldCheck.js';
|
|
119
|
+
import '../icons/Sidebar.js';
|
|
120
|
+
import '../icons/Sort.js';
|
|
121
|
+
import '../icons/StackedLines.js';
|
|
122
|
+
import '../icons/SwiftTwoTone.js';
|
|
123
|
+
import '../icons/TapSingle.js';
|
|
124
|
+
import '../icons/Team.js';
|
|
125
|
+
import '../icons/Terminal.js';
|
|
126
|
+
import '../icons/Trash.js';
|
|
127
|
+
import '../icons/TwoArrowsDown.js';
|
|
128
|
+
import '../icons/TwoArrowsUp.js';
|
|
129
|
+
import '../icons/Uma.js';
|
|
130
|
+
import '../icons/UmaBridgeLoading.js';
|
|
131
|
+
import '../icons/Upload.js';
|
|
132
|
+
import '../icons/WalletSDKIcon.js';
|
|
133
|
+
import '../icons/WarningSign.js';
|
|
2
134
|
|
|
3
|
-
type
|
|
4
|
-
type BadgeProps = {
|
|
5
|
-
|
|
6
|
-
|
|
135
|
+
type BadgeKind = "danger" | "default";
|
|
136
|
+
type BadgeProps<T extends TypographyTypeKey> = {
|
|
137
|
+
content?: ToReactNodesArgs<T> | undefined;
|
|
138
|
+
kind?: BadgeKind | undefined;
|
|
7
139
|
ml?: 0 | 4 | 6;
|
|
8
140
|
mr?: 0 | 4 | 6;
|
|
141
|
+
block?: boolean;
|
|
142
|
+
size?: "sm" | "lg";
|
|
143
|
+
icon?: {
|
|
144
|
+
name: IconName;
|
|
145
|
+
color?: FontColorKey | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
typography?: SimpleTypographyProps;
|
|
9
148
|
};
|
|
10
|
-
declare function Badge({
|
|
11
|
-
declare const
|
|
149
|
+
declare function Badge<T extends TypographyTypeKey>({ content: contentProp, kind, icon, ml, mr, size, block, typography: typographyProp, }: BadgeProps<T>): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
150
|
+
declare const badgeSmVPadding = 2;
|
|
12
151
|
|
|
13
|
-
export { Badge, BadgeProps,
|
|
152
|
+
export { Badge, BadgeProps, badgeSmVPadding };
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Badge,
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-HP4VPMN7.js";
|
|
17
|
-
import "../chunk-PNSZAJL7.js";
|
|
3
|
+
badgeSmVPadding
|
|
4
|
+
} from "../chunk-VWD7T5MQ.js";
|
|
5
|
+
import "../chunk-ZO35RX7V.js";
|
|
6
|
+
import "../chunk-LGXMGWLV.js";
|
|
7
|
+
import "../chunk-V523QTZQ.js";
|
|
8
|
+
import "../chunk-YRZ3VNBI.js";
|
|
9
|
+
import "../chunk-HPZVUEDJ.js";
|
|
10
|
+
import "../chunk-7COKMITX.js";
|
|
11
|
+
import "../chunk-DIKOS5R6.js";
|
|
12
|
+
import "../chunk-AZOVE32P.js";
|
|
13
|
+
import "../chunk-HVDX4OZJ.js";
|
|
14
|
+
import "../chunk-OMY3WTAU.js";
|
|
15
|
+
import "../chunk-OZQ5WPLN.js";
|
|
18
16
|
import "../chunk-YMNSXZ5D.js";
|
|
19
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-7BSME2ZU.js";
|
|
18
|
+
import "../chunk-4X67A2CS.js";
|
|
20
19
|
import "../chunk-OPV246QW.js";
|
|
21
20
|
import "../chunk-AAFUVYVP.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-KFX7US6Y.js";
|
|
25
|
-
import "../chunk-KBYU4ZQ3.js";
|
|
21
|
+
import "../chunk-OUHQXQOJ.js";
|
|
22
|
+
import "../chunk-TNDSUTUN.js";
|
|
26
23
|
import "../chunk-EDN2QDCB.js";
|
|
27
24
|
import "../chunk-FT62PIPN.js";
|
|
28
25
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -137,8 +134,8 @@ import "../chunk-VI6WTKMV.js";
|
|
|
137
134
|
import "../chunk-QW2INB5A.js";
|
|
138
135
|
import "../chunk-JLD7MGLC.js";
|
|
139
136
|
import "../chunk-DW6LFUI2.js";
|
|
140
|
-
import "../chunk-
|
|
141
|
-
import "../chunk-
|
|
137
|
+
import "../chunk-CZFFMEAS.js";
|
|
138
|
+
import "../chunk-VNQE6KEX.js";
|
|
142
139
|
import "../chunk-ENBUKLVT.js";
|
|
143
140
|
import "../chunk-JSGRNWSB.js";
|
|
144
141
|
import "../chunk-FO7I4E45.js";
|
|
@@ -146,5 +143,5 @@ import "../chunk-XUWFUTR4.js";
|
|
|
146
143
|
import "../chunk-LOPKRCGI.js";
|
|
147
144
|
export {
|
|
148
145
|
Badge,
|
|
149
|
-
|
|
146
|
+
badgeSmVPadding
|
|
150
147
|
};
|
|
@@ -22,6 +22,18 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
return a;
|
|
23
23
|
};
|
|
24
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
25
37
|
var __export = (target, all) => {
|
|
26
38
|
for (var name in all)
|
|
27
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -71,7 +83,7 @@ __export(Banner_exports, {
|
|
|
71
83
|
});
|
|
72
84
|
module.exports = __toCommonJS(Banner_exports);
|
|
73
85
|
var import_styled13 = __toESM(require("@emotion/styled"), 1);
|
|
74
|
-
var
|
|
86
|
+
var import_react24 = require("react");
|
|
75
87
|
|
|
76
88
|
// src/hooks/useResizeObserver.tsx
|
|
77
89
|
var import_lodash_es = require("lodash-es");
|
|
@@ -3723,6 +3735,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
3723
3735
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
3724
3736
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
3725
3737
|
buttons: defaultButtonsTheme,
|
|
3738
|
+
badge: {
|
|
3739
|
+
bg: "c05Neutral"
|
|
3740
|
+
},
|
|
3741
|
+
inputBackground: colors.white,
|
|
3726
3742
|
loading: "LoadingSpinner"
|
|
3727
3743
|
});
|
|
3728
3744
|
var lightBaseTheme = baseTheme;
|
|
@@ -3759,7 +3775,11 @@ var darkBaseTheme = {
|
|
|
3759
3775
|
vlcNeutral: colors.gray20,
|
|
3760
3776
|
warning: colors.warning,
|
|
3761
3777
|
buttons: defaultButtonsTheme,
|
|
3762
|
-
loading: "LoadingSpinner"
|
|
3778
|
+
loading: "LoadingSpinner",
|
|
3779
|
+
inputBackground: colors.black,
|
|
3780
|
+
badge: {
|
|
3781
|
+
bg: "c15Neutral"
|
|
3782
|
+
}
|
|
3763
3783
|
};
|
|
3764
3784
|
var lightTheme = extend(lightBaseTheme, {
|
|
3765
3785
|
header: extendBase(lightBaseTheme, {
|
|
@@ -3798,6 +3818,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
3798
3818
|
secondary: colors.grayBlue43,
|
|
3799
3819
|
text: colors.grayBlue9,
|
|
3800
3820
|
link: colors.blue39,
|
|
3821
|
+
inputBackground: colors.white,
|
|
3801
3822
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
3802
3823
|
main: "Manrope",
|
|
3803
3824
|
code: "Monaco"
|
|
@@ -3874,7 +3895,10 @@ var bridgeBaseSettings = {
|
|
|
3874
3895
|
defaultBorderWidth: 1
|
|
3875
3896
|
}
|
|
3876
3897
|
}
|
|
3877
|
-
})
|
|
3898
|
+
}),
|
|
3899
|
+
badge: {
|
|
3900
|
+
bg: "grayBlue94"
|
|
3901
|
+
}
|
|
3878
3902
|
};
|
|
3879
3903
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3880
3904
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -3882,7 +3906,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
3882
3906
|
bg: colors.gray98,
|
|
3883
3907
|
smBg: colors.gray98,
|
|
3884
3908
|
text: colors.grayBlue9,
|
|
3885
|
-
secondary: colors.grayBlue43
|
|
3909
|
+
secondary: colors.grayBlue43,
|
|
3910
|
+
inputBackground: colors.white
|
|
3886
3911
|
}));
|
|
3887
3912
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
3888
3913
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -3943,7 +3968,11 @@ var z = {
|
|
|
3943
3968
|
};
|
|
3944
3969
|
|
|
3945
3970
|
// src/utils/toReactNodes.tsx
|
|
3946
|
-
var
|
|
3971
|
+
var import_lodash_es5 = require("lodash-es");
|
|
3972
|
+
var import_react23 = require("react");
|
|
3973
|
+
|
|
3974
|
+
// src/components/typography/renderTypography.tsx
|
|
3975
|
+
var import_react22 = __toESM(require("react"), 1);
|
|
3947
3976
|
|
|
3948
3977
|
// src/components/typography/Body.tsx
|
|
3949
3978
|
var import_styled3 = __toESM(require("@emotion/styled"), 1);
|
|
@@ -7921,7 +7950,7 @@ var IconContainer = import_styled2.default.span`
|
|
|
7921
7950
|
${({ theme, fontColor }) => {
|
|
7922
7951
|
const color = getFontColor(theme, fontColor, "inherit");
|
|
7923
7952
|
return `
|
|
7924
|
-
|
|
7953
|
+
svg, path {
|
|
7925
7954
|
color: ${getFontColor(theme, fontColor, "inherit")};
|
|
7926
7955
|
|
|
7927
7956
|
/*
|
|
@@ -8002,6 +8031,7 @@ function toNonTypographicReactNodes(toNonTypographicReactNodesArg) {
|
|
|
8002
8031
|
Link,
|
|
8003
8032
|
{
|
|
8004
8033
|
to: node.to,
|
|
8034
|
+
newTab: !!node.newTab,
|
|
8005
8035
|
children: node.text
|
|
8006
8036
|
},
|
|
8007
8037
|
`link-${i}-${node.text.substr(0, 10)}`
|
|
@@ -8285,7 +8315,6 @@ var StyledTitle = import_styled12.default.span`
|
|
|
8285
8315
|
`;
|
|
8286
8316
|
|
|
8287
8317
|
// src/components/typography/renderTypography.tsx
|
|
8288
|
-
var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
|
|
8289
8318
|
var typographyMap = {
|
|
8290
8319
|
Display,
|
|
8291
8320
|
Headline,
|
|
@@ -8297,34 +8326,34 @@ var typographyMap = {
|
|
|
8297
8326
|
"Label Strong": LabelStrong,
|
|
8298
8327
|
Overline,
|
|
8299
8328
|
Code: Code2,
|
|
8300
|
-
"Code Strong":
|
|
8329
|
+
"Code Strong": Code2
|
|
8301
8330
|
};
|
|
8302
8331
|
var renderTypography = (type, props) => {
|
|
8303
8332
|
const TypographyComponent = typographyMap[type];
|
|
8304
|
-
|
|
8333
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
8334
|
+
return import_react22.default.createElement(TypographyComponent, rest, children);
|
|
8305
8335
|
};
|
|
8306
8336
|
|
|
8307
8337
|
// src/utils/toReactNodes.tsx
|
|
8308
|
-
var
|
|
8338
|
+
var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
|
|
8309
8339
|
function toReactNodes(toReactNodesArg) {
|
|
8310
8340
|
const toReactNodesArray = Array.isArray(toReactNodesArg) ? toReactNodesArg : [toReactNodesArg];
|
|
8311
8341
|
const reactNodes = toReactNodesArray.map((node, i) => {
|
|
8312
8342
|
let content;
|
|
8313
8343
|
if (!node) {
|
|
8314
8344
|
return null;
|
|
8315
|
-
} else if (typeof node !== "string" && "typography" in node && node.typography.type
|
|
8316
|
-
|
|
8345
|
+
} else if (typeof node !== "string" && "typography" in node && node.typography.type) {
|
|
8346
|
+
const props = node.typography.props || {};
|
|
8347
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react23.Fragment, { children: renderTypography(
|
|
8317
8348
|
node.typography.type,
|
|
8318
|
-
Object.assign(
|
|
8319
|
-
content: node
|
|
8320
|
-
})
|
|
8349
|
+
Object.assign(props, { content: node })
|
|
8321
8350
|
) }, `typography-${i}-${node.text.substr(0, 10)}`);
|
|
8322
8351
|
} else {
|
|
8323
8352
|
content = toNonTypographicReactNodes(node);
|
|
8324
8353
|
}
|
|
8325
8354
|
return content || null;
|
|
8326
8355
|
});
|
|
8327
|
-
return /* @__PURE__ */ (0,
|
|
8356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react23.Fragment, { children: reactNodes });
|
|
8328
8357
|
}
|
|
8329
8358
|
|
|
8330
8359
|
// src/components/Banner/constants.ts
|
|
@@ -8332,7 +8361,7 @@ var bannerTimingSecs = 0.2;
|
|
|
8332
8361
|
var bannerTiming = `${bannerTimingSecs}s ease`;
|
|
8333
8362
|
|
|
8334
8363
|
// src/components/Banner/Banner.tsx
|
|
8335
|
-
var
|
|
8364
|
+
var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
|
|
8336
8365
|
function Banner({
|
|
8337
8366
|
content,
|
|
8338
8367
|
to,
|
|
@@ -8348,17 +8377,17 @@ function Banner({
|
|
|
8348
8377
|
hPadding = 0,
|
|
8349
8378
|
borderColor
|
|
8350
8379
|
}) {
|
|
8351
|
-
const [width, setWidth] = (0,
|
|
8352
|
-
const resizeProps = (0,
|
|
8380
|
+
const [width, setWidth] = (0, import_react24.useState)(70);
|
|
8381
|
+
const resizeProps = (0, import_react24.useMemo)(() => ["height"], []);
|
|
8353
8382
|
const { ref, rect } = useResizeObserver(resizeProps);
|
|
8354
|
-
(0,
|
|
8383
|
+
(0, import_react24.useEffect)(() => {
|
|
8355
8384
|
if (bgProgressDuration) {
|
|
8356
8385
|
setTimeout(() => {
|
|
8357
8386
|
setWidth(100);
|
|
8358
8387
|
}, 0);
|
|
8359
8388
|
}
|
|
8360
8389
|
}, [bgProgressDuration]);
|
|
8361
|
-
(0,
|
|
8390
|
+
(0, import_react24.useEffect)(() => {
|
|
8362
8391
|
if (onHeightChange && typeof (rect == null ? void 0 : rect.height) === "number") {
|
|
8363
8392
|
onHeightChange(rect.height);
|
|
8364
8393
|
}
|
|
@@ -8367,15 +8396,15 @@ function Banner({
|
|
|
8367
8396
|
if (content) {
|
|
8368
8397
|
const contentNodes = toReactNodes(content);
|
|
8369
8398
|
if (to) {
|
|
8370
|
-
contentNode = /* @__PURE__ */ (0,
|
|
8399
|
+
contentNode = /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Link, { to, children: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(BannerFlexInnerContent, { children: [
|
|
8371
8400
|
contentNodes,
|
|
8372
|
-
/* @__PURE__ */ (0,
|
|
8401
|
+
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { name: "RightArrow", width: 12, ml: 6 })
|
|
8373
8402
|
] }) });
|
|
8374
8403
|
} else {
|
|
8375
8404
|
contentNode = contentNodes;
|
|
8376
8405
|
}
|
|
8377
8406
|
}
|
|
8378
|
-
const innerContent = content ? /* @__PURE__ */ (0,
|
|
8407
|
+
const innerContent = content ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
|
|
8379
8408
|
BannerInnerContent,
|
|
8380
8409
|
{
|
|
8381
8410
|
isVisible: Boolean(content),
|
|
@@ -8384,7 +8413,7 @@ function Banner({
|
|
|
8384
8413
|
children: contentNode
|
|
8385
8414
|
}
|
|
8386
8415
|
) : null;
|
|
8387
|
-
return /* @__PURE__ */ (0,
|
|
8416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
|
|
8388
8417
|
StyledBanner,
|
|
8389
8418
|
{
|
|
8390
8419
|
colorProp: color,
|
|
@@ -8399,7 +8428,7 @@ function Banner({
|
|
|
8399
8428
|
left,
|
|
8400
8429
|
innerContent,
|
|
8401
8430
|
right,
|
|
8402
|
-
bgProgressDuration && /* @__PURE__ */ (0,
|
|
8431
|
+
bgProgressDuration && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
|
|
8403
8432
|
BannerGradientBg,
|
|
8404
8433
|
{
|
|
8405
8434
|
duration: bgProgressDuration,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { T as ThemeOrColorKey } from '../../
|
|
3
|
+
import { T as ThemeOrColorKey } from '../../themes-37e92940.js';
|
|
4
4
|
import { TypographyTypeKey } from '../../styles/tokens/typography.cjs';
|
|
5
5
|
import { NewRoutesType } from '../../types/index.cjs';
|
|
6
6
|
import { ToReactNodesArgs } from '../../utils/toReactNodes.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { T as ThemeOrColorKey } from '../../
|
|
3
|
+
import { T as ThemeOrColorKey } from '../../themes-832e46b2.js';
|
|
4
4
|
import { TypographyTypeKey } from '../../styles/tokens/typography.js';
|
|
5
5
|
import { NewRoutesType } from '../../types/index.js';
|
|
6
6
|
import { ToReactNodesArgs } from '../../utils/toReactNodes.js';
|