@jects/jds 0.2.0 → 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 +912 -620
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +829 -537
- 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
|
{
|
|
@@ -11498,14 +11471,12 @@ var SelectCheckbox = forwardRef34(
|
|
|
11498
11471
|
...restProps,
|
|
11499
11472
|
children: [
|
|
11500
11473
|
/* @__PURE__ */ jsx169(StyledSelectItemInputWrapper, { children: /* @__PURE__ */ jsx169(
|
|
11501
|
-
|
|
11474
|
+
Checkbox.Basic,
|
|
11502
11475
|
{
|
|
11503
|
-
|
|
11476
|
+
size,
|
|
11504
11477
|
checked: isItemSelected,
|
|
11505
11478
|
disabled: isDisabled,
|
|
11506
|
-
|
|
11507
|
-
tabIndex: -1,
|
|
11508
|
-
style: { pointerEvents: "none" }
|
|
11479
|
+
tabIndex: -1
|
|
11509
11480
|
}
|
|
11510
11481
|
) }),
|
|
11511
11482
|
/* @__PURE__ */ jsxs34(StyledSelectItemContent, { children: [
|
|
@@ -11598,9 +11569,347 @@ var SelectList = forwardRef35(
|
|
|
11598
11569
|
SelectList.displayName = "Select.List";
|
|
11599
11570
|
|
|
11600
11571
|
// src/components/Select/SelectRadio.tsx
|
|
11572
|
+
import { forwardRef as forwardRef37 } from "react";
|
|
11573
|
+
|
|
11574
|
+
// src/components/Radio/Radio.tsx
|
|
11601
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
|
|
11602
11803
|
import { jsx as jsx171, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
11603
|
-
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(
|
|
11604
11913
|
({ value, isDisabled = false, caption, children, ...restProps }, ref) => {
|
|
11605
11914
|
const { size, isSelected, onChange } = useSelectContext();
|
|
11606
11915
|
const { isItemSelected, handleClick, handleKeyDown } = createSelectItemHandlers({
|
|
@@ -11609,7 +11918,7 @@ var SelectRadio = forwardRef36(
|
|
|
11609
11918
|
isSelected,
|
|
11610
11919
|
onChange
|
|
11611
11920
|
});
|
|
11612
|
-
return /* @__PURE__ */
|
|
11921
|
+
return /* @__PURE__ */ jsxs37(
|
|
11613
11922
|
StyledSelectItem,
|
|
11614
11923
|
{
|
|
11615
11924
|
ref,
|
|
@@ -11624,19 +11933,17 @@ var SelectRadio = forwardRef36(
|
|
|
11624
11933
|
tabIndex: isDisabled ? -1 : 0,
|
|
11625
11934
|
...restProps,
|
|
11626
11935
|
children: [
|
|
11627
|
-
/* @__PURE__ */
|
|
11628
|
-
|
|
11936
|
+
/* @__PURE__ */ jsx172(StyledSelectItemInputWrapper, { children: /* @__PURE__ */ jsx172(
|
|
11937
|
+
Radio.Basic,
|
|
11629
11938
|
{
|
|
11630
|
-
|
|
11939
|
+
radioSize: size,
|
|
11631
11940
|
checked: isItemSelected,
|
|
11632
11941
|
disabled: isDisabled,
|
|
11633
|
-
|
|
11634
|
-
tabIndex: -1,
|
|
11635
|
-
style: { pointerEvents: "none" }
|
|
11942
|
+
tabIndex: -1
|
|
11636
11943
|
}
|
|
11637
11944
|
) }),
|
|
11638
|
-
/* @__PURE__ */
|
|
11639
|
-
/* @__PURE__ */
|
|
11945
|
+
/* @__PURE__ */ jsxs37(StyledSelectItemContent, { children: [
|
|
11946
|
+
/* @__PURE__ */ jsx172(
|
|
11640
11947
|
StyledSelectItemText,
|
|
11641
11948
|
{
|
|
11642
11949
|
as: "span",
|
|
@@ -11647,7 +11954,7 @@ var SelectRadio = forwardRef36(
|
|
|
11647
11954
|
children
|
|
11648
11955
|
}
|
|
11649
11956
|
),
|
|
11650
|
-
caption && /* @__PURE__ */
|
|
11957
|
+
caption && /* @__PURE__ */ jsx172(
|
|
11651
11958
|
StyledSelectItemCaption,
|
|
11652
11959
|
{
|
|
11653
11960
|
as: "span",
|
|
@@ -11674,7 +11981,7 @@ var Select2 = Object.assign(Select, {
|
|
|
11674
11981
|
|
|
11675
11982
|
// src/components/Step/Step.tsx
|
|
11676
11983
|
import { Context } from "radix-ui/internal";
|
|
11677
|
-
import { forwardRef as
|
|
11984
|
+
import { forwardRef as forwardRef39, useMemo as useMemo2 } from "react";
|
|
11678
11985
|
|
|
11679
11986
|
// src/components/Step/step.utils.ts
|
|
11680
11987
|
function calculateStepStatus(itemIndex, currentStep) {
|
|
@@ -11694,10 +12001,10 @@ function useStepItemStatus({
|
|
|
11694
12001
|
}
|
|
11695
12002
|
|
|
11696
12003
|
// src/components/Divider/Divider.tsx
|
|
11697
|
-
import { forwardRef as
|
|
12004
|
+
import { forwardRef as forwardRef38 } from "react";
|
|
11698
12005
|
|
|
11699
12006
|
// src/components/Divider/divider.styles.ts
|
|
11700
|
-
import
|
|
12007
|
+
import styled26 from "@emotion/styled";
|
|
11701
12008
|
var thicknessMap = {
|
|
11702
12009
|
normal: 1,
|
|
11703
12010
|
bold: 2,
|
|
@@ -11728,20 +12035,20 @@ var GetDividerStyles = (theme, orientation, thickness, variant) => {
|
|
|
11728
12035
|
alignSelf: "stretch"
|
|
11729
12036
|
};
|
|
11730
12037
|
};
|
|
11731
|
-
var StyledDivider =
|
|
12038
|
+
var StyledDivider = styled26("hr", {
|
|
11732
12039
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
11733
12040
|
})(({ theme, $orientation, $thickness, $variant }) => ({
|
|
11734
12041
|
...GetDividerStyles(theme, $orientation, $thickness, $variant)
|
|
11735
12042
|
}));
|
|
11736
|
-
var StyledVerticalDivider =
|
|
12043
|
+
var StyledVerticalDivider = styled26("div", {
|
|
11737
12044
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
11738
12045
|
})(({ theme, $thickness, $variant }) => ({
|
|
11739
12046
|
...GetDividerStyles(theme, "vertical", $thickness, $variant)
|
|
11740
12047
|
}));
|
|
11741
12048
|
|
|
11742
12049
|
// src/components/Divider/Divider.tsx
|
|
11743
|
-
import { jsx as
|
|
11744
|
-
var Divider =
|
|
12050
|
+
import { jsx as jsx173 } from "@emotion/react/jsx-runtime";
|
|
12051
|
+
var Divider = forwardRef38(
|
|
11745
12052
|
({
|
|
11746
12053
|
thickness = "normal",
|
|
11747
12054
|
orientation = "horizontal",
|
|
@@ -11750,7 +12057,7 @@ var Divider = forwardRef37(
|
|
|
11750
12057
|
...restProps
|
|
11751
12058
|
}, ref) => {
|
|
11752
12059
|
if (orientation === "vertical") {
|
|
11753
|
-
return /* @__PURE__ */
|
|
12060
|
+
return /* @__PURE__ */ jsx173(
|
|
11754
12061
|
StyledVerticalDivider,
|
|
11755
12062
|
{
|
|
11756
12063
|
ref,
|
|
@@ -11763,7 +12070,7 @@ var Divider = forwardRef37(
|
|
|
11763
12070
|
}
|
|
11764
12071
|
);
|
|
11765
12072
|
}
|
|
11766
|
-
return /* @__PURE__ */
|
|
12073
|
+
return /* @__PURE__ */ jsx173(
|
|
11767
12074
|
StyledDivider,
|
|
11768
12075
|
{
|
|
11769
12076
|
ref,
|
|
@@ -11779,8 +12086,8 @@ var Divider = forwardRef37(
|
|
|
11779
12086
|
Divider.displayName = "Divider";
|
|
11780
12087
|
|
|
11781
12088
|
// src/components/Step/step.styles.ts
|
|
11782
|
-
import
|
|
11783
|
-
var StyledCounterNumber =
|
|
12089
|
+
import styled27 from "@emotion/styled";
|
|
12090
|
+
var StyledCounterNumber = styled27("span", {
|
|
11784
12091
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
11785
12092
|
})(({ theme, $size }) => {
|
|
11786
12093
|
const counterStyleMap = {
|
|
@@ -11809,13 +12116,13 @@ var StyledCounterNumber = styled26("span", {
|
|
|
11809
12116
|
cursor: "default"
|
|
11810
12117
|
};
|
|
11811
12118
|
});
|
|
11812
|
-
var StyledStepRoot =
|
|
12119
|
+
var StyledStepRoot = styled27("div")(({ theme }) => ({
|
|
11813
12120
|
display: "flex",
|
|
11814
12121
|
alignItems: "flex-start",
|
|
11815
12122
|
width: "100%",
|
|
11816
12123
|
gap: theme.scheme.semantic.spacing[8]
|
|
11817
12124
|
}));
|
|
11818
|
-
var StyledStepItem =
|
|
12125
|
+
var StyledStepItem = styled27("div")(({ theme }) => ({
|
|
11819
12126
|
display: "flex",
|
|
11820
12127
|
flexDirection: "column",
|
|
11821
12128
|
alignItems: "center",
|
|
@@ -11842,7 +12149,7 @@ var StyledStepItem = styled26("div")(({ theme }) => ({
|
|
|
11842
12149
|
color: theme.color.semantic.object.assistive
|
|
11843
12150
|
}
|
|
11844
12151
|
}));
|
|
11845
|
-
var StyledStepContent =
|
|
12152
|
+
var StyledStepContent = styled27("div")(({ theme }) => ({
|
|
11846
12153
|
display: "flex",
|
|
11847
12154
|
alignItems: "flex-start",
|
|
11848
12155
|
alignSelf: "stretch",
|
|
@@ -11851,14 +12158,14 @@ var StyledStepContent = styled26("div")(({ theme }) => ({
|
|
|
11851
12158
|
width: "100%",
|
|
11852
12159
|
color: "inherit"
|
|
11853
12160
|
}));
|
|
11854
|
-
var StyledStepLabel =
|
|
12161
|
+
var StyledStepLabel = styled27(Label)(({ theme }) => ({
|
|
11855
12162
|
flex: "1 0 0",
|
|
11856
12163
|
paddingTop: theme.scheme.semantic.spacing[2],
|
|
11857
12164
|
whiteSpace: "nowrap"
|
|
11858
12165
|
}));
|
|
11859
12166
|
|
|
11860
12167
|
// src/components/Step/Step.tsx
|
|
11861
|
-
import { jsx as
|
|
12168
|
+
import { jsx as jsx174, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
11862
12169
|
var SIZE_TO_LABEL_SIZE = {
|
|
11863
12170
|
lg: "lg",
|
|
11864
12171
|
md: "md",
|
|
@@ -11866,23 +12173,23 @@ var SIZE_TO_LABEL_SIZE = {
|
|
|
11866
12173
|
xs: "xs"
|
|
11867
12174
|
};
|
|
11868
12175
|
var [StepProvider, useStepContext] = Context.createContext("Step");
|
|
11869
|
-
var StepRoot =
|
|
12176
|
+
var StepRoot = forwardRef39(
|
|
11870
12177
|
({ size = "md", current, children, ...restProps }, ref) => {
|
|
11871
12178
|
const contextValue = useMemo2(() => ({ size, currentStep: current }), [size, current]);
|
|
11872
|
-
return /* @__PURE__ */
|
|
12179
|
+
return /* @__PURE__ */ jsx174(StepProvider, { ...contextValue, children: /* @__PURE__ */ jsx174(StyledStepRoot, { ref, ...restProps, children }) });
|
|
11873
12180
|
}
|
|
11874
12181
|
);
|
|
11875
12182
|
StepRoot.displayName = "Step.Root";
|
|
11876
|
-
var StepItem =
|
|
12183
|
+
var StepItem = forwardRef39(
|
|
11877
12184
|
({ index, status: statusProp, children, ...restProps }, ref) => {
|
|
11878
12185
|
const { size, currentStep } = useStepContext("Step.Item");
|
|
11879
12186
|
const labelSize = SIZE_TO_LABEL_SIZE[size];
|
|
11880
12187
|
const status = useStepItemStatus({ itemIndex: index, currentStep, statusProp });
|
|
11881
|
-
return /* @__PURE__ */
|
|
11882
|
-
/* @__PURE__ */
|
|
11883
|
-
/* @__PURE__ */
|
|
11884
|
-
/* @__PURE__ */
|
|
11885
|
-
/* @__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 })
|
|
11886
12193
|
] })
|
|
11887
12194
|
] });
|
|
11888
12195
|
}
|
|
@@ -11895,10 +12202,10 @@ var Step = {
|
|
|
11895
12202
|
|
|
11896
12203
|
// src/components/Tab/tab.tsx
|
|
11897
12204
|
import { Tabs as TabPrimitive2 } from "radix-ui";
|
|
11898
|
-
import { forwardRef as
|
|
12205
|
+
import { forwardRef as forwardRef40 } from "react";
|
|
11899
12206
|
|
|
11900
12207
|
// src/components/Tab/tab.styles.ts
|
|
11901
|
-
import
|
|
12208
|
+
import styled28 from "@emotion/styled";
|
|
11902
12209
|
import { Tabs as TabPrimitive } from "radix-ui";
|
|
11903
12210
|
var createInteractionStyles2 = (theme, borderRadius, isReadonly) => {
|
|
11904
12211
|
const makeLayer = (state) => InteractionLayer({
|
|
@@ -11917,7 +12224,7 @@ var createInteractionStyles2 = (theme, borderRadius, isReadonly) => {
|
|
|
11917
12224
|
focusStyle: makeLayer("focus")
|
|
11918
12225
|
};
|
|
11919
12226
|
};
|
|
11920
|
-
var StyledTabList =
|
|
12227
|
+
var StyledTabList = styled28(TabPrimitive.List)(({
|
|
11921
12228
|
theme,
|
|
11922
12229
|
$variant
|
|
11923
12230
|
}) => {
|
|
@@ -11927,7 +12234,7 @@ var StyledTabList = styled27(TabPrimitive.List)(({
|
|
|
11927
12234
|
borderBottom: $variant === "header" ? `1px solid ${theme.color.semantic.stroke.assistive}` : "none"
|
|
11928
12235
|
};
|
|
11929
12236
|
});
|
|
11930
|
-
var StyledTabPrimitiveTrigger =
|
|
12237
|
+
var StyledTabPrimitiveTrigger = styled28(
|
|
11931
12238
|
TabPrimitive.Trigger
|
|
11932
12239
|
)(({ theme, $variant, $isDisabled, $isItemStretched }) => {
|
|
11933
12240
|
const borderRadius = $variant === "header" ? 0 : 6;
|
|
@@ -11971,17 +12278,17 @@ var StyledTabPrimitiveTrigger = styled27(
|
|
|
11971
12278
|
}
|
|
11972
12279
|
};
|
|
11973
12280
|
});
|
|
11974
|
-
var
|
|
12281
|
+
var StyledLabel3 = styled28(Label)(() => ({
|
|
11975
12282
|
color: "inherit",
|
|
11976
12283
|
cursor: "inherit",
|
|
11977
12284
|
whiteSpace: "nowrap"
|
|
11978
12285
|
}));
|
|
11979
12286
|
|
|
11980
12287
|
// src/components/Tab/tabContext.ts
|
|
11981
|
-
import { createContext as
|
|
11982
|
-
var TabContext =
|
|
12288
|
+
import { createContext as createContext7, useContext as useContext8 } from "react";
|
|
12289
|
+
var TabContext = createContext7(void 0);
|
|
11983
12290
|
var useTabContext = () => {
|
|
11984
|
-
const context =
|
|
12291
|
+
const context = useContext8(TabContext);
|
|
11985
12292
|
if (!context) {
|
|
11986
12293
|
throw new Error("Tab \uCEF4\uD3EC\uB10C\uD2B8\uB294 Tab.Root \uB0B4\uBD80\uC5D0\uC11C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4");
|
|
11987
12294
|
}
|
|
@@ -11989,22 +12296,22 @@ var useTabContext = () => {
|
|
|
11989
12296
|
};
|
|
11990
12297
|
|
|
11991
12298
|
// src/components/Tab/tab.tsx
|
|
11992
|
-
import { jsx as
|
|
11993
|
-
var TabRoot =
|
|
12299
|
+
import { jsx as jsx175, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
12300
|
+
var TabRoot = forwardRef40(
|
|
11994
12301
|
({ children, variant = "header", isItemStretched = false, ...rest }, ref) => {
|
|
11995
|
-
return /* @__PURE__ */
|
|
12302
|
+
return /* @__PURE__ */ jsx175(TabContext.Provider, { value: { variant, isItemStretched }, children: /* @__PURE__ */ jsx175(TabPrimitive2.Root, { ref, ...rest, children }) });
|
|
11996
12303
|
}
|
|
11997
12304
|
);
|
|
11998
12305
|
TabRoot.displayName = "Tab.Root";
|
|
11999
|
-
var TabList =
|
|
12306
|
+
var TabList = forwardRef40(({ children, ...rest }, ref) => {
|
|
12000
12307
|
const { variant } = useTabContext();
|
|
12001
|
-
return /* @__PURE__ */
|
|
12308
|
+
return /* @__PURE__ */ jsx175(StyledTabList, { ref, $variant: variant, ...rest, children });
|
|
12002
12309
|
});
|
|
12003
12310
|
TabList.displayName = "Tab.List";
|
|
12004
|
-
var TabTrigger =
|
|
12311
|
+
var TabTrigger = forwardRef40(
|
|
12005
12312
|
({ children, disabled = false, badge = "", ...rest }, ref) => {
|
|
12006
12313
|
const { variant, isItemStretched } = useTabContext();
|
|
12007
|
-
return /* @__PURE__ */
|
|
12314
|
+
return /* @__PURE__ */ jsxs39(
|
|
12008
12315
|
StyledTabPrimitiveTrigger,
|
|
12009
12316
|
{
|
|
12010
12317
|
disabled,
|
|
@@ -12014,17 +12321,17 @@ var TabTrigger = forwardRef39(
|
|
|
12014
12321
|
ref,
|
|
12015
12322
|
...rest,
|
|
12016
12323
|
children: [
|
|
12017
|
-
/* @__PURE__ */
|
|
12018
|
-
badge && /* @__PURE__ */
|
|
12324
|
+
/* @__PURE__ */ jsx175(StyledLabel3, { size: "md", weight: "bold", children }),
|
|
12325
|
+
badge && /* @__PURE__ */ jsx175(StyledLabel3, { size: "md", weight: "subtle", children: badge })
|
|
12019
12326
|
]
|
|
12020
12327
|
}
|
|
12021
12328
|
);
|
|
12022
12329
|
}
|
|
12023
12330
|
);
|
|
12024
12331
|
TabTrigger.displayName = "Tab.Trigger";
|
|
12025
|
-
var TabContent =
|
|
12332
|
+
var TabContent = forwardRef40(
|
|
12026
12333
|
({ children, ...rest }, ref) => {
|
|
12027
|
-
return /* @__PURE__ */
|
|
12334
|
+
return /* @__PURE__ */ jsx175(TabPrimitive2.Content, { ref, ...rest, children });
|
|
12028
12335
|
}
|
|
12029
12336
|
);
|
|
12030
12337
|
TabContent.displayName = "Tab.Content";
|
|
@@ -12036,17 +12343,17 @@ var Tab = {
|
|
|
12036
12343
|
};
|
|
12037
12344
|
|
|
12038
12345
|
// src/components/Title/Title.tsx
|
|
12039
|
-
import { forwardRef as
|
|
12346
|
+
import { forwardRef as forwardRef41 } from "react";
|
|
12040
12347
|
|
|
12041
12348
|
// src/components/Title/Title.style.ts
|
|
12042
|
-
import
|
|
12349
|
+
import styled29 from "@emotion/styled";
|
|
12043
12350
|
var titleStylesMap = {
|
|
12044
12351
|
lg: "semantic-textStyle-title-4",
|
|
12045
12352
|
md: "semantic-textStyle-title-3",
|
|
12046
12353
|
sm: "semantic-textStyle-title-2",
|
|
12047
12354
|
xs: "semantic-textStyle-title-1"
|
|
12048
12355
|
};
|
|
12049
|
-
var StyledTitle =
|
|
12356
|
+
var StyledTitle = styled29.div(({ theme, size, textAlign, color }) => {
|
|
12050
12357
|
const tokenKey = titleStylesMap[size];
|
|
12051
12358
|
const justifyContent = TEXT_ALIGN_MAPPING2[textAlign];
|
|
12052
12359
|
const BaseColor = color || theme.color.semantic.object.bolder;
|
|
@@ -12061,10 +12368,10 @@ var StyledTitle = styled28.div(({ theme, size, textAlign, color }) => {
|
|
|
12061
12368
|
});
|
|
12062
12369
|
|
|
12063
12370
|
// src/components/Title/Title.tsx
|
|
12064
|
-
import { jsx as
|
|
12065
|
-
var Title =
|
|
12371
|
+
import { jsx as jsx176 } from "@emotion/react/jsx-runtime";
|
|
12372
|
+
var Title = forwardRef41(
|
|
12066
12373
|
({ as, size = "md", textAlign = "left", color, children, ...props }, ref) => {
|
|
12067
|
-
return /* @__PURE__ */
|
|
12374
|
+
return /* @__PURE__ */ jsx176(StyledTitle, { as, ref, size, textAlign, color, ...props, children });
|
|
12068
12375
|
}
|
|
12069
12376
|
);
|
|
12070
12377
|
Title.displayName = "Title";
|
|
@@ -12073,9 +12380,9 @@ Title.displayName = "Title";
|
|
|
12073
12380
|
import { Tooltip as TooltipPrimitive2 } from "radix-ui";
|
|
12074
12381
|
|
|
12075
12382
|
// src/components/Tooltip/tooltip.styles.ts
|
|
12076
|
-
import
|
|
12383
|
+
import styled30 from "@emotion/styled";
|
|
12077
12384
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
12078
|
-
var StyledTooltipContent =
|
|
12385
|
+
var StyledTooltipContent = styled30(TooltipPrimitive.Content)(({ theme }) => ({
|
|
12079
12386
|
backgroundColor: theme.color.semantic.fill.boldest,
|
|
12080
12387
|
color: theme.color.semantic.object.inverse.boldest,
|
|
12081
12388
|
padding: `${theme.scheme.semantic.spacing[6]} ${theme.scheme.semantic.spacing[10]}`,
|
|
@@ -12114,13 +12421,13 @@ var StyledTooltipContent = styled29(TooltipPrimitive.Content)(({ theme }) => ({
|
|
|
12114
12421
|
}));
|
|
12115
12422
|
|
|
12116
12423
|
// src/components/Tooltip/Tooltip.tsx
|
|
12117
|
-
import { jsx as
|
|
12424
|
+
import { jsx as jsx177 } from "@emotion/react/jsx-runtime";
|
|
12118
12425
|
var TooltipRoot = ({ children, delayDuration = 0, ...radixProps }) => {
|
|
12119
|
-
return /* @__PURE__ */
|
|
12426
|
+
return /* @__PURE__ */ jsx177(TooltipPrimitive2.Root, { delayDuration, ...radixProps, children });
|
|
12120
12427
|
};
|
|
12121
12428
|
TooltipRoot.displayName = "Tooltip.Root";
|
|
12122
12429
|
var TooltipTrigger = ({ children, asChild = true, ...restProps }) => {
|
|
12123
|
-
return /* @__PURE__ */
|
|
12430
|
+
return /* @__PURE__ */ jsx177(TooltipPrimitive2.Trigger, { asChild, ...restProps, children });
|
|
12124
12431
|
};
|
|
12125
12432
|
TooltipTrigger.displayName = "Tooltip.Trigger";
|
|
12126
12433
|
var TooltipContent = ({
|
|
@@ -12131,7 +12438,7 @@ var TooltipContent = ({
|
|
|
12131
12438
|
avoidCollisions = true,
|
|
12132
12439
|
...restProps
|
|
12133
12440
|
}) => {
|
|
12134
|
-
return /* @__PURE__ */
|
|
12441
|
+
return /* @__PURE__ */ jsx177(TooltipPrimitive2.Portal, { children: /* @__PURE__ */ jsx177(
|
|
12135
12442
|
StyledTooltipContent,
|
|
12136
12443
|
{
|
|
12137
12444
|
side,
|
|
@@ -12155,7 +12462,7 @@ var Tooltip = {
|
|
|
12155
12462
|
import { useRef as useRef3 } from "react";
|
|
12156
12463
|
|
|
12157
12464
|
// src/components/Uploader/uploader.styles.ts
|
|
12158
|
-
import
|
|
12465
|
+
import styled31 from "@emotion/styled";
|
|
12159
12466
|
var uploaderFileStylesMap = (theme, disabled, isLoading, isDragging) => {
|
|
12160
12467
|
const stylesByState = {
|
|
12161
12468
|
rest: {
|
|
@@ -12224,7 +12531,7 @@ var interactionStyles6 = (theme, isDisabled) => {
|
|
|
12224
12531
|
}
|
|
12225
12532
|
};
|
|
12226
12533
|
};
|
|
12227
|
-
var FileDropZoneDiv =
|
|
12534
|
+
var FileDropZoneDiv = styled31.div(
|
|
12228
12535
|
({ theme, $isDisabled, $isLoading, $isDragging }) => {
|
|
12229
12536
|
const { borderColor, textColor, bgColor } = uploaderFileStylesMap(
|
|
12230
12537
|
theme,
|
|
@@ -12268,18 +12575,18 @@ var FileDropZoneDiv = styled30.div(
|
|
|
12268
12575
|
};
|
|
12269
12576
|
}
|
|
12270
12577
|
);
|
|
12271
|
-
var FileSpan =
|
|
12578
|
+
var FileSpan = styled31.span(({ theme }) => {
|
|
12272
12579
|
return {
|
|
12273
12580
|
textAlign: "center",
|
|
12274
12581
|
...theme.textStyle["semantic-textStyle-body-2xs-bold"]
|
|
12275
12582
|
};
|
|
12276
12583
|
});
|
|
12277
|
-
var LoadingIcon =
|
|
12584
|
+
var LoadingIcon = styled31(Icon)(({ theme }) => {
|
|
12278
12585
|
return {
|
|
12279
12586
|
color: theme.color.semantic.object.alternative
|
|
12280
12587
|
};
|
|
12281
12588
|
});
|
|
12282
|
-
var FlexRowDiv =
|
|
12589
|
+
var FlexRowDiv = styled31.div(({ theme }) => {
|
|
12283
12590
|
return {
|
|
12284
12591
|
display: "flex",
|
|
12285
12592
|
justifyContent: "center",
|
|
@@ -12287,7 +12594,7 @@ var FlexRowDiv = styled30.div(({ theme }) => {
|
|
|
12287
12594
|
gap: theme.scheme.semantic.spacing[8]
|
|
12288
12595
|
};
|
|
12289
12596
|
});
|
|
12290
|
-
var ImageDropZoneButton =
|
|
12597
|
+
var ImageDropZoneButton = styled31.button(
|
|
12291
12598
|
({ theme, $isDisabled, $isLoading }) => {
|
|
12292
12599
|
const interaction = ($isDisabled || !$isLoading) && interactionStyles6(theme, $isDisabled);
|
|
12293
12600
|
return {
|
|
@@ -12326,17 +12633,17 @@ var ImageDropZoneButton = styled30.button(
|
|
|
12326
12633
|
};
|
|
12327
12634
|
}
|
|
12328
12635
|
);
|
|
12329
|
-
var AddIcon =
|
|
12636
|
+
var AddIcon = styled31(Icon)(({ theme, $isDisabled }) => {
|
|
12330
12637
|
return {
|
|
12331
12638
|
color: $isDisabled ? theme.color.semantic.object.subtle : theme.color.semantic.object.alternative
|
|
12332
12639
|
};
|
|
12333
12640
|
});
|
|
12334
|
-
var ImageLabel =
|
|
12641
|
+
var ImageLabel = styled31(Label)(({ theme, $isDisabled }) => {
|
|
12335
12642
|
return {
|
|
12336
12643
|
color: $isDisabled ? theme.color.semantic.object.subtle : theme.color.semantic.object.neutral
|
|
12337
12644
|
};
|
|
12338
12645
|
});
|
|
12339
|
-
var HiddenInput =
|
|
12646
|
+
var HiddenInput = styled31.input(() => {
|
|
12340
12647
|
return {
|
|
12341
12648
|
display: "none"
|
|
12342
12649
|
};
|
|
@@ -12470,22 +12777,22 @@ var useUploader = (options) => {
|
|
|
12470
12777
|
};
|
|
12471
12778
|
|
|
12472
12779
|
// src/components/Uploader/Uploader.tsx
|
|
12473
|
-
import { Fragment as Fragment6, jsx as
|
|
12780
|
+
import { Fragment as Fragment6, jsx as jsx178, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
12474
12781
|
var defaultMessages = {
|
|
12475
|
-
rest: /* @__PURE__ */
|
|
12782
|
+
rest: /* @__PURE__ */ jsxs40(Fragment6, { children: [
|
|
12476
12783
|
"\uD30C\uC77C\uC744 \uB4DC\uB798\uADF8&\uB4DC\uB86D\uD558\uAC70\uB098, \uC9C1\uC811 \uC120\uD0DD\uD574 \uC5C5\uB85C\uB4DC\uD574\uC8FC\uC138\uC694.",
|
|
12477
|
-
/* @__PURE__ */
|
|
12784
|
+
/* @__PURE__ */ jsx178("br", {}),
|
|
12478
12785
|
" \uCD5C\uB300 100MB \uC774\uD558\uC758 PDF \uD30C\uC77C\uC744 \uC5C5\uB85C\uB4DC\uD560 \uC218 \uC788\uC5B4\uC694."
|
|
12479
12786
|
] }),
|
|
12480
|
-
loading: /* @__PURE__ */
|
|
12787
|
+
loading: /* @__PURE__ */ jsxs40(Fragment6, { children: [
|
|
12481
12788
|
"\uD30C\uC77C\uC744 \uC5C5\uB85C\uB4DC\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4. ",
|
|
12482
|
-
/* @__PURE__ */
|
|
12789
|
+
/* @__PURE__ */ jsx178("br", {}),
|
|
12483
12790
|
"\uC7A0\uC2DC\uB9CC \uAE30\uB2E4\uB824\uC8FC\uC138\uC694..."
|
|
12484
12791
|
] }),
|
|
12485
|
-
disabled: /* @__PURE__ */
|
|
12792
|
+
disabled: /* @__PURE__ */ jsx178(Fragment6, { children: "\uAC00\uB2A5\uD55C \uCD5C\uB300 \uC6A9\uB7C9\uC5D0 \uB3C4\uB2EC\uD588\uC5B4\uC694." })
|
|
12486
12793
|
};
|
|
12487
12794
|
var CustomBorderSVG = () => {
|
|
12488
|
-
return /* @__PURE__ */
|
|
12795
|
+
return /* @__PURE__ */ jsx178("svg", { children: /* @__PURE__ */ jsx178("rect", {}) });
|
|
12489
12796
|
};
|
|
12490
12797
|
var UploaderFileButton = ({
|
|
12491
12798
|
isLoading,
|
|
@@ -12496,15 +12803,15 @@ var UploaderFileButton = ({
|
|
|
12496
12803
|
helperLabel
|
|
12497
12804
|
}) => {
|
|
12498
12805
|
if (isLoading && !isDisabled) {
|
|
12499
|
-
return /* @__PURE__ */
|
|
12500
|
-
/* @__PURE__ */
|
|
12501
|
-
/* @__PURE__ */
|
|
12806
|
+
return /* @__PURE__ */ jsxs40(Fragment6, { children: [
|
|
12807
|
+
/* @__PURE__ */ jsx178(LoadingIcon, { name: "spinner", size: "2xl" }),
|
|
12808
|
+
/* @__PURE__ */ jsxs40(FlexRowDiv, { children: [
|
|
12502
12809
|
helperLabel,
|
|
12503
12810
|
cancelButton
|
|
12504
12811
|
] })
|
|
12505
12812
|
] });
|
|
12506
12813
|
}
|
|
12507
|
-
return uploadButton ? uploadButton(triggerUpload) : /* @__PURE__ */
|
|
12814
|
+
return uploadButton ? uploadButton(triggerUpload) : /* @__PURE__ */ jsx178(Fragment6, {});
|
|
12508
12815
|
};
|
|
12509
12816
|
var UploaderFile = ({
|
|
12510
12817
|
accept,
|
|
@@ -12542,7 +12849,7 @@ var UploaderFile = ({
|
|
|
12542
12849
|
const baseBodyText = isLoading ? messages.loading : messages.rest;
|
|
12543
12850
|
const bodyText = isDisabled ? messages.disabled : baseBodyText;
|
|
12544
12851
|
const triggerUpload = () => !isDisabled && !isLoading && inputRef.current?.click();
|
|
12545
|
-
return /* @__PURE__ */
|
|
12852
|
+
return /* @__PURE__ */ jsxs40(
|
|
12546
12853
|
FileDropZoneDiv,
|
|
12547
12854
|
{
|
|
12548
12855
|
onDragEnter: handleDragEnter,
|
|
@@ -12553,9 +12860,9 @@ var UploaderFile = ({
|
|
|
12553
12860
|
$isDisabled: isDisabled,
|
|
12554
12861
|
$isLoading: isLoading,
|
|
12555
12862
|
children: [
|
|
12556
|
-
/* @__PURE__ */
|
|
12557
|
-
/* @__PURE__ */
|
|
12558
|
-
/* @__PURE__ */
|
|
12863
|
+
/* @__PURE__ */ jsx178(CustomBorderSVG, {}),
|
|
12864
|
+
/* @__PURE__ */ jsx178(FileSpan, { children: bodyText }),
|
|
12865
|
+
/* @__PURE__ */ jsx178(
|
|
12559
12866
|
UploaderFileButton,
|
|
12560
12867
|
{
|
|
12561
12868
|
triggerUpload,
|
|
@@ -12566,7 +12873,7 @@ var UploaderFile = ({
|
|
|
12566
12873
|
helperLabel
|
|
12567
12874
|
}
|
|
12568
12875
|
),
|
|
12569
|
-
/* @__PURE__ */
|
|
12876
|
+
/* @__PURE__ */ jsx178(
|
|
12570
12877
|
HiddenInput,
|
|
12571
12878
|
{
|
|
12572
12879
|
ref: inputRef,
|
|
@@ -12589,17 +12896,17 @@ var UploaderImageButton = ({
|
|
|
12589
12896
|
cancelButton
|
|
12590
12897
|
}) => {
|
|
12591
12898
|
if (!isDisabled && isLoading) {
|
|
12592
|
-
return /* @__PURE__ */
|
|
12593
|
-
/* @__PURE__ */
|
|
12594
|
-
/* @__PURE__ */
|
|
12595
|
-
/* @__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 }),
|
|
12596
12903
|
cancelButton
|
|
12597
12904
|
] })
|
|
12598
12905
|
] });
|
|
12599
12906
|
}
|
|
12600
|
-
return /* @__PURE__ */
|
|
12601
|
-
/* @__PURE__ */
|
|
12602
|
-
/* @__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 })
|
|
12603
12910
|
] });
|
|
12604
12911
|
};
|
|
12605
12912
|
var UploaderImage = ({
|
|
@@ -12628,9 +12935,9 @@ var UploaderImage = ({
|
|
|
12628
12935
|
onError
|
|
12629
12936
|
});
|
|
12630
12937
|
const handleClick = () => !isDisabled && !isLoading && inputRef.current?.click();
|
|
12631
|
-
return /* @__PURE__ */
|
|
12632
|
-
/* @__PURE__ */
|
|
12633
|
-
/* @__PURE__ */
|
|
12938
|
+
return /* @__PURE__ */ jsxs40(ImageDropZoneButton, { $isDisabled: isDisabled, $isLoading: isLoading, onClick: handleClick, children: [
|
|
12939
|
+
/* @__PURE__ */ jsx178(CustomBorderSVG, {}),
|
|
12940
|
+
/* @__PURE__ */ jsx178(
|
|
12634
12941
|
UploaderImageButton,
|
|
12635
12942
|
{
|
|
12636
12943
|
isDisabled,
|
|
@@ -12640,7 +12947,7 @@ var UploaderImage = ({
|
|
|
12640
12947
|
cancelButton
|
|
12641
12948
|
}
|
|
12642
12949
|
),
|
|
12643
|
-
/* @__PURE__ */
|
|
12950
|
+
/* @__PURE__ */ jsx178(
|
|
12644
12951
|
HiddenInput,
|
|
12645
12952
|
{
|
|
12646
12953
|
ref: inputRef,
|
|
@@ -12664,13 +12971,13 @@ import ReactDOM2 from "react-dom";
|
|
|
12664
12971
|
|
|
12665
12972
|
// ../../node_modules/@radix-ui/react-context/dist/index.mjs
|
|
12666
12973
|
import * as React from "react";
|
|
12667
|
-
import { jsx as
|
|
12974
|
+
import { jsx as jsx179 } from "react/jsx-runtime";
|
|
12668
12975
|
function createContext22(rootComponentName, defaultContext) {
|
|
12669
12976
|
const Context2 = React.createContext(defaultContext);
|
|
12670
12977
|
const Provider = (props) => {
|
|
12671
12978
|
const { children, ...context } = props;
|
|
12672
12979
|
const value = React.useMemo(() => context, Object.values(context));
|
|
12673
|
-
return /* @__PURE__ */
|
|
12980
|
+
return /* @__PURE__ */ jsx179(Context2.Provider, { value, children });
|
|
12674
12981
|
};
|
|
12675
12982
|
Provider.displayName = rootComponentName + "Provider";
|
|
12676
12983
|
function useContext22(consumerName) {
|
|
@@ -12691,7 +12998,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
12691
12998
|
const { scope, children, ...context } = props;
|
|
12692
12999
|
const Context2 = scope?.[scopeName]?.[index] || BaseContext;
|
|
12693
13000
|
const value = React.useMemo(() => context, Object.values(context));
|
|
12694
|
-
return /* @__PURE__ */
|
|
13001
|
+
return /* @__PURE__ */ jsx179(Context2.Provider, { value, children });
|
|
12695
13002
|
};
|
|
12696
13003
|
Provider.displayName = rootComponentName + "Provider";
|
|
12697
13004
|
function useContext22(consumerName, scope) {
|
|
@@ -12795,7 +13102,7 @@ function useComposedRefs(...refs) {
|
|
|
12795
13102
|
}
|
|
12796
13103
|
|
|
12797
13104
|
// ../../node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
12798
|
-
import { Fragment as Fragment22, jsx as
|
|
13105
|
+
import { Fragment as Fragment22, jsx as jsx180 } from "react/jsx-runtime";
|
|
12799
13106
|
// @__NO_SIDE_EFFECTS__
|
|
12800
13107
|
function createSlot(ownerName) {
|
|
12801
13108
|
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
@@ -12813,9 +13120,9 @@ function createSlot(ownerName) {
|
|
|
12813
13120
|
return child;
|
|
12814
13121
|
}
|
|
12815
13122
|
});
|
|
12816
|
-
return /* @__PURE__ */
|
|
13123
|
+
return /* @__PURE__ */ jsx180(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
|
|
12817
13124
|
}
|
|
12818
|
-
return /* @__PURE__ */
|
|
13125
|
+
return /* @__PURE__ */ jsx180(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
12819
13126
|
});
|
|
12820
13127
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
12821
13128
|
return Slot2;
|
|
@@ -12880,7 +13187,7 @@ function getElementRef(element) {
|
|
|
12880
13187
|
}
|
|
12881
13188
|
|
|
12882
13189
|
// ../../node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
12883
|
-
import { jsx as
|
|
13190
|
+
import { jsx as jsx181 } from "react/jsx-runtime";
|
|
12884
13191
|
var NODES = [
|
|
12885
13192
|
"a",
|
|
12886
13193
|
"button",
|
|
@@ -12908,7 +13215,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
12908
13215
|
if (typeof window !== "undefined") {
|
|
12909
13216
|
window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
|
|
12910
13217
|
}
|
|
12911
|
-
return /* @__PURE__ */
|
|
13218
|
+
return /* @__PURE__ */ jsx181(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
12912
13219
|
});
|
|
12913
13220
|
Node2.displayName = `Primitive.${node}`;
|
|
12914
13221
|
return { ...primitive, [node]: Node2 };
|
|
@@ -12994,7 +13301,7 @@ function isFunction(value) {
|
|
|
12994
13301
|
|
|
12995
13302
|
// ../../node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
12996
13303
|
import * as React7 from "react";
|
|
12997
|
-
import { jsx as
|
|
13304
|
+
import { jsx as jsx182 } from "react/jsx-runtime";
|
|
12998
13305
|
var DirectionContext = React7.createContext(void 0);
|
|
12999
13306
|
function useDirection(localDir) {
|
|
13000
13307
|
const globalDir = React7.useContext(DirectionContext);
|
|
@@ -13141,7 +13448,7 @@ function useId6(deterministicId) {
|
|
|
13141
13448
|
|
|
13142
13449
|
// ../../node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
13143
13450
|
import React10 from "react";
|
|
13144
|
-
import { jsx as
|
|
13451
|
+
import { jsx as jsx183 } from "react/jsx-runtime";
|
|
13145
13452
|
import React24 from "react";
|
|
13146
13453
|
import { jsx as jsx210 } from "react/jsx-runtime";
|
|
13147
13454
|
function createCollection(name) {
|
|
@@ -13155,7 +13462,7 @@ function createCollection(name) {
|
|
|
13155
13462
|
const { scope, children } = props;
|
|
13156
13463
|
const ref = React10.useRef(null);
|
|
13157
13464
|
const itemMap = React10.useRef(/* @__PURE__ */ new Map()).current;
|
|
13158
|
-
return /* @__PURE__ */
|
|
13465
|
+
return /* @__PURE__ */ jsx183(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
13159
13466
|
};
|
|
13160
13467
|
CollectionProvider.displayName = PROVIDER_NAME;
|
|
13161
13468
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
@@ -13165,7 +13472,7 @@ function createCollection(name) {
|
|
|
13165
13472
|
const { scope, children } = props;
|
|
13166
13473
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
13167
13474
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
13168
|
-
return /* @__PURE__ */
|
|
13475
|
+
return /* @__PURE__ */ jsx183(CollectionSlotImpl, { ref: composedRefs, children });
|
|
13169
13476
|
}
|
|
13170
13477
|
);
|
|
13171
13478
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
@@ -13182,7 +13489,7 @@ function createCollection(name) {
|
|
|
13182
13489
|
context.itemMap.set(ref, { ref, ...itemData });
|
|
13183
13490
|
return () => void context.itemMap.delete(ref);
|
|
13184
13491
|
});
|
|
13185
|
-
return /* @__PURE__ */
|
|
13492
|
+
return /* @__PURE__ */ jsx183(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
13186
13493
|
}
|
|
13187
13494
|
);
|
|
13188
13495
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
@@ -13236,7 +13543,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
13236
13543
|
}
|
|
13237
13544
|
|
|
13238
13545
|
// ../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
13239
|
-
import { jsx as
|
|
13546
|
+
import { jsx as jsx184 } from "react/jsx-runtime";
|
|
13240
13547
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
13241
13548
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
13242
13549
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
@@ -13324,7 +13631,7 @@ var DismissableLayer = React13.forwardRef(
|
|
|
13324
13631
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
13325
13632
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
13326
13633
|
}, []);
|
|
13327
|
-
return /* @__PURE__ */
|
|
13634
|
+
return /* @__PURE__ */ jsx184(
|
|
13328
13635
|
Primitive.div,
|
|
13329
13636
|
{
|
|
13330
13637
|
...layerProps,
|
|
@@ -13358,7 +13665,7 @@ var DismissableLayerBranch = React13.forwardRef((props, forwardedRef) => {
|
|
|
13358
13665
|
};
|
|
13359
13666
|
}
|
|
13360
13667
|
}, [context.branches]);
|
|
13361
|
-
return /* @__PURE__ */
|
|
13668
|
+
return /* @__PURE__ */ jsx184(Primitive.div, { ...props, ref: composedRefs });
|
|
13362
13669
|
});
|
|
13363
13670
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
13364
13671
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -13455,7 +13762,7 @@ function usePrevious(value) {
|
|
|
13455
13762
|
|
|
13456
13763
|
// ../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
13457
13764
|
import * as React15 from "react";
|
|
13458
|
-
import { jsx as
|
|
13765
|
+
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
13459
13766
|
var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
13460
13767
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
13461
13768
|
position: "absolute",
|
|
@@ -13472,7 +13779,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
13472
13779
|
var NAME = "VisuallyHidden";
|
|
13473
13780
|
var VisuallyHidden = React15.forwardRef(
|
|
13474
13781
|
(props, forwardedRef) => {
|
|
13475
|
-
return /* @__PURE__ */
|
|
13782
|
+
return /* @__PURE__ */ jsx185(
|
|
13476
13783
|
Primitive.span,
|
|
13477
13784
|
{
|
|
13478
13785
|
...props,
|
|
@@ -13486,7 +13793,7 @@ VisuallyHidden.displayName = NAME;
|
|
|
13486
13793
|
var Root = VisuallyHidden;
|
|
13487
13794
|
|
|
13488
13795
|
// ../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs
|
|
13489
|
-
import { Fragment as Fragment8, jsx as
|
|
13796
|
+
import { Fragment as Fragment8, jsx as jsx186, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
13490
13797
|
var NAVIGATION_MENU_NAME = "NavigationMenu";
|
|
13491
13798
|
var [Collection, useCollection, createCollectionScope] = createCollection(NAVIGATION_MENU_NAME);
|
|
13492
13799
|
var [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME);
|
|
@@ -13568,7 +13875,7 @@ var NavigationMenu = React16.forwardRef(
|
|
|
13568
13875
|
window.clearTimeout(skipDelayTimerRef.current);
|
|
13569
13876
|
};
|
|
13570
13877
|
}, []);
|
|
13571
|
-
return /* @__PURE__ */
|
|
13878
|
+
return /* @__PURE__ */ jsx186(
|
|
13572
13879
|
NavigationMenuProvider,
|
|
13573
13880
|
{
|
|
13574
13881
|
scope: __scopeNavigationMenu,
|
|
@@ -13592,7 +13899,7 @@ var NavigationMenu = React16.forwardRef(
|
|
|
13592
13899
|
setValue((prevValue) => prevValue === itemValue ? "" : itemValue);
|
|
13593
13900
|
},
|
|
13594
13901
|
onItemDismiss: () => setValue(""),
|
|
13595
|
-
children: /* @__PURE__ */
|
|
13902
|
+
children: /* @__PURE__ */ jsx186(
|
|
13596
13903
|
Primitive.nav,
|
|
13597
13904
|
{
|
|
13598
13905
|
"aria-label": "Main",
|
|
@@ -13625,7 +13932,7 @@ var NavigationMenuSub = React16.forwardRef(
|
|
|
13625
13932
|
defaultProp: defaultValue ?? "",
|
|
13626
13933
|
caller: SUB_NAME
|
|
13627
13934
|
});
|
|
13628
|
-
return /* @__PURE__ */
|
|
13935
|
+
return /* @__PURE__ */ jsx186(
|
|
13629
13936
|
NavigationMenuProvider,
|
|
13630
13937
|
{
|
|
13631
13938
|
scope: __scopeNavigationMenu,
|
|
@@ -13637,7 +13944,7 @@ var NavigationMenuSub = React16.forwardRef(
|
|
|
13637
13944
|
onTriggerEnter: (itemValue) => setValue(itemValue),
|
|
13638
13945
|
onItemSelect: (itemValue) => setValue(itemValue),
|
|
13639
13946
|
onItemDismiss: () => setValue(""),
|
|
13640
|
-
children: /* @__PURE__ */
|
|
13947
|
+
children: /* @__PURE__ */ jsx186(Primitive.div, { "data-orientation": orientation, ...subProps, ref: forwardedRef })
|
|
13641
13948
|
}
|
|
13642
13949
|
);
|
|
13643
13950
|
}
|
|
@@ -13662,7 +13969,7 @@ var NavigationMenuProvider = (props) => {
|
|
|
13662
13969
|
const [viewport, setViewport] = React16.useState(null);
|
|
13663
13970
|
const [viewportContent, setViewportContent] = React16.useState(/* @__PURE__ */ new Map());
|
|
13664
13971
|
const [indicatorTrack, setIndicatorTrack] = React16.useState(null);
|
|
13665
|
-
return /* @__PURE__ */
|
|
13972
|
+
return /* @__PURE__ */ jsx186(
|
|
13666
13973
|
NavigationMenuProviderImpl,
|
|
13667
13974
|
{
|
|
13668
13975
|
scope,
|
|
@@ -13696,7 +14003,7 @@ var NavigationMenuProvider = (props) => {
|
|
|
13696
14003
|
return new Map(prevContent);
|
|
13697
14004
|
});
|
|
13698
14005
|
}, []),
|
|
13699
|
-
children: /* @__PURE__ */
|
|
14006
|
+
children: /* @__PURE__ */ jsx186(Collection.Provider, { scope, children: /* @__PURE__ */ jsx186(ViewportContentProvider, { scope, items: viewportContent, children }) })
|
|
13700
14007
|
}
|
|
13701
14008
|
);
|
|
13702
14009
|
};
|
|
@@ -13705,8 +14012,8 @@ var NavigationMenuList = React16.forwardRef(
|
|
|
13705
14012
|
(props, forwardedRef) => {
|
|
13706
14013
|
const { __scopeNavigationMenu, ...listProps } = props;
|
|
13707
14014
|
const context = useNavigationMenuContext(LIST_NAME, __scopeNavigationMenu);
|
|
13708
|
-
const list = /* @__PURE__ */
|
|
13709
|
-
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 }) });
|
|
13710
14017
|
}
|
|
13711
14018
|
);
|
|
13712
14019
|
NavigationMenuList.displayName = LIST_NAME;
|
|
@@ -13736,7 +14043,7 @@ var NavigationMenuItem = React16.forwardRef(
|
|
|
13736
14043
|
if (candidates.length) restoreContentTabOrderRef.current = removeFromTabOrder(candidates);
|
|
13737
14044
|
}
|
|
13738
14045
|
}, []);
|
|
13739
|
-
return /* @__PURE__ */
|
|
14046
|
+
return /* @__PURE__ */ jsx186(
|
|
13740
14047
|
NavigationMenuItemContextProvider,
|
|
13741
14048
|
{
|
|
13742
14049
|
scope: __scopeNavigationMenu,
|
|
@@ -13749,7 +14056,7 @@ var NavigationMenuItem = React16.forwardRef(
|
|
|
13749
14056
|
onFocusProxyEnter: handleContentEntry,
|
|
13750
14057
|
onRootContentClose: handleContentExit,
|
|
13751
14058
|
onContentFocusOutside: handleContentExit,
|
|
13752
|
-
children: /* @__PURE__ */
|
|
14059
|
+
children: /* @__PURE__ */ jsx186(Primitive.li, { ...itemProps, ref: forwardedRef })
|
|
13753
14060
|
}
|
|
13754
14061
|
);
|
|
13755
14062
|
}
|
|
@@ -13767,8 +14074,8 @@ var NavigationMenuTrigger = React16.forwardRef((props, forwardedRef) => {
|
|
|
13767
14074
|
const hasPointerMoveOpenedRef = React16.useRef(false);
|
|
13768
14075
|
const wasClickCloseRef = React16.useRef(false);
|
|
13769
14076
|
const open = itemContext.value === context.value;
|
|
13770
|
-
return /* @__PURE__ */
|
|
13771
|
-
/* @__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(
|
|
13772
14079
|
Primitive.button,
|
|
13773
14080
|
{
|
|
13774
14081
|
id: triggerId,
|
|
@@ -13814,8 +14121,8 @@ var NavigationMenuTrigger = React16.forwardRef((props, forwardedRef) => {
|
|
|
13814
14121
|
})
|
|
13815
14122
|
}
|
|
13816
14123
|
) }) }),
|
|
13817
|
-
open && /* @__PURE__ */
|
|
13818
|
-
/* @__PURE__ */
|
|
14124
|
+
open && /* @__PURE__ */ jsxs41(Fragment8, { children: [
|
|
14125
|
+
/* @__PURE__ */ jsx186(
|
|
13819
14126
|
Root,
|
|
13820
14127
|
{
|
|
13821
14128
|
"aria-hidden": true,
|
|
@@ -13832,7 +14139,7 @@ var NavigationMenuTrigger = React16.forwardRef((props, forwardedRef) => {
|
|
|
13832
14139
|
}
|
|
13833
14140
|
}
|
|
13834
14141
|
),
|
|
13835
|
-
context.viewport && /* @__PURE__ */
|
|
14142
|
+
context.viewport && /* @__PURE__ */ jsx186("span", { "aria-owns": contentId })
|
|
13836
14143
|
] })
|
|
13837
14144
|
] });
|
|
13838
14145
|
});
|
|
@@ -13842,7 +14149,7 @@ var LINK_SELECT = "navigationMenu.linkSelect";
|
|
|
13842
14149
|
var NavigationMenuLink = React16.forwardRef(
|
|
13843
14150
|
(props, forwardedRef) => {
|
|
13844
14151
|
const { __scopeNavigationMenu, active, onSelect, ...linkProps } = props;
|
|
13845
|
-
return /* @__PURE__ */
|
|
14152
|
+
return /* @__PURE__ */ jsx186(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsx186(
|
|
13846
14153
|
Primitive.a,
|
|
13847
14154
|
{
|
|
13848
14155
|
"data-active": active ? "" : void 0,
|
|
@@ -13880,7 +14187,7 @@ var NavigationMenuIndicator = React16.forwardRef((props, forwardedRef) => {
|
|
|
13880
14187
|
const context = useNavigationMenuContext(INDICATOR_NAME, props.__scopeNavigationMenu);
|
|
13881
14188
|
const isVisible = Boolean(context.value);
|
|
13882
14189
|
return context.indicatorTrack ? ReactDOM2.createPortal(
|
|
13883
|
-
/* @__PURE__ */
|
|
14190
|
+
/* @__PURE__ */ jsx186(Presence, { present: forceMount || isVisible, children: /* @__PURE__ */ jsx186(NavigationMenuIndicatorImpl, { ...indicatorProps, ref: forwardedRef }) }),
|
|
13884
14191
|
context.indicatorTrack
|
|
13885
14192
|
) : null;
|
|
13886
14193
|
});
|
|
@@ -13910,7 +14217,7 @@ var NavigationMenuIndicatorImpl = React16.forwardRef((props, forwardedRef) => {
|
|
|
13910
14217
|
};
|
|
13911
14218
|
useResizeObserver(activeTrigger, handlePositionChange);
|
|
13912
14219
|
useResizeObserver(context.indicatorTrack, handlePositionChange);
|
|
13913
|
-
return position ? /* @__PURE__ */
|
|
14220
|
+
return position ? /* @__PURE__ */ jsx186(
|
|
13914
14221
|
Primitive.div,
|
|
13915
14222
|
{
|
|
13916
14223
|
"aria-hidden": true,
|
|
@@ -13950,7 +14257,7 @@ var NavigationMenuContent = React16.forwardRef((props, forwardedRef) => {
|
|
|
13950
14257
|
onRootContentClose: itemContext.onRootContentClose,
|
|
13951
14258
|
...contentProps
|
|
13952
14259
|
};
|
|
13953
|
-
return !context.viewport ? /* @__PURE__ */
|
|
14260
|
+
return !context.viewport ? /* @__PURE__ */ jsx186(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx186(
|
|
13954
14261
|
NavigationMenuContentImpl,
|
|
13955
14262
|
{
|
|
13956
14263
|
"data-state": getOpenState(open),
|
|
@@ -13967,7 +14274,7 @@ var NavigationMenuContent = React16.forwardRef((props, forwardedRef) => {
|
|
|
13967
14274
|
...commonProps.style
|
|
13968
14275
|
}
|
|
13969
14276
|
}
|
|
13970
|
-
) }) : /* @__PURE__ */
|
|
14277
|
+
) }) : /* @__PURE__ */ jsx186(ViewportContentMounter, { forceMount, ...commonProps, ref: composedRefs });
|
|
13971
14278
|
});
|
|
13972
14279
|
NavigationMenuContent.displayName = CONTENT_NAME;
|
|
13973
14280
|
var ViewportContentMounter = React16.forwardRef((props, forwardedRef) => {
|
|
@@ -14035,7 +14342,7 @@ var NavigationMenuContentImpl = React16.forwardRef((props, forwardedRef) => {
|
|
|
14035
14342
|
prevMotionAttributeRef.current = attribute;
|
|
14036
14343
|
return attribute;
|
|
14037
14344
|
}, [context.previousValue, context.value, context.dir, getItems, value]);
|
|
14038
|
-
return /* @__PURE__ */
|
|
14345
|
+
return /* @__PURE__ */ jsx186(FocusGroup, { asChild: true, children: /* @__PURE__ */ jsx186(
|
|
14039
14346
|
DismissableLayer,
|
|
14040
14347
|
{
|
|
14041
14348
|
id: contentId,
|
|
@@ -14090,7 +14397,7 @@ var NavigationMenuViewport = React16.forwardRef((props, forwardedRef) => {
|
|
|
14090
14397
|
const { forceMount, ...viewportProps } = props;
|
|
14091
14398
|
const context = useNavigationMenuContext(VIEWPORT_NAME, props.__scopeNavigationMenu);
|
|
14092
14399
|
const open = Boolean(context.value);
|
|
14093
|
-
return /* @__PURE__ */
|
|
14400
|
+
return /* @__PURE__ */ jsx186(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx186(NavigationMenuViewportImpl, { ...viewportProps, ref: forwardedRef }) });
|
|
14094
14401
|
});
|
|
14095
14402
|
NavigationMenuViewport.displayName = VIEWPORT_NAME;
|
|
14096
14403
|
var NavigationMenuViewportImpl = React16.forwardRef((props, forwardedRef) => {
|
|
@@ -14111,7 +14418,7 @@ var NavigationMenuViewportImpl = React16.forwardRef((props, forwardedRef) => {
|
|
|
14111
14418
|
if (content) setSize({ width: content.offsetWidth, height: content.offsetHeight });
|
|
14112
14419
|
};
|
|
14113
14420
|
useResizeObserver(content, handleSizeChange);
|
|
14114
|
-
return /* @__PURE__ */
|
|
14421
|
+
return /* @__PURE__ */ jsx186(
|
|
14115
14422
|
Primitive.div,
|
|
14116
14423
|
{
|
|
14117
14424
|
"data-state": getOpenState(open),
|
|
@@ -14129,7 +14436,7 @@ var NavigationMenuViewportImpl = React16.forwardRef((props, forwardedRef) => {
|
|
|
14129
14436
|
onPointerLeave: composeEventHandlers(props.onPointerLeave, whenMouse(context.onContentLeave)),
|
|
14130
14437
|
children: Array.from(viewportContentContext.items).map(([value, { ref, forceMount, ...props2 }]) => {
|
|
14131
14438
|
const isActive = activeContentValue === value;
|
|
14132
|
-
return /* @__PURE__ */
|
|
14439
|
+
return /* @__PURE__ */ jsx186(Presence, { present: forceMount || isActive, children: /* @__PURE__ */ jsx186(
|
|
14133
14440
|
NavigationMenuContentImpl,
|
|
14134
14441
|
{
|
|
14135
14442
|
...props2,
|
|
@@ -14147,7 +14454,7 @@ var FocusGroup = React16.forwardRef(
|
|
|
14147
14454
|
(props, forwardedRef) => {
|
|
14148
14455
|
const { __scopeNavigationMenu, ...groupProps } = props;
|
|
14149
14456
|
const context = useNavigationMenuContext(FOCUS_GROUP_NAME, __scopeNavigationMenu);
|
|
14150
|
-
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 }) }) });
|
|
14151
14458
|
}
|
|
14152
14459
|
);
|
|
14153
14460
|
var ARROW_KEYS = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"];
|
|
@@ -14157,7 +14464,7 @@ var FocusGroupItem = React16.forwardRef(
|
|
|
14157
14464
|
const { __scopeNavigationMenu, ...groupProps } = props;
|
|
14158
14465
|
const getItems = useFocusGroupCollection(__scopeNavigationMenu);
|
|
14159
14466
|
const context = useNavigationMenuContext(FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);
|
|
14160
|
-
return /* @__PURE__ */
|
|
14467
|
+
return /* @__PURE__ */ jsx186(FocusGroupCollection.ItemSlot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx186(
|
|
14161
14468
|
Primitive.button,
|
|
14162
14469
|
{
|
|
14163
14470
|
...groupProps,
|
|
@@ -14250,10 +14557,10 @@ var Link = NavigationMenuLink;
|
|
|
14250
14557
|
var Content = NavigationMenuContent;
|
|
14251
14558
|
|
|
14252
14559
|
// src/components/Navigation/GlobalNavigation/GlobalNavigation.tsx
|
|
14253
|
-
import { forwardRef as
|
|
14560
|
+
import { forwardRef as forwardRef47 } from "react";
|
|
14254
14561
|
|
|
14255
14562
|
// src/components/Navigation/GlobalNavigation/globalNavigation.styles.ts
|
|
14256
|
-
import
|
|
14563
|
+
import styled32 from "@emotion/styled";
|
|
14257
14564
|
var globalNavigationStyleMap = (theme) => ({
|
|
14258
14565
|
empty: {
|
|
14259
14566
|
backgroundColor: "transparent",
|
|
@@ -14264,7 +14571,7 @@ var globalNavigationStyleMap = (theme) => ({
|
|
|
14264
14571
|
borderBottom: `1px solid ${theme.color.semantic.stroke.subtle}`
|
|
14265
14572
|
}
|
|
14266
14573
|
});
|
|
14267
|
-
var StyledGlobalNavigationWrapper =
|
|
14574
|
+
var StyledGlobalNavigationWrapper = styled32.div(
|
|
14268
14575
|
({ theme, $variant }) => {
|
|
14269
14576
|
const globalNavigationStyles = globalNavigationStyleMap(theme)[$variant];
|
|
14270
14577
|
return {
|
|
@@ -14285,7 +14592,7 @@ var StyledGlobalNavigationWrapper = styled31.div(
|
|
|
14285
14592
|
};
|
|
14286
14593
|
}
|
|
14287
14594
|
);
|
|
14288
|
-
var StyledGlobalNavigationRoot =
|
|
14595
|
+
var StyledGlobalNavigationRoot = styled32(Root2)(({ theme }) => ({
|
|
14289
14596
|
position: "relative",
|
|
14290
14597
|
display: "flex",
|
|
14291
14598
|
justifyContent: "left",
|
|
@@ -14308,7 +14615,7 @@ var AlignMap = {
|
|
|
14308
14615
|
left: "flex-start",
|
|
14309
14616
|
right: "flex-end"
|
|
14310
14617
|
};
|
|
14311
|
-
var StyledGlobalNavigationListWrapper =
|
|
14618
|
+
var StyledGlobalNavigationListWrapper = styled32.div`
|
|
14312
14619
|
display: flex;
|
|
14313
14620
|
justify-content: ${({ $align }) => AlignMap[$align]};
|
|
14314
14621
|
flex: 1;
|
|
@@ -14321,7 +14628,7 @@ var StyledGlobalNavigationListWrapper = styled31.div`
|
|
|
14321
14628
|
justify-content: flex-end;
|
|
14322
14629
|
}
|
|
14323
14630
|
`;
|
|
14324
|
-
var StyledGlobalNavigationList =
|
|
14631
|
+
var StyledGlobalNavigationList = styled32(List)(({ theme }) => ({
|
|
14325
14632
|
display: "flex",
|
|
14326
14633
|
alignItems: "center",
|
|
14327
14634
|
gap: theme.scheme.semantic.spacing[32],
|
|
@@ -14331,26 +14638,26 @@ var StyledGlobalNavigationList = styled31(List)(({ theme }) => ({
|
|
|
14331
14638
|
gap: theme.scheme.semantic.spacing[24]
|
|
14332
14639
|
}
|
|
14333
14640
|
}));
|
|
14334
|
-
var StyledGlobalNavigationItem =
|
|
14641
|
+
var StyledGlobalNavigationItem = styled32(Item)(() => ({
|
|
14335
14642
|
position: "relative"
|
|
14336
14643
|
}));
|
|
14337
|
-
var StyledMobileMenuButton =
|
|
14644
|
+
var StyledMobileMenuButton = styled32(IconButton.Basic)(({ theme }) => ({
|
|
14338
14645
|
display: "none",
|
|
14339
14646
|
[theme.breakPoint.mobile]: {
|
|
14340
14647
|
display: "inline-block"
|
|
14341
14648
|
}
|
|
14342
14649
|
}));
|
|
14343
|
-
var StyledGlobalNavigationLogoLink =
|
|
14650
|
+
var StyledGlobalNavigationLogoLink = styled32(Link)(() => ({
|
|
14344
14651
|
textDecoration: "none",
|
|
14345
14652
|
color: "inherit"
|
|
14346
14653
|
}));
|
|
14347
|
-
var StyledDividerWrapper =
|
|
14654
|
+
var StyledDividerWrapper = styled32.div(({ theme }) => ({
|
|
14348
14655
|
height: pxToRem(20),
|
|
14349
14656
|
[theme.breakPoint.tablet]: {
|
|
14350
14657
|
height: pxToRem(18)
|
|
14351
14658
|
}
|
|
14352
14659
|
}));
|
|
14353
|
-
var StyledGlobalNavigationContent =
|
|
14660
|
+
var StyledGlobalNavigationContent = styled32(
|
|
14354
14661
|
Content
|
|
14355
14662
|
)(({ $offset }) => {
|
|
14356
14663
|
return {
|
|
@@ -14362,15 +14669,15 @@ var StyledGlobalNavigationContent = styled31(
|
|
|
14362
14669
|
});
|
|
14363
14670
|
|
|
14364
14671
|
// src/components/Navigation/GlobalNavigation/GlobalNavigation.tsx
|
|
14365
|
-
import { jsx as
|
|
14366
|
-
var GlobalNavigationRoot =
|
|
14672
|
+
import { jsx as jsx187 } from "@emotion/react/jsx-runtime";
|
|
14673
|
+
var GlobalNavigationRoot = forwardRef47(
|
|
14367
14674
|
({ children, variant = "empty", ...props }, ref) => {
|
|
14368
|
-
return /* @__PURE__ */
|
|
14675
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationWrapper, { $variant: variant, children: /* @__PURE__ */ jsx187(StyledGlobalNavigationRoot, { ref, ...props, children }) });
|
|
14369
14676
|
}
|
|
14370
14677
|
);
|
|
14371
14678
|
GlobalNavigationRoot.displayName = "GlobalNavigation.Root";
|
|
14372
|
-
var GlobalNavigationMobileMenuButton =
|
|
14373
|
-
return /* @__PURE__ */
|
|
14679
|
+
var GlobalNavigationMobileMenuButton = forwardRef47(({ ...props }, ref) => {
|
|
14680
|
+
return /* @__PURE__ */ jsx187(
|
|
14374
14681
|
StyledMobileMenuButton,
|
|
14375
14682
|
{
|
|
14376
14683
|
ref,
|
|
@@ -14383,44 +14690,44 @@ var GlobalNavigationMobileMenuButton = forwardRef46(({ ...props }, ref) => {
|
|
|
14383
14690
|
);
|
|
14384
14691
|
});
|
|
14385
14692
|
GlobalNavigationMobileMenuButton.displayName = "GlobalNavigation.MobileMenuButton";
|
|
14386
|
-
var GlobalNavigationList =
|
|
14693
|
+
var GlobalNavigationList = forwardRef47(
|
|
14387
14694
|
({ children, align = "left", ...props }, ref) => {
|
|
14388
|
-
return /* @__PURE__ */
|
|
14695
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationListWrapper, { $align: align, children: /* @__PURE__ */ jsx187(StyledGlobalNavigationList, { ref, role: "list", ...props, children }) });
|
|
14389
14696
|
}
|
|
14390
14697
|
);
|
|
14391
14698
|
GlobalNavigationList.displayName = "GlobalNavigation.List";
|
|
14392
|
-
var GlobalNavigationItem =
|
|
14699
|
+
var GlobalNavigationItem = forwardRef47(
|
|
14393
14700
|
({ children, ...props }, ref) => {
|
|
14394
|
-
return /* @__PURE__ */
|
|
14701
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationItem, { ref, ...props, children });
|
|
14395
14702
|
}
|
|
14396
14703
|
);
|
|
14397
14704
|
GlobalNavigationItem.displayName = "GlobalNavigation.Item";
|
|
14398
|
-
var GlobalNavigationTrigger =
|
|
14705
|
+
var GlobalNavigationTrigger = forwardRef47(
|
|
14399
14706
|
({ asChild = true, ...props }, ref) => {
|
|
14400
|
-
return /* @__PURE__ */
|
|
14707
|
+
return /* @__PURE__ */ jsx187(Trigger, { ref, asChild, ...props });
|
|
14401
14708
|
}
|
|
14402
14709
|
);
|
|
14403
14710
|
GlobalNavigationTrigger.displayName = "GlobalNavigation.Trigger";
|
|
14404
14711
|
var GlobalNavigationLink = Link;
|
|
14405
14712
|
GlobalNavigationLink.displayName = "GlobalNavigation.Link";
|
|
14406
14713
|
var GlobalNavigationDivider = () => {
|
|
14407
|
-
return /* @__PURE__ */
|
|
14714
|
+
return /* @__PURE__ */ jsx187(StyledDividerWrapper, { children: /* @__PURE__ */ jsx187(Divider, { thickness: "normal", orientation: "vertical", variant: "solid" }) });
|
|
14408
14715
|
};
|
|
14409
|
-
var GlobalNavigationLogoLink =
|
|
14716
|
+
var GlobalNavigationLogoLink = forwardRef47(
|
|
14410
14717
|
({ children, href, ...props }, ref) => {
|
|
14411
|
-
return /* @__PURE__ */
|
|
14718
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationLogoLink, { href, ref, ...props, children });
|
|
14412
14719
|
}
|
|
14413
14720
|
);
|
|
14414
14721
|
GlobalNavigationLogoLink.displayName = "GlobalNavigation.LogoLink";
|
|
14415
|
-
var GlobalNavigationLogoItem =
|
|
14722
|
+
var GlobalNavigationLogoItem = forwardRef47(
|
|
14416
14723
|
({ children, ...props }, ref) => {
|
|
14417
|
-
return /* @__PURE__ */
|
|
14724
|
+
return /* @__PURE__ */ jsx187("div", { ref, ...props, children });
|
|
14418
14725
|
}
|
|
14419
14726
|
);
|
|
14420
14727
|
GlobalNavigationLogoItem.displayName = "GlobalNavigation.LogoItem";
|
|
14421
|
-
var GlobalNavigationContent =
|
|
14728
|
+
var GlobalNavigationContent = forwardRef47(
|
|
14422
14729
|
({ children, offset = 0, ...props }, ref) => {
|
|
14423
|
-
return /* @__PURE__ */
|
|
14730
|
+
return /* @__PURE__ */ jsx187(StyledGlobalNavigationContent, { ref, $offset: offset, ...props, children });
|
|
14424
14731
|
}
|
|
14425
14732
|
);
|
|
14426
14733
|
GlobalNavigationContent.displayName = "GlobalNavigation.Content";
|
|
@@ -14454,17 +14761,17 @@ var useGlobalNavigationVariant = (options = {}) => {
|
|
|
14454
14761
|
};
|
|
14455
14762
|
|
|
14456
14763
|
// src/components/Navigation/LocalNavigation/LocalNavigation.tsx
|
|
14457
|
-
import { forwardRef as
|
|
14764
|
+
import { forwardRef as forwardRef48 } from "react";
|
|
14458
14765
|
|
|
14459
14766
|
// src/components/Navigation/LocalNavigation/localNavigation.styles.ts
|
|
14460
|
-
import
|
|
14461
|
-
var StyledLocalNavigationRoot =
|
|
14767
|
+
import styled33 from "@emotion/styled";
|
|
14768
|
+
var StyledLocalNavigationRoot = styled33.div(
|
|
14462
14769
|
({ theme, $isStretched }) => ({
|
|
14463
14770
|
width: "100%",
|
|
14464
14771
|
padding: $isStretched ? `${theme.scheme.semantic.spacing[8]} 0` : `${theme.scheme.semantic.spacing[8]} ${theme.scheme.semantic.margin.lg}`
|
|
14465
14772
|
})
|
|
14466
14773
|
);
|
|
14467
|
-
var StyledLocalNavigationWrapper =
|
|
14774
|
+
var StyledLocalNavigationWrapper = styled33.div(({ theme }) => ({
|
|
14468
14775
|
display: "flex",
|
|
14469
14776
|
alignItems: "center",
|
|
14470
14777
|
justifyContent: "space-between",
|
|
@@ -14476,7 +14783,7 @@ var StyledLocalNavigationWrapper = styled32.div(({ theme }) => ({
|
|
|
14476
14783
|
gap: theme.scheme.semantic.spacing[16]
|
|
14477
14784
|
}
|
|
14478
14785
|
}));
|
|
14479
|
-
var StyledLocalNavigationTitle =
|
|
14786
|
+
var StyledLocalNavigationTitle = styled33.div(({ theme }) => ({
|
|
14480
14787
|
flex: 1,
|
|
14481
14788
|
color: theme.color.semantic.object.boldest,
|
|
14482
14789
|
...theme.textStyle["semantic-textStyle-title-1"],
|
|
@@ -14484,7 +14791,7 @@ var StyledLocalNavigationTitle = styled32.div(({ theme }) => ({
|
|
|
14484
14791
|
...theme.textStyle["semantic-textStyle-label-lg-bold"]
|
|
14485
14792
|
}
|
|
14486
14793
|
}));
|
|
14487
|
-
var StyledLocalNavigationButtonGroup =
|
|
14794
|
+
var StyledLocalNavigationButtonGroup = styled33.div(({ theme }) => ({
|
|
14488
14795
|
display: "flex",
|
|
14489
14796
|
alignItems: "center",
|
|
14490
14797
|
gap: theme.scheme.semantic.spacing[24],
|
|
@@ -14497,17 +14804,17 @@ var StyledLocalNavigationButtonGroup = styled32.div(({ theme }) => ({
|
|
|
14497
14804
|
}));
|
|
14498
14805
|
|
|
14499
14806
|
// src/components/Navigation/LocalNavigation/LocalNavigation.tsx
|
|
14500
|
-
import { jsx as
|
|
14501
|
-
var LocalNavigationRoot =
|
|
14807
|
+
import { jsx as jsx188 } from "@emotion/react/jsx-runtime";
|
|
14808
|
+
var LocalNavigationRoot = forwardRef48(
|
|
14502
14809
|
({ isStretched = false, children, ...props }, ref) => {
|
|
14503
|
-
return /* @__PURE__ */
|
|
14810
|
+
return /* @__PURE__ */ jsx188(StyledLocalNavigationRoot, { ref, $isStretched: isStretched, ...props, children: /* @__PURE__ */ jsx188(StyledLocalNavigationWrapper, { children }) });
|
|
14504
14811
|
}
|
|
14505
14812
|
);
|
|
14506
|
-
var LocalNavigationBackButton =
|
|
14813
|
+
var LocalNavigationBackButton = forwardRef48(
|
|
14507
14814
|
({ ...props }, ref) => {
|
|
14508
14815
|
const { isMobile } = useMediaQueryFlags();
|
|
14509
14816
|
const buttonSize = isMobile ? "lg" : "xl";
|
|
14510
|
-
return /* @__PURE__ */
|
|
14817
|
+
return /* @__PURE__ */ jsx188(
|
|
14511
14818
|
IconButton.Basic,
|
|
14512
14819
|
{
|
|
14513
14820
|
ref,
|
|
@@ -14520,16 +14827,16 @@ var LocalNavigationBackButton = forwardRef47(
|
|
|
14520
14827
|
}
|
|
14521
14828
|
);
|
|
14522
14829
|
LocalNavigationBackButton.displayName = "LocalNavigation.BackButton";
|
|
14523
|
-
var LocalNavigationTitle =
|
|
14830
|
+
var LocalNavigationTitle = forwardRef48(
|
|
14524
14831
|
({ as, children, ...props }, ref) => {
|
|
14525
|
-
return /* @__PURE__ */
|
|
14832
|
+
return /* @__PURE__ */ jsx188(StyledLocalNavigationTitle, { as, ref, ...props, children });
|
|
14526
14833
|
}
|
|
14527
14834
|
);
|
|
14528
14835
|
LocalNavigationTitle.displayName = "LocalNavigation.Title";
|
|
14529
|
-
var LocalNavigationButtonGroup =
|
|
14836
|
+
var LocalNavigationButtonGroup = forwardRef48(
|
|
14530
14837
|
({ extraButtonVisible = false, children, ...props }, ref) => {
|
|
14531
14838
|
if (!extraButtonVisible) return null;
|
|
14532
|
-
return /* @__PURE__ */
|
|
14839
|
+
return /* @__PURE__ */ jsx188(StyledLocalNavigationButtonGroup, { ref, ...props, children });
|
|
14533
14840
|
}
|
|
14534
14841
|
);
|
|
14535
14842
|
LocalNavigationButtonGroup.displayName = "LocalNavigation.ButtonGroup ";
|
|
@@ -14541,10 +14848,10 @@ var LocalNavigation = {
|
|
|
14541
14848
|
};
|
|
14542
14849
|
|
|
14543
14850
|
// src/components/EmptyState/EmptyState.tsx
|
|
14544
|
-
import { forwardRef as
|
|
14851
|
+
import { forwardRef as forwardRef49 } from "react";
|
|
14545
14852
|
|
|
14546
14853
|
// src/components/EmptyState/emptyState.styles.ts
|
|
14547
|
-
import
|
|
14854
|
+
import styled34 from "@emotion/styled";
|
|
14548
14855
|
var variantStylesMap = {
|
|
14549
14856
|
outlined: (theme) => ({
|
|
14550
14857
|
backgroundColor: "transparent",
|
|
@@ -14563,7 +14870,7 @@ var contentLayoutStylesMap = {
|
|
|
14563
14870
|
gap: theme.scheme.semantic.spacing[10]
|
|
14564
14871
|
})
|
|
14565
14872
|
};
|
|
14566
|
-
var EmptyStateRoot =
|
|
14873
|
+
var EmptyStateRoot = styled34("div", {
|
|
14567
14874
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14568
14875
|
})(({ theme, $variant, $layout }) => ({
|
|
14569
14876
|
display: "flex",
|
|
@@ -14578,7 +14885,7 @@ var EmptyStateRoot = styled33("div", {
|
|
|
14578
14885
|
borderRadius: theme.scheme.semantic.radius[8],
|
|
14579
14886
|
...$variant !== "empty" ? variantStylesMap[$variant](theme) : {}
|
|
14580
14887
|
}));
|
|
14581
|
-
var EmptyStateContentDiv =
|
|
14888
|
+
var EmptyStateContentDiv = styled34("div", {
|
|
14582
14889
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14583
14890
|
})(({ theme, $layout }) => ({
|
|
14584
14891
|
display: "flex",
|
|
@@ -14586,11 +14893,11 @@ var EmptyStateContentDiv = styled33("div", {
|
|
|
14586
14893
|
padding: theme.scheme.semantic.spacing[0],
|
|
14587
14894
|
...contentLayoutStylesMap[$layout](theme)
|
|
14588
14895
|
}));
|
|
14589
|
-
var EmptyStateLabel =
|
|
14896
|
+
var EmptyStateLabel = styled34(Label)(({ theme }) => ({
|
|
14590
14897
|
flex: 1,
|
|
14591
14898
|
color: theme.color.semantic.object.neutral
|
|
14592
14899
|
}));
|
|
14593
|
-
var EmptyStateBodyTextP =
|
|
14900
|
+
var EmptyStateBodyTextP = styled34("p", {
|
|
14594
14901
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14595
14902
|
})(({ theme, $layout }) => ({
|
|
14596
14903
|
display: "-webkit-box",
|
|
@@ -14603,7 +14910,7 @@ var EmptyStateBodyTextP = styled33("p", {
|
|
|
14603
14910
|
textOverflow: "ellipsis",
|
|
14604
14911
|
...theme.textStyle["semantic-textStyle-body-xs-normal"]
|
|
14605
14912
|
}));
|
|
14606
|
-
var EmptyStateButtonContainerDiv =
|
|
14913
|
+
var EmptyStateButtonContainerDiv = styled34("div", {
|
|
14607
14914
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14608
14915
|
})(({ theme, $hasSecondary }) => {
|
|
14609
14916
|
return {
|
|
@@ -14617,8 +14924,8 @@ var EmptyStateButtonContainerDiv = styled33("div", {
|
|
|
14617
14924
|
});
|
|
14618
14925
|
|
|
14619
14926
|
// src/components/EmptyState/EmptyState.tsx
|
|
14620
|
-
import { jsx as
|
|
14621
|
-
var EmptyState =
|
|
14927
|
+
import { jsx as jsx189, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14928
|
+
var EmptyState = forwardRef49(
|
|
14622
14929
|
({
|
|
14623
14930
|
variant = "empty",
|
|
14624
14931
|
layout = "vertical",
|
|
@@ -14633,8 +14940,8 @@ var EmptyState = forwardRef48(
|
|
|
14633
14940
|
const hasSecondary = !!secondaryAction;
|
|
14634
14941
|
const renderActions = () => {
|
|
14635
14942
|
if (!hasPrimary) return null;
|
|
14636
|
-
return /* @__PURE__ */
|
|
14637
|
-
hasSecondary && /* @__PURE__ */
|
|
14943
|
+
return /* @__PURE__ */ jsxs42(EmptyStateButtonContainerDiv, { $hasSecondary: hasSecondary, children: [
|
|
14944
|
+
hasSecondary && /* @__PURE__ */ jsx189(
|
|
14638
14945
|
BlockButton.Basic,
|
|
14639
14946
|
{
|
|
14640
14947
|
variant: "outlined",
|
|
@@ -14643,14 +14950,14 @@ var EmptyState = forwardRef48(
|
|
|
14643
14950
|
...secondaryAction
|
|
14644
14951
|
}
|
|
14645
14952
|
),
|
|
14646
|
-
/* @__PURE__ */
|
|
14953
|
+
/* @__PURE__ */ jsx189(BlockButton.Basic, { size: "sm", ...primaryAction })
|
|
14647
14954
|
] });
|
|
14648
14955
|
};
|
|
14649
|
-
return /* @__PURE__ */
|
|
14650
|
-
icon && /* @__PURE__ */
|
|
14651
|
-
/* @__PURE__ */
|
|
14652
|
-
/* @__PURE__ */
|
|
14653
|
-
/* @__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 })
|
|
14654
14961
|
] }),
|
|
14655
14962
|
renderActions()
|
|
14656
14963
|
] });
|
|
@@ -14659,34 +14966,34 @@ var EmptyState = forwardRef48(
|
|
|
14659
14966
|
EmptyState.displayName = "EmptyState";
|
|
14660
14967
|
|
|
14661
14968
|
// src/components/Menu/MegaMenu/MegaMenu.tsx
|
|
14662
|
-
import { forwardRef as
|
|
14969
|
+
import { forwardRef as forwardRef50 } from "react";
|
|
14663
14970
|
|
|
14664
14971
|
// src/components/Menu/MegaMenu/megaMenu.styles.ts
|
|
14665
|
-
import
|
|
14666
|
-
var StyledMegaMenuRoot =
|
|
14972
|
+
import styled35 from "@emotion/styled";
|
|
14973
|
+
var StyledMegaMenuRoot = styled35("div")(({ theme }) => ({
|
|
14667
14974
|
display: "flex",
|
|
14668
14975
|
backgroundColor: theme.color.semantic.surface.shallow,
|
|
14669
14976
|
border: `1px solid ${theme.color.semantic.stroke.subtler}`,
|
|
14670
14977
|
borderRadius: theme.scheme.semantic.radius[10],
|
|
14671
14978
|
...shadow(theme, "floated")
|
|
14672
14979
|
}));
|
|
14673
|
-
var StyledMegaMenuSection =
|
|
14980
|
+
var StyledMegaMenuSection = styled35("div")(({ theme }) => ({
|
|
14674
14981
|
display: "flex",
|
|
14675
14982
|
flexDirection: "column",
|
|
14676
14983
|
padding: `${theme.scheme.semantic.margin.lg} ${theme.scheme.semantic.margin.xl}`,
|
|
14677
14984
|
gap: theme.scheme.semantic.spacing[20]
|
|
14678
14985
|
}));
|
|
14679
|
-
var
|
|
14986
|
+
var StyledLabel4 = styled35(Label)(({ theme }) => ({
|
|
14680
14987
|
color: theme.color.semantic.object.alternative
|
|
14681
14988
|
}));
|
|
14682
|
-
var StyledMegaMenuGroup =
|
|
14989
|
+
var StyledMegaMenuGroup = styled35("ul")(({ theme }) => ({
|
|
14683
14990
|
display: "flex",
|
|
14684
14991
|
flexDirection: "column",
|
|
14685
14992
|
justifyItems: "flex-start",
|
|
14686
14993
|
alignItems: "flex-start",
|
|
14687
14994
|
gap: theme.scheme.semantic.spacing[16]
|
|
14688
14995
|
}));
|
|
14689
|
-
var StyledDivider2 =
|
|
14996
|
+
var StyledDivider2 = styled35("hr")(({ theme }) => ({
|
|
14690
14997
|
width: 0,
|
|
14691
14998
|
border: "none",
|
|
14692
14999
|
borderLeft: `1px solid ${theme.color.semantic.stroke.subtler}`,
|
|
@@ -14694,33 +15001,33 @@ var StyledDivider2 = styled34("hr")(({ theme }) => ({
|
|
|
14694
15001
|
}));
|
|
14695
15002
|
|
|
14696
15003
|
// src/components/Menu/MegaMenu/MegaMenu.tsx
|
|
14697
|
-
import { jsx as
|
|
14698
|
-
var MegaMenuRoot =
|
|
14699
|
-
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 });
|
|
14700
15007
|
});
|
|
14701
15008
|
MegaMenuRoot.displayName = "MegaMenu.Root";
|
|
14702
15009
|
var MegaMenuDivider = () => {
|
|
14703
|
-
return /* @__PURE__ */
|
|
15010
|
+
return /* @__PURE__ */ jsx190(StyledDivider2, {});
|
|
14704
15011
|
};
|
|
14705
15012
|
MegaMenuDivider.displayName = "MegaMenu.Divider";
|
|
14706
|
-
var MegaMenuSection =
|
|
15013
|
+
var MegaMenuSection = forwardRef50(
|
|
14707
15014
|
({ children, sectionName = "", ...rest }, ref) => {
|
|
14708
|
-
return /* @__PURE__ */
|
|
14709
|
-
/* @__PURE__ */
|
|
15015
|
+
return /* @__PURE__ */ jsxs43(StyledMegaMenuSection, { ref, ...rest, children: [
|
|
15016
|
+
/* @__PURE__ */ jsx190(StyledLabel4, { as: "span", textAlign: "left", size: "sm", weight: "normal", children: sectionName }),
|
|
14710
15017
|
children
|
|
14711
15018
|
] });
|
|
14712
15019
|
}
|
|
14713
15020
|
);
|
|
14714
15021
|
StyledMegaMenuSection.displayName = "MegaMenu.Section";
|
|
14715
|
-
var MegaMenuGroup =
|
|
15022
|
+
var MegaMenuGroup = forwardRef50(
|
|
14716
15023
|
({ children, ...rest }, ref) => {
|
|
14717
|
-
return /* @__PURE__ */
|
|
15024
|
+
return /* @__PURE__ */ jsx190(StyledMegaMenuGroup, { ref, role: "list", ...rest, children });
|
|
14718
15025
|
}
|
|
14719
15026
|
);
|
|
14720
15027
|
MegaMenuGroup.displayName = "MegaMenu.Group";
|
|
14721
|
-
var MegaMenuGroupItem =
|
|
15028
|
+
var MegaMenuGroupItem = forwardRef50(
|
|
14722
15029
|
({ children, ...rest }, ref) => {
|
|
14723
|
-
return /* @__PURE__ */
|
|
15030
|
+
return /* @__PURE__ */ jsx190("li", { ref, ...rest, children });
|
|
14724
15031
|
}
|
|
14725
15032
|
);
|
|
14726
15033
|
MegaMenuGroupItem.displayName = "MegaMenu.GroupItem";
|
|
@@ -14733,10 +15040,10 @@ var MegaMenu = {
|
|
|
14733
15040
|
};
|
|
14734
15041
|
|
|
14735
15042
|
// src/components/Menu/MenuItem/MenuItem.tsx
|
|
14736
|
-
import { forwardRef as
|
|
15043
|
+
import { forwardRef as forwardRef51 } from "react";
|
|
14737
15044
|
|
|
14738
15045
|
// src/components/Menu/MenuItem/menuItem.styles.ts
|
|
14739
|
-
import
|
|
15046
|
+
import styled36 from "@emotion/styled";
|
|
14740
15047
|
|
|
14741
15048
|
// src/components/Menu/MenuItem/menuItem.variants.ts
|
|
14742
15049
|
var menuItemColorMap = (theme, isDisabled, isSelected, isDestructive) => {
|
|
@@ -14776,7 +15083,7 @@ var createInteractionStyles3 = (theme, isDisabled, isSelected, isDestructive) =>
|
|
|
14776
15083
|
focusStyle: makeLayer("focus")
|
|
14777
15084
|
};
|
|
14778
15085
|
};
|
|
14779
|
-
var StyledMenuItemButton =
|
|
15086
|
+
var StyledMenuItemButton = styled36("button", {
|
|
14780
15087
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14781
15088
|
})(({ theme, $isDisabled, $isSelected, $isDestructive }) => {
|
|
14782
15089
|
const color = menuItemColorMap(theme, $isDisabled, $isSelected, $isDestructive);
|
|
@@ -14806,7 +15113,7 @@ var StyledMenuItemButton = styled35("button", {
|
|
|
14806
15113
|
}
|
|
14807
15114
|
};
|
|
14808
15115
|
});
|
|
14809
|
-
var StyledMenuItemAnchor =
|
|
15116
|
+
var StyledMenuItemAnchor = styled36("a", {
|
|
14810
15117
|
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
14811
15118
|
})(({ theme, $isDisabled, $isSelected, $isDestructive }) => {
|
|
14812
15119
|
const color = menuItemColorMap(theme, $isDisabled, $isSelected, $isDestructive);
|
|
@@ -14840,20 +15147,20 @@ var StyledMenuItemAnchor = styled35("a", {
|
|
|
14840
15147
|
}
|
|
14841
15148
|
};
|
|
14842
15149
|
});
|
|
14843
|
-
var StyledImage =
|
|
15150
|
+
var StyledImage = styled36(Image)(({ $size }) => {
|
|
14844
15151
|
const width = menuItemImageSizeMap[$size];
|
|
14845
15152
|
return {
|
|
14846
15153
|
borderRadius: 0,
|
|
14847
15154
|
width
|
|
14848
15155
|
};
|
|
14849
15156
|
});
|
|
14850
|
-
var MenuItemLabel =
|
|
15157
|
+
var MenuItemLabel = styled36(Label)(() => ({
|
|
14851
15158
|
color: "inherit"
|
|
14852
15159
|
}));
|
|
14853
15160
|
|
|
14854
15161
|
// src/components/Menu/MenuItem/MenuItem.tsx
|
|
14855
|
-
import { jsx as
|
|
14856
|
-
var MenuItemButton =
|
|
15162
|
+
import { jsx as jsx191, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
15163
|
+
var MenuItemButton = forwardRef51(
|
|
14857
15164
|
({
|
|
14858
15165
|
variant = "icon",
|
|
14859
15166
|
size = "md",
|
|
@@ -14869,7 +15176,7 @@ var MenuItemButton = forwardRef50(
|
|
|
14869
15176
|
children,
|
|
14870
15177
|
...rest
|
|
14871
15178
|
}, ref) => {
|
|
14872
|
-
return /* @__PURE__ */
|
|
15179
|
+
return /* @__PURE__ */ jsxs44(
|
|
14873
15180
|
StyledMenuItemButton,
|
|
14874
15181
|
{
|
|
14875
15182
|
ref,
|
|
@@ -14879,8 +15186,8 @@ var MenuItemButton = forwardRef50(
|
|
|
14879
15186
|
$isDestructive: isDestructive,
|
|
14880
15187
|
...rest,
|
|
14881
15188
|
children: [
|
|
14882
|
-
variant === "icon" && prefixIconVisible && /* @__PURE__ */
|
|
14883
|
-
variant === "thumbnail" && /* @__PURE__ */
|
|
15189
|
+
variant === "icon" && prefixIconVisible && /* @__PURE__ */ jsx191(Icon, { name: prefixIcon, size }),
|
|
15190
|
+
variant === "thumbnail" && /* @__PURE__ */ jsx191(
|
|
14884
15191
|
StyledImage,
|
|
14885
15192
|
{
|
|
14886
15193
|
src: imageSrc,
|
|
@@ -14891,15 +15198,15 @@ var MenuItemButton = forwardRef50(
|
|
|
14891
15198
|
$size: size
|
|
14892
15199
|
}
|
|
14893
15200
|
),
|
|
14894
|
-
/* @__PURE__ */
|
|
14895
|
-
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 })
|
|
14896
15203
|
]
|
|
14897
15204
|
}
|
|
14898
15205
|
);
|
|
14899
15206
|
}
|
|
14900
15207
|
);
|
|
14901
15208
|
MenuItemButton.displayName = "MenuItem.Button";
|
|
14902
|
-
var MenuItemAnchor =
|
|
15209
|
+
var MenuItemAnchor = forwardRef51(
|
|
14903
15210
|
({
|
|
14904
15211
|
variant = "icon",
|
|
14905
15212
|
size = "md",
|
|
@@ -14915,7 +15222,7 @@ var MenuItemAnchor = forwardRef50(
|
|
|
14915
15222
|
children,
|
|
14916
15223
|
...rest
|
|
14917
15224
|
}, ref) => {
|
|
14918
|
-
return /* @__PURE__ */
|
|
15225
|
+
return /* @__PURE__ */ jsxs44(
|
|
14919
15226
|
StyledMenuItemAnchor,
|
|
14920
15227
|
{
|
|
14921
15228
|
ref,
|
|
@@ -14924,8 +15231,8 @@ var MenuItemAnchor = forwardRef50(
|
|
|
14924
15231
|
$isDestructive: isDestructive,
|
|
14925
15232
|
...rest,
|
|
14926
15233
|
children: [
|
|
14927
|
-
variant === "icon" && prefixIconVisible && /* @__PURE__ */
|
|
14928
|
-
variant === "thumbnail" && /* @__PURE__ */
|
|
15234
|
+
variant === "icon" && prefixIconVisible && /* @__PURE__ */ jsx191(Icon, { name: prefixIcon, size }),
|
|
15235
|
+
variant === "thumbnail" && /* @__PURE__ */ jsx191(
|
|
14929
15236
|
StyledImage,
|
|
14930
15237
|
{
|
|
14931
15238
|
src: imageSrc,
|
|
@@ -14936,8 +15243,8 @@ var MenuItemAnchor = forwardRef50(
|
|
|
14936
15243
|
$size: size
|
|
14937
15244
|
}
|
|
14938
15245
|
),
|
|
14939
|
-
/* @__PURE__ */
|
|
14940
|
-
suffixIconVisible && /* @__PURE__ */
|
|
15246
|
+
/* @__PURE__ */ jsx191(MenuItemLabel, { as: "span", size, textAlign: "left", weight: "normal", children }),
|
|
15247
|
+
suffixIconVisible && /* @__PURE__ */ jsx191(Icon, { name: suffixIcon, size })
|
|
14941
15248
|
]
|
|
14942
15249
|
}
|
|
14943
15250
|
);
|
|
@@ -14951,10 +15258,10 @@ var MenuItem = {
|
|
|
14951
15258
|
|
|
14952
15259
|
// src/components/Menu/Menu/Menu.tsx
|
|
14953
15260
|
import { DropdownMenu as DropdownMenu2 } from "radix-ui";
|
|
14954
|
-
import { forwardRef as
|
|
15261
|
+
import { forwardRef as forwardRef52 } from "react";
|
|
14955
15262
|
|
|
14956
15263
|
// src/components/Menu/Menu/Menu.styles.ts
|
|
14957
|
-
import
|
|
15264
|
+
import styled37 from "@emotion/styled";
|
|
14958
15265
|
import { DropdownMenu } from "radix-ui";
|
|
14959
15266
|
|
|
14960
15267
|
// src/components/Menu/Menu/menu.variants.ts
|
|
@@ -15024,7 +15331,7 @@ var menuCategorySizeMap = {
|
|
|
15024
15331
|
};
|
|
15025
15332
|
|
|
15026
15333
|
// src/components/Menu/Menu/Menu.styles.ts
|
|
15027
|
-
var StyledDropdownMenuContent =
|
|
15334
|
+
var StyledDropdownMenuContent = styled37(
|
|
15028
15335
|
DropdownMenu.Content
|
|
15029
15336
|
)(({ theme, $menuStyle, $size }) => {
|
|
15030
15337
|
const shadowStyle = $menuStyle === "solid" ? shadow(theme, "floated") : {};
|
|
@@ -15035,12 +15342,12 @@ var StyledDropdownMenuContent = styled36(
|
|
|
15035
15342
|
...menuContentMap(theme)[$menuStyle][$size]
|
|
15036
15343
|
};
|
|
15037
15344
|
});
|
|
15038
|
-
var StyledMenuCategory =
|
|
15345
|
+
var StyledMenuCategory = styled37(Label)(({ theme }) => {
|
|
15039
15346
|
return {
|
|
15040
15347
|
color: theme.color.semantic.object.alternative
|
|
15041
15348
|
};
|
|
15042
15349
|
});
|
|
15043
|
-
var StyledMenuGroup =
|
|
15350
|
+
var StyledMenuGroup = styled37("ul")(({ $size, theme }) => {
|
|
15044
15351
|
return {
|
|
15045
15352
|
display: "flex",
|
|
15046
15353
|
flexDirection: "column",
|
|
@@ -15049,10 +15356,10 @@ var StyledMenuGroup = styled36("ul")(({ $size, theme }) => {
|
|
|
15049
15356
|
});
|
|
15050
15357
|
|
|
15051
15358
|
// src/components/Menu/Menu/menuContext.ts
|
|
15052
|
-
import { createContext as
|
|
15053
|
-
var MenuContext =
|
|
15359
|
+
import { createContext as createContext11, useContext as useContext12 } from "react";
|
|
15360
|
+
var MenuContext = createContext11(void 0);
|
|
15054
15361
|
var useMenuContext = () => {
|
|
15055
|
-
const context =
|
|
15362
|
+
const context = useContext12(MenuContext);
|
|
15056
15363
|
if (!context) {
|
|
15057
15364
|
throw new Error("Menu \uCEF4\uD3EC\uB10C\uD2B8\uB294 Menu.Root \uB0B4\uBD80\uC5D0\uC11C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4");
|
|
15058
15365
|
}
|
|
@@ -15060,20 +15367,20 @@ var useMenuContext = () => {
|
|
|
15060
15367
|
};
|
|
15061
15368
|
|
|
15062
15369
|
// src/components/Menu/Menu/Menu.tsx
|
|
15063
|
-
import { jsx as
|
|
15370
|
+
import { jsx as jsx192 } from "@emotion/react/jsx-runtime";
|
|
15064
15371
|
var MenuRoot = ({ children, menuStyle = "solid", size = "md", ...rest }) => {
|
|
15065
|
-
return /* @__PURE__ */
|
|
15372
|
+
return /* @__PURE__ */ jsx192(MenuContext.Provider, { value: { menuStyle, size }, children: /* @__PURE__ */ jsx192(DropdownMenu2.Root, { ...rest, children }) });
|
|
15066
15373
|
};
|
|
15067
15374
|
MenuRoot.displayName = "Menu.Root";
|
|
15068
|
-
var MenuContent =
|
|
15375
|
+
var MenuContent = forwardRef52(({ children, ...rest }, ref) => {
|
|
15069
15376
|
const { menuStyle, size } = useMenuContext();
|
|
15070
|
-
return /* @__PURE__ */
|
|
15377
|
+
return /* @__PURE__ */ jsx192(StyledDropdownMenuContent, { ref, $menuStyle: menuStyle, $size: size, ...rest, children });
|
|
15071
15378
|
});
|
|
15072
15379
|
MenuContent.displayName = "Menu.Content";
|
|
15073
|
-
var MenuCategory =
|
|
15380
|
+
var MenuCategory = forwardRef52(({ children, ...rest }, ref) => {
|
|
15074
15381
|
const { size } = useMenuContext();
|
|
15075
15382
|
const labelSize = menuCategorySizeMap[size];
|
|
15076
|
-
return /* @__PURE__ */
|
|
15383
|
+
return /* @__PURE__ */ jsx192(
|
|
15077
15384
|
StyledMenuCategory,
|
|
15078
15385
|
{
|
|
15079
15386
|
ref,
|
|
@@ -15087,22 +15394,22 @@ var MenuCategory = forwardRef51(({ children, ...rest }, ref) => {
|
|
|
15087
15394
|
);
|
|
15088
15395
|
});
|
|
15089
15396
|
MenuCategory.displayName = "Menu.Category";
|
|
15090
|
-
var MenuGroup =
|
|
15397
|
+
var MenuGroup = forwardRef52(({ children, ...rest }, ref) => {
|
|
15091
15398
|
const { size } = useMenuContext();
|
|
15092
|
-
return /* @__PURE__ */
|
|
15399
|
+
return /* @__PURE__ */ jsx192(StyledMenuGroup, { ref, role: "list", $size: size, ...rest, children });
|
|
15093
15400
|
});
|
|
15094
15401
|
MenuGroup.displayName = "Menu.Group";
|
|
15095
|
-
var MenuGroupItem =
|
|
15096
|
-
return /* @__PURE__ */
|
|
15402
|
+
var MenuGroupItem = forwardRef52(({ children, ...rest }, ref) => {
|
|
15403
|
+
return /* @__PURE__ */ jsx192(DropdownMenu2.Item, { asChild: true, ...rest, children: /* @__PURE__ */ jsx192("li", { ref, children }) });
|
|
15097
15404
|
});
|
|
15098
15405
|
MenuGroupItem.displayName = "Menu.GroupItem";
|
|
15099
|
-
var MenuButton =
|
|
15406
|
+
var MenuButton = forwardRef52(({ children, ...rest }, ref) => {
|
|
15100
15407
|
const { size } = useMenuContext();
|
|
15101
|
-
return /* @__PURE__ */
|
|
15408
|
+
return /* @__PURE__ */ jsx192(MenuItem.Button, { ref, size, ...rest, children });
|
|
15102
15409
|
});
|
|
15103
|
-
var MenuAnchor =
|
|
15410
|
+
var MenuAnchor = forwardRef52(({ children, ...rest }, ref) => {
|
|
15104
15411
|
const { size } = useMenuContext();
|
|
15105
|
-
return /* @__PURE__ */
|
|
15412
|
+
return /* @__PURE__ */ jsx192(MenuItem.Anchor, { ref, size, ...rest, children });
|
|
15106
15413
|
});
|
|
15107
15414
|
var Menu = {
|
|
15108
15415
|
Root: MenuRoot,
|
|
@@ -15120,7 +15427,7 @@ import * as React30 from "react";
|
|
|
15120
15427
|
|
|
15121
15428
|
// ../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
15122
15429
|
import * as React17 from "react";
|
|
15123
|
-
import { jsx as
|
|
15430
|
+
import { jsx as jsx193 } from "react/jsx-runtime";
|
|
15124
15431
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
15125
15432
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
15126
15433
|
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
@@ -15239,7 +15546,7 @@ var FocusScope = React17.forwardRef((props, forwardedRef) => {
|
|
|
15239
15546
|
},
|
|
15240
15547
|
[loop, trapped, focusScope.paused]
|
|
15241
15548
|
);
|
|
15242
|
-
return /* @__PURE__ */
|
|
15549
|
+
return /* @__PURE__ */ jsx193(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
15243
15550
|
});
|
|
15244
15551
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
15245
15552
|
function focusFirst2(candidates, { select = false } = {}) {
|
|
@@ -15325,14 +15632,14 @@ function removeLinks(items) {
|
|
|
15325
15632
|
// ../../node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
15326
15633
|
import * as React18 from "react";
|
|
15327
15634
|
import ReactDOM3 from "react-dom";
|
|
15328
|
-
import { jsx as
|
|
15635
|
+
import { jsx as jsx194 } from "react/jsx-runtime";
|
|
15329
15636
|
var PORTAL_NAME = "Portal";
|
|
15330
15637
|
var Portal = React18.forwardRef((props, forwardedRef) => {
|
|
15331
15638
|
const { container: containerProp, ...portalProps } = props;
|
|
15332
15639
|
const [mounted, setMounted] = React18.useState(false);
|
|
15333
15640
|
useLayoutEffect22(() => setMounted(true), []);
|
|
15334
15641
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
15335
|
-
return container ? ReactDOM3.createPortal(/* @__PURE__ */
|
|
15642
|
+
return container ? ReactDOM3.createPortal(/* @__PURE__ */ jsx194(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
15336
15643
|
});
|
|
15337
15644
|
Portal.displayName = PORTAL_NAME;
|
|
15338
15645
|
|
|
@@ -16206,7 +16513,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
16206
16513
|
};
|
|
16207
16514
|
|
|
16208
16515
|
// ../../node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
16209
|
-
import { Fragment as Fragment11, jsx as
|
|
16516
|
+
import { Fragment as Fragment11, jsx as jsx195, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
16210
16517
|
var DIALOG_NAME = "Dialog";
|
|
16211
16518
|
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
|
16212
16519
|
var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
|
|
@@ -16227,7 +16534,7 @@ var Dialog = (props) => {
|
|
|
16227
16534
|
onChange: onOpenChange,
|
|
16228
16535
|
caller: DIALOG_NAME
|
|
16229
16536
|
});
|
|
16230
|
-
return /* @__PURE__ */
|
|
16537
|
+
return /* @__PURE__ */ jsx195(
|
|
16231
16538
|
DialogProvider,
|
|
16232
16539
|
{
|
|
16233
16540
|
scope: __scopeDialog,
|
|
@@ -16251,7 +16558,7 @@ var DialogTrigger = React30.forwardRef(
|
|
|
16251
16558
|
const { __scopeDialog, ...triggerProps } = props;
|
|
16252
16559
|
const context = useDialogContext(TRIGGER_NAME2, __scopeDialog);
|
|
16253
16560
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
16254
|
-
return /* @__PURE__ */
|
|
16561
|
+
return /* @__PURE__ */ jsx195(
|
|
16255
16562
|
Primitive.button,
|
|
16256
16563
|
{
|
|
16257
16564
|
type: "button",
|
|
@@ -16274,7 +16581,7 @@ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME2, {
|
|
|
16274
16581
|
var DialogPortal = (props) => {
|
|
16275
16582
|
const { __scopeDialog, forceMount, children, container } = props;
|
|
16276
16583
|
const context = useDialogContext(PORTAL_NAME2, __scopeDialog);
|
|
16277
|
-
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 }) })) });
|
|
16278
16585
|
};
|
|
16279
16586
|
DialogPortal.displayName = PORTAL_NAME2;
|
|
16280
16587
|
var OVERLAY_NAME = "DialogOverlay";
|
|
@@ -16283,7 +16590,7 @@ var DialogOverlay = React30.forwardRef(
|
|
|
16283
16590
|
const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
|
|
16284
16591
|
const { forceMount = portalContext.forceMount, ...overlayProps } = props;
|
|
16285
16592
|
const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
|
|
16286
|
-
return context.modal ? /* @__PURE__ */
|
|
16593
|
+
return context.modal ? /* @__PURE__ */ jsx195(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx195(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
|
|
16287
16594
|
}
|
|
16288
16595
|
);
|
|
16289
16596
|
DialogOverlay.displayName = OVERLAY_NAME;
|
|
@@ -16295,7 +16602,7 @@ var DialogOverlayImpl = React30.forwardRef(
|
|
|
16295
16602
|
return (
|
|
16296
16603
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
16297
16604
|
// ie. when `Overlay` and `Content` are siblings
|
|
16298
|
-
/* @__PURE__ */
|
|
16605
|
+
/* @__PURE__ */ jsx195(Combination_default, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx195(
|
|
16299
16606
|
Primitive.div,
|
|
16300
16607
|
{
|
|
16301
16608
|
"data-state": getState(context.open),
|
|
@@ -16313,7 +16620,7 @@ var DialogContent = React30.forwardRef(
|
|
|
16313
16620
|
const portalContext = usePortalContext(CONTENT_NAME2, props.__scopeDialog);
|
|
16314
16621
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
16315
16622
|
const context = useDialogContext(CONTENT_NAME2, props.__scopeDialog);
|
|
16316
|
-
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 }) });
|
|
16317
16624
|
}
|
|
16318
16625
|
);
|
|
16319
16626
|
DialogContent.displayName = CONTENT_NAME2;
|
|
@@ -16326,7 +16633,7 @@ var DialogContentModal = React30.forwardRef(
|
|
|
16326
16633
|
const content = contentRef.current;
|
|
16327
16634
|
if (content) return hideOthers(content);
|
|
16328
16635
|
}, []);
|
|
16329
|
-
return /* @__PURE__ */
|
|
16636
|
+
return /* @__PURE__ */ jsx195(
|
|
16330
16637
|
DialogContentImpl,
|
|
16331
16638
|
{
|
|
16332
16639
|
...props,
|
|
@@ -16356,7 +16663,7 @@ var DialogContentNonModal = React30.forwardRef(
|
|
|
16356
16663
|
const context = useDialogContext(CONTENT_NAME2, props.__scopeDialog);
|
|
16357
16664
|
const hasInteractedOutsideRef = React30.useRef(false);
|
|
16358
16665
|
const hasPointerDownOutsideRef = React30.useRef(false);
|
|
16359
|
-
return /* @__PURE__ */
|
|
16666
|
+
return /* @__PURE__ */ jsx195(
|
|
16360
16667
|
DialogContentImpl,
|
|
16361
16668
|
{
|
|
16362
16669
|
...props,
|
|
@@ -16398,8 +16705,8 @@ var DialogContentImpl = React30.forwardRef(
|
|
|
16398
16705
|
const contentRef = React30.useRef(null);
|
|
16399
16706
|
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
|
16400
16707
|
useFocusGuards();
|
|
16401
|
-
return /* @__PURE__ */
|
|
16402
|
-
/* @__PURE__ */
|
|
16708
|
+
return /* @__PURE__ */ jsxs45(Fragment11, { children: [
|
|
16709
|
+
/* @__PURE__ */ jsx195(
|
|
16403
16710
|
FocusScope,
|
|
16404
16711
|
{
|
|
16405
16712
|
asChild: true,
|
|
@@ -16407,7 +16714,7 @@ var DialogContentImpl = React30.forwardRef(
|
|
|
16407
16714
|
trapped: trapFocus,
|
|
16408
16715
|
onMountAutoFocus: onOpenAutoFocus,
|
|
16409
16716
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
16410
|
-
children: /* @__PURE__ */
|
|
16717
|
+
children: /* @__PURE__ */ jsx195(
|
|
16411
16718
|
DismissableLayer,
|
|
16412
16719
|
{
|
|
16413
16720
|
role: "dialog",
|
|
@@ -16422,9 +16729,9 @@ var DialogContentImpl = React30.forwardRef(
|
|
|
16422
16729
|
)
|
|
16423
16730
|
}
|
|
16424
16731
|
),
|
|
16425
|
-
/* @__PURE__ */
|
|
16426
|
-
/* @__PURE__ */
|
|
16427
|
-
/* @__PURE__ */
|
|
16732
|
+
/* @__PURE__ */ jsxs45(Fragment11, { children: [
|
|
16733
|
+
/* @__PURE__ */ jsx195(TitleWarning, { titleId: context.titleId }),
|
|
16734
|
+
/* @__PURE__ */ jsx195(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
|
|
16428
16735
|
] })
|
|
16429
16736
|
] });
|
|
16430
16737
|
}
|
|
@@ -16434,7 +16741,7 @@ var DialogTitle = React30.forwardRef(
|
|
|
16434
16741
|
(props, forwardedRef) => {
|
|
16435
16742
|
const { __scopeDialog, ...titleProps } = props;
|
|
16436
16743
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
16437
|
-
return /* @__PURE__ */
|
|
16744
|
+
return /* @__PURE__ */ jsx195(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
|
16438
16745
|
}
|
|
16439
16746
|
);
|
|
16440
16747
|
DialogTitle.displayName = TITLE_NAME;
|
|
@@ -16443,7 +16750,7 @@ var DialogDescription = React30.forwardRef(
|
|
|
16443
16750
|
(props, forwardedRef) => {
|
|
16444
16751
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
16445
16752
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
16446
|
-
return /* @__PURE__ */
|
|
16753
|
+
return /* @__PURE__ */ jsx195(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
|
16447
16754
|
}
|
|
16448
16755
|
);
|
|
16449
16756
|
DialogDescription.displayName = DESCRIPTION_NAME;
|
|
@@ -16452,7 +16759,7 @@ var DialogClose = React30.forwardRef(
|
|
|
16452
16759
|
(props, forwardedRef) => {
|
|
16453
16760
|
const { __scopeDialog, ...closeProps } = props;
|
|
16454
16761
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
|
16455
|
-
return /* @__PURE__ */
|
|
16762
|
+
return /* @__PURE__ */ jsx195(
|
|
16456
16763
|
Primitive.button,
|
|
16457
16764
|
{
|
|
16458
16765
|
type: "button",
|
|
@@ -16507,11 +16814,11 @@ var Overlay = DialogOverlay;
|
|
|
16507
16814
|
var Content2 = DialogContent;
|
|
16508
16815
|
|
|
16509
16816
|
// src/components/Dialog/Dialog.tsx
|
|
16510
|
-
import { forwardRef as
|
|
16817
|
+
import { forwardRef as forwardRef58 } from "react";
|
|
16511
16818
|
|
|
16512
16819
|
// src/components/Dialog/Dialog.styles.ts
|
|
16513
16820
|
import { keyframes } from "@emotion/react";
|
|
16514
|
-
import
|
|
16821
|
+
import styled38 from "@emotion/styled";
|
|
16515
16822
|
var dialogOverlayFadeIn = keyframes`
|
|
16516
16823
|
from { opacity: 0 }
|
|
16517
16824
|
to { opacity: 1 }
|
|
@@ -16540,11 +16847,11 @@ var dialogSlideOut = keyframes`
|
|
|
16540
16847
|
transform: translate(-50%, calc(-50% + 60px));
|
|
16541
16848
|
}
|
|
16542
16849
|
`;
|
|
16543
|
-
var DialogOverlay2 =
|
|
16850
|
+
var DialogOverlay2 = styled38(Overlay)(({ theme }) => {
|
|
16544
16851
|
return {
|
|
16545
16852
|
position: "fixed",
|
|
16546
16853
|
inset: 0,
|
|
16547
|
-
backgroundColor: theme.color.semantic.curtain.dim,
|
|
16854
|
+
backgroundColor: theme.color.semantic.curtain.static.dim,
|
|
16548
16855
|
'&[data-state="open"]': {
|
|
16549
16856
|
animation: `${dialogOverlayFadeIn} ${theme.environment.semantic.duration[200]} ${theme.environment.semantic.motion.entrance}`
|
|
16550
16857
|
},
|
|
@@ -16553,7 +16860,7 @@ var DialogOverlay2 = styled37(Overlay)(({ theme }) => {
|
|
|
16553
16860
|
}
|
|
16554
16861
|
};
|
|
16555
16862
|
});
|
|
16556
|
-
var DialogContent2 =
|
|
16863
|
+
var DialogContent2 = styled38(Content2)(({ theme }) => {
|
|
16557
16864
|
return {
|
|
16558
16865
|
position: "fixed",
|
|
16559
16866
|
top: "50%",
|
|
@@ -16568,7 +16875,7 @@ var DialogContent2 = styled37(Content2)(({ theme }) => {
|
|
|
16568
16875
|
}
|
|
16569
16876
|
};
|
|
16570
16877
|
});
|
|
16571
|
-
var DialogRoot =
|
|
16878
|
+
var DialogRoot = styled38.div(({ theme }) => ({
|
|
16572
16879
|
display: "flex",
|
|
16573
16880
|
flexDirection: "column",
|
|
16574
16881
|
alignItems: "flex-start",
|
|
@@ -16581,7 +16888,7 @@ var DialogRoot = styled37.div(({ theme }) => ({
|
|
|
16581
16888
|
background: theme.color.semantic.surface.shallow,
|
|
16582
16889
|
...shadow(theme, "overlay")
|
|
16583
16890
|
}));
|
|
16584
|
-
var DialogDiv =
|
|
16891
|
+
var DialogDiv = styled38.div(({ theme }) => ({
|
|
16585
16892
|
display: "flex",
|
|
16586
16893
|
flexDirection: "column",
|
|
16587
16894
|
alignItems: "flex-start",
|
|
@@ -16589,7 +16896,7 @@ var DialogDiv = styled37.div(({ theme }) => ({
|
|
|
16589
16896
|
padding: theme.scheme.semantic.margin.md,
|
|
16590
16897
|
gap: theme.scheme.semantic.spacing[24]
|
|
16591
16898
|
}));
|
|
16592
|
-
var DialogContentDiv =
|
|
16899
|
+
var DialogContentDiv = styled38.div(({ theme }) => ({
|
|
16593
16900
|
display: "flex",
|
|
16594
16901
|
flexDirection: "column",
|
|
16595
16902
|
alignItems: "flex-start",
|
|
@@ -16597,15 +16904,15 @@ var DialogContentDiv = styled37.div(({ theme }) => ({
|
|
|
16597
16904
|
padding: theme.scheme.semantic.spacing[0],
|
|
16598
16905
|
gap: theme.scheme.semantic.spacing[16]
|
|
16599
16906
|
}));
|
|
16600
|
-
var DialogTitle2 =
|
|
16907
|
+
var DialogTitle2 = styled38(Title)({
|
|
16601
16908
|
alignSelf: "stretch"
|
|
16602
16909
|
});
|
|
16603
|
-
var DialogBodyTextP =
|
|
16910
|
+
var DialogBodyTextP = styled38.p(({ theme }) => ({
|
|
16604
16911
|
alignSelf: "stretch",
|
|
16605
16912
|
color: theme.color.semantic.object.normal,
|
|
16606
16913
|
...theme.textStyle["semantic-textStyle-body-xs-normal"]
|
|
16607
16914
|
}));
|
|
16608
|
-
var DialogButtonContainerDiv =
|
|
16915
|
+
var DialogButtonContainerDiv = styled38("div", {
|
|
16609
16916
|
shouldForwardProp: (prop) => !prop.startsWith("$")
|
|
16610
16917
|
})(({ theme, $isStacked }) => ({
|
|
16611
16918
|
display: "flex",
|
|
@@ -16617,8 +16924,8 @@ var DialogButtonContainerDiv = styled37("div", {
|
|
|
16617
16924
|
}));
|
|
16618
16925
|
|
|
16619
16926
|
// src/components/Dialog/Dialog.tsx
|
|
16620
|
-
import { jsx as
|
|
16621
|
-
var Dialog2 =
|
|
16927
|
+
import { jsx as jsx196, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
16928
|
+
var Dialog2 = forwardRef58(
|
|
16622
16929
|
({
|
|
16623
16930
|
isButtonStretched = false,
|
|
16624
16931
|
header,
|
|
@@ -16632,7 +16939,7 @@ var Dialog2 = forwardRef57(
|
|
|
16632
16939
|
const hasTertiaryButton = !!tertiaryAction;
|
|
16633
16940
|
const isReversedOrder = isButtonStretched && !!tertiaryAction;
|
|
16634
16941
|
const renderButtons = () => {
|
|
16635
|
-
const primary = /* @__PURE__ */
|
|
16942
|
+
const primary = /* @__PURE__ */ jsx196(
|
|
16636
16943
|
BlockButton.Basic,
|
|
16637
16944
|
{
|
|
16638
16945
|
style: { width: isButtonStretched ? "100%" : "auto" },
|
|
@@ -16640,7 +16947,7 @@ var Dialog2 = forwardRef57(
|
|
|
16640
16947
|
},
|
|
16641
16948
|
"primary"
|
|
16642
16949
|
);
|
|
16643
|
-
const secondary = secondaryAction ? /* @__PURE__ */
|
|
16950
|
+
const secondary = secondaryAction ? /* @__PURE__ */ jsx196(
|
|
16644
16951
|
BlockButton.Basic,
|
|
16645
16952
|
{
|
|
16646
16953
|
variant: "outlined",
|
|
@@ -16650,7 +16957,7 @@ var Dialog2 = forwardRef57(
|
|
|
16650
16957
|
},
|
|
16651
16958
|
"secondary"
|
|
16652
16959
|
) : null;
|
|
16653
|
-
const tertiary = tertiaryAction ? /* @__PURE__ */
|
|
16960
|
+
const tertiary = tertiaryAction ? /* @__PURE__ */ jsx196(
|
|
16654
16961
|
BlockButton.Basic,
|
|
16655
16962
|
{
|
|
16656
16963
|
variant: "empty",
|
|
@@ -16663,15 +16970,15 @@ var Dialog2 = forwardRef57(
|
|
|
16663
16970
|
const ordered = isReversedOrder ? [primary, secondary, tertiary] : [tertiary, secondary, primary];
|
|
16664
16971
|
return ordered.filter(Boolean);
|
|
16665
16972
|
};
|
|
16666
|
-
return /* @__PURE__ */
|
|
16667
|
-
/* @__PURE__ */
|
|
16668
|
-
/* @__PURE__ */
|
|
16669
|
-
/* @__PURE__ */
|
|
16670
|
-
/* @__PURE__ */
|
|
16671
|
-
/* @__PURE__ */
|
|
16672
|
-
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 })
|
|
16673
16980
|
] }),
|
|
16674
|
-
/* @__PURE__ */
|
|
16981
|
+
/* @__PURE__ */ jsx196(DialogButtonContainerDiv, { $isStacked: isButtonStretched && hasTertiaryButton, children: renderButtons() })
|
|
16675
16982
|
] }) }) })
|
|
16676
16983
|
] }) });
|
|
16677
16984
|
}
|
|
@@ -16683,7 +16990,7 @@ import { useEffect as useEffect16, useState as useState13 } from "react";
|
|
|
16683
16990
|
|
|
16684
16991
|
// src/components/Toast/toast.styles.ts
|
|
16685
16992
|
import { keyframes as keyframes2 } from "@emotion/react";
|
|
16686
|
-
import
|
|
16993
|
+
import styled39 from "@emotion/styled";
|
|
16687
16994
|
|
|
16688
16995
|
// src/components/Toast/toast.variants.ts
|
|
16689
16996
|
var toastStylesMap = (theme) => ({
|
|
@@ -16705,7 +17012,7 @@ var toastStylesMap = (theme) => ({
|
|
|
16705
17012
|
});
|
|
16706
17013
|
|
|
16707
17014
|
// src/components/Toast/toast.styles.ts
|
|
16708
|
-
var ToastStackContainer =
|
|
17015
|
+
var ToastStackContainer = styled39.div(({ theme }) => {
|
|
16709
17016
|
return {
|
|
16710
17017
|
position: "fixed",
|
|
16711
17018
|
bottom: "0",
|
|
@@ -16720,7 +17027,7 @@ var ToastStackContainer = styled38.div(({ theme }) => {
|
|
|
16720
17027
|
overflow: "hidden"
|
|
16721
17028
|
};
|
|
16722
17029
|
});
|
|
16723
|
-
var ToastDiv =
|
|
17030
|
+
var ToastDiv = styled39.div(({ theme, toastStyle }) => {
|
|
16724
17031
|
const color = toastStylesMap(theme)[toastStyle].color;
|
|
16725
17032
|
const borderColor = toastStylesMap(theme)[toastStyle].borderColor;
|
|
16726
17033
|
const backgroundColor = toastStylesMap(theme)[toastStyle].backgroundColor;
|
|
@@ -16764,17 +17071,17 @@ var ToastDiv = styled38.div(({ theme, toastStyle }) => {
|
|
|
16764
17071
|
}
|
|
16765
17072
|
};
|
|
16766
17073
|
});
|
|
16767
|
-
var ToastLabel =
|
|
17074
|
+
var ToastLabel = styled39(Label)(({ theme, toastStyle }) => {
|
|
16768
17075
|
return { flex: "1", color: toastStylesMap(theme)[toastStyle].color };
|
|
16769
17076
|
});
|
|
16770
|
-
var ToastContentDiv =
|
|
17077
|
+
var ToastContentDiv = styled39.div(({ theme }) => {
|
|
16771
17078
|
return {
|
|
16772
17079
|
display: "flex",
|
|
16773
17080
|
flexDirection: "column",
|
|
16774
17081
|
gap: theme.scheme.semantic.spacing[6]
|
|
16775
17082
|
};
|
|
16776
17083
|
});
|
|
16777
|
-
var ToastLabelContainerDiv =
|
|
17084
|
+
var ToastLabelContainerDiv = styled39.div(({ theme }) => {
|
|
16778
17085
|
return {
|
|
16779
17086
|
display: "flex",
|
|
16780
17087
|
gap: theme.scheme.semantic.spacing[8],
|
|
@@ -16782,14 +17089,14 @@ var ToastLabelContainerDiv = styled38.div(({ theme }) => {
|
|
|
16782
17089
|
alignItems: "center"
|
|
16783
17090
|
};
|
|
16784
17091
|
});
|
|
16785
|
-
var ToastCaptionP =
|
|
17092
|
+
var ToastCaptionP = styled39.p(({ theme }) => {
|
|
16786
17093
|
return {
|
|
16787
17094
|
...theme.textStyle["semantic-textStyle-body-xs-normal"],
|
|
16788
17095
|
[theme.breakPoint.mobile]: { ...theme.textStyle["semantic-textStyle-body-xs-normal"] },
|
|
16789
17096
|
[theme.breakPoint.tablet]: { ...theme.textStyle["semantic-textStyle-body-xs-normal"] }
|
|
16790
17097
|
};
|
|
16791
17098
|
});
|
|
16792
|
-
var ButtonContainerDiv =
|
|
17099
|
+
var ButtonContainerDiv = styled39.div(({ theme }) => {
|
|
16793
17100
|
return {
|
|
16794
17101
|
display: "flex",
|
|
16795
17102
|
gap: theme.scheme.semantic.spacing[12],
|
|
@@ -16797,12 +17104,12 @@ var ButtonContainerDiv = styled38.div(({ theme }) => {
|
|
|
16797
17104
|
alignItems: "center"
|
|
16798
17105
|
};
|
|
16799
17106
|
});
|
|
16800
|
-
var ToastFeedbackIcon =
|
|
17107
|
+
var ToastFeedbackIcon = styled39(Icon)(({ theme, variant }) => {
|
|
16801
17108
|
return { color: toastStylesMap(theme)[variant].color };
|
|
16802
17109
|
});
|
|
16803
17110
|
|
|
16804
17111
|
// src/components/Toast/Toast.tsx
|
|
16805
|
-
import { jsx as
|
|
17112
|
+
import { jsx as jsx197, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
16806
17113
|
var ToastBasic = ({ id, caption, onRemove, title, isClosing }) => {
|
|
16807
17114
|
const [phase, setPhase] = useState13("enter");
|
|
16808
17115
|
const onAnimationEnd = () => {
|
|
@@ -16824,10 +17131,10 @@ var ToastBasic = ({ id, caption, onRemove, title, isClosing }) => {
|
|
|
16824
17131
|
useEffect16(() => {
|
|
16825
17132
|
if (isClosing) setPhase("exit");
|
|
16826
17133
|
}, [isClosing]);
|
|
16827
|
-
return /* @__PURE__ */
|
|
16828
|
-
/* @__PURE__ */
|
|
16829
|
-
/* @__PURE__ */
|
|
16830
|
-
/* @__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(
|
|
16831
17138
|
IconButton.Basic,
|
|
16832
17139
|
{
|
|
16833
17140
|
icon: "close-line",
|
|
@@ -16838,7 +17145,7 @@ var ToastBasic = ({ id, caption, onRemove, title, isClosing }) => {
|
|
|
16838
17145
|
}
|
|
16839
17146
|
)
|
|
16840
17147
|
] }),
|
|
16841
|
-
caption && /* @__PURE__ */
|
|
17148
|
+
caption && /* @__PURE__ */ jsx197(ToastCaptionP, { children: caption })
|
|
16842
17149
|
] }) });
|
|
16843
17150
|
};
|
|
16844
17151
|
ToastBasic.displayName = "Toast.Basic";
|
|
@@ -16870,17 +17177,17 @@ var ToastFeedback = ({
|
|
|
16870
17177
|
useEffect16(() => {
|
|
16871
17178
|
if (isClosing) setPhase("exit");
|
|
16872
17179
|
}, [isClosing]);
|
|
16873
|
-
return /* @__PURE__ */
|
|
16874
|
-
/* @__PURE__ */
|
|
16875
|
-
/* @__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(
|
|
16876
17183
|
ToastFeedbackIcon,
|
|
16877
17184
|
{
|
|
16878
17185
|
variant,
|
|
16879
17186
|
name: variant === "positive" ? "check-line" : "error-warning-line"
|
|
16880
17187
|
}
|
|
16881
17188
|
),
|
|
16882
|
-
/* @__PURE__ */
|
|
16883
|
-
/* @__PURE__ */
|
|
17189
|
+
/* @__PURE__ */ jsx197(ToastLabel, { as: "span", toastStyle: variant, size: "md", textAlign: "left", weight: "normal", children: title }),
|
|
17190
|
+
/* @__PURE__ */ jsx197(
|
|
16884
17191
|
IconButton.Basic,
|
|
16885
17192
|
{
|
|
16886
17193
|
icon: "close-line",
|
|
@@ -16891,7 +17198,7 @@ var ToastFeedback = ({
|
|
|
16891
17198
|
}
|
|
16892
17199
|
)
|
|
16893
17200
|
] }),
|
|
16894
|
-
caption && /* @__PURE__ */
|
|
17201
|
+
caption && /* @__PURE__ */ jsx197(ToastCaptionP, { children: caption })
|
|
16895
17202
|
] }) });
|
|
16896
17203
|
};
|
|
16897
17204
|
ToastFeedback.displayName = "Toast.Feedback";
|
|
@@ -16901,7 +17208,7 @@ var Toast = {
|
|
|
16901
17208
|
};
|
|
16902
17209
|
|
|
16903
17210
|
// src/components/Toast/ToastProvider.tsx
|
|
16904
|
-
import { createContext as
|
|
17211
|
+
import { createContext as createContext12, useContext as useContext13, useEffect as useEffect17 } from "react";
|
|
16905
17212
|
import { createPortal } from "react-dom";
|
|
16906
17213
|
|
|
16907
17214
|
// src/components/Toast/toastController.ts
|
|
@@ -16986,19 +17293,19 @@ var useToastProvider = ({ toastLimit = 3 }) => {
|
|
|
16986
17293
|
};
|
|
16987
17294
|
|
|
16988
17295
|
// src/components/Toast/ToastProvider.tsx
|
|
16989
|
-
import { jsx as
|
|
16990
|
-
var ToastContext =
|
|
17296
|
+
import { jsx as jsx198, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
17297
|
+
var ToastContext = createContext12(null);
|
|
16991
17298
|
var ToastProvider = ({ children }) => {
|
|
16992
17299
|
const { toasts, toast: handler, removeToast } = useToastProvider({});
|
|
16993
17300
|
useEffect17(() => {
|
|
16994
17301
|
toastController.setHandler(handler);
|
|
16995
17302
|
return () => toastController.clearHandler();
|
|
16996
17303
|
}, [handler]);
|
|
16997
|
-
return /* @__PURE__ */
|
|
17304
|
+
return /* @__PURE__ */ jsxs48(ToastContext.Provider, { value: { toast: handler, removeToast }, children: [
|
|
16998
17305
|
children,
|
|
16999
17306
|
createPortal(
|
|
17000
|
-
/* @__PURE__ */
|
|
17001
|
-
(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(
|
|
17002
17309
|
Toast.Feedback,
|
|
17003
17310
|
{
|
|
17004
17311
|
variant: toast.type,
|
|
@@ -17013,7 +17320,7 @@ var ToastProvider = ({ children }) => {
|
|
|
17013
17320
|
] });
|
|
17014
17321
|
};
|
|
17015
17322
|
var useToast = () => {
|
|
17016
|
-
const context =
|
|
17323
|
+
const context = useContext13(ToastContext);
|
|
17017
17324
|
if (!context) throw new Error("useToast must be used within ToastProvider");
|
|
17018
17325
|
return context;
|
|
17019
17326
|
};
|
|
@@ -17023,7 +17330,7 @@ import { useEffect as useEffect18, useState as useState15 } from "react";
|
|
|
17023
17330
|
|
|
17024
17331
|
// src/components/Snackbar/snackbar.styles.ts
|
|
17025
17332
|
import { keyframes as keyframes3 } from "@emotion/react";
|
|
17026
|
-
import
|
|
17333
|
+
import styled40 from "@emotion/styled";
|
|
17027
17334
|
|
|
17028
17335
|
// src/components/Snackbar/snackbar.variants.ts
|
|
17029
17336
|
var snackbarStylesMap = (theme) => ({
|
|
@@ -17045,7 +17352,7 @@ var snackbarStylesMap = (theme) => ({
|
|
|
17045
17352
|
});
|
|
17046
17353
|
|
|
17047
17354
|
// src/components/Snackbar/snackbar.styles.ts
|
|
17048
|
-
var SnackbarStackContainer =
|
|
17355
|
+
var SnackbarStackContainer = styled40.div(({ theme }) => {
|
|
17049
17356
|
return {
|
|
17050
17357
|
position: "absolute",
|
|
17051
17358
|
bottom: "0",
|
|
@@ -17060,7 +17367,7 @@ var SnackbarStackContainer = styled39.div(({ theme }) => {
|
|
|
17060
17367
|
overflow: "hidden"
|
|
17061
17368
|
};
|
|
17062
17369
|
});
|
|
17063
|
-
var SnackbarDiv =
|
|
17370
|
+
var SnackbarDiv = styled40.div(({ theme, snackbarStyle }) => {
|
|
17064
17371
|
const color = snackbarStylesMap(theme)[snackbarStyle].color;
|
|
17065
17372
|
const borderColor = snackbarStylesMap(theme)[snackbarStyle].borderColor;
|
|
17066
17373
|
const backgroundColor = snackbarStylesMap(theme)[snackbarStyle].backgroundColor;
|
|
@@ -17104,20 +17411,20 @@ var SnackbarDiv = styled39.div(({ theme, snackbarStyle }) => {
|
|
|
17104
17411
|
}
|
|
17105
17412
|
};
|
|
17106
17413
|
});
|
|
17107
|
-
var SnackbarLabel =
|
|
17414
|
+
var SnackbarLabel = styled40(Label)(({
|
|
17108
17415
|
theme,
|
|
17109
17416
|
snackbarStyle
|
|
17110
17417
|
}) => {
|
|
17111
17418
|
return { flex: "1", color: snackbarStylesMap(theme)[snackbarStyle].color };
|
|
17112
17419
|
});
|
|
17113
|
-
var SnackbarContentDiv =
|
|
17420
|
+
var SnackbarContentDiv = styled40.div(({ theme }) => {
|
|
17114
17421
|
return {
|
|
17115
17422
|
display: "flex",
|
|
17116
17423
|
flexDirection: "column",
|
|
17117
17424
|
gap: theme.scheme.semantic.spacing[6]
|
|
17118
17425
|
};
|
|
17119
17426
|
});
|
|
17120
|
-
var SnackbarLabelContainerDiv =
|
|
17427
|
+
var SnackbarLabelContainerDiv = styled40.div(({ theme }) => {
|
|
17121
17428
|
return {
|
|
17122
17429
|
display: "flex",
|
|
17123
17430
|
gap: theme.scheme.semantic.spacing[8],
|
|
@@ -17125,14 +17432,14 @@ var SnackbarLabelContainerDiv = styled39.div(({ theme }) => {
|
|
|
17125
17432
|
alignItems: "center"
|
|
17126
17433
|
};
|
|
17127
17434
|
});
|
|
17128
|
-
var SnackbarCaptionP =
|
|
17435
|
+
var SnackbarCaptionP = styled40.p(({ theme }) => {
|
|
17129
17436
|
return {
|
|
17130
17437
|
...theme.textStyle["semantic-textStyle-body-xs-normal"],
|
|
17131
17438
|
[theme.breakPoint.mobile]: { ...theme.textStyle["semantic-textStyle-body-xs-normal"] },
|
|
17132
17439
|
[theme.breakPoint.tablet]: { ...theme.textStyle["semantic-textStyle-body-xs-normal"] }
|
|
17133
17440
|
};
|
|
17134
17441
|
});
|
|
17135
|
-
var ButtonContainerDiv2 =
|
|
17442
|
+
var ButtonContainerDiv2 = styled40.div(({ theme }) => {
|
|
17136
17443
|
return {
|
|
17137
17444
|
display: "flex",
|
|
17138
17445
|
gap: theme.scheme.semantic.spacing[12],
|
|
@@ -17140,7 +17447,7 @@ var ButtonContainerDiv2 = styled39.div(({ theme }) => {
|
|
|
17140
17447
|
alignItems: "center"
|
|
17141
17448
|
};
|
|
17142
17449
|
});
|
|
17143
|
-
var SnackbarFeedbackIcon =
|
|
17450
|
+
var SnackbarFeedbackIcon = styled40(Icon)(({
|
|
17144
17451
|
theme,
|
|
17145
17452
|
variant
|
|
17146
17453
|
}) => {
|
|
@@ -17148,12 +17455,12 @@ var SnackbarFeedbackIcon = styled39(Icon)(({
|
|
|
17148
17455
|
});
|
|
17149
17456
|
|
|
17150
17457
|
// src/components/Snackbar/Snackbar.tsx
|
|
17151
|
-
import { jsx as
|
|
17458
|
+
import { jsx as jsx199, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
17152
17459
|
var SnackbarButtons = ({ prefixButtonProps, suffixButtonProps }) => {
|
|
17153
17460
|
if (!prefixButtonProps && !suffixButtonProps) return;
|
|
17154
|
-
return /* @__PURE__ */
|
|
17155
|
-
prefixButtonProps && /* @__PURE__ */
|
|
17156
|
-
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 })
|
|
17157
17464
|
] });
|
|
17158
17465
|
};
|
|
17159
17466
|
var SnackbarBasic = ({
|
|
@@ -17185,11 +17492,11 @@ var SnackbarBasic = ({
|
|
|
17185
17492
|
useEffect18(() => {
|
|
17186
17493
|
if (isClosing) setPhase("exit");
|
|
17187
17494
|
}, [isClosing]);
|
|
17188
|
-
return /* @__PURE__ */
|
|
17189
|
-
/* @__PURE__ */
|
|
17190
|
-
/* @__PURE__ */
|
|
17191
|
-
/* @__PURE__ */
|
|
17192
|
-
/* @__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(
|
|
17193
17500
|
IconButton.Basic,
|
|
17194
17501
|
{
|
|
17195
17502
|
icon: "close-line",
|
|
@@ -17200,9 +17507,9 @@ var SnackbarBasic = ({
|
|
|
17200
17507
|
}
|
|
17201
17508
|
)
|
|
17202
17509
|
] }),
|
|
17203
|
-
caption && /* @__PURE__ */
|
|
17510
|
+
caption && /* @__PURE__ */ jsx199(SnackbarCaptionP, { children: caption })
|
|
17204
17511
|
] }),
|
|
17205
|
-
/* @__PURE__ */
|
|
17512
|
+
/* @__PURE__ */ jsx199(
|
|
17206
17513
|
SnackbarButtons,
|
|
17207
17514
|
{
|
|
17208
17515
|
prefixButtonProps,
|
|
@@ -17242,18 +17549,18 @@ var SnackbarFeedback = ({
|
|
|
17242
17549
|
useEffect18(() => {
|
|
17243
17550
|
if (isClosing) setPhase("exit");
|
|
17244
17551
|
}, [isClosing]);
|
|
17245
|
-
return /* @__PURE__ */
|
|
17246
|
-
/* @__PURE__ */
|
|
17247
|
-
/* @__PURE__ */
|
|
17248
|
-
/* @__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(
|
|
17249
17556
|
SnackbarFeedbackIcon,
|
|
17250
17557
|
{
|
|
17251
17558
|
variant,
|
|
17252
17559
|
name: variant === "positive" ? "check-line" : "error-warning-line"
|
|
17253
17560
|
}
|
|
17254
17561
|
),
|
|
17255
|
-
/* @__PURE__ */
|
|
17256
|
-
/* @__PURE__ */
|
|
17562
|
+
/* @__PURE__ */ jsx199(SnackbarLabel, { snackbarStyle: variant, size: "md", textAlign: "left", weight: "normal", children: title }),
|
|
17563
|
+
/* @__PURE__ */ jsx199(
|
|
17257
17564
|
IconButton.Basic,
|
|
17258
17565
|
{
|
|
17259
17566
|
icon: "close-line",
|
|
@@ -17264,9 +17571,9 @@ var SnackbarFeedback = ({
|
|
|
17264
17571
|
}
|
|
17265
17572
|
)
|
|
17266
17573
|
] }),
|
|
17267
|
-
caption && /* @__PURE__ */
|
|
17574
|
+
caption && /* @__PURE__ */ jsx199(SnackbarCaptionP, { children: caption })
|
|
17268
17575
|
] }),
|
|
17269
|
-
/* @__PURE__ */
|
|
17576
|
+
/* @__PURE__ */ jsx199(
|
|
17270
17577
|
SnackbarButtons,
|
|
17271
17578
|
{
|
|
17272
17579
|
prefixButtonProps,
|
|
@@ -17282,7 +17589,7 @@ var Snackbar = {
|
|
|
17282
17589
|
};
|
|
17283
17590
|
|
|
17284
17591
|
// src/components/Snackbar/SnackbarProvider.tsx
|
|
17285
|
-
import { createContext as
|
|
17592
|
+
import { createContext as createContext13, useContext as useContext14, useEffect as useEffect19 } from "react";
|
|
17286
17593
|
import { createPortal as createPortal2 } from "react-dom";
|
|
17287
17594
|
|
|
17288
17595
|
// src/components/Snackbar/snackbarController.ts
|
|
@@ -17322,26 +17629,26 @@ var useSnackbarProvider = ({ snackbarLimit = 3 }) => {
|
|
|
17322
17629
|
};
|
|
17323
17630
|
|
|
17324
17631
|
// src/components/Snackbar/SnackbarProvider.tsx
|
|
17325
|
-
import { jsx as
|
|
17326
|
-
var SnackbarContext =
|
|
17632
|
+
import { jsx as jsx200, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
17633
|
+
var SnackbarContext = createContext13(null);
|
|
17327
17634
|
var SnackbarProvider = ({ children }) => {
|
|
17328
17635
|
const { snackbars, snackbar: handler, removeSnackbar } = useSnackbarProvider({});
|
|
17329
17636
|
useEffect19(() => {
|
|
17330
17637
|
snackbarController.setHandler(handler);
|
|
17331
17638
|
return () => snackbarController.clearHandler();
|
|
17332
17639
|
}, [handler]);
|
|
17333
|
-
return /* @__PURE__ */
|
|
17640
|
+
return /* @__PURE__ */ jsxs50(SnackbarContext.Provider, { value: { snackbar: handler, removeSnackbar }, children: [
|
|
17334
17641
|
children,
|
|
17335
17642
|
createPortal2(
|
|
17336
|
-
/* @__PURE__ */
|
|
17337
|
-
(snackbar) => snackbar.type === "basic" ? /* @__PURE__ */
|
|
17643
|
+
/* @__PURE__ */ jsx200(SnackbarStackContainer, { children: snackbars.map(
|
|
17644
|
+
(snackbar) => snackbar.type === "basic" ? /* @__PURE__ */ jsx200(
|
|
17338
17645
|
Snackbar.Basic,
|
|
17339
17646
|
{
|
|
17340
17647
|
onRemove: () => removeSnackbar(snackbar.id),
|
|
17341
17648
|
...snackbar
|
|
17342
17649
|
},
|
|
17343
17650
|
snackbar.id
|
|
17344
|
-
) : /* @__PURE__ */
|
|
17651
|
+
) : /* @__PURE__ */ jsx200(
|
|
17345
17652
|
Snackbar.Feedback,
|
|
17346
17653
|
{
|
|
17347
17654
|
variant: snackbar.type,
|
|
@@ -17356,7 +17663,7 @@ var SnackbarProvider = ({ children }) => {
|
|
|
17356
17663
|
] });
|
|
17357
17664
|
};
|
|
17358
17665
|
var useSnackbar = () => {
|
|
17359
|
-
const context =
|
|
17666
|
+
const context = useContext14(SnackbarContext);
|
|
17360
17667
|
if (!context) throw new Error("useSnackbar must be used within SnackbarProvider");
|
|
17361
17668
|
return context;
|
|
17362
17669
|
};
|
|
@@ -17366,7 +17673,7 @@ import React32 from "react";
|
|
|
17366
17673
|
|
|
17367
17674
|
// ../../node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
17368
17675
|
import * as React31 from "react";
|
|
17369
|
-
import { jsx as
|
|
17676
|
+
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
17370
17677
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
17371
17678
|
var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
|
|
17372
17679
|
var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
|
|
@@ -17386,7 +17693,7 @@ var Collapsible = React31.forwardRef(
|
|
|
17386
17693
|
onChange: onOpenChange,
|
|
17387
17694
|
caller: COLLAPSIBLE_NAME
|
|
17388
17695
|
});
|
|
17389
|
-
return /* @__PURE__ */
|
|
17696
|
+
return /* @__PURE__ */ jsx201(
|
|
17390
17697
|
CollapsibleProvider,
|
|
17391
17698
|
{
|
|
17392
17699
|
scope: __scopeCollapsible,
|
|
@@ -17394,7 +17701,7 @@ var Collapsible = React31.forwardRef(
|
|
|
17394
17701
|
contentId: useId6(),
|
|
17395
17702
|
open,
|
|
17396
17703
|
onOpenToggle: React31.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
17397
|
-
children: /* @__PURE__ */
|
|
17704
|
+
children: /* @__PURE__ */ jsx201(
|
|
17398
17705
|
Primitive.div,
|
|
17399
17706
|
{
|
|
17400
17707
|
"data-state": getState2(open),
|
|
@@ -17413,7 +17720,7 @@ var CollapsibleTrigger = React31.forwardRef(
|
|
|
17413
17720
|
(props, forwardedRef) => {
|
|
17414
17721
|
const { __scopeCollapsible, ...triggerProps } = props;
|
|
17415
17722
|
const context = useCollapsibleContext(TRIGGER_NAME3, __scopeCollapsible);
|
|
17416
|
-
return /* @__PURE__ */
|
|
17723
|
+
return /* @__PURE__ */ jsx201(
|
|
17417
17724
|
Primitive.button,
|
|
17418
17725
|
{
|
|
17419
17726
|
type: "button",
|
|
@@ -17435,7 +17742,7 @@ var CollapsibleContent = React31.forwardRef(
|
|
|
17435
17742
|
(props, forwardedRef) => {
|
|
17436
17743
|
const { forceMount, ...contentProps } = props;
|
|
17437
17744
|
const context = useCollapsibleContext(CONTENT_NAME3, props.__scopeCollapsible);
|
|
17438
|
-
return /* @__PURE__ */
|
|
17745
|
+
return /* @__PURE__ */ jsx201(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx201(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
|
|
17439
17746
|
}
|
|
17440
17747
|
);
|
|
17441
17748
|
CollapsibleContent.displayName = CONTENT_NAME3;
|
|
@@ -17475,7 +17782,7 @@ var CollapsibleContentImpl = React31.forwardRef((props, forwardedRef) => {
|
|
|
17475
17782
|
setIsPresent(present);
|
|
17476
17783
|
}
|
|
17477
17784
|
}, [context.open, present]);
|
|
17478
|
-
return /* @__PURE__ */
|
|
17785
|
+
return /* @__PURE__ */ jsx201(
|
|
17479
17786
|
Primitive.div,
|
|
17480
17787
|
{
|
|
17481
17788
|
"data-state": getState2(context.open),
|
|
@@ -17501,7 +17808,7 @@ var Trigger2 = CollapsibleTrigger;
|
|
|
17501
17808
|
var Content3 = CollapsibleContent;
|
|
17502
17809
|
|
|
17503
17810
|
// ../../node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
17504
|
-
import { jsx as
|
|
17811
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
17505
17812
|
var ACCORDION_NAME = "Accordion";
|
|
17506
17813
|
var ACCORDION_KEYS = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"];
|
|
17507
17814
|
var [Collection2, useCollection2, createCollectionScope2] = createCollection(ACCORDION_NAME);
|
|
@@ -17515,7 +17822,7 @@ var Accordion = React32.forwardRef(
|
|
|
17515
17822
|
const { type, ...accordionProps } = props;
|
|
17516
17823
|
const singleProps = accordionProps;
|
|
17517
17824
|
const multipleProps = accordionProps;
|
|
17518
|
-
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 }) });
|
|
17519
17826
|
}
|
|
17520
17827
|
);
|
|
17521
17828
|
Accordion.displayName = ACCORDION_NAME;
|
|
@@ -17540,14 +17847,14 @@ var AccordionImplSingle = React32.forwardRef(
|
|
|
17540
17847
|
onChange: onValueChange,
|
|
17541
17848
|
caller: ACCORDION_NAME
|
|
17542
17849
|
});
|
|
17543
|
-
return /* @__PURE__ */
|
|
17850
|
+
return /* @__PURE__ */ jsx202(
|
|
17544
17851
|
AccordionValueProvider,
|
|
17545
17852
|
{
|
|
17546
17853
|
scope: props.__scopeAccordion,
|
|
17547
17854
|
value: React32.useMemo(() => value ? [value] : [], [value]),
|
|
17548
17855
|
onItemOpen: setValue,
|
|
17549
17856
|
onItemClose: React32.useCallback(() => collapsible && setValue(""), [collapsible, setValue]),
|
|
17550
|
-
children: /* @__PURE__ */
|
|
17857
|
+
children: /* @__PURE__ */ jsx202(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx202(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })
|
|
17551
17858
|
}
|
|
17552
17859
|
);
|
|
17553
17860
|
}
|
|
@@ -17574,14 +17881,14 @@ var AccordionImplMultiple = React32.forwardRef((props, forwardedRef) => {
|
|
|
17574
17881
|
(itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
|
|
17575
17882
|
[setValue]
|
|
17576
17883
|
);
|
|
17577
|
-
return /* @__PURE__ */
|
|
17884
|
+
return /* @__PURE__ */ jsx202(
|
|
17578
17885
|
AccordionValueProvider,
|
|
17579
17886
|
{
|
|
17580
17887
|
scope: props.__scopeAccordion,
|
|
17581
17888
|
value,
|
|
17582
17889
|
onItemOpen: handleItemOpen,
|
|
17583
17890
|
onItemClose: handleItemClose,
|
|
17584
|
-
children: /* @__PURE__ */
|
|
17891
|
+
children: /* @__PURE__ */ jsx202(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx202(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })
|
|
17585
17892
|
}
|
|
17586
17893
|
);
|
|
17587
17894
|
});
|
|
@@ -17656,14 +17963,14 @@ var AccordionImpl = React32.forwardRef(
|
|
|
17656
17963
|
const clampedIndex = nextIndex % triggerCount;
|
|
17657
17964
|
triggerCollection[clampedIndex].ref.current?.focus();
|
|
17658
17965
|
});
|
|
17659
|
-
return /* @__PURE__ */
|
|
17966
|
+
return /* @__PURE__ */ jsx202(
|
|
17660
17967
|
AccordionImplProvider,
|
|
17661
17968
|
{
|
|
17662
17969
|
scope: __scopeAccordion,
|
|
17663
17970
|
disabled,
|
|
17664
17971
|
direction: dir,
|
|
17665
17972
|
orientation,
|
|
17666
|
-
children: /* @__PURE__ */
|
|
17973
|
+
children: /* @__PURE__ */ jsx202(Collection2.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx202(
|
|
17667
17974
|
Primitive.div,
|
|
17668
17975
|
{
|
|
17669
17976
|
...accordionProps,
|
|
@@ -17687,14 +17994,14 @@ var AccordionItem = React32.forwardRef(
|
|
|
17687
17994
|
const triggerId = useId6();
|
|
17688
17995
|
const open = value && valueContext.value.includes(value) || false;
|
|
17689
17996
|
const disabled = accordionContext.disabled || props.disabled;
|
|
17690
|
-
return /* @__PURE__ */
|
|
17997
|
+
return /* @__PURE__ */ jsx202(
|
|
17691
17998
|
AccordionItemProvider,
|
|
17692
17999
|
{
|
|
17693
18000
|
scope: __scopeAccordion,
|
|
17694
18001
|
open,
|
|
17695
18002
|
disabled,
|
|
17696
18003
|
triggerId,
|
|
17697
|
-
children: /* @__PURE__ */
|
|
18004
|
+
children: /* @__PURE__ */ jsx202(
|
|
17698
18005
|
Root4,
|
|
17699
18006
|
{
|
|
17700
18007
|
"data-orientation": accordionContext.orientation,
|
|
@@ -17724,7 +18031,7 @@ var AccordionHeader = React32.forwardRef(
|
|
|
17724
18031
|
const { __scopeAccordion, ...headerProps } = props;
|
|
17725
18032
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
17726
18033
|
const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
|
|
17727
|
-
return /* @__PURE__ */
|
|
18034
|
+
return /* @__PURE__ */ jsx202(
|
|
17728
18035
|
Primitive.h3,
|
|
17729
18036
|
{
|
|
17730
18037
|
"data-orientation": accordionContext.orientation,
|
|
@@ -17745,7 +18052,7 @@ var AccordionTrigger = React32.forwardRef(
|
|
|
17745
18052
|
const itemContext = useAccordionItemContext(TRIGGER_NAME4, __scopeAccordion);
|
|
17746
18053
|
const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME4, __scopeAccordion);
|
|
17747
18054
|
const collapsibleScope = useCollapsibleScope(__scopeAccordion);
|
|
17748
|
-
return /* @__PURE__ */
|
|
18055
|
+
return /* @__PURE__ */ jsx202(Collection2.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx202(
|
|
17749
18056
|
Trigger2,
|
|
17750
18057
|
{
|
|
17751
18058
|
"aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
|
|
@@ -17766,7 +18073,7 @@ var AccordionContent = React32.forwardRef(
|
|
|
17766
18073
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
17767
18074
|
const itemContext = useAccordionItemContext(CONTENT_NAME4, __scopeAccordion);
|
|
17768
18075
|
const collapsibleScope = useCollapsibleScope(__scopeAccordion);
|
|
17769
|
-
return /* @__PURE__ */
|
|
18076
|
+
return /* @__PURE__ */ jsx202(
|
|
17770
18077
|
Content3,
|
|
17771
18078
|
{
|
|
17772
18079
|
role: "region",
|
|
@@ -17795,15 +18102,15 @@ var Trigger22 = AccordionTrigger;
|
|
|
17795
18102
|
var Content22 = AccordionContent;
|
|
17796
18103
|
|
|
17797
18104
|
// src/components/Accordion/Accordion.tsx
|
|
17798
|
-
import { forwardRef as
|
|
18105
|
+
import { forwardRef as forwardRef60, useMemo as useMemo9 } from "react";
|
|
17799
18106
|
|
|
17800
18107
|
// src/components/Accordion/accordion.styles.ts
|
|
17801
18108
|
import { keyframes as keyframes4 } from "@emotion/react";
|
|
17802
|
-
import
|
|
18109
|
+
import styled41 from "@emotion/styled";
|
|
17803
18110
|
var accordionSizeMap = {
|
|
17804
|
-
lg: { iconSize: "sm", labelSize: "lg" },
|
|
17805
|
-
md: { iconSize: "xs", labelSize: "md" },
|
|
17806
|
-
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" }
|
|
17807
18114
|
};
|
|
17808
18115
|
var createInteractionStyles4 = (theme, isReadonly) => {
|
|
17809
18116
|
const borderRadius = 4;
|
|
@@ -17826,13 +18133,13 @@ var createInteractionStyles4 = (theme, isReadonly) => {
|
|
|
17826
18133
|
focusStyle: makeLayer("focus")
|
|
17827
18134
|
};
|
|
17828
18135
|
};
|
|
17829
|
-
var StyledAccordionRoot =
|
|
18136
|
+
var StyledAccordionRoot = styled41("div")(({ theme }) => ({
|
|
17830
18137
|
display: "flex",
|
|
17831
18138
|
flexDirection: "column",
|
|
17832
18139
|
gap: theme.scheme.semantic.spacing[24],
|
|
17833
18140
|
width: "100%"
|
|
17834
18141
|
}));
|
|
17835
|
-
var StyledAccordionTrigger =
|
|
18142
|
+
var StyledAccordionTrigger = styled41(
|
|
17836
18143
|
Trigger22
|
|
17837
18144
|
)(({ theme, $isStretched }) => {
|
|
17838
18145
|
const interactionStyles7 = createInteractionStyles4(theme, false);
|
|
@@ -17860,22 +18167,9 @@ var StyledAccordionTrigger = styled40(
|
|
|
17860
18167
|
...interactionStyles7.focusStyle
|
|
17861
18168
|
},
|
|
17862
18169
|
"&[data-disabled]": {
|
|
18170
|
+
pointerEvents: "none",
|
|
17863
18171
|
color: theme.color.semantic.object.subtle,
|
|
17864
18172
|
...disabledInteractionStyles.restStyle,
|
|
17865
|
-
"&:hover": {
|
|
17866
|
-
...disabledInteractionStyles.hoverStyle,
|
|
17867
|
-
"::after": {
|
|
17868
|
-
...interactionStyles7.hoverStyle["::after"],
|
|
17869
|
-
transition: `opacity ${theme.environment.semantic.duration[100]} ${theme.environment.semantic.motion.fluent}`
|
|
17870
|
-
}
|
|
17871
|
-
},
|
|
17872
|
-
"&:active": {
|
|
17873
|
-
...disabledInteractionStyles.activeStyle,
|
|
17874
|
-
"::after": {
|
|
17875
|
-
...disabledInteractionStyles.activeStyle["::after"],
|
|
17876
|
-
transition: "none"
|
|
17877
|
-
}
|
|
17878
|
-
},
|
|
17879
18173
|
"&:focus-visible": {
|
|
17880
18174
|
...disabledInteractionStyles.focusStyle
|
|
17881
18175
|
}
|
|
@@ -17885,19 +18179,19 @@ var StyledAccordionTrigger = styled40(
|
|
|
17885
18179
|
}
|
|
17886
18180
|
};
|
|
17887
18181
|
});
|
|
17888
|
-
var StyledAccordionLabelContainer =
|
|
18182
|
+
var StyledAccordionLabelContainer = styled41("div")(({ theme }) => ({
|
|
17889
18183
|
display: "flex",
|
|
17890
18184
|
justifyContent: "flex-start",
|
|
17891
18185
|
alignItems: "center",
|
|
17892
18186
|
gap: theme.scheme.semantic.spacing[8],
|
|
17893
18187
|
flex: 1
|
|
17894
18188
|
}));
|
|
17895
|
-
var StyledAccordionChevron =
|
|
18189
|
+
var StyledAccordionChevron = styled41("div")(({ theme }) => ({
|
|
17896
18190
|
display: "flex",
|
|
17897
18191
|
alignItems: "center",
|
|
17898
18192
|
transition: `transform ${theme.environment.semantic.duration[300]} ${theme.environment.semantic.motion.fluent}`
|
|
17899
18193
|
}));
|
|
17900
|
-
var StyleLabel =
|
|
18194
|
+
var StyleLabel = styled41(Label)(() => ({
|
|
17901
18195
|
color: "inherit",
|
|
17902
18196
|
textAlign: "left",
|
|
17903
18197
|
textWrap: "wrap",
|
|
@@ -17911,10 +18205,9 @@ var slideDown = keyframes4`
|
|
|
17911
18205
|
from { height: 0; }
|
|
17912
18206
|
to { height: var(--radix-accordion-content-height); }
|
|
17913
18207
|
`;
|
|
17914
|
-
var StyledAccordionContent =
|
|
18208
|
+
var StyledAccordionContent = styled41(Content22)(({ theme, $size }) => {
|
|
17915
18209
|
return {
|
|
17916
18210
|
overflow: "hidden",
|
|
17917
|
-
...theme.textStyle["semantic-textStyle-body-sm-normal"],
|
|
17918
18211
|
color: theme.color.semantic.object.bold,
|
|
17919
18212
|
willChange: "height",
|
|
17920
18213
|
"&[data-disabled]": {
|
|
@@ -17925,21 +18218,20 @@ var StyledAccordionContent = styled40(Content22)(({ theme }) => {
|
|
|
17925
18218
|
},
|
|
17926
18219
|
'&[data-state="closed"]': {
|
|
17927
18220
|
animation: `${slideUp} ${theme.environment.semantic.duration[300]} ${theme.environment.semantic.motion.fluent}`
|
|
17928
|
-
}
|
|
18221
|
+
},
|
|
18222
|
+
...theme.textStyle[accordionSizeMap[$size].contentTextStyle]
|
|
17929
18223
|
};
|
|
17930
18224
|
});
|
|
17931
|
-
var StyledAccordionContentText =
|
|
17932
|
-
|
|
17933
|
-
|
|
17934
|
-
|
|
17935
|
-
})
|
|
17936
|
-
);
|
|
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
|
+
}));
|
|
17937
18229
|
|
|
17938
18230
|
// src/components/Accordion/accordionContext.ts
|
|
17939
|
-
import { createContext as
|
|
17940
|
-
var AccordionContext =
|
|
18231
|
+
import { createContext as createContext14, useContext as useContext15 } from "react";
|
|
18232
|
+
var AccordionContext = createContext14(void 0);
|
|
17941
18233
|
var useAccordionContext2 = () => {
|
|
17942
|
-
const context =
|
|
18234
|
+
const context = useContext15(AccordionContext);
|
|
17943
18235
|
if (!context) {
|
|
17944
18236
|
throw new Error("Accordion \uCEF4\uD3EC\uB10C\uD2B8\uB294 Accordion.Root \uB0B4\uBD80\uC5D0\uC11C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4");
|
|
17945
18237
|
}
|
|
@@ -17947,36 +18239,36 @@ var useAccordionContext2 = () => {
|
|
|
17947
18239
|
};
|
|
17948
18240
|
|
|
17949
18241
|
// src/components/Accordion/Accordion.tsx
|
|
17950
|
-
import { jsx as
|
|
17951
|
-
var AccordionRoot =
|
|
18242
|
+
import { jsx as jsx203, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
18243
|
+
var AccordionRoot = forwardRef60(
|
|
17952
18244
|
({ children, isStretched = true, size = "lg", ...props }, ref) => {
|
|
17953
18245
|
const contextValue = useMemo9(() => ({ isStretched, size }), [isStretched, size]);
|
|
17954
|
-
return /* @__PURE__ */
|
|
18246
|
+
return /* @__PURE__ */ jsx203(AccordionContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx203(Root22, { ...props, ref, children: /* @__PURE__ */ jsx203(StyledAccordionRoot, { children }) }) });
|
|
17955
18247
|
}
|
|
17956
18248
|
);
|
|
17957
18249
|
AccordionRoot.displayName = "Accordion.Root";
|
|
17958
|
-
var AccordionItem2 =
|
|
17959
|
-
({ children, ...props }, ref) => /* @__PURE__ */
|
|
18250
|
+
var AccordionItem2 = forwardRef60(
|
|
18251
|
+
({ children, ...props }, ref) => /* @__PURE__ */ jsx203(Item2, { ...props, ref, children })
|
|
17960
18252
|
);
|
|
17961
18253
|
AccordionItem2.displayName = "Accordion.Item";
|
|
17962
|
-
var AccordionTrigger2 =
|
|
18254
|
+
var AccordionTrigger2 = forwardRef60(
|
|
17963
18255
|
({ children, withPrefixIcon, ...props }, ref) => {
|
|
17964
18256
|
const { isStretched, size } = useAccordionContext2();
|
|
17965
18257
|
const { iconSize, labelSize } = accordionSizeMap[size];
|
|
17966
|
-
return /* @__PURE__ */
|
|
17967
|
-
/* @__PURE__ */
|
|
17968
|
-
withPrefixIcon && /* @__PURE__ */
|
|
17969
|
-
/* @__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 })
|
|
17970
18262
|
] }),
|
|
17971
|
-
/* @__PURE__ */
|
|
18263
|
+
/* @__PURE__ */ jsx203(StyledAccordionChevron, { className: "arrowIcon", children: /* @__PURE__ */ jsx203(Icon, { size: iconSize, name: "arrow-down-s-line", "aria-hidden": true }) })
|
|
17972
18264
|
] }) });
|
|
17973
18265
|
}
|
|
17974
18266
|
);
|
|
17975
18267
|
AccordionTrigger2.displayName = "Accordion.Trigger";
|
|
17976
|
-
var AccordionContent2 =
|
|
18268
|
+
var AccordionContent2 = forwardRef60(
|
|
17977
18269
|
({ children, ...props }, ref) => {
|
|
17978
|
-
const { isStretched } = useAccordionContext2();
|
|
17979
|
-
return /* @__PURE__ */
|
|
18270
|
+
const { isStretched, size } = useAccordionContext2();
|
|
18271
|
+
return /* @__PURE__ */ jsx203(StyledAccordionContent, { ...props, ref, $size: size, children: /* @__PURE__ */ jsx203(StyledAccordionContentText, { $isStretched: isStretched, children }) });
|
|
17980
18272
|
}
|
|
17981
18273
|
);
|
|
17982
18274
|
AccordionContent2.displayName = "Accordion.Content";
|