@jects/jds 0.0.2-dev → 0.2.1
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/dist/{chunk-36BLFWIB.js → chunk-7WOJLKYD.js} +1269 -1267
- package/dist/chunk-7WOJLKYD.js.map +1 -0
- package/dist/index.cjs +929 -631
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -11
- package/dist/index.d.ts +7 -11
- package/dist/index.js +846 -548
- package/dist/index.js.map +1 -1
- package/dist/theme.cjs +1268 -1266
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/tokens.cjs +1268 -1266
- package/dist/tokens.cjs.map +1 -1
- package/dist/tokens.d.cts +164 -162
- package/dist/tokens.d.ts +164 -162
- package/dist/tokens.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-36BLFWIB.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -5722,7 +5722,7 @@ var ImageButton = styled9("button", {
|
|
|
5722
5722
|
inset: "-1px"
|
|
5723
5723
|
},
|
|
5724
5724
|
"&:hover::after": {
|
|
5725
|
-
backgroundColor: theme.color.semantic.curtain.dimmer,
|
|
5725
|
+
backgroundColor: theme.color.semantic.curtain.static.dimmer,
|
|
5726
5726
|
opacity: isReadonly ? 0 : 1,
|
|
5727
5727
|
cursor: isReadonly ? "default" : "pointer"
|
|
5728
5728
|
},
|
|
@@ -6039,10 +6039,7 @@ var getOverlayPositionStyles = (hasOffset, offset) => {
|
|
|
6039
6039
|
height: "auto"
|
|
6040
6040
|
};
|
|
6041
6041
|
};
|
|
6042
|
-
var getFocusVisibleStyles = (
|
|
6043
|
-
if (isEmptyPost) {
|
|
6044
|
-
return shadow(theme, "raised");
|
|
6045
|
-
}
|
|
6042
|
+
var getFocusVisibleStyles = (hasOffset, interactionParams) => {
|
|
6046
6043
|
if (!hasOffset && interactionParams.focus.boxShadow) {
|
|
6047
6044
|
return { boxShadow: interactionParams.focus.boxShadow };
|
|
6048
6045
|
}
|
|
@@ -6176,7 +6173,6 @@ var StyledCardOverlay = styled10("a", {
|
|
|
6176
6173
|
borderRadius: borderRadius > 0 ? `${borderRadius}px` : 0,
|
|
6177
6174
|
outline: "none",
|
|
6178
6175
|
pointerEvents: $isDisabled ? "none" : "auto",
|
|
6179
|
-
transition: isEmptyPost ? `box-shadow ${theme.environment.semantic.duration[150]} ${theme.environment.semantic.motion.fluent}` : void 0,
|
|
6180
6176
|
"::before": {
|
|
6181
6177
|
...interactionParams.rest["::before"],
|
|
6182
6178
|
transition: `opacity ${theme.environment.semantic.duration[150]} ${theme.environment.semantic.motion.fluent}`
|
|
@@ -6187,7 +6183,6 @@ var StyledCardOverlay = styled10("a", {
|
|
|
6187
6183
|
},
|
|
6188
6184
|
...!$isDisabled && {
|
|
6189
6185
|
"&:hover": {
|
|
6190
|
-
...isEmptyPost && shadow(theme, "raised"),
|
|
6191
6186
|
"::after": {
|
|
6192
6187
|
...interactionParams.hover["::after"],
|
|
6193
6188
|
transition: `opacity ${theme.environment.semantic.duration[100]} ${theme.environment.semantic.motion.fluent}`
|
|
@@ -6200,7 +6195,7 @@ var StyledCardOverlay = styled10("a", {
|
|
|
6200
6195
|
}
|
|
6201
6196
|
},
|
|
6202
6197
|
"&:focus-visible": {
|
|
6203
|
-
...getFocusVisibleStyles(
|
|
6198
|
+
...getFocusVisibleStyles(hasOffset, interactionParams),
|
|
6204
6199
|
"::before": {
|
|
6205
6200
|
...interactionParams.focus["::before"],
|
|
6206
6201
|
...hasOffset && { opacity: 1 }
|
|
@@ -6768,17 +6763,17 @@ var basicStyles = {
|
|
|
6768
6763
|
var feedbackStyles = {
|
|
6769
6764
|
positive: (theme) => ({
|
|
6770
6765
|
bg: theme.color.semantic.feedback.positive.alpha.subtlest,
|
|
6771
|
-
border: theme.color.semantic.feedback.positive.alpha.
|
|
6766
|
+
border: theme.color.semantic.feedback.positive.alpha.assistive,
|
|
6772
6767
|
color: theme.color.semantic.feedback.positive.normal
|
|
6773
6768
|
}),
|
|
6774
6769
|
destructive: (theme) => ({
|
|
6775
6770
|
bg: theme.color.semantic.feedback.destructive.alpha.subtlest,
|
|
6776
|
-
border: theme.color.semantic.feedback.destructive.alpha.
|
|
6771
|
+
border: theme.color.semantic.feedback.destructive.alpha.assistive,
|
|
6777
6772
|
color: theme.color.semantic.feedback.destructive.normal
|
|
6778
6773
|
}),
|
|
6779
6774
|
notifying: (theme) => ({
|
|
6780
6775
|
bg: theme.color.semantic.feedback.notifying.alpha.subtlest,
|
|
6781
|
-
border: theme.color.semantic.feedback.notifying.alpha.
|
|
6776
|
+
border: theme.color.semantic.feedback.notifying.alpha.assistive,
|
|
6782
6777
|
color: theme.color.semantic.feedback.notifying.normal
|
|
6783
6778
|
})
|
|
6784
6779
|
};
|
|
@@ -6815,15 +6810,6 @@ var calloutContentSizeMap = {
|
|
|
6815
6810
|
content: "semantic-textStyle-body-2xs-normal"
|
|
6816
6811
|
}
|
|
6817
6812
|
};
|
|
6818
|
-
var getButtonConfig = (mode) => {
|
|
6819
|
-
if (mode.feedback) {
|
|
6820
|
-
if (mode.feedback === "notifying") {
|
|
6821
|
-
return { variant: "basic", hierarchy: "primary" };
|
|
6822
|
-
}
|
|
6823
|
-
return { variant: "feedback", intent: mode.feedback };
|
|
6824
|
-
}
|
|
6825
|
-
return { variant: "basic", hierarchy: mode.hierarchy || "secondary" };
|
|
6826
|
-
};
|
|
6827
6813
|
|
|
6828
6814
|
// src/components/Callout/Callout.style.ts
|
|
6829
6815
|
var CalloutContainer = styled11.div(
|
|
@@ -7422,13 +7408,19 @@ var Callout = ({
|
|
|
7422
7408
|
}) => {
|
|
7423
7409
|
const theme = useTheme();
|
|
7424
7410
|
const styleToken = getCalloutStyleToken(theme, props);
|
|
7425
|
-
const buttonConfig = labelButtonProps && getButtonConfig(props);
|
|
7426
7411
|
const renderButton = () => {
|
|
7427
|
-
if (!
|
|
7428
|
-
if (
|
|
7429
|
-
return /* @__PURE__ */ jsx149(LabelButton.
|
|
7412
|
+
if (!labelButtonProps) return null;
|
|
7413
|
+
if (props.feedback) {
|
|
7414
|
+
return /* @__PURE__ */ jsx149(LabelButton.Basic, { hierarchy: "secondary", size, ...labelButtonProps });
|
|
7430
7415
|
}
|
|
7431
|
-
return /* @__PURE__ */ jsx149(
|
|
7416
|
+
return /* @__PURE__ */ jsx149(
|
|
7417
|
+
LabelButton.Basic,
|
|
7418
|
+
{
|
|
7419
|
+
hierarchy: props.hierarchy || "secondary",
|
|
7420
|
+
size,
|
|
7421
|
+
...labelButtonProps
|
|
7422
|
+
}
|
|
7423
|
+
);
|
|
7432
7424
|
};
|
|
7433
7425
|
return /* @__PURE__ */ jsxs20(CalloutContainer, { $size: size, $styleToken: styleToken, className, children: [
|
|
7434
7426
|
/* @__PURE__ */ jsxs20(CalloutContentDiv, { $size: size, children: [
|
|
@@ -8103,7 +8095,7 @@ var interactionStyles4 = (theme, disabled, readonly) => {
|
|
|
8103
8095
|
const makeLayer = (state) => InteractionLayer({
|
|
8104
8096
|
theme,
|
|
8105
8097
|
state,
|
|
8106
|
-
variant: "
|
|
8098
|
+
variant: "normal",
|
|
8107
8099
|
density: "assistive",
|
|
8108
8100
|
fillColor: "default",
|
|
8109
8101
|
isReadonly: disabled || readonly,
|
|
@@ -8172,7 +8164,7 @@ var FileItemWrapButton = styled14.button(
|
|
|
8172
8164
|
flexDirection: "column",
|
|
8173
8165
|
gap: theme.scheme.semantic.spacing[8],
|
|
8174
8166
|
...interaction,
|
|
8175
|
-
cursor: $disabled || $readonly ? "default" : "pointer",
|
|
8167
|
+
cursor: $disabled || $readonly || $hasError ? "default" : "pointer",
|
|
8176
8168
|
color: $hasError ? theme.color.semantic.object.bold : $disabled ? theme.color.semantic.object.subtle : theme.color.semantic.object.bold
|
|
8177
8169
|
};
|
|
8178
8170
|
}
|
|
@@ -8198,10 +8190,14 @@ var FileItemIcon = styled14(Icon)(() => {
|
|
|
8198
8190
|
color: "inherit"
|
|
8199
8191
|
};
|
|
8200
8192
|
});
|
|
8201
|
-
var FileItemLabel = styled14(Label)(({
|
|
8193
|
+
var FileItemLabel = styled14(Label)(({
|
|
8194
|
+
$disabled,
|
|
8195
|
+
$readonly,
|
|
8196
|
+
$hasError
|
|
8197
|
+
}) => {
|
|
8202
8198
|
return {
|
|
8203
8199
|
flex: "1",
|
|
8204
|
-
cursor: $disabled || $readonly ? "default" : "pointer",
|
|
8200
|
+
cursor: $disabled || $readonly || $hasError ? "default" : "pointer",
|
|
8205
8201
|
color: "inherit"
|
|
8206
8202
|
};
|
|
8207
8203
|
});
|
|
@@ -8259,6 +8255,7 @@ var FileItem = forwardRef21(
|
|
|
8259
8255
|
weight: "subtle",
|
|
8260
8256
|
$disabled: disabled,
|
|
8261
8257
|
$readonly: readonly,
|
|
8258
|
+
$hasError: hasError,
|
|
8262
8259
|
className: "file-name",
|
|
8263
8260
|
children: fileName
|
|
8264
8261
|
}
|
|
@@ -8618,22 +8615,22 @@ var getHelperTextColor = (theme, validation, disabled, readOnly) => {
|
|
|
8618
8615
|
};
|
|
8619
8616
|
var StyledFieldContainer = styled17("div", {
|
|
8620
8617
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
8621
|
-
})(({ theme
|
|
8618
|
+
})(({ theme }) => ({
|
|
8622
8619
|
display: "flex",
|
|
8623
8620
|
padding: 0,
|
|
8624
8621
|
width: "100%",
|
|
8625
|
-
flexDirection:
|
|
8626
|
-
justifyContent:
|
|
8622
|
+
flexDirection: "column",
|
|
8623
|
+
justifyContent: "center",
|
|
8627
8624
|
alignItems: "flex-start",
|
|
8628
|
-
gap:
|
|
8625
|
+
gap: theme.scheme.semantic.spacing[6]
|
|
8629
8626
|
}));
|
|
8630
8627
|
var StyledLabelContainer = styled17("div", {
|
|
8631
8628
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
8632
8629
|
})(
|
|
8633
|
-
({ theme, $
|
|
8630
|
+
({ theme, $disabled = false, $readOnly = false }) => ({
|
|
8634
8631
|
display: "flex",
|
|
8635
8632
|
padding: 0,
|
|
8636
|
-
alignItems:
|
|
8633
|
+
alignItems: "center",
|
|
8637
8634
|
alignSelf: "stretch",
|
|
8638
8635
|
gap: theme.scheme.semantic.spacing[4],
|
|
8639
8636
|
color: getLabelColor(theme, $disabled, $readOnly)
|
|
@@ -8646,16 +8643,9 @@ var StyledLabelIcon = styled17(Icon, {
|
|
|
8646
8643
|
}));
|
|
8647
8644
|
var StyledFieldLabel = styled17(Label, {
|
|
8648
8645
|
shouldForwardProp: (prop) => !prop.startsWith("$")
|
|
8649
|
-
})(
|
|
8650
|
-
(
|
|
8651
|
-
|
|
8652
|
-
...$layout === "horizontal" && {
|
|
8653
|
-
height: pxToRem(40),
|
|
8654
|
-
minWidth: pxToRem(80),
|
|
8655
|
-
maxWidth: pxToRem(120)
|
|
8656
|
-
}
|
|
8657
|
-
})
|
|
8658
|
-
);
|
|
8646
|
+
})(({ theme, $disabled, $readOnly }) => ({
|
|
8647
|
+
color: getLabelColor(theme, $disabled, $readOnly)
|
|
8648
|
+
}));
|
|
8659
8649
|
var StyledHelperText = styled17(Label, {
|
|
8660
8650
|
shouldForwardProp: (prop) => !prop.startsWith("$")
|
|
8661
8651
|
})(({ theme, $validation, $disabled, $readOnly }) => ({
|
|
@@ -8671,9 +8661,8 @@ var StyledInputColumn = styled17("div")(({ theme }) => ({
|
|
|
8671
8661
|
}));
|
|
8672
8662
|
var StyledInputRow = styled17("div", {
|
|
8673
8663
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
8674
|
-
})(({ theme, $style
|
|
8675
|
-
const
|
|
8676
|
-
const gapValue = isEmptyVertical ? 20 : 12;
|
|
8664
|
+
})(({ theme, $style }) => {
|
|
8665
|
+
const gapValue = $style === "empty" ? 20 : 12;
|
|
8677
8666
|
return {
|
|
8678
8667
|
display: "flex",
|
|
8679
8668
|
gap: theme.scheme.semantic.spacing[gapValue],
|
|
@@ -8985,7 +8974,6 @@ import { jsx as jsx154, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
|
8985
8974
|
var InputArea = forwardRef24(
|
|
8986
8975
|
({
|
|
8987
8976
|
style = "outlined",
|
|
8988
|
-
layout = "vertical",
|
|
8989
8977
|
validation = "none",
|
|
8990
8978
|
interaction = "enabled",
|
|
8991
8979
|
label,
|
|
@@ -9003,8 +8991,8 @@ var InputArea = forwardRef24(
|
|
|
9003
8991
|
const { isDisabled, isReadOnly } = getInteractionStates(interaction);
|
|
9004
8992
|
const currentLength = value.length;
|
|
9005
8993
|
const hasHelperContainer = Boolean(helperText) || Boolean(maxLength);
|
|
9006
|
-
return /* @__PURE__ */ jsxs24(StyledFieldContainer, {
|
|
9007
|
-
label && labelVisible && /* @__PURE__ */ jsxs24(StyledLabelContainer, { $
|
|
8994
|
+
return /* @__PURE__ */ jsxs24(StyledFieldContainer, { children: [
|
|
8995
|
+
label && labelVisible && /* @__PURE__ */ jsxs24(StyledLabelContainer, { $disabled: isDisabled, $readOnly: isReadOnly, children: [
|
|
9008
8996
|
/* @__PURE__ */ jsx154(
|
|
9009
8997
|
StyledFieldLabel,
|
|
9010
8998
|
{
|
|
@@ -9014,7 +9002,6 @@ var InputArea = forwardRef24(
|
|
|
9014
9002
|
weight: "normal",
|
|
9015
9003
|
$disabled: isDisabled,
|
|
9016
9004
|
$readOnly: isReadOnly,
|
|
9017
|
-
$layout: layout,
|
|
9018
9005
|
children: label
|
|
9019
9006
|
}
|
|
9020
9007
|
),
|
|
@@ -9232,7 +9219,7 @@ var StyledSelectWrapper = styled19("div", {
|
|
|
9232
9219
|
border: "none",
|
|
9233
9220
|
boxShadow: baseBorderStyle,
|
|
9234
9221
|
borderRadius: theme.scheme.semantic.radius[6],
|
|
9235
|
-
cursor: $disabled ? "not-allowed" : "pointer",
|
|
9222
|
+
cursor: $disabled ? "not-allowed" : $readOnly ? "text" : "pointer",
|
|
9236
9223
|
transition: `box-shadow ${theme.environment.semantic.duration[100]} ${theme.environment.semantic.motion.fluent}`,
|
|
9237
9224
|
"::after": {
|
|
9238
9225
|
...restStyle["::after"],
|
|
@@ -9293,7 +9280,8 @@ var StyledSelectValue = styled19("span", {
|
|
|
9293
9280
|
...theme.textStyle["semantic-textStyle-body-sm-normal"],
|
|
9294
9281
|
userSelect: "none",
|
|
9295
9282
|
overflow: "hidden",
|
|
9296
|
-
textOverflow: "ellipsis"
|
|
9283
|
+
textOverflow: "ellipsis",
|
|
9284
|
+
cursor: $readOnly ? "text" : "inherit"
|
|
9297
9285
|
};
|
|
9298
9286
|
});
|
|
9299
9287
|
var getIconColor = (theme, disabled, readOnly, isFocus) => {
|
|
@@ -9333,7 +9321,6 @@ var useFormField = () => {
|
|
|
9333
9321
|
};
|
|
9334
9322
|
var FormFieldProvider = ({
|
|
9335
9323
|
style = "outlined",
|
|
9336
|
-
layout = "vertical",
|
|
9337
9324
|
validation = "none",
|
|
9338
9325
|
interaction = "enabled",
|
|
9339
9326
|
label,
|
|
@@ -9346,7 +9333,6 @@ var FormFieldProvider = ({
|
|
|
9346
9333
|
const value = {
|
|
9347
9334
|
fieldId,
|
|
9348
9335
|
style,
|
|
9349
|
-
layout,
|
|
9350
9336
|
validation,
|
|
9351
9337
|
interaction,
|
|
9352
9338
|
isDisabled,
|
|
@@ -9362,11 +9348,11 @@ var FormFieldProvider = ({
|
|
|
9362
9348
|
// src/components/Input/shared/FormField.tsx
|
|
9363
9349
|
import { jsx as jsx156, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
9364
9350
|
var FormFieldLabel = ({ children }) => {
|
|
9365
|
-
const { fieldId, label, isWithInfoIcon,
|
|
9351
|
+
const { fieldId, label, isWithInfoIcon, isDisabled, isReadOnly } = useFormField();
|
|
9366
9352
|
if (!label && !children) {
|
|
9367
9353
|
return null;
|
|
9368
9354
|
}
|
|
9369
|
-
return /* @__PURE__ */ jsxs25(StyledLabelContainer, {
|
|
9355
|
+
return /* @__PURE__ */ jsxs25(StyledLabelContainer, { children: [
|
|
9370
9356
|
/* @__PURE__ */ jsx156(
|
|
9371
9357
|
StyledFieldLabel,
|
|
9372
9358
|
{
|
|
@@ -9376,7 +9362,6 @@ var FormFieldLabel = ({ children }) => {
|
|
|
9376
9362
|
weight: "normal",
|
|
9377
9363
|
$disabled: isDisabled,
|
|
9378
9364
|
$readOnly: isReadOnly,
|
|
9379
|
-
$layout: layout,
|
|
9380
9365
|
children: children || label
|
|
9381
9366
|
}
|
|
9382
9367
|
),
|
|
@@ -9406,7 +9391,6 @@ var FormFieldContent = ({ children }) => {
|
|
|
9406
9391
|
};
|
|
9407
9392
|
var FormField = ({
|
|
9408
9393
|
style,
|
|
9409
|
-
layout,
|
|
9410
9394
|
validation,
|
|
9411
9395
|
interaction,
|
|
9412
9396
|
label,
|
|
@@ -9418,7 +9402,6 @@ var FormField = ({
|
|
|
9418
9402
|
FormFieldProvider,
|
|
9419
9403
|
{
|
|
9420
9404
|
style,
|
|
9421
|
-
layout,
|
|
9422
9405
|
validation,
|
|
9423
9406
|
interaction,
|
|
9424
9407
|
label,
|
|
@@ -9491,7 +9474,6 @@ SelectFieldInput.displayName = "SelectFieldInput";
|
|
|
9491
9474
|
var SelectField = forwardRef25(
|
|
9492
9475
|
({
|
|
9493
9476
|
style = "outlined",
|
|
9494
|
-
layout = "vertical",
|
|
9495
9477
|
validation = "none",
|
|
9496
9478
|
interaction = "enabled",
|
|
9497
9479
|
isWithInfoIcon = false,
|
|
@@ -9503,13 +9485,12 @@ var SelectField = forwardRef25(
|
|
|
9503
9485
|
FormField,
|
|
9504
9486
|
{
|
|
9505
9487
|
style,
|
|
9506
|
-
layout,
|
|
9507
9488
|
validation,
|
|
9508
9489
|
interaction,
|
|
9509
9490
|
label,
|
|
9510
9491
|
isWithInfoIcon,
|
|
9511
9492
|
helperText,
|
|
9512
|
-
children: /* @__PURE__ */ jsxs26(StyledFieldContainer, {
|
|
9493
|
+
children: /* @__PURE__ */ jsxs26(StyledFieldContainer, { children: [
|
|
9513
9494
|
/* @__PURE__ */ jsx157(FormField.Label, {}),
|
|
9514
9495
|
/* @__PURE__ */ jsxs26(FormField.Content, { children: [
|
|
9515
9496
|
/* @__PURE__ */ jsx157(SelectFieldInput, { ref, ...restProps }),
|
|
@@ -9528,7 +9509,6 @@ import { jsx as jsx158, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
|
9528
9509
|
var SelectFieldButton = forwardRef26(
|
|
9529
9510
|
({
|
|
9530
9511
|
style = "outlined",
|
|
9531
|
-
layout = "vertical",
|
|
9532
9512
|
validation = "none",
|
|
9533
9513
|
interaction = "enabled",
|
|
9534
9514
|
label,
|
|
@@ -9552,8 +9532,8 @@ var SelectFieldButton = forwardRef26(
|
|
|
9552
9532
|
onClick();
|
|
9553
9533
|
}
|
|
9554
9534
|
};
|
|
9555
|
-
return /* @__PURE__ */ jsxs27(StyledFieldContainer, {
|
|
9556
|
-
label && /* @__PURE__ */ jsxs27(StyledLabelContainer, {
|
|
9535
|
+
return /* @__PURE__ */ jsxs27(StyledFieldContainer, { children: [
|
|
9536
|
+
label && /* @__PURE__ */ jsxs27(StyledLabelContainer, { children: [
|
|
9557
9537
|
/* @__PURE__ */ jsx158(
|
|
9558
9538
|
StyledFieldLabel,
|
|
9559
9539
|
{
|
|
@@ -9563,14 +9543,13 @@ var SelectFieldButton = forwardRef26(
|
|
|
9563
9543
|
weight: "normal",
|
|
9564
9544
|
$disabled: isDisabled,
|
|
9565
9545
|
$readOnly: isReadOnly,
|
|
9566
|
-
$layout: layout,
|
|
9567
9546
|
children: label
|
|
9568
9547
|
}
|
|
9569
9548
|
),
|
|
9570
9549
|
labelIcon && /* @__PURE__ */ jsx158(Icon, { name: labelIcon, size: "2xs" })
|
|
9571
9550
|
] }),
|
|
9572
9551
|
/* @__PURE__ */ jsxs27(StyledInputColumn, { children: [
|
|
9573
|
-
/* @__PURE__ */ jsxs27(StyledInputRow, { $style: style,
|
|
9552
|
+
/* @__PURE__ */ jsxs27(StyledInputRow, { $style: style, children: [
|
|
9574
9553
|
/* @__PURE__ */ jsxs27(
|
|
9575
9554
|
StyledSelectWrapper,
|
|
9576
9555
|
{
|
|
@@ -10005,7 +9984,7 @@ var TagFieldUtils = {
|
|
|
10005
9984
|
// src/components/Input/TagField/TagItem.tsx
|
|
10006
9985
|
import { jsx as jsx159 } from "@emotion/react/jsx-runtime";
|
|
10007
9986
|
var TagItem = ({ tag, isSelected, onSelect, onRemove }) => {
|
|
10008
|
-
const { isInteractive } = useFormField();
|
|
9987
|
+
const { isInteractive, isDisabled } = useFormField();
|
|
10009
9988
|
const handleRemoveIconClick = (e) => {
|
|
10010
9989
|
e.stopPropagation();
|
|
10011
9990
|
if (onRemove) onRemove(tag.id);
|
|
@@ -10027,6 +10006,7 @@ var TagItem = ({ tag, isSelected, onSelect, onRemove }) => {
|
|
|
10027
10006
|
size: "xs",
|
|
10028
10007
|
hierarchy: "secondary",
|
|
10029
10008
|
badgeStyle: "alpha",
|
|
10009
|
+
isMuted: isDisabled,
|
|
10030
10010
|
withIcon: isInteractive,
|
|
10031
10011
|
onIconClick: isInteractive ? handleRemoveIconClick : void 0,
|
|
10032
10012
|
children: tag.label
|
|
@@ -10237,7 +10217,6 @@ TagFieldInput.displayName = "TagFieldInput";
|
|
|
10237
10217
|
var TagField = forwardRef27(
|
|
10238
10218
|
({
|
|
10239
10219
|
style = "outlined",
|
|
10240
|
-
layout = "vertical",
|
|
10241
10220
|
validation = "none",
|
|
10242
10221
|
interaction = "enabled",
|
|
10243
10222
|
isWithInfoIcon = false,
|
|
@@ -10249,13 +10228,12 @@ var TagField = forwardRef27(
|
|
|
10249
10228
|
FormField,
|
|
10250
10229
|
{
|
|
10251
10230
|
style,
|
|
10252
|
-
layout,
|
|
10253
10231
|
validation,
|
|
10254
10232
|
interaction,
|
|
10255
10233
|
label,
|
|
10256
10234
|
isWithInfoIcon,
|
|
10257
10235
|
helperText,
|
|
10258
|
-
children: /* @__PURE__ */ jsxs28(StyledFieldContainer, {
|
|
10236
|
+
children: /* @__PURE__ */ jsxs28(StyledFieldContainer, { children: [
|
|
10259
10237
|
/* @__PURE__ */ jsx161(FormField.Label, {}),
|
|
10260
10238
|
/* @__PURE__ */ jsxs28(FormField.Content, { children: [
|
|
10261
10239
|
/* @__PURE__ */ jsx161(TagFieldInput, { ref, ...restProps }),
|
|
@@ -10278,7 +10256,6 @@ import { jsx as jsx162, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
|
10278
10256
|
var TagFieldButton = forwardRef28(
|
|
10279
10257
|
({
|
|
10280
10258
|
style = "outlined",
|
|
10281
|
-
layout = "vertical",
|
|
10282
10259
|
validation = "none",
|
|
10283
10260
|
interaction = "enabled",
|
|
10284
10261
|
label,
|
|
@@ -10376,8 +10353,8 @@ var TagFieldButton = forwardRef28(
|
|
|
10376
10353
|
},
|
|
10377
10354
|
[tags, onTagsChange]
|
|
10378
10355
|
);
|
|
10379
|
-
return /* @__PURE__ */ jsxs29(StyledFieldContainer, {
|
|
10380
|
-
label && /* @__PURE__ */ jsxs29(StyledLabelContainer, {
|
|
10356
|
+
return /* @__PURE__ */ jsxs29(StyledFieldContainer, { children: [
|
|
10357
|
+
label && /* @__PURE__ */ jsxs29(StyledLabelContainer, { children: [
|
|
10381
10358
|
/* @__PURE__ */ jsx162(
|
|
10382
10359
|
StyledFieldLabel,
|
|
10383
10360
|
{
|
|
@@ -10387,14 +10364,13 @@ var TagFieldButton = forwardRef28(
|
|
|
10387
10364
|
weight: "normal",
|
|
10388
10365
|
$disabled: isDisabled,
|
|
10389
10366
|
$readOnly: isReadOnly,
|
|
10390
|
-
$layout: layout,
|
|
10391
10367
|
children: label
|
|
10392
10368
|
}
|
|
10393
10369
|
),
|
|
10394
10370
|
labelIcon && /* @__PURE__ */ jsx162(Icon, { name: labelIcon, size: "2xs" })
|
|
10395
10371
|
] }),
|
|
10396
10372
|
/* @__PURE__ */ jsxs29(StyledInputColumn, { children: [
|
|
10397
|
-
/* @__PURE__ */ jsxs29(StyledInputRow, { $style: style,
|
|
10373
|
+
/* @__PURE__ */ jsxs29(StyledInputRow, { $style: style, children: [
|
|
10398
10374
|
/* @__PURE__ */ jsxs29(
|
|
10399
10375
|
StyledTagInputWrapper,
|
|
10400
10376
|
{
|
|
@@ -10416,6 +10392,7 @@ var TagFieldButton = forwardRef28(
|
|
|
10416
10392
|
size: "xs",
|
|
10417
10393
|
hierarchy: "secondary",
|
|
10418
10394
|
badgeStyle: "alpha",
|
|
10395
|
+
isMuted: isDisabled,
|
|
10419
10396
|
withIcon: isInteractive,
|
|
10420
10397
|
children: tag.label
|
|
10421
10398
|
}
|
|
@@ -10736,7 +10713,6 @@ TextFieldInput.displayName = "TextFieldInput";
|
|
|
10736
10713
|
var TextField = forwardRef29(
|
|
10737
10714
|
({
|
|
10738
10715
|
style = "outlined",
|
|
10739
|
-
layout = "vertical",
|
|
10740
10716
|
validation = "none",
|
|
10741
10717
|
interaction = "enabled",
|
|
10742
10718
|
isWithInfoIcon = false,
|
|
@@ -10748,13 +10724,12 @@ var TextField = forwardRef29(
|
|
|
10748
10724
|
FormField,
|
|
10749
10725
|
{
|
|
10750
10726
|
style,
|
|
10751
|
-
layout,
|
|
10752
10727
|
validation,
|
|
10753
10728
|
interaction,
|
|
10754
10729
|
label,
|
|
10755
10730
|
isWithInfoIcon,
|
|
10756
10731
|
helperText,
|
|
10757
|
-
children: /* @__PURE__ */ jsxs30(StyledFieldContainer, {
|
|
10732
|
+
children: /* @__PURE__ */ jsxs30(StyledFieldContainer, { children: [
|
|
10758
10733
|
/* @__PURE__ */ jsx163(FormField.Label, {}),
|
|
10759
10734
|
/* @__PURE__ */ jsxs30(FormField.Content, { children: [
|
|
10760
10735
|
/* @__PURE__ */ jsx163(TextFieldInput, { ref, ...restProps }),
|
|
@@ -10773,7 +10748,6 @@ import { jsx as jsx164, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
|
10773
10748
|
var TextFieldButton = forwardRef30(
|
|
10774
10749
|
({
|
|
10775
10750
|
style = "outlined",
|
|
10776
|
-
layout = "vertical",
|
|
10777
10751
|
validation = "none",
|
|
10778
10752
|
disabled = false,
|
|
10779
10753
|
readOnly = false,
|
|
@@ -10786,8 +10760,8 @@ var TextFieldButton = forwardRef30(
|
|
|
10786
10760
|
...restProps
|
|
10787
10761
|
}, ref) => {
|
|
10788
10762
|
const inputId = useId5();
|
|
10789
|
-
return /* @__PURE__ */ jsxs31(StyledFieldContainer, {
|
|
10790
|
-
label && /* @__PURE__ */ jsxs31(StyledLabelContainer, {
|
|
10763
|
+
return /* @__PURE__ */ jsxs31(StyledFieldContainer, { children: [
|
|
10764
|
+
label && /* @__PURE__ */ jsxs31(StyledLabelContainer, { children: [
|
|
10791
10765
|
/* @__PURE__ */ jsx164(
|
|
10792
10766
|
StyledFieldLabel,
|
|
10793
10767
|
{
|
|
@@ -10797,14 +10771,13 @@ var TextFieldButton = forwardRef30(
|
|
|
10797
10771
|
weight: "bold",
|
|
10798
10772
|
$disabled: disabled,
|
|
10799
10773
|
$readOnly: readOnly,
|
|
10800
|
-
$layout: layout,
|
|
10801
10774
|
children: label
|
|
10802
10775
|
}
|
|
10803
10776
|
),
|
|
10804
10777
|
labelIcon && /* @__PURE__ */ jsx164(Icon, { name: labelIcon, size: "sm" })
|
|
10805
10778
|
] }),
|
|
10806
10779
|
/* @__PURE__ */ jsxs31(StyledInputColumn, { children: [
|
|
10807
|
-
/* @__PURE__ */ jsxs31(StyledInputRow, { $style: style,
|
|
10780
|
+
/* @__PURE__ */ jsxs31(StyledInputRow, { $style: style, children: [
|
|
10808
10781
|
/* @__PURE__ */ jsx164(
|
|
10809
10782
|
StyledInputWrapper,
|
|
10810
10783
|
{
|
|
@@ -11273,10 +11246,10 @@ var StyledSelectItem = styled24("div", {
|
|
|
11273
11246
|
const baseStyles = {
|
|
11274
11247
|
...restInteractionStyle,
|
|
11275
11248
|
display: "flex",
|
|
11276
|
-
flexDirection: "
|
|
11277
|
-
justifyContent: "
|
|
11278
|
-
alignItems: "
|
|
11279
|
-
gap:
|
|
11249
|
+
flexDirection: "row",
|
|
11250
|
+
justifyContent: "flex-start",
|
|
11251
|
+
alignItems: "center",
|
|
11252
|
+
gap: theme.scheme.semantic.spacing[8],
|
|
11280
11253
|
padding: getItemPaddingBySize(theme, $size),
|
|
11281
11254
|
backgroundColor: "transparent",
|
|
11282
11255
|
borderBottom: `1px solid ${theme.color.semantic.stroke.subtler}`,
|
|
@@ -11347,17 +11320,20 @@ var StyledSelectItemText = styled24(Label, {
|
|
|
11347
11320
|
return theme.color.semantic.object.bold;
|
|
11348
11321
|
};
|
|
11349
11322
|
return {
|
|
11350
|
-
color: getColor()
|
|
11323
|
+
color: getColor(),
|
|
11324
|
+
cursor: "inherit"
|
|
11351
11325
|
};
|
|
11352
11326
|
});
|
|
11353
11327
|
var StyledSelectItemCaption = styled24(Label, {
|
|
11354
11328
|
shouldForwardProp: (prop) => !prop.startsWith("$")
|
|
11355
11329
|
})(({ theme, $isDisabled }) => ({
|
|
11356
|
-
color: $isDisabled ? theme.color.semantic.object.subtle : theme.color.semantic.object.assistive
|
|
11330
|
+
color: $isDisabled ? theme.color.semantic.object.subtle : theme.color.semantic.object.assistive,
|
|
11331
|
+
cursor: "inherit"
|
|
11357
11332
|
}));
|
|
11358
11333
|
var StyledSelectItemBadge = styled24(ContentBadge.Basic)({
|
|
11359
11334
|
position: "relative",
|
|
11360
|
-
zIndex: 1
|
|
11335
|
+
zIndex: 1,
|
|
11336
|
+
cursor: "inherit"
|
|
11361
11337
|
});
|
|
11362
11338
|
var StyledSelectItemInputWrapper = styled24("div")({
|
|
11363
11339
|
display: "flex",
|
|
@@ -11495,14 +11471,12 @@ var SelectCheckbox = forwardRef34(
|
|
|
11495
11471
|
...restProps,
|
|
11496
11472
|
children: [
|
|
11497
11473
|
/* @__PURE__ */ jsx169(StyledSelectItemInputWrapper, { children: /* @__PURE__ */ jsx169(
|
|
11498
|
-
|
|
11474
|
+
Checkbox.Basic,
|
|
11499
11475
|
{
|
|
11500
|
-
|
|
11476
|
+
size,
|
|
11501
11477
|
checked: isItemSelected,
|
|
11502
11478
|
disabled: isDisabled,
|
|
11503
|
-
|
|
11504
|
-
tabIndex: -1,
|
|
11505
|
-
style: { pointerEvents: "none" }
|
|
11479
|
+
tabIndex: -1
|
|
11506
11480
|
}
|
|
11507
11481
|
) }),
|
|
11508
11482
|
/* @__PURE__ */ jsxs34(StyledSelectItemContent, { children: [
|
|
@@ -11535,10 +11509,10 @@ var SelectCheckbox = forwardRef34(
|
|
|
11535
11509
|
);
|
|
11536
11510
|
SelectCheckbox.displayName = "Select.Checkbox";
|
|
11537
11511
|
|
|
11538
|
-
// src/components/Select/
|
|
11512
|
+
// src/components/Select/SelectList.tsx
|
|
11539
11513
|
import { forwardRef as forwardRef35 } from "react";
|
|
11540
11514
|
import { jsx as jsx170, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
11541
|
-
var
|
|
11515
|
+
var SelectList = forwardRef35(
|
|
11542
11516
|
({ value, isDisabled = false, caption, badge, children, ...restProps }, ref) => {
|
|
11543
11517
|
const { size, isSelected, onChange } = useSelectContext();
|
|
11544
11518
|
const { isItemSelected, handleClick, handleKeyDown } = createSelectItemHandlers({
|
|
@@ -11592,12 +11566,350 @@ var SelectLabel = forwardRef35(
|
|
|
11592
11566
|
);
|
|
11593
11567
|
}
|
|
11594
11568
|
);
|
|
11595
|
-
|
|
11569
|
+
SelectList.displayName = "Select.List";
|
|
11596
11570
|
|
|
11597
11571
|
// src/components/Select/SelectRadio.tsx
|
|
11572
|
+
import { forwardRef as forwardRef37 } from "react";
|
|
11573
|
+
|
|
11574
|
+
// src/components/Radio/Radio.tsx
|
|
11598
11575
|
import { forwardRef as forwardRef36 } from "react";
|
|
11576
|
+
|
|
11577
|
+
// src/components/Radio/Radio.style.ts
|
|
11578
|
+
import styled25 from "@emotion/styled";
|
|
11579
|
+
var RADIO_SIZE = {
|
|
11580
|
+
lg: {
|
|
11581
|
+
radioSize: 20,
|
|
11582
|
+
border: "6"
|
|
11583
|
+
},
|
|
11584
|
+
md: {
|
|
11585
|
+
radioSize: 18,
|
|
11586
|
+
border: "5"
|
|
11587
|
+
},
|
|
11588
|
+
sm: {
|
|
11589
|
+
radioSize: 16,
|
|
11590
|
+
border: "5"
|
|
11591
|
+
},
|
|
11592
|
+
xs: {
|
|
11593
|
+
radioSize: 14,
|
|
11594
|
+
border: "4"
|
|
11595
|
+
}
|
|
11596
|
+
};
|
|
11597
|
+
var StyledRadioRootLabel = styled25.label(({ theme, radioSize }) => {
|
|
11598
|
+
const borderSize = RADIO_SIZE[radioSize].border;
|
|
11599
|
+
return {
|
|
11600
|
+
display: "inline-flex",
|
|
11601
|
+
position: "relative",
|
|
11602
|
+
[`input[type="radio"]:not(:disabled):checked + .visual`]: {
|
|
11603
|
+
backgroundColor: theme.color.semantic.surface.static.standard,
|
|
11604
|
+
border: `${theme.scheme.semantic.strokeWeight[borderSize]} solid ${theme.color.semantic.accent.neutral}`
|
|
11605
|
+
},
|
|
11606
|
+
[`input[type="radio"]:not(:checked):disabled + .visual`]: {
|
|
11607
|
+
backgroundColor: theme.color.semantic.surface.standard,
|
|
11608
|
+
borderColor: theme.color.semantic.stroke.alpha.subtler,
|
|
11609
|
+
cursor: "default",
|
|
11610
|
+
...Interaction(theme, "normal", "normal", "default", "disabled")
|
|
11611
|
+
},
|
|
11612
|
+
[`input[type="radio"]:checked:disabled + .visual`]: {
|
|
11613
|
+
backgroundColor: theme.color.semantic.fill.subtle,
|
|
11614
|
+
border: `${theme.scheme.semantic.strokeWeight[borderSize]} solid ${theme.color.semantic.stroke.subtler}`,
|
|
11615
|
+
cursor: "default",
|
|
11616
|
+
...Interaction(theme, "normal", "normal", "default", "disabled")
|
|
11617
|
+
},
|
|
11618
|
+
[`input[type="radio"]:focus-visible + .visual`]: {
|
|
11619
|
+
boxShadow: `0 0 0 3px ${theme.color.semantic.interaction.focus}`
|
|
11620
|
+
}
|
|
11621
|
+
};
|
|
11622
|
+
});
|
|
11623
|
+
var StyledRadioRootInput = styled25.input({
|
|
11624
|
+
position: "absolute",
|
|
11625
|
+
width: 1,
|
|
11626
|
+
height: 1,
|
|
11627
|
+
padding: 0,
|
|
11628
|
+
margin: -1,
|
|
11629
|
+
border: 0,
|
|
11630
|
+
overflow: "hidden",
|
|
11631
|
+
clipPath: "inset(50%)",
|
|
11632
|
+
whiteSpace: "nowrap"
|
|
11633
|
+
});
|
|
11634
|
+
var StyledRadioRootSpan = styled25.span(({ theme, radioSize }) => {
|
|
11635
|
+
const sizeValue = pxToRem(RADIO_SIZE[radioSize].radioSize);
|
|
11636
|
+
return {
|
|
11637
|
+
borderRadius: theme.scheme.semantic.radius.max,
|
|
11638
|
+
width: sizeValue,
|
|
11639
|
+
height: sizeValue,
|
|
11640
|
+
border: `1px solid ${theme.color.semantic.stroke.alpha.assistive}`,
|
|
11641
|
+
backgroundColor: theme.color.semantic.surface.shallow,
|
|
11642
|
+
cursor: "pointer",
|
|
11643
|
+
...Interaction(theme, "normal", "normal", "default")
|
|
11644
|
+
};
|
|
11645
|
+
});
|
|
11646
|
+
var radioContainerSizeMap = {
|
|
11647
|
+
lg: {
|
|
11648
|
+
width: 13,
|
|
11649
|
+
height: 8,
|
|
11650
|
+
gap: "12",
|
|
11651
|
+
padding: "12",
|
|
11652
|
+
borderRadius: "6"
|
|
11653
|
+
},
|
|
11654
|
+
md: {
|
|
11655
|
+
width: 13,
|
|
11656
|
+
height: 8,
|
|
11657
|
+
gap: "10",
|
|
11658
|
+
padding: "10",
|
|
11659
|
+
borderRadius: "6"
|
|
11660
|
+
},
|
|
11661
|
+
sm: {
|
|
11662
|
+
width: 11,
|
|
11663
|
+
height: 6,
|
|
11664
|
+
gap: "8",
|
|
11665
|
+
padding: "8",
|
|
11666
|
+
borderRadius: "4"
|
|
11667
|
+
},
|
|
11668
|
+
xs: {
|
|
11669
|
+
width: 9,
|
|
11670
|
+
height: 6,
|
|
11671
|
+
gap: "8",
|
|
11672
|
+
padding: "6",
|
|
11673
|
+
borderRadius: "4"
|
|
11674
|
+
}
|
|
11675
|
+
};
|
|
11676
|
+
var subLabelSizeMap2 = {
|
|
11677
|
+
lg: "md",
|
|
11678
|
+
md: "sm",
|
|
11679
|
+
sm: "xs",
|
|
11680
|
+
xs: "xs"
|
|
11681
|
+
};
|
|
11682
|
+
var StyledRadioItem = styled25.div(
|
|
11683
|
+
({ theme, radioSize, isDisabled, isAlignRight, isStyleOutline }) => {
|
|
11684
|
+
const rowGap = radioContainerSizeMap[radioSize].gap;
|
|
11685
|
+
const padding = radioContainerSizeMap[radioSize].padding;
|
|
11686
|
+
const borderRadius = radioContainerSizeMap[radioSize].borderRadius;
|
|
11687
|
+
const interactionWidth = radioContainerSizeMap[radioSize].width;
|
|
11688
|
+
const interactionHeight = radioContainerSizeMap[radioSize].height;
|
|
11689
|
+
const borderColor = isDisabled ? theme.color.semantic.stroke.alpha.subtler : theme.color.semantic.stroke.alpha.subtle;
|
|
11690
|
+
const checkedInteraction = Interaction(
|
|
11691
|
+
theme,
|
|
11692
|
+
"accent",
|
|
11693
|
+
"assistive",
|
|
11694
|
+
"default",
|
|
11695
|
+
isDisabled ? "readonly" : "default"
|
|
11696
|
+
);
|
|
11697
|
+
const nonCheckedInteraction = Interaction(
|
|
11698
|
+
theme,
|
|
11699
|
+
"normal",
|
|
11700
|
+
"normal",
|
|
11701
|
+
"default",
|
|
11702
|
+
isDisabled ? "readonly" : "default"
|
|
11703
|
+
);
|
|
11704
|
+
const addonInteraction = isStyleOutline ? {
|
|
11705
|
+
border: "inherit"
|
|
11706
|
+
} : {
|
|
11707
|
+
width: `calc(100% + ${interactionWidth}px)`,
|
|
11708
|
+
height: `calc(100% + ${interactionHeight}px)`,
|
|
11709
|
+
transform: `translate(-${Math.floor(interactionWidth / 2) + 1}px , -${Math.floor(interactionHeight / 2)}px)`
|
|
11710
|
+
};
|
|
11711
|
+
return {
|
|
11712
|
+
display: "inline-grid",
|
|
11713
|
+
gridTemplateColumns: "auto 1fr",
|
|
11714
|
+
alignItems: "center",
|
|
11715
|
+
"& > :nth-child(1)": {
|
|
11716
|
+
gridColumn: 1,
|
|
11717
|
+
gridRow: 1,
|
|
11718
|
+
display: "flex",
|
|
11719
|
+
alignItems: "center"
|
|
11720
|
+
},
|
|
11721
|
+
"& > :nth-child(2)": {
|
|
11722
|
+
gridColumn: 2,
|
|
11723
|
+
gridRow: 1,
|
|
11724
|
+
display: "flex",
|
|
11725
|
+
alignItems: "center"
|
|
11726
|
+
},
|
|
11727
|
+
"& > :nth-child(3)": {
|
|
11728
|
+
gridColumn: isAlignRight ? "1 / span 2" : 2,
|
|
11729
|
+
gridRow: 2
|
|
11730
|
+
},
|
|
11731
|
+
gap: `${theme.scheme.semantic.spacing[6]} ${theme.scheme.semantic.spacing[rowGap]} `,
|
|
11732
|
+
border: isStyleOutline ? `1px solid ${borderColor}` : "none",
|
|
11733
|
+
borderRadius: theme.scheme.semantic.radius[borderRadius],
|
|
11734
|
+
padding: isStyleOutline ? theme.scheme.semantic.spacing[padding] : "0",
|
|
11735
|
+
...nonCheckedInteraction,
|
|
11736
|
+
"::after": {
|
|
11737
|
+
...nonCheckedInteraction["::after"],
|
|
11738
|
+
...addonInteraction,
|
|
11739
|
+
transition: `all ${theme.environment.semantic.duration[100]}ms ${theme.environment.semantic.motion.fluent}`,
|
|
11740
|
+
pointerEvents: "none"
|
|
11741
|
+
},
|
|
11742
|
+
"&:active::after": {
|
|
11743
|
+
transition: "none"
|
|
11744
|
+
},
|
|
11745
|
+
'&:has(input[type="radio"]:checked)': {
|
|
11746
|
+
...checkedInteraction,
|
|
11747
|
+
"::after": {
|
|
11748
|
+
...checkedInteraction["::after"],
|
|
11749
|
+
...addonInteraction,
|
|
11750
|
+
pointerEvents: "none"
|
|
11751
|
+
}
|
|
11752
|
+
},
|
|
11753
|
+
'&:has(input[type="radio"]:focus-visible)::before': {
|
|
11754
|
+
...addonInteraction,
|
|
11755
|
+
boxShadow: `0 0 0 3px ${theme.color.semantic.interaction.focus}`,
|
|
11756
|
+
content: '""',
|
|
11757
|
+
position: "absolute",
|
|
11758
|
+
inset: 0,
|
|
11759
|
+
borderRadius: theme.scheme.semantic.radius[borderRadius]
|
|
11760
|
+
},
|
|
11761
|
+
'input[type="radio"]:focus-visible + .visual': {
|
|
11762
|
+
boxShadow: "none !important"
|
|
11763
|
+
}
|
|
11764
|
+
};
|
|
11765
|
+
}
|
|
11766
|
+
);
|
|
11767
|
+
var StyledLabel2 = styled25("div")(({ theme, $size, $isDisabled }) => {
|
|
11768
|
+
return {
|
|
11769
|
+
...theme.textStyle[`semantic-textStyle-label-${$size}-subtle`],
|
|
11770
|
+
color: $isDisabled ? theme.color.semantic.object.subtle : theme.color.semantic.object.bold,
|
|
11771
|
+
whiteSpace: "nowrap"
|
|
11772
|
+
};
|
|
11773
|
+
});
|
|
11774
|
+
var StyledSubLabel2 = styled25("div")(({ theme, $size, $isDisabled }) => {
|
|
11775
|
+
return {
|
|
11776
|
+
...theme.textStyle[`semantic-textStyle-label-${subLabelSizeMap2[$size]}-subtle`],
|
|
11777
|
+
color: $isDisabled ? theme.color.semantic.object.subtle : theme.color.semantic.object.assistive,
|
|
11778
|
+
position: "relative",
|
|
11779
|
+
zIndex: 10,
|
|
11780
|
+
whiteSpace: "nowrap"
|
|
11781
|
+
};
|
|
11782
|
+
});
|
|
11783
|
+
|
|
11784
|
+
// src/components/Radio/RadioContext.tsx
|
|
11785
|
+
import { createContext as createContext5, useContext as useContext6 } from "react";
|
|
11786
|
+
var RadioContext = createContext5(null);
|
|
11787
|
+
var RadioProvider = RadioContext.Provider;
|
|
11788
|
+
var useRadioContext = () => {
|
|
11789
|
+
const context = useContext6(RadioContext);
|
|
11790
|
+
return context;
|
|
11791
|
+
};
|
|
11792
|
+
|
|
11793
|
+
// src/components/Radio/RadioGroupContext.tsx
|
|
11794
|
+
import { createContext as createContext6, useContext as useContext7 } from "react";
|
|
11795
|
+
var RadioGroupContext = createContext6(null);
|
|
11796
|
+
var RadioGroupProvider = RadioGroupContext.Provider;
|
|
11797
|
+
var useRadioGroupContext = () => {
|
|
11798
|
+
const context = useContext7(RadioGroupContext);
|
|
11799
|
+
return context;
|
|
11800
|
+
};
|
|
11801
|
+
|
|
11802
|
+
// src/components/Radio/Radio.tsx
|
|
11599
11803
|
import { jsx as jsx171, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
11600
|
-
var
|
|
11804
|
+
var RadioRoot = ({
|
|
11805
|
+
radioSize = "md",
|
|
11806
|
+
radioStyle = "empty",
|
|
11807
|
+
radioAlign = "left",
|
|
11808
|
+
disabled = false,
|
|
11809
|
+
value,
|
|
11810
|
+
onChange,
|
|
11811
|
+
name,
|
|
11812
|
+
children
|
|
11813
|
+
}) => {
|
|
11814
|
+
return /* @__PURE__ */ jsx171(
|
|
11815
|
+
RadioGroupProvider,
|
|
11816
|
+
{
|
|
11817
|
+
value: { radioSize, radioStyle, radioAlign, isDisabled: disabled, value, onChange, name },
|
|
11818
|
+
children
|
|
11819
|
+
}
|
|
11820
|
+
);
|
|
11821
|
+
};
|
|
11822
|
+
RadioRoot.displayName = "Radio.Root";
|
|
11823
|
+
var RadioItem = forwardRef36(
|
|
11824
|
+
({ radioSize = "md", radioStyle = "empty", radioAlign = "left", disabled = false, children }, ref) => {
|
|
11825
|
+
const groupContext = useRadioGroupContext();
|
|
11826
|
+
const size = groupContext?.radioSize || radioSize;
|
|
11827
|
+
const isDisabled = groupContext?.isDisabled || disabled;
|
|
11828
|
+
const isAlignRight = groupContext?.radioAlign ? groupContext.radioAlign === "right" : radioAlign === "right";
|
|
11829
|
+
const isStyleOutline = groupContext?.radioStyle ? groupContext?.radioStyle === "outline" : radioStyle === "outline";
|
|
11830
|
+
return /* @__PURE__ */ jsx171(RadioProvider, { value: { radioSize: size, isDisabled }, children: /* @__PURE__ */ jsx171(
|
|
11831
|
+
StyledRadioItem,
|
|
11832
|
+
{
|
|
11833
|
+
ref,
|
|
11834
|
+
radioSize: size,
|
|
11835
|
+
isDisabled,
|
|
11836
|
+
isAlignRight,
|
|
11837
|
+
isStyleOutline,
|
|
11838
|
+
children
|
|
11839
|
+
}
|
|
11840
|
+
) });
|
|
11841
|
+
}
|
|
11842
|
+
);
|
|
11843
|
+
RadioItem.displayName = "Radio.Item";
|
|
11844
|
+
var RadioBasic = forwardRef36(
|
|
11845
|
+
({ radioSize = "md", value, checked, disabled, onChange, ...props }, ref) => {
|
|
11846
|
+
const groupContext = useRadioGroupContext();
|
|
11847
|
+
const radioContext = useRadioContext();
|
|
11848
|
+
const isChecked = groupContext?.value ? groupContext.value === value : checked;
|
|
11849
|
+
const isBasicDisabled = radioContext?.isDisabled ? radioContext.isDisabled : disabled;
|
|
11850
|
+
const groupName = groupContext?.name;
|
|
11851
|
+
const handleChange = (e) => {
|
|
11852
|
+
if (groupContext?.onChange && value !== void 0) {
|
|
11853
|
+
groupContext.onChange(String(value));
|
|
11854
|
+
}
|
|
11855
|
+
onChange?.(e);
|
|
11856
|
+
};
|
|
11857
|
+
return /* @__PURE__ */ jsxs36(StyledRadioRootLabel, { radioSize: radioContext?.radioSize || radioSize, children: [
|
|
11858
|
+
/* @__PURE__ */ jsx171(
|
|
11859
|
+
StyledRadioRootInput,
|
|
11860
|
+
{
|
|
11861
|
+
ref,
|
|
11862
|
+
type: "radio",
|
|
11863
|
+
value,
|
|
11864
|
+
checked: isChecked,
|
|
11865
|
+
disabled: isBasicDisabled,
|
|
11866
|
+
onChange: handleChange,
|
|
11867
|
+
name: groupName,
|
|
11868
|
+
...props
|
|
11869
|
+
}
|
|
11870
|
+
),
|
|
11871
|
+
/* @__PURE__ */ jsx171(StyledRadioRootSpan, { className: "visual", "aria-hidden": "true", radioSize })
|
|
11872
|
+
] });
|
|
11873
|
+
}
|
|
11874
|
+
);
|
|
11875
|
+
RadioBasic.displayName = "Radio.Basic";
|
|
11876
|
+
var RadioLabel = forwardRef36(({ children }, ref) => {
|
|
11877
|
+
const rootContext = useRadioContext();
|
|
11878
|
+
return /* @__PURE__ */ jsx171(
|
|
11879
|
+
StyledLabel2,
|
|
11880
|
+
{
|
|
11881
|
+
ref,
|
|
11882
|
+
$size: rootContext?.radioSize || "md",
|
|
11883
|
+
$isDisabled: rootContext?.isDisabled || false,
|
|
11884
|
+
children
|
|
11885
|
+
}
|
|
11886
|
+
);
|
|
11887
|
+
});
|
|
11888
|
+
RadioLabel.displayName = "Radio.Label";
|
|
11889
|
+
var RadioSubLabel = forwardRef36(({ children }, ref) => {
|
|
11890
|
+
const rootContext = useRadioContext();
|
|
11891
|
+
return /* @__PURE__ */ jsx171(
|
|
11892
|
+
StyledSubLabel2,
|
|
11893
|
+
{
|
|
11894
|
+
ref,
|
|
11895
|
+
$size: rootContext?.radioSize || "md",
|
|
11896
|
+
$isDisabled: rootContext?.isDisabled || false,
|
|
11897
|
+
children
|
|
11898
|
+
}
|
|
11899
|
+
);
|
|
11900
|
+
});
|
|
11901
|
+
RadioSubLabel.displayName = "Radio.SubLabel";
|
|
11902
|
+
var Radio = {
|
|
11903
|
+
Root: RadioRoot,
|
|
11904
|
+
Item: RadioItem,
|
|
11905
|
+
Basic: RadioBasic,
|
|
11906
|
+
Label: RadioLabel,
|
|
11907
|
+
SubLabel: RadioSubLabel
|
|
11908
|
+
};
|
|
11909
|
+
|
|
11910
|
+
// src/components/Select/SelectRadio.tsx
|
|
11911
|
+
import { jsx as jsx172, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
11912
|
+
var SelectRadio = forwardRef37(
|
|
11601
11913
|
({ value, isDisabled = false, caption, children, ...restProps }, ref) => {
|
|
11602
11914
|
const { size, isSelected, onChange } = useSelectContext();
|
|
11603
11915
|
const { isItemSelected, handleClick, handleKeyDown } = createSelectItemHandlers({
|
|
@@ -11606,7 +11918,7 @@ var SelectRadio = forwardRef36(
|
|
|
11606
11918
|
isSelected,
|
|
11607
11919
|
onChange
|
|
11608
11920
|
});
|
|
11609
|
-
return /* @__PURE__ */
|
|
11921
|
+
return /* @__PURE__ */ jsxs37(
|
|
11610
11922
|
StyledSelectItem,
|
|
11611
11923
|
{
|
|
11612
11924
|
ref,
|
|
@@ -11621,19 +11933,17 @@ var SelectRadio = forwardRef36(
|
|
|
11621
11933
|
tabIndex: isDisabled ? -1 : 0,
|
|
11622
11934
|
...restProps,
|
|
11623
11935
|
children: [
|
|
11624
|
-
/* @__PURE__ */
|
|
11625
|
-
|
|
11936
|
+
/* @__PURE__ */ jsx172(StyledSelectItemInputWrapper, { children: /* @__PURE__ */ jsx172(
|
|
11937
|
+
Radio.Basic,
|
|
11626
11938
|
{
|
|
11627
|
-
|
|
11939
|
+
radioSize: size,
|
|
11628
11940
|
checked: isItemSelected,
|
|
11629
11941
|
disabled: isDisabled,
|
|
11630
|
-
|
|
11631
|
-
tabIndex: -1,
|
|
11632
|
-
style: { pointerEvents: "none" }
|
|
11942
|
+
tabIndex: -1
|
|
11633
11943
|
}
|
|
11634
11944
|
) }),
|
|
11635
|
-
/* @__PURE__ */
|
|
11636
|
-
/* @__PURE__ */
|
|
11945
|
+
/* @__PURE__ */ jsxs37(StyledSelectItemContent, { children: [
|
|
11946
|
+
/* @__PURE__ */ jsx172(
|
|
11637
11947
|
StyledSelectItemText,
|
|
11638
11948
|
{
|
|
11639
11949
|
as: "span",
|
|
@@ -11644,7 +11954,7 @@ var SelectRadio = forwardRef36(
|
|
|
11644
11954
|
children
|
|
11645
11955
|
}
|
|
11646
11956
|
),
|
|
11647
|
-
caption && /* @__PURE__ */
|
|
11957
|
+
caption && /* @__PURE__ */ jsx172(
|
|
11648
11958
|
StyledSelectItemCaption,
|
|
11649
11959
|
{
|
|
11650
11960
|
as: "span",
|
|
@@ -11664,14 +11974,14 @@ SelectRadio.displayName = "Select.Radio";
|
|
|
11664
11974
|
|
|
11665
11975
|
// src/components/Select/index.ts
|
|
11666
11976
|
var Select2 = Object.assign(Select, {
|
|
11667
|
-
|
|
11977
|
+
List: SelectList,
|
|
11668
11978
|
Radio: SelectRadio,
|
|
11669
11979
|
Checkbox: SelectCheckbox
|
|
11670
11980
|
});
|
|
11671
11981
|
|
|
11672
11982
|
// src/components/Step/Step.tsx
|
|
11673
11983
|
import { Context } from "radix-ui/internal";
|
|
11674
|
-
import { forwardRef as
|
|
11984
|
+
import { forwardRef as forwardRef39, useMemo as useMemo2 } from "react";
|
|
11675
11985
|
|
|
11676
11986
|
// src/components/Step/step.utils.ts
|
|
11677
11987
|
function calculateStepStatus(itemIndex, currentStep) {
|
|
@@ -11691,10 +12001,10 @@ function useStepItemStatus({
|
|
|
11691
12001
|
}
|
|
11692
12002
|
|
|
11693
12003
|
// src/components/Divider/Divider.tsx
|
|
11694
|
-
import { forwardRef as
|
|
12004
|
+
import { forwardRef as forwardRef38 } from "react";
|
|
11695
12005
|
|
|
11696
12006
|
// src/components/Divider/divider.styles.ts
|
|
11697
|
-
import
|
|
12007
|
+
import styled26 from "@emotion/styled";
|
|
11698
12008
|
var thicknessMap = {
|
|
11699
12009
|
normal: 1,
|
|
11700
12010
|
bold: 2,
|
|
@@ -11725,20 +12035,20 @@ var GetDividerStyles = (theme, orientation, thickness, variant) => {
|
|
|
11725
12035
|
alignSelf: "stretch"
|
|
11726
12036
|
};
|
|
11727
12037
|
};
|
|
11728
|
-
var StyledDivider =
|
|
12038
|
+
var StyledDivider = styled26("hr", {
|
|
11729
12039
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
11730
12040
|
})(({ theme, $orientation, $thickness, $variant }) => ({
|
|
11731
12041
|
...GetDividerStyles(theme, $orientation, $thickness, $variant)
|
|
11732
12042
|
}));
|
|
11733
|
-
var StyledVerticalDivider =
|
|
12043
|
+
var StyledVerticalDivider = styled26("div", {
|
|
11734
12044
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
11735
12045
|
})(({ theme, $thickness, $variant }) => ({
|
|
11736
12046
|
...GetDividerStyles(theme, "vertical", $thickness, $variant)
|
|
11737
12047
|
}));
|
|
11738
12048
|
|
|
11739
12049
|
// src/components/Divider/Divider.tsx
|
|
11740
|
-
import { jsx as
|
|
11741
|
-
var Divider =
|
|
12050
|
+
import { jsx as jsx173 } from "@emotion/react/jsx-runtime";
|
|
12051
|
+
var Divider = forwardRef38(
|
|
11742
12052
|
({
|
|
11743
12053
|
thickness = "normal",
|
|
11744
12054
|
orientation = "horizontal",
|
|
@@ -11747,7 +12057,7 @@ var Divider = forwardRef37(
|
|
|
11747
12057
|
...restProps
|
|
11748
12058
|
}, ref) => {
|
|
11749
12059
|
if (orientation === "vertical") {
|
|
11750
|
-
return /* @__PURE__ */
|
|
12060
|
+
return /* @__PURE__ */ jsx173(
|
|
11751
12061
|
StyledVerticalDivider,
|
|
11752
12062
|
{
|
|
11753
12063
|
ref,
|
|
@@ -11760,7 +12070,7 @@ var Divider = forwardRef37(
|
|
|
11760
12070
|
}
|
|
11761
12071
|
);
|
|
11762
12072
|
}
|
|
11763
|
-
return /* @__PURE__ */
|
|
12073
|
+
return /* @__PURE__ */ jsx173(
|
|
11764
12074
|
StyledDivider,
|
|
11765
12075
|
{
|
|
11766
12076
|
ref,
|
|
@@ -11776,8 +12086,8 @@ var Divider = forwardRef37(
|
|
|
11776
12086
|
Divider.displayName = "Divider";
|
|
11777
12087
|
|
|
11778
12088
|
// src/components/Step/step.styles.ts
|
|
11779
|
-
import
|
|
11780
|
-
var StyledCounterNumber =
|
|
12089
|
+
import styled27 from "@emotion/styled";
|
|
12090
|
+
var StyledCounterNumber = styled27("span", {
|
|
11781
12091
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
11782
12092
|
})(({ theme, $size }) => {
|
|
11783
12093
|
const counterStyleMap = {
|
|
@@ -11806,13 +12116,13 @@ var StyledCounterNumber = styled26("span", {
|
|
|
11806
12116
|
cursor: "default"
|
|
11807
12117
|
};
|
|
11808
12118
|
});
|
|
11809
|
-
var StyledStepRoot =
|
|
12119
|
+
var StyledStepRoot = styled27("div")(({ theme }) => ({
|
|
11810
12120
|
display: "flex",
|
|
11811
12121
|
alignItems: "flex-start",
|
|
11812
12122
|
width: "100%",
|
|
11813
12123
|
gap: theme.scheme.semantic.spacing[8]
|
|
11814
12124
|
}));
|
|
11815
|
-
var StyledStepItem =
|
|
12125
|
+
var StyledStepItem = styled27("div")(({ theme }) => ({
|
|
11816
12126
|
display: "flex",
|
|
11817
12127
|
flexDirection: "column",
|
|
11818
12128
|
alignItems: "center",
|
|
@@ -11839,7 +12149,7 @@ var StyledStepItem = styled26("div")(({ theme }) => ({
|
|
|
11839
12149
|
color: theme.color.semantic.object.assistive
|
|
11840
12150
|
}
|
|
11841
12151
|
}));
|
|
11842
|
-
var StyledStepContent =
|
|
12152
|
+
var StyledStepContent = styled27("div")(({ theme }) => ({
|
|
11843
12153
|
display: "flex",
|
|
11844
12154
|
alignItems: "flex-start",
|
|
11845
12155
|
alignSelf: "stretch",
|
|
@@ -11848,14 +12158,14 @@ var StyledStepContent = styled26("div")(({ theme }) => ({
|
|
|
11848
12158
|
width: "100%",
|
|
11849
12159
|
color: "inherit"
|
|
11850
12160
|
}));
|
|
11851
|
-
var StyledStepLabel =
|
|
12161
|
+
var StyledStepLabel = styled27(Label)(({ theme }) => ({
|
|
11852
12162
|
flex: "1 0 0",
|
|
11853
12163
|
paddingTop: theme.scheme.semantic.spacing[2],
|
|
11854
12164
|
whiteSpace: "nowrap"
|
|
11855
12165
|
}));
|
|
11856
12166
|
|
|
11857
12167
|
// src/components/Step/Step.tsx
|
|
11858
|
-
import { jsx as
|
|
12168
|
+
import { jsx as jsx174, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
11859
12169
|
var SIZE_TO_LABEL_SIZE = {
|
|
11860
12170
|
lg: "lg",
|
|
11861
12171
|
md: "md",
|
|
@@ -11863,23 +12173,23 @@ var SIZE_TO_LABEL_SIZE = {
|
|
|
11863
12173
|
xs: "xs"
|
|
11864
12174
|
};
|
|
11865
12175
|
var [StepProvider, useStepContext] = Context.createContext("Step");
|
|
11866
|
-
var StepRoot =
|
|
12176
|
+
var StepRoot = forwardRef39(
|
|
11867
12177
|
({ size = "md", current, children, ...restProps }, ref) => {
|
|
11868
12178
|
const contextValue = useMemo2(() => ({ size, currentStep: current }), [size, current]);
|
|
11869
|
-
return /* @__PURE__ */
|
|
12179
|
+
return /* @__PURE__ */ jsx174(StepProvider, { ...contextValue, children: /* @__PURE__ */ jsx174(StyledStepRoot, { ref, ...restProps, children }) });
|
|
11870
12180
|
}
|
|
11871
12181
|
);
|
|
11872
12182
|
StepRoot.displayName = "Step.Root";
|
|
11873
|
-
var StepItem =
|
|
12183
|
+
var StepItem = forwardRef39(
|
|
11874
12184
|
({ index, status: statusProp, children, ...restProps }, ref) => {
|
|
11875
12185
|
const { size, currentStep } = useStepContext("Step.Item");
|
|
11876
12186
|
const labelSize = SIZE_TO_LABEL_SIZE[size];
|
|
11877
12187
|
const status = useStepItemStatus({ itemIndex: index, currentStep, statusProp });
|
|
11878
|
-
return /* @__PURE__ */
|
|
11879
|
-
/* @__PURE__ */
|
|
11880
|
-
/* @__PURE__ */
|
|
11881
|
-
/* @__PURE__ */
|
|
11882
|
-
/* @__PURE__ */
|
|
12188
|
+
return /* @__PURE__ */ jsxs38(StyledStepItem, { ref, "data-status": status, ...restProps, children: [
|
|
12189
|
+
/* @__PURE__ */ jsx174(Divider, { orientation: "horizontal", thickness: "bolder" }),
|
|
12190
|
+
/* @__PURE__ */ jsxs38(StyledStepContent, { children: [
|
|
12191
|
+
/* @__PURE__ */ jsx174(StyledCounterNumber, { $size: size, children: index + 1 }),
|
|
12192
|
+
/* @__PURE__ */ jsx174(StyledStepLabel, { as: "span", size: labelSize, color: "inherit", children })
|
|
11883
12193
|
] })
|
|
11884
12194
|
] });
|
|
11885
12195
|
}
|
|
@@ -11892,10 +12202,10 @@ var Step = {
|
|
|
11892
12202
|
|
|
11893
12203
|
// src/components/Tab/tab.tsx
|
|
11894
12204
|
import { Tabs as TabPrimitive2 } from "radix-ui";
|
|
11895
|
-
import { forwardRef as
|
|
12205
|
+
import { forwardRef as forwardRef40 } from "react";
|
|
11896
12206
|
|
|
11897
12207
|
// src/components/Tab/tab.styles.ts
|
|
11898
|
-
import
|
|
12208
|
+
import styled28 from "@emotion/styled";
|
|
11899
12209
|
import { Tabs as TabPrimitive } from "radix-ui";
|
|
11900
12210
|
var createInteractionStyles2 = (theme, borderRadius, isReadonly) => {
|
|
11901
12211
|
const makeLayer = (state) => InteractionLayer({
|
|
@@ -11914,7 +12224,7 @@ var createInteractionStyles2 = (theme, borderRadius, isReadonly) => {
|
|
|
11914
12224
|
focusStyle: makeLayer("focus")
|
|
11915
12225
|
};
|
|
11916
12226
|
};
|
|
11917
|
-
var StyledTabList =
|
|
12227
|
+
var StyledTabList = styled28(TabPrimitive.List)(({
|
|
11918
12228
|
theme,
|
|
11919
12229
|
$variant
|
|
11920
12230
|
}) => {
|
|
@@ -11924,7 +12234,7 @@ var StyledTabList = styled27(TabPrimitive.List)(({
|
|
|
11924
12234
|
borderBottom: $variant === "header" ? `1px solid ${theme.color.semantic.stroke.assistive}` : "none"
|
|
11925
12235
|
};
|
|
11926
12236
|
});
|
|
11927
|
-
var StyledTabPrimitiveTrigger =
|
|
12237
|
+
var StyledTabPrimitiveTrigger = styled28(
|
|
11928
12238
|
TabPrimitive.Trigger
|
|
11929
12239
|
)(({ theme, $variant, $isDisabled, $isItemStretched }) => {
|
|
11930
12240
|
const borderRadius = $variant === "header" ? 0 : 6;
|
|
@@ -11955,6 +12265,9 @@ var StyledTabPrimitiveTrigger = styled27(
|
|
|
11955
12265
|
transition: "none"
|
|
11956
12266
|
}
|
|
11957
12267
|
},
|
|
12268
|
+
"&:hover": {
|
|
12269
|
+
...interactionStyles7.hoverStyle
|
|
12270
|
+
},
|
|
11958
12271
|
"&:focus-visible": {
|
|
11959
12272
|
...interactionStyles7.focusStyle
|
|
11960
12273
|
},
|
|
@@ -11965,17 +12278,17 @@ var StyledTabPrimitiveTrigger = styled27(
|
|
|
11965
12278
|
}
|
|
11966
12279
|
};
|
|
11967
12280
|
});
|
|
11968
|
-
var
|
|
12281
|
+
var StyledLabel3 = styled28(Label)(() => ({
|
|
11969
12282
|
color: "inherit",
|
|
11970
12283
|
cursor: "inherit",
|
|
11971
12284
|
whiteSpace: "nowrap"
|
|
11972
12285
|
}));
|
|
11973
12286
|
|
|
11974
12287
|
// src/components/Tab/tabContext.ts
|
|
11975
|
-
import { createContext as
|
|
11976
|
-
var TabContext =
|
|
12288
|
+
import { createContext as createContext7, useContext as useContext8 } from "react";
|
|
12289
|
+
var TabContext = createContext7(void 0);
|
|
11977
12290
|
var useTabContext = () => {
|
|
11978
|
-
const context =
|
|
12291
|
+
const context = useContext8(TabContext);
|
|
11979
12292
|
if (!context) {
|
|
11980
12293
|
throw new Error("Tab \uCEF4\uD3EC\uB10C\uD2B8\uB294 Tab.Root \uB0B4\uBD80\uC5D0\uC11C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4");
|
|
11981
12294
|
}
|
|
@@ -11983,22 +12296,22 @@ var useTabContext = () => {
|
|
|
11983
12296
|
};
|
|
11984
12297
|
|
|
11985
12298
|
// src/components/Tab/tab.tsx
|
|
11986
|
-
import { jsx as
|
|
11987
|
-
var TabRoot =
|
|
12299
|
+
import { jsx as jsx175, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
12300
|
+
var TabRoot = forwardRef40(
|
|
11988
12301
|
({ children, variant = "header", isItemStretched = false, ...rest }, ref) => {
|
|
11989
|
-
return /* @__PURE__ */
|
|
12302
|
+
return /* @__PURE__ */ jsx175(TabContext.Provider, { value: { variant, isItemStretched }, children: /* @__PURE__ */ jsx175(TabPrimitive2.Root, { ref, ...rest, children }) });
|
|
11990
12303
|
}
|
|
11991
12304
|
);
|
|
11992
12305
|
TabRoot.displayName = "Tab.Root";
|
|
11993
|
-
var TabList =
|
|
12306
|
+
var TabList = forwardRef40(({ children, ...rest }, ref) => {
|
|
11994
12307
|
const { variant } = useTabContext();
|
|
11995
|
-
return /* @__PURE__ */
|
|
12308
|
+
return /* @__PURE__ */ jsx175(StyledTabList, { ref, $variant: variant, ...rest, children });
|
|
11996
12309
|
});
|
|
11997
12310
|
TabList.displayName = "Tab.List";
|
|
11998
|
-
var TabTrigger =
|
|
12311
|
+
var TabTrigger = forwardRef40(
|
|
11999
12312
|
({ children, disabled = false, badge = "", ...rest }, ref) => {
|
|
12000
12313
|
const { variant, isItemStretched } = useTabContext();
|
|
12001
|
-
return /* @__PURE__ */
|
|
12314
|
+
return /* @__PURE__ */ jsxs39(
|
|
12002
12315
|
StyledTabPrimitiveTrigger,
|
|
12003
12316
|
{
|
|
12004
12317
|
disabled,
|
|
@@ -12008,17 +12321,17 @@ var TabTrigger = forwardRef39(
|
|
|
12008
12321
|
ref,
|
|
12009
12322
|
...rest,
|
|
12010
12323
|
children: [
|
|
12011
|
-
/* @__PURE__ */
|
|
12012
|
-
badge && /* @__PURE__ */
|
|
12324
|
+
/* @__PURE__ */ jsx175(StyledLabel3, { size: "md", weight: "bold", children }),
|
|
12325
|
+
badge && /* @__PURE__ */ jsx175(StyledLabel3, { size: "md", weight: "subtle", children: badge })
|
|
12013
12326
|
]
|
|
12014
12327
|
}
|
|
12015
12328
|
);
|
|
12016
12329
|
}
|
|
12017
12330
|
);
|
|
12018
12331
|
TabTrigger.displayName = "Tab.Trigger";
|
|
12019
|
-
var TabContent =
|
|
12332
|
+
var TabContent = forwardRef40(
|
|
12020
12333
|
({ children, ...rest }, ref) => {
|
|
12021
|
-
return /* @__PURE__ */
|
|
12334
|
+
return /* @__PURE__ */ jsx175(TabPrimitive2.Content, { ref, ...rest, children });
|
|
12022
12335
|
}
|
|
12023
12336
|
);
|
|
12024
12337
|
TabContent.displayName = "Tab.Content";
|
|
@@ -12030,17 +12343,17 @@ var Tab = {
|
|
|
12030
12343
|
};
|
|
12031
12344
|
|
|
12032
12345
|
// src/components/Title/Title.tsx
|
|
12033
|
-
import { forwardRef as
|
|
12346
|
+
import { forwardRef as forwardRef41 } from "react";
|
|
12034
12347
|
|
|
12035
12348
|
// src/components/Title/Title.style.ts
|
|
12036
|
-
import
|
|
12349
|
+
import styled29 from "@emotion/styled";
|
|
12037
12350
|
var titleStylesMap = {
|
|
12038
12351
|
lg: "semantic-textStyle-title-4",
|
|
12039
12352
|
md: "semantic-textStyle-title-3",
|
|
12040
12353
|
sm: "semantic-textStyle-title-2",
|
|
12041
12354
|
xs: "semantic-textStyle-title-1"
|
|
12042
12355
|
};
|
|
12043
|
-
var StyledTitle =
|
|
12356
|
+
var StyledTitle = styled29.div(({ theme, size, textAlign, color }) => {
|
|
12044
12357
|
const tokenKey = titleStylesMap[size];
|
|
12045
12358
|
const justifyContent = TEXT_ALIGN_MAPPING2[textAlign];
|
|
12046
12359
|
const BaseColor = color || theme.color.semantic.object.bolder;
|
|
@@ -12055,10 +12368,10 @@ var StyledTitle = styled28.div(({ theme, size, textAlign, color }) => {
|
|
|
12055
12368
|
});
|
|
12056
12369
|
|
|
12057
12370
|
// src/components/Title/Title.tsx
|
|
12058
|
-
import { jsx as
|
|
12059
|
-
var Title =
|
|
12371
|
+
import { jsx as jsx176 } from "@emotion/react/jsx-runtime";
|
|
12372
|
+
var Title = forwardRef41(
|
|
12060
12373
|
({ as, size = "md", textAlign = "left", color, children, ...props }, ref) => {
|
|
12061
|
-
return /* @__PURE__ */
|
|
12374
|
+
return /* @__PURE__ */ jsx176(StyledTitle, { as, ref, size, textAlign, color, ...props, children });
|
|
12062
12375
|
}
|
|
12063
12376
|
);
|
|
12064
12377
|
Title.displayName = "Title";
|
|
@@ -12067,9 +12380,9 @@ Title.displayName = "Title";
|
|
|
12067
12380
|
import { Tooltip as TooltipPrimitive2 } from "radix-ui";
|
|
12068
12381
|
|
|
12069
12382
|
// src/components/Tooltip/tooltip.styles.ts
|
|
12070
|
-
import
|
|
12383
|
+
import styled30 from "@emotion/styled";
|
|
12071
12384
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
12072
|
-
var StyledTooltipContent =
|
|
12385
|
+
var StyledTooltipContent = styled30(TooltipPrimitive.Content)(({ theme }) => ({
|
|
12073
12386
|
backgroundColor: theme.color.semantic.fill.boldest,
|
|
12074
12387
|
color: theme.color.semantic.object.inverse.boldest,
|
|
12075
12388
|
padding: `${theme.scheme.semantic.spacing[6]} ${theme.scheme.semantic.spacing[10]}`,
|
|
@@ -12108,13 +12421,13 @@ var StyledTooltipContent = styled29(TooltipPrimitive.Content)(({ theme }) => ({
|
|
|
12108
12421
|
}));
|
|
12109
12422
|
|
|
12110
12423
|
// src/components/Tooltip/Tooltip.tsx
|
|
12111
|
-
import { jsx as
|
|
12424
|
+
import { jsx as jsx177 } from "@emotion/react/jsx-runtime";
|
|
12112
12425
|
var TooltipRoot = ({ children, delayDuration = 0, ...radixProps }) => {
|
|
12113
|
-
return /* @__PURE__ */
|
|
12426
|
+
return /* @__PURE__ */ jsx177(TooltipPrimitive2.Root, { delayDuration, ...radixProps, children });
|
|
12114
12427
|
};
|
|
12115
12428
|
TooltipRoot.displayName = "Tooltip.Root";
|
|
12116
12429
|
var TooltipTrigger = ({ children, asChild = true, ...restProps }) => {
|
|
12117
|
-
return /* @__PURE__ */
|
|
12430
|
+
return /* @__PURE__ */ jsx177(TooltipPrimitive2.Trigger, { asChild, ...restProps, children });
|
|
12118
12431
|
};
|
|
12119
12432
|
TooltipTrigger.displayName = "Tooltip.Trigger";
|
|
12120
12433
|
var TooltipContent = ({
|
|
@@ -12125,7 +12438,7 @@ var TooltipContent = ({
|
|
|
12125
12438
|
avoidCollisions = true,
|
|
12126
12439
|
...restProps
|
|
12127
12440
|
}) => {
|
|
12128
|
-
return /* @__PURE__ */
|
|
12441
|
+
return /* @__PURE__ */ jsx177(TooltipPrimitive2.Portal, { children: /* @__PURE__ */ jsx177(
|
|
12129
12442
|
StyledTooltipContent,
|
|
12130
12443
|
{
|
|
12131
12444
|
side,
|
|
@@ -12149,7 +12462,7 @@ var Tooltip = {
|
|
|
12149
12462
|
import { useRef as useRef3 } from "react";
|
|
12150
12463
|
|
|
12151
12464
|
// src/components/Uploader/uploader.styles.ts
|
|
12152
|
-
import
|
|
12465
|
+
import styled31 from "@emotion/styled";
|
|
12153
12466
|
var uploaderFileStylesMap = (theme, disabled, isLoading, isDragging) => {
|
|
12154
12467
|
const stylesByState = {
|
|
12155
12468
|
rest: {
|
|
@@ -12218,7 +12531,7 @@ var interactionStyles6 = (theme, isDisabled) => {
|
|
|
12218
12531
|
}
|
|
12219
12532
|
};
|
|
12220
12533
|
};
|
|
12221
|
-
var FileDropZoneDiv =
|
|
12534
|
+
var FileDropZoneDiv = styled31.div(
|
|
12222
12535
|
({ theme, $isDisabled, $isLoading, $isDragging }) => {
|
|
12223
12536
|
const { borderColor, textColor, bgColor } = uploaderFileStylesMap(
|
|
12224
12537
|
theme,
|
|
@@ -12262,18 +12575,18 @@ var FileDropZoneDiv = styled30.div(
|
|
|
12262
12575
|
};
|
|
12263
12576
|
}
|
|
12264
12577
|
);
|
|
12265
|
-
var FileSpan =
|
|
12578
|
+
var FileSpan = styled31.span(({ theme }) => {
|
|
12266
12579
|
return {
|
|
12267
12580
|
textAlign: "center",
|
|
12268
12581
|
...theme.textStyle["semantic-textStyle-body-2xs-bold"]
|
|
12269
12582
|
};
|
|
12270
12583
|
});
|
|
12271
|
-
var LoadingIcon =
|
|
12584
|
+
var LoadingIcon = styled31(Icon)(({ theme }) => {
|
|
12272
12585
|
return {
|
|
12273
12586
|
color: theme.color.semantic.object.alternative
|
|
12274
12587
|
};
|
|
12275
12588
|
});
|
|
12276
|
-
var FlexRowDiv =
|
|
12589
|
+
var FlexRowDiv = styled31.div(({ theme }) => {
|
|
12277
12590
|
return {
|
|
12278
12591
|
display: "flex",
|
|
12279
12592
|
justifyContent: "center",
|
|
@@ -12281,7 +12594,7 @@ var FlexRowDiv = styled30.div(({ theme }) => {
|
|
|
12281
12594
|
gap: theme.scheme.semantic.spacing[8]
|
|
12282
12595
|
};
|
|
12283
12596
|
});
|
|
12284
|
-
var ImageDropZoneButton =
|
|
12597
|
+
var ImageDropZoneButton = styled31.button(
|
|
12285
12598
|
({ theme, $isDisabled, $isLoading }) => {
|
|
12286
12599
|
const interaction = ($isDisabled || !$isLoading) && interactionStyles6(theme, $isDisabled);
|
|
12287
12600
|
return {
|
|
@@ -12320,17 +12633,17 @@ var ImageDropZoneButton = styled30.button(
|
|
|
12320
12633
|
};
|
|
12321
12634
|
}
|
|
12322
12635
|
);
|
|
12323
|
-
var AddIcon =
|
|
12636
|
+
var AddIcon = styled31(Icon)(({ theme, $isDisabled }) => {
|
|
12324
12637
|
return {
|
|
12325
12638
|
color: $isDisabled ? theme.color.semantic.object.subtle : theme.color.semantic.object.alternative
|
|
12326
12639
|
};
|
|
12327
12640
|
});
|
|
12328
|
-
var ImageLabel =
|
|
12641
|
+
var ImageLabel = styled31(Label)(({ theme, $isDisabled }) => {
|
|
12329
12642
|
return {
|
|
12330
12643
|
color: $isDisabled ? theme.color.semantic.object.subtle : theme.color.semantic.object.neutral
|
|
12331
12644
|
};
|
|
12332
12645
|
});
|
|
12333
|
-
var HiddenInput =
|
|
12646
|
+
var HiddenInput = styled31.input(() => {
|
|
12334
12647
|
return {
|
|
12335
12648
|
display: "none"
|
|
12336
12649
|
};
|
|
@@ -12464,22 +12777,22 @@ var useUploader = (options) => {
|
|
|
12464
12777
|
};
|
|
12465
12778
|
|
|
12466
12779
|
// src/components/Uploader/Uploader.tsx
|
|
12467
|
-
import { Fragment as Fragment6, jsx as
|
|
12780
|
+
import { Fragment as Fragment6, jsx as jsx178, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
12468
12781
|
var defaultMessages = {
|
|
12469
|
-
rest: /* @__PURE__ */
|
|
12782
|
+
rest: /* @__PURE__ */ jsxs40(Fragment6, { children: [
|
|
12470
12783
|
"\uD30C\uC77C\uC744 \uB4DC\uB798\uADF8&\uB4DC\uB86D\uD558\uAC70\uB098, \uC9C1\uC811 \uC120\uD0DD\uD574 \uC5C5\uB85C\uB4DC\uD574\uC8FC\uC138\uC694.",
|
|
12471
|
-
/* @__PURE__ */
|
|
12784
|
+
/* @__PURE__ */ jsx178("br", {}),
|
|
12472
12785
|
" \uCD5C\uB300 100MB \uC774\uD558\uC758 PDF \uD30C\uC77C\uC744 \uC5C5\uB85C\uB4DC\uD560 \uC218 \uC788\uC5B4\uC694."
|
|
12473
12786
|
] }),
|
|
12474
|
-
loading: /* @__PURE__ */
|
|
12787
|
+
loading: /* @__PURE__ */ jsxs40(Fragment6, { children: [
|
|
12475
12788
|
"\uD30C\uC77C\uC744 \uC5C5\uB85C\uB4DC\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4. ",
|
|
12476
|
-
/* @__PURE__ */
|
|
12789
|
+
/* @__PURE__ */ jsx178("br", {}),
|
|
12477
12790
|
"\uC7A0\uC2DC\uB9CC \uAE30\uB2E4\uB824\uC8FC\uC138\uC694..."
|
|
12478
12791
|
] }),
|
|
12479
|
-
disabled: /* @__PURE__ */
|
|
12792
|
+
disabled: /* @__PURE__ */ jsx178(Fragment6, { children: "\uAC00\uB2A5\uD55C \uCD5C\uB300 \uC6A9\uB7C9\uC5D0 \uB3C4\uB2EC\uD588\uC5B4\uC694." })
|
|
12480
12793
|
};
|
|
12481
12794
|
var CustomBorderSVG = () => {
|
|
12482
|
-
return /* @__PURE__ */
|
|
12795
|
+
return /* @__PURE__ */ jsx178("svg", { children: /* @__PURE__ */ jsx178("rect", {}) });
|
|
12483
12796
|
};
|
|
12484
12797
|
var UploaderFileButton = ({
|
|
12485
12798
|
isLoading,
|
|
@@ -12490,15 +12803,15 @@ var UploaderFileButton = ({
|
|
|
12490
12803
|
helperLabel
|
|
12491
12804
|
}) => {
|
|
12492
12805
|
if (isLoading && !isDisabled) {
|
|
12493
|
-
return /* @__PURE__ */
|
|
12494
|
-
/* @__PURE__ */
|
|
12495
|
-
/* @__PURE__ */
|
|
12806
|
+
return /* @__PURE__ */ jsxs40(Fragment6, { children: [
|
|
12807
|
+
/* @__PURE__ */ jsx178(LoadingIcon, { name: "spinner", size: "2xl" }),
|
|
12808
|
+
/* @__PURE__ */ jsxs40(FlexRowDiv, { children: [
|
|
12496
12809
|
helperLabel,
|
|
12497
12810
|
cancelButton
|
|
12498
12811
|
] })
|
|
12499
12812
|
] });
|
|
12500
12813
|
}
|
|
12501
|
-
return uploadButton ? uploadButton(triggerUpload) : /* @__PURE__ */
|
|
12814
|
+
return uploadButton ? uploadButton(triggerUpload) : /* @__PURE__ */ jsx178(Fragment6, {});
|
|
12502
12815
|
};
|
|
12503
12816
|
var UploaderFile = ({
|
|
12504
12817
|
accept,
|
|
@@ -12536,7 +12849,7 @@ var UploaderFile = ({
|
|
|
12536
12849
|
const baseBodyText = isLoading ? messages.loading : messages.rest;
|
|
12537
12850
|
const bodyText = isDisabled ? messages.disabled : baseBodyText;
|
|
12538
12851
|
const triggerUpload = () => !isDisabled && !isLoading && inputRef.current?.click();
|
|
12539
|
-
return /* @__PURE__ */
|
|
12852
|
+
return /* @__PURE__ */ jsxs40(
|
|
12540
12853
|
FileDropZoneDiv,
|
|
12541
12854
|
{
|
|
12542
12855
|
onDragEnter: handleDragEnter,
|
|
@@ -12547,9 +12860,9 @@ var UploaderFile = ({
|
|
|
12547
12860
|
$isDisabled: isDisabled,
|
|
12548
12861
|
$isLoading: isLoading,
|
|
12549
12862
|
children: [
|
|
12550
|
-
/* @__PURE__ */
|
|
12551
|
-
/* @__PURE__ */
|
|
12552
|
-
/* @__PURE__ */
|
|
12863
|
+
/* @__PURE__ */ jsx178(CustomBorderSVG, {}),
|
|
12864
|
+
/* @__PURE__ */ jsx178(FileSpan, { children: bodyText }),
|
|
12865
|
+
/* @__PURE__ */ jsx178(
|
|
12553
12866
|
UploaderFileButton,
|
|
12554
12867
|
{
|
|
12555
12868
|
triggerUpload,
|
|
@@ -12560,7 +12873,7 @@ var UploaderFile = ({
|
|
|
12560
12873
|
helperLabel
|
|
12561
12874
|
}
|
|
12562
12875
|
),
|
|
12563
|
-
/* @__PURE__ */
|
|
12876
|
+
/* @__PURE__ */ jsx178(
|
|
12564
12877
|
HiddenInput,
|
|
12565
12878
|
{
|
|
12566
12879
|
ref: inputRef,
|
|
@@ -12583,17 +12896,17 @@ var UploaderImageButton = ({
|
|
|
12583
12896
|
cancelButton
|
|
12584
12897
|
}) => {
|
|
12585
12898
|
if (!isDisabled && isLoading) {
|
|
12586
|
-
return /* @__PURE__ */
|
|
12587
|
-
/* @__PURE__ */
|
|
12588
|
-
/* @__PURE__ */
|
|
12589
|
-
/* @__PURE__ */
|
|
12899
|
+
return /* @__PURE__ */ jsxs40(Fragment6, { children: [
|
|
12900
|
+
/* @__PURE__ */ jsx178(LoadingIcon, { name: "spinner", size: "xl" }),
|
|
12901
|
+
/* @__PURE__ */ jsxs40(FlexRowDiv, { children: [
|
|
12902
|
+
/* @__PURE__ */ jsx178(ImageLabel, { as: "span", size: "sm", textAlign: "center", weight: "normal", $isDisabled: isDisabled, children: loadingLabel }),
|
|
12590
12903
|
cancelButton
|
|
12591
12904
|
] })
|
|
12592
12905
|
] });
|
|
12593
12906
|
}
|
|
12594
|
-
return /* @__PURE__ */
|
|
12595
|
-
/* @__PURE__ */
|
|
12596
|
-
/* @__PURE__ */
|
|
12907
|
+
return /* @__PURE__ */ jsxs40(Fragment6, { children: [
|
|
12908
|
+
/* @__PURE__ */ jsx178(AddIcon, { name: "add-line", size: "xl", $isDisabled: isDisabled }),
|
|
12909
|
+
/* @__PURE__ */ jsx178(ImageLabel, { as: "span", size: "sm", textAlign: "center", weight: "normal", $isDisabled: isDisabled, children: uploadLabel })
|
|
12597
12910
|
] });
|
|
12598
12911
|
};
|
|
12599
12912
|
var UploaderImage = ({
|
|
@@ -12622,9 +12935,9 @@ var UploaderImage = ({
|
|
|
12622
12935
|
onError
|
|
12623
12936
|
});
|
|
12624
12937
|
const handleClick = () => !isDisabled && !isLoading && inputRef.current?.click();
|
|
12625
|
-
return /* @__PURE__ */
|
|
12626
|
-
/* @__PURE__ */
|
|
12627
|
-
/* @__PURE__ */
|
|
12938
|
+
return /* @__PURE__ */ jsxs40(ImageDropZoneButton, { $isDisabled: isDisabled, $isLoading: isLoading, onClick: handleClick, children: [
|
|
12939
|
+
/* @__PURE__ */ jsx178(CustomBorderSVG, {}),
|
|
12940
|
+
/* @__PURE__ */ jsx178(
|
|
12628
12941
|
UploaderImageButton,
|
|
12629
12942
|
{
|
|
12630
12943
|
isDisabled,
|
|
@@ -12634,7 +12947,7 @@ var UploaderImage = ({
|
|
|
12634
12947
|
cancelButton
|
|
12635
12948
|
}
|
|
12636
12949
|
),
|
|
12637
|
-
/* @__PURE__ */
|
|
12950
|
+
/* @__PURE__ */ jsx178(
|
|
12638
12951
|
HiddenInput,
|
|
12639
12952
|
{
|
|
12640
12953
|
ref: inputRef,
|
|
@@ -12658,13 +12971,13 @@ import ReactDOM2 from "react-dom";
|
|
|
12658
12971
|
|
|
12659
12972
|
// ../../node_modules/@radix-ui/react-context/dist/index.mjs
|
|
12660
12973
|
import * as React from "react";
|
|
12661
|
-
import { jsx as
|
|
12974
|
+
import { jsx as jsx179 } from "react/jsx-runtime";
|
|
12662
12975
|
function createContext22(rootComponentName, defaultContext) {
|
|
12663
12976
|
const Context2 = React.createContext(defaultContext);
|
|
12664
12977
|
const Provider = (props) => {
|
|
12665
12978
|
const { children, ...context } = props;
|
|
12666
12979
|
const value = React.useMemo(() => context, Object.values(context));
|
|
12667
|
-
return /* @__PURE__ */
|
|
12980
|
+
return /* @__PURE__ */ jsx179(Context2.Provider, { value, children });
|
|
12668
12981
|
};
|
|
12669
12982
|
Provider.displayName = rootComponentName + "Provider";
|
|
12670
12983
|
function useContext22(consumerName) {
|
|
@@ -12685,7 +12998,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
12685
12998
|
const { scope, children, ...context } = props;
|
|
12686
12999
|
const Context2 = scope?.[scopeName]?.[index] || BaseContext;
|
|
12687
13000
|
const value = React.useMemo(() => context, Object.values(context));
|
|
12688
|
-
return /* @__PURE__ */
|
|
13001
|
+
return /* @__PURE__ */ jsx179(Context2.Provider, { value, children });
|
|
12689
13002
|
};
|
|
12690
13003
|
Provider.displayName = rootComponentName + "Provider";
|
|
12691
13004
|
function useContext22(consumerName, scope) {
|
|
@@ -12789,7 +13102,7 @@ function useComposedRefs(...refs) {
|
|
|
12789
13102
|
}
|
|
12790
13103
|
|
|
12791
13104
|
// ../../node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
12792
|
-
import { Fragment as Fragment22, jsx as
|
|
13105
|
+
import { Fragment as Fragment22, jsx as jsx180 } from "react/jsx-runtime";
|
|
12793
13106
|
// @__NO_SIDE_EFFECTS__
|
|
12794
13107
|
function createSlot(ownerName) {
|
|
12795
13108
|
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
@@ -12807,9 +13120,9 @@ function createSlot(ownerName) {
|
|
|
12807
13120
|
return child;
|
|
12808
13121
|
}
|
|
12809
13122
|
});
|
|
12810
|
-
return /* @__PURE__ */
|
|
13123
|
+
return /* @__PURE__ */ jsx180(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
|
|
12811
13124
|
}
|
|
12812
|
-
return /* @__PURE__ */
|
|
13125
|
+
return /* @__PURE__ */ jsx180(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
12813
13126
|
});
|
|
12814
13127
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
12815
13128
|
return Slot2;
|
|
@@ -12874,7 +13187,7 @@ function getElementRef(element) {
|
|
|
12874
13187
|
}
|
|
12875
13188
|
|
|
12876
13189
|
// ../../node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
12877
|
-
import { jsx as
|
|
13190
|
+
import { jsx as jsx181 } from "react/jsx-runtime";
|
|
12878
13191
|
var NODES = [
|
|
12879
13192
|
"a",
|
|
12880
13193
|
"button",
|
|
@@ -12902,7 +13215,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
12902
13215
|
if (typeof window !== "undefined") {
|
|
12903
13216
|
window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
|
|
12904
13217
|
}
|
|
12905
|
-
return /* @__PURE__ */
|
|
13218
|
+
return /* @__PURE__ */ jsx181(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
12906
13219
|
});
|
|
12907
13220
|
Node2.displayName = `Primitive.${node}`;
|
|
12908
13221
|
return { ...primitive, [node]: Node2 };
|
|
@@ -12988,7 +13301,7 @@ function isFunction(value) {
|
|
|
12988
13301
|
|
|
12989
13302
|
// ../../node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
12990
13303
|
import * as React7 from "react";
|
|
12991
|
-
import { jsx as
|
|
13304
|
+
import { jsx as jsx182 } from "react/jsx-runtime";
|
|
12992
13305
|
var DirectionContext = React7.createContext(void 0);
|
|
12993
13306
|
function useDirection(localDir) {
|
|
12994
13307
|
const globalDir = React7.useContext(DirectionContext);
|
|
@@ -13135,7 +13448,7 @@ function useId6(deterministicId) {
|
|
|
13135
13448
|
|
|
13136
13449
|
// ../../node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
13137
13450
|
import React10 from "react";
|
|
13138
|
-
import { jsx as
|
|
13451
|
+
import { jsx as jsx183 } from "react/jsx-runtime";
|
|
13139
13452
|
import React24 from "react";
|
|
13140
13453
|
import { jsx as jsx210 } from "react/jsx-runtime";
|
|
13141
13454
|
function createCollection(name) {
|
|
@@ -13149,7 +13462,7 @@ function createCollection(name) {
|
|
|
13149
13462
|
const { scope, children } = props;
|
|
13150
13463
|
const ref = React10.useRef(null);
|
|
13151
13464
|
const itemMap = React10.useRef(/* @__PURE__ */ new Map()).current;
|
|
13152
|
-
return /* @__PURE__ */
|
|
13465
|
+
return /* @__PURE__ */ jsx183(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
13153
13466
|
};
|
|
13154
13467
|
CollectionProvider.displayName = PROVIDER_NAME;
|
|
13155
13468
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
@@ -13159,7 +13472,7 @@ function createCollection(name) {
|
|
|
13159
13472
|
const { scope, children } = props;
|
|
13160
13473
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
13161
13474
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
13162
|
-
return /* @__PURE__ */
|
|
13475
|
+
return /* @__PURE__ */ jsx183(CollectionSlotImpl, { ref: composedRefs, children });
|
|
13163
13476
|
}
|
|
13164
13477
|
);
|
|
13165
13478
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
@@ -13176,7 +13489,7 @@ function createCollection(name) {
|
|
|
13176
13489
|
context.itemMap.set(ref, { ref, ...itemData });
|
|
13177
13490
|
return () => void context.itemMap.delete(ref);
|
|
13178
13491
|
});
|
|
13179
|
-
return /* @__PURE__ */
|
|
13492
|
+
return /* @__PURE__ */ jsx183(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
13180
13493
|
}
|
|
13181
13494
|
);
|
|
13182
13495
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
@@ -13230,7 +13543,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
13230
13543
|
}
|
|
13231
13544
|
|
|
13232
13545
|
// ../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
13233
|
-
import { jsx as
|
|
13546
|
+
import { jsx as jsx184 } from "react/jsx-runtime";
|
|
13234
13547
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
13235
13548
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
13236
13549
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
@@ -13318,7 +13631,7 @@ var DismissableLayer = React13.forwardRef(
|
|
|
13318
13631
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
13319
13632
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
13320
13633
|
}, []);
|
|
13321
|
-
return /* @__PURE__ */
|
|
13634
|
+
return /* @__PURE__ */ jsx184(
|
|
13322
13635
|
Primitive.div,
|
|
13323
13636
|
{
|
|
13324
13637
|
...layerProps,
|
|
@@ -13352,7 +13665,7 @@ var DismissableLayerBranch = React13.forwardRef((props, forwardedRef) => {
|
|
|
13352
13665
|
};
|
|
13353
13666
|
}
|
|
13354
13667
|
}, [context.branches]);
|
|
13355
|
-
return /* @__PURE__ */
|
|
13668
|
+
return /* @__PURE__ */ jsx184(Primitive.div, { ...props, ref: composedRefs });
|
|
13356
13669
|
});
|
|
13357
13670
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
13358
13671
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -13449,7 +13762,7 @@ function usePrevious(value) {
|
|
|
13449
13762
|
|
|
13450
13763
|
// ../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
13451
13764
|
import * as React15 from "react";
|
|
13452
|
-
import { jsx as
|
|
13765
|
+
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
13453
13766
|
var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
13454
13767
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
13455
13768
|
position: "absolute",
|
|
@@ -13466,7 +13779,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
13466
13779
|
var NAME = "VisuallyHidden";
|
|
13467
13780
|
var VisuallyHidden = React15.forwardRef(
|
|
13468
13781
|
(props, forwardedRef) => {
|
|
13469
|
-
return /* @__PURE__ */
|
|
13782
|
+
return /* @__PURE__ */ jsx185(
|
|
13470
13783
|
Primitive.span,
|
|
13471
13784
|
{
|
|
13472
13785
|
...props,
|
|
@@ -13480,7 +13793,7 @@ VisuallyHidden.displayName = NAME;
|
|
|
13480
13793
|
var Root = VisuallyHidden;
|
|
13481
13794
|
|
|
13482
13795
|
// ../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs
|
|
13483
|
-
import { Fragment as Fragment8, jsx as
|
|
13796
|
+
import { Fragment as Fragment8, jsx as jsx186, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
13484
13797
|
var NAVIGATION_MENU_NAME = "NavigationMenu";
|
|
13485
13798
|
var [Collection, useCollection, createCollectionScope] = createCollection(NAVIGATION_MENU_NAME);
|
|
13486
13799
|
var [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME);
|
|
@@ -13562,7 +13875,7 @@ var NavigationMenu = React16.forwardRef(
|
|
|
13562
13875
|
window.clearTimeout(skipDelayTimerRef.current);
|
|
13563
13876
|
};
|
|
13564
13877
|
}, []);
|
|
13565
|
-
return /* @__PURE__ */
|
|
13878
|
+
return /* @__PURE__ */ jsx186(
|
|
13566
13879
|
NavigationMenuProvider,
|
|
13567
13880
|
{
|
|
13568
13881
|
scope: __scopeNavigationMenu,
|
|
@@ -13586,7 +13899,7 @@ var NavigationMenu = React16.forwardRef(
|
|
|
13586
13899
|
setValue((prevValue) => prevValue === itemValue ? "" : itemValue);
|
|
13587
13900
|
},
|
|
13588
13901
|
onItemDismiss: () => setValue(""),
|
|
13589
|
-
children: /* @__PURE__ */
|
|
13902
|
+
children: /* @__PURE__ */ jsx186(
|
|
13590
13903
|
Primitive.nav,
|
|
13591
13904
|
{
|
|
13592
13905
|
"aria-label": "Main",
|
|
@@ -13619,7 +13932,7 @@ var NavigationMenuSub = React16.forwardRef(
|
|
|
13619
13932
|
defaultProp: defaultValue ?? "",
|
|
13620
13933
|
caller: SUB_NAME
|
|
13621
13934
|
});
|
|
13622
|
-
return /* @__PURE__ */
|
|
13935
|
+
return /* @__PURE__ */ jsx186(
|
|
13623
13936
|
NavigationMenuProvider,
|
|
13624
13937
|
{
|
|
13625
13938
|
scope: __scopeNavigationMenu,
|
|
@@ -13631,7 +13944,7 @@ var NavigationMenuSub = React16.forwardRef(
|
|
|
13631
13944
|
onTriggerEnter: (itemValue) => setValue(itemValue),
|
|
13632
13945
|
onItemSelect: (itemValue) => setValue(itemValue),
|
|
13633
13946
|
onItemDismiss: () => setValue(""),
|
|
13634
|
-
children: /* @__PURE__ */
|
|
13947
|
+
children: /* @__PURE__ */ jsx186(Primitive.div, { "data-orientation": orientation, ...subProps, ref: forwardedRef })
|
|
13635
13948
|
}
|
|
13636
13949
|
);
|
|
13637
13950
|
}
|
|
@@ -13656,7 +13969,7 @@ var NavigationMenuProvider = (props) => {
|
|
|
13656
13969
|
const [viewport, setViewport] = React16.useState(null);
|
|
13657
13970
|
const [viewportContent, setViewportContent] = React16.useState(/* @__PURE__ */ new Map());
|
|
13658
13971
|
const [indicatorTrack, setIndicatorTrack] = React16.useState(null);
|
|
13659
|
-
return /* @__PURE__ */
|
|
13972
|
+
return /* @__PURE__ */ jsx186(
|
|
13660
13973
|
NavigationMenuProviderImpl,
|
|
13661
13974
|
{
|
|
13662
13975
|
scope,
|
|
@@ -13690,7 +14003,7 @@ var NavigationMenuProvider = (props) => {
|
|
|
13690
14003
|
return new Map(prevContent);
|
|
13691
14004
|
});
|
|
13692
14005
|
}, []),
|
|
13693
|
-
children: /* @__PURE__ */
|
|
14006
|
+
children: /* @__PURE__ */ jsx186(Collection.Provider, { scope, children: /* @__PURE__ */ jsx186(ViewportContentProvider, { scope, items: viewportContent, children }) })
|
|
13694
14007
|
}
|
|
13695
14008
|
);
|
|
13696
14009
|
};
|
|
@@ -13699,8 +14012,8 @@ var NavigationMenuList = React16.forwardRef(
|
|
|
13699
14012
|
(props, forwardedRef) => {
|
|
13700
14013
|
const { __scopeNavigationMenu, ...listProps } = props;
|
|
13701
14014
|
const context = useNavigationMenuContext(LIST_NAME, __scopeNavigationMenu);
|
|
13702
|
-
const list = /* @__PURE__ */
|
|
13703
|
-
return /* @__PURE__ */
|
|
14015
|
+
const list = /* @__PURE__ */ jsx186(Primitive.ul, { "data-orientation": context.orientation, ...listProps, ref: forwardedRef });
|
|
14016
|
+
return /* @__PURE__ */ jsx186(Primitive.div, { style: { position: "relative" }, ref: context.onIndicatorTrackChange, children: /* @__PURE__ */ jsx186(Collection.Slot, { scope: __scopeNavigationMenu, children: context.isRootMenu ? /* @__PURE__ */ jsx186(FocusGroup, { asChild: true, children: list }) : list }) });
|
|
13704
14017
|
}
|
|
13705
14018
|
);
|
|
13706
14019
|
NavigationMenuList.displayName = LIST_NAME;
|
|
@@ -13730,7 +14043,7 @@ var NavigationMenuItem = React16.forwardRef(
|
|
|
13730
14043
|
if (candidates.length) restoreContentTabOrderRef.current = removeFromTabOrder(candidates);
|
|
13731
14044
|
}
|
|
13732
14045
|
}, []);
|
|
13733
|
-
return /* @__PURE__ */
|
|
14046
|
+
return /* @__PURE__ */ jsx186(
|
|
13734
14047
|
NavigationMenuItemContextProvider,
|
|
13735
14048
|
{
|
|
13736
14049
|
scope: __scopeNavigationMenu,
|
|
@@ -13743,7 +14056,7 @@ var NavigationMenuItem = React16.forwardRef(
|
|
|
13743
14056
|
onFocusProxyEnter: handleContentEntry,
|
|
13744
14057
|
onRootContentClose: handleContentExit,
|
|
13745
14058
|
onContentFocusOutside: handleContentExit,
|
|
13746
|
-
children: /* @__PURE__ */
|
|
14059
|
+
children: /* @__PURE__ */ jsx186(Primitive.li, { ...itemProps, ref: forwardedRef })
|
|
13747
14060
|
}
|
|
13748
14061
|
);
|
|
13749
14062
|
}
|
|
@@ -13761,8 +14074,8 @@ var NavigationMenuTrigger = React16.forwardRef((props, forwardedRef) => {
|
|
|
13761
14074
|
const hasPointerMoveOpenedRef = React16.useRef(false);
|
|
13762
14075
|
const wasClickCloseRef = React16.useRef(false);
|
|
13763
14076
|
const open = itemContext.value === context.value;
|
|
13764
|
-
return /* @__PURE__ */
|
|
13765
|
-
/* @__PURE__ */
|
|
14077
|
+
return /* @__PURE__ */ jsxs41(Fragment8, { children: [
|
|
14078
|
+
/* @__PURE__ */ jsx186(Collection.ItemSlot, { scope: __scopeNavigationMenu, value: itemContext.value, children: /* @__PURE__ */ jsx186(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsx186(
|
|
13766
14079
|
Primitive.button,
|
|
13767
14080
|
{
|
|
13768
14081
|
id: triggerId,
|
|
@@ -13808,8 +14121,8 @@ var NavigationMenuTrigger = React16.forwardRef((props, forwardedRef) => {
|
|
|
13808
14121
|
})
|
|
13809
14122
|
}
|
|
13810
14123
|
) }) }),
|
|
13811
|
-
open && /* @__PURE__ */
|
|
13812
|
-
/* @__PURE__ */
|
|
14124
|
+
open && /* @__PURE__ */ jsxs41(Fragment8, { children: [
|
|
14125
|
+
/* @__PURE__ */ jsx186(
|
|
13813
14126
|
Root,
|
|
13814
14127
|
{
|
|
13815
14128
|
"aria-hidden": true,
|
|
@@ -13826,7 +14139,7 @@ var NavigationMenuTrigger = React16.forwardRef((props, forwardedRef) => {
|
|
|
13826
14139
|
}
|
|
13827
14140
|
}
|
|
13828
14141
|
),
|
|
13829
|
-
context.viewport && /* @__PURE__ */
|
|
14142
|
+
context.viewport && /* @__PURE__ */ jsx186("span", { "aria-owns": contentId })
|
|
13830
14143
|
] })
|
|
13831
14144
|
] });
|
|
13832
14145
|
});
|
|
@@ -13836,7 +14149,7 @@ var LINK_SELECT = "navigationMenu.linkSelect";
|
|
|
13836
14149
|
var NavigationMenuLink = React16.forwardRef(
|
|
13837
14150
|
(props, forwardedRef) => {
|
|
13838
14151
|
const { __scopeNavigationMenu, active, onSelect, ...linkProps } = props;
|
|
13839
|
-
return /* @__PURE__ */
|
|
14152
|
+
return /* @__PURE__ */ jsx186(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsx186(
|
|
13840
14153
|
Primitive.a,
|
|
13841
14154
|
{
|
|
13842
14155
|
"data-active": active ? "" : void 0,
|
|
@@ -13874,7 +14187,7 @@ var NavigationMenuIndicator = React16.forwardRef((props, forwardedRef) => {
|
|
|
13874
14187
|
const context = useNavigationMenuContext(INDICATOR_NAME, props.__scopeNavigationMenu);
|
|
13875
14188
|
const isVisible = Boolean(context.value);
|
|
13876
14189
|
return context.indicatorTrack ? ReactDOM2.createPortal(
|
|
13877
|
-
/* @__PURE__ */
|
|
14190
|
+
/* @__PURE__ */ jsx186(Presence, { present: forceMount || isVisible, children: /* @__PURE__ */ jsx186(NavigationMenuIndicatorImpl, { ...indicatorProps, ref: forwardedRef }) }),
|
|
13878
14191
|
context.indicatorTrack
|
|
13879
14192
|
) : null;
|
|
13880
14193
|
});
|
|
@@ -13904,7 +14217,7 @@ var NavigationMenuIndicatorImpl = React16.forwardRef((props, forwardedRef) => {
|
|
|
13904
14217
|
};
|
|
13905
14218
|
useResizeObserver(activeTrigger, handlePositionChange);
|
|
13906
14219
|
useResizeObserver(context.indicatorTrack, handlePositionChange);
|
|
13907
|
-
return position ? /* @__PURE__ */
|
|
14220
|
+
return position ? /* @__PURE__ */ jsx186(
|
|
13908
14221
|
Primitive.div,
|
|
13909
14222
|
{
|
|
13910
14223
|
"aria-hidden": true,
|
|
@@ -13944,7 +14257,7 @@ var NavigationMenuContent = React16.forwardRef((props, forwardedRef) => {
|
|
|
13944
14257
|
onRootContentClose: itemContext.onRootContentClose,
|
|
13945
14258
|
...contentProps
|
|
13946
14259
|
};
|
|
13947
|
-
return !context.viewport ? /* @__PURE__ */
|
|
14260
|
+
return !context.viewport ? /* @__PURE__ */ jsx186(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx186(
|
|
13948
14261
|
NavigationMenuContentImpl,
|
|
13949
14262
|
{
|
|
13950
14263
|
"data-state": getOpenState(open),
|
|
@@ -13961,7 +14274,7 @@ var NavigationMenuContent = React16.forwardRef((props, forwardedRef) => {
|
|
|
13961
14274
|
...commonProps.style
|
|
13962
14275
|
}
|
|
13963
14276
|
}
|
|
13964
|
-
) }) : /* @__PURE__ */
|
|
14277
|
+
) }) : /* @__PURE__ */ jsx186(ViewportContentMounter, { forceMount, ...commonProps, ref: composedRefs });
|
|
13965
14278
|
});
|
|
13966
14279
|
NavigationMenuContent.displayName = CONTENT_NAME;
|
|
13967
14280
|
var ViewportContentMounter = React16.forwardRef((props, forwardedRef) => {
|
|
@@ -14029,7 +14342,7 @@ var NavigationMenuContentImpl = React16.forwardRef((props, forwardedRef) => {
|
|
|
14029
14342
|
prevMotionAttributeRef.current = attribute;
|
|
14030
14343
|
return attribute;
|
|
14031
14344
|
}, [context.previousValue, context.value, context.dir, getItems, value]);
|
|
14032
|
-
return /* @__PURE__ */
|
|
14345
|
+
return /* @__PURE__ */ jsx186(FocusGroup, { asChild: true, children: /* @__PURE__ */ jsx186(
|
|
14033
14346
|
DismissableLayer,
|
|
14034
14347
|
{
|
|
14035
14348
|
id: contentId,
|
|
@@ -14084,7 +14397,7 @@ var NavigationMenuViewport = React16.forwardRef((props, forwardedRef) => {
|
|
|
14084
14397
|
const { forceMount, ...viewportProps } = props;
|
|
14085
14398
|
const context = useNavigationMenuContext(VIEWPORT_NAME, props.__scopeNavigationMenu);
|
|
14086
14399
|
const open = Boolean(context.value);
|
|
14087
|
-
return /* @__PURE__ */
|
|
14400
|
+
return /* @__PURE__ */ jsx186(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx186(NavigationMenuViewportImpl, { ...viewportProps, ref: forwardedRef }) });
|
|
14088
14401
|
});
|
|
14089
14402
|
NavigationMenuViewport.displayName = VIEWPORT_NAME;
|
|
14090
14403
|
var NavigationMenuViewportImpl = React16.forwardRef((props, forwardedRef) => {
|
|
@@ -14105,7 +14418,7 @@ var NavigationMenuViewportImpl = React16.forwardRef((props, forwardedRef) => {
|
|
|
14105
14418
|
if (content) setSize({ width: content.offsetWidth, height: content.offsetHeight });
|
|
14106
14419
|
};
|
|
14107
14420
|
useResizeObserver(content, handleSizeChange);
|
|
14108
|
-
return /* @__PURE__ */
|
|
14421
|
+
return /* @__PURE__ */ jsx186(
|
|
14109
14422
|
Primitive.div,
|
|
14110
14423
|
{
|
|
14111
14424
|
"data-state": getOpenState(open),
|
|
@@ -14123,7 +14436,7 @@ var NavigationMenuViewportImpl = React16.forwardRef((props, forwardedRef) => {
|
|
|
14123
14436
|
onPointerLeave: composeEventHandlers(props.onPointerLeave, whenMouse(context.onContentLeave)),
|
|
14124
14437
|
children: Array.from(viewportContentContext.items).map(([value, { ref, forceMount, ...props2 }]) => {
|
|
14125
14438
|
const isActive = activeContentValue === value;
|
|
14126
|
-
return /* @__PURE__ */
|
|
14439
|
+
return /* @__PURE__ */ jsx186(Presence, { present: forceMount || isActive, children: /* @__PURE__ */ jsx186(
|
|
14127
14440
|
NavigationMenuContentImpl,
|
|
14128
14441
|
{
|
|
14129
14442
|
...props2,
|
|
@@ -14141,7 +14454,7 @@ var FocusGroup = React16.forwardRef(
|
|
|
14141
14454
|
(props, forwardedRef) => {
|
|
14142
14455
|
const { __scopeNavigationMenu, ...groupProps } = props;
|
|
14143
14456
|
const context = useNavigationMenuContext(FOCUS_GROUP_NAME, __scopeNavigationMenu);
|
|
14144
|
-
return /* @__PURE__ */
|
|
14457
|
+
return /* @__PURE__ */ jsx186(FocusGroupCollection.Provider, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx186(FocusGroupCollection.Slot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx186(Primitive.div, { dir: context.dir, ...groupProps, ref: forwardedRef }) }) });
|
|
14145
14458
|
}
|
|
14146
14459
|
);
|
|
14147
14460
|
var ARROW_KEYS = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"];
|
|
@@ -14151,7 +14464,7 @@ var FocusGroupItem = React16.forwardRef(
|
|
|
14151
14464
|
const { __scopeNavigationMenu, ...groupProps } = props;
|
|
14152
14465
|
const getItems = useFocusGroupCollection(__scopeNavigationMenu);
|
|
14153
14466
|
const context = useNavigationMenuContext(FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);
|
|
14154
|
-
return /* @__PURE__ */
|
|
14467
|
+
return /* @__PURE__ */ jsx186(FocusGroupCollection.ItemSlot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx186(
|
|
14155
14468
|
Primitive.button,
|
|
14156
14469
|
{
|
|
14157
14470
|
...groupProps,
|
|
@@ -14244,10 +14557,10 @@ var Link = NavigationMenuLink;
|
|
|
14244
14557
|
var Content = NavigationMenuContent;
|
|
14245
14558
|
|
|
14246
14559
|
// src/components/Navigation/GlobalNavigation/GlobalNavigation.tsx
|
|
14247
|
-
import { forwardRef as
|
|
14560
|
+
import { forwardRef as forwardRef47 } from "react";
|
|
14248
14561
|
|
|
14249
14562
|
// src/components/Navigation/GlobalNavigation/globalNavigation.styles.ts
|
|
14250
|
-
import
|
|
14563
|
+
import styled32 from "@emotion/styled";
|
|
14251
14564
|
var globalNavigationStyleMap = (theme) => ({
|
|
14252
14565
|
empty: {
|
|
14253
14566
|
backgroundColor: "transparent",
|
|
@@ -14258,7 +14571,7 @@ var globalNavigationStyleMap = (theme) => ({
|
|
|
14258
14571
|
borderBottom: `1px solid ${theme.color.semantic.stroke.subtle}`
|
|
14259
14572
|
}
|
|
14260
14573
|
});
|
|
14261
|
-
var StyledGlobalNavigationWrapper =
|
|
14574
|
+
var StyledGlobalNavigationWrapper = styled32.div(
|
|
14262
14575
|
({ theme, $variant }) => {
|
|
14263
14576
|
const globalNavigationStyles = globalNavigationStyleMap(theme)[$variant];
|
|
14264
14577
|
return {
|
|
@@ -14279,7 +14592,7 @@ var StyledGlobalNavigationWrapper = styled31.div(
|
|
|
14279
14592
|
};
|
|
14280
14593
|
}
|
|
14281
14594
|
);
|
|
14282
|
-
var StyledGlobalNavigationRoot =
|
|
14595
|
+
var StyledGlobalNavigationRoot = styled32(Root2)(({ theme }) => ({
|
|
14283
14596
|
position: "relative",
|
|
14284
14597
|
display: "flex",
|
|
14285
14598
|
justifyContent: "left",
|
|
@@ -14302,7 +14615,7 @@ var AlignMap = {
|
|
|
14302
14615
|
left: "flex-start",
|
|
14303
14616
|
right: "flex-end"
|
|
14304
14617
|
};
|
|
14305
|
-
var StyledGlobalNavigationListWrapper =
|
|
14618
|
+
var StyledGlobalNavigationListWrapper = styled32.div`
|
|
14306
14619
|
display: flex;
|
|
14307
14620
|
justify-content: ${({ $align }) => AlignMap[$align]};
|
|
14308
14621
|
flex: 1;
|
|
@@ -14315,7 +14628,7 @@ var StyledGlobalNavigationListWrapper = styled31.div`
|
|
|
14315
14628
|
justify-content: flex-end;
|
|
14316
14629
|
}
|
|
14317
14630
|
`;
|
|
14318
|
-
var StyledGlobalNavigationList =
|
|
14631
|
+
var StyledGlobalNavigationList = styled32(List)(({ theme }) => ({
|
|
14319
14632
|
display: "flex",
|
|
14320
14633
|
alignItems: "center",
|
|
14321
14634
|
gap: theme.scheme.semantic.spacing[32],
|
|
@@ -14325,26 +14638,26 @@ var StyledGlobalNavigationList = styled31(List)(({ theme }) => ({
|
|
|
14325
14638
|
gap: theme.scheme.semantic.spacing[24]
|
|
14326
14639
|
}
|
|
14327
14640
|
}));
|
|
14328
|
-
var StyledGlobalNavigationItem =
|
|
14641
|
+
var StyledGlobalNavigationItem = styled32(Item)(() => ({
|
|
14329
14642
|
position: "relative"
|
|
14330
14643
|
}));
|
|
14331
|
-
var StyledMobileMenuButton =
|
|
14644
|
+
var StyledMobileMenuButton = styled32(IconButton.Basic)(({ theme }) => ({
|
|
14332
14645
|
display: "none",
|
|
14333
14646
|
[theme.breakPoint.mobile]: {
|
|
14334
14647
|
display: "inline-block"
|
|
14335
14648
|
}
|
|
14336
14649
|
}));
|
|
14337
|
-
var StyledGlobalNavigationLogoLink =
|
|
14650
|
+
var StyledGlobalNavigationLogoLink = styled32(Link)(() => ({
|
|
14338
14651
|
textDecoration: "none",
|
|
14339
14652
|
color: "inherit"
|
|
14340
14653
|
}));
|
|
14341
|
-
var StyledDividerWrapper =
|
|
14654
|
+
var StyledDividerWrapper = styled32.div(({ theme }) => ({
|
|
14342
14655
|
height: pxToRem(20),
|
|
14343
14656
|
[theme.breakPoint.tablet]: {
|
|
14344
14657
|
height: pxToRem(18)
|
|
14345
14658
|
}
|
|
14346
14659
|
}));
|
|
14347
|
-
var StyledGlobalNavigationContent =
|
|
14660
|
+
var StyledGlobalNavigationContent = styled32(
|
|
14348
14661
|
Content
|
|
14349
14662
|
)(({ $offset }) => {
|
|
14350
14663
|
return {
|
|
@@ -14356,15 +14669,15 @@ var StyledGlobalNavigationContent = styled31(
|
|
|
14356
14669
|
});
|
|
14357
14670
|
|
|
14358
14671
|
// src/components/Navigation/GlobalNavigation/GlobalNavigation.tsx
|
|
14359
|
-
import { jsx as
|
|
14360
|
-
var GlobalNavigationRoot =
|
|
14672
|
+
import { jsx as jsx187 } from "@emotion/react/jsx-runtime";
|
|
14673
|
+
var GlobalNavigationRoot = forwardRef47(
|
|
14361
14674
|
({ children, variant = "empty", ...props }, ref) => {
|
|
14362
|
-
return /* @__PURE__ */
|
|
14675
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationWrapper, { $variant: variant, children: /* @__PURE__ */ jsx187(StyledGlobalNavigationRoot, { ref, ...props, children }) });
|
|
14363
14676
|
}
|
|
14364
14677
|
);
|
|
14365
14678
|
GlobalNavigationRoot.displayName = "GlobalNavigation.Root";
|
|
14366
|
-
var GlobalNavigationMobileMenuButton =
|
|
14367
|
-
return /* @__PURE__ */
|
|
14679
|
+
var GlobalNavigationMobileMenuButton = forwardRef47(({ ...props }, ref) => {
|
|
14680
|
+
return /* @__PURE__ */ jsx187(
|
|
14368
14681
|
StyledMobileMenuButton,
|
|
14369
14682
|
{
|
|
14370
14683
|
ref,
|
|
@@ -14377,44 +14690,44 @@ var GlobalNavigationMobileMenuButton = forwardRef46(({ ...props }, ref) => {
|
|
|
14377
14690
|
);
|
|
14378
14691
|
});
|
|
14379
14692
|
GlobalNavigationMobileMenuButton.displayName = "GlobalNavigation.MobileMenuButton";
|
|
14380
|
-
var GlobalNavigationList =
|
|
14693
|
+
var GlobalNavigationList = forwardRef47(
|
|
14381
14694
|
({ children, align = "left", ...props }, ref) => {
|
|
14382
|
-
return /* @__PURE__ */
|
|
14695
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationListWrapper, { $align: align, children: /* @__PURE__ */ jsx187(StyledGlobalNavigationList, { ref, role: "list", ...props, children }) });
|
|
14383
14696
|
}
|
|
14384
14697
|
);
|
|
14385
14698
|
GlobalNavigationList.displayName = "GlobalNavigation.List";
|
|
14386
|
-
var GlobalNavigationItem =
|
|
14699
|
+
var GlobalNavigationItem = forwardRef47(
|
|
14387
14700
|
({ children, ...props }, ref) => {
|
|
14388
|
-
return /* @__PURE__ */
|
|
14701
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationItem, { ref, ...props, children });
|
|
14389
14702
|
}
|
|
14390
14703
|
);
|
|
14391
14704
|
GlobalNavigationItem.displayName = "GlobalNavigation.Item";
|
|
14392
|
-
var GlobalNavigationTrigger =
|
|
14705
|
+
var GlobalNavigationTrigger = forwardRef47(
|
|
14393
14706
|
({ asChild = true, ...props }, ref) => {
|
|
14394
|
-
return /* @__PURE__ */
|
|
14707
|
+
return /* @__PURE__ */ jsx187(Trigger, { ref, asChild, ...props });
|
|
14395
14708
|
}
|
|
14396
14709
|
);
|
|
14397
14710
|
GlobalNavigationTrigger.displayName = "GlobalNavigation.Trigger";
|
|
14398
14711
|
var GlobalNavigationLink = Link;
|
|
14399
14712
|
GlobalNavigationLink.displayName = "GlobalNavigation.Link";
|
|
14400
14713
|
var GlobalNavigationDivider = () => {
|
|
14401
|
-
return /* @__PURE__ */
|
|
14714
|
+
return /* @__PURE__ */ jsx187(StyledDividerWrapper, { children: /* @__PURE__ */ jsx187(Divider, { thickness: "normal", orientation: "vertical", variant: "solid" }) });
|
|
14402
14715
|
};
|
|
14403
|
-
var GlobalNavigationLogoLink =
|
|
14716
|
+
var GlobalNavigationLogoLink = forwardRef47(
|
|
14404
14717
|
({ children, href, ...props }, ref) => {
|
|
14405
|
-
return /* @__PURE__ */
|
|
14718
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationLogoLink, { href, ref, ...props, children });
|
|
14406
14719
|
}
|
|
14407
14720
|
);
|
|
14408
14721
|
GlobalNavigationLogoLink.displayName = "GlobalNavigation.LogoLink";
|
|
14409
|
-
var GlobalNavigationLogoItem =
|
|
14722
|
+
var GlobalNavigationLogoItem = forwardRef47(
|
|
14410
14723
|
({ children, ...props }, ref) => {
|
|
14411
|
-
return /* @__PURE__ */
|
|
14724
|
+
return /* @__PURE__ */ jsx187("div", { ref, ...props, children });
|
|
14412
14725
|
}
|
|
14413
14726
|
);
|
|
14414
14727
|
GlobalNavigationLogoItem.displayName = "GlobalNavigation.LogoItem";
|
|
14415
|
-
var GlobalNavigationContent =
|
|
14728
|
+
var GlobalNavigationContent = forwardRef47(
|
|
14416
14729
|
({ children, offset = 0, ...props }, ref) => {
|
|
14417
|
-
return /* @__PURE__ */
|
|
14730
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationContent, { ref, $offset: offset, ...props, children });
|
|
14418
14731
|
}
|
|
14419
14732
|
);
|
|
14420
14733
|
GlobalNavigationContent.displayName = "GlobalNavigation.Content";
|
|
@@ -14448,17 +14761,17 @@ var useGlobalNavigationVariant = (options = {}) => {
|
|
|
14448
14761
|
};
|
|
14449
14762
|
|
|
14450
14763
|
// src/components/Navigation/LocalNavigation/LocalNavigation.tsx
|
|
14451
|
-
import { forwardRef as
|
|
14764
|
+
import { forwardRef as forwardRef48 } from "react";
|
|
14452
14765
|
|
|
14453
14766
|
// src/components/Navigation/LocalNavigation/localNavigation.styles.ts
|
|
14454
|
-
import
|
|
14455
|
-
var StyledLocalNavigationRoot =
|
|
14767
|
+
import styled33 from "@emotion/styled";
|
|
14768
|
+
var StyledLocalNavigationRoot = styled33.div(
|
|
14456
14769
|
({ theme, $isStretched }) => ({
|
|
14457
14770
|
width: "100%",
|
|
14458
14771
|
padding: $isStretched ? `${theme.scheme.semantic.spacing[8]} 0` : `${theme.scheme.semantic.spacing[8]} ${theme.scheme.semantic.margin.lg}`
|
|
14459
14772
|
})
|
|
14460
14773
|
);
|
|
14461
|
-
var StyledLocalNavigationWrapper =
|
|
14774
|
+
var StyledLocalNavigationWrapper = styled33.div(({ theme }) => ({
|
|
14462
14775
|
display: "flex",
|
|
14463
14776
|
alignItems: "center",
|
|
14464
14777
|
justifyContent: "space-between",
|
|
@@ -14470,7 +14783,7 @@ var StyledLocalNavigationWrapper = styled32.div(({ theme }) => ({
|
|
|
14470
14783
|
gap: theme.scheme.semantic.spacing[16]
|
|
14471
14784
|
}
|
|
14472
14785
|
}));
|
|
14473
|
-
var StyledLocalNavigationTitle =
|
|
14786
|
+
var StyledLocalNavigationTitle = styled33.div(({ theme }) => ({
|
|
14474
14787
|
flex: 1,
|
|
14475
14788
|
color: theme.color.semantic.object.boldest,
|
|
14476
14789
|
...theme.textStyle["semantic-textStyle-title-1"],
|
|
@@ -14478,7 +14791,7 @@ var StyledLocalNavigationTitle = styled32.div(({ theme }) => ({
|
|
|
14478
14791
|
...theme.textStyle["semantic-textStyle-label-lg-bold"]
|
|
14479
14792
|
}
|
|
14480
14793
|
}));
|
|
14481
|
-
var StyledLocalNavigationButtonGroup =
|
|
14794
|
+
var StyledLocalNavigationButtonGroup = styled33.div(({ theme }) => ({
|
|
14482
14795
|
display: "flex",
|
|
14483
14796
|
alignItems: "center",
|
|
14484
14797
|
gap: theme.scheme.semantic.spacing[24],
|
|
@@ -14491,17 +14804,17 @@ var StyledLocalNavigationButtonGroup = styled32.div(({ theme }) => ({
|
|
|
14491
14804
|
}));
|
|
14492
14805
|
|
|
14493
14806
|
// src/components/Navigation/LocalNavigation/LocalNavigation.tsx
|
|
14494
|
-
import { jsx as
|
|
14495
|
-
var LocalNavigationRoot =
|
|
14807
|
+
import { jsx as jsx188 } from "@emotion/react/jsx-runtime";
|
|
14808
|
+
var LocalNavigationRoot = forwardRef48(
|
|
14496
14809
|
({ isStretched = false, children, ...props }, ref) => {
|
|
14497
|
-
return /* @__PURE__ */
|
|
14810
|
+
return /* @__PURE__ */ jsx188(StyledLocalNavigationRoot, { ref, $isStretched: isStretched, ...props, children: /* @__PURE__ */ jsx188(StyledLocalNavigationWrapper, { children }) });
|
|
14498
14811
|
}
|
|
14499
14812
|
);
|
|
14500
|
-
var LocalNavigationBackButton =
|
|
14813
|
+
var LocalNavigationBackButton = forwardRef48(
|
|
14501
14814
|
({ ...props }, ref) => {
|
|
14502
14815
|
const { isMobile } = useMediaQueryFlags();
|
|
14503
14816
|
const buttonSize = isMobile ? "lg" : "xl";
|
|
14504
|
-
return /* @__PURE__ */
|
|
14817
|
+
return /* @__PURE__ */ jsx188(
|
|
14505
14818
|
IconButton.Basic,
|
|
14506
14819
|
{
|
|
14507
14820
|
ref,
|
|
@@ -14514,16 +14827,16 @@ var LocalNavigationBackButton = forwardRef47(
|
|
|
14514
14827
|
}
|
|
14515
14828
|
);
|
|
14516
14829
|
LocalNavigationBackButton.displayName = "LocalNavigation.BackButton";
|
|
14517
|
-
var LocalNavigationTitle =
|
|
14830
|
+
var LocalNavigationTitle = forwardRef48(
|
|
14518
14831
|
({ as, children, ...props }, ref) => {
|
|
14519
|
-
return /* @__PURE__ */
|
|
14832
|
+
return /* @__PURE__ */ jsx188(StyledLocalNavigationTitle, { as, ref, ...props, children });
|
|
14520
14833
|
}
|
|
14521
14834
|
);
|
|
14522
14835
|
LocalNavigationTitle.displayName = "LocalNavigation.Title";
|
|
14523
|
-
var LocalNavigationButtonGroup =
|
|
14836
|
+
var LocalNavigationButtonGroup = forwardRef48(
|
|
14524
14837
|
({ extraButtonVisible = false, children, ...props }, ref) => {
|
|
14525
14838
|
if (!extraButtonVisible) return null;
|
|
14526
|
-
return /* @__PURE__ */
|
|
14839
|
+
return /* @__PURE__ */ jsx188(StyledLocalNavigationButtonGroup, { ref, ...props, children });
|
|
14527
14840
|
}
|
|
14528
14841
|
);
|
|
14529
14842
|
LocalNavigationButtonGroup.displayName = "LocalNavigation.ButtonGroup ";
|
|
@@ -14535,10 +14848,10 @@ var LocalNavigation = {
|
|
|
14535
14848
|
};
|
|
14536
14849
|
|
|
14537
14850
|
// src/components/EmptyState/EmptyState.tsx
|
|
14538
|
-
import { forwardRef as
|
|
14851
|
+
import { forwardRef as forwardRef49 } from "react";
|
|
14539
14852
|
|
|
14540
14853
|
// src/components/EmptyState/emptyState.styles.ts
|
|
14541
|
-
import
|
|
14854
|
+
import styled34 from "@emotion/styled";
|
|
14542
14855
|
var variantStylesMap = {
|
|
14543
14856
|
outlined: (theme) => ({
|
|
14544
14857
|
backgroundColor: "transparent",
|
|
@@ -14557,7 +14870,7 @@ var contentLayoutStylesMap = {
|
|
|
14557
14870
|
gap: theme.scheme.semantic.spacing[10]
|
|
14558
14871
|
})
|
|
14559
14872
|
};
|
|
14560
|
-
var EmptyStateRoot =
|
|
14873
|
+
var EmptyStateRoot = styled34("div", {
|
|
14561
14874
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14562
14875
|
})(({ theme, $variant, $layout }) => ({
|
|
14563
14876
|
display: "flex",
|
|
@@ -14572,7 +14885,7 @@ var EmptyStateRoot = styled33("div", {
|
|
|
14572
14885
|
borderRadius: theme.scheme.semantic.radius[8],
|
|
14573
14886
|
...$variant !== "empty" ? variantStylesMap[$variant](theme) : {}
|
|
14574
14887
|
}));
|
|
14575
|
-
var EmptyStateContentDiv =
|
|
14888
|
+
var EmptyStateContentDiv = styled34("div", {
|
|
14576
14889
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14577
14890
|
})(({ theme, $layout }) => ({
|
|
14578
14891
|
display: "flex",
|
|
@@ -14580,11 +14893,11 @@ var EmptyStateContentDiv = styled33("div", {
|
|
|
14580
14893
|
padding: theme.scheme.semantic.spacing[0],
|
|
14581
14894
|
...contentLayoutStylesMap[$layout](theme)
|
|
14582
14895
|
}));
|
|
14583
|
-
var EmptyStateLabel =
|
|
14896
|
+
var EmptyStateLabel = styled34(Label)(({ theme }) => ({
|
|
14584
14897
|
flex: 1,
|
|
14585
14898
|
color: theme.color.semantic.object.neutral
|
|
14586
14899
|
}));
|
|
14587
|
-
var EmptyStateBodyTextP =
|
|
14900
|
+
var EmptyStateBodyTextP = styled34("p", {
|
|
14588
14901
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14589
14902
|
})(({ theme, $layout }) => ({
|
|
14590
14903
|
display: "-webkit-box",
|
|
@@ -14597,7 +14910,7 @@ var EmptyStateBodyTextP = styled33("p", {
|
|
|
14597
14910
|
textOverflow: "ellipsis",
|
|
14598
14911
|
...theme.textStyle["semantic-textStyle-body-xs-normal"]
|
|
14599
14912
|
}));
|
|
14600
|
-
var EmptyStateButtonContainerDiv =
|
|
14913
|
+
var EmptyStateButtonContainerDiv = styled34("div", {
|
|
14601
14914
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14602
14915
|
})(({ theme, $hasSecondary }) => {
|
|
14603
14916
|
return {
|
|
@@ -14611,8 +14924,8 @@ var EmptyStateButtonContainerDiv = styled33("div", {
|
|
|
14611
14924
|
});
|
|
14612
14925
|
|
|
14613
14926
|
// src/components/EmptyState/EmptyState.tsx
|
|
14614
|
-
import { jsx as
|
|
14615
|
-
var EmptyState =
|
|
14927
|
+
import { jsx as jsx189, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14928
|
+
var EmptyState = forwardRef49(
|
|
14616
14929
|
({
|
|
14617
14930
|
variant = "empty",
|
|
14618
14931
|
layout = "vertical",
|
|
@@ -14627,8 +14940,8 @@ var EmptyState = forwardRef48(
|
|
|
14627
14940
|
const hasSecondary = !!secondaryAction;
|
|
14628
14941
|
const renderActions = () => {
|
|
14629
14942
|
if (!hasPrimary) return null;
|
|
14630
|
-
return /* @__PURE__ */
|
|
14631
|
-
hasSecondary && /* @__PURE__ */
|
|
14943
|
+
return /* @__PURE__ */ jsxs42(EmptyStateButtonContainerDiv, { $hasSecondary: hasSecondary, children: [
|
|
14944
|
+
hasSecondary && /* @__PURE__ */ jsx189(
|
|
14632
14945
|
BlockButton.Basic,
|
|
14633
14946
|
{
|
|
14634
14947
|
variant: "outlined",
|
|
@@ -14637,14 +14950,14 @@ var EmptyState = forwardRef48(
|
|
|
14637
14950
|
...secondaryAction
|
|
14638
14951
|
}
|
|
14639
14952
|
),
|
|
14640
|
-
/* @__PURE__ */
|
|
14953
|
+
/* @__PURE__ */ jsx189(BlockButton.Basic, { size: "sm", ...primaryAction })
|
|
14641
14954
|
] });
|
|
14642
14955
|
};
|
|
14643
|
-
return /* @__PURE__ */
|
|
14644
|
-
icon && /* @__PURE__ */
|
|
14645
|
-
/* @__PURE__ */
|
|
14646
|
-
/* @__PURE__ */
|
|
14647
|
-
/* @__PURE__ */
|
|
14956
|
+
return /* @__PURE__ */ jsxs42(EmptyStateRoot, { ref, $variant: variant, $layout: layout, ...rest, children: [
|
|
14957
|
+
icon && /* @__PURE__ */ jsx189(Icon, { name: icon, size: "3xl", "aria-hidden": "true", focusable: false }),
|
|
14958
|
+
/* @__PURE__ */ jsxs42(EmptyStateContentDiv, { $layout: layout, children: [
|
|
14959
|
+
/* @__PURE__ */ jsx189(EmptyStateLabel, { weight: "bold", textAlign: "center", children: header }),
|
|
14960
|
+
/* @__PURE__ */ jsx189(EmptyStateBodyTextP, { $layout: layout, children: body })
|
|
14648
14961
|
] }),
|
|
14649
14962
|
renderActions()
|
|
14650
14963
|
] });
|
|
@@ -14653,34 +14966,34 @@ var EmptyState = forwardRef48(
|
|
|
14653
14966
|
EmptyState.displayName = "EmptyState";
|
|
14654
14967
|
|
|
14655
14968
|
// src/components/Menu/MegaMenu/MegaMenu.tsx
|
|
14656
|
-
import { forwardRef as
|
|
14969
|
+
import { forwardRef as forwardRef50 } from "react";
|
|
14657
14970
|
|
|
14658
14971
|
// src/components/Menu/MegaMenu/megaMenu.styles.ts
|
|
14659
|
-
import
|
|
14660
|
-
var StyledMegaMenuRoot =
|
|
14972
|
+
import styled35 from "@emotion/styled";
|
|
14973
|
+
var StyledMegaMenuRoot = styled35("div")(({ theme }) => ({
|
|
14661
14974
|
display: "flex",
|
|
14662
14975
|
backgroundColor: theme.color.semantic.surface.shallow,
|
|
14663
14976
|
border: `1px solid ${theme.color.semantic.stroke.subtler}`,
|
|
14664
14977
|
borderRadius: theme.scheme.semantic.radius[10],
|
|
14665
14978
|
...shadow(theme, "floated")
|
|
14666
14979
|
}));
|
|
14667
|
-
var StyledMegaMenuSection =
|
|
14980
|
+
var StyledMegaMenuSection = styled35("div")(({ theme }) => ({
|
|
14668
14981
|
display: "flex",
|
|
14669
14982
|
flexDirection: "column",
|
|
14670
14983
|
padding: `${theme.scheme.semantic.margin.lg} ${theme.scheme.semantic.margin.xl}`,
|
|
14671
14984
|
gap: theme.scheme.semantic.spacing[20]
|
|
14672
14985
|
}));
|
|
14673
|
-
var
|
|
14986
|
+
var StyledLabel4 = styled35(Label)(({ theme }) => ({
|
|
14674
14987
|
color: theme.color.semantic.object.alternative
|
|
14675
14988
|
}));
|
|
14676
|
-
var StyledMegaMenuGroup =
|
|
14989
|
+
var StyledMegaMenuGroup = styled35("ul")(({ theme }) => ({
|
|
14677
14990
|
display: "flex",
|
|
14678
14991
|
flexDirection: "column",
|
|
14679
14992
|
justifyItems: "flex-start",
|
|
14680
14993
|
alignItems: "flex-start",
|
|
14681
14994
|
gap: theme.scheme.semantic.spacing[16]
|
|
14682
14995
|
}));
|
|
14683
|
-
var StyledDivider2 =
|
|
14996
|
+
var StyledDivider2 = styled35("hr")(({ theme }) => ({
|
|
14684
14997
|
width: 0,
|
|
14685
14998
|
border: "none",
|
|
14686
14999
|
borderLeft: `1px solid ${theme.color.semantic.stroke.subtler}`,
|
|
@@ -14688,33 +15001,33 @@ var StyledDivider2 = styled34("hr")(({ theme }) => ({
|
|
|
14688
15001
|
}));
|
|
14689
15002
|
|
|
14690
15003
|
// src/components/Menu/MegaMenu/MegaMenu.tsx
|
|
14691
|
-
import { jsx as
|
|
14692
|
-
var MegaMenuRoot =
|
|
14693
|
-
return /* @__PURE__ */
|
|
15004
|
+
import { jsx as jsx190, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
15005
|
+
var MegaMenuRoot = forwardRef50(({ children, ...rest }, ref) => {
|
|
15006
|
+
return /* @__PURE__ */ jsx190(StyledMegaMenuRoot, { ref, ...rest, children });
|
|
14694
15007
|
});
|
|
14695
15008
|
MegaMenuRoot.displayName = "MegaMenu.Root";
|
|
14696
15009
|
var MegaMenuDivider = () => {
|
|
14697
|
-
return /* @__PURE__ */
|
|
15010
|
+
return /* @__PURE__ */ jsx190(StyledDivider2, {});
|
|
14698
15011
|
};
|
|
14699
15012
|
MegaMenuDivider.displayName = "MegaMenu.Divider";
|
|
14700
|
-
var MegaMenuSection =
|
|
15013
|
+
var MegaMenuSection = forwardRef50(
|
|
14701
15014
|
({ children, sectionName = "", ...rest }, ref) => {
|
|
14702
|
-
return /* @__PURE__ */
|
|
14703
|
-
/* @__PURE__ */
|
|
15015
|
+
return /* @__PURE__ */ jsxs43(StyledMegaMenuSection, { ref, ...rest, children: [
|
|
15016
|
+
/* @__PURE__ */ jsx190(StyledLabel4, { as: "span", textAlign: "left", size: "sm", weight: "normal", children: sectionName }),
|
|
14704
15017
|
children
|
|
14705
15018
|
] });
|
|
14706
15019
|
}
|
|
14707
15020
|
);
|
|
14708
15021
|
StyledMegaMenuSection.displayName = "MegaMenu.Section";
|
|
14709
|
-
var MegaMenuGroup =
|
|
15022
|
+
var MegaMenuGroup = forwardRef50(
|
|
14710
15023
|
({ children, ...rest }, ref) => {
|
|
14711
|
-
return /* @__PURE__ */
|
|
15024
|
+
return /* @__PURE__ */ jsx190(StyledMegaMenuGroup, { ref, role: "list", ...rest, children });
|
|
14712
15025
|
}
|
|
14713
15026
|
);
|
|
14714
15027
|
MegaMenuGroup.displayName = "MegaMenu.Group";
|
|
14715
|
-
var MegaMenuGroupItem =
|
|
15028
|
+
var MegaMenuGroupItem = forwardRef50(
|
|
14716
15029
|
({ children, ...rest }, ref) => {
|
|
14717
|
-
return /* @__PURE__ */
|
|
15030
|
+
return /* @__PURE__ */ jsx190("li", { ref, ...rest, children });
|
|
14718
15031
|
}
|
|
14719
15032
|
);
|
|
14720
15033
|
MegaMenuGroupItem.displayName = "MegaMenu.GroupItem";
|
|
@@ -14727,10 +15040,10 @@ var MegaMenu = {
|
|
|
14727
15040
|
};
|
|
14728
15041
|
|
|
14729
15042
|
// src/components/Menu/MenuItem/MenuItem.tsx
|
|
14730
|
-
import { forwardRef as
|
|
15043
|
+
import { forwardRef as forwardRef51 } from "react";
|
|
14731
15044
|
|
|
14732
15045
|
// src/components/Menu/MenuItem/menuItem.styles.ts
|
|
14733
|
-
import
|
|
15046
|
+
import styled36 from "@emotion/styled";
|
|
14734
15047
|
|
|
14735
15048
|
// src/components/Menu/MenuItem/menuItem.variants.ts
|
|
14736
15049
|
var menuItemColorMap = (theme, isDisabled, isSelected, isDestructive) => {
|
|
@@ -14770,7 +15083,7 @@ var createInteractionStyles3 = (theme, isDisabled, isSelected, isDestructive) =>
|
|
|
14770
15083
|
focusStyle: makeLayer("focus")
|
|
14771
15084
|
};
|
|
14772
15085
|
};
|
|
14773
|
-
var StyledMenuItemButton =
|
|
15086
|
+
var StyledMenuItemButton = styled36("button", {
|
|
14774
15087
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14775
15088
|
})(({ theme, $isDisabled, $isSelected, $isDestructive }) => {
|
|
14776
15089
|
const color = menuItemColorMap(theme, $isDisabled, $isSelected, $isDestructive);
|
|
@@ -14800,7 +15113,7 @@ var StyledMenuItemButton = styled35("button", {
|
|
|
14800
15113
|
}
|
|
14801
15114
|
};
|
|
14802
15115
|
});
|
|
14803
|
-
var StyledMenuItemAnchor =
|
|
15116
|
+
var StyledMenuItemAnchor = styled36("a", {
|
|
14804
15117
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14805
15118
|
})(({ theme, $isDisabled, $isSelected, $isDestructive }) => {
|
|
14806
15119
|
const color = menuItemColorMap(theme, $isDisabled, $isSelected, $isDestructive);
|
|
@@ -14834,20 +15147,20 @@ var StyledMenuItemAnchor = styled35("a", {
|
|
|
14834
15147
|
}
|
|
14835
15148
|
};
|
|
14836
15149
|
});
|
|
14837
|
-
var StyledImage =
|
|
15150
|
+
var StyledImage = styled36(Image)(({ $size }) => {
|
|
14838
15151
|
const width = menuItemImageSizeMap[$size];
|
|
14839
15152
|
return {
|
|
14840
15153
|
borderRadius: 0,
|
|
14841
15154
|
width
|
|
14842
15155
|
};
|
|
14843
15156
|
});
|
|
14844
|
-
var MenuItemLabel =
|
|
15157
|
+
var MenuItemLabel = styled36(Label)(() => ({
|
|
14845
15158
|
color: "inherit"
|
|
14846
15159
|
}));
|
|
14847
15160
|
|
|
14848
15161
|
// src/components/Menu/MenuItem/MenuItem.tsx
|
|
14849
|
-
import { jsx as
|
|
14850
|
-
var MenuItemButton =
|
|
15162
|
+
import { jsx as jsx191, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
15163
|
+
var MenuItemButton = forwardRef51(
|
|
14851
15164
|
({
|
|
14852
15165
|
variant = "icon",
|
|
14853
15166
|
size = "md",
|
|
@@ -14863,7 +15176,7 @@ var MenuItemButton = forwardRef50(
|
|
|
14863
15176
|
children,
|
|
14864
15177
|
...rest
|
|
14865
15178
|
}, ref) => {
|
|
14866
|
-
return /* @__PURE__ */
|
|
15179
|
+
return /* @__PURE__ */ jsxs44(
|
|
14867
15180
|
StyledMenuItemButton,
|
|
14868
15181
|
{
|
|
14869
15182
|
ref,
|
|
@@ -14873,8 +15186,8 @@ var MenuItemButton = forwardRef50(
|
|
|
14873
15186
|
$isDestructive: isDestructive,
|
|
14874
15187
|
...rest,
|
|
14875
15188
|
children: [
|
|
14876
|
-
variant === "icon" && prefixIconVisible && /* @__PURE__ */
|
|
14877
|
-
variant === "thumbnail" && /* @__PURE__ */
|
|
15189
|
+
variant === "icon" && prefixIconVisible && /* @__PURE__ */ jsx191(Icon, { name: prefixIcon, size }),
|
|
15190
|
+
variant === "thumbnail" && /* @__PURE__ */ jsx191(
|
|
14878
15191
|
StyledImage,
|
|
14879
15192
|
{
|
|
14880
15193
|
src: imageSrc,
|
|
@@ -14885,15 +15198,15 @@ var MenuItemButton = forwardRef50(
|
|
|
14885
15198
|
$size: size
|
|
14886
15199
|
}
|
|
14887
15200
|
),
|
|
14888
|
-
/* @__PURE__ */
|
|
14889
|
-
suffixIconVisible && /* @__PURE__ */
|
|
15201
|
+
/* @__PURE__ */ jsx191(MenuItemLabel, { as: "span", size, textAlign: "left", weight: "normal", cursor: disabled ? "default" : "pointer", children }),
|
|
15202
|
+
suffixIconVisible && /* @__PURE__ */ jsx191(Icon, { name: suffixIcon, size })
|
|
14890
15203
|
]
|
|
14891
15204
|
}
|
|
14892
15205
|
);
|
|
14893
15206
|
}
|
|
14894
15207
|
);
|
|
14895
15208
|
MenuItemButton.displayName = "MenuItem.Button";
|
|
14896
|
-
var MenuItemAnchor =
|
|
15209
|
+
var MenuItemAnchor = forwardRef51(
|
|
14897
15210
|
({
|
|
14898
15211
|
variant = "icon",
|
|
14899
15212
|
size = "md",
|
|
@@ -14909,7 +15222,7 @@ var MenuItemAnchor = forwardRef50(
|
|
|
14909
15222
|
children,
|
|
14910
15223
|
...rest
|
|
14911
15224
|
}, ref) => {
|
|
14912
|
-
return /* @__PURE__ */
|
|
15225
|
+
return /* @__PURE__ */ jsxs44(
|
|
14913
15226
|
StyledMenuItemAnchor,
|
|
14914
15227
|
{
|
|
14915
15228
|
ref,
|
|
@@ -14918,8 +15231,8 @@ var MenuItemAnchor = forwardRef50(
|
|
|
14918
15231
|
$isDestructive: isDestructive,
|
|
14919
15232
|
...rest,
|
|
14920
15233
|
children: [
|
|
14921
|
-
variant === "icon" && prefixIconVisible && /* @__PURE__ */
|
|
14922
|
-
variant === "thumbnail" && /* @__PURE__ */
|
|
15234
|
+
variant === "icon" && prefixIconVisible && /* @__PURE__ */ jsx191(Icon, { name: prefixIcon, size }),
|
|
15235
|
+
variant === "thumbnail" && /* @__PURE__ */ jsx191(
|
|
14923
15236
|
StyledImage,
|
|
14924
15237
|
{
|
|
14925
15238
|
src: imageSrc,
|
|
@@ -14930,8 +15243,8 @@ var MenuItemAnchor = forwardRef50(
|
|
|
14930
15243
|
$size: size
|
|
14931
15244
|
}
|
|
14932
15245
|
),
|
|
14933
|
-
/* @__PURE__ */
|
|
14934
|
-
suffixIconVisible && /* @__PURE__ */
|
|
15246
|
+
/* @__PURE__ */ jsx191(MenuItemLabel, { as: "span", size, textAlign: "left", weight: "normal", children }),
|
|
15247
|
+
suffixIconVisible && /* @__PURE__ */ jsx191(Icon, { name: suffixIcon, size })
|
|
14935
15248
|
]
|
|
14936
15249
|
}
|
|
14937
15250
|
);
|
|
@@ -14945,10 +15258,10 @@ var MenuItem = {
|
|
|
14945
15258
|
|
|
14946
15259
|
// src/components/Menu/Menu/Menu.tsx
|
|
14947
15260
|
import { DropdownMenu as DropdownMenu2 } from "radix-ui";
|
|
14948
|
-
import { forwardRef as
|
|
15261
|
+
import { forwardRef as forwardRef52 } from "react";
|
|
14949
15262
|
|
|
14950
15263
|
// src/components/Menu/Menu/Menu.styles.ts
|
|
14951
|
-
import
|
|
15264
|
+
import styled37 from "@emotion/styled";
|
|
14952
15265
|
import { DropdownMenu } from "radix-ui";
|
|
14953
15266
|
|
|
14954
15267
|
// src/components/Menu/Menu/menu.variants.ts
|
|
@@ -15018,7 +15331,7 @@ var menuCategorySizeMap = {
|
|
|
15018
15331
|
};
|
|
15019
15332
|
|
|
15020
15333
|
// src/components/Menu/Menu/Menu.styles.ts
|
|
15021
|
-
var StyledDropdownMenuContent =
|
|
15334
|
+
var StyledDropdownMenuContent = styled37(
|
|
15022
15335
|
DropdownMenu.Content
|
|
15023
15336
|
)(({ theme, $menuStyle, $size }) => {
|
|
15024
15337
|
const shadowStyle = $menuStyle === "solid" ? shadow(theme, "floated") : {};
|
|
@@ -15029,12 +15342,12 @@ var StyledDropdownMenuContent = styled36(
|
|
|
15029
15342
|
...menuContentMap(theme)[$menuStyle][$size]
|
|
15030
15343
|
};
|
|
15031
15344
|
});
|
|
15032
|
-
var StyledMenuCategory =
|
|
15345
|
+
var StyledMenuCategory = styled37(Label)(({ theme }) => {
|
|
15033
15346
|
return {
|
|
15034
15347
|
color: theme.color.semantic.object.alternative
|
|
15035
15348
|
};
|
|
15036
15349
|
});
|
|
15037
|
-
var StyledMenuGroup =
|
|
15350
|
+
var StyledMenuGroup = styled37("ul")(({ $size, theme }) => {
|
|
15038
15351
|
return {
|
|
15039
15352
|
display: "flex",
|
|
15040
15353
|
flexDirection: "column",
|
|
@@ -15043,10 +15356,10 @@ var StyledMenuGroup = styled36("ul")(({ $size, theme }) => {
|
|
|
15043
15356
|
});
|
|
15044
15357
|
|
|
15045
15358
|
// src/components/Menu/Menu/menuContext.ts
|
|
15046
|
-
import { createContext as
|
|
15047
|
-
var MenuContext =
|
|
15359
|
+
import { createContext as createContext11, useContext as useContext12 } from "react";
|
|
15360
|
+
var MenuContext = createContext11(void 0);
|
|
15048
15361
|
var useMenuContext = () => {
|
|
15049
|
-
const context =
|
|
15362
|
+
const context = useContext12(MenuContext);
|
|
15050
15363
|
if (!context) {
|
|
15051
15364
|
throw new Error("Menu \uCEF4\uD3EC\uB10C\uD2B8\uB294 Menu.Root \uB0B4\uBD80\uC5D0\uC11C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4");
|
|
15052
15365
|
}
|
|
@@ -15054,20 +15367,20 @@ var useMenuContext = () => {
|
|
|
15054
15367
|
};
|
|
15055
15368
|
|
|
15056
15369
|
// src/components/Menu/Menu/Menu.tsx
|
|
15057
|
-
import { jsx as
|
|
15370
|
+
import { jsx as jsx192 } from "@emotion/react/jsx-runtime";
|
|
15058
15371
|
var MenuRoot = ({ children, menuStyle = "solid", size = "md", ...rest }) => {
|
|
15059
|
-
return /* @__PURE__ */
|
|
15372
|
+
return /* @__PURE__ */ jsx192(MenuContext.Provider, { value: { menuStyle, size }, children: /* @__PURE__ */ jsx192(DropdownMenu2.Root, { ...rest, children }) });
|
|
15060
15373
|
};
|
|
15061
15374
|
MenuRoot.displayName = "Menu.Root";
|
|
15062
|
-
var MenuContent =
|
|
15375
|
+
var MenuContent = forwardRef52(({ children, ...rest }, ref) => {
|
|
15063
15376
|
const { menuStyle, size } = useMenuContext();
|
|
15064
|
-
return /* @__PURE__ */
|
|
15377
|
+
return /* @__PURE__ */ jsx192(StyledDropdownMenuContent, { ref, $menuStyle: menuStyle, $size: size, ...rest, children });
|
|
15065
15378
|
});
|
|
15066
15379
|
MenuContent.displayName = "Menu.Content";
|
|
15067
|
-
var MenuCategory =
|
|
15380
|
+
var MenuCategory = forwardRef52(({ children, ...rest }, ref) => {
|
|
15068
15381
|
const { size } = useMenuContext();
|
|
15069
15382
|
const labelSize = menuCategorySizeMap[size];
|
|
15070
|
-
return /* @__PURE__ */
|
|
15383
|
+
return /* @__PURE__ */ jsx192(
|
|
15071
15384
|
StyledMenuCategory,
|
|
15072
15385
|
{
|
|
15073
15386
|
ref,
|
|
@@ -15081,22 +15394,22 @@ var MenuCategory = forwardRef51(({ children, ...rest }, ref) => {
|
|
|
15081
15394
|
);
|
|
15082
15395
|
});
|
|
15083
15396
|
MenuCategory.displayName = "Menu.Category";
|
|
15084
|
-
var MenuGroup =
|
|
15397
|
+
var MenuGroup = forwardRef52(({ children, ...rest }, ref) => {
|
|
15085
15398
|
const { size } = useMenuContext();
|
|
15086
|
-
return /* @__PURE__ */
|
|
15399
|
+
return /* @__PURE__ */ jsx192(StyledMenuGroup, { ref, role: "list", $size: size, ...rest, children });
|
|
15087
15400
|
});
|
|
15088
15401
|
MenuGroup.displayName = "Menu.Group";
|
|
15089
|
-
var MenuGroupItem =
|
|
15090
|
-
return /* @__PURE__ */
|
|
15402
|
+
var MenuGroupItem = forwardRef52(({ children, ...rest }, ref) => {
|
|
15403
|
+
return /* @__PURE__ */ jsx192(DropdownMenu2.Item, { asChild: true, ...rest, children: /* @__PURE__ */ jsx192("li", { ref, children }) });
|
|
15091
15404
|
});
|
|
15092
15405
|
MenuGroupItem.displayName = "Menu.GroupItem";
|
|
15093
|
-
var MenuButton =
|
|
15406
|
+
var MenuButton = forwardRef52(({ children, ...rest }, ref) => {
|
|
15094
15407
|
const { size } = useMenuContext();
|
|
15095
|
-
return /* @__PURE__ */
|
|
15408
|
+
return /* @__PURE__ */ jsx192(MenuItem.Button, { ref, size, ...rest, children });
|
|
15096
15409
|
});
|
|
15097
|
-
var MenuAnchor =
|
|
15410
|
+
var MenuAnchor = forwardRef52(({ children, ...rest }, ref) => {
|
|
15098
15411
|
const { size } = useMenuContext();
|
|
15099
|
-
return /* @__PURE__ */
|
|
15412
|
+
return /* @__PURE__ */ jsx192(MenuItem.Anchor, { ref, size, ...rest, children });
|
|
15100
15413
|
});
|
|
15101
15414
|
var Menu = {
|
|
15102
15415
|
Root: MenuRoot,
|
|
@@ -15114,7 +15427,7 @@ import * as React30 from "react";
|
|
|
15114
15427
|
|
|
15115
15428
|
// ../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
15116
15429
|
import * as React17 from "react";
|
|
15117
|
-
import { jsx as
|
|
15430
|
+
import { jsx as jsx193 } from "react/jsx-runtime";
|
|
15118
15431
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
15119
15432
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
15120
15433
|
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
@@ -15233,7 +15546,7 @@ var FocusScope = React17.forwardRef((props, forwardedRef) => {
|
|
|
15233
15546
|
},
|
|
15234
15547
|
[loop, trapped, focusScope.paused]
|
|
15235
15548
|
);
|
|
15236
|
-
return /* @__PURE__ */
|
|
15549
|
+
return /* @__PURE__ */ jsx193(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
15237
15550
|
});
|
|
15238
15551
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
15239
15552
|
function focusFirst2(candidates, { select = false } = {}) {
|
|
@@ -15319,14 +15632,14 @@ function removeLinks(items) {
|
|
|
15319
15632
|
// ../../node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
15320
15633
|
import * as React18 from "react";
|
|
15321
15634
|
import ReactDOM3 from "react-dom";
|
|
15322
|
-
import { jsx as
|
|
15635
|
+
import { jsx as jsx194 } from "react/jsx-runtime";
|
|
15323
15636
|
var PORTAL_NAME = "Portal";
|
|
15324
15637
|
var Portal = React18.forwardRef((props, forwardedRef) => {
|
|
15325
15638
|
const { container: containerProp, ...portalProps } = props;
|
|
15326
15639
|
const [mounted, setMounted] = React18.useState(false);
|
|
15327
15640
|
useLayoutEffect22(() => setMounted(true), []);
|
|
15328
15641
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
15329
|
-
return container ? ReactDOM3.createPortal(/* @__PURE__ */
|
|
15642
|
+
return container ? ReactDOM3.createPortal(/* @__PURE__ */ jsx194(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
15330
15643
|
});
|
|
15331
15644
|
Portal.displayName = PORTAL_NAME;
|
|
15332
15645
|
|
|
@@ -16200,7 +16513,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
16200
16513
|
};
|
|
16201
16514
|
|
|
16202
16515
|
// ../../node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
16203
|
-
import { Fragment as Fragment11, jsx as
|
|
16516
|
+
import { Fragment as Fragment11, jsx as jsx195, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
16204
16517
|
var DIALOG_NAME = "Dialog";
|
|
16205
16518
|
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
|
16206
16519
|
var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
|
|
@@ -16221,7 +16534,7 @@ var Dialog = (props) => {
|
|
|
16221
16534
|
onChange: onOpenChange,
|
|
16222
16535
|
caller: DIALOG_NAME
|
|
16223
16536
|
});
|
|
16224
|
-
return /* @__PURE__ */
|
|
16537
|
+
return /* @__PURE__ */ jsx195(
|
|
16225
16538
|
DialogProvider,
|
|
16226
16539
|
{
|
|
16227
16540
|
scope: __scopeDialog,
|
|
@@ -16245,7 +16558,7 @@ var DialogTrigger = React30.forwardRef(
|
|
|
16245
16558
|
const { __scopeDialog, ...triggerProps } = props;
|
|
16246
16559
|
const context = useDialogContext(TRIGGER_NAME2, __scopeDialog);
|
|
16247
16560
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
16248
|
-
return /* @__PURE__ */
|
|
16561
|
+
return /* @__PURE__ */ jsx195(
|
|
16249
16562
|
Primitive.button,
|
|
16250
16563
|
{
|
|
16251
16564
|
type: "button",
|
|
@@ -16268,7 +16581,7 @@ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME2, {
|
|
|
16268
16581
|
var DialogPortal = (props) => {
|
|
16269
16582
|
const { __scopeDialog, forceMount, children, container } = props;
|
|
16270
16583
|
const context = useDialogContext(PORTAL_NAME2, __scopeDialog);
|
|
16271
|
-
return /* @__PURE__ */
|
|
16584
|
+
return /* @__PURE__ */ jsx195(PortalProvider, { scope: __scopeDialog, forceMount, children: React30.Children.map(children, (child) => /* @__PURE__ */ jsx195(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx195(Portal, { asChild: true, container, children: child }) })) });
|
|
16272
16585
|
};
|
|
16273
16586
|
DialogPortal.displayName = PORTAL_NAME2;
|
|
16274
16587
|
var OVERLAY_NAME = "DialogOverlay";
|
|
@@ -16277,7 +16590,7 @@ var DialogOverlay = React30.forwardRef(
|
|
|
16277
16590
|
const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
|
|
16278
16591
|
const { forceMount = portalContext.forceMount, ...overlayProps } = props;
|
|
16279
16592
|
const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
|
|
16280
|
-
return context.modal ? /* @__PURE__ */
|
|
16593
|
+
return context.modal ? /* @__PURE__ */ jsx195(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx195(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
|
|
16281
16594
|
}
|
|
16282
16595
|
);
|
|
16283
16596
|
DialogOverlay.displayName = OVERLAY_NAME;
|
|
@@ -16289,7 +16602,7 @@ var DialogOverlayImpl = React30.forwardRef(
|
|
|
16289
16602
|
return (
|
|
16290
16603
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
16291
16604
|
// ie. when `Overlay` and `Content` are siblings
|
|
16292
|
-
/* @__PURE__ */
|
|
16605
|
+
/* @__PURE__ */ jsx195(Combination_default, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx195(
|
|
16293
16606
|
Primitive.div,
|
|
16294
16607
|
{
|
|
16295
16608
|
"data-state": getState(context.open),
|
|
@@ -16307,7 +16620,7 @@ var DialogContent = React30.forwardRef(
|
|
|
16307
16620
|
const portalContext = usePortalContext(CONTENT_NAME2, props.__scopeDialog);
|
|
16308
16621
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
16309
16622
|
const context = useDialogContext(CONTENT_NAME2, props.__scopeDialog);
|
|
16310
|
-
return /* @__PURE__ */
|
|
16623
|
+
return /* @__PURE__ */ jsx195(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx195(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx195(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
16311
16624
|
}
|
|
16312
16625
|
);
|
|
16313
16626
|
DialogContent.displayName = CONTENT_NAME2;
|
|
@@ -16320,7 +16633,7 @@ var DialogContentModal = React30.forwardRef(
|
|
|
16320
16633
|
const content = contentRef.current;
|
|
16321
16634
|
if (content) return hideOthers(content);
|
|
16322
16635
|
}, []);
|
|
16323
|
-
return /* @__PURE__ */
|
|
16636
|
+
return /* @__PURE__ */ jsx195(
|
|
16324
16637
|
DialogContentImpl,
|
|
16325
16638
|
{
|
|
16326
16639
|
...props,
|
|
@@ -16350,7 +16663,7 @@ var DialogContentNonModal = React30.forwardRef(
|
|
|
16350
16663
|
const context = useDialogContext(CONTENT_NAME2, props.__scopeDialog);
|
|
16351
16664
|
const hasInteractedOutsideRef = React30.useRef(false);
|
|
16352
16665
|
const hasPointerDownOutsideRef = React30.useRef(false);
|
|
16353
|
-
return /* @__PURE__ */
|
|
16666
|
+
return /* @__PURE__ */ jsx195(
|
|
16354
16667
|
DialogContentImpl,
|
|
16355
16668
|
{
|
|
16356
16669
|
...props,
|
|
@@ -16392,8 +16705,8 @@ var DialogContentImpl = React30.forwardRef(
|
|
|
16392
16705
|
const contentRef = React30.useRef(null);
|
|
16393
16706
|
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
|
16394
16707
|
useFocusGuards();
|
|
16395
|
-
return /* @__PURE__ */
|
|
16396
|
-
/* @__PURE__ */
|
|
16708
|
+
return /* @__PURE__ */ jsxs45(Fragment11, { children: [
|
|
16709
|
+
/* @__PURE__ */ jsx195(
|
|
16397
16710
|
FocusScope,
|
|
16398
16711
|
{
|
|
16399
16712
|
asChild: true,
|
|
@@ -16401,7 +16714,7 @@ var DialogContentImpl = React30.forwardRef(
|
|
|
16401
16714
|
trapped: trapFocus,
|
|
16402
16715
|
onMountAutoFocus: onOpenAutoFocus,
|
|
16403
16716
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
16404
|
-
children: /* @__PURE__ */
|
|
16717
|
+
children: /* @__PURE__ */ jsx195(
|
|
16405
16718
|
DismissableLayer,
|
|
16406
16719
|
{
|
|
16407
16720
|
role: "dialog",
|
|
@@ -16416,9 +16729,9 @@ var DialogContentImpl = React30.forwardRef(
|
|
|
16416
16729
|
)
|
|
16417
16730
|
}
|
|
16418
16731
|
),
|
|
16419
|
-
/* @__PURE__ */
|
|
16420
|
-
/* @__PURE__ */
|
|
16421
|
-
/* @__PURE__ */
|
|
16732
|
+
/* @__PURE__ */ jsxs45(Fragment11, { children: [
|
|
16733
|
+
/* @__PURE__ */ jsx195(TitleWarning, { titleId: context.titleId }),
|
|
16734
|
+
/* @__PURE__ */ jsx195(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
|
|
16422
16735
|
] })
|
|
16423
16736
|
] });
|
|
16424
16737
|
}
|
|
@@ -16428,7 +16741,7 @@ var DialogTitle = React30.forwardRef(
|
|
|
16428
16741
|
(props, forwardedRef) => {
|
|
16429
16742
|
const { __scopeDialog, ...titleProps } = props;
|
|
16430
16743
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
16431
|
-
return /* @__PURE__ */
|
|
16744
|
+
return /* @__PURE__ */ jsx195(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
|
16432
16745
|
}
|
|
16433
16746
|
);
|
|
16434
16747
|
DialogTitle.displayName = TITLE_NAME;
|
|
@@ -16437,7 +16750,7 @@ var DialogDescription = React30.forwardRef(
|
|
|
16437
16750
|
(props, forwardedRef) => {
|
|
16438
16751
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
16439
16752
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
16440
|
-
return /* @__PURE__ */
|
|
16753
|
+
return /* @__PURE__ */ jsx195(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
|
16441
16754
|
}
|
|
16442
16755
|
);
|
|
16443
16756
|
DialogDescription.displayName = DESCRIPTION_NAME;
|
|
@@ -16446,7 +16759,7 @@ var DialogClose = React30.forwardRef(
|
|
|
16446
16759
|
(props, forwardedRef) => {
|
|
16447
16760
|
const { __scopeDialog, ...closeProps } = props;
|
|
16448
16761
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
|
16449
|
-
return /* @__PURE__ */
|
|
16762
|
+
return /* @__PURE__ */ jsx195(
|
|
16450
16763
|
Primitive.button,
|
|
16451
16764
|
{
|
|
16452
16765
|
type: "button",
|
|
@@ -16501,11 +16814,11 @@ var Overlay = DialogOverlay;
|
|
|
16501
16814
|
var Content2 = DialogContent;
|
|
16502
16815
|
|
|
16503
16816
|
// src/components/Dialog/Dialog.tsx
|
|
16504
|
-
import { forwardRef as
|
|
16817
|
+
import { forwardRef as forwardRef58 } from "react";
|
|
16505
16818
|
|
|
16506
16819
|
// src/components/Dialog/Dialog.styles.ts
|
|
16507
16820
|
import { keyframes } from "@emotion/react";
|
|
16508
|
-
import
|
|
16821
|
+
import styled38 from "@emotion/styled";
|
|
16509
16822
|
var dialogOverlayFadeIn = keyframes`
|
|
16510
16823
|
from { opacity: 0 }
|
|
16511
16824
|
to { opacity: 1 }
|
|
@@ -16534,11 +16847,11 @@ var dialogSlideOut = keyframes`
|
|
|
16534
16847
|
transform: translate(-50%, calc(-50% + 60px));
|
|
16535
16848
|
}
|
|
16536
16849
|
`;
|
|
16537
|
-
var DialogOverlay2 =
|
|
16850
|
+
var DialogOverlay2 = styled38(Overlay)(({ theme }) => {
|
|
16538
16851
|
return {
|
|
16539
16852
|
position: "fixed",
|
|
16540
16853
|
inset: 0,
|
|
16541
|
-
backgroundColor: theme.color.semantic.curtain.dim,
|
|
16854
|
+
backgroundColor: theme.color.semantic.curtain.static.dim,
|
|
16542
16855
|
'&[data-state="open"]': {
|
|
16543
16856
|
animation: `${dialogOverlayFadeIn} ${theme.environment.semantic.duration[200]} ${theme.environment.semantic.motion.entrance}`
|
|
16544
16857
|
},
|
|
@@ -16547,7 +16860,7 @@ var DialogOverlay2 = styled37(Overlay)(({ theme }) => {
|
|
|
16547
16860
|
}
|
|
16548
16861
|
};
|
|
16549
16862
|
});
|
|
16550
|
-
var DialogContent2 =
|
|
16863
|
+
var DialogContent2 = styled38(Content2)(({ theme }) => {
|
|
16551
16864
|
return {
|
|
16552
16865
|
position: "fixed",
|
|
16553
16866
|
top: "50%",
|
|
@@ -16562,7 +16875,7 @@ var DialogContent2 = styled37(Content2)(({ theme }) => {
|
|
|
16562
16875
|
}
|
|
16563
16876
|
};
|
|
16564
16877
|
});
|
|
16565
|
-
var DialogRoot =
|
|
16878
|
+
var DialogRoot = styled38.div(({ theme }) => ({
|
|
16566
16879
|
display: "flex",
|
|
16567
16880
|
flexDirection: "column",
|
|
16568
16881
|
alignItems: "flex-start",
|
|
@@ -16575,7 +16888,7 @@ var DialogRoot = styled37.div(({ theme }) => ({
|
|
|
16575
16888
|
background: theme.color.semantic.surface.shallow,
|
|
16576
16889
|
...shadow(theme, "overlay")
|
|
16577
16890
|
}));
|
|
16578
|
-
var DialogDiv =
|
|
16891
|
+
var DialogDiv = styled38.div(({ theme }) => ({
|
|
16579
16892
|
display: "flex",
|
|
16580
16893
|
flexDirection: "column",
|
|
16581
16894
|
alignItems: "flex-start",
|
|
@@ -16583,7 +16896,7 @@ var DialogDiv = styled37.div(({ theme }) => ({
|
|
|
16583
16896
|
padding: theme.scheme.semantic.margin.md,
|
|
16584
16897
|
gap: theme.scheme.semantic.spacing[24]
|
|
16585
16898
|
}));
|
|
16586
|
-
var DialogContentDiv =
|
|
16899
|
+
var DialogContentDiv = styled38.div(({ theme }) => ({
|
|
16587
16900
|
display: "flex",
|
|
16588
16901
|
flexDirection: "column",
|
|
16589
16902
|
alignItems: "flex-start",
|
|
@@ -16591,15 +16904,15 @@ var DialogContentDiv = styled37.div(({ theme }) => ({
|
|
|
16591
16904
|
padding: theme.scheme.semantic.spacing[0],
|
|
16592
16905
|
gap: theme.scheme.semantic.spacing[16]
|
|
16593
16906
|
}));
|
|
16594
|
-
var DialogTitle2 =
|
|
16907
|
+
var DialogTitle2 = styled38(Title)({
|
|
16595
16908
|
alignSelf: "stretch"
|
|
16596
16909
|
});
|
|
16597
|
-
var DialogBodyTextP =
|
|
16910
|
+
var DialogBodyTextP = styled38.p(({ theme }) => ({
|
|
16598
16911
|
alignSelf: "stretch",
|
|
16599
16912
|
color: theme.color.semantic.object.normal,
|
|
16600
16913
|
...theme.textStyle["semantic-textStyle-body-xs-normal"]
|
|
16601
16914
|
}));
|
|
16602
|
-
var DialogButtonContainerDiv =
|
|
16915
|
+
var DialogButtonContainerDiv = styled38("div", {
|
|
16603
16916
|
shouldForwardProp: (prop) => !prop.startsWith("$")
|
|
16604
16917
|
})(({ theme, $isStacked }) => ({
|
|
16605
16918
|
display: "flex",
|
|
@@ -16611,8 +16924,8 @@ var DialogButtonContainerDiv = styled37("div", {
|
|
|
16611
16924
|
}));
|
|
16612
16925
|
|
|
16613
16926
|
// src/components/Dialog/Dialog.tsx
|
|
16614
|
-
import { jsx as
|
|
16615
|
-
var Dialog2 =
|
|
16927
|
+
import { jsx as jsx196, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
16928
|
+
var Dialog2 = forwardRef58(
|
|
16616
16929
|
({
|
|
16617
16930
|
isButtonStretched = false,
|
|
16618
16931
|
header,
|
|
@@ -16626,7 +16939,7 @@ var Dialog2 = forwardRef57(
|
|
|
16626
16939
|
const hasTertiaryButton = !!tertiaryAction;
|
|
16627
16940
|
const isReversedOrder = isButtonStretched && !!tertiaryAction;
|
|
16628
16941
|
const renderButtons = () => {
|
|
16629
|
-
const primary = /* @__PURE__ */
|
|
16942
|
+
const primary = /* @__PURE__ */ jsx196(
|
|
16630
16943
|
BlockButton.Basic,
|
|
16631
16944
|
{
|
|
16632
16945
|
style: { width: isButtonStretched ? "100%" : "auto" },
|
|
@@ -16634,7 +16947,7 @@ var Dialog2 = forwardRef57(
|
|
|
16634
16947
|
},
|
|
16635
16948
|
"primary"
|
|
16636
16949
|
);
|
|
16637
|
-
const secondary = secondaryAction ? /* @__PURE__ */
|
|
16950
|
+
const secondary = secondaryAction ? /* @__PURE__ */ jsx196(
|
|
16638
16951
|
BlockButton.Basic,
|
|
16639
16952
|
{
|
|
16640
16953
|
variant: "outlined",
|
|
@@ -16644,7 +16957,7 @@ var Dialog2 = forwardRef57(
|
|
|
16644
16957
|
},
|
|
16645
16958
|
"secondary"
|
|
16646
16959
|
) : null;
|
|
16647
|
-
const tertiary = tertiaryAction ? /* @__PURE__ */
|
|
16960
|
+
const tertiary = tertiaryAction ? /* @__PURE__ */ jsx196(
|
|
16648
16961
|
BlockButton.Basic,
|
|
16649
16962
|
{
|
|
16650
16963
|
variant: "empty",
|
|
@@ -16657,15 +16970,15 @@ var Dialog2 = forwardRef57(
|
|
|
16657
16970
|
const ordered = isReversedOrder ? [primary, secondary, tertiary] : [tertiary, secondary, primary];
|
|
16658
16971
|
return ordered.filter(Boolean);
|
|
16659
16972
|
};
|
|
16660
|
-
return /* @__PURE__ */
|
|
16661
|
-
/* @__PURE__ */
|
|
16662
|
-
/* @__PURE__ */
|
|
16663
|
-
/* @__PURE__ */
|
|
16664
|
-
/* @__PURE__ */
|
|
16665
|
-
/* @__PURE__ */
|
|
16666
|
-
checkboxAction && /* @__PURE__ */
|
|
16973
|
+
return /* @__PURE__ */ jsx196(Root3, { ...rest, children: /* @__PURE__ */ jsxs46(Portal2, { children: [
|
|
16974
|
+
/* @__PURE__ */ jsx196(DialogOverlay2, {}),
|
|
16975
|
+
/* @__PURE__ */ jsx196(DialogContent2, { asChild: true, children: /* @__PURE__ */ jsx196(DialogRoot, { ref, children: /* @__PURE__ */ jsxs46(DialogDiv, { children: [
|
|
16976
|
+
/* @__PURE__ */ jsxs46(DialogContentDiv, { children: [
|
|
16977
|
+
/* @__PURE__ */ jsx196(DialogTitle2, { textAlign: "left", size: "xs", children: header }),
|
|
16978
|
+
/* @__PURE__ */ jsx196(DialogBodyTextP, { children: body }),
|
|
16979
|
+
checkboxAction && /* @__PURE__ */ jsx196(Checkbox.Content, { ...checkboxAction })
|
|
16667
16980
|
] }),
|
|
16668
|
-
/* @__PURE__ */
|
|
16981
|
+
/* @__PURE__ */ jsx196(DialogButtonContainerDiv, { $isStacked: isButtonStretched && hasTertiaryButton, children: renderButtons() })
|
|
16669
16982
|
] }) }) })
|
|
16670
16983
|
] }) });
|
|
16671
16984
|
}
|
|
@@ -16677,7 +16990,7 @@ import { useEffect as useEffect16, useState as useState13 } from "react";
|
|
|
16677
16990
|
|
|
16678
16991
|
// src/components/Toast/toast.styles.ts
|
|
16679
16992
|
import { keyframes as keyframes2 } from "@emotion/react";
|
|
16680
|
-
import
|
|
16993
|
+
import styled39 from "@emotion/styled";
|
|
16681
16994
|
|
|
16682
16995
|
// src/components/Toast/toast.variants.ts
|
|
16683
16996
|
var toastStylesMap = (theme) => ({
|
|
@@ -16699,7 +17012,7 @@ var toastStylesMap = (theme) => ({
|
|
|
16699
17012
|
});
|
|
16700
17013
|
|
|
16701
17014
|
// src/components/Toast/toast.styles.ts
|
|
16702
|
-
var ToastStackContainer =
|
|
17015
|
+
var ToastStackContainer = styled39.div(({ theme }) => {
|
|
16703
17016
|
return {
|
|
16704
17017
|
position: "fixed",
|
|
16705
17018
|
bottom: "0",
|
|
@@ -16714,7 +17027,7 @@ var ToastStackContainer = styled38.div(({ theme }) => {
|
|
|
16714
17027
|
overflow: "hidden"
|
|
16715
17028
|
};
|
|
16716
17029
|
});
|
|
16717
|
-
var ToastDiv =
|
|
17030
|
+
var ToastDiv = styled39.div(({ theme, toastStyle }) => {
|
|
16718
17031
|
const color = toastStylesMap(theme)[toastStyle].color;
|
|
16719
17032
|
const borderColor = toastStylesMap(theme)[toastStyle].borderColor;
|
|
16720
17033
|
const backgroundColor = toastStylesMap(theme)[toastStyle].backgroundColor;
|
|
@@ -16758,17 +17071,17 @@ var ToastDiv = styled38.div(({ theme, toastStyle }) => {
|
|
|
16758
17071
|
}
|
|
16759
17072
|
};
|
|
16760
17073
|
});
|
|
16761
|
-
var ToastLabel =
|
|
17074
|
+
var ToastLabel = styled39(Label)(({ theme, toastStyle }) => {
|
|
16762
17075
|
return { flex: "1", color: toastStylesMap(theme)[toastStyle].color };
|
|
16763
17076
|
});
|
|
16764
|
-
var ToastContentDiv =
|
|
17077
|
+
var ToastContentDiv = styled39.div(({ theme }) => {
|
|
16765
17078
|
return {
|
|
16766
17079
|
display: "flex",
|
|
16767
17080
|
flexDirection: "column",
|
|
16768
17081
|
gap: theme.scheme.semantic.spacing[6]
|
|
16769
17082
|
};
|
|
16770
17083
|
});
|
|
16771
|
-
var ToastLabelContainerDiv =
|
|
17084
|
+
var ToastLabelContainerDiv = styled39.div(({ theme }) => {
|
|
16772
17085
|
return {
|
|
16773
17086
|
display: "flex",
|
|
16774
17087
|
gap: theme.scheme.semantic.spacing[8],
|
|
@@ -16776,14 +17089,14 @@ var ToastLabelContainerDiv = styled38.div(({ theme }) => {
|
|
|
16776
17089
|
alignItems: "center"
|
|
16777
17090
|
};
|
|
16778
17091
|
});
|
|
16779
|
-
var ToastCaptionP =
|
|
17092
|
+
var ToastCaptionP = styled39.p(({ theme }) => {
|
|
16780
17093
|
return {
|
|
16781
17094
|
...theme.textStyle["semantic-textStyle-body-xs-normal"],
|
|
16782
17095
|
[theme.breakPoint.mobile]: { ...theme.textStyle["semantic-textStyle-body-xs-normal"] },
|
|
16783
17096
|
[theme.breakPoint.tablet]: { ...theme.textStyle["semantic-textStyle-body-xs-normal"] }
|
|
16784
17097
|
};
|
|
16785
17098
|
});
|
|
16786
|
-
var ButtonContainerDiv =
|
|
17099
|
+
var ButtonContainerDiv = styled39.div(({ theme }) => {
|
|
16787
17100
|
return {
|
|
16788
17101
|
display: "flex",
|
|
16789
17102
|
gap: theme.scheme.semantic.spacing[12],
|
|
@@ -16791,12 +17104,12 @@ var ButtonContainerDiv = styled38.div(({ theme }) => {
|
|
|
16791
17104
|
alignItems: "center"
|
|
16792
17105
|
};
|
|
16793
17106
|
});
|
|
16794
|
-
var ToastFeedbackIcon =
|
|
17107
|
+
var ToastFeedbackIcon = styled39(Icon)(({ theme, variant }) => {
|
|
16795
17108
|
return { color: toastStylesMap(theme)[variant].color };
|
|
16796
17109
|
});
|
|
16797
17110
|
|
|
16798
17111
|
// src/components/Toast/Toast.tsx
|
|
16799
|
-
import { jsx as
|
|
17112
|
+
import { jsx as jsx197, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
16800
17113
|
var ToastBasic = ({ id, caption, onRemove, title, isClosing }) => {
|
|
16801
17114
|
const [phase, setPhase] = useState13("enter");
|
|
16802
17115
|
const onAnimationEnd = () => {
|
|
@@ -16818,10 +17131,10 @@ var ToastBasic = ({ id, caption, onRemove, title, isClosing }) => {
|
|
|
16818
17131
|
useEffect16(() => {
|
|
16819
17132
|
if (isClosing) setPhase("exit");
|
|
16820
17133
|
}, [isClosing]);
|
|
16821
|
-
return /* @__PURE__ */
|
|
16822
|
-
/* @__PURE__ */
|
|
16823
|
-
/* @__PURE__ */
|
|
16824
|
-
/* @__PURE__ */
|
|
17134
|
+
return /* @__PURE__ */ jsx197(ToastDiv, { id, className: phase, toastStyle: "basic", onAnimationEnd, children: /* @__PURE__ */ jsxs47(ToastContentDiv, { children: [
|
|
17135
|
+
/* @__PURE__ */ jsxs47(ToastLabelContainerDiv, { children: [
|
|
17136
|
+
/* @__PURE__ */ jsx197(ToastLabel, { as: "span", toastStyle: "basic", size: "md", textAlign: "left", weight: "normal", children: title }),
|
|
17137
|
+
/* @__PURE__ */ jsx197(
|
|
16825
17138
|
IconButton.Basic,
|
|
16826
17139
|
{
|
|
16827
17140
|
icon: "close-line",
|
|
@@ -16832,7 +17145,7 @@ var ToastBasic = ({ id, caption, onRemove, title, isClosing }) => {
|
|
|
16832
17145
|
}
|
|
16833
17146
|
)
|
|
16834
17147
|
] }),
|
|
16835
|
-
caption && /* @__PURE__ */
|
|
17148
|
+
caption && /* @__PURE__ */ jsx197(ToastCaptionP, { children: caption })
|
|
16836
17149
|
] }) });
|
|
16837
17150
|
};
|
|
16838
17151
|
ToastBasic.displayName = "Toast.Basic";
|
|
@@ -16864,17 +17177,17 @@ var ToastFeedback = ({
|
|
|
16864
17177
|
useEffect16(() => {
|
|
16865
17178
|
if (isClosing) setPhase("exit");
|
|
16866
17179
|
}, [isClosing]);
|
|
16867
|
-
return /* @__PURE__ */
|
|
16868
|
-
/* @__PURE__ */
|
|
16869
|
-
/* @__PURE__ */
|
|
17180
|
+
return /* @__PURE__ */ jsx197(ToastDiv, { id, className: phase, toastStyle: variant, onAnimationEnd, children: /* @__PURE__ */ jsxs47(ToastContentDiv, { children: [
|
|
17181
|
+
/* @__PURE__ */ jsxs47(ToastLabelContainerDiv, { children: [
|
|
17182
|
+
/* @__PURE__ */ jsx197(
|
|
16870
17183
|
ToastFeedbackIcon,
|
|
16871
17184
|
{
|
|
16872
17185
|
variant,
|
|
16873
17186
|
name: variant === "positive" ? "check-line" : "error-warning-line"
|
|
16874
17187
|
}
|
|
16875
17188
|
),
|
|
16876
|
-
/* @__PURE__ */
|
|
16877
|
-
/* @__PURE__ */
|
|
17189
|
+
/* @__PURE__ */ jsx197(ToastLabel, { as: "span", toastStyle: variant, size: "md", textAlign: "left", weight: "normal", children: title }),
|
|
17190
|
+
/* @__PURE__ */ jsx197(
|
|
16878
17191
|
IconButton.Basic,
|
|
16879
17192
|
{
|
|
16880
17193
|
icon: "close-line",
|
|
@@ -16885,7 +17198,7 @@ var ToastFeedback = ({
|
|
|
16885
17198
|
}
|
|
16886
17199
|
)
|
|
16887
17200
|
] }),
|
|
16888
|
-
caption && /* @__PURE__ */
|
|
17201
|
+
caption && /* @__PURE__ */ jsx197(ToastCaptionP, { children: caption })
|
|
16889
17202
|
] }) });
|
|
16890
17203
|
};
|
|
16891
17204
|
ToastFeedback.displayName = "Toast.Feedback";
|
|
@@ -16895,7 +17208,7 @@ var Toast = {
|
|
|
16895
17208
|
};
|
|
16896
17209
|
|
|
16897
17210
|
// src/components/Toast/ToastProvider.tsx
|
|
16898
|
-
import { createContext as
|
|
17211
|
+
import { createContext as createContext12, useContext as useContext13, useEffect as useEffect17 } from "react";
|
|
16899
17212
|
import { createPortal } from "react-dom";
|
|
16900
17213
|
|
|
16901
17214
|
// src/components/Toast/toastController.ts
|
|
@@ -16980,19 +17293,19 @@ var useToastProvider = ({ toastLimit = 3 }) => {
|
|
|
16980
17293
|
};
|
|
16981
17294
|
|
|
16982
17295
|
// src/components/Toast/ToastProvider.tsx
|
|
16983
|
-
import { jsx as
|
|
16984
|
-
var ToastContext =
|
|
17296
|
+
import { jsx as jsx198, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
17297
|
+
var ToastContext = createContext12(null);
|
|
16985
17298
|
var ToastProvider = ({ children }) => {
|
|
16986
17299
|
const { toasts, toast: handler, removeToast } = useToastProvider({});
|
|
16987
17300
|
useEffect17(() => {
|
|
16988
17301
|
toastController.setHandler(handler);
|
|
16989
17302
|
return () => toastController.clearHandler();
|
|
16990
17303
|
}, [handler]);
|
|
16991
|
-
return /* @__PURE__ */
|
|
17304
|
+
return /* @__PURE__ */ jsxs48(ToastContext.Provider, { value: { toast: handler, removeToast }, children: [
|
|
16992
17305
|
children,
|
|
16993
17306
|
createPortal(
|
|
16994
|
-
/* @__PURE__ */
|
|
16995
|
-
(toast) => toast.type === "basic" ? /* @__PURE__ */
|
|
17307
|
+
/* @__PURE__ */ jsx198(ToastStackContainer, { children: toasts.map(
|
|
17308
|
+
(toast) => toast.type === "basic" ? /* @__PURE__ */ jsx198(Toast.Basic, { onRemove: () => removeToast(toast.id), ...toast }, toast.id) : /* @__PURE__ */ jsx198(
|
|
16996
17309
|
Toast.Feedback,
|
|
16997
17310
|
{
|
|
16998
17311
|
variant: toast.type,
|
|
@@ -17007,7 +17320,7 @@ var ToastProvider = ({ children }) => {
|
|
|
17007
17320
|
] });
|
|
17008
17321
|
};
|
|
17009
17322
|
var useToast = () => {
|
|
17010
|
-
const context =
|
|
17323
|
+
const context = useContext13(ToastContext);
|
|
17011
17324
|
if (!context) throw new Error("useToast must be used within ToastProvider");
|
|
17012
17325
|
return context;
|
|
17013
17326
|
};
|
|
@@ -17017,7 +17330,7 @@ import { useEffect as useEffect18, useState as useState15 } from "react";
|
|
|
17017
17330
|
|
|
17018
17331
|
// src/components/Snackbar/snackbar.styles.ts
|
|
17019
17332
|
import { keyframes as keyframes3 } from "@emotion/react";
|
|
17020
|
-
import
|
|
17333
|
+
import styled40 from "@emotion/styled";
|
|
17021
17334
|
|
|
17022
17335
|
// src/components/Snackbar/snackbar.variants.ts
|
|
17023
17336
|
var snackbarStylesMap = (theme) => ({
|
|
@@ -17039,7 +17352,7 @@ var snackbarStylesMap = (theme) => ({
|
|
|
17039
17352
|
});
|
|
17040
17353
|
|
|
17041
17354
|
// src/components/Snackbar/snackbar.styles.ts
|
|
17042
|
-
var SnackbarStackContainer =
|
|
17355
|
+
var SnackbarStackContainer = styled40.div(({ theme }) => {
|
|
17043
17356
|
return {
|
|
17044
17357
|
position: "absolute",
|
|
17045
17358
|
bottom: "0",
|
|
@@ -17054,7 +17367,7 @@ var SnackbarStackContainer = styled39.div(({ theme }) => {
|
|
|
17054
17367
|
overflow: "hidden"
|
|
17055
17368
|
};
|
|
17056
17369
|
});
|
|
17057
|
-
var SnackbarDiv =
|
|
17370
|
+
var SnackbarDiv = styled40.div(({ theme, snackbarStyle }) => {
|
|
17058
17371
|
const color = snackbarStylesMap(theme)[snackbarStyle].color;
|
|
17059
17372
|
const borderColor = snackbarStylesMap(theme)[snackbarStyle].borderColor;
|
|
17060
17373
|
const backgroundColor = snackbarStylesMap(theme)[snackbarStyle].backgroundColor;
|
|
@@ -17098,20 +17411,20 @@ var SnackbarDiv = styled39.div(({ theme, snackbarStyle }) => {
|
|
|
17098
17411
|
}
|
|
17099
17412
|
};
|
|
17100
17413
|
});
|
|
17101
|
-
var SnackbarLabel =
|
|
17414
|
+
var SnackbarLabel = styled40(Label)(({
|
|
17102
17415
|
theme,
|
|
17103
17416
|
snackbarStyle
|
|
17104
17417
|
}) => {
|
|
17105
17418
|
return { flex: "1", color: snackbarStylesMap(theme)[snackbarStyle].color };
|
|
17106
17419
|
});
|
|
17107
|
-
var SnackbarContentDiv =
|
|
17420
|
+
var SnackbarContentDiv = styled40.div(({ theme }) => {
|
|
17108
17421
|
return {
|
|
17109
17422
|
display: "flex",
|
|
17110
17423
|
flexDirection: "column",
|
|
17111
17424
|
gap: theme.scheme.semantic.spacing[6]
|
|
17112
17425
|
};
|
|
17113
17426
|
});
|
|
17114
|
-
var SnackbarLabelContainerDiv =
|
|
17427
|
+
var SnackbarLabelContainerDiv = styled40.div(({ theme }) => {
|
|
17115
17428
|
return {
|
|
17116
17429
|
display: "flex",
|
|
17117
17430
|
gap: theme.scheme.semantic.spacing[8],
|
|
@@ -17119,14 +17432,14 @@ var SnackbarLabelContainerDiv = styled39.div(({ theme }) => {
|
|
|
17119
17432
|
alignItems: "center"
|
|
17120
17433
|
};
|
|
17121
17434
|
});
|
|
17122
|
-
var SnackbarCaptionP =
|
|
17435
|
+
var SnackbarCaptionP = styled40.p(({ theme }) => {
|
|
17123
17436
|
return {
|
|
17124
17437
|
...theme.textStyle["semantic-textStyle-body-xs-normal"],
|
|
17125
17438
|
[theme.breakPoint.mobile]: { ...theme.textStyle["semantic-textStyle-body-xs-normal"] },
|
|
17126
17439
|
[theme.breakPoint.tablet]: { ...theme.textStyle["semantic-textStyle-body-xs-normal"] }
|
|
17127
17440
|
};
|
|
17128
17441
|
});
|
|
17129
|
-
var ButtonContainerDiv2 =
|
|
17442
|
+
var ButtonContainerDiv2 = styled40.div(({ theme }) => {
|
|
17130
17443
|
return {
|
|
17131
17444
|
display: "flex",
|
|
17132
17445
|
gap: theme.scheme.semantic.spacing[12],
|
|
@@ -17134,7 +17447,7 @@ var ButtonContainerDiv2 = styled39.div(({ theme }) => {
|
|
|
17134
17447
|
alignItems: "center"
|
|
17135
17448
|
};
|
|
17136
17449
|
});
|
|
17137
|
-
var SnackbarFeedbackIcon =
|
|
17450
|
+
var SnackbarFeedbackIcon = styled40(Icon)(({
|
|
17138
17451
|
theme,
|
|
17139
17452
|
variant
|
|
17140
17453
|
}) => {
|
|
@@ -17142,12 +17455,12 @@ var SnackbarFeedbackIcon = styled39(Icon)(({
|
|
|
17142
17455
|
});
|
|
17143
17456
|
|
|
17144
17457
|
// src/components/Snackbar/Snackbar.tsx
|
|
17145
|
-
import { jsx as
|
|
17458
|
+
import { jsx as jsx199, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
17146
17459
|
var SnackbarButtons = ({ prefixButtonProps, suffixButtonProps }) => {
|
|
17147
17460
|
if (!prefixButtonProps && !suffixButtonProps) return;
|
|
17148
|
-
return /* @__PURE__ */
|
|
17149
|
-
prefixButtonProps && /* @__PURE__ */
|
|
17150
|
-
suffixButtonProps && /* @__PURE__ */
|
|
17461
|
+
return /* @__PURE__ */ jsxs49(ButtonContainerDiv2, { children: [
|
|
17462
|
+
prefixButtonProps && /* @__PURE__ */ jsx199(BlockButton.Basic, { hierarchy: "tertiary", size: "xs", variant: "solid", ...prefixButtonProps, children: prefixButtonProps.children }),
|
|
17463
|
+
suffixButtonProps && /* @__PURE__ */ jsx199(BlockButton.Basic, { hierarchy: "primary", size: "xs", variant: "solid", ...suffixButtonProps, children: suffixButtonProps.children })
|
|
17151
17464
|
] });
|
|
17152
17465
|
};
|
|
17153
17466
|
var SnackbarBasic = ({
|
|
@@ -17179,11 +17492,11 @@ var SnackbarBasic = ({
|
|
|
17179
17492
|
useEffect18(() => {
|
|
17180
17493
|
if (isClosing) setPhase("exit");
|
|
17181
17494
|
}, [isClosing]);
|
|
17182
|
-
return /* @__PURE__ */
|
|
17183
|
-
/* @__PURE__ */
|
|
17184
|
-
/* @__PURE__ */
|
|
17185
|
-
/* @__PURE__ */
|
|
17186
|
-
/* @__PURE__ */
|
|
17495
|
+
return /* @__PURE__ */ jsxs49(SnackbarDiv, { id, className: phase, snackbarStyle: "basic", onAnimationEnd, children: [
|
|
17496
|
+
/* @__PURE__ */ jsxs49(SnackbarContentDiv, { children: [
|
|
17497
|
+
/* @__PURE__ */ jsxs49(SnackbarLabelContainerDiv, { children: [
|
|
17498
|
+
/* @__PURE__ */ jsx199(SnackbarLabel, { snackbarStyle: "basic", size: "md", textAlign: "left", weight: "normal", children: title }),
|
|
17499
|
+
/* @__PURE__ */ jsx199(
|
|
17187
17500
|
IconButton.Basic,
|
|
17188
17501
|
{
|
|
17189
17502
|
icon: "close-line",
|
|
@@ -17194,9 +17507,9 @@ var SnackbarBasic = ({
|
|
|
17194
17507
|
}
|
|
17195
17508
|
)
|
|
17196
17509
|
] }),
|
|
17197
|
-
caption && /* @__PURE__ */
|
|
17510
|
+
caption && /* @__PURE__ */ jsx199(SnackbarCaptionP, { children: caption })
|
|
17198
17511
|
] }),
|
|
17199
|
-
/* @__PURE__ */
|
|
17512
|
+
/* @__PURE__ */ jsx199(
|
|
17200
17513
|
SnackbarButtons,
|
|
17201
17514
|
{
|
|
17202
17515
|
prefixButtonProps,
|
|
@@ -17236,18 +17549,18 @@ var SnackbarFeedback = ({
|
|
|
17236
17549
|
useEffect18(() => {
|
|
17237
17550
|
if (isClosing) setPhase("exit");
|
|
17238
17551
|
}, [isClosing]);
|
|
17239
|
-
return /* @__PURE__ */
|
|
17240
|
-
/* @__PURE__ */
|
|
17241
|
-
/* @__PURE__ */
|
|
17242
|
-
/* @__PURE__ */
|
|
17552
|
+
return /* @__PURE__ */ jsxs49(SnackbarDiv, { id, className: phase, snackbarStyle: variant, onAnimationEnd, children: [
|
|
17553
|
+
/* @__PURE__ */ jsxs49(SnackbarContentDiv, { children: [
|
|
17554
|
+
/* @__PURE__ */ jsxs49(SnackbarLabelContainerDiv, { children: [
|
|
17555
|
+
/* @__PURE__ */ jsx199(
|
|
17243
17556
|
SnackbarFeedbackIcon,
|
|
17244
17557
|
{
|
|
17245
17558
|
variant,
|
|
17246
17559
|
name: variant === "positive" ? "check-line" : "error-warning-line"
|
|
17247
17560
|
}
|
|
17248
17561
|
),
|
|
17249
|
-
/* @__PURE__ */
|
|
17250
|
-
/* @__PURE__ */
|
|
17562
|
+
/* @__PURE__ */ jsx199(SnackbarLabel, { snackbarStyle: variant, size: "md", textAlign: "left", weight: "normal", children: title }),
|
|
17563
|
+
/* @__PURE__ */ jsx199(
|
|
17251
17564
|
IconButton.Basic,
|
|
17252
17565
|
{
|
|
17253
17566
|
icon: "close-line",
|
|
@@ -17258,9 +17571,9 @@ var SnackbarFeedback = ({
|
|
|
17258
17571
|
}
|
|
17259
17572
|
)
|
|
17260
17573
|
] }),
|
|
17261
|
-
caption && /* @__PURE__ */
|
|
17574
|
+
caption && /* @__PURE__ */ jsx199(SnackbarCaptionP, { children: caption })
|
|
17262
17575
|
] }),
|
|
17263
|
-
/* @__PURE__ */
|
|
17576
|
+
/* @__PURE__ */ jsx199(
|
|
17264
17577
|
SnackbarButtons,
|
|
17265
17578
|
{
|
|
17266
17579
|
prefixButtonProps,
|
|
@@ -17276,7 +17589,7 @@ var Snackbar = {
|
|
|
17276
17589
|
};
|
|
17277
17590
|
|
|
17278
17591
|
// src/components/Snackbar/SnackbarProvider.tsx
|
|
17279
|
-
import { createContext as
|
|
17592
|
+
import { createContext as createContext13, useContext as useContext14, useEffect as useEffect19 } from "react";
|
|
17280
17593
|
import { createPortal as createPortal2 } from "react-dom";
|
|
17281
17594
|
|
|
17282
17595
|
// src/components/Snackbar/snackbarController.ts
|
|
@@ -17316,26 +17629,26 @@ var useSnackbarProvider = ({ snackbarLimit = 3 }) => {
|
|
|
17316
17629
|
};
|
|
17317
17630
|
|
|
17318
17631
|
// src/components/Snackbar/SnackbarProvider.tsx
|
|
17319
|
-
import { jsx as
|
|
17320
|
-
var SnackbarContext =
|
|
17632
|
+
import { jsx as jsx200, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
17633
|
+
var SnackbarContext = createContext13(null);
|
|
17321
17634
|
var SnackbarProvider = ({ children }) => {
|
|
17322
17635
|
const { snackbars, snackbar: handler, removeSnackbar } = useSnackbarProvider({});
|
|
17323
17636
|
useEffect19(() => {
|
|
17324
17637
|
snackbarController.setHandler(handler);
|
|
17325
17638
|
return () => snackbarController.clearHandler();
|
|
17326
17639
|
}, [handler]);
|
|
17327
|
-
return /* @__PURE__ */
|
|
17640
|
+
return /* @__PURE__ */ jsxs50(SnackbarContext.Provider, { value: { snackbar: handler, removeSnackbar }, children: [
|
|
17328
17641
|
children,
|
|
17329
17642
|
createPortal2(
|
|
17330
|
-
/* @__PURE__ */
|
|
17331
|
-
(snackbar) => snackbar.type === "basic" ? /* @__PURE__ */
|
|
17643
|
+
/* @__PURE__ */ jsx200(SnackbarStackContainer, { children: snackbars.map(
|
|
17644
|
+
(snackbar) => snackbar.type === "basic" ? /* @__PURE__ */ jsx200(
|
|
17332
17645
|
Snackbar.Basic,
|
|
17333
17646
|
{
|
|
17334
17647
|
onRemove: () => removeSnackbar(snackbar.id),
|
|
17335
17648
|
...snackbar
|
|
17336
17649
|
},
|
|
17337
17650
|
snackbar.id
|
|
17338
|
-
) : /* @__PURE__ */
|
|
17651
|
+
) : /* @__PURE__ */ jsx200(
|
|
17339
17652
|
Snackbar.Feedback,
|
|
17340
17653
|
{
|
|
17341
17654
|
variant: snackbar.type,
|
|
@@ -17350,7 +17663,7 @@ var SnackbarProvider = ({ children }) => {
|
|
|
17350
17663
|
] });
|
|
17351
17664
|
};
|
|
17352
17665
|
var useSnackbar = () => {
|
|
17353
|
-
const context =
|
|
17666
|
+
const context = useContext14(SnackbarContext);
|
|
17354
17667
|
if (!context) throw new Error("useSnackbar must be used within SnackbarProvider");
|
|
17355
17668
|
return context;
|
|
17356
17669
|
};
|
|
@@ -17360,7 +17673,7 @@ import React32 from "react";
|
|
|
17360
17673
|
|
|
17361
17674
|
// ../../node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
17362
17675
|
import * as React31 from "react";
|
|
17363
|
-
import { jsx as
|
|
17676
|
+
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
17364
17677
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
17365
17678
|
var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
|
|
17366
17679
|
var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
|
|
@@ -17380,7 +17693,7 @@ var Collapsible = React31.forwardRef(
|
|
|
17380
17693
|
onChange: onOpenChange,
|
|
17381
17694
|
caller: COLLAPSIBLE_NAME
|
|
17382
17695
|
});
|
|
17383
|
-
return /* @__PURE__ */
|
|
17696
|
+
return /* @__PURE__ */ jsx201(
|
|
17384
17697
|
CollapsibleProvider,
|
|
17385
17698
|
{
|
|
17386
17699
|
scope: __scopeCollapsible,
|
|
@@ -17388,7 +17701,7 @@ var Collapsible = React31.forwardRef(
|
|
|
17388
17701
|
contentId: useId6(),
|
|
17389
17702
|
open,
|
|
17390
17703
|
onOpenToggle: React31.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
17391
|
-
children: /* @__PURE__ */
|
|
17704
|
+
children: /* @__PURE__ */ jsx201(
|
|
17392
17705
|
Primitive.div,
|
|
17393
17706
|
{
|
|
17394
17707
|
"data-state": getState2(open),
|
|
@@ -17407,7 +17720,7 @@ var CollapsibleTrigger = React31.forwardRef(
|
|
|
17407
17720
|
(props, forwardedRef) => {
|
|
17408
17721
|
const { __scopeCollapsible, ...triggerProps } = props;
|
|
17409
17722
|
const context = useCollapsibleContext(TRIGGER_NAME3, __scopeCollapsible);
|
|
17410
|
-
return /* @__PURE__ */
|
|
17723
|
+
return /* @__PURE__ */ jsx201(
|
|
17411
17724
|
Primitive.button,
|
|
17412
17725
|
{
|
|
17413
17726
|
type: "button",
|
|
@@ -17429,7 +17742,7 @@ var CollapsibleContent = React31.forwardRef(
|
|
|
17429
17742
|
(props, forwardedRef) => {
|
|
17430
17743
|
const { forceMount, ...contentProps } = props;
|
|
17431
17744
|
const context = useCollapsibleContext(CONTENT_NAME3, props.__scopeCollapsible);
|
|
17432
|
-
return /* @__PURE__ */
|
|
17745
|
+
return /* @__PURE__ */ jsx201(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx201(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
|
|
17433
17746
|
}
|
|
17434
17747
|
);
|
|
17435
17748
|
CollapsibleContent.displayName = CONTENT_NAME3;
|
|
@@ -17469,7 +17782,7 @@ var CollapsibleContentImpl = React31.forwardRef((props, forwardedRef) => {
|
|
|
17469
17782
|
setIsPresent(present);
|
|
17470
17783
|
}
|
|
17471
17784
|
}, [context.open, present]);
|
|
17472
|
-
return /* @__PURE__ */
|
|
17785
|
+
return /* @__PURE__ */ jsx201(
|
|
17473
17786
|
Primitive.div,
|
|
17474
17787
|
{
|
|
17475
17788
|
"data-state": getState2(context.open),
|
|
@@ -17495,7 +17808,7 @@ var Trigger2 = CollapsibleTrigger;
|
|
|
17495
17808
|
var Content3 = CollapsibleContent;
|
|
17496
17809
|
|
|
17497
17810
|
// ../../node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
17498
|
-
import { jsx as
|
|
17811
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
17499
17812
|
var ACCORDION_NAME = "Accordion";
|
|
17500
17813
|
var ACCORDION_KEYS = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"];
|
|
17501
17814
|
var [Collection2, useCollection2, createCollectionScope2] = createCollection(ACCORDION_NAME);
|
|
@@ -17509,7 +17822,7 @@ var Accordion = React32.forwardRef(
|
|
|
17509
17822
|
const { type, ...accordionProps } = props;
|
|
17510
17823
|
const singleProps = accordionProps;
|
|
17511
17824
|
const multipleProps = accordionProps;
|
|
17512
|
-
return /* @__PURE__ */
|
|
17825
|
+
return /* @__PURE__ */ jsx202(Collection2.Provider, { scope: props.__scopeAccordion, children: type === "multiple" ? /* @__PURE__ */ jsx202(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsx202(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });
|
|
17513
17826
|
}
|
|
17514
17827
|
);
|
|
17515
17828
|
Accordion.displayName = ACCORDION_NAME;
|
|
@@ -17534,14 +17847,14 @@ var AccordionImplSingle = React32.forwardRef(
|
|
|
17534
17847
|
onChange: onValueChange,
|
|
17535
17848
|
caller: ACCORDION_NAME
|
|
17536
17849
|
});
|
|
17537
|
-
return /* @__PURE__ */
|
|
17850
|
+
return /* @__PURE__ */ jsx202(
|
|
17538
17851
|
AccordionValueProvider,
|
|
17539
17852
|
{
|
|
17540
17853
|
scope: props.__scopeAccordion,
|
|
17541
17854
|
value: React32.useMemo(() => value ? [value] : [], [value]),
|
|
17542
17855
|
onItemOpen: setValue,
|
|
17543
17856
|
onItemClose: React32.useCallback(() => collapsible && setValue(""), [collapsible, setValue]),
|
|
17544
|
-
children: /* @__PURE__ */
|
|
17857
|
+
children: /* @__PURE__ */ jsx202(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx202(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })
|
|
17545
17858
|
}
|
|
17546
17859
|
);
|
|
17547
17860
|
}
|
|
@@ -17568,14 +17881,14 @@ var AccordionImplMultiple = React32.forwardRef((props, forwardedRef) => {
|
|
|
17568
17881
|
(itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
|
|
17569
17882
|
[setValue]
|
|
17570
17883
|
);
|
|
17571
|
-
return /* @__PURE__ */
|
|
17884
|
+
return /* @__PURE__ */ jsx202(
|
|
17572
17885
|
AccordionValueProvider,
|
|
17573
17886
|
{
|
|
17574
17887
|
scope: props.__scopeAccordion,
|
|
17575
17888
|
value,
|
|
17576
17889
|
onItemOpen: handleItemOpen,
|
|
17577
17890
|
onItemClose: handleItemClose,
|
|
17578
|
-
children: /* @__PURE__ */
|
|
17891
|
+
children: /* @__PURE__ */ jsx202(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx202(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })
|
|
17579
17892
|
}
|
|
17580
17893
|
);
|
|
17581
17894
|
});
|
|
@@ -17650,14 +17963,14 @@ var AccordionImpl = React32.forwardRef(
|
|
|
17650
17963
|
const clampedIndex = nextIndex % triggerCount;
|
|
17651
17964
|
triggerCollection[clampedIndex].ref.current?.focus();
|
|
17652
17965
|
});
|
|
17653
|
-
return /* @__PURE__ */
|
|
17966
|
+
return /* @__PURE__ */ jsx202(
|
|
17654
17967
|
AccordionImplProvider,
|
|
17655
17968
|
{
|
|
17656
17969
|
scope: __scopeAccordion,
|
|
17657
17970
|
disabled,
|
|
17658
17971
|
direction: dir,
|
|
17659
17972
|
orientation,
|
|
17660
|
-
children: /* @__PURE__ */
|
|
17973
|
+
children: /* @__PURE__ */ jsx202(Collection2.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx202(
|
|
17661
17974
|
Primitive.div,
|
|
17662
17975
|
{
|
|
17663
17976
|
...accordionProps,
|
|
@@ -17681,14 +17994,14 @@ var AccordionItem = React32.forwardRef(
|
|
|
17681
17994
|
const triggerId = useId6();
|
|
17682
17995
|
const open = value && valueContext.value.includes(value) || false;
|
|
17683
17996
|
const disabled = accordionContext.disabled || props.disabled;
|
|
17684
|
-
return /* @__PURE__ */
|
|
17997
|
+
return /* @__PURE__ */ jsx202(
|
|
17685
17998
|
AccordionItemProvider,
|
|
17686
17999
|
{
|
|
17687
18000
|
scope: __scopeAccordion,
|
|
17688
18001
|
open,
|
|
17689
18002
|
disabled,
|
|
17690
18003
|
triggerId,
|
|
17691
|
-
children: /* @__PURE__ */
|
|
18004
|
+
children: /* @__PURE__ */ jsx202(
|
|
17692
18005
|
Root4,
|
|
17693
18006
|
{
|
|
17694
18007
|
"data-orientation": accordionContext.orientation,
|
|
@@ -17718,7 +18031,7 @@ var AccordionHeader = React32.forwardRef(
|
|
|
17718
18031
|
const { __scopeAccordion, ...headerProps } = props;
|
|
17719
18032
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
17720
18033
|
const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
|
|
17721
|
-
return /* @__PURE__ */
|
|
18034
|
+
return /* @__PURE__ */ jsx202(
|
|
17722
18035
|
Primitive.h3,
|
|
17723
18036
|
{
|
|
17724
18037
|
"data-orientation": accordionContext.orientation,
|
|
@@ -17739,7 +18052,7 @@ var AccordionTrigger = React32.forwardRef(
|
|
|
17739
18052
|
const itemContext = useAccordionItemContext(TRIGGER_NAME4, __scopeAccordion);
|
|
17740
18053
|
const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME4, __scopeAccordion);
|
|
17741
18054
|
const collapsibleScope = useCollapsibleScope(__scopeAccordion);
|
|
17742
|
-
return /* @__PURE__ */
|
|
18055
|
+
return /* @__PURE__ */ jsx202(Collection2.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx202(
|
|
17743
18056
|
Trigger2,
|
|
17744
18057
|
{
|
|
17745
18058
|
"aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
|
|
@@ -17760,7 +18073,7 @@ var AccordionContent = React32.forwardRef(
|
|
|
17760
18073
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
17761
18074
|
const itemContext = useAccordionItemContext(CONTENT_NAME4, __scopeAccordion);
|
|
17762
18075
|
const collapsibleScope = useCollapsibleScope(__scopeAccordion);
|
|
17763
|
-
return /* @__PURE__ */
|
|
18076
|
+
return /* @__PURE__ */ jsx202(
|
|
17764
18077
|
Content3,
|
|
17765
18078
|
{
|
|
17766
18079
|
role: "region",
|
|
@@ -17789,15 +18102,15 @@ var Trigger22 = AccordionTrigger;
|
|
|
17789
18102
|
var Content22 = AccordionContent;
|
|
17790
18103
|
|
|
17791
18104
|
// src/components/Accordion/Accordion.tsx
|
|
17792
|
-
import { forwardRef as
|
|
18105
|
+
import { forwardRef as forwardRef60, useMemo as useMemo9 } from "react";
|
|
17793
18106
|
|
|
17794
18107
|
// src/components/Accordion/accordion.styles.ts
|
|
17795
18108
|
import { keyframes as keyframes4 } from "@emotion/react";
|
|
17796
|
-
import
|
|
18109
|
+
import styled41 from "@emotion/styled";
|
|
17797
18110
|
var accordionSizeMap = {
|
|
17798
|
-
lg: { iconSize: "sm", labelSize: "lg" },
|
|
17799
|
-
md: { iconSize: "xs", labelSize: "md" },
|
|
17800
|
-
sm: { iconSize: "xs", labelSize: "sm" }
|
|
18111
|
+
lg: { iconSize: "sm", labelSize: "lg", contentTextStyle: "semantic-textStyle-body-lg-normal" },
|
|
18112
|
+
md: { iconSize: "xs", labelSize: "md", contentTextStyle: "semantic-textStyle-body-md-normal" },
|
|
18113
|
+
sm: { iconSize: "xs", labelSize: "sm", contentTextStyle: "semantic-textStyle-body-xs-normal" }
|
|
17801
18114
|
};
|
|
17802
18115
|
var createInteractionStyles4 = (theme, isReadonly) => {
|
|
17803
18116
|
const borderRadius = 4;
|
|
@@ -17820,13 +18133,13 @@ var createInteractionStyles4 = (theme, isReadonly) => {
|
|
|
17820
18133
|
focusStyle: makeLayer("focus")
|
|
17821
18134
|
};
|
|
17822
18135
|
};
|
|
17823
|
-
var StyledAccordionRoot =
|
|
18136
|
+
var StyledAccordionRoot = styled41("div")(({ theme }) => ({
|
|
17824
18137
|
display: "flex",
|
|
17825
18138
|
flexDirection: "column",
|
|
17826
18139
|
gap: theme.scheme.semantic.spacing[24],
|
|
17827
18140
|
width: "100%"
|
|
17828
18141
|
}));
|
|
17829
|
-
var StyledAccordionTrigger =
|
|
18142
|
+
var StyledAccordionTrigger = styled41(
|
|
17830
18143
|
Trigger22
|
|
17831
18144
|
)(({ theme, $isStretched }) => {
|
|
17832
18145
|
const interactionStyles7 = createInteractionStyles4(theme, false);
|
|
@@ -17854,22 +18167,9 @@ var StyledAccordionTrigger = styled40(
|
|
|
17854
18167
|
...interactionStyles7.focusStyle
|
|
17855
18168
|
},
|
|
17856
18169
|
"&[data-disabled]": {
|
|
18170
|
+
pointerEvents: "none",
|
|
17857
18171
|
color: theme.color.semantic.object.subtle,
|
|
17858
18172
|
...disabledInteractionStyles.restStyle,
|
|
17859
|
-
"&:hover": {
|
|
17860
|
-
...disabledInteractionStyles.hoverStyle,
|
|
17861
|
-
"::after": {
|
|
17862
|
-
...interactionStyles7.hoverStyle["::after"],
|
|
17863
|
-
transition: `opacity ${theme.environment.semantic.duration[100]} ${theme.environment.semantic.motion.fluent}`
|
|
17864
|
-
}
|
|
17865
|
-
},
|
|
17866
|
-
"&:active": {
|
|
17867
|
-
...disabledInteractionStyles.activeStyle,
|
|
17868
|
-
"::after": {
|
|
17869
|
-
...disabledInteractionStyles.activeStyle["::after"],
|
|
17870
|
-
transition: "none"
|
|
17871
|
-
}
|
|
17872
|
-
},
|
|
17873
18173
|
"&:focus-visible": {
|
|
17874
18174
|
...disabledInteractionStyles.focusStyle
|
|
17875
18175
|
}
|
|
@@ -17879,19 +18179,19 @@ var StyledAccordionTrigger = styled40(
|
|
|
17879
18179
|
}
|
|
17880
18180
|
};
|
|
17881
18181
|
});
|
|
17882
|
-
var StyledAccordionLabelContainer =
|
|
18182
|
+
var StyledAccordionLabelContainer = styled41("div")(({ theme }) => ({
|
|
17883
18183
|
display: "flex",
|
|
17884
18184
|
justifyContent: "flex-start",
|
|
17885
18185
|
alignItems: "center",
|
|
17886
18186
|
gap: theme.scheme.semantic.spacing[8],
|
|
17887
18187
|
flex: 1
|
|
17888
18188
|
}));
|
|
17889
|
-
var StyledAccordionChevron =
|
|
18189
|
+
var StyledAccordionChevron = styled41("div")(({ theme }) => ({
|
|
17890
18190
|
display: "flex",
|
|
17891
18191
|
alignItems: "center",
|
|
17892
18192
|
transition: `transform ${theme.environment.semantic.duration[300]} ${theme.environment.semantic.motion.fluent}`
|
|
17893
18193
|
}));
|
|
17894
|
-
var StyleLabel =
|
|
18194
|
+
var StyleLabel = styled41(Label)(() => ({
|
|
17895
18195
|
color: "inherit",
|
|
17896
18196
|
textAlign: "left",
|
|
17897
18197
|
textWrap: "wrap",
|
|
@@ -17905,10 +18205,9 @@ var slideDown = keyframes4`
|
|
|
17905
18205
|
from { height: 0; }
|
|
17906
18206
|
to { height: var(--radix-accordion-content-height); }
|
|
17907
18207
|
`;
|
|
17908
|
-
var StyledAccordionContent =
|
|
18208
|
+
var StyledAccordionContent = styled41(Content22)(({ theme, $size }) => {
|
|
17909
18209
|
return {
|
|
17910
18210
|
overflow: "hidden",
|
|
17911
|
-
...theme.textStyle["semantic-textStyle-body-sm-normal"],
|
|
17912
18211
|
color: theme.color.semantic.object.bold,
|
|
17913
18212
|
willChange: "height",
|
|
17914
18213
|
"&[data-disabled]": {
|
|
@@ -17919,21 +18218,20 @@ var StyledAccordionContent = styled40(Content22)(({ theme }) => {
|
|
|
17919
18218
|
},
|
|
17920
18219
|
'&[data-state="closed"]': {
|
|
17921
18220
|
animation: `${slideUp} ${theme.environment.semantic.duration[300]} ${theme.environment.semantic.motion.fluent}`
|
|
17922
|
-
}
|
|
18221
|
+
},
|
|
18222
|
+
...theme.textStyle[accordionSizeMap[$size].contentTextStyle]
|
|
17923
18223
|
};
|
|
17924
18224
|
});
|
|
17925
|
-
var StyledAccordionContentText =
|
|
17926
|
-
|
|
17927
|
-
|
|
17928
|
-
|
|
17929
|
-
})
|
|
17930
|
-
);
|
|
18225
|
+
var StyledAccordionContentText = styled41("div")(({ theme, $isStretched }) => ({
|
|
18226
|
+
marginTop: theme.scheme.semantic.spacing[12],
|
|
18227
|
+
padding: $isStretched ? 0 : `0 ${theme.scheme.semantic.spacing[16]}`
|
|
18228
|
+
}));
|
|
17931
18229
|
|
|
17932
18230
|
// src/components/Accordion/accordionContext.ts
|
|
17933
|
-
import { createContext as
|
|
17934
|
-
var AccordionContext =
|
|
18231
|
+
import { createContext as createContext14, useContext as useContext15 } from "react";
|
|
18232
|
+
var AccordionContext = createContext14(void 0);
|
|
17935
18233
|
var useAccordionContext2 = () => {
|
|
17936
|
-
const context =
|
|
18234
|
+
const context = useContext15(AccordionContext);
|
|
17937
18235
|
if (!context) {
|
|
17938
18236
|
throw new Error("Accordion \uCEF4\uD3EC\uB10C\uD2B8\uB294 Accordion.Root \uB0B4\uBD80\uC5D0\uC11C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4");
|
|
17939
18237
|
}
|
|
@@ -17941,36 +18239,36 @@ var useAccordionContext2 = () => {
|
|
|
17941
18239
|
};
|
|
17942
18240
|
|
|
17943
18241
|
// src/components/Accordion/Accordion.tsx
|
|
17944
|
-
import { jsx as
|
|
17945
|
-
var AccordionRoot =
|
|
18242
|
+
import { jsx as jsx203, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
18243
|
+
var AccordionRoot = forwardRef60(
|
|
17946
18244
|
({ children, isStretched = true, size = "lg", ...props }, ref) => {
|
|
17947
18245
|
const contextValue = useMemo9(() => ({ isStretched, size }), [isStretched, size]);
|
|
17948
|
-
return /* @__PURE__ */
|
|
18246
|
+
return /* @__PURE__ */ jsx203(AccordionContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx203(Root22, { ...props, ref, children: /* @__PURE__ */ jsx203(StyledAccordionRoot, { children }) }) });
|
|
17949
18247
|
}
|
|
17950
18248
|
);
|
|
17951
18249
|
AccordionRoot.displayName = "Accordion.Root";
|
|
17952
|
-
var AccordionItem2 =
|
|
17953
|
-
({ children, ...props }, ref) => /* @__PURE__ */
|
|
18250
|
+
var AccordionItem2 = forwardRef60(
|
|
18251
|
+
({ children, ...props }, ref) => /* @__PURE__ */ jsx203(Item2, { ...props, ref, children })
|
|
17954
18252
|
);
|
|
17955
18253
|
AccordionItem2.displayName = "Accordion.Item";
|
|
17956
|
-
var AccordionTrigger2 =
|
|
18254
|
+
var AccordionTrigger2 = forwardRef60(
|
|
17957
18255
|
({ children, withPrefixIcon, ...props }, ref) => {
|
|
17958
18256
|
const { isStretched, size } = useAccordionContext2();
|
|
17959
18257
|
const { iconSize, labelSize } = accordionSizeMap[size];
|
|
17960
|
-
return /* @__PURE__ */
|
|
17961
|
-
/* @__PURE__ */
|
|
17962
|
-
withPrefixIcon && /* @__PURE__ */
|
|
17963
|
-
/* @__PURE__ */
|
|
18258
|
+
return /* @__PURE__ */ jsx203(Header, { children: /* @__PURE__ */ jsxs51(StyledAccordionTrigger, { ...props, ref, $isStretched: isStretched, children: [
|
|
18259
|
+
/* @__PURE__ */ jsxs51(StyledAccordionLabelContainer, { children: [
|
|
18260
|
+
withPrefixIcon && /* @__PURE__ */ jsx203(Icon, { size: iconSize, name: withPrefixIcon, "aria-hidden": true }),
|
|
18261
|
+
/* @__PURE__ */ jsx203(StyleLabel, { as: "span", size: labelSize, textAlign: "left", weight: "normal", children })
|
|
17964
18262
|
] }),
|
|
17965
|
-
/* @__PURE__ */
|
|
18263
|
+
/* @__PURE__ */ jsx203(StyledAccordionChevron, { className: "arrowIcon", children: /* @__PURE__ */ jsx203(Icon, { size: iconSize, name: "arrow-down-s-line", "aria-hidden": true }) })
|
|
17966
18264
|
] }) });
|
|
17967
18265
|
}
|
|
17968
18266
|
);
|
|
17969
18267
|
AccordionTrigger2.displayName = "Accordion.Trigger";
|
|
17970
|
-
var AccordionContent2 =
|
|
18268
|
+
var AccordionContent2 = forwardRef60(
|
|
17971
18269
|
({ children, ...props }, ref) => {
|
|
17972
|
-
const { isStretched } = useAccordionContext2();
|
|
17973
|
-
return /* @__PURE__ */
|
|
18270
|
+
const { isStretched, size } = useAccordionContext2();
|
|
18271
|
+
return /* @__PURE__ */ jsx203(StyledAccordionContent, { ...props, ref, $size: size, children: /* @__PURE__ */ jsx203(StyledAccordionContentText, { $isStretched: isStretched, children }) });
|
|
17974
18272
|
}
|
|
17975
18273
|
);
|
|
17976
18274
|
AccordionContent2.displayName = "Accordion.Content";
|