kiban-design-system 1.0.283-alpha.0 → 1.0.286-alpha.0
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/components/AlertProvider/AlertProvider.d.ts +4 -3
- package/dist/components/AlertProvider/AlertProvider.props.d.ts +9 -4
- package/dist/components/AlertProvider/context/AlertContext.d.ts +1 -1
- package/dist/components/Link/Link.d.ts +4 -0
- package/dist/components/Link/Link.props.d.ts +7 -0
- package/dist/components/Link/index.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +224 -192
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.esm.js +224 -193
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2421,7 +2421,7 @@ const LifeBuoy = () => /*#__PURE__*/jsxRuntimeExports.jsxs(jsxRuntimeExports.Fra
|
|
|
2421
2421
|
})]
|
|
2422
2422
|
});
|
|
2423
2423
|
|
|
2424
|
-
const Link$
|
|
2424
|
+
const Link$3 = () => /*#__PURE__*/jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
2425
2425
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
2426
2426
|
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"
|
|
2427
2427
|
}), /*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
@@ -4703,7 +4703,7 @@ var Icons = /*#__PURE__*/Object.freeze({
|
|
|
4703
4703
|
Layers: Layers,
|
|
4704
4704
|
Layout: Layout,
|
|
4705
4705
|
LifeBuoy: LifeBuoy,
|
|
4706
|
-
Link: Link$
|
|
4706
|
+
Link: Link$3,
|
|
4707
4707
|
Link2: Link2,
|
|
4708
4708
|
Linkedin: Linkedin,
|
|
4709
4709
|
List: List$1,
|
|
@@ -5372,7 +5372,7 @@ const KibanCloud = ({
|
|
|
5372
5372
|
})]
|
|
5373
5373
|
});
|
|
5374
5374
|
|
|
5375
|
-
const Link$
|
|
5375
|
+
const Link$2 = ({
|
|
5376
5376
|
size
|
|
5377
5377
|
}) => /*#__PURE__*/jsxRuntimeExports.jsxs("svg", {
|
|
5378
5378
|
className: `Logo Logo--${size}`,
|
|
@@ -6798,7 +6798,7 @@ var Logos = /*#__PURE__*/Object.freeze({
|
|
|
6798
6798
|
KibanWhite: KibanWhite,
|
|
6799
6799
|
Klin: Klin,
|
|
6800
6800
|
KlinWhite: KlinWhite,
|
|
6801
|
-
Link: Link$
|
|
6801
|
+
Link: Link$2,
|
|
6802
6802
|
LinkWhite: LinkWhite,
|
|
6803
6803
|
Rainao: Rainao,
|
|
6804
6804
|
RainaoWhite: RainaoWhite,
|
|
@@ -6831,7 +6831,8 @@ const Logo = ({
|
|
|
6831
6831
|
|
|
6832
6832
|
const AlertContext = /*#__PURE__*/React2.createContext({
|
|
6833
6833
|
addAlert: () => null,
|
|
6834
|
-
limit: 0
|
|
6834
|
+
limit: 0,
|
|
6835
|
+
deleteAlert: () => {}
|
|
6835
6836
|
});
|
|
6836
6837
|
|
|
6837
6838
|
const AlertProvider = ({
|
|
@@ -6857,9 +6858,15 @@ const AlertProvider = ({
|
|
|
6857
6858
|
const countDownAlerts = () => {
|
|
6858
6859
|
let alerts = alertList.map(alertElem => ({
|
|
6859
6860
|
...alertElem,
|
|
6860
|
-
duration: alertElem.duration - 1000
|
|
6861
|
+
duration: alertElem.duration === "infinite" ? "infinite" : alertElem.duration - 1000
|
|
6861
6862
|
}));
|
|
6862
|
-
|
|
6863
|
+
// Trigger on dismiss event when an alert is dismissed
|
|
6864
|
+
alerts.forEach(alertElement => {
|
|
6865
|
+
if (alertElement.duration === 0) {
|
|
6866
|
+
alertElement.onDismiss?.(alertElement.id);
|
|
6867
|
+
}
|
|
6868
|
+
});
|
|
6869
|
+
alerts = alerts.filter(alertElement => alertElement.duration === "infinite" || typeof alertElement.duration === "number" && alertElement.duration > 0);
|
|
6863
6870
|
setAlertList(alerts);
|
|
6864
6871
|
};
|
|
6865
6872
|
React2.useEffect(() => {
|
|
@@ -6876,7 +6883,9 @@ const AlertProvider = ({
|
|
|
6876
6883
|
icon,
|
|
6877
6884
|
appearance,
|
|
6878
6885
|
content,
|
|
6879
|
-
duration
|
|
6886
|
+
duration,
|
|
6887
|
+
onDismiss,
|
|
6888
|
+
dismissible = false
|
|
6880
6889
|
}) => {
|
|
6881
6890
|
const id = Math.floor(Math.random() * 100 + 1);
|
|
6882
6891
|
const alertAddProps = {
|
|
@@ -6884,9 +6893,12 @@ const AlertProvider = ({
|
|
|
6884
6893
|
appearance,
|
|
6885
6894
|
content,
|
|
6886
6895
|
duration,
|
|
6887
|
-
id
|
|
6896
|
+
id,
|
|
6897
|
+
onDismiss,
|
|
6898
|
+
dismissible
|
|
6888
6899
|
};
|
|
6889
6900
|
setNewAlert(alertAddProps);
|
|
6901
|
+
return id;
|
|
6890
6902
|
};
|
|
6891
6903
|
const deleteAlert = index => {
|
|
6892
6904
|
if (index !== undefined) {
|
|
@@ -6896,15 +6908,16 @@ const AlertProvider = ({
|
|
|
6896
6908
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(AlertContext.Provider, {
|
|
6897
6909
|
value: {
|
|
6898
6910
|
addAlert,
|
|
6899
|
-
limit
|
|
6911
|
+
limit,
|
|
6912
|
+
deleteAlert
|
|
6900
6913
|
},
|
|
6901
6914
|
children: [children, portalTarget && alertList.length > 0 && /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
6902
6915
|
className: "AlertProvider",
|
|
6903
6916
|
children: alertList.map(alertItem => /*#__PURE__*/jsxRuntimeExports.jsx(Alert, {
|
|
6904
6917
|
icon: alertItem.icon,
|
|
6905
6918
|
appearance: alertItem.appearance,
|
|
6906
|
-
duration: alertItem.duration,
|
|
6907
|
-
onDismiss: alertItem.
|
|
6919
|
+
duration: alertItem.duration === "infinite" ? undefined : alertItem.duration,
|
|
6920
|
+
onDismiss: alertItem.dismissible ? () => deleteAlert(alertItem.id) : undefined,
|
|
6908
6921
|
content: alertItem.content,
|
|
6909
6922
|
id: alertItem.id
|
|
6910
6923
|
}, alertItem.id))
|
|
@@ -6974,7 +6987,7 @@ const Grid = ({
|
|
|
6974
6987
|
};
|
|
6975
6988
|
Grid.Item = GridItem;
|
|
6976
6989
|
|
|
6977
|
-
const COMPONENT_NAME$
|
|
6990
|
+
const COMPONENT_NAME$F = 'AlphaAttributeInput';
|
|
6978
6991
|
const AlphaAttributeInput = ({
|
|
6979
6992
|
items,
|
|
6980
6993
|
divider,
|
|
@@ -6982,7 +6995,7 @@ const AlphaAttributeInput = ({
|
|
|
6982
6995
|
isRequired
|
|
6983
6996
|
}) => {
|
|
6984
6997
|
const [isFocused, setIsFocused] = React2.useState(false);
|
|
6985
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
6998
|
+
const className = cssClassName(COMPONENT_NAME$F, isFocused && 'isFocused');
|
|
6986
6999
|
const handleBlur = callback => {
|
|
6987
7000
|
setIsFocused(false);
|
|
6988
7001
|
if (callback) {
|
|
@@ -7002,16 +7015,16 @@ const AlphaAttributeInput = ({
|
|
|
7002
7015
|
}
|
|
7003
7016
|
};
|
|
7004
7017
|
const itemLabelMarkup = item.label ? /*#__PURE__*/jsxRuntimeExports.jsx("label", {
|
|
7005
|
-
className: `${COMPONENT_NAME$
|
|
7018
|
+
className: `${COMPONENT_NAME$F}__ItemLabelWrapper`,
|
|
7006
7019
|
children: item.label
|
|
7007
7020
|
}) : null;
|
|
7008
7021
|
const dividerMarkup = divider && index < items.length - 1 ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7009
|
-
className: `${COMPONENT_NAME$
|
|
7022
|
+
className: `${COMPONENT_NAME$F}__Divider`,
|
|
7010
7023
|
children: divider
|
|
7011
7024
|
}) : null;
|
|
7012
7025
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(React2.Fragment, {
|
|
7013
7026
|
children: [/*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
7014
|
-
className: `${COMPONENT_NAME$
|
|
7027
|
+
className: `${COMPONENT_NAME$F}__Item`,
|
|
7015
7028
|
children: [itemLabelMarkup, /*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
7016
7029
|
type: item.type,
|
|
7017
7030
|
value: item.value,
|
|
@@ -7028,17 +7041,17 @@ const AlphaAttributeInput = ({
|
|
|
7028
7041
|
}, index);
|
|
7029
7042
|
};
|
|
7030
7043
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7031
|
-
className: `${COMPONENT_NAME$
|
|
7044
|
+
className: `${COMPONENT_NAME$F}__LabelWrapper`,
|
|
7032
7045
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
7033
|
-
className: `${COMPONENT_NAME$
|
|
7046
|
+
className: `${COMPONENT_NAME$F}__Label`,
|
|
7034
7047
|
children: [label, isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7035
|
-
className: `${COMPONENT_NAME$
|
|
7048
|
+
className: `${COMPONENT_NAME$F}__IsRequiredSign`,
|
|
7036
7049
|
children: "*"
|
|
7037
7050
|
}) : null]
|
|
7038
7051
|
})
|
|
7039
7052
|
}) : null;
|
|
7040
7053
|
const itemsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7041
|
-
className: `${COMPONENT_NAME$
|
|
7054
|
+
className: `${COMPONENT_NAME$F}__ItemsWrapper`,
|
|
7042
7055
|
children: items.map(renderItem)
|
|
7043
7056
|
});
|
|
7044
7057
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -7047,7 +7060,7 @@ const AlphaAttributeInput = ({
|
|
|
7047
7060
|
});
|
|
7048
7061
|
};
|
|
7049
7062
|
|
|
7050
|
-
const COMPONENT_NAME$
|
|
7063
|
+
const COMPONENT_NAME$E = "AlphaBadge";
|
|
7051
7064
|
const AlphaBadge = ({
|
|
7052
7065
|
theme: themeProp,
|
|
7053
7066
|
children,
|
|
@@ -7060,9 +7073,9 @@ const AlphaBadge = ({
|
|
|
7060
7073
|
theme
|
|
7061
7074
|
} = useTheme();
|
|
7062
7075
|
const THEME_CLASS = `${theme}`;
|
|
7063
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7076
|
+
const className = cssClassName(COMPONENT_NAME$E, !themeProp && THEME_CLASS, isPrimary && "isPrimary", isDanger && "isDanger", isSuccess && "isSuccess", isWarning && "isWarning", themeProp && `${themeProp.toUpperCase()}`);
|
|
7064
7077
|
const childrenMarkup = children && /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7065
|
-
className: `${COMPONENT_NAME$
|
|
7078
|
+
className: `${COMPONENT_NAME$E}__TextWrapper`,
|
|
7066
7079
|
children: children
|
|
7067
7080
|
});
|
|
7068
7081
|
return /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
@@ -7071,7 +7084,7 @@ const AlphaBadge = ({
|
|
|
7071
7084
|
});
|
|
7072
7085
|
};
|
|
7073
7086
|
|
|
7074
|
-
const COMPONENT_NAME$
|
|
7087
|
+
const COMPONENT_NAME$D = "AlphaIcon";
|
|
7075
7088
|
const ICON_COLOR_VARIANTS = ["danger", "darkGray", "lightGray", "onDark", "primary", "success", "warning", "cloud", "klin", "link", "rainao", "workfloo", "rekon"];
|
|
7076
7089
|
const AlphaIcon = ({
|
|
7077
7090
|
source,
|
|
@@ -7090,10 +7103,10 @@ const AlphaIcon = ({
|
|
|
7090
7103
|
if (color && !ICON_COLOR_VARIANTS.includes(color)) {
|
|
7091
7104
|
console.warn(`The color ${color} is not supported for the AlphaIcon component when hasBackdrop is true.`);
|
|
7092
7105
|
}
|
|
7093
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7106
|
+
const className = cssClassName(COMPONENT_NAME$D, color && `is-${color}`, filled && "isFilled", outlined && "isOutlined", size && `is-${size}`, hasBackdrop && "hasBackdrop", source && `source-${sourceType}`);
|
|
7094
7107
|
const Source = source;
|
|
7095
7108
|
const StringSource = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7096
|
-
className: `${COMPONENT_NAME$
|
|
7109
|
+
className: `${COMPONENT_NAME$D}__StringSource`,
|
|
7097
7110
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7098
7111
|
children: source
|
|
7099
7112
|
})
|
|
@@ -7108,12 +7121,12 @@ const AlphaIcon = ({
|
|
|
7108
7121
|
});
|
|
7109
7122
|
};
|
|
7110
7123
|
|
|
7111
|
-
const COMPONENT_NAME$
|
|
7124
|
+
const COMPONENT_NAME$C = "AlphaSpinner";
|
|
7112
7125
|
const AlphaSpinner = ({
|
|
7113
7126
|
icon,
|
|
7114
7127
|
size
|
|
7115
7128
|
}) => {
|
|
7116
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7129
|
+
const className = cssClassName(COMPONENT_NAME$C);
|
|
7117
7130
|
let iconSource;
|
|
7118
7131
|
if (icon) {
|
|
7119
7132
|
if (isValidIcon(icon.icon)) {
|
|
@@ -7128,7 +7141,7 @@ const AlphaSpinner = ({
|
|
|
7128
7141
|
}
|
|
7129
7142
|
}
|
|
7130
7143
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7131
|
-
className: `${COMPONENT_NAME$
|
|
7144
|
+
className: `${COMPONENT_NAME$C}__IconWrapper`,
|
|
7132
7145
|
children: iconSource
|
|
7133
7146
|
}) : null;
|
|
7134
7147
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -7137,7 +7150,7 @@ const AlphaSpinner = ({
|
|
|
7137
7150
|
});
|
|
7138
7151
|
};
|
|
7139
7152
|
|
|
7140
|
-
const COMPONENT_NAME$
|
|
7153
|
+
const COMPONENT_NAME$B = "AlphaButton";
|
|
7141
7154
|
const AlphaButton = ({
|
|
7142
7155
|
ariaLabel,
|
|
7143
7156
|
children,
|
|
@@ -7173,7 +7186,7 @@ const AlphaButton = ({
|
|
|
7173
7186
|
} = useTheme();
|
|
7174
7187
|
const THEME_CLASS = `${theme}`;
|
|
7175
7188
|
const isIconOnly = !children && icon;
|
|
7176
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7189
|
+
const className = cssClassName(COMPONENT_NAME$B, !themeProp && THEME_CLASS, isPrimary && "isPrimary", isDanger && "isDanger", isTertiary && "isTertiary", isFullWidth && "isFullWidth", isLink && "isLink", isDisabled && "isDisabled", isLoading && "isLoading", size && `is-${size}`, textAlign && `has-text-${textAlign}`, icon && `has-icon-${iconPosition}`, isIconOnly && "onlyIcon", isIconOnly && isRounded && "isRounded", themeProp && `${themeProp.toUpperCase()}`);
|
|
7177
7190
|
const buttonProps = {
|
|
7178
7191
|
id,
|
|
7179
7192
|
type: isSubmit ? "submit" : "button",
|
|
@@ -7191,7 +7204,7 @@ const AlphaButton = ({
|
|
|
7191
7204
|
onTouchEnd
|
|
7192
7205
|
};
|
|
7193
7206
|
const childrenMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7194
|
-
className: `${COMPONENT_NAME$
|
|
7207
|
+
className: `${COMPONENT_NAME$B}__TextWrapper`,
|
|
7195
7208
|
children: children
|
|
7196
7209
|
}) : null;
|
|
7197
7210
|
let iconSource;
|
|
@@ -7217,11 +7230,11 @@ const AlphaButton = ({
|
|
|
7217
7230
|
}
|
|
7218
7231
|
}
|
|
7219
7232
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7220
|
-
className: `${COMPONENT_NAME$
|
|
7233
|
+
className: `${COMPONENT_NAME$B}__IconWrapper`,
|
|
7221
7234
|
children: iconSource
|
|
7222
7235
|
}) : null;
|
|
7223
7236
|
const spinnerMarkup = isLoading && /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7224
|
-
className: `${COMPONENT_NAME$
|
|
7237
|
+
className: `${COMPONENT_NAME$B}__SpinnerWrapper`,
|
|
7225
7238
|
children: spinnerIconSource
|
|
7226
7239
|
});
|
|
7227
7240
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("button", {
|
|
@@ -7231,7 +7244,7 @@ const AlphaButton = ({
|
|
|
7231
7244
|
});
|
|
7232
7245
|
};
|
|
7233
7246
|
|
|
7234
|
-
const COMPONENT_NAME$
|
|
7247
|
+
const COMPONENT_NAME$A = "AlphaChip";
|
|
7235
7248
|
const AlphaChip = ({
|
|
7236
7249
|
children,
|
|
7237
7250
|
hasError,
|
|
@@ -7244,13 +7257,13 @@ const AlphaChip = ({
|
|
|
7244
7257
|
theme: currentTheme
|
|
7245
7258
|
} = useTheme();
|
|
7246
7259
|
const THEME_CLASS = `${currentTheme}`;
|
|
7247
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7260
|
+
const className = cssClassName(COMPONENT_NAME$A, hasError && "hasError", isDisabled && "isDisabled", theme && `${theme.toUpperCase()}`, THEME_CLASS);
|
|
7248
7261
|
const childrenMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7249
|
-
className: `${COMPONENT_NAME$
|
|
7262
|
+
className: `${COMPONENT_NAME$A}__TextWrapper`,
|
|
7250
7263
|
children: children
|
|
7251
7264
|
}) : null;
|
|
7252
7265
|
const closeButtonMarkup = removeButtonIcon && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7253
|
-
className: `${COMPONENT_NAME$
|
|
7266
|
+
className: `${COMPONENT_NAME$A}__CloseButtonWrapper`,
|
|
7254
7267
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
7255
7268
|
onClick: onRemove,
|
|
7256
7269
|
icon: removeButtonIcon
|
|
@@ -7298,7 +7311,7 @@ const getPosition = (activator, tooltip, alignment) => {
|
|
|
7298
7311
|
};
|
|
7299
7312
|
};
|
|
7300
7313
|
|
|
7301
|
-
const COMPONENT_NAME$
|
|
7314
|
+
const COMPONENT_NAME$z = 'Alpha__TooltipOverlay';
|
|
7302
7315
|
const Overlay = ({
|
|
7303
7316
|
children,
|
|
7304
7317
|
activator,
|
|
@@ -7312,7 +7325,7 @@ const Overlay = ({
|
|
|
7312
7325
|
onClick
|
|
7313
7326
|
}) => {
|
|
7314
7327
|
const tooltipRef = React2.useRef(null);
|
|
7315
|
-
const overlayClassName = cssClassName(COMPONENT_NAME$
|
|
7328
|
+
const overlayClassName = cssClassName(COMPONENT_NAME$z, position && `is-${position}`, appearance && `is-${appearance}`, theme && appearance === 'default' && `is-${theme}`);
|
|
7316
7329
|
const [positionStyles, setPositionStyles] = React2.useState({
|
|
7317
7330
|
'--tooltip-overlay-top': 0,
|
|
7318
7331
|
'--tooltip-overlay-left': 0,
|
|
@@ -7363,7 +7376,7 @@ const Overlay = ({
|
|
|
7363
7376
|
return markup;
|
|
7364
7377
|
};
|
|
7365
7378
|
|
|
7366
|
-
const COMPONENT_NAME$
|
|
7379
|
+
const COMPONENT_NAME$y = 'AlphaTooltip';
|
|
7367
7380
|
const AlphaTooltip = ({
|
|
7368
7381
|
content,
|
|
7369
7382
|
children,
|
|
@@ -7385,7 +7398,7 @@ const AlphaTooltip = ({
|
|
|
7385
7398
|
const isMouseOver = React2.useRef(false);
|
|
7386
7399
|
const activatorContainer = React2.useRef(null);
|
|
7387
7400
|
const WrapperComponent = activatorWrapper;
|
|
7388
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7401
|
+
const className = cssClassName(COMPONENT_NAME$y);
|
|
7389
7402
|
const handleOpen = React2.useCallback(() => {
|
|
7390
7403
|
if (!isActivePersistence) {
|
|
7391
7404
|
setIsActive(true);
|
|
@@ -7668,7 +7681,7 @@ function getRangeDate(range, date) {
|
|
|
7668
7681
|
};
|
|
7669
7682
|
}
|
|
7670
7683
|
|
|
7671
|
-
const COMPONENT_NAME$
|
|
7684
|
+
const COMPONENT_NAME$x = 'DatePicker__Day';
|
|
7672
7685
|
const Day = /*#__PURE__*/React2.memo(function Day({
|
|
7673
7686
|
day,
|
|
7674
7687
|
isDisabled,
|
|
@@ -7679,7 +7692,7 @@ const Day = /*#__PURE__*/React2.memo(function Day({
|
|
|
7679
7692
|
onClick,
|
|
7680
7693
|
theme: themeProp
|
|
7681
7694
|
}) {
|
|
7682
|
-
const emptyDayClassName = cssClassName(COMPONENT_NAME$
|
|
7695
|
+
const emptyDayClassName = cssClassName(COMPONENT_NAME$x, !day && 'isEmpty');
|
|
7683
7696
|
if (!day) {
|
|
7684
7697
|
return /*#__PURE__*/jsxRuntimeExports.jsx("td", {
|
|
7685
7698
|
className: emptyDayClassName
|
|
@@ -7694,7 +7707,7 @@ const Day = /*#__PURE__*/React2.memo(function Day({
|
|
|
7694
7707
|
}
|
|
7695
7708
|
};
|
|
7696
7709
|
const today = isToday(new Date(), day);
|
|
7697
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7710
|
+
const className = cssClassName(COMPONENT_NAME$x, today && 'isToday', `theme-${themeProp || theme}`, isSelected && 'isSelected', isDisabled && 'isDisabled', isInRange && 'isInRange', isFirstSelectedDay && 'isFirstSelectedDay', isLastSelectedDay && 'isLastSelectedDay');
|
|
7698
7711
|
const date = day.getDate();
|
|
7699
7712
|
return /*#__PURE__*/jsxRuntimeExports.jsx("td", {
|
|
7700
7713
|
className: className,
|
|
@@ -7705,7 +7718,7 @@ const Day = /*#__PURE__*/React2.memo(function Day({
|
|
|
7705
7718
|
});
|
|
7706
7719
|
});
|
|
7707
7720
|
|
|
7708
|
-
const COMPONENT_NAME$
|
|
7721
|
+
const COMPONENT_NAME$w = 'DatePicker__Month';
|
|
7709
7722
|
const Month = ({
|
|
7710
7723
|
month = new Date().getMonth(),
|
|
7711
7724
|
year = new Date().getFullYear(),
|
|
@@ -7718,7 +7731,7 @@ const Month = ({
|
|
|
7718
7731
|
disableDates,
|
|
7719
7732
|
weekDays
|
|
7720
7733
|
}) => {
|
|
7721
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7734
|
+
const className = cssClassName(COMPONENT_NAME$w);
|
|
7722
7735
|
const weeks = React2.useMemo(() => getWeeksByMonth(month, year, weekStartsOn), [month, year, weekStartsOn]);
|
|
7723
7736
|
const handleDateClick = React2.useCallback(selectedDate => {
|
|
7724
7737
|
if (onChange) {
|
|
@@ -7762,7 +7775,7 @@ const Month = ({
|
|
|
7762
7775
|
});
|
|
7763
7776
|
};
|
|
7764
7777
|
|
|
7765
|
-
const COMPONENT_NAME$
|
|
7778
|
+
const COMPONENT_NAME$v = 'DatePIcker__YearField';
|
|
7766
7779
|
const YearField = ({
|
|
7767
7780
|
onChange,
|
|
7768
7781
|
value,
|
|
@@ -7773,7 +7786,7 @@ const YearField = ({
|
|
|
7773
7786
|
onKeyDown,
|
|
7774
7787
|
onKeyUp
|
|
7775
7788
|
}) => {
|
|
7776
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7789
|
+
const className = cssClassName(COMPONENT_NAME$v);
|
|
7777
7790
|
const handleChange = event => {
|
|
7778
7791
|
if (onChange) {
|
|
7779
7792
|
const value = event.target.value.trim();
|
|
@@ -7798,7 +7811,7 @@ const YearField = ({
|
|
|
7798
7811
|
});
|
|
7799
7812
|
};
|
|
7800
7813
|
|
|
7801
|
-
const COMPONENT_NAME$
|
|
7814
|
+
const COMPONENT_NAME$u = 'DatePicker__Header';
|
|
7802
7815
|
const Header$2 = ({
|
|
7803
7816
|
month,
|
|
7804
7817
|
year,
|
|
@@ -7806,7 +7819,7 @@ const Header$2 = ({
|
|
|
7806
7819
|
months
|
|
7807
7820
|
}) => {
|
|
7808
7821
|
const [yearValue, setYearValue] = React2.useState(year);
|
|
7809
|
-
const headerClassName = cssClassName(COMPONENT_NAME$
|
|
7822
|
+
const headerClassName = cssClassName(COMPONENT_NAME$u);
|
|
7810
7823
|
const handleMonthChange = React2.useCallback((month, year) => {
|
|
7811
7824
|
if (onChange) {
|
|
7812
7825
|
onChange(month, year);
|
|
@@ -7843,7 +7856,7 @@ const Header$2 = ({
|
|
|
7843
7856
|
appearance: "secondary",
|
|
7844
7857
|
onClick: () => handleMonthChange(previousMonth, previousYear)
|
|
7845
7858
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("span", {
|
|
7846
|
-
className: `${COMPONENT_NAME$
|
|
7859
|
+
className: `${COMPONENT_NAME$u}__DateLabel`,
|
|
7847
7860
|
children: [montName, /*#__PURE__*/jsxRuntimeExports.jsx(YearField, {
|
|
7848
7861
|
value: yearValue,
|
|
7849
7862
|
onChange: setYearValue,
|
|
@@ -7859,7 +7872,7 @@ const Header$2 = ({
|
|
|
7859
7872
|
});
|
|
7860
7873
|
};
|
|
7861
7874
|
|
|
7862
|
-
const COMPONENT_NAME$
|
|
7875
|
+
const COMPONENT_NAME$t = 'DatePicker';
|
|
7863
7876
|
function getMonthSelectedDate(selected) {
|
|
7864
7877
|
return selected instanceof Date ? {
|
|
7865
7878
|
start: selected,
|
|
@@ -7881,7 +7894,7 @@ const DatePicker = ({
|
|
|
7881
7894
|
months,
|
|
7882
7895
|
weekDays
|
|
7883
7896
|
}) => {
|
|
7884
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7897
|
+
const className = cssClassName(COMPONENT_NAME$t);
|
|
7885
7898
|
const handleDateChange = React2.useCallback(dateRange => {
|
|
7886
7899
|
if (onChange) {
|
|
7887
7900
|
onChange(dateRange);
|
|
@@ -16544,7 +16557,7 @@ function formatDate(date, toISO) {
|
|
|
16544
16557
|
return DateTime.fromJSDate(date).toFormat('dd/MM/yyyy');
|
|
16545
16558
|
}
|
|
16546
16559
|
|
|
16547
|
-
const COMPONENT_NAME$
|
|
16560
|
+
const COMPONENT_NAME$s = 'DateInput';
|
|
16548
16561
|
const AlphaInputDate = ({
|
|
16549
16562
|
ariaLabel,
|
|
16550
16563
|
disabled,
|
|
@@ -16570,7 +16583,7 @@ const AlphaInputDate = ({
|
|
|
16570
16583
|
const [isErrorTooltipActive, setIsErrorTooltipActive] = React2.useState(false);
|
|
16571
16584
|
const [selectedDate, setSelectedDate] = React2.useState();
|
|
16572
16585
|
const inputRef = React2.useRef(null);
|
|
16573
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
16586
|
+
const className = cssClassName(COMPONENT_NAME$s);
|
|
16574
16587
|
const handleMonthChange = (monthValue, yearValue) => {
|
|
16575
16588
|
setDate({
|
|
16576
16589
|
month: monthValue,
|
|
@@ -16695,7 +16708,7 @@ const AlphaInputDate = ({
|
|
|
16695
16708
|
weekDays: weekdays
|
|
16696
16709
|
});
|
|
16697
16710
|
const inputMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
16698
|
-
className: `${COMPONENT_NAME$
|
|
16711
|
+
className: `${COMPONENT_NAME$s}__InputWrapper`,
|
|
16699
16712
|
onClick: () => setIsPopoverActive(true),
|
|
16700
16713
|
ref: inputRef,
|
|
16701
16714
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaTooltip, {
|
|
@@ -16900,16 +16913,16 @@ const Tag = ({
|
|
|
16900
16913
|
});
|
|
16901
16914
|
};
|
|
16902
16915
|
|
|
16903
|
-
const COMPONENT_NAME$
|
|
16916
|
+
const COMPONENT_NAME$r = "Divider";
|
|
16904
16917
|
const Divider = ({
|
|
16905
16918
|
alignment = "left",
|
|
16906
16919
|
label
|
|
16907
16920
|
}) => {
|
|
16908
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
16921
|
+
const className = cssClassName(COMPONENT_NAME$r, alignment, !label && "no-label");
|
|
16909
16922
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
16910
|
-
className: `${COMPONENT_NAME$
|
|
16923
|
+
className: `${COMPONENT_NAME$r}__LabelWrapper`,
|
|
16911
16924
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
16912
|
-
className: `${COMPONENT_NAME$
|
|
16925
|
+
className: `${COMPONENT_NAME$r}__Label`,
|
|
16913
16926
|
children: label
|
|
16914
16927
|
})
|
|
16915
16928
|
}) : null;
|
|
@@ -17554,7 +17567,7 @@ const Panel$1 = ({
|
|
|
17554
17567
|
});
|
|
17555
17568
|
};
|
|
17556
17569
|
|
|
17557
|
-
const COMPONENT_NAME$
|
|
17570
|
+
const COMPONENT_NAME$q = 'Tabs';
|
|
17558
17571
|
const Tabs = ({
|
|
17559
17572
|
onSelect,
|
|
17560
17573
|
selected,
|
|
@@ -17566,7 +17579,7 @@ const Tabs = ({
|
|
|
17566
17579
|
const {
|
|
17567
17580
|
theme
|
|
17568
17581
|
} = useTheme();
|
|
17569
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
17582
|
+
const classNames = cssClassName(COMPONENT_NAME$q, `is${themeClassConverter(theme)}`);
|
|
17570
17583
|
const panelMarkup = children ? tabs.map((tab, index) => selected === index ? /*#__PURE__*/jsxRuntimeExports.jsx(Panel$1, {
|
|
17571
17584
|
id: tab.panelID || `${tab.id}-panel`,
|
|
17572
17585
|
children: children
|
|
@@ -17829,12 +17842,12 @@ const AlphaGraphicCard = ({
|
|
|
17829
17842
|
});
|
|
17830
17843
|
};
|
|
17831
17844
|
|
|
17832
|
-
const COMPONENT_NAME$
|
|
17845
|
+
const COMPONENT_NAME$p = "AlphaInlineError";
|
|
17833
17846
|
const AlphaInlineError = ({
|
|
17834
17847
|
icon,
|
|
17835
17848
|
children
|
|
17836
17849
|
}) => {
|
|
17837
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17850
|
+
const className = cssClassName(COMPONENT_NAME$p);
|
|
17838
17851
|
let iconSource;
|
|
17839
17852
|
if (icon) {
|
|
17840
17853
|
if (isValidIcon(icon.icon)) {
|
|
@@ -17848,11 +17861,11 @@ const AlphaInlineError = ({
|
|
|
17848
17861
|
}
|
|
17849
17862
|
}
|
|
17850
17863
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17851
|
-
className: `${COMPONENT_NAME$
|
|
17864
|
+
className: `${COMPONENT_NAME$p}__IconWrapper`,
|
|
17852
17865
|
children: iconSource
|
|
17853
17866
|
}) : null;
|
|
17854
17867
|
const messageMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
17855
|
-
className: `${COMPONENT_NAME$
|
|
17868
|
+
className: `${COMPONENT_NAME$p}__MessageWrapper`,
|
|
17856
17869
|
children: children
|
|
17857
17870
|
}) : null;
|
|
17858
17871
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -17861,8 +17874,8 @@ const AlphaInlineError = ({
|
|
|
17861
17874
|
});
|
|
17862
17875
|
};
|
|
17863
17876
|
|
|
17864
|
-
const COMPONENT_NAME$
|
|
17865
|
-
const className$1 = cssClassName(COMPONENT_NAME$
|
|
17877
|
+
const COMPONENT_NAME$o = "AlphaLabel";
|
|
17878
|
+
const className$1 = cssClassName(COMPONENT_NAME$o);
|
|
17866
17879
|
const AlphaLabel = ({
|
|
17867
17880
|
children,
|
|
17868
17881
|
isRequired,
|
|
@@ -17870,7 +17883,7 @@ const AlphaLabel = ({
|
|
|
17870
17883
|
id
|
|
17871
17884
|
}) => {
|
|
17872
17885
|
const requiredSignMarkup = isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
17873
|
-
className: `${COMPONENT_NAME$
|
|
17886
|
+
className: `${COMPONENT_NAME$o}__RequiredSign`,
|
|
17874
17887
|
children: "*"
|
|
17875
17888
|
}) : null;
|
|
17876
17889
|
const labelMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
@@ -17878,7 +17891,7 @@ const AlphaLabel = ({
|
|
|
17878
17891
|
children: [children, requiredSignMarkup]
|
|
17879
17892
|
});
|
|
17880
17893
|
const actionMarkup = action ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17881
|
-
className: `${COMPONENT_NAME$
|
|
17894
|
+
className: `${COMPONENT_NAME$o}__ActionWrapper`,
|
|
17882
17895
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
17883
17896
|
id: action.id,
|
|
17884
17897
|
isDanger: action.isDanger,
|
|
@@ -17896,12 +17909,12 @@ const AlphaLabel = ({
|
|
|
17896
17909
|
});
|
|
17897
17910
|
};
|
|
17898
17911
|
|
|
17899
|
-
const COMPONENT_NAME$
|
|
17912
|
+
const COMPONENT_NAME$n = "AlphaLabelledField__HelpText";
|
|
17900
17913
|
const HelpText = ({
|
|
17901
17914
|
message,
|
|
17902
17915
|
icon
|
|
17903
17916
|
}) => {
|
|
17904
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17917
|
+
const className = cssClassName(COMPONENT_NAME$n);
|
|
17905
17918
|
let iconSource;
|
|
17906
17919
|
if (icon) {
|
|
17907
17920
|
if (isValidIcon(icon.icon)) {
|
|
@@ -17915,11 +17928,11 @@ const HelpText = ({
|
|
|
17915
17928
|
}
|
|
17916
17929
|
}
|
|
17917
17930
|
const iconMarkup = iconSource ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17918
|
-
className: `${COMPONENT_NAME$
|
|
17931
|
+
className: `${COMPONENT_NAME$n}__IconWrapper`,
|
|
17919
17932
|
children: iconSource
|
|
17920
17933
|
}) : null;
|
|
17921
17934
|
const messageMarkup = message ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17922
|
-
className: `${COMPONENT_NAME$
|
|
17935
|
+
className: `${COMPONENT_NAME$n}__MessageWrapper`,
|
|
17923
17936
|
children: message
|
|
17924
17937
|
}) : null;
|
|
17925
17938
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -17928,7 +17941,7 @@ const HelpText = ({
|
|
|
17928
17941
|
});
|
|
17929
17942
|
};
|
|
17930
17943
|
|
|
17931
|
-
const COMPONENT_NAME$
|
|
17944
|
+
const COMPONENT_NAME$m = "AlphaLabelledField";
|
|
17932
17945
|
const AlphaLabelledField = ({
|
|
17933
17946
|
label,
|
|
17934
17947
|
children,
|
|
@@ -17938,9 +17951,9 @@ const AlphaLabelledField = ({
|
|
|
17938
17951
|
id,
|
|
17939
17952
|
isRequired
|
|
17940
17953
|
}) => {
|
|
17941
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17954
|
+
const className = cssClassName(COMPONENT_NAME$m);
|
|
17942
17955
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17943
|
-
className: `${COMPONENT_NAME$
|
|
17956
|
+
className: `${COMPONENT_NAME$m}__LabelWrapper`,
|
|
17944
17957
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabel, {
|
|
17945
17958
|
action: action,
|
|
17946
17959
|
id: id,
|
|
@@ -17949,7 +17962,7 @@ const AlphaLabelledField = ({
|
|
|
17949
17962
|
})
|
|
17950
17963
|
}) : null;
|
|
17951
17964
|
const errorMarkup = error ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17952
|
-
className: `${COMPONENT_NAME$
|
|
17965
|
+
className: `${COMPONENT_NAME$m}__ErrorWrapper`,
|
|
17953
17966
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaInlineError, {
|
|
17954
17967
|
icon: error.icon,
|
|
17955
17968
|
children: error.message
|
|
@@ -17965,7 +17978,7 @@ const AlphaLabelledField = ({
|
|
|
17965
17978
|
isActive: Boolean(errorMarkup),
|
|
17966
17979
|
appearance: "error",
|
|
17967
17980
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17968
|
-
className: `${COMPONENT_NAME$
|
|
17981
|
+
className: `${COMPONENT_NAME$m}__ContentWrapper`,
|
|
17969
17982
|
children: children
|
|
17970
17983
|
})
|
|
17971
17984
|
}) : children;
|
|
@@ -17975,7 +17988,7 @@ const AlphaLabelledField = ({
|
|
|
17975
17988
|
});
|
|
17976
17989
|
};
|
|
17977
17990
|
|
|
17978
|
-
const COMPONENT_NAME$
|
|
17991
|
+
const COMPONENT_NAME$l = "AlphaInputTag";
|
|
17979
17992
|
const InputTag$1 = ({
|
|
17980
17993
|
ariaLabel,
|
|
17981
17994
|
id,
|
|
@@ -18034,7 +18047,7 @@ const InputTag$1 = ({
|
|
|
18034
18047
|
};
|
|
18035
18048
|
const renderTag = (tag, index) => {
|
|
18036
18049
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18037
|
-
className: `${COMPONENT_NAME$
|
|
18050
|
+
className: `${COMPONENT_NAME$l}__TagWrapper`,
|
|
18038
18051
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaChip, {
|
|
18039
18052
|
removeButtonIcon: tagRemoveIcon,
|
|
18040
18053
|
onRemove: () => handleRemoveTag(index),
|
|
@@ -18042,8 +18055,8 @@ const InputTag$1 = ({
|
|
|
18042
18055
|
})
|
|
18043
18056
|
}, index);
|
|
18044
18057
|
};
|
|
18045
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18046
|
-
const inputWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18058
|
+
const className = cssClassName(COMPONENT_NAME$l);
|
|
18059
|
+
const inputWrapperClassName = cssClassName(`${COMPONENT_NAME$l}__InputWrapper`, isFocused && "isFocused", isDisabled && "isDisabled", hasError && "hasError");
|
|
18047
18060
|
const handleInputChange = event => {
|
|
18048
18061
|
if (onInputTextChange) {
|
|
18049
18062
|
onInputTextChange(event.target.value);
|
|
@@ -18081,12 +18094,12 @@ const InputTag$1 = ({
|
|
|
18081
18094
|
});
|
|
18082
18095
|
};
|
|
18083
18096
|
|
|
18084
|
-
const COMPONENT_NAME$
|
|
18097
|
+
const COMPONENT_NAME$k = "AlphaInputText";
|
|
18085
18098
|
const AlphaInputText = ({
|
|
18086
18099
|
isDisabled,
|
|
18087
18100
|
label
|
|
18088
18101
|
}) => {
|
|
18089
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18102
|
+
const className = cssClassName(COMPONENT_NAME$k, isDisabled && "isDisabled");
|
|
18090
18103
|
return /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabelledField, {
|
|
18091
18104
|
label: label,
|
|
18092
18105
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -18095,7 +18108,7 @@ const AlphaInputText = ({
|
|
|
18095
18108
|
});
|
|
18096
18109
|
};
|
|
18097
18110
|
|
|
18098
|
-
const COMPONENT_NAME$
|
|
18111
|
+
const COMPONENT_NAME$j = "AlphaMultiSelectionPicker__Picker__List";
|
|
18099
18112
|
const List = ({
|
|
18100
18113
|
items,
|
|
18101
18114
|
selected,
|
|
@@ -18105,7 +18118,7 @@ const List = ({
|
|
|
18105
18118
|
const scrollToSelected = () => {
|
|
18106
18119
|
const listWrapper = listWrapperRef.current;
|
|
18107
18120
|
if (listWrapper) {
|
|
18108
|
-
const selectedElement = listWrapper.querySelector(`.${COMPONENT_NAME$
|
|
18121
|
+
const selectedElement = listWrapper.querySelector(`.${COMPONENT_NAME$j}__ListItem--selected`);
|
|
18109
18122
|
if (selectedElement) {
|
|
18110
18123
|
const {
|
|
18111
18124
|
top
|
|
@@ -18134,16 +18147,16 @@ const List = ({
|
|
|
18134
18147
|
value
|
|
18135
18148
|
} = item;
|
|
18136
18149
|
const isSelected = Boolean(selected !== null && selected !== undefined && selected === value);
|
|
18137
|
-
const className = cssClassName(`${COMPONENT_NAME$
|
|
18150
|
+
const className = cssClassName(`${COMPONENT_NAME$j}__ListItem`, isSelected && "selected");
|
|
18138
18151
|
const handleClick = () => handleChange(value);
|
|
18139
18152
|
return /*#__PURE__*/jsxRuntimeExports.jsx("li", {
|
|
18140
18153
|
className: className,
|
|
18141
18154
|
onClick: handleClick,
|
|
18142
18155
|
children: label
|
|
18143
|
-
}, `${COMPONENT_NAME$
|
|
18156
|
+
}, `${COMPONENT_NAME$j}__ListItem-${index}`);
|
|
18144
18157
|
};
|
|
18145
18158
|
const itemsMarkup = items ? items.map(renderItem) : null;
|
|
18146
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18159
|
+
const className = cssClassName(COMPONENT_NAME$j);
|
|
18147
18160
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18148
18161
|
className: className,
|
|
18149
18162
|
ref: listWrapperRef,
|
|
@@ -18153,7 +18166,7 @@ const List = ({
|
|
|
18153
18166
|
});
|
|
18154
18167
|
};
|
|
18155
18168
|
|
|
18156
|
-
const COMPONENT_NAME$
|
|
18169
|
+
const COMPONENT_NAME$i = 'AlphaMultiSelectionPicker__Picker';
|
|
18157
18170
|
const Picker = ({
|
|
18158
18171
|
headers,
|
|
18159
18172
|
items,
|
|
@@ -18176,11 +18189,11 @@ const Picker = ({
|
|
|
18176
18189
|
}
|
|
18177
18190
|
};
|
|
18178
18191
|
const renderHeader = (header, index) => /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18179
|
-
className: `${COMPONENT_NAME$
|
|
18192
|
+
className: `${COMPONENT_NAME$i}__HeaderItem`,
|
|
18180
18193
|
children: capitalize(header)
|
|
18181
|
-
}, `${COMPONENT_NAME$
|
|
18194
|
+
}, `${COMPONENT_NAME$i}__HeaderItem-${index}`);
|
|
18182
18195
|
const headersMarkup = headers ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18183
|
-
className: `${COMPONENT_NAME$
|
|
18196
|
+
className: `${COMPONENT_NAME$i}__HeadersMarkup`,
|
|
18184
18197
|
children: headers.map(renderHeader)
|
|
18185
18198
|
}) : null;
|
|
18186
18199
|
const renderList = (listItems, index) => {
|
|
@@ -18189,13 +18202,13 @@ const Picker = ({
|
|
|
18189
18202
|
items: listItems,
|
|
18190
18203
|
onChange: value => handleChange(value, index),
|
|
18191
18204
|
selected: selectedValue
|
|
18192
|
-
}, `${COMPONENT_NAME$
|
|
18205
|
+
}, `${COMPONENT_NAME$i}__List-${index}`);
|
|
18193
18206
|
};
|
|
18194
18207
|
const itemsListsMarkup = items ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18195
|
-
className: `${COMPONENT_NAME$
|
|
18208
|
+
className: `${COMPONENT_NAME$i}__ItemsListWrapper`,
|
|
18196
18209
|
children: items.map(renderList)
|
|
18197
18210
|
}) : null;
|
|
18198
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18211
|
+
const className = cssClassName(COMPONENT_NAME$i, theme);
|
|
18199
18212
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18200
18213
|
className: className,
|
|
18201
18214
|
children: [headersMarkup, itemsListsMarkup]
|
|
@@ -18275,7 +18288,7 @@ const AlphaSegmentedControl = ({
|
|
|
18275
18288
|
|
|
18276
18289
|
const SideMenuContext = /*#__PURE__*/React2.createContext({});
|
|
18277
18290
|
|
|
18278
|
-
const COMPONENT_NAME$
|
|
18291
|
+
const COMPONENT_NAME$h = "AlphaSideMenu__Item";
|
|
18279
18292
|
const Item$2 = ({
|
|
18280
18293
|
label,
|
|
18281
18294
|
isDisabled,
|
|
@@ -18301,11 +18314,11 @@ const Item$2 = ({
|
|
|
18301
18314
|
const isCollapsed = isCollapsedProp !== undefined ? isCollapsedProp : collapsed;
|
|
18302
18315
|
const AnchorComponent = !isExternal ? anchorComponent || "a" : "a";
|
|
18303
18316
|
const isActive = React2.useMemo(() => {
|
|
18304
|
-
if (location && url) {
|
|
18317
|
+
if (location?.pathname && url) {
|
|
18305
18318
|
return isExact ? location.pathname === url : location.pathname.includes(url);
|
|
18306
18319
|
}
|
|
18307
18320
|
return isActiveProp;
|
|
18308
|
-
}, [location, isExact, isActiveProp, url]);
|
|
18321
|
+
}, [location?.pathname, isExact, isActiveProp, url]);
|
|
18309
18322
|
React2.useEffect(() => {
|
|
18310
18323
|
if (isActive && subNavigationItems) {
|
|
18311
18324
|
setCurrentTierItems?.(subNavigationItems || [], {
|
|
@@ -18323,7 +18336,7 @@ const Item$2 = ({
|
|
|
18323
18336
|
}
|
|
18324
18337
|
}, [isActive]);
|
|
18325
18338
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18326
|
-
className: `${COMPONENT_NAME$
|
|
18339
|
+
className: `${COMPONENT_NAME$h}__Label`,
|
|
18327
18340
|
children: label
|
|
18328
18341
|
}) : null;
|
|
18329
18342
|
const iconSource = icon && isValidIcon(icon?.icon) ? /*#__PURE__*/jsxRuntimeExports.jsx(AlphaIcon, {
|
|
@@ -18333,7 +18346,7 @@ const Item$2 = ({
|
|
|
18333
18346
|
children: icon
|
|
18334
18347
|
});
|
|
18335
18348
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18336
|
-
className: `${COMPONENT_NAME$
|
|
18349
|
+
className: `${COMPONENT_NAME$h}__IconWrapper`,
|
|
18337
18350
|
children: iconSource
|
|
18338
18351
|
}) : null;
|
|
18339
18352
|
const handleClick = () => {
|
|
@@ -18366,7 +18379,7 @@ const Item$2 = ({
|
|
|
18366
18379
|
position: "right",
|
|
18367
18380
|
children: anchorMarkup
|
|
18368
18381
|
}) : null;
|
|
18369
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18382
|
+
const classNames = cssClassName(COMPONENT_NAME$h, isDisabled && "isDisabled", isActive && "isActive", truncateText && "isTruncated", (isCollapsed !== undefined ? isCollapsed : collapsed) && "isCollapsed");
|
|
18370
18383
|
if (isVisible !== undefined && !isVisible(location, {
|
|
18371
18384
|
label,
|
|
18372
18385
|
url,
|
|
@@ -18384,7 +18397,7 @@ const Item$2 = ({
|
|
|
18384
18397
|
});
|
|
18385
18398
|
};
|
|
18386
18399
|
|
|
18387
|
-
const COMPONENT_NAME$
|
|
18400
|
+
const COMPONENT_NAME$g = "AlphaSideMenu__Section";
|
|
18388
18401
|
const Section$1 = ({
|
|
18389
18402
|
items,
|
|
18390
18403
|
fill,
|
|
@@ -18396,7 +18409,7 @@ const Section$1 = ({
|
|
|
18396
18409
|
collapsed
|
|
18397
18410
|
} = React2.useContext(SideMenuContext);
|
|
18398
18411
|
const isCollapsed = isCollapsedProp !== undefined ? isCollapsedProp : collapsed;
|
|
18399
|
-
const titleClassNames = cssClassName(`${COMPONENT_NAME$
|
|
18412
|
+
const titleClassNames = cssClassName(`${COMPONENT_NAME$g}__TitleWrapper`, (isCollapsed !== undefined ? isCollapsed : collapsed) && "isCollapsed");
|
|
18400
18413
|
const titleMarkup = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18401
18414
|
// layout
|
|
18402
18415
|
className: titleClassNames
|
|
@@ -18442,10 +18455,10 @@ const Section$1 = ({
|
|
|
18442
18455
|
}, `alpha-side-menu-item-${index}`);
|
|
18443
18456
|
};
|
|
18444
18457
|
const itemsMarkup = items && items.length > 0 ? /*#__PURE__*/jsxRuntimeExports.jsx("ul", {
|
|
18445
|
-
className: `${COMPONENT_NAME$
|
|
18458
|
+
className: `${COMPONENT_NAME$g}__Items`,
|
|
18446
18459
|
children: items.map(renderItem)
|
|
18447
18460
|
}) : null;
|
|
18448
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18461
|
+
const classNames = cssClassName(COMPONENT_NAME$g, fill && "isFill");
|
|
18449
18462
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18450
18463
|
className: classNames
|
|
18451
18464
|
// layout
|
|
@@ -18458,7 +18471,7 @@ const Section$1 = ({
|
|
|
18458
18471
|
});
|
|
18459
18472
|
};
|
|
18460
18473
|
|
|
18461
|
-
const COMPONENT_NAME$
|
|
18474
|
+
const COMPONENT_NAME$f = "AlphaSideMenu__Tier";
|
|
18462
18475
|
const Tier = ({
|
|
18463
18476
|
children,
|
|
18464
18477
|
title,
|
|
@@ -18473,12 +18486,12 @@ const Tier = ({
|
|
|
18473
18486
|
const isMenuCollapsed = isCollapsed !== undefined ? isCollapsed : collapsed;
|
|
18474
18487
|
const titleMarkup = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18475
18488
|
// layout
|
|
18476
|
-
className: `${COMPONENT_NAME$
|
|
18489
|
+
className: `${COMPONENT_NAME$f}__TitleWrapper`,
|
|
18477
18490
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18478
18491
|
children: title
|
|
18479
18492
|
})
|
|
18480
18493
|
}) : null;
|
|
18481
|
-
const cssExpandButtonWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18494
|
+
const cssExpandButtonWrapperClassName = cssClassName(`${COMPONENT_NAME$f}__ExpandButtonWrapper`, hasSubNavigation && "isCollapsed");
|
|
18482
18495
|
const expandButtonMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18483
18496
|
// layout
|
|
18484
18497
|
className: cssExpandButtonWrapperClassName,
|
|
@@ -18488,7 +18501,7 @@ const Tier = ({
|
|
|
18488
18501
|
onClick: onExpand
|
|
18489
18502
|
})
|
|
18490
18503
|
});
|
|
18491
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18504
|
+
const classNames = cssClassName(COMPONENT_NAME$f, isMenuCollapsed && "isCollapsed");
|
|
18492
18505
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18493
18506
|
className: classNames
|
|
18494
18507
|
// initial={false}
|
|
@@ -18502,7 +18515,7 @@ const Tier = ({
|
|
|
18502
18515
|
});
|
|
18503
18516
|
};
|
|
18504
18517
|
|
|
18505
|
-
const COMPONENT_NAME$
|
|
18518
|
+
const COMPONENT_NAME$e = "AlphaSideMenu";
|
|
18506
18519
|
const AlphaSideMenu = ({
|
|
18507
18520
|
children,
|
|
18508
18521
|
collapsed,
|
|
@@ -18523,7 +18536,7 @@ const AlphaSideMenu = ({
|
|
|
18523
18536
|
console.error("AlphaSideMenu only accepts Section components as children");
|
|
18524
18537
|
}
|
|
18525
18538
|
});
|
|
18526
|
-
const cssClassNames = cssClassName(COMPONENT_NAME$
|
|
18539
|
+
const cssClassNames = cssClassName(COMPONENT_NAME$e, isCollapsed && "isCollapsed");
|
|
18527
18540
|
const handleSetCurrentTierItems = (items, item) => {
|
|
18528
18541
|
if (!item?.isExternal) {
|
|
18529
18542
|
if (!items.length) {
|
|
@@ -18576,7 +18589,7 @@ const StepDefault = {
|
|
|
18576
18589
|
status: 'incomplete'
|
|
18577
18590
|
};
|
|
18578
18591
|
|
|
18579
|
-
const COMPONENT_NAME$
|
|
18592
|
+
const COMPONENT_NAME$d = 'AlphaStepper__Step';
|
|
18580
18593
|
const Step = ({
|
|
18581
18594
|
iconMarkup,
|
|
18582
18595
|
label,
|
|
@@ -18589,20 +18602,20 @@ const Step = ({
|
|
|
18589
18602
|
const {
|
|
18590
18603
|
theme
|
|
18591
18604
|
} = useTheme();
|
|
18592
|
-
const itemClassName = cssClassName(`${COMPONENT_NAME$
|
|
18605
|
+
const itemClassName = cssClassName(`${COMPONENT_NAME$d}__Item`, isComplete && `is-${theme}-light-after`, isInactive && 'is-inactive-light-after', isSuccess && 'is-success-light-after', isSuccess && 'is-success-light-before', isLastStepComplete && `is-${theme}-light-before`, isLastStepInactive && 'is-inactive-light-before');
|
|
18593
18606
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18594
|
-
className: COMPONENT_NAME$
|
|
18607
|
+
className: COMPONENT_NAME$d,
|
|
18595
18608
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18596
18609
|
className: itemClassName,
|
|
18597
18610
|
children: iconMarkup
|
|
18598
18611
|
}), /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18599
|
-
className: `${COMPONENT_NAME$
|
|
18612
|
+
className: `${COMPONENT_NAME$d}__Label`,
|
|
18600
18613
|
children: label
|
|
18601
18614
|
})]
|
|
18602
18615
|
});
|
|
18603
18616
|
};
|
|
18604
18617
|
|
|
18605
|
-
const COMPONENT_NAME$
|
|
18618
|
+
const COMPONENT_NAME$c = "AlphaStepper";
|
|
18606
18619
|
const getSourceIcon = icon => {
|
|
18607
18620
|
if (icon) {
|
|
18608
18621
|
if (isValidIcon(icon.icon)) {
|
|
@@ -18629,7 +18642,7 @@ const AlphaStepper = ({
|
|
|
18629
18642
|
...StepDefault
|
|
18630
18643
|
}, index) => {
|
|
18631
18644
|
const lastStepStatus = steps[index - 1] ? steps[index - 1].status : "";
|
|
18632
|
-
const iconClassName = cssClassName(`${COMPONENT_NAME$
|
|
18645
|
+
const iconClassName = cssClassName(`${COMPONENT_NAME$c}__IconWrapper`, (step.status === "complete" || step.status === "active") && `is-${theme}`, step.status !== "complete" && `is-inactive`, step.hasError && errorIcon && "is-danger", isSuccess && `is-success`);
|
|
18633
18646
|
let iconSource = getSourceIcon(incompleteIcon);
|
|
18634
18647
|
if (step.hasError && errorIcon) iconSource = getSourceIcon(errorIcon);
|
|
18635
18648
|
if (step.status === "complete") iconSource = getSourceIcon(completeIcon);
|
|
@@ -18649,23 +18662,23 @@ const AlphaStepper = ({
|
|
|
18649
18662
|
isSuccess: isSuccess,
|
|
18650
18663
|
isLastStepComplete: isLastStepComplete,
|
|
18651
18664
|
isLastStepInactive: isLastStepInactive
|
|
18652
|
-
}, `${COMPONENT_NAME$
|
|
18665
|
+
}, `${COMPONENT_NAME$c}-${index}`);
|
|
18653
18666
|
};
|
|
18654
18667
|
const stepsMarkup = steps ? steps.map(renderStep) : null;
|
|
18655
18668
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18656
|
-
className: `${COMPONENT_NAME$
|
|
18669
|
+
className: `${COMPONENT_NAME$c}__Container`,
|
|
18657
18670
|
children: stepsMarkup
|
|
18658
18671
|
});
|
|
18659
18672
|
};
|
|
18660
18673
|
|
|
18661
|
-
const COMPONENT_NAME$
|
|
18674
|
+
const COMPONENT_NAME$b = "AlphaTag";
|
|
18662
18675
|
const AlphaTag = ({
|
|
18663
18676
|
color,
|
|
18664
18677
|
children
|
|
18665
18678
|
}) => {
|
|
18666
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18679
|
+
const className = cssClassName(COMPONENT_NAME$b, color && `is-${color.color}-${color.intensity}`);
|
|
18667
18680
|
const childrenMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18668
|
-
className: `${COMPONENT_NAME$
|
|
18681
|
+
className: `${COMPONENT_NAME$b}__TextWrapper`,
|
|
18669
18682
|
children: children
|
|
18670
18683
|
});
|
|
18671
18684
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -18681,7 +18694,7 @@ const StatusIcon = {
|
|
|
18681
18694
|
Warning: WarningIcon
|
|
18682
18695
|
};
|
|
18683
18696
|
|
|
18684
|
-
const COMPONENT_NAME$
|
|
18697
|
+
const COMPONENT_NAME$a = "AlphaTile";
|
|
18685
18698
|
const AlphaTile = ({
|
|
18686
18699
|
isSelected,
|
|
18687
18700
|
icon,
|
|
@@ -18693,8 +18706,8 @@ const AlphaTile = ({
|
|
|
18693
18706
|
const {
|
|
18694
18707
|
theme
|
|
18695
18708
|
} = useTheme();
|
|
18696
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18697
|
-
const statusWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18709
|
+
const className = cssClassName(COMPONENT_NAME$a, `is${themeClassConverter(themeProp || theme)}`, isSelected && "isSelected");
|
|
18710
|
+
const statusWrapperClassName = cssClassName(`${COMPONENT_NAME$a}--StatusWrapper`, status && `is${status}`);
|
|
18698
18711
|
let iconSource;
|
|
18699
18712
|
if (icon) {
|
|
18700
18713
|
if (isValidIcon(icon.icon)) {
|
|
@@ -18709,21 +18722,21 @@ const AlphaTile = ({
|
|
|
18709
18722
|
}
|
|
18710
18723
|
}
|
|
18711
18724
|
const iconWrapper = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18712
|
-
className: `${COMPONENT_NAME$
|
|
18725
|
+
className: `${COMPONENT_NAME$a}__IconWrapper`,
|
|
18713
18726
|
children: iconSource
|
|
18714
18727
|
}) : null;
|
|
18715
18728
|
const mediaMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18716
|
-
className: `${COMPONENT_NAME$
|
|
18729
|
+
className: `${COMPONENT_NAME$a}__MediaWrapper`,
|
|
18717
18730
|
children: iconWrapper
|
|
18718
18731
|
}) : null;
|
|
18719
18732
|
const titleWrapper = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18720
18733
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18721
|
-
className: `${COMPONENT_NAME$
|
|
18734
|
+
className: `${COMPONENT_NAME$a}__TitleWrapper`,
|
|
18722
18735
|
children: title
|
|
18723
18736
|
})
|
|
18724
18737
|
}) : null;
|
|
18725
18738
|
const HeaderWrapper = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18726
|
-
className: `${COMPONENT_NAME$
|
|
18739
|
+
className: `${COMPONENT_NAME$a}__HeaderWrapper`,
|
|
18727
18740
|
children: [mediaMarkup, titleWrapper]
|
|
18728
18741
|
});
|
|
18729
18742
|
const statusIcon = status ? StatusIcon[status] : "";
|
|
@@ -18742,7 +18755,7 @@ const AlphaTile = ({
|
|
|
18742
18755
|
});
|
|
18743
18756
|
};
|
|
18744
18757
|
|
|
18745
|
-
const COMPONENT_NAME$
|
|
18758
|
+
const COMPONENT_NAME$9 = "TimeSelector";
|
|
18746
18759
|
const TimeSelector = ({
|
|
18747
18760
|
plurals,
|
|
18748
18761
|
singulars,
|
|
@@ -18874,7 +18887,7 @@ const TimeSelector = ({
|
|
|
18874
18887
|
let min;
|
|
18875
18888
|
if (valuesMaxMin) [min, max] = valuesMaxMin;
|
|
18876
18889
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18877
|
-
className: `${COMPONENT_NAME$
|
|
18890
|
+
className: `${COMPONENT_NAME$9}__InnerField`,
|
|
18878
18891
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
18879
18892
|
type: "number",
|
|
18880
18893
|
value: elValue,
|
|
@@ -18892,20 +18905,20 @@ const TimeSelector = ({
|
|
|
18892
18905
|
}, index);
|
|
18893
18906
|
};
|
|
18894
18907
|
const fieldsMarkup = Object.keys(singulars).map(renderField);
|
|
18895
|
-
const fieldClass = cssClassName(`${COMPONENT_NAME$
|
|
18908
|
+
const fieldClass = cssClassName(`${COMPONENT_NAME$9}__Field`, (isFocused || isActive) && "isFocused");
|
|
18896
18909
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18897
|
-
className: `${COMPONENT_NAME$
|
|
18910
|
+
className: `${COMPONENT_NAME$9}__LabelWrapper`,
|
|
18898
18911
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabel, {
|
|
18899
18912
|
isRequired: isRequired,
|
|
18900
18913
|
children: label
|
|
18901
18914
|
})
|
|
18902
18915
|
}) : null;
|
|
18903
18916
|
const helpTextMarkup = helpText ? helpText && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18904
|
-
className: `${COMPONENT_NAME$
|
|
18917
|
+
className: `${COMPONENT_NAME$9}__HelpTextWrapper`,
|
|
18905
18918
|
children: helpText
|
|
18906
18919
|
}) : null;
|
|
18907
18920
|
const fieldMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18908
|
-
className: `${COMPONENT_NAME$
|
|
18921
|
+
className: `${COMPONENT_NAME$9}__FieldWrapper`,
|
|
18909
18922
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs(AlphaTooltip, {
|
|
18910
18923
|
content: error,
|
|
18911
18924
|
appearance: "error",
|
|
@@ -18937,7 +18950,7 @@ const TimeSelector = ({
|
|
|
18937
18950
|
React2.useEffect(() => {
|
|
18938
18951
|
setItems(getItemsMultiSelectionPicker());
|
|
18939
18952
|
}, [value]);
|
|
18940
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18953
|
+
const className = cssClassName(COMPONENT_NAME$9, theme, !value && "isEmpty");
|
|
18941
18954
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18942
18955
|
className: className,
|
|
18943
18956
|
children: [popoverMarkup, helpTextMarkup]
|
|
@@ -18948,7 +18961,7 @@ function getTimeValue(value) {
|
|
|
18948
18961
|
return value < 10 ? `0${value}` : `${value}`;
|
|
18949
18962
|
}
|
|
18950
18963
|
|
|
18951
|
-
const COMPONENT_NAME$
|
|
18964
|
+
const COMPONENT_NAME$8 = "Totalizer";
|
|
18952
18965
|
const Totalizer = ({
|
|
18953
18966
|
action,
|
|
18954
18967
|
direction,
|
|
@@ -18964,9 +18977,9 @@ const Totalizer = ({
|
|
|
18964
18977
|
theme
|
|
18965
18978
|
} = useTheme();
|
|
18966
18979
|
const themeClass = `has-Theme${themeProp ? themeProp.toUpperCase() : theme.toUpperCase()}`;
|
|
18967
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18980
|
+
const className = cssClassName(COMPONENT_NAME$8, themeClass, isDisabled && "isDisabled", isFocused && "isFocused", direction && `has-${direction}Direction`);
|
|
18968
18981
|
const titleMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18969
|
-
className: `${COMPONENT_NAME$
|
|
18982
|
+
className: `${COMPONENT_NAME$8}__TitleWrapper`,
|
|
18970
18983
|
children: label
|
|
18971
18984
|
}) : null;
|
|
18972
18985
|
let iconSource;
|
|
@@ -18982,28 +18995,28 @@ const Totalizer = ({
|
|
|
18982
18995
|
}
|
|
18983
18996
|
}
|
|
18984
18997
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18985
|
-
className: `${COMPONENT_NAME$
|
|
18998
|
+
className: `${COMPONENT_NAME$8}__IconWrapper`,
|
|
18986
18999
|
children: iconSource
|
|
18987
19000
|
}) : null;
|
|
18988
19001
|
const headerMarkup = titleMarkup || iconMarkup ? /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18989
|
-
className: `${COMPONENT_NAME$
|
|
19002
|
+
className: `${COMPONENT_NAME$8}__HeaderWrapper`,
|
|
18990
19003
|
children: [titleMarkup, iconMarkup]
|
|
18991
19004
|
}) : null;
|
|
18992
19005
|
const valueMarkup = value ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18993
|
-
className: `${COMPONENT_NAME$
|
|
19006
|
+
className: `${COMPONENT_NAME$8}__ValueWrapper`,
|
|
18994
19007
|
children: value
|
|
18995
19008
|
}) : null;
|
|
18996
19009
|
const placeholderValueMarkup = placeholderValue ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18997
|
-
className: `${COMPONENT_NAME$
|
|
19010
|
+
className: `${COMPONENT_NAME$8}__PlaceholderValueWrapper`,
|
|
18998
19011
|
children: placeholderValue
|
|
18999
19012
|
}) : null;
|
|
19000
19013
|
const valueContentToRender = !valueMarkup && placeholderValueMarkup || valueMarkup;
|
|
19001
19014
|
const valueContainerMarkup = valueMarkup || placeholderValueMarkup ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19002
|
-
className: `${COMPONENT_NAME$
|
|
19015
|
+
className: `${COMPONENT_NAME$8}__ValueContainerWrapper`,
|
|
19003
19016
|
children: valueContentToRender
|
|
19004
19017
|
}) : null;
|
|
19005
19018
|
const actionMarkup = action ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19006
|
-
className: `${COMPONENT_NAME$
|
|
19019
|
+
className: `${COMPONENT_NAME$8}__ActionWrapper`,
|
|
19007
19020
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
19008
19021
|
id: action.id,
|
|
19009
19022
|
onClick: action.onClick,
|
|
@@ -19019,7 +19032,7 @@ const Totalizer = ({
|
|
|
19019
19032
|
children: action.content
|
|
19020
19033
|
})
|
|
19021
19034
|
}) : null;
|
|
19022
|
-
const contentClassName = cssClassName(`${COMPONENT_NAME$
|
|
19035
|
+
const contentClassName = cssClassName(`${COMPONENT_NAME$8}__ContentWrapper`, action && "has-Action");
|
|
19023
19036
|
const contentMarkup = valueContainerMarkup || actionMarkup ? /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19024
19037
|
className: contentClassName,
|
|
19025
19038
|
children: [valueContainerMarkup, actionMarkup]
|
|
@@ -19030,7 +19043,7 @@ const Totalizer = ({
|
|
|
19030
19043
|
});
|
|
19031
19044
|
};
|
|
19032
19045
|
|
|
19033
|
-
const COMPONENT_NAME$
|
|
19046
|
+
const COMPONENT_NAME$7 = 'AlphaZipCodeInput';
|
|
19034
19047
|
const AlphaZipCodeInput = ({
|
|
19035
19048
|
label,
|
|
19036
19049
|
isRequired,
|
|
@@ -19062,20 +19075,20 @@ const AlphaZipCodeInput = ({
|
|
|
19062
19075
|
}
|
|
19063
19076
|
};
|
|
19064
19077
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19065
|
-
className: `${COMPONENT_NAME$
|
|
19078
|
+
className: `${COMPONENT_NAME$7}__LabelWrapper`,
|
|
19066
19079
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
19067
|
-
className: `${COMPONENT_NAME$
|
|
19080
|
+
className: `${COMPONENT_NAME$7}__Label`,
|
|
19068
19081
|
children: [label, isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
19069
|
-
className: `${COMPONENT_NAME$
|
|
19082
|
+
className: `${COMPONENT_NAME$7}__Label--isRequired`,
|
|
19070
19083
|
children: "*"
|
|
19071
19084
|
}) : null]
|
|
19072
19085
|
})
|
|
19073
19086
|
}) : null;
|
|
19074
|
-
const classesInput = cssClassName(`${COMPONENT_NAME$
|
|
19087
|
+
const classesInput = cssClassName(`${COMPONENT_NAME$7}__InputWrapper`, isFocusActive && 'isFocus', loading && 'loading');
|
|
19075
19088
|
const inputMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19076
19089
|
className: classesInput,
|
|
19077
19090
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
19078
|
-
className: `${COMPONENT_NAME$
|
|
19091
|
+
className: `${COMPONENT_NAME$7}__InputWrapper--input`,
|
|
19079
19092
|
onBlur: handleOnBlur,
|
|
19080
19093
|
onFocus: handleOnFocus,
|
|
19081
19094
|
onChange: handleOnChange,
|
|
@@ -19089,12 +19102,12 @@ const AlphaZipCodeInput = ({
|
|
|
19089
19102
|
setShowPopover(false);
|
|
19090
19103
|
};
|
|
19091
19104
|
const renderLabelItem = item => /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19092
|
-
className: `${COMPONENT_NAME$
|
|
19105
|
+
className: `${COMPONENT_NAME$7}__ItemWrapper`,
|
|
19093
19106
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19094
|
-
className: `${COMPONENT_NAME$
|
|
19107
|
+
className: `${COMPONENT_NAME$7}__Item__Value`,
|
|
19095
19108
|
children: item.cp
|
|
19096
19109
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19097
|
-
className: `${COMPONENT_NAME$
|
|
19110
|
+
className: `${COMPONENT_NAME$7}__Item__Description`,
|
|
19098
19111
|
children: [item.municipality, ", ", item.city, ", ", item.state]
|
|
19099
19112
|
})]
|
|
19100
19113
|
});
|
|
@@ -19108,7 +19121,7 @@ const AlphaZipCodeInput = ({
|
|
|
19108
19121
|
onChange: handleOnSelectItem
|
|
19109
19122
|
}) : null;
|
|
19110
19123
|
const emptyItemsMarkup = items && items.length === 0 ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19111
|
-
className: `${COMPONENT_NAME$
|
|
19124
|
+
className: `${COMPONENT_NAME$7}__EmptyItems`,
|
|
19112
19125
|
children: labelEmpty
|
|
19113
19126
|
}) : null;
|
|
19114
19127
|
const popoverMarkup = React2.useMemo(() => /*#__PURE__*/jsxRuntimeExports.jsx(Popover$1, {
|
|
@@ -19127,7 +19140,7 @@ const AlphaZipCodeInput = ({
|
|
|
19127
19140
|
} else setShowPopover(false);
|
|
19128
19141
|
}, [items]);
|
|
19129
19142
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19130
|
-
className: `${COMPONENT_NAME$
|
|
19143
|
+
className: `${COMPONENT_NAME$7}__Wrapper`,
|
|
19131
19144
|
children: [labelMarkup, popoverMarkup]
|
|
19132
19145
|
});
|
|
19133
19146
|
};
|
|
@@ -33626,7 +33639,7 @@ const TrashIcon = () => /*#__PURE__*/jsxRuntimeExports.jsxs("svg", {
|
|
|
33626
33639
|
})]
|
|
33627
33640
|
});
|
|
33628
33641
|
|
|
33629
|
-
const COMPONENT_NAME$
|
|
33642
|
+
const COMPONENT_NAME$6 = 'DeletableSection';
|
|
33630
33643
|
const DeletableSection = ({
|
|
33631
33644
|
ariaLabel,
|
|
33632
33645
|
children,
|
|
@@ -33638,14 +33651,14 @@ const DeletableSection = ({
|
|
|
33638
33651
|
theme
|
|
33639
33652
|
} = useTheme();
|
|
33640
33653
|
const THEME_CLASS = `${theme}`;
|
|
33641
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
33642
|
-
const classNameButton = cssClassName(`${COMPONENT_NAME$
|
|
33654
|
+
const className = cssClassName(COMPONENT_NAME$6);
|
|
33655
|
+
const classNameButton = cssClassName(`${COMPONENT_NAME$6}__DeleteButtonWrapper`, THEME_CLASS);
|
|
33643
33656
|
const icon = iconDeletable || TrashIcon;
|
|
33644
33657
|
const deleteButtonMarkup = onDelete && isDeletable ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
33645
33658
|
className: classNameButton,
|
|
33646
33659
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
33647
33660
|
"aria-label": ariaLabel ? `${ariaLabel}-removeForm` : ariaLabel,
|
|
33648
|
-
className: `${COMPONENT_NAME$
|
|
33661
|
+
className: `${COMPONENT_NAME$6}__DeleteButton`,
|
|
33649
33662
|
onClick: onDelete,
|
|
33650
33663
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaIcon, {
|
|
33651
33664
|
source: icon,
|
|
@@ -33654,7 +33667,7 @@ const DeletableSection = ({
|
|
|
33654
33667
|
})
|
|
33655
33668
|
}) : null;
|
|
33656
33669
|
const contentMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
33657
|
-
className: `${COMPONENT_NAME$
|
|
33670
|
+
className: `${COMPONENT_NAME$6}__ContentWrapper`,
|
|
33658
33671
|
children: children
|
|
33659
33672
|
}) : null;
|
|
33660
33673
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -34056,7 +34069,7 @@ const SectionForm = ({
|
|
|
34056
34069
|
});
|
|
34057
34070
|
};
|
|
34058
34071
|
|
|
34059
|
-
const COMPONENT_NAME$
|
|
34072
|
+
const COMPONENT_NAME$5 = "DynamicForm";
|
|
34060
34073
|
const DynamicForm = ({
|
|
34061
34074
|
ariaLabel,
|
|
34062
34075
|
dataFormArray = [],
|
|
@@ -34110,7 +34123,7 @@ const DynamicForm = ({
|
|
|
34110
34123
|
}, `DynamicForm-${form.id}-${index}}`);
|
|
34111
34124
|
};
|
|
34112
34125
|
const contactsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
34113
|
-
className: `${COMPONENT_NAME$
|
|
34126
|
+
className: `${COMPONENT_NAME$5}__SectionFormWrapper`,
|
|
34114
34127
|
children: dataFormArray.map(renderForm)
|
|
34115
34128
|
});
|
|
34116
34129
|
const dividerMarkup = labelDivider && /*#__PURE__*/jsxRuntimeExports.jsx(Divider, {
|
|
@@ -34123,7 +34136,7 @@ const DynamicForm = ({
|
|
|
34123
34136
|
children: onAddForm.label
|
|
34124
34137
|
});
|
|
34125
34138
|
const THEME_CLASS = `${theme}`;
|
|
34126
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
34139
|
+
const className = cssClassName(COMPONENT_NAME$5, THEME_CLASS);
|
|
34127
34140
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
34128
34141
|
className: className,
|
|
34129
34142
|
children: [dividerMarkup, contactsMarkup, addContactButtonMarkup]
|
|
@@ -36896,16 +36909,16 @@ Sortable.mount(Remove, Revert);
|
|
|
36896
36909
|
|
|
36897
36910
|
const Context = /*#__PURE__*/React2.createContext({});
|
|
36898
36911
|
|
|
36899
|
-
const COMPONENT_NAME$
|
|
36912
|
+
const COMPONENT_NAME$4 = 'SortableList__Item';
|
|
36900
36913
|
const Item$1 = ({
|
|
36901
36914
|
children
|
|
36902
36915
|
}) => {
|
|
36903
36916
|
const {
|
|
36904
36917
|
hasHandle
|
|
36905
36918
|
} = React2.useContext(Context);
|
|
36906
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
36919
|
+
const className = cssClassName(COMPONENT_NAME$4, !hasHandle && 'no-handle');
|
|
36907
36920
|
const handleMarkup = hasHandle ? /*#__PURE__*/jsxRuntimeExports.jsxs("span", {
|
|
36908
|
-
className: `${COMPONENT_NAME$
|
|
36921
|
+
className: `${COMPONENT_NAME$4}__Handle`,
|
|
36909
36922
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
36910
36923
|
name: "MoreVertical"
|
|
36911
36924
|
}), /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
@@ -36913,7 +36926,7 @@ const Item$1 = ({
|
|
|
36913
36926
|
})]
|
|
36914
36927
|
}) : null;
|
|
36915
36928
|
const contentMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
36916
|
-
className: `${COMPONENT_NAME$
|
|
36929
|
+
className: `${COMPONENT_NAME$4}__Content`,
|
|
36917
36930
|
children: children
|
|
36918
36931
|
});
|
|
36919
36932
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("li", {
|
|
@@ -36922,7 +36935,7 @@ const Item$1 = ({
|
|
|
36922
36935
|
});
|
|
36923
36936
|
};
|
|
36924
36937
|
|
|
36925
|
-
const COMPONENT_NAME$
|
|
36938
|
+
const COMPONENT_NAME$3 = "SortableList";
|
|
36926
36939
|
const SortableList = function ({
|
|
36927
36940
|
renderItem,
|
|
36928
36941
|
items,
|
|
@@ -36930,7 +36943,7 @@ const SortableList = function ({
|
|
|
36930
36943
|
hasHandle
|
|
36931
36944
|
}) {
|
|
36932
36945
|
const listRef = React2.useRef(null);
|
|
36933
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
36946
|
+
const className = cssClassName(COMPONENT_NAME$3);
|
|
36934
36947
|
const hasItems = items && items.length > 0;
|
|
36935
36948
|
const handleSortEnd = event => {
|
|
36936
36949
|
const {
|
|
@@ -36962,7 +36975,7 @@ const SortableList = function ({
|
|
|
36962
36975
|
}
|
|
36963
36976
|
return itemComponent;
|
|
36964
36977
|
};
|
|
36965
|
-
const listClassName = cssClassName(`${COMPONENT_NAME$
|
|
36978
|
+
const listClassName = cssClassName(`${COMPONENT_NAME$3}__List`);
|
|
36966
36979
|
const listMarkup = hasItems ? /*#__PURE__*/jsxRuntimeExports.jsx("ul", {
|
|
36967
36980
|
ref: listRef,
|
|
36968
36981
|
className: listClassName,
|
|
@@ -37526,7 +37539,7 @@ const FilterControl = ({
|
|
|
37526
37539
|
});
|
|
37527
37540
|
};
|
|
37528
37541
|
|
|
37529
|
-
const COMPONENT_NAME$
|
|
37542
|
+
const COMPONENT_NAME$2 = 'FilterField';
|
|
37530
37543
|
const FilterField = ({
|
|
37531
37544
|
label,
|
|
37532
37545
|
isRequired = false,
|
|
@@ -37535,19 +37548,19 @@ const FilterField = ({
|
|
|
37535
37548
|
name
|
|
37536
37549
|
}) => {
|
|
37537
37550
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37538
|
-
className: `${COMPONENT_NAME$
|
|
37551
|
+
className: `${COMPONENT_NAME$2}__LabelWrapper`,
|
|
37539
37552
|
children: label
|
|
37540
37553
|
}) : null;
|
|
37541
37554
|
const filterFieldMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37542
|
-
className: `${COMPONENT_NAME$
|
|
37555
|
+
className: `${COMPONENT_NAME$2}__FieldWrapper`,
|
|
37543
37556
|
id: name,
|
|
37544
37557
|
children: field
|
|
37545
37558
|
});
|
|
37546
37559
|
const removeButtonMarkup = onRemove && !isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37547
|
-
className: `${COMPONENT_NAME$
|
|
37560
|
+
className: `${COMPONENT_NAME$2}__RemoveButtonWrapper`,
|
|
37548
37561
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
37549
37562
|
type: "button",
|
|
37550
|
-
className: `${COMPONENT_NAME$
|
|
37563
|
+
className: `${COMPONENT_NAME$2}__RemoveButton`,
|
|
37551
37564
|
onClick: onRemove,
|
|
37552
37565
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
37553
37566
|
name: "X"
|
|
@@ -37555,12 +37568,12 @@ const FilterField = ({
|
|
|
37555
37568
|
})
|
|
37556
37569
|
}) : null;
|
|
37557
37570
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37558
|
-
className: `${COMPONENT_NAME$
|
|
37571
|
+
className: `${COMPONENT_NAME$2}`,
|
|
37559
37572
|
children: [labelMarkup, filterFieldMarkup, removeButtonMarkup]
|
|
37560
37573
|
});
|
|
37561
37574
|
};
|
|
37562
37575
|
|
|
37563
|
-
const COMPONENT_NAME = 'Filters';
|
|
37576
|
+
const COMPONENT_NAME$1 = 'Filters';
|
|
37564
37577
|
const Filters = ({
|
|
37565
37578
|
ariaLabel,
|
|
37566
37579
|
filters = [],
|
|
@@ -37614,11 +37627,11 @@ const Filters = ({
|
|
|
37614
37627
|
key: `extra-action-${index}`
|
|
37615
37628
|
}, extraAction.label)) : null;
|
|
37616
37629
|
const secondaryActionsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37617
|
-
className: `${COMPONENT_NAME}__SecondaryActionsWrapper`,
|
|
37630
|
+
className: `${COMPONENT_NAME$1}__SecondaryActionsWrapper`,
|
|
37618
37631
|
children: availableFiltersPopoverMarkup
|
|
37619
37632
|
});
|
|
37620
37633
|
const mainActionsMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37621
|
-
className: `${COMPONENT_NAME}__MainActionsWrapper`,
|
|
37634
|
+
className: `${COMPONENT_NAME$1}__MainActionsWrapper`,
|
|
37622
37635
|
children: [extraActionsMarkup, /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
37623
37636
|
ariaLabel: `${ariaLabel}-cleanFilters`,
|
|
37624
37637
|
onClick: onCleanFilters,
|
|
@@ -37642,7 +37655,7 @@ const Filters = ({
|
|
|
37642
37655
|
handleRemoveFilter(filter);
|
|
37643
37656
|
};
|
|
37644
37657
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37645
|
-
className: `${COMPONENT_NAME}__SelectedFilter`,
|
|
37658
|
+
className: `${COMPONENT_NAME$1}__SelectedFilter`,
|
|
37646
37659
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(FilterField, {
|
|
37647
37660
|
label: foundFilter.label,
|
|
37648
37661
|
field: foundFilter.filter,
|
|
@@ -37653,15 +37666,15 @@ const Filters = ({
|
|
|
37653
37666
|
}, index);
|
|
37654
37667
|
};
|
|
37655
37668
|
const selectedFiltersMarkup = selectedFilters.length ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37656
|
-
className: `${COMPONENT_NAME}__SelectedFiltersWrapper`,
|
|
37669
|
+
className: `${COMPONENT_NAME$1}__SelectedFiltersWrapper`,
|
|
37657
37670
|
children: selectedFilters.map(renderSelectedFilter)
|
|
37658
37671
|
}) : null;
|
|
37659
37672
|
const actionsContainerMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37660
|
-
className: `${COMPONENT_NAME}__ActionsWrapper`,
|
|
37673
|
+
className: `${COMPONENT_NAME$1}__ActionsWrapper`,
|
|
37661
37674
|
children: [secondaryActionsMarkup, mainActionsMarkup]
|
|
37662
37675
|
});
|
|
37663
37676
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37664
|
-
className: COMPONENT_NAME,
|
|
37677
|
+
className: COMPONENT_NAME$1,
|
|
37665
37678
|
ref: mainContainerRef,
|
|
37666
37679
|
children: [selectedFiltersMarkup, actionsContainerMarkup]
|
|
37667
37680
|
});
|
|
@@ -39704,7 +39717,7 @@ function BrowserRouter({
|
|
|
39704
39717
|
);
|
|
39705
39718
|
}
|
|
39706
39719
|
var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
39707
|
-
var Link = React2__namespace.forwardRef(
|
|
39720
|
+
var Link$1 = React2__namespace.forwardRef(
|
|
39708
39721
|
function LinkWithRef({
|
|
39709
39722
|
onClick,
|
|
39710
39723
|
discover = "render",
|
|
@@ -39780,7 +39793,7 @@ var Link = React2__namespace.forwardRef(
|
|
|
39780
39793
|
return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, link, /* @__PURE__ */ React2__namespace.createElement(PrefetchPageLinks, { page: href2 })) : link;
|
|
39781
39794
|
}
|
|
39782
39795
|
);
|
|
39783
|
-
Link.displayName = "Link";
|
|
39796
|
+
Link$1.displayName = "Link";
|
|
39784
39797
|
var NavLink = React2__namespace.forwardRef(
|
|
39785
39798
|
function NavLinkWithRef({
|
|
39786
39799
|
"aria-current": ariaCurrentProp = "page",
|
|
@@ -39833,7 +39846,7 @@ var NavLink = React2__namespace.forwardRef(
|
|
|
39833
39846
|
}
|
|
39834
39847
|
let style = typeof styleProp === "function" ? styleProp(renderProps) : styleProp;
|
|
39835
39848
|
return /* @__PURE__ */ React2__namespace.createElement(
|
|
39836
|
-
Link,
|
|
39849
|
+
Link$1,
|
|
39837
39850
|
{
|
|
39838
39851
|
...rest,
|
|
39839
39852
|
"aria-current": ariaCurrent,
|
|
@@ -41325,6 +41338,24 @@ const Tile = ({
|
|
|
41325
41338
|
});
|
|
41326
41339
|
};
|
|
41327
41340
|
|
|
41341
|
+
const COMPONENT_NAME = 'Link';
|
|
41342
|
+
const Link = ({
|
|
41343
|
+
children,
|
|
41344
|
+
className: classNameProp,
|
|
41345
|
+
component,
|
|
41346
|
+
to,
|
|
41347
|
+
target
|
|
41348
|
+
}) => {
|
|
41349
|
+
const Component = component;
|
|
41350
|
+
const className = cssClassName(COMPONENT_NAME, classNameProp);
|
|
41351
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(Component, {
|
|
41352
|
+
className: className,
|
|
41353
|
+
to: to,
|
|
41354
|
+
target: target,
|
|
41355
|
+
children: children
|
|
41356
|
+
});
|
|
41357
|
+
};
|
|
41358
|
+
|
|
41328
41359
|
exports.ActionList = ActionList;
|
|
41329
41360
|
exports.Alert = Alert;
|
|
41330
41361
|
exports.AlertProvider = AlertProvider;
|
|
@@ -41393,6 +41424,7 @@ exports.InputText = InputText;
|
|
|
41393
41424
|
exports.Item = Item$2;
|
|
41394
41425
|
exports.JsonViewer = JsonViewer;
|
|
41395
41426
|
exports.Label = Label;
|
|
41427
|
+
exports.Link = Link;
|
|
41396
41428
|
exports.ListInfo = ListInfo;
|
|
41397
41429
|
exports.Loader = Loader;
|
|
41398
41430
|
exports.Logo = Logo;
|