@lightsparkdev/ui 1.0.3 → 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 +6 -0
- package/dist/{chunk-X4TGLNCH.js → chunk-242JGEN4.js} +3 -3
- package/dist/{chunk-7N2PFDYE.js → chunk-2P6TCMZN.js} +2 -2
- package/dist/{chunk-K7FYXGOI.js → chunk-3R5KJDSL.js} +1 -1
- package/dist/{chunk-SNFRMD6Z.js → chunk-4BERRPJN.js} +3 -3
- package/dist/{chunk-LH7GLNMY.js → chunk-4KURUJD2.js} +1 -1
- package/dist/{chunk-XDP7GCYE.js → chunk-4X67A2CS.js} +1 -1
- package/dist/{chunk-QQSV7XJX.js → chunk-5F7IOIWL.js} +1 -1
- package/dist/{chunk-BENSR2YW.js → chunk-5ON3ICVC.js} +1 -1
- package/dist/{chunk-XB4KQFK2.js → chunk-642OXLAD.js} +2 -2
- package/dist/{chunk-BDZ46Z2I.js → chunk-7BSME2ZU.js} +2 -2
- package/dist/{chunk-2AGBCGOW.js → chunk-7COKMITX.js} +2 -2
- package/dist/{chunk-Y7RQUJUS.js → chunk-7OJQZEVL.js} +5 -5
- package/dist/{chunk-XM2HQVUK.js → chunk-7RLDCOUT.js} +4 -4
- package/dist/{chunk-6CNJ5ZCC.js → chunk-7RMHMFS2.js} +3 -3
- package/dist/{chunk-35PJW7RT.js → chunk-AZOVE32P.js} +2 -2
- package/dist/{chunk-BHP5YL2N.js → chunk-BAGRU7JE.js} +1 -1
- package/dist/{chunk-KX5QZXCD.js → chunk-BPGBJRZE.js} +1 -1
- package/dist/{chunk-YRNEIRHM.js → chunk-BRRDPQWW.js} +4 -4
- package/dist/{chunk-LOL5TJ3H.js → chunk-C3YODRA3.js} +15 -15
- package/dist/{chunk-2XUHQWCJ.js → chunk-C4HNAZFZ.js} +3 -3
- package/dist/{chunk-PG2W2HVB.js → chunk-CZFFMEAS.js} +1 -1
- package/dist/{chunk-MRGHRTKA.js → chunk-DIKOS5R6.js} +2 -2
- package/dist/{chunk-5TTLUOJ5.js → chunk-DNGAINGL.js} +1 -1
- package/dist/{chunk-J3YVJWRG.js → chunk-DWUP3RDU.js} +4 -4
- package/dist/chunk-E5DUKMCU.js +65 -0
- package/dist/chunk-EIFK352Q.js +27 -0
- package/dist/{chunk-UH5F35II.js → chunk-GLEAWATH.js} +3 -3
- package/dist/{chunk-7WDAN3OC.js → chunk-GQVNE3NU.js} +1 -1
- package/dist/{chunk-WGKUDRZ7.js → chunk-HPZVUEDJ.js} +2 -2
- package/dist/{chunk-GWHKALYQ.js → chunk-HVDX4OZJ.js} +2 -2
- package/dist/{chunk-LTCJ6LNO.js → chunk-JAPRGAB7.js} +1 -1
- package/dist/{chunk-JNNJVBHF.js → chunk-JH53NBOD.js} +13 -9
- package/dist/{chunk-BSH6WRUZ.js → chunk-KBLCFXNL.js} +3 -3
- package/dist/{chunk-LGKXPUSI.js → chunk-KJHREJHT.js} +2 -2
- package/dist/{chunk-E4DUADXU.js → chunk-LFD2KVAB.js} +1 -1
- package/dist/{chunk-VXKNN4SF.js → chunk-LGXMGWLV.js} +17 -16
- package/dist/{chunk-435FPPZK.js → chunk-LLGN3OM3.js} +2 -2
- package/dist/{chunk-MWDDIXIP.js → chunk-MK2JFFUG.js} +1 -1
- package/dist/{chunk-SLKPLSJU.js → chunk-MNMVZI7D.js} +10 -10
- package/dist/{chunk-WTMJTGW4.js → chunk-OMY3WTAU.js} +2 -2
- package/dist/{chunk-4C2TISN7.js → chunk-OUHQXQOJ.js} +1 -1
- package/dist/{chunk-CRTTTIAD.js → chunk-OZQ5WPLN.js} +2 -2
- package/dist/{chunk-7FHOKVKJ.js → chunk-PDQVYUEW.js} +6 -6
- package/dist/{chunk-ILEZ6AWT.js → chunk-QCHEDM2I.js} +3 -3
- package/dist/{chunk-DXA3WUSX.js → chunk-RESJONBZ.js} +2 -2
- package/dist/{chunk-7YY6BH5O.js → chunk-SZ4KKLYJ.js} +2 -2
- package/dist/{chunk-7IHNYMFQ.js → chunk-THTKSZSR.js} +2 -2
- package/dist/{chunk-I3FI3FNP.js → chunk-TNDSUTUN.js} +2 -2
- package/dist/{chunk-PQKVR2BR.js → chunk-TNISOOCF.js} +1 -1
- package/dist/{chunk-4BFBANKF.js → chunk-UNFCVZ32.js} +36 -33
- package/dist/{chunk-B6S7Y4K7.js → chunk-V523QTZQ.js} +2 -2
- package/dist/{chunk-IBZBPQMZ.js → chunk-VNQE6KEX.js} +13 -4
- package/dist/{chunk-HGOGF6I7.js → chunk-VR2GLRXH.js} +1 -1
- package/dist/chunk-VWD7T5MQ.js +74 -0
- package/dist/{chunk-54EOEIEN.js → chunk-VXH6GWGE.js} +2 -2
- package/dist/{chunk-4JHXRPRB.js → chunk-W2N5QUG6.js} +9 -6
- package/dist/{chunk-YIHC25WB.js → chunk-WDJMAZFO.js} +3 -3
- package/dist/{chunk-C4KZC45Y.js → chunk-XS4MH3QA.js} +54 -71
- package/dist/{chunk-OKXC33OU.js → chunk-YRFCWL73.js} +5 -2
- package/dist/{chunk-GSKTHUQJ.js → chunk-YRZ3VNBI.js} +2 -2
- package/dist/{chunk-N2NPIZCV.js → chunk-ZCXGHQQF.js} +9 -9
- package/dist/{chunk-LIQSJ5R7.js → chunk-ZO35RX7V.js} +21 -13
- package/dist/{chunk-RPNTFEXE.js → chunk-ZS7G6WIG.js} +1 -1
- package/dist/components/Badge.cjs +7781 -7417
- 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 +50 -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 +36 -24
- 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 +39 -27
- 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 +13 -4
- 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 +13 -4
- package/dist/components/CodeBlock.js +8 -8
- package/dist/components/CodeInput/CodeInput.cjs +13 -4
- package/dist/components/CodeInput/CodeInput.js +6 -6
- package/dist/components/CodeInput/SingleCodeInput.cjs +13 -4
- package/dist/components/CodeInput/SingleCodeInput.js +5 -5
- package/dist/components/Collapsible.cjs +78 -7
- package/dist/components/Collapsible.js +6 -6
- package/dist/components/CommaNumberInput.cjs +13 -4
- 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 +13 -4
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.cjs +13 -4
- package/dist/components/CopyToClipboardButton.js +6 -6
- package/dist/components/CurrencyAmount.cjs +13 -4
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Drawer.cjs +118 -43
- package/dist/components/Drawer.js +22 -22
- package/dist/components/Dropdown.cjs +13 -4
- 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 +13 -4
- package/dist/components/FileInput.js +10 -10
- package/dist/components/GradientCardHeader.js +5 -5
- package/dist/components/Icon/Icon.cjs +13 -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 +7347 -7340
- package/dist/components/IconWithCircleBackground.js +4 -73
- package/dist/components/InfoIconTooltip.cjs +53 -29
- 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 +13 -4
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.cjs +13 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +202 -127
- package/dist/components/Modal.d.cts +9 -9
- package/dist/components/Modal.d.ts +9 -9
- package/dist/components/Modal.js +27 -68
- package/dist/components/PageSection/PageSection.cjs +205 -97
- 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 +45 -21
- package/dist/components/PageSection/PageSectionNav.js +20 -20
- package/dist/components/PhoneInput.cjs +13 -4
- 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 +13 -4
- package/dist/components/Pill.js +7 -7
- package/dist/components/ProgressBar.cjs +13 -4
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/Radio.cjs +7406 -7335
- package/dist/components/Radio.js +8 -22
- package/dist/components/SecretContainer.cjs +13 -4
- package/dist/components/SecretContainer.js +7 -7
- package/dist/components/StatusIndicator.js +4 -4
- package/dist/components/TextButton.cjs +41 -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 +35 -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 +13 -4
- 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 +61 -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 +105 -98
- package/dist/components/Toggle.js +4 -4
- package/dist/components/Tooltip.cjs +13 -4
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +13 -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 +13 -4
- 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 +13 -4
- 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 +13 -4
- 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.js +2 -2
- package/dist/components/documentation/index.cjs +13 -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 +8341 -8176
- 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 +100 -29
- package/dist/components/typography/Article.js +14 -14
- package/dist/components/typography/Body.cjs +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +100 -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 +29 -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 +13 -4
- package/dist/styles/common.d.cts +1 -1
- package/dist/styles/common.d.ts +1 -1
- package/dist/styles/common.js +2 -2
- package/dist/styles/fields.cjs +13 -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 +13 -4
- 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 +13 -4
- 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 +13 -4
- 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-36cdd0fe.d.ts → themes-37e92940.d.ts} +91 -74
- package/dist/{buttons-35280bfe.d.ts → themes-832e46b2.d.ts} +91 -74
- package/dist/utils/toNonTypographicReactNodes.cjs +13 -4
- package/dist/utils/toNonTypographicReactNodes.d.cts +1 -1
- package/dist/utils/toNonTypographicReactNodes.d.ts +1 -1
- package/dist/utils/toNonTypographicReactNodes.js +4 -4
- package/dist/utils/toReactNodes.cjs +54 -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-SEZEDINC.js +0 -35
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import react__default, { MutableRefObject, ComponentProps } from 'react';
|
|
2
|
+
import { TypographyTypeKey } from '../styles/tokens/typography.cjs';
|
|
3
|
+
import { NewRoutesType } from '../types/index.cjs';
|
|
2
4
|
import { ToReactNodesArgs } from '../utils/toReactNodes.cjs';
|
|
3
5
|
import { Button } from './Button.cjs';
|
|
4
6
|
import { IconWithCircleBackground } from './IconWithCircleBackground.cjs';
|
|
5
7
|
import { ProgressBarProps } from './ProgressBar.cjs';
|
|
8
|
+
import '@emotion/react';
|
|
6
9
|
import '@emotion/react/jsx-runtime';
|
|
7
10
|
import './typography/renderTypography.cjs';
|
|
8
11
|
import './typography/Code.cjs';
|
|
9
12
|
import '@emotion/styled';
|
|
10
|
-
import '
|
|
11
|
-
import '../buttons-36cdd0fe.js';
|
|
12
|
-
import '../styles/tokens/typography.cjs';
|
|
13
|
+
import '../themes-37e92940.js';
|
|
13
14
|
import '@emotion/css';
|
|
14
15
|
import '../styles/colors.cjs';
|
|
15
16
|
import '../utils/toNonTypographicReactNodes.cjs';
|
|
@@ -126,7 +127,6 @@ import '../icons/UmaBridgeLoading.cjs';
|
|
|
126
127
|
import '../icons/Upload.cjs';
|
|
127
128
|
import '../icons/WalletSDKIcon.cjs';
|
|
128
129
|
import '../icons/WarningSign.cjs';
|
|
129
|
-
import '../types/index.cjs';
|
|
130
130
|
import './typography/Overline.cjs';
|
|
131
131
|
import './typography/LabelStrong.cjs';
|
|
132
132
|
import './typography/LabelModerate.cjs';
|
|
@@ -145,12 +145,12 @@ type SubmitLinkWithHref = {
|
|
|
145
145
|
};
|
|
146
146
|
type SmKind = "drawer" | "fullscreen" | "default";
|
|
147
147
|
type TopContent = ComponentProps<typeof IconWithCircleBackground>;
|
|
148
|
-
type ModalProps<
|
|
148
|
+
type ModalProps<T extends TypographyTypeKey> = {
|
|
149
149
|
visible: boolean;
|
|
150
150
|
onClose: () => void;
|
|
151
151
|
topContent?: TopContent | undefined;
|
|
152
|
-
title?: ToReactNodesArgs
|
|
153
|
-
description?: ToReactNodesArgs
|
|
152
|
+
title?: ToReactNodesArgs<T>;
|
|
153
|
+
description?: ToReactNodesArgs<T>;
|
|
154
154
|
cancelText?: string | undefined;
|
|
155
155
|
cancelDisabled?: boolean;
|
|
156
156
|
cancelHidden?: boolean;
|
|
@@ -161,7 +161,7 @@ type ModalProps<RoutesType extends string> = {
|
|
|
161
161
|
submitLoading?: boolean;
|
|
162
162
|
submitText?: string;
|
|
163
163
|
submitLink?: {
|
|
164
|
-
to:
|
|
164
|
+
to: NewRoutesType;
|
|
165
165
|
} | SubmitLinkWithHref;
|
|
166
166
|
children?: react__default.ReactNode;
|
|
167
167
|
firstFocusRef?: MutableRefObject<{
|
|
@@ -180,6 +180,6 @@ type ModalProps<RoutesType extends string> = {
|
|
|
180
180
|
/** Displays a back button at the top of the modal which calls this function */
|
|
181
181
|
handleBack?: () => void;
|
|
182
182
|
};
|
|
183
|
-
declare function Modal<
|
|
183
|
+
declare function Modal<T extends TypographyTypeKey>({ visible, topContent, title, description, children, onClose, onCancel, cancelDisabled, cancelHidden, ghost, onSubmit, submitDisabled, submitLoading, submitText, submitLink, cancelText, firstFocusRef, smKind, top, nonDismissable, autoFocus, width, progressBar, buttonLayout, extraActions, handleBack, }: ModalProps<T>): react__default.ReactPortal | null;
|
|
184
184
|
|
|
185
185
|
export { Modal };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import react__default, { MutableRefObject, ComponentProps } from 'react';
|
|
2
|
+
import { TypographyTypeKey } from '../styles/tokens/typography.js';
|
|
3
|
+
import { NewRoutesType } from '../types/index.js';
|
|
2
4
|
import { ToReactNodesArgs } from '../utils/toReactNodes.js';
|
|
3
5
|
import { Button } from './Button.js';
|
|
4
6
|
import { IconWithCircleBackground } from './IconWithCircleBackground.js';
|
|
5
7
|
import { ProgressBarProps } from './ProgressBar.js';
|
|
8
|
+
import '@emotion/react';
|
|
6
9
|
import '@emotion/react/jsx-runtime';
|
|
7
10
|
import './typography/renderTypography.js';
|
|
8
11
|
import './typography/Code.js';
|
|
9
12
|
import '@emotion/styled';
|
|
10
|
-
import '
|
|
11
|
-
import '../buttons-35280bfe.js';
|
|
12
|
-
import '../styles/tokens/typography.js';
|
|
13
|
+
import '../themes-832e46b2.js';
|
|
13
14
|
import '@emotion/css';
|
|
14
15
|
import '../styles/colors.js';
|
|
15
16
|
import '../utils/toNonTypographicReactNodes.js';
|
|
@@ -126,7 +127,6 @@ import '../icons/UmaBridgeLoading.js';
|
|
|
126
127
|
import '../icons/Upload.js';
|
|
127
128
|
import '../icons/WalletSDKIcon.js';
|
|
128
129
|
import '../icons/WarningSign.js';
|
|
129
|
-
import '../types/index.js';
|
|
130
130
|
import './typography/Overline.js';
|
|
131
131
|
import './typography/LabelStrong.js';
|
|
132
132
|
import './typography/LabelModerate.js';
|
|
@@ -145,12 +145,12 @@ type SubmitLinkWithHref = {
|
|
|
145
145
|
};
|
|
146
146
|
type SmKind = "drawer" | "fullscreen" | "default";
|
|
147
147
|
type TopContent = ComponentProps<typeof IconWithCircleBackground>;
|
|
148
|
-
type ModalProps<
|
|
148
|
+
type ModalProps<T extends TypographyTypeKey> = {
|
|
149
149
|
visible: boolean;
|
|
150
150
|
onClose: () => void;
|
|
151
151
|
topContent?: TopContent | undefined;
|
|
152
|
-
title?: ToReactNodesArgs
|
|
153
|
-
description?: ToReactNodesArgs
|
|
152
|
+
title?: ToReactNodesArgs<T>;
|
|
153
|
+
description?: ToReactNodesArgs<T>;
|
|
154
154
|
cancelText?: string | undefined;
|
|
155
155
|
cancelDisabled?: boolean;
|
|
156
156
|
cancelHidden?: boolean;
|
|
@@ -161,7 +161,7 @@ type ModalProps<RoutesType extends string> = {
|
|
|
161
161
|
submitLoading?: boolean;
|
|
162
162
|
submitText?: string;
|
|
163
163
|
submitLink?: {
|
|
164
|
-
to:
|
|
164
|
+
to: NewRoutesType;
|
|
165
165
|
} | SubmitLinkWithHref;
|
|
166
166
|
children?: react__default.ReactNode;
|
|
167
167
|
firstFocusRef?: MutableRefObject<{
|
|
@@ -180,6 +180,6 @@ type ModalProps<RoutesType extends string> = {
|
|
|
180
180
|
/** Displays a back button at the top of the modal which calls this function */
|
|
181
181
|
handleBack?: () => void;
|
|
182
182
|
};
|
|
183
|
-
declare function Modal<
|
|
183
|
+
declare function Modal<T extends TypographyTypeKey>({ visible, topContent, title, description, children, onClose, onCancel, cancelDisabled, cancelHidden, ghost, onSubmit, submitDisabled, submitLoading, submitText, submitLink, cancelText, firstFocusRef, smKind, top, nonDismissable, autoFocus, width, progressBar, buttonLayout, extraActions, handleBack, }: ModalProps<T>): react__default.ReactPortal | null;
|
|
184
184
|
|
|
185
185
|
export { Modal };
|
package/dist/components/Modal.js
CHANGED
|
@@ -1,78 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Modal
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XS4MH3QA.js";
|
|
5
5
|
import "../chunk-NBCCPGA4.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-LOL5TJ3H.js";
|
|
9
|
-
import "../chunk-LGKXPUSI.js";
|
|
10
|
-
import "../chunk-JJC2AUQ3.js";
|
|
11
|
-
import "../chunk-7FHOKVKJ.js";
|
|
12
|
-
import "../chunk-ILEZ6AWT.js";
|
|
13
|
-
import "../chunk-ZSWFGISK.js";
|
|
14
|
-
import "../chunk-E3FGOYEJ.js";
|
|
15
|
-
import "../chunk-KX5QZXCD.js";
|
|
16
|
-
import "../chunk-5KSG5D3I.js";
|
|
17
|
-
import "../chunk-54EOEIEN.js";
|
|
18
|
-
import "../chunk-OKXC33OU.js";
|
|
19
|
-
import "../chunk-DXA3WUSX.js";
|
|
20
|
-
import "../chunk-2XUHQWCJ.js";
|
|
21
|
-
import "../chunk-7YY6BH5O.js";
|
|
6
|
+
import "../chunk-VXH6GWGE.js";
|
|
7
|
+
import "../chunk-EIFK352Q.js";
|
|
22
8
|
import "../chunk-IL6J7EBZ.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-VQVEZVAG.js";
|
|
38
|
-
import "../chunk-BSH6WRUZ.js";
|
|
39
|
-
import "../chunk-J3YVJWRG.js";
|
|
40
|
-
import "../chunk-6CNJ5ZCC.js";
|
|
41
|
-
import "../chunk-SEZEDINC.js";
|
|
42
|
-
import "../chunk-B2VYAIYR.js";
|
|
43
|
-
import "../chunk-4BFBANKF.js";
|
|
44
|
-
import "../chunk-K7FYXGOI.js";
|
|
45
|
-
import "../chunk-Y7RQUJUS.js";
|
|
46
|
-
import "../chunk-BHP5YL2N.js";
|
|
47
|
-
import "../chunk-YIHC25WB.js";
|
|
48
|
-
import "../chunk-SLKPLSJU.js";
|
|
49
|
-
import "../chunk-VXKNN4SF.js";
|
|
50
|
-
import "../chunk-5TTLUOJ5.js";
|
|
51
|
-
import "../chunk-BDZ46Z2I.js";
|
|
52
|
-
import "../chunk-B6S7Y4K7.js";
|
|
53
|
-
import "../chunk-GSKTHUQJ.js";
|
|
54
|
-
import "../chunk-WGKUDRZ7.js";
|
|
55
|
-
import "../chunk-2AGBCGOW.js";
|
|
56
|
-
import "../chunk-MRGHRTKA.js";
|
|
57
|
-
import "../chunk-35PJW7RT.js";
|
|
58
|
-
import "../chunk-GWHKALYQ.js";
|
|
59
|
-
import "../chunk-WTMJTGW4.js";
|
|
60
|
-
import "../chunk-CRTTTIAD.js";
|
|
9
|
+
import "../chunk-JH53NBOD.js";
|
|
10
|
+
import "../chunk-ZO35RX7V.js";
|
|
11
|
+
import "../chunk-MNMVZI7D.js";
|
|
12
|
+
import "../chunk-DNGAINGL.js";
|
|
13
|
+
import "../chunk-LGXMGWLV.js";
|
|
14
|
+
import "../chunk-V523QTZQ.js";
|
|
15
|
+
import "../chunk-YRZ3VNBI.js";
|
|
16
|
+
import "../chunk-HPZVUEDJ.js";
|
|
17
|
+
import "../chunk-7COKMITX.js";
|
|
18
|
+
import "../chunk-DIKOS5R6.js";
|
|
19
|
+
import "../chunk-AZOVE32P.js";
|
|
20
|
+
import "../chunk-HVDX4OZJ.js";
|
|
21
|
+
import "../chunk-OMY3WTAU.js";
|
|
22
|
+
import "../chunk-OZQ5WPLN.js";
|
|
61
23
|
import "../chunk-YMNSXZ5D.js";
|
|
62
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-7BSME2ZU.js";
|
|
25
|
+
import "../chunk-4X67A2CS.js";
|
|
63
26
|
import "../chunk-OPV246QW.js";
|
|
64
27
|
import "../chunk-AAFUVYVP.js";
|
|
65
|
-
import "../chunk-
|
|
66
|
-
import "../chunk-
|
|
67
|
-
import "../chunk-
|
|
68
|
-
import "../chunk-X4TGLNCH.js";
|
|
69
|
-
import "../chunk-RPNTFEXE.js";
|
|
70
|
-
import "../chunk-LTCJ6LNO.js";
|
|
28
|
+
import "../chunk-OUHQXQOJ.js";
|
|
29
|
+
import "../chunk-ZS7G6WIG.js";
|
|
30
|
+
import "../chunk-JAPRGAB7.js";
|
|
71
31
|
import "../chunk-55OQPFLF.js";
|
|
72
|
-
import "../chunk-
|
|
73
|
-
import "../chunk-
|
|
74
|
-
import "../chunk-
|
|
75
|
-
import "../chunk-I3FI3FNP.js";
|
|
32
|
+
import "../chunk-E5DUKMCU.js";
|
|
33
|
+
import "../chunk-GQVNE3NU.js";
|
|
34
|
+
import "../chunk-TNDSUTUN.js";
|
|
76
35
|
import "../chunk-EDN2QDCB.js";
|
|
77
36
|
import "../chunk-FT62PIPN.js";
|
|
78
37
|
import "../chunk-5ZDDVLS6.js";
|
|
@@ -187,8 +146,8 @@ import "../chunk-VI6WTKMV.js";
|
|
|
187
146
|
import "../chunk-QW2INB5A.js";
|
|
188
147
|
import "../chunk-JLD7MGLC.js";
|
|
189
148
|
import "../chunk-DW6LFUI2.js";
|
|
190
|
-
import "../chunk-
|
|
191
|
-
import "../chunk-
|
|
149
|
+
import "../chunk-CZFFMEAS.js";
|
|
150
|
+
import "../chunk-VNQE6KEX.js";
|
|
192
151
|
import "../chunk-ENBUKLVT.js";
|
|
193
152
|
import "../chunk-JSGRNWSB.js";
|
|
194
153
|
import "../chunk-FO7I4E45.js";
|