@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
|
@@ -73,6 +73,10 @@ var baseTheme = __spreadProps(__spreadValues({}, baseThemeColors), {
|
|
|
73
73
|
typography: getTypography("Lightspark" /* Lightspark */),
|
|
74
74
|
hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
|
|
75
75
|
buttons: defaultButtonsTheme,
|
|
76
|
+
badge: {
|
|
77
|
+
bg: "c05Neutral"
|
|
78
|
+
},
|
|
79
|
+
inputBackground: colors.white,
|
|
76
80
|
loading: "LoadingSpinner"
|
|
77
81
|
});
|
|
78
82
|
var lightBaseTheme = baseTheme;
|
|
@@ -109,7 +113,11 @@ var darkBaseTheme = {
|
|
|
109
113
|
vlcNeutral: colors.gray20,
|
|
110
114
|
warning: colors.warning,
|
|
111
115
|
buttons: defaultButtonsTheme,
|
|
112
|
-
loading: "LoadingSpinner"
|
|
116
|
+
loading: "LoadingSpinner",
|
|
117
|
+
inputBackground: colors.black,
|
|
118
|
+
badge: {
|
|
119
|
+
bg: "c15Neutral"
|
|
120
|
+
}
|
|
113
121
|
};
|
|
114
122
|
var lightTheme = extend(lightBaseTheme, {
|
|
115
123
|
header: extendBase(lightBaseTheme, {
|
|
@@ -148,6 +156,7 @@ var umameDocsLightTheme = extend(lightTheme, {
|
|
|
148
156
|
secondary: colors.grayBlue43,
|
|
149
157
|
text: colors.grayBlue9,
|
|
150
158
|
link: colors.blue39,
|
|
159
|
+
inputBackground: colors.white,
|
|
151
160
|
typography: getTypography("UmameDocs" /* UmameDocs */, {
|
|
152
161
|
main: "Manrope",
|
|
153
162
|
code: "Monaco"
|
|
@@ -224,7 +233,10 @@ var bridgeBaseSettings = {
|
|
|
224
233
|
defaultBorderWidth: 1
|
|
225
234
|
}
|
|
226
235
|
}
|
|
227
|
-
})
|
|
236
|
+
}),
|
|
237
|
+
badge: {
|
|
238
|
+
bg: "grayBlue94"
|
|
239
|
+
}
|
|
228
240
|
};
|
|
229
241
|
var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
230
242
|
type: "bridgeLight" /* BridgeLight */,
|
|
@@ -232,7 +244,8 @@ var bridgeLightTheme = extend(lightTheme, __spreadProps(__spreadValues({}, bridg
|
|
|
232
244
|
bg: colors.gray98,
|
|
233
245
|
smBg: colors.gray98,
|
|
234
246
|
text: colors.grayBlue9,
|
|
235
|
-
secondary: colors.grayBlue43
|
|
247
|
+
secondary: colors.grayBlue43,
|
|
248
|
+
inputBackground: colors.white
|
|
236
249
|
}));
|
|
237
250
|
var bridgeDarkTheme = extend(darkTheme, __spreadProps(__spreadValues({}, bridgeBaseSettings), {
|
|
238
251
|
type: "bridgeDark" /* BridgeDark */
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
setDefaultReactNodesTypography,
|
|
3
|
+
toReactNodes
|
|
4
|
+
} from "./chunk-ZO35RX7V.js";
|
|
5
|
+
import {
|
|
6
|
+
Icon
|
|
7
|
+
} from "./chunk-TNDSUTUN.js";
|
|
8
|
+
import {
|
|
9
|
+
standardBorderRadius
|
|
10
|
+
} from "./chunk-CZFFMEAS.js";
|
|
11
|
+
import {
|
|
12
|
+
getColor
|
|
13
|
+
} from "./chunk-VNQE6KEX.js";
|
|
14
|
+
|
|
15
|
+
// src/components/Badge.tsx
|
|
16
|
+
import styled from "@emotion/styled";
|
|
17
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
18
|
+
function Badge({
|
|
19
|
+
content: contentProp,
|
|
20
|
+
kind,
|
|
21
|
+
icon,
|
|
22
|
+
ml = 0,
|
|
23
|
+
mr = 0,
|
|
24
|
+
size = "sm",
|
|
25
|
+
block = false,
|
|
26
|
+
typography: typographyProp
|
|
27
|
+
}) {
|
|
28
|
+
const typography = {
|
|
29
|
+
type: (typographyProp == null ? void 0 : typographyProp.type) || "Label Moderate",
|
|
30
|
+
props: {
|
|
31
|
+
size: (typographyProp == null ? void 0 : typographyProp.size) || "Small",
|
|
32
|
+
color: (typographyProp == null ? void 0 : typographyProp.color) || (kind === "danger" ? "danger" : "text")
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const typographyMap = {
|
|
36
|
+
link: typography,
|
|
37
|
+
externalLink: typography,
|
|
38
|
+
text: typography,
|
|
39
|
+
nextLink: typography
|
|
40
|
+
};
|
|
41
|
+
let content = setDefaultReactNodesTypography(
|
|
42
|
+
contentProp,
|
|
43
|
+
typographyMap
|
|
44
|
+
);
|
|
45
|
+
content = toReactNodes(content);
|
|
46
|
+
return contentProp ? /* @__PURE__ */ jsxs(StyledBadge, { kind, ml, size, block, children: [
|
|
47
|
+
icon ? /* @__PURE__ */ jsx(Icon, { name: icon.name, width: 20, color: icon.color }) : null,
|
|
48
|
+
/* @__PURE__ */ jsx(BadgeContent, { children: content })
|
|
49
|
+
] }) : null;
|
|
50
|
+
}
|
|
51
|
+
var badgeSmVPadding = 2;
|
|
52
|
+
var badgeSmHPadding = 6;
|
|
53
|
+
var StyledBadge = styled.div`
|
|
54
|
+
${({ size }) => standardBorderRadius(size === "sm" ? 4 : 12)}
|
|
55
|
+
${({ ml }) => ml === 0 ? "" : `margin-left: ${ml}px;`}
|
|
56
|
+
|
|
57
|
+
display: ${({ block }) => block ? "flex" : "inline-flex"};
|
|
58
|
+
gap: ${({ size }) => size === "sm" ? badgeSmHPadding : 12}px;
|
|
59
|
+
align-items: center;
|
|
60
|
+
padding: ${({ size }) => size === "sm" ? `${badgeSmVPadding}px ${badgeSmHPadding}px` : "12px 16px"};
|
|
61
|
+
background-color: ${({ theme, kind }) => {
|
|
62
|
+
if (kind === "danger") {
|
|
63
|
+
return getColor(theme, "red42a10");
|
|
64
|
+
} else {
|
|
65
|
+
return getColor(theme, theme.badge.bg);
|
|
66
|
+
}
|
|
67
|
+
}};
|
|
68
|
+
`;
|
|
69
|
+
var BadgeContent = styled.div``;
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
Badge,
|
|
73
|
+
badgeSmVPadding
|
|
74
|
+
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Spacing
|
|
3
|
+
} from "./chunk-E5DUKMCU.js";
|
|
1
4
|
import {
|
|
2
5
|
overflowAutoWithoutScrollbars
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GQVNE3NU.js";
|
|
4
7
|
import {
|
|
5
8
|
Icon
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TNDSUTUN.js";
|
|
7
10
|
import {
|
|
8
11
|
standardBorderRadius
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CZFFMEAS.js";
|
|
10
13
|
|
|
11
14
|
// src/components/Collapsible.tsx
|
|
12
15
|
import styled from "@emotion/styled";
|
|
@@ -118,9 +121,9 @@ var CollapsingContainer = styled.div`
|
|
|
118
121
|
}
|
|
119
122
|
`;
|
|
120
123
|
var InnerPadding = styled.div`
|
|
121
|
-
padding: ${"
|
|
122
|
-
${(props) => props.contentIndent ?
|
|
123
|
-
gap: ${"
|
|
124
|
+
padding: ${Spacing.px["3xs"]} 0 ${Spacing.px["3xs"]}
|
|
125
|
+
${(props) => props.contentIndent ? Spacing.px.md : "0"};
|
|
126
|
+
gap: ${Spacing.px["4xs"]};
|
|
124
127
|
display: flex;
|
|
125
128
|
flex-direction: column;
|
|
126
129
|
`;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MNMVZI7D.js";
|
|
4
4
|
import {
|
|
5
5
|
overflowAutoWithoutScrollbars
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GQVNE3NU.js";
|
|
7
7
|
import {
|
|
8
8
|
standardContentInset
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CZFFMEAS.js";
|
|
10
10
|
import {
|
|
11
11
|
bp
|
|
12
12
|
} from "./chunk-JSGRNWSB.js";
|
|
@@ -3,51 +3,51 @@ import {
|
|
|
3
3
|
} from "./chunk-NBCCPGA4.js";
|
|
4
4
|
import {
|
|
5
5
|
ProgressBar
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VXH6GWGE.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
toReactNodes
|
|
12
|
-
} from "./chunk-UVGBD7XM.js";
|
|
8
|
+
IconWithCircleBackground
|
|
9
|
+
} from "./chunk-EIFK352Q.js";
|
|
13
10
|
import {
|
|
14
11
|
Drawer
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JH53NBOD.js";
|
|
13
|
+
import {
|
|
14
|
+
toReactNodes
|
|
15
|
+
} from "./chunk-ZO35RX7V.js";
|
|
16
16
|
import {
|
|
17
17
|
Button,
|
|
18
18
|
ButtonSelector
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MNMVZI7D.js";
|
|
20
20
|
import {
|
|
21
21
|
Body
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HVDX4OZJ.js";
|
|
23
23
|
import {
|
|
24
24
|
Headline,
|
|
25
25
|
headlineSelector
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OZQ5WPLN.js";
|
|
27
27
|
import {
|
|
28
28
|
select
|
|
29
29
|
} from "./chunk-YMNSXZ5D.js";
|
|
30
30
|
import {
|
|
31
31
|
UnstyledButton
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JAPRGAB7.js";
|
|
33
33
|
import {
|
|
34
34
|
z
|
|
35
35
|
} from "./chunk-55OQPFLF.js";
|
|
36
|
+
import {
|
|
37
|
+
Spacing
|
|
38
|
+
} from "./chunk-E5DUKMCU.js";
|
|
36
39
|
import {
|
|
37
40
|
overflowAutoWithoutScrollbars
|
|
38
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GQVNE3NU.js";
|
|
39
42
|
import {
|
|
40
43
|
Icon
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TNDSUTUN.js";
|
|
42
45
|
import {
|
|
43
46
|
overlaySurface,
|
|
44
47
|
standardBorderRadius,
|
|
45
48
|
standardContentInset,
|
|
46
49
|
standardFocusOutline
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import {
|
|
49
|
-
getColor
|
|
50
|
-
} from "./chunk-A4JZESAS.js";
|
|
50
|
+
} from "./chunk-CZFFMEAS.js";
|
|
51
51
|
import {
|
|
52
52
|
TokenSize
|
|
53
53
|
} from "./chunk-ENBUKLVT.js";
|
|
@@ -56,30 +56,15 @@ import {
|
|
|
56
56
|
useBreakpoints
|
|
57
57
|
} from "./chunk-JSGRNWSB.js";
|
|
58
58
|
import {
|
|
59
|
+
__objRest,
|
|
59
60
|
__spreadValues
|
|
60
61
|
} from "./chunk-LOPKRCGI.js";
|
|
61
62
|
|
|
62
63
|
// src/components/Modal.tsx
|
|
63
|
-
import
|
|
64
|
+
import styled from "@emotion/styled";
|
|
64
65
|
import React, { Fragment, useEffect, useLayoutEffect, useRef } from "react";
|
|
65
66
|
import ReactDOM from "react-dom";
|
|
66
|
-
|
|
67
|
-
// src/components/IconWithCircleBackground.tsx
|
|
68
|
-
import styled from "@emotion/styled";
|
|
69
|
-
import { jsx } from "@emotion/react/jsx-runtime";
|
|
70
|
-
function IconWithCircleBackground({
|
|
71
|
-
iconName = "WarningSign"
|
|
72
|
-
}) {
|
|
73
|
-
return /* @__PURE__ */ jsx(Flex, { center: true, children: /* @__PURE__ */ jsx(StyledIconWithCircleBackground, { children: /* @__PURE__ */ jsx(Icon, { name: iconName, width: 40, color: "grayBlue9" }) }) });
|
|
74
|
-
}
|
|
75
|
-
var StyledIconWithCircleBackground = styled.div`
|
|
76
|
-
background-color: ${({ theme }) => getColor(theme, "grayBlue94")};
|
|
77
|
-
border-radius: 50%;
|
|
78
|
-
padding: 20px;
|
|
79
|
-
`;
|
|
80
|
-
|
|
81
|
-
// src/components/Modal.tsx
|
|
82
|
-
import { Fragment as Fragment2, jsx as jsx2, jsxs } from "@emotion/react/jsx-runtime";
|
|
67
|
+
import { Fragment as Fragment2, jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
83
68
|
function isSubmitLinkWithHref(submitLink) {
|
|
84
69
|
return Boolean(submitLink && "href" in submitLink);
|
|
85
70
|
}
|
|
@@ -101,13 +86,15 @@ function Modal({
|
|
|
101
86
|
submitLink,
|
|
102
87
|
cancelText = "Cancel",
|
|
103
88
|
firstFocusRef,
|
|
104
|
-
|
|
89
|
+
smKind = "default",
|
|
90
|
+
top,
|
|
105
91
|
nonDismissable = false,
|
|
106
92
|
autoFocus = true,
|
|
107
93
|
width = 460,
|
|
108
94
|
progressBar,
|
|
109
95
|
buttonLayout = "horizontal",
|
|
110
|
-
extraActions
|
|
96
|
+
extraActions,
|
|
97
|
+
handleBack
|
|
111
98
|
}) {
|
|
112
99
|
const visibleChangedRef = useRef(false);
|
|
113
100
|
const nodeRef = useRef(null);
|
|
@@ -208,8 +195,11 @@ function Modal({
|
|
|
208
195
|
const linkIsHref = isSubmitLinkWithHref(submitLink);
|
|
209
196
|
const linkIsRoute = !linkIsHref && submitLink;
|
|
210
197
|
const buttonContent = /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
211
|
-
extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((
|
|
212
|
-
|
|
198
|
+
extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "above").map((_a, i) => {
|
|
199
|
+
var _b = _a, { placement, text } = _b, rest = __objRest(_b, ["placement", "text"]);
|
|
200
|
+
return /* @__PURE__ */ jsx(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
|
|
201
|
+
}),
|
|
202
|
+
!isSm && !cancelHidden && /* @__PURE__ */ jsx(
|
|
213
203
|
Button,
|
|
214
204
|
{
|
|
215
205
|
disabled: cancelDisabled,
|
|
@@ -217,7 +207,7 @@ function Modal({
|
|
|
217
207
|
text: cancelText
|
|
218
208
|
}
|
|
219
209
|
),
|
|
220
|
-
(onSubmit || submitLink) && /* @__PURE__ */
|
|
210
|
+
(onSubmit || submitLink) && /* @__PURE__ */ jsx(
|
|
221
211
|
Button,
|
|
222
212
|
{
|
|
223
213
|
kind: "primary",
|
|
@@ -231,13 +221,16 @@ function Modal({
|
|
|
231
221
|
onClick: submitLink ? onSubmit : void 0
|
|
232
222
|
}
|
|
233
223
|
),
|
|
234
|
-
isSm && !cancelHidden && /* @__PURE__ */
|
|
235
|
-
extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((
|
|
224
|
+
isSm && !cancelHidden && /* @__PURE__ */ jsx(Button, { onClick: onClose, text: cancelText }),
|
|
225
|
+
extraActions == null ? void 0 : extraActions.filter((action) => action.placement === "below").map((_c, i) => {
|
|
226
|
+
var _d = _c, { placement, text } = _d, rest = __objRest(_d, ["placement", "text"]);
|
|
227
|
+
return /* @__PURE__ */ jsx(Button, __spreadValues({ text }, rest), text || `no-text-${i}`);
|
|
228
|
+
})
|
|
236
229
|
] });
|
|
237
230
|
let titleContent = null;
|
|
238
231
|
if (title) {
|
|
239
232
|
if (typeof title === "string") {
|
|
240
|
-
titleContent = /* @__PURE__ */
|
|
233
|
+
titleContent = /* @__PURE__ */ jsx(Headline, { heading: "h4", size: TokenSize.Small, children: title });
|
|
241
234
|
} else {
|
|
242
235
|
titleContent = toReactNodes(title);
|
|
243
236
|
}
|
|
@@ -245,17 +238,17 @@ function Modal({
|
|
|
245
238
|
let descriptionContent = null;
|
|
246
239
|
if (description) {
|
|
247
240
|
if (typeof description === "string") {
|
|
248
|
-
descriptionContent = /* @__PURE__ */
|
|
241
|
+
descriptionContent = /* @__PURE__ */ jsx(Description, { children: /* @__PURE__ */ jsx(Body, { size: "ExtraSmall", content: description }) });
|
|
249
242
|
} else {
|
|
250
|
-
descriptionContent = /* @__PURE__ */
|
|
243
|
+
descriptionContent = /* @__PURE__ */ jsx(Description, { children: toReactNodes(description) });
|
|
251
244
|
}
|
|
252
245
|
}
|
|
253
246
|
let topContentNode = null;
|
|
254
247
|
if (topContent) {
|
|
255
|
-
topContentNode = /* @__PURE__ */
|
|
248
|
+
topContentNode = /* @__PURE__ */ jsx("div", { css: { marginBottom: Spacing.px.xl }, children: /* @__PURE__ */ jsx(IconWithCircleBackground, __spreadValues({}, topContent)) });
|
|
256
249
|
}
|
|
257
250
|
const modalContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
258
|
-
progressBar ? /* @__PURE__ */
|
|
251
|
+
progressBar ? /* @__PURE__ */ jsx("div", { css: { marginBottom: "20px" }, children: /* @__PURE__ */ jsx(
|
|
259
252
|
ProgressBar,
|
|
260
253
|
{
|
|
261
254
|
progressPercentage: progressBar.progressPercentage,
|
|
@@ -266,15 +259,24 @@ function Modal({
|
|
|
266
259
|
titleContent,
|
|
267
260
|
descriptionContent,
|
|
268
261
|
children,
|
|
269
|
-
onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */
|
|
262
|
+
onSubmit || onCancel || submitLink ? buttonLayout === "horizontal" ? /* @__PURE__ */ jsx(ModalButtonRow, { children: buttonContent }) : /* @__PURE__ */ jsx(ModalButtonColumn, { children: buttonContent }) : null
|
|
270
263
|
] });
|
|
271
264
|
let content;
|
|
272
|
-
if (
|
|
273
|
-
content = /* @__PURE__ */
|
|
265
|
+
if (smKind === "drawer" && isSm) {
|
|
266
|
+
content = /* @__PURE__ */ jsx(
|
|
267
|
+
Drawer,
|
|
268
|
+
{
|
|
269
|
+
onClose: () => onClickCloseButton(),
|
|
270
|
+
closeButton: true,
|
|
271
|
+
nonDismissable,
|
|
272
|
+
handleBack,
|
|
273
|
+
children: modalContent
|
|
274
|
+
}
|
|
275
|
+
);
|
|
274
276
|
} else {
|
|
275
277
|
content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
+
!(smKind === "fullscreen" && bp2.isSm()) ? /* @__PURE__ */ jsx(ModalOverlay, { ref: overlayRef }) : null,
|
|
279
|
+
/* @__PURE__ */ jsx(
|
|
278
280
|
ModalContainer,
|
|
279
281
|
{
|
|
280
282
|
"aria-modal": true,
|
|
@@ -282,27 +284,31 @@ function Modal({
|
|
|
282
284
|
tabIndex: -1,
|
|
283
285
|
role: "dialog",
|
|
284
286
|
ref: modalContainerRef,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
!
|
|
288
|
-
/* @__PURE__ */
|
|
287
|
+
top: top || (smKind === "default" ? standardContentInset.smPx : 0),
|
|
288
|
+
children: /* @__PURE__ */ jsxs(ModalContent, { width, ghost, smKind, children: [
|
|
289
|
+
!firstFocusRef && /* @__PURE__ */ jsx(DefaultFocusTarget, { ref: defaultFirstFocusRefCb }),
|
|
290
|
+
!ghost && /* @__PURE__ */ jsxs(ModalNavigation, { children: [
|
|
291
|
+
handleBack && /* @__PURE__ */ jsx(BackButton, { onClick: handleBack, children: /* @__PURE__ */ jsx(Icon, { name: "ChevronLeft", width: 16 }) }),
|
|
292
|
+
!nonDismissable && /* @__PURE__ */ jsx(CloseButton, { onClick: onClickCloseButton, type: "button", children: /* @__PURE__ */ jsx(Icon, { name: "Close", width: 9 }) })
|
|
293
|
+
] }),
|
|
294
|
+
/* @__PURE__ */ jsx(ModalContentInner, { ghost, children: modalContent })
|
|
289
295
|
] })
|
|
290
296
|
}
|
|
291
297
|
)
|
|
292
298
|
] });
|
|
293
299
|
}
|
|
294
300
|
return visible && nodeReady && nodeRef.current ? ReactDOM.createPortal(
|
|
295
|
-
onSubmit ? /* @__PURE__ */
|
|
301
|
+
onSubmit ? /* @__PURE__ */ jsx("form", { onSubmit: onSubmitForm, children: content }) : content,
|
|
296
302
|
nodeRef.current
|
|
297
303
|
) : null;
|
|
298
304
|
}
|
|
299
|
-
var DefaultFocusTarget =
|
|
305
|
+
var DefaultFocusTarget = styled(UnstyledButton)`
|
|
300
306
|
position: absolute;
|
|
301
307
|
top: -30px;
|
|
302
308
|
width: 0;
|
|
303
309
|
height: 0;
|
|
304
310
|
`;
|
|
305
|
-
var ModalOverlay =
|
|
311
|
+
var ModalOverlay = styled.div`
|
|
306
312
|
position: fixed;
|
|
307
313
|
bottom: 0;
|
|
308
314
|
left: 0;
|
|
@@ -311,7 +317,7 @@ var ModalOverlay = styled2.div`
|
|
|
311
317
|
height: 100vh;
|
|
312
318
|
background: rgba(0, 0, 0, 0.5);
|
|
313
319
|
`;
|
|
314
|
-
var ModalContainer =
|
|
320
|
+
var ModalContainer = styled.div`
|
|
315
321
|
pointer-events: none;
|
|
316
322
|
position: fixed;
|
|
317
323
|
top: 0;
|
|
@@ -326,18 +332,18 @@ var ModalContainer = styled2.div`
|
|
|
326
332
|
justify-content: center;
|
|
327
333
|
align-items: center;
|
|
328
334
|
color: ${({ theme }) => theme.text};
|
|
329
|
-
|
|
335
|
+
${(props) => `top: ${props.top}px;`}
|
|
330
336
|
`;
|
|
331
337
|
var contentTopMarginPx = 24;
|
|
332
|
-
var Description =
|
|
338
|
+
var Description = styled.div`
|
|
333
339
|
color: ${({ theme }) => theme.mcNeutral};
|
|
334
|
-
margin-top: ${
|
|
340
|
+
margin-top: ${Spacing.px.sm};
|
|
335
341
|
& + * {
|
|
336
342
|
margin-top: ${contentTopMarginPx}px;
|
|
337
343
|
}
|
|
338
344
|
`;
|
|
339
|
-
var ModalButtonRow =
|
|
340
|
-
margin-top: ${
|
|
345
|
+
var ModalButtonRow = styled.div`
|
|
346
|
+
margin-top: ${Spacing.px.lg};
|
|
341
347
|
${bp.minSm(`display: flex;`)}
|
|
342
348
|
gap: 10px;
|
|
343
349
|
|
|
@@ -348,28 +354,34 @@ var ModalButtonRow = styled2.div`
|
|
|
348
354
|
`)}
|
|
349
355
|
}
|
|
350
356
|
`;
|
|
351
|
-
var ModalButtonColumn =
|
|
357
|
+
var ModalButtonColumn = styled.div`
|
|
352
358
|
display: flex;
|
|
353
359
|
flex-direction: column;
|
|
354
|
-
gap: ${
|
|
360
|
+
gap: ${Spacing.px.sm};
|
|
355
361
|
|
|
356
362
|
${ButtonSelector()} {
|
|
357
363
|
width: 100%;
|
|
358
364
|
}
|
|
359
365
|
|
|
360
|
-
margin-top: ${
|
|
366
|
+
margin-top: ${Spacing.px.lg};
|
|
361
367
|
`;
|
|
362
|
-
var ModalContent =
|
|
363
|
-
${overflowAutoWithoutScrollbars}
|
|
364
|
-
${standardContentInset.smCSS}
|
|
365
|
-
${(props) => props.ghost ? "" : standardBorderRadius(16)}
|
|
366
|
-
${(props) => props.ghost ? "" : overlaySurface}
|
|
368
|
+
var ModalContent = styled.div`
|
|
367
369
|
pointer-events: auto;
|
|
368
370
|
transition: width 0.25s ease-in;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
371
|
+
|
|
372
|
+
${({ theme, smKind, ghost }) => ghost ? "" : overlaySurface({ theme, border: smKind !== "fullscreen" })}
|
|
373
|
+
${overflowAutoWithoutScrollbars}
|
|
374
|
+
${(props) => props.smKind === "fullscreen" && bp.isSm() ? `
|
|
375
|
+
width: 100%;
|
|
376
|
+
height: 100%;
|
|
377
|
+
` : `
|
|
378
|
+
${props.ghost ? "" : standardBorderRadius(16)}
|
|
379
|
+
${standardContentInset.smCSS.styles}
|
|
380
|
+
width: ${props.width}px;
|
|
381
|
+
max-width: 100%;
|
|
382
|
+
max-height: 100%;
|
|
383
|
+
position: absolute;
|
|
384
|
+
`}
|
|
373
385
|
${(props) => props.ghost ? "" : "padding: 16px 16px 40px;"}
|
|
374
386
|
|
|
375
387
|
${headlineSelector("h4")} { {
|
|
@@ -379,18 +391,24 @@ var ModalContent = styled2.div`
|
|
|
379
391
|
}
|
|
380
392
|
}
|
|
381
393
|
`;
|
|
382
|
-
var
|
|
383
|
-
display:
|
|
384
|
-
|
|
394
|
+
var ModalNavigation = styled.div`
|
|
395
|
+
display: grid;
|
|
396
|
+
grid-auto-flow: column;
|
|
385
397
|
width: 100%;
|
|
386
|
-
justify-content: flex-end;
|
|
387
398
|
`;
|
|
388
|
-
var
|
|
399
|
+
var BackButton = styled(UnstyledButton)`
|
|
389
400
|
${standardFocusOutline}
|
|
390
401
|
width: 24px;
|
|
391
402
|
height: 24px;
|
|
403
|
+
justify-self: flex-start;
|
|
392
404
|
`;
|
|
393
|
-
var
|
|
405
|
+
var CloseButton = styled(UnstyledButton)`
|
|
406
|
+
${standardFocusOutline}
|
|
407
|
+
width: 24px;
|
|
408
|
+
height: 24px;
|
|
409
|
+
justify-self: flex-end;
|
|
410
|
+
`;
|
|
411
|
+
var ModalContentInner = styled.div`
|
|
394
412
|
${(props) => props.ghost ? "" : "padding: 32px 24px 0;"}
|
|
395
413
|
${(props) => props.ghost ? "" : `${bp.sm(`
|
|
396
414
|
padding-left: 10px;
|
|
@@ -399,6 +417,5 @@ var ModalContentInner = styled2.div`
|
|
|
399
417
|
`;
|
|
400
418
|
|
|
401
419
|
export {
|
|
402
|
-
Modal
|
|
403
|
-
IconWithCircleBackground
|
|
420
|
+
Modal
|
|
404
421
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Label
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7BSME2ZU.js";
|
|
4
|
+
import {
|
|
5
|
+
Spacing
|
|
6
|
+
} from "./chunk-E5DUKMCU.js";
|
|
4
7
|
|
|
5
8
|
// src/components/Radio.tsx
|
|
6
9
|
import styled from "@emotion/styled";
|
|
@@ -37,7 +40,7 @@ var RadioContainer = styled.div`
|
|
|
37
40
|
var RadioRow = styled.label`
|
|
38
41
|
display: flex;
|
|
39
42
|
align-items: center;
|
|
40
|
-
gap: ${
|
|
43
|
+
gap: ${Spacing.px.sm};
|
|
41
44
|
`;
|
|
42
45
|
var RadioInput = styled.input``;
|
|
43
46
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toNonTypographicReactNodes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4X67A2CS.js";
|
|
4
4
|
import {
|
|
5
5
|
applyTypography
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OUHQXQOJ.js";
|
|
7
7
|
|
|
8
8
|
// src/components/typography/LabelStrong.tsx
|
|
9
9
|
import styled from "@emotion/styled";
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToggleContainer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4BERRPJN.js";
|
|
4
4
|
import {
|
|
5
5
|
InputSubtext,
|
|
6
6
|
defaultTextInputTypography,
|
|
7
7
|
inputSpacingPx,
|
|
8
8
|
textInputPlaceholderColor,
|
|
9
9
|
textInputStyle
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7RMHMFS2.js";
|
|
11
11
|
import {
|
|
12
12
|
applyTypography
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OUHQXQOJ.js";
|
|
14
14
|
import {
|
|
15
15
|
CheckboxContainer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LFD2KVAB.js";
|
|
17
17
|
import {
|
|
18
18
|
Tooltip
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZS7G6WIG.js";
|
|
20
20
|
import {
|
|
21
21
|
UnstyledButton
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JAPRGAB7.js";
|
|
23
23
|
import {
|
|
24
24
|
z
|
|
25
25
|
} from "./chunk-55OQPFLF.js";
|
|
26
26
|
import {
|
|
27
27
|
Icon,
|
|
28
28
|
IconContainer
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TNDSUTUN.js";
|
|
30
30
|
import {
|
|
31
31
|
standardBorderRadius
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CZFFMEAS.js";
|
|
33
33
|
import {
|
|
34
34
|
getFontColor
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VNQE6KEX.js";
|
|
36
36
|
import {
|
|
37
37
|
__spreadValues
|
|
38
38
|
} from "./chunk-LOPKRCGI.js";
|