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.esm.js
CHANGED
|
@@ -2401,7 +2401,7 @@ const LifeBuoy = () => /*#__PURE__*/jsxRuntimeExports.jsxs(jsxRuntimeExports.Fra
|
|
|
2401
2401
|
})]
|
|
2402
2402
|
});
|
|
2403
2403
|
|
|
2404
|
-
const Link$
|
|
2404
|
+
const Link$3 = () => /*#__PURE__*/jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
2405
2405
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
2406
2406
|
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"
|
|
2407
2407
|
}), /*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
@@ -4683,7 +4683,7 @@ var Icons = /*#__PURE__*/Object.freeze({
|
|
|
4683
4683
|
Layers: Layers,
|
|
4684
4684
|
Layout: Layout,
|
|
4685
4685
|
LifeBuoy: LifeBuoy,
|
|
4686
|
-
Link: Link$
|
|
4686
|
+
Link: Link$3,
|
|
4687
4687
|
Link2: Link2,
|
|
4688
4688
|
Linkedin: Linkedin,
|
|
4689
4689
|
List: List$1,
|
|
@@ -5352,7 +5352,7 @@ const KibanCloud = ({
|
|
|
5352
5352
|
})]
|
|
5353
5353
|
});
|
|
5354
5354
|
|
|
5355
|
-
const Link$
|
|
5355
|
+
const Link$2 = ({
|
|
5356
5356
|
size
|
|
5357
5357
|
}) => /*#__PURE__*/jsxRuntimeExports.jsxs("svg", {
|
|
5358
5358
|
className: `Logo Logo--${size}`,
|
|
@@ -6778,7 +6778,7 @@ var Logos = /*#__PURE__*/Object.freeze({
|
|
|
6778
6778
|
KibanWhite: KibanWhite,
|
|
6779
6779
|
Klin: Klin,
|
|
6780
6780
|
KlinWhite: KlinWhite,
|
|
6781
|
-
Link: Link$
|
|
6781
|
+
Link: Link$2,
|
|
6782
6782
|
LinkWhite: LinkWhite,
|
|
6783
6783
|
Rainao: Rainao,
|
|
6784
6784
|
RainaoWhite: RainaoWhite,
|
|
@@ -6811,7 +6811,8 @@ const Logo = ({
|
|
|
6811
6811
|
|
|
6812
6812
|
const AlertContext = /*#__PURE__*/createContext({
|
|
6813
6813
|
addAlert: () => null,
|
|
6814
|
-
limit: 0
|
|
6814
|
+
limit: 0,
|
|
6815
|
+
deleteAlert: () => {}
|
|
6815
6816
|
});
|
|
6816
6817
|
|
|
6817
6818
|
const AlertProvider = ({
|
|
@@ -6837,9 +6838,15 @@ const AlertProvider = ({
|
|
|
6837
6838
|
const countDownAlerts = () => {
|
|
6838
6839
|
let alerts = alertList.map(alertElem => ({
|
|
6839
6840
|
...alertElem,
|
|
6840
|
-
duration: alertElem.duration - 1000
|
|
6841
|
+
duration: alertElem.duration === "infinite" ? "infinite" : alertElem.duration - 1000
|
|
6841
6842
|
}));
|
|
6842
|
-
|
|
6843
|
+
// Trigger on dismiss event when an alert is dismissed
|
|
6844
|
+
alerts.forEach(alertElement => {
|
|
6845
|
+
if (alertElement.duration === 0) {
|
|
6846
|
+
alertElement.onDismiss?.(alertElement.id);
|
|
6847
|
+
}
|
|
6848
|
+
});
|
|
6849
|
+
alerts = alerts.filter(alertElement => alertElement.duration === "infinite" || typeof alertElement.duration === "number" && alertElement.duration > 0);
|
|
6843
6850
|
setAlertList(alerts);
|
|
6844
6851
|
};
|
|
6845
6852
|
useEffect(() => {
|
|
@@ -6856,7 +6863,9 @@ const AlertProvider = ({
|
|
|
6856
6863
|
icon,
|
|
6857
6864
|
appearance,
|
|
6858
6865
|
content,
|
|
6859
|
-
duration
|
|
6866
|
+
duration,
|
|
6867
|
+
onDismiss,
|
|
6868
|
+
dismissible = false
|
|
6860
6869
|
}) => {
|
|
6861
6870
|
const id = Math.floor(Math.random() * 100 + 1);
|
|
6862
6871
|
const alertAddProps = {
|
|
@@ -6864,9 +6873,12 @@ const AlertProvider = ({
|
|
|
6864
6873
|
appearance,
|
|
6865
6874
|
content,
|
|
6866
6875
|
duration,
|
|
6867
|
-
id
|
|
6876
|
+
id,
|
|
6877
|
+
onDismiss,
|
|
6878
|
+
dismissible
|
|
6868
6879
|
};
|
|
6869
6880
|
setNewAlert(alertAddProps);
|
|
6881
|
+
return id;
|
|
6870
6882
|
};
|
|
6871
6883
|
const deleteAlert = index => {
|
|
6872
6884
|
if (index !== undefined) {
|
|
@@ -6876,15 +6888,16 @@ const AlertProvider = ({
|
|
|
6876
6888
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(AlertContext.Provider, {
|
|
6877
6889
|
value: {
|
|
6878
6890
|
addAlert,
|
|
6879
|
-
limit
|
|
6891
|
+
limit,
|
|
6892
|
+
deleteAlert
|
|
6880
6893
|
},
|
|
6881
6894
|
children: [children, portalTarget && alertList.length > 0 && /*#__PURE__*/createPortal(/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
6882
6895
|
className: "AlertProvider",
|
|
6883
6896
|
children: alertList.map(alertItem => /*#__PURE__*/jsxRuntimeExports.jsx(Alert, {
|
|
6884
6897
|
icon: alertItem.icon,
|
|
6885
6898
|
appearance: alertItem.appearance,
|
|
6886
|
-
duration: alertItem.duration,
|
|
6887
|
-
onDismiss: alertItem.
|
|
6899
|
+
duration: alertItem.duration === "infinite" ? undefined : alertItem.duration,
|
|
6900
|
+
onDismiss: alertItem.dismissible ? () => deleteAlert(alertItem.id) : undefined,
|
|
6888
6901
|
content: alertItem.content,
|
|
6889
6902
|
id: alertItem.id
|
|
6890
6903
|
}, alertItem.id))
|
|
@@ -6954,7 +6967,7 @@ const Grid = ({
|
|
|
6954
6967
|
};
|
|
6955
6968
|
Grid.Item = GridItem;
|
|
6956
6969
|
|
|
6957
|
-
const COMPONENT_NAME$
|
|
6970
|
+
const COMPONENT_NAME$F = 'AlphaAttributeInput';
|
|
6958
6971
|
const AlphaAttributeInput = ({
|
|
6959
6972
|
items,
|
|
6960
6973
|
divider,
|
|
@@ -6962,7 +6975,7 @@ const AlphaAttributeInput = ({
|
|
|
6962
6975
|
isRequired
|
|
6963
6976
|
}) => {
|
|
6964
6977
|
const [isFocused, setIsFocused] = useState(false);
|
|
6965
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
6978
|
+
const className = cssClassName(COMPONENT_NAME$F, isFocused && 'isFocused');
|
|
6966
6979
|
const handleBlur = callback => {
|
|
6967
6980
|
setIsFocused(false);
|
|
6968
6981
|
if (callback) {
|
|
@@ -6982,16 +6995,16 @@ const AlphaAttributeInput = ({
|
|
|
6982
6995
|
}
|
|
6983
6996
|
};
|
|
6984
6997
|
const itemLabelMarkup = item.label ? /*#__PURE__*/jsxRuntimeExports.jsx("label", {
|
|
6985
|
-
className: `${COMPONENT_NAME$
|
|
6998
|
+
className: `${COMPONENT_NAME$F}__ItemLabelWrapper`,
|
|
6986
6999
|
children: item.label
|
|
6987
7000
|
}) : null;
|
|
6988
7001
|
const dividerMarkup = divider && index < items.length - 1 ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
6989
|
-
className: `${COMPONENT_NAME$
|
|
7002
|
+
className: `${COMPONENT_NAME$F}__Divider`,
|
|
6990
7003
|
children: divider
|
|
6991
7004
|
}) : null;
|
|
6992
7005
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(Fragment, {
|
|
6993
7006
|
children: [/*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
6994
|
-
className: `${COMPONENT_NAME$
|
|
7007
|
+
className: `${COMPONENT_NAME$F}__Item`,
|
|
6995
7008
|
children: [itemLabelMarkup, /*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
6996
7009
|
type: item.type,
|
|
6997
7010
|
value: item.value,
|
|
@@ -7008,17 +7021,17 @@ const AlphaAttributeInput = ({
|
|
|
7008
7021
|
}, index);
|
|
7009
7022
|
};
|
|
7010
7023
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7011
|
-
className: `${COMPONENT_NAME$
|
|
7024
|
+
className: `${COMPONENT_NAME$F}__LabelWrapper`,
|
|
7012
7025
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
7013
|
-
className: `${COMPONENT_NAME$
|
|
7026
|
+
className: `${COMPONENT_NAME$F}__Label`,
|
|
7014
7027
|
children: [label, isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7015
|
-
className: `${COMPONENT_NAME$
|
|
7028
|
+
className: `${COMPONENT_NAME$F}__IsRequiredSign`,
|
|
7016
7029
|
children: "*"
|
|
7017
7030
|
}) : null]
|
|
7018
7031
|
})
|
|
7019
7032
|
}) : null;
|
|
7020
7033
|
const itemsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7021
|
-
className: `${COMPONENT_NAME$
|
|
7034
|
+
className: `${COMPONENT_NAME$F}__ItemsWrapper`,
|
|
7022
7035
|
children: items.map(renderItem)
|
|
7023
7036
|
});
|
|
7024
7037
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -7027,7 +7040,7 @@ const AlphaAttributeInput = ({
|
|
|
7027
7040
|
});
|
|
7028
7041
|
};
|
|
7029
7042
|
|
|
7030
|
-
const COMPONENT_NAME$
|
|
7043
|
+
const COMPONENT_NAME$E = "AlphaBadge";
|
|
7031
7044
|
const AlphaBadge = ({
|
|
7032
7045
|
theme: themeProp,
|
|
7033
7046
|
children,
|
|
@@ -7040,9 +7053,9 @@ const AlphaBadge = ({
|
|
|
7040
7053
|
theme
|
|
7041
7054
|
} = useTheme();
|
|
7042
7055
|
const THEME_CLASS = `${theme}`;
|
|
7043
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7056
|
+
const className = cssClassName(COMPONENT_NAME$E, !themeProp && THEME_CLASS, isPrimary && "isPrimary", isDanger && "isDanger", isSuccess && "isSuccess", isWarning && "isWarning", themeProp && `${themeProp.toUpperCase()}`);
|
|
7044
7057
|
const childrenMarkup = children && /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7045
|
-
className: `${COMPONENT_NAME$
|
|
7058
|
+
className: `${COMPONENT_NAME$E}__TextWrapper`,
|
|
7046
7059
|
children: children
|
|
7047
7060
|
});
|
|
7048
7061
|
return /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
@@ -7051,7 +7064,7 @@ const AlphaBadge = ({
|
|
|
7051
7064
|
});
|
|
7052
7065
|
};
|
|
7053
7066
|
|
|
7054
|
-
const COMPONENT_NAME$
|
|
7067
|
+
const COMPONENT_NAME$D = "AlphaIcon";
|
|
7055
7068
|
const ICON_COLOR_VARIANTS = ["danger", "darkGray", "lightGray", "onDark", "primary", "success", "warning", "cloud", "klin", "link", "rainao", "workfloo", "rekon"];
|
|
7056
7069
|
const AlphaIcon = ({
|
|
7057
7070
|
source,
|
|
@@ -7070,10 +7083,10 @@ const AlphaIcon = ({
|
|
|
7070
7083
|
if (color && !ICON_COLOR_VARIANTS.includes(color)) {
|
|
7071
7084
|
console.warn(`The color ${color} is not supported for the AlphaIcon component when hasBackdrop is true.`);
|
|
7072
7085
|
}
|
|
7073
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7086
|
+
const className = cssClassName(COMPONENT_NAME$D, color && `is-${color}`, filled && "isFilled", outlined && "isOutlined", size && `is-${size}`, hasBackdrop && "hasBackdrop", source && `source-${sourceType}`);
|
|
7074
7087
|
const Source = source;
|
|
7075
7088
|
const StringSource = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7076
|
-
className: `${COMPONENT_NAME$
|
|
7089
|
+
className: `${COMPONENT_NAME$D}__StringSource`,
|
|
7077
7090
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7078
7091
|
children: source
|
|
7079
7092
|
})
|
|
@@ -7088,12 +7101,12 @@ const AlphaIcon = ({
|
|
|
7088
7101
|
});
|
|
7089
7102
|
};
|
|
7090
7103
|
|
|
7091
|
-
const COMPONENT_NAME$
|
|
7104
|
+
const COMPONENT_NAME$C = "AlphaSpinner";
|
|
7092
7105
|
const AlphaSpinner = ({
|
|
7093
7106
|
icon,
|
|
7094
7107
|
size
|
|
7095
7108
|
}) => {
|
|
7096
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7109
|
+
const className = cssClassName(COMPONENT_NAME$C);
|
|
7097
7110
|
let iconSource;
|
|
7098
7111
|
if (icon) {
|
|
7099
7112
|
if (isValidIcon(icon.icon)) {
|
|
@@ -7108,7 +7121,7 @@ const AlphaSpinner = ({
|
|
|
7108
7121
|
}
|
|
7109
7122
|
}
|
|
7110
7123
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7111
|
-
className: `${COMPONENT_NAME$
|
|
7124
|
+
className: `${COMPONENT_NAME$C}__IconWrapper`,
|
|
7112
7125
|
children: iconSource
|
|
7113
7126
|
}) : null;
|
|
7114
7127
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -7117,7 +7130,7 @@ const AlphaSpinner = ({
|
|
|
7117
7130
|
});
|
|
7118
7131
|
};
|
|
7119
7132
|
|
|
7120
|
-
const COMPONENT_NAME$
|
|
7133
|
+
const COMPONENT_NAME$B = "AlphaButton";
|
|
7121
7134
|
const AlphaButton = ({
|
|
7122
7135
|
ariaLabel,
|
|
7123
7136
|
children,
|
|
@@ -7153,7 +7166,7 @@ const AlphaButton = ({
|
|
|
7153
7166
|
} = useTheme();
|
|
7154
7167
|
const THEME_CLASS = `${theme}`;
|
|
7155
7168
|
const isIconOnly = !children && icon;
|
|
7156
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7169
|
+
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()}`);
|
|
7157
7170
|
const buttonProps = {
|
|
7158
7171
|
id,
|
|
7159
7172
|
type: isSubmit ? "submit" : "button",
|
|
@@ -7171,7 +7184,7 @@ const AlphaButton = ({
|
|
|
7171
7184
|
onTouchEnd
|
|
7172
7185
|
};
|
|
7173
7186
|
const childrenMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7174
|
-
className: `${COMPONENT_NAME$
|
|
7187
|
+
className: `${COMPONENT_NAME$B}__TextWrapper`,
|
|
7175
7188
|
children: children
|
|
7176
7189
|
}) : null;
|
|
7177
7190
|
let iconSource;
|
|
@@ -7197,11 +7210,11 @@ const AlphaButton = ({
|
|
|
7197
7210
|
}
|
|
7198
7211
|
}
|
|
7199
7212
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7200
|
-
className: `${COMPONENT_NAME$
|
|
7213
|
+
className: `${COMPONENT_NAME$B}__IconWrapper`,
|
|
7201
7214
|
children: iconSource
|
|
7202
7215
|
}) : null;
|
|
7203
7216
|
const spinnerMarkup = isLoading && /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7204
|
-
className: `${COMPONENT_NAME$
|
|
7217
|
+
className: `${COMPONENT_NAME$B}__SpinnerWrapper`,
|
|
7205
7218
|
children: spinnerIconSource
|
|
7206
7219
|
});
|
|
7207
7220
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("button", {
|
|
@@ -7211,7 +7224,7 @@ const AlphaButton = ({
|
|
|
7211
7224
|
});
|
|
7212
7225
|
};
|
|
7213
7226
|
|
|
7214
|
-
const COMPONENT_NAME$
|
|
7227
|
+
const COMPONENT_NAME$A = "AlphaChip";
|
|
7215
7228
|
const AlphaChip = ({
|
|
7216
7229
|
children,
|
|
7217
7230
|
hasError,
|
|
@@ -7224,13 +7237,13 @@ const AlphaChip = ({
|
|
|
7224
7237
|
theme: currentTheme
|
|
7225
7238
|
} = useTheme();
|
|
7226
7239
|
const THEME_CLASS = `${currentTheme}`;
|
|
7227
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7240
|
+
const className = cssClassName(COMPONENT_NAME$A, hasError && "hasError", isDisabled && "isDisabled", theme && `${theme.toUpperCase()}`, THEME_CLASS);
|
|
7228
7241
|
const childrenMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7229
|
-
className: `${COMPONENT_NAME$
|
|
7242
|
+
className: `${COMPONENT_NAME$A}__TextWrapper`,
|
|
7230
7243
|
children: children
|
|
7231
7244
|
}) : null;
|
|
7232
7245
|
const closeButtonMarkup = removeButtonIcon && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7233
|
-
className: `${COMPONENT_NAME$
|
|
7246
|
+
className: `${COMPONENT_NAME$A}__CloseButtonWrapper`,
|
|
7234
7247
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
7235
7248
|
onClick: onRemove,
|
|
7236
7249
|
icon: removeButtonIcon
|
|
@@ -7278,7 +7291,7 @@ const getPosition = (activator, tooltip, alignment) => {
|
|
|
7278
7291
|
};
|
|
7279
7292
|
};
|
|
7280
7293
|
|
|
7281
|
-
const COMPONENT_NAME$
|
|
7294
|
+
const COMPONENT_NAME$z = 'Alpha__TooltipOverlay';
|
|
7282
7295
|
const Overlay = ({
|
|
7283
7296
|
children,
|
|
7284
7297
|
activator,
|
|
@@ -7292,7 +7305,7 @@ const Overlay = ({
|
|
|
7292
7305
|
onClick
|
|
7293
7306
|
}) => {
|
|
7294
7307
|
const tooltipRef = useRef(null);
|
|
7295
|
-
const overlayClassName = cssClassName(COMPONENT_NAME$
|
|
7308
|
+
const overlayClassName = cssClassName(COMPONENT_NAME$z, position && `is-${position}`, appearance && `is-${appearance}`, theme && appearance === 'default' && `is-${theme}`);
|
|
7296
7309
|
const [positionStyles, setPositionStyles] = useState({
|
|
7297
7310
|
'--tooltip-overlay-top': 0,
|
|
7298
7311
|
'--tooltip-overlay-left': 0,
|
|
@@ -7343,7 +7356,7 @@ const Overlay = ({
|
|
|
7343
7356
|
return markup;
|
|
7344
7357
|
};
|
|
7345
7358
|
|
|
7346
|
-
const COMPONENT_NAME$
|
|
7359
|
+
const COMPONENT_NAME$y = 'AlphaTooltip';
|
|
7347
7360
|
const AlphaTooltip = ({
|
|
7348
7361
|
content,
|
|
7349
7362
|
children,
|
|
@@ -7365,7 +7378,7 @@ const AlphaTooltip = ({
|
|
|
7365
7378
|
const isMouseOver = useRef(false);
|
|
7366
7379
|
const activatorContainer = useRef(null);
|
|
7367
7380
|
const WrapperComponent = activatorWrapper;
|
|
7368
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7381
|
+
const className = cssClassName(COMPONENT_NAME$y);
|
|
7369
7382
|
const handleOpen = useCallback(() => {
|
|
7370
7383
|
if (!isActivePersistence) {
|
|
7371
7384
|
setIsActive(true);
|
|
@@ -7648,7 +7661,7 @@ function getRangeDate(range, date) {
|
|
|
7648
7661
|
};
|
|
7649
7662
|
}
|
|
7650
7663
|
|
|
7651
|
-
const COMPONENT_NAME$
|
|
7664
|
+
const COMPONENT_NAME$x = 'DatePicker__Day';
|
|
7652
7665
|
const Day = /*#__PURE__*/memo(function Day({
|
|
7653
7666
|
day,
|
|
7654
7667
|
isDisabled,
|
|
@@ -7659,7 +7672,7 @@ const Day = /*#__PURE__*/memo(function Day({
|
|
|
7659
7672
|
onClick,
|
|
7660
7673
|
theme: themeProp
|
|
7661
7674
|
}) {
|
|
7662
|
-
const emptyDayClassName = cssClassName(COMPONENT_NAME$
|
|
7675
|
+
const emptyDayClassName = cssClassName(COMPONENT_NAME$x, !day && 'isEmpty');
|
|
7663
7676
|
if (!day) {
|
|
7664
7677
|
return /*#__PURE__*/jsxRuntimeExports.jsx("td", {
|
|
7665
7678
|
className: emptyDayClassName
|
|
@@ -7674,7 +7687,7 @@ const Day = /*#__PURE__*/memo(function Day({
|
|
|
7674
7687
|
}
|
|
7675
7688
|
};
|
|
7676
7689
|
const today = isToday(new Date(), day);
|
|
7677
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7690
|
+
const className = cssClassName(COMPONENT_NAME$x, today && 'isToday', `theme-${themeProp || theme}`, isSelected && 'isSelected', isDisabled && 'isDisabled', isInRange && 'isInRange', isFirstSelectedDay && 'isFirstSelectedDay', isLastSelectedDay && 'isLastSelectedDay');
|
|
7678
7691
|
const date = day.getDate();
|
|
7679
7692
|
return /*#__PURE__*/jsxRuntimeExports.jsx("td", {
|
|
7680
7693
|
className: className,
|
|
@@ -7685,7 +7698,7 @@ const Day = /*#__PURE__*/memo(function Day({
|
|
|
7685
7698
|
});
|
|
7686
7699
|
});
|
|
7687
7700
|
|
|
7688
|
-
const COMPONENT_NAME$
|
|
7701
|
+
const COMPONENT_NAME$w = 'DatePicker__Month';
|
|
7689
7702
|
const Month = ({
|
|
7690
7703
|
month = new Date().getMonth(),
|
|
7691
7704
|
year = new Date().getFullYear(),
|
|
@@ -7698,7 +7711,7 @@ const Month = ({
|
|
|
7698
7711
|
disableDates,
|
|
7699
7712
|
weekDays
|
|
7700
7713
|
}) => {
|
|
7701
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7714
|
+
const className = cssClassName(COMPONENT_NAME$w);
|
|
7702
7715
|
const weeks = useMemo(() => getWeeksByMonth(month, year, weekStartsOn), [month, year, weekStartsOn]);
|
|
7703
7716
|
const handleDateClick = useCallback(selectedDate => {
|
|
7704
7717
|
if (onChange) {
|
|
@@ -7742,7 +7755,7 @@ const Month = ({
|
|
|
7742
7755
|
});
|
|
7743
7756
|
};
|
|
7744
7757
|
|
|
7745
|
-
const COMPONENT_NAME$
|
|
7758
|
+
const COMPONENT_NAME$v = 'DatePIcker__YearField';
|
|
7746
7759
|
const YearField = ({
|
|
7747
7760
|
onChange,
|
|
7748
7761
|
value,
|
|
@@ -7753,7 +7766,7 @@ const YearField = ({
|
|
|
7753
7766
|
onKeyDown,
|
|
7754
7767
|
onKeyUp
|
|
7755
7768
|
}) => {
|
|
7756
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7769
|
+
const className = cssClassName(COMPONENT_NAME$v);
|
|
7757
7770
|
const handleChange = event => {
|
|
7758
7771
|
if (onChange) {
|
|
7759
7772
|
const value = event.target.value.trim();
|
|
@@ -7778,7 +7791,7 @@ const YearField = ({
|
|
|
7778
7791
|
});
|
|
7779
7792
|
};
|
|
7780
7793
|
|
|
7781
|
-
const COMPONENT_NAME$
|
|
7794
|
+
const COMPONENT_NAME$u = 'DatePicker__Header';
|
|
7782
7795
|
const Header$2 = ({
|
|
7783
7796
|
month,
|
|
7784
7797
|
year,
|
|
@@ -7786,7 +7799,7 @@ const Header$2 = ({
|
|
|
7786
7799
|
months
|
|
7787
7800
|
}) => {
|
|
7788
7801
|
const [yearValue, setYearValue] = useState(year);
|
|
7789
|
-
const headerClassName = cssClassName(COMPONENT_NAME$
|
|
7802
|
+
const headerClassName = cssClassName(COMPONENT_NAME$u);
|
|
7790
7803
|
const handleMonthChange = useCallback((month, year) => {
|
|
7791
7804
|
if (onChange) {
|
|
7792
7805
|
onChange(month, year);
|
|
@@ -7823,7 +7836,7 @@ const Header$2 = ({
|
|
|
7823
7836
|
appearance: "secondary",
|
|
7824
7837
|
onClick: () => handleMonthChange(previousMonth, previousYear)
|
|
7825
7838
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("span", {
|
|
7826
|
-
className: `${COMPONENT_NAME$
|
|
7839
|
+
className: `${COMPONENT_NAME$u}__DateLabel`,
|
|
7827
7840
|
children: [montName, /*#__PURE__*/jsxRuntimeExports.jsx(YearField, {
|
|
7828
7841
|
value: yearValue,
|
|
7829
7842
|
onChange: setYearValue,
|
|
@@ -7839,7 +7852,7 @@ const Header$2 = ({
|
|
|
7839
7852
|
});
|
|
7840
7853
|
};
|
|
7841
7854
|
|
|
7842
|
-
const COMPONENT_NAME$
|
|
7855
|
+
const COMPONENT_NAME$t = 'DatePicker';
|
|
7843
7856
|
function getMonthSelectedDate(selected) {
|
|
7844
7857
|
return selected instanceof Date ? {
|
|
7845
7858
|
start: selected,
|
|
@@ -7861,7 +7874,7 @@ const DatePicker = ({
|
|
|
7861
7874
|
months,
|
|
7862
7875
|
weekDays
|
|
7863
7876
|
}) => {
|
|
7864
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7877
|
+
const className = cssClassName(COMPONENT_NAME$t);
|
|
7865
7878
|
const handleDateChange = useCallback(dateRange => {
|
|
7866
7879
|
if (onChange) {
|
|
7867
7880
|
onChange(dateRange);
|
|
@@ -16524,7 +16537,7 @@ function formatDate(date, toISO) {
|
|
|
16524
16537
|
return DateTime.fromJSDate(date).toFormat('dd/MM/yyyy');
|
|
16525
16538
|
}
|
|
16526
16539
|
|
|
16527
|
-
const COMPONENT_NAME$
|
|
16540
|
+
const COMPONENT_NAME$s = 'DateInput';
|
|
16528
16541
|
const AlphaInputDate = ({
|
|
16529
16542
|
ariaLabel,
|
|
16530
16543
|
disabled,
|
|
@@ -16550,7 +16563,7 @@ const AlphaInputDate = ({
|
|
|
16550
16563
|
const [isErrorTooltipActive, setIsErrorTooltipActive] = useState(false);
|
|
16551
16564
|
const [selectedDate, setSelectedDate] = useState();
|
|
16552
16565
|
const inputRef = useRef(null);
|
|
16553
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
16566
|
+
const className = cssClassName(COMPONENT_NAME$s);
|
|
16554
16567
|
const handleMonthChange = (monthValue, yearValue) => {
|
|
16555
16568
|
setDate({
|
|
16556
16569
|
month: monthValue,
|
|
@@ -16675,7 +16688,7 @@ const AlphaInputDate = ({
|
|
|
16675
16688
|
weekDays: weekdays
|
|
16676
16689
|
});
|
|
16677
16690
|
const inputMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
16678
|
-
className: `${COMPONENT_NAME$
|
|
16691
|
+
className: `${COMPONENT_NAME$s}__InputWrapper`,
|
|
16679
16692
|
onClick: () => setIsPopoverActive(true),
|
|
16680
16693
|
ref: inputRef,
|
|
16681
16694
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaTooltip, {
|
|
@@ -16880,16 +16893,16 @@ const Tag = ({
|
|
|
16880
16893
|
});
|
|
16881
16894
|
};
|
|
16882
16895
|
|
|
16883
|
-
const COMPONENT_NAME$
|
|
16896
|
+
const COMPONENT_NAME$r = "Divider";
|
|
16884
16897
|
const Divider = ({
|
|
16885
16898
|
alignment = "left",
|
|
16886
16899
|
label
|
|
16887
16900
|
}) => {
|
|
16888
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
16901
|
+
const className = cssClassName(COMPONENT_NAME$r, alignment, !label && "no-label");
|
|
16889
16902
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
16890
|
-
className: `${COMPONENT_NAME$
|
|
16903
|
+
className: `${COMPONENT_NAME$r}__LabelWrapper`,
|
|
16891
16904
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
16892
|
-
className: `${COMPONENT_NAME$
|
|
16905
|
+
className: `${COMPONENT_NAME$r}__Label`,
|
|
16893
16906
|
children: label
|
|
16894
16907
|
})
|
|
16895
16908
|
}) : null;
|
|
@@ -17534,7 +17547,7 @@ const Panel$1 = ({
|
|
|
17534
17547
|
});
|
|
17535
17548
|
};
|
|
17536
17549
|
|
|
17537
|
-
const COMPONENT_NAME$
|
|
17550
|
+
const COMPONENT_NAME$q = 'Tabs';
|
|
17538
17551
|
const Tabs = ({
|
|
17539
17552
|
onSelect,
|
|
17540
17553
|
selected,
|
|
@@ -17546,7 +17559,7 @@ const Tabs = ({
|
|
|
17546
17559
|
const {
|
|
17547
17560
|
theme
|
|
17548
17561
|
} = useTheme();
|
|
17549
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
17562
|
+
const classNames = cssClassName(COMPONENT_NAME$q, `is${themeClassConverter(theme)}`);
|
|
17550
17563
|
const panelMarkup = children ? tabs.map((tab, index) => selected === index ? /*#__PURE__*/jsxRuntimeExports.jsx(Panel$1, {
|
|
17551
17564
|
id: tab.panelID || `${tab.id}-panel`,
|
|
17552
17565
|
children: children
|
|
@@ -17809,12 +17822,12 @@ const AlphaGraphicCard = ({
|
|
|
17809
17822
|
});
|
|
17810
17823
|
};
|
|
17811
17824
|
|
|
17812
|
-
const COMPONENT_NAME$
|
|
17825
|
+
const COMPONENT_NAME$p = "AlphaInlineError";
|
|
17813
17826
|
const AlphaInlineError = ({
|
|
17814
17827
|
icon,
|
|
17815
17828
|
children
|
|
17816
17829
|
}) => {
|
|
17817
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17830
|
+
const className = cssClassName(COMPONENT_NAME$p);
|
|
17818
17831
|
let iconSource;
|
|
17819
17832
|
if (icon) {
|
|
17820
17833
|
if (isValidIcon(icon.icon)) {
|
|
@@ -17828,11 +17841,11 @@ const AlphaInlineError = ({
|
|
|
17828
17841
|
}
|
|
17829
17842
|
}
|
|
17830
17843
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17831
|
-
className: `${COMPONENT_NAME$
|
|
17844
|
+
className: `${COMPONENT_NAME$p}__IconWrapper`,
|
|
17832
17845
|
children: iconSource
|
|
17833
17846
|
}) : null;
|
|
17834
17847
|
const messageMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
17835
|
-
className: `${COMPONENT_NAME$
|
|
17848
|
+
className: `${COMPONENT_NAME$p}__MessageWrapper`,
|
|
17836
17849
|
children: children
|
|
17837
17850
|
}) : null;
|
|
17838
17851
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -17841,8 +17854,8 @@ const AlphaInlineError = ({
|
|
|
17841
17854
|
});
|
|
17842
17855
|
};
|
|
17843
17856
|
|
|
17844
|
-
const COMPONENT_NAME$
|
|
17845
|
-
const className$1 = cssClassName(COMPONENT_NAME$
|
|
17857
|
+
const COMPONENT_NAME$o = "AlphaLabel";
|
|
17858
|
+
const className$1 = cssClassName(COMPONENT_NAME$o);
|
|
17846
17859
|
const AlphaLabel = ({
|
|
17847
17860
|
children,
|
|
17848
17861
|
isRequired,
|
|
@@ -17850,7 +17863,7 @@ const AlphaLabel = ({
|
|
|
17850
17863
|
id
|
|
17851
17864
|
}) => {
|
|
17852
17865
|
const requiredSignMarkup = isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
17853
|
-
className: `${COMPONENT_NAME$
|
|
17866
|
+
className: `${COMPONENT_NAME$o}__RequiredSign`,
|
|
17854
17867
|
children: "*"
|
|
17855
17868
|
}) : null;
|
|
17856
17869
|
const labelMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
@@ -17858,7 +17871,7 @@ const AlphaLabel = ({
|
|
|
17858
17871
|
children: [children, requiredSignMarkup]
|
|
17859
17872
|
});
|
|
17860
17873
|
const actionMarkup = action ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17861
|
-
className: `${COMPONENT_NAME$
|
|
17874
|
+
className: `${COMPONENT_NAME$o}__ActionWrapper`,
|
|
17862
17875
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
17863
17876
|
id: action.id,
|
|
17864
17877
|
isDanger: action.isDanger,
|
|
@@ -17876,12 +17889,12 @@ const AlphaLabel = ({
|
|
|
17876
17889
|
});
|
|
17877
17890
|
};
|
|
17878
17891
|
|
|
17879
|
-
const COMPONENT_NAME$
|
|
17892
|
+
const COMPONENT_NAME$n = "AlphaLabelledField__HelpText";
|
|
17880
17893
|
const HelpText = ({
|
|
17881
17894
|
message,
|
|
17882
17895
|
icon
|
|
17883
17896
|
}) => {
|
|
17884
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17897
|
+
const className = cssClassName(COMPONENT_NAME$n);
|
|
17885
17898
|
let iconSource;
|
|
17886
17899
|
if (icon) {
|
|
17887
17900
|
if (isValidIcon(icon.icon)) {
|
|
@@ -17895,11 +17908,11 @@ const HelpText = ({
|
|
|
17895
17908
|
}
|
|
17896
17909
|
}
|
|
17897
17910
|
const iconMarkup = iconSource ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17898
|
-
className: `${COMPONENT_NAME$
|
|
17911
|
+
className: `${COMPONENT_NAME$n}__IconWrapper`,
|
|
17899
17912
|
children: iconSource
|
|
17900
17913
|
}) : null;
|
|
17901
17914
|
const messageMarkup = message ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17902
|
-
className: `${COMPONENT_NAME$
|
|
17915
|
+
className: `${COMPONENT_NAME$n}__MessageWrapper`,
|
|
17903
17916
|
children: message
|
|
17904
17917
|
}) : null;
|
|
17905
17918
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -17908,7 +17921,7 @@ const HelpText = ({
|
|
|
17908
17921
|
});
|
|
17909
17922
|
};
|
|
17910
17923
|
|
|
17911
|
-
const COMPONENT_NAME$
|
|
17924
|
+
const COMPONENT_NAME$m = "AlphaLabelledField";
|
|
17912
17925
|
const AlphaLabelledField = ({
|
|
17913
17926
|
label,
|
|
17914
17927
|
children,
|
|
@@ -17918,9 +17931,9 @@ const AlphaLabelledField = ({
|
|
|
17918
17931
|
id,
|
|
17919
17932
|
isRequired
|
|
17920
17933
|
}) => {
|
|
17921
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17934
|
+
const className = cssClassName(COMPONENT_NAME$m);
|
|
17922
17935
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17923
|
-
className: `${COMPONENT_NAME$
|
|
17936
|
+
className: `${COMPONENT_NAME$m}__LabelWrapper`,
|
|
17924
17937
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabel, {
|
|
17925
17938
|
action: action,
|
|
17926
17939
|
id: id,
|
|
@@ -17929,7 +17942,7 @@ const AlphaLabelledField = ({
|
|
|
17929
17942
|
})
|
|
17930
17943
|
}) : null;
|
|
17931
17944
|
const errorMarkup = error ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17932
|
-
className: `${COMPONENT_NAME$
|
|
17945
|
+
className: `${COMPONENT_NAME$m}__ErrorWrapper`,
|
|
17933
17946
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaInlineError, {
|
|
17934
17947
|
icon: error.icon,
|
|
17935
17948
|
children: error.message
|
|
@@ -17945,7 +17958,7 @@ const AlphaLabelledField = ({
|
|
|
17945
17958
|
isActive: Boolean(errorMarkup),
|
|
17946
17959
|
appearance: "error",
|
|
17947
17960
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17948
|
-
className: `${COMPONENT_NAME$
|
|
17961
|
+
className: `${COMPONENT_NAME$m}__ContentWrapper`,
|
|
17949
17962
|
children: children
|
|
17950
17963
|
})
|
|
17951
17964
|
}) : children;
|
|
@@ -17955,7 +17968,7 @@ const AlphaLabelledField = ({
|
|
|
17955
17968
|
});
|
|
17956
17969
|
};
|
|
17957
17970
|
|
|
17958
|
-
const COMPONENT_NAME$
|
|
17971
|
+
const COMPONENT_NAME$l = "AlphaInputTag";
|
|
17959
17972
|
const InputTag$1 = ({
|
|
17960
17973
|
ariaLabel,
|
|
17961
17974
|
id,
|
|
@@ -18014,7 +18027,7 @@ const InputTag$1 = ({
|
|
|
18014
18027
|
};
|
|
18015
18028
|
const renderTag = (tag, index) => {
|
|
18016
18029
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18017
|
-
className: `${COMPONENT_NAME$
|
|
18030
|
+
className: `${COMPONENT_NAME$l}__TagWrapper`,
|
|
18018
18031
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaChip, {
|
|
18019
18032
|
removeButtonIcon: tagRemoveIcon,
|
|
18020
18033
|
onRemove: () => handleRemoveTag(index),
|
|
@@ -18022,8 +18035,8 @@ const InputTag$1 = ({
|
|
|
18022
18035
|
})
|
|
18023
18036
|
}, index);
|
|
18024
18037
|
};
|
|
18025
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18026
|
-
const inputWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18038
|
+
const className = cssClassName(COMPONENT_NAME$l);
|
|
18039
|
+
const inputWrapperClassName = cssClassName(`${COMPONENT_NAME$l}__InputWrapper`, isFocused && "isFocused", isDisabled && "isDisabled", hasError && "hasError");
|
|
18027
18040
|
const handleInputChange = event => {
|
|
18028
18041
|
if (onInputTextChange) {
|
|
18029
18042
|
onInputTextChange(event.target.value);
|
|
@@ -18061,12 +18074,12 @@ const InputTag$1 = ({
|
|
|
18061
18074
|
});
|
|
18062
18075
|
};
|
|
18063
18076
|
|
|
18064
|
-
const COMPONENT_NAME$
|
|
18077
|
+
const COMPONENT_NAME$k = "AlphaInputText";
|
|
18065
18078
|
const AlphaInputText = ({
|
|
18066
18079
|
isDisabled,
|
|
18067
18080
|
label
|
|
18068
18081
|
}) => {
|
|
18069
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18082
|
+
const className = cssClassName(COMPONENT_NAME$k, isDisabled && "isDisabled");
|
|
18070
18083
|
return /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabelledField, {
|
|
18071
18084
|
label: label,
|
|
18072
18085
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -18075,7 +18088,7 @@ const AlphaInputText = ({
|
|
|
18075
18088
|
});
|
|
18076
18089
|
};
|
|
18077
18090
|
|
|
18078
|
-
const COMPONENT_NAME$
|
|
18091
|
+
const COMPONENT_NAME$j = "AlphaMultiSelectionPicker__Picker__List";
|
|
18079
18092
|
const List = ({
|
|
18080
18093
|
items,
|
|
18081
18094
|
selected,
|
|
@@ -18085,7 +18098,7 @@ const List = ({
|
|
|
18085
18098
|
const scrollToSelected = () => {
|
|
18086
18099
|
const listWrapper = listWrapperRef.current;
|
|
18087
18100
|
if (listWrapper) {
|
|
18088
|
-
const selectedElement = listWrapper.querySelector(`.${COMPONENT_NAME$
|
|
18101
|
+
const selectedElement = listWrapper.querySelector(`.${COMPONENT_NAME$j}__ListItem--selected`);
|
|
18089
18102
|
if (selectedElement) {
|
|
18090
18103
|
const {
|
|
18091
18104
|
top
|
|
@@ -18114,16 +18127,16 @@ const List = ({
|
|
|
18114
18127
|
value
|
|
18115
18128
|
} = item;
|
|
18116
18129
|
const isSelected = Boolean(selected !== null && selected !== undefined && selected === value);
|
|
18117
|
-
const className = cssClassName(`${COMPONENT_NAME$
|
|
18130
|
+
const className = cssClassName(`${COMPONENT_NAME$j}__ListItem`, isSelected && "selected");
|
|
18118
18131
|
const handleClick = () => handleChange(value);
|
|
18119
18132
|
return /*#__PURE__*/jsxRuntimeExports.jsx("li", {
|
|
18120
18133
|
className: className,
|
|
18121
18134
|
onClick: handleClick,
|
|
18122
18135
|
children: label
|
|
18123
|
-
}, `${COMPONENT_NAME$
|
|
18136
|
+
}, `${COMPONENT_NAME$j}__ListItem-${index}`);
|
|
18124
18137
|
};
|
|
18125
18138
|
const itemsMarkup = items ? items.map(renderItem) : null;
|
|
18126
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18139
|
+
const className = cssClassName(COMPONENT_NAME$j);
|
|
18127
18140
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18128
18141
|
className: className,
|
|
18129
18142
|
ref: listWrapperRef,
|
|
@@ -18133,7 +18146,7 @@ const List = ({
|
|
|
18133
18146
|
});
|
|
18134
18147
|
};
|
|
18135
18148
|
|
|
18136
|
-
const COMPONENT_NAME$
|
|
18149
|
+
const COMPONENT_NAME$i = 'AlphaMultiSelectionPicker__Picker';
|
|
18137
18150
|
const Picker = ({
|
|
18138
18151
|
headers,
|
|
18139
18152
|
items,
|
|
@@ -18156,11 +18169,11 @@ const Picker = ({
|
|
|
18156
18169
|
}
|
|
18157
18170
|
};
|
|
18158
18171
|
const renderHeader = (header, index) => /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18159
|
-
className: `${COMPONENT_NAME$
|
|
18172
|
+
className: `${COMPONENT_NAME$i}__HeaderItem`,
|
|
18160
18173
|
children: capitalize(header)
|
|
18161
|
-
}, `${COMPONENT_NAME$
|
|
18174
|
+
}, `${COMPONENT_NAME$i}__HeaderItem-${index}`);
|
|
18162
18175
|
const headersMarkup = headers ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18163
|
-
className: `${COMPONENT_NAME$
|
|
18176
|
+
className: `${COMPONENT_NAME$i}__HeadersMarkup`,
|
|
18164
18177
|
children: headers.map(renderHeader)
|
|
18165
18178
|
}) : null;
|
|
18166
18179
|
const renderList = (listItems, index) => {
|
|
@@ -18169,13 +18182,13 @@ const Picker = ({
|
|
|
18169
18182
|
items: listItems,
|
|
18170
18183
|
onChange: value => handleChange(value, index),
|
|
18171
18184
|
selected: selectedValue
|
|
18172
|
-
}, `${COMPONENT_NAME$
|
|
18185
|
+
}, `${COMPONENT_NAME$i}__List-${index}`);
|
|
18173
18186
|
};
|
|
18174
18187
|
const itemsListsMarkup = items ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18175
|
-
className: `${COMPONENT_NAME$
|
|
18188
|
+
className: `${COMPONENT_NAME$i}__ItemsListWrapper`,
|
|
18176
18189
|
children: items.map(renderList)
|
|
18177
18190
|
}) : null;
|
|
18178
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18191
|
+
const className = cssClassName(COMPONENT_NAME$i, theme);
|
|
18179
18192
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18180
18193
|
className: className,
|
|
18181
18194
|
children: [headersMarkup, itemsListsMarkup]
|
|
@@ -18255,7 +18268,7 @@ const AlphaSegmentedControl = ({
|
|
|
18255
18268
|
|
|
18256
18269
|
const SideMenuContext = /*#__PURE__*/createContext({});
|
|
18257
18270
|
|
|
18258
|
-
const COMPONENT_NAME$
|
|
18271
|
+
const COMPONENT_NAME$h = "AlphaSideMenu__Item";
|
|
18259
18272
|
const Item$2 = ({
|
|
18260
18273
|
label,
|
|
18261
18274
|
isDisabled,
|
|
@@ -18281,11 +18294,11 @@ const Item$2 = ({
|
|
|
18281
18294
|
const isCollapsed = isCollapsedProp !== undefined ? isCollapsedProp : collapsed;
|
|
18282
18295
|
const AnchorComponent = !isExternal ? anchorComponent || "a" : "a";
|
|
18283
18296
|
const isActive = useMemo(() => {
|
|
18284
|
-
if (location && url) {
|
|
18297
|
+
if (location?.pathname && url) {
|
|
18285
18298
|
return isExact ? location.pathname === url : location.pathname.includes(url);
|
|
18286
18299
|
}
|
|
18287
18300
|
return isActiveProp;
|
|
18288
|
-
}, [location, isExact, isActiveProp, url]);
|
|
18301
|
+
}, [location?.pathname, isExact, isActiveProp, url]);
|
|
18289
18302
|
useEffect(() => {
|
|
18290
18303
|
if (isActive && subNavigationItems) {
|
|
18291
18304
|
setCurrentTierItems?.(subNavigationItems || [], {
|
|
@@ -18303,7 +18316,7 @@ const Item$2 = ({
|
|
|
18303
18316
|
}
|
|
18304
18317
|
}, [isActive]);
|
|
18305
18318
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18306
|
-
className: `${COMPONENT_NAME$
|
|
18319
|
+
className: `${COMPONENT_NAME$h}__Label`,
|
|
18307
18320
|
children: label
|
|
18308
18321
|
}) : null;
|
|
18309
18322
|
const iconSource = icon && isValidIcon(icon?.icon) ? /*#__PURE__*/jsxRuntimeExports.jsx(AlphaIcon, {
|
|
@@ -18313,7 +18326,7 @@ const Item$2 = ({
|
|
|
18313
18326
|
children: icon
|
|
18314
18327
|
});
|
|
18315
18328
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18316
|
-
className: `${COMPONENT_NAME$
|
|
18329
|
+
className: `${COMPONENT_NAME$h}__IconWrapper`,
|
|
18317
18330
|
children: iconSource
|
|
18318
18331
|
}) : null;
|
|
18319
18332
|
const handleClick = () => {
|
|
@@ -18346,7 +18359,7 @@ const Item$2 = ({
|
|
|
18346
18359
|
position: "right",
|
|
18347
18360
|
children: anchorMarkup
|
|
18348
18361
|
}) : null;
|
|
18349
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18362
|
+
const classNames = cssClassName(COMPONENT_NAME$h, isDisabled && "isDisabled", isActive && "isActive", truncateText && "isTruncated", (isCollapsed !== undefined ? isCollapsed : collapsed) && "isCollapsed");
|
|
18350
18363
|
if (isVisible !== undefined && !isVisible(location, {
|
|
18351
18364
|
label,
|
|
18352
18365
|
url,
|
|
@@ -18364,7 +18377,7 @@ const Item$2 = ({
|
|
|
18364
18377
|
});
|
|
18365
18378
|
};
|
|
18366
18379
|
|
|
18367
|
-
const COMPONENT_NAME$
|
|
18380
|
+
const COMPONENT_NAME$g = "AlphaSideMenu__Section";
|
|
18368
18381
|
const Section$1 = ({
|
|
18369
18382
|
items,
|
|
18370
18383
|
fill,
|
|
@@ -18376,7 +18389,7 @@ const Section$1 = ({
|
|
|
18376
18389
|
collapsed
|
|
18377
18390
|
} = useContext(SideMenuContext);
|
|
18378
18391
|
const isCollapsed = isCollapsedProp !== undefined ? isCollapsedProp : collapsed;
|
|
18379
|
-
const titleClassNames = cssClassName(`${COMPONENT_NAME$
|
|
18392
|
+
const titleClassNames = cssClassName(`${COMPONENT_NAME$g}__TitleWrapper`, (isCollapsed !== undefined ? isCollapsed : collapsed) && "isCollapsed");
|
|
18380
18393
|
const titleMarkup = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18381
18394
|
// layout
|
|
18382
18395
|
className: titleClassNames
|
|
@@ -18422,10 +18435,10 @@ const Section$1 = ({
|
|
|
18422
18435
|
}, `alpha-side-menu-item-${index}`);
|
|
18423
18436
|
};
|
|
18424
18437
|
const itemsMarkup = items && items.length > 0 ? /*#__PURE__*/jsxRuntimeExports.jsx("ul", {
|
|
18425
|
-
className: `${COMPONENT_NAME$
|
|
18438
|
+
className: `${COMPONENT_NAME$g}__Items`,
|
|
18426
18439
|
children: items.map(renderItem)
|
|
18427
18440
|
}) : null;
|
|
18428
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18441
|
+
const classNames = cssClassName(COMPONENT_NAME$g, fill && "isFill");
|
|
18429
18442
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18430
18443
|
className: classNames
|
|
18431
18444
|
// layout
|
|
@@ -18438,7 +18451,7 @@ const Section$1 = ({
|
|
|
18438
18451
|
});
|
|
18439
18452
|
};
|
|
18440
18453
|
|
|
18441
|
-
const COMPONENT_NAME$
|
|
18454
|
+
const COMPONENT_NAME$f = "AlphaSideMenu__Tier";
|
|
18442
18455
|
const Tier = ({
|
|
18443
18456
|
children,
|
|
18444
18457
|
title,
|
|
@@ -18453,12 +18466,12 @@ const Tier = ({
|
|
|
18453
18466
|
const isMenuCollapsed = isCollapsed !== undefined ? isCollapsed : collapsed;
|
|
18454
18467
|
const titleMarkup = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18455
18468
|
// layout
|
|
18456
|
-
className: `${COMPONENT_NAME$
|
|
18469
|
+
className: `${COMPONENT_NAME$f}__TitleWrapper`,
|
|
18457
18470
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18458
18471
|
children: title
|
|
18459
18472
|
})
|
|
18460
18473
|
}) : null;
|
|
18461
|
-
const cssExpandButtonWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18474
|
+
const cssExpandButtonWrapperClassName = cssClassName(`${COMPONENT_NAME$f}__ExpandButtonWrapper`, hasSubNavigation && "isCollapsed");
|
|
18462
18475
|
const expandButtonMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18463
18476
|
// layout
|
|
18464
18477
|
className: cssExpandButtonWrapperClassName,
|
|
@@ -18468,7 +18481,7 @@ const Tier = ({
|
|
|
18468
18481
|
onClick: onExpand
|
|
18469
18482
|
})
|
|
18470
18483
|
});
|
|
18471
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18484
|
+
const classNames = cssClassName(COMPONENT_NAME$f, isMenuCollapsed && "isCollapsed");
|
|
18472
18485
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18473
18486
|
className: classNames
|
|
18474
18487
|
// initial={false}
|
|
@@ -18482,7 +18495,7 @@ const Tier = ({
|
|
|
18482
18495
|
});
|
|
18483
18496
|
};
|
|
18484
18497
|
|
|
18485
|
-
const COMPONENT_NAME$
|
|
18498
|
+
const COMPONENT_NAME$e = "AlphaSideMenu";
|
|
18486
18499
|
const AlphaSideMenu = ({
|
|
18487
18500
|
children,
|
|
18488
18501
|
collapsed,
|
|
@@ -18503,7 +18516,7 @@ const AlphaSideMenu = ({
|
|
|
18503
18516
|
console.error("AlphaSideMenu only accepts Section components as children");
|
|
18504
18517
|
}
|
|
18505
18518
|
});
|
|
18506
|
-
const cssClassNames = cssClassName(COMPONENT_NAME$
|
|
18519
|
+
const cssClassNames = cssClassName(COMPONENT_NAME$e, isCollapsed && "isCollapsed");
|
|
18507
18520
|
const handleSetCurrentTierItems = (items, item) => {
|
|
18508
18521
|
if (!item?.isExternal) {
|
|
18509
18522
|
if (!items.length) {
|
|
@@ -18556,7 +18569,7 @@ const StepDefault = {
|
|
|
18556
18569
|
status: 'incomplete'
|
|
18557
18570
|
};
|
|
18558
18571
|
|
|
18559
|
-
const COMPONENT_NAME$
|
|
18572
|
+
const COMPONENT_NAME$d = 'AlphaStepper__Step';
|
|
18560
18573
|
const Step = ({
|
|
18561
18574
|
iconMarkup,
|
|
18562
18575
|
label,
|
|
@@ -18569,20 +18582,20 @@ const Step = ({
|
|
|
18569
18582
|
const {
|
|
18570
18583
|
theme
|
|
18571
18584
|
} = useTheme();
|
|
18572
|
-
const itemClassName = cssClassName(`${COMPONENT_NAME$
|
|
18585
|
+
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');
|
|
18573
18586
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18574
|
-
className: COMPONENT_NAME$
|
|
18587
|
+
className: COMPONENT_NAME$d,
|
|
18575
18588
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18576
18589
|
className: itemClassName,
|
|
18577
18590
|
children: iconMarkup
|
|
18578
18591
|
}), /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18579
|
-
className: `${COMPONENT_NAME$
|
|
18592
|
+
className: `${COMPONENT_NAME$d}__Label`,
|
|
18580
18593
|
children: label
|
|
18581
18594
|
})]
|
|
18582
18595
|
});
|
|
18583
18596
|
};
|
|
18584
18597
|
|
|
18585
|
-
const COMPONENT_NAME$
|
|
18598
|
+
const COMPONENT_NAME$c = "AlphaStepper";
|
|
18586
18599
|
const getSourceIcon = icon => {
|
|
18587
18600
|
if (icon) {
|
|
18588
18601
|
if (isValidIcon(icon.icon)) {
|
|
@@ -18609,7 +18622,7 @@ const AlphaStepper = ({
|
|
|
18609
18622
|
...StepDefault
|
|
18610
18623
|
}, index) => {
|
|
18611
18624
|
const lastStepStatus = steps[index - 1] ? steps[index - 1].status : "";
|
|
18612
|
-
const iconClassName = cssClassName(`${COMPONENT_NAME$
|
|
18625
|
+
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`);
|
|
18613
18626
|
let iconSource = getSourceIcon(incompleteIcon);
|
|
18614
18627
|
if (step.hasError && errorIcon) iconSource = getSourceIcon(errorIcon);
|
|
18615
18628
|
if (step.status === "complete") iconSource = getSourceIcon(completeIcon);
|
|
@@ -18629,23 +18642,23 @@ const AlphaStepper = ({
|
|
|
18629
18642
|
isSuccess: isSuccess,
|
|
18630
18643
|
isLastStepComplete: isLastStepComplete,
|
|
18631
18644
|
isLastStepInactive: isLastStepInactive
|
|
18632
|
-
}, `${COMPONENT_NAME$
|
|
18645
|
+
}, `${COMPONENT_NAME$c}-${index}`);
|
|
18633
18646
|
};
|
|
18634
18647
|
const stepsMarkup = steps ? steps.map(renderStep) : null;
|
|
18635
18648
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18636
|
-
className: `${COMPONENT_NAME$
|
|
18649
|
+
className: `${COMPONENT_NAME$c}__Container`,
|
|
18637
18650
|
children: stepsMarkup
|
|
18638
18651
|
});
|
|
18639
18652
|
};
|
|
18640
18653
|
|
|
18641
|
-
const COMPONENT_NAME$
|
|
18654
|
+
const COMPONENT_NAME$b = "AlphaTag";
|
|
18642
18655
|
const AlphaTag = ({
|
|
18643
18656
|
color,
|
|
18644
18657
|
children
|
|
18645
18658
|
}) => {
|
|
18646
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18659
|
+
const className = cssClassName(COMPONENT_NAME$b, color && `is-${color.color}-${color.intensity}`);
|
|
18647
18660
|
const childrenMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18648
|
-
className: `${COMPONENT_NAME$
|
|
18661
|
+
className: `${COMPONENT_NAME$b}__TextWrapper`,
|
|
18649
18662
|
children: children
|
|
18650
18663
|
});
|
|
18651
18664
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -18661,7 +18674,7 @@ const StatusIcon = {
|
|
|
18661
18674
|
Warning: WarningIcon
|
|
18662
18675
|
};
|
|
18663
18676
|
|
|
18664
|
-
const COMPONENT_NAME$
|
|
18677
|
+
const COMPONENT_NAME$a = "AlphaTile";
|
|
18665
18678
|
const AlphaTile = ({
|
|
18666
18679
|
isSelected,
|
|
18667
18680
|
icon,
|
|
@@ -18673,8 +18686,8 @@ const AlphaTile = ({
|
|
|
18673
18686
|
const {
|
|
18674
18687
|
theme
|
|
18675
18688
|
} = useTheme();
|
|
18676
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18677
|
-
const statusWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18689
|
+
const className = cssClassName(COMPONENT_NAME$a, `is${themeClassConverter(themeProp || theme)}`, isSelected && "isSelected");
|
|
18690
|
+
const statusWrapperClassName = cssClassName(`${COMPONENT_NAME$a}--StatusWrapper`, status && `is${status}`);
|
|
18678
18691
|
let iconSource;
|
|
18679
18692
|
if (icon) {
|
|
18680
18693
|
if (isValidIcon(icon.icon)) {
|
|
@@ -18689,21 +18702,21 @@ const AlphaTile = ({
|
|
|
18689
18702
|
}
|
|
18690
18703
|
}
|
|
18691
18704
|
const iconWrapper = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18692
|
-
className: `${COMPONENT_NAME$
|
|
18705
|
+
className: `${COMPONENT_NAME$a}__IconWrapper`,
|
|
18693
18706
|
children: iconSource
|
|
18694
18707
|
}) : null;
|
|
18695
18708
|
const mediaMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18696
|
-
className: `${COMPONENT_NAME$
|
|
18709
|
+
className: `${COMPONENT_NAME$a}__MediaWrapper`,
|
|
18697
18710
|
children: iconWrapper
|
|
18698
18711
|
}) : null;
|
|
18699
18712
|
const titleWrapper = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18700
18713
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18701
|
-
className: `${COMPONENT_NAME$
|
|
18714
|
+
className: `${COMPONENT_NAME$a}__TitleWrapper`,
|
|
18702
18715
|
children: title
|
|
18703
18716
|
})
|
|
18704
18717
|
}) : null;
|
|
18705
18718
|
const HeaderWrapper = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18706
|
-
className: `${COMPONENT_NAME$
|
|
18719
|
+
className: `${COMPONENT_NAME$a}__HeaderWrapper`,
|
|
18707
18720
|
children: [mediaMarkup, titleWrapper]
|
|
18708
18721
|
});
|
|
18709
18722
|
const statusIcon = status ? StatusIcon[status] : "";
|
|
@@ -18722,7 +18735,7 @@ const AlphaTile = ({
|
|
|
18722
18735
|
});
|
|
18723
18736
|
};
|
|
18724
18737
|
|
|
18725
|
-
const COMPONENT_NAME$
|
|
18738
|
+
const COMPONENT_NAME$9 = "TimeSelector";
|
|
18726
18739
|
const TimeSelector = ({
|
|
18727
18740
|
plurals,
|
|
18728
18741
|
singulars,
|
|
@@ -18854,7 +18867,7 @@ const TimeSelector = ({
|
|
|
18854
18867
|
let min;
|
|
18855
18868
|
if (valuesMaxMin) [min, max] = valuesMaxMin;
|
|
18856
18869
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18857
|
-
className: `${COMPONENT_NAME$
|
|
18870
|
+
className: `${COMPONENT_NAME$9}__InnerField`,
|
|
18858
18871
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
18859
18872
|
type: "number",
|
|
18860
18873
|
value: elValue,
|
|
@@ -18872,20 +18885,20 @@ const TimeSelector = ({
|
|
|
18872
18885
|
}, index);
|
|
18873
18886
|
};
|
|
18874
18887
|
const fieldsMarkup = Object.keys(singulars).map(renderField);
|
|
18875
|
-
const fieldClass = cssClassName(`${COMPONENT_NAME$
|
|
18888
|
+
const fieldClass = cssClassName(`${COMPONENT_NAME$9}__Field`, (isFocused || isActive) && "isFocused");
|
|
18876
18889
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18877
|
-
className: `${COMPONENT_NAME$
|
|
18890
|
+
className: `${COMPONENT_NAME$9}__LabelWrapper`,
|
|
18878
18891
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabel, {
|
|
18879
18892
|
isRequired: isRequired,
|
|
18880
18893
|
children: label
|
|
18881
18894
|
})
|
|
18882
18895
|
}) : null;
|
|
18883
18896
|
const helpTextMarkup = helpText ? helpText && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18884
|
-
className: `${COMPONENT_NAME$
|
|
18897
|
+
className: `${COMPONENT_NAME$9}__HelpTextWrapper`,
|
|
18885
18898
|
children: helpText
|
|
18886
18899
|
}) : null;
|
|
18887
18900
|
const fieldMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18888
|
-
className: `${COMPONENT_NAME$
|
|
18901
|
+
className: `${COMPONENT_NAME$9}__FieldWrapper`,
|
|
18889
18902
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs(AlphaTooltip, {
|
|
18890
18903
|
content: error,
|
|
18891
18904
|
appearance: "error",
|
|
@@ -18917,7 +18930,7 @@ const TimeSelector = ({
|
|
|
18917
18930
|
useEffect(() => {
|
|
18918
18931
|
setItems(getItemsMultiSelectionPicker());
|
|
18919
18932
|
}, [value]);
|
|
18920
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18933
|
+
const className = cssClassName(COMPONENT_NAME$9, theme, !value && "isEmpty");
|
|
18921
18934
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18922
18935
|
className: className,
|
|
18923
18936
|
children: [popoverMarkup, helpTextMarkup]
|
|
@@ -18928,7 +18941,7 @@ function getTimeValue(value) {
|
|
|
18928
18941
|
return value < 10 ? `0${value}` : `${value}`;
|
|
18929
18942
|
}
|
|
18930
18943
|
|
|
18931
|
-
const COMPONENT_NAME$
|
|
18944
|
+
const COMPONENT_NAME$8 = "Totalizer";
|
|
18932
18945
|
const Totalizer = ({
|
|
18933
18946
|
action,
|
|
18934
18947
|
direction,
|
|
@@ -18944,9 +18957,9 @@ const Totalizer = ({
|
|
|
18944
18957
|
theme
|
|
18945
18958
|
} = useTheme();
|
|
18946
18959
|
const themeClass = `has-Theme${themeProp ? themeProp.toUpperCase() : theme.toUpperCase()}`;
|
|
18947
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18960
|
+
const className = cssClassName(COMPONENT_NAME$8, themeClass, isDisabled && "isDisabled", isFocused && "isFocused", direction && `has-${direction}Direction`);
|
|
18948
18961
|
const titleMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18949
|
-
className: `${COMPONENT_NAME$
|
|
18962
|
+
className: `${COMPONENT_NAME$8}__TitleWrapper`,
|
|
18950
18963
|
children: label
|
|
18951
18964
|
}) : null;
|
|
18952
18965
|
let iconSource;
|
|
@@ -18962,28 +18975,28 @@ const Totalizer = ({
|
|
|
18962
18975
|
}
|
|
18963
18976
|
}
|
|
18964
18977
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18965
|
-
className: `${COMPONENT_NAME$
|
|
18978
|
+
className: `${COMPONENT_NAME$8}__IconWrapper`,
|
|
18966
18979
|
children: iconSource
|
|
18967
18980
|
}) : null;
|
|
18968
18981
|
const headerMarkup = titleMarkup || iconMarkup ? /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18969
|
-
className: `${COMPONENT_NAME$
|
|
18982
|
+
className: `${COMPONENT_NAME$8}__HeaderWrapper`,
|
|
18970
18983
|
children: [titleMarkup, iconMarkup]
|
|
18971
18984
|
}) : null;
|
|
18972
18985
|
const valueMarkup = value ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18973
|
-
className: `${COMPONENT_NAME$
|
|
18986
|
+
className: `${COMPONENT_NAME$8}__ValueWrapper`,
|
|
18974
18987
|
children: value
|
|
18975
18988
|
}) : null;
|
|
18976
18989
|
const placeholderValueMarkup = placeholderValue ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18977
|
-
className: `${COMPONENT_NAME$
|
|
18990
|
+
className: `${COMPONENT_NAME$8}__PlaceholderValueWrapper`,
|
|
18978
18991
|
children: placeholderValue
|
|
18979
18992
|
}) : null;
|
|
18980
18993
|
const valueContentToRender = !valueMarkup && placeholderValueMarkup || valueMarkup;
|
|
18981
18994
|
const valueContainerMarkup = valueMarkup || placeholderValueMarkup ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18982
|
-
className: `${COMPONENT_NAME$
|
|
18995
|
+
className: `${COMPONENT_NAME$8}__ValueContainerWrapper`,
|
|
18983
18996
|
children: valueContentToRender
|
|
18984
18997
|
}) : null;
|
|
18985
18998
|
const actionMarkup = action ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18986
|
-
className: `${COMPONENT_NAME$
|
|
18999
|
+
className: `${COMPONENT_NAME$8}__ActionWrapper`,
|
|
18987
19000
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
18988
19001
|
id: action.id,
|
|
18989
19002
|
onClick: action.onClick,
|
|
@@ -18999,7 +19012,7 @@ const Totalizer = ({
|
|
|
18999
19012
|
children: action.content
|
|
19000
19013
|
})
|
|
19001
19014
|
}) : null;
|
|
19002
|
-
const contentClassName = cssClassName(`${COMPONENT_NAME$
|
|
19015
|
+
const contentClassName = cssClassName(`${COMPONENT_NAME$8}__ContentWrapper`, action && "has-Action");
|
|
19003
19016
|
const contentMarkup = valueContainerMarkup || actionMarkup ? /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19004
19017
|
className: contentClassName,
|
|
19005
19018
|
children: [valueContainerMarkup, actionMarkup]
|
|
@@ -19010,7 +19023,7 @@ const Totalizer = ({
|
|
|
19010
19023
|
});
|
|
19011
19024
|
};
|
|
19012
19025
|
|
|
19013
|
-
const COMPONENT_NAME$
|
|
19026
|
+
const COMPONENT_NAME$7 = 'AlphaZipCodeInput';
|
|
19014
19027
|
const AlphaZipCodeInput = ({
|
|
19015
19028
|
label,
|
|
19016
19029
|
isRequired,
|
|
@@ -19042,20 +19055,20 @@ const AlphaZipCodeInput = ({
|
|
|
19042
19055
|
}
|
|
19043
19056
|
};
|
|
19044
19057
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19045
|
-
className: `${COMPONENT_NAME$
|
|
19058
|
+
className: `${COMPONENT_NAME$7}__LabelWrapper`,
|
|
19046
19059
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
19047
|
-
className: `${COMPONENT_NAME$
|
|
19060
|
+
className: `${COMPONENT_NAME$7}__Label`,
|
|
19048
19061
|
children: [label, isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
19049
|
-
className: `${COMPONENT_NAME$
|
|
19062
|
+
className: `${COMPONENT_NAME$7}__Label--isRequired`,
|
|
19050
19063
|
children: "*"
|
|
19051
19064
|
}) : null]
|
|
19052
19065
|
})
|
|
19053
19066
|
}) : null;
|
|
19054
|
-
const classesInput = cssClassName(`${COMPONENT_NAME$
|
|
19067
|
+
const classesInput = cssClassName(`${COMPONENT_NAME$7}__InputWrapper`, isFocusActive && 'isFocus', loading && 'loading');
|
|
19055
19068
|
const inputMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19056
19069
|
className: classesInput,
|
|
19057
19070
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
19058
|
-
className: `${COMPONENT_NAME$
|
|
19071
|
+
className: `${COMPONENT_NAME$7}__InputWrapper--input`,
|
|
19059
19072
|
onBlur: handleOnBlur,
|
|
19060
19073
|
onFocus: handleOnFocus,
|
|
19061
19074
|
onChange: handleOnChange,
|
|
@@ -19069,12 +19082,12 @@ const AlphaZipCodeInput = ({
|
|
|
19069
19082
|
setShowPopover(false);
|
|
19070
19083
|
};
|
|
19071
19084
|
const renderLabelItem = item => /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19072
|
-
className: `${COMPONENT_NAME$
|
|
19085
|
+
className: `${COMPONENT_NAME$7}__ItemWrapper`,
|
|
19073
19086
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19074
|
-
className: `${COMPONENT_NAME$
|
|
19087
|
+
className: `${COMPONENT_NAME$7}__Item__Value`,
|
|
19075
19088
|
children: item.cp
|
|
19076
19089
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19077
|
-
className: `${COMPONENT_NAME$
|
|
19090
|
+
className: `${COMPONENT_NAME$7}__Item__Description`,
|
|
19078
19091
|
children: [item.municipality, ", ", item.city, ", ", item.state]
|
|
19079
19092
|
})]
|
|
19080
19093
|
});
|
|
@@ -19088,7 +19101,7 @@ const AlphaZipCodeInput = ({
|
|
|
19088
19101
|
onChange: handleOnSelectItem
|
|
19089
19102
|
}) : null;
|
|
19090
19103
|
const emptyItemsMarkup = items && items.length === 0 ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19091
|
-
className: `${COMPONENT_NAME$
|
|
19104
|
+
className: `${COMPONENT_NAME$7}__EmptyItems`,
|
|
19092
19105
|
children: labelEmpty
|
|
19093
19106
|
}) : null;
|
|
19094
19107
|
const popoverMarkup = useMemo(() => /*#__PURE__*/jsxRuntimeExports.jsx(Popover$1, {
|
|
@@ -19107,7 +19120,7 @@ const AlphaZipCodeInput = ({
|
|
|
19107
19120
|
} else setShowPopover(false);
|
|
19108
19121
|
}, [items]);
|
|
19109
19122
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19110
|
-
className: `${COMPONENT_NAME$
|
|
19123
|
+
className: `${COMPONENT_NAME$7}__Wrapper`,
|
|
19111
19124
|
children: [labelMarkup, popoverMarkup]
|
|
19112
19125
|
});
|
|
19113
19126
|
};
|
|
@@ -33606,7 +33619,7 @@ const TrashIcon = () => /*#__PURE__*/jsxRuntimeExports.jsxs("svg", {
|
|
|
33606
33619
|
})]
|
|
33607
33620
|
});
|
|
33608
33621
|
|
|
33609
|
-
const COMPONENT_NAME$
|
|
33622
|
+
const COMPONENT_NAME$6 = 'DeletableSection';
|
|
33610
33623
|
const DeletableSection = ({
|
|
33611
33624
|
ariaLabel,
|
|
33612
33625
|
children,
|
|
@@ -33618,14 +33631,14 @@ const DeletableSection = ({
|
|
|
33618
33631
|
theme
|
|
33619
33632
|
} = useTheme();
|
|
33620
33633
|
const THEME_CLASS = `${theme}`;
|
|
33621
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
33622
|
-
const classNameButton = cssClassName(`${COMPONENT_NAME$
|
|
33634
|
+
const className = cssClassName(COMPONENT_NAME$6);
|
|
33635
|
+
const classNameButton = cssClassName(`${COMPONENT_NAME$6}__DeleteButtonWrapper`, THEME_CLASS);
|
|
33623
33636
|
const icon = iconDeletable || TrashIcon;
|
|
33624
33637
|
const deleteButtonMarkup = onDelete && isDeletable ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
33625
33638
|
className: classNameButton,
|
|
33626
33639
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
33627
33640
|
"aria-label": ariaLabel ? `${ariaLabel}-removeForm` : ariaLabel,
|
|
33628
|
-
className: `${COMPONENT_NAME$
|
|
33641
|
+
className: `${COMPONENT_NAME$6}__DeleteButton`,
|
|
33629
33642
|
onClick: onDelete,
|
|
33630
33643
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaIcon, {
|
|
33631
33644
|
source: icon,
|
|
@@ -33634,7 +33647,7 @@ const DeletableSection = ({
|
|
|
33634
33647
|
})
|
|
33635
33648
|
}) : null;
|
|
33636
33649
|
const contentMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
33637
|
-
className: `${COMPONENT_NAME$
|
|
33650
|
+
className: `${COMPONENT_NAME$6}__ContentWrapper`,
|
|
33638
33651
|
children: children
|
|
33639
33652
|
}) : null;
|
|
33640
33653
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -34036,7 +34049,7 @@ const SectionForm = ({
|
|
|
34036
34049
|
});
|
|
34037
34050
|
};
|
|
34038
34051
|
|
|
34039
|
-
const COMPONENT_NAME$
|
|
34052
|
+
const COMPONENT_NAME$5 = "DynamicForm";
|
|
34040
34053
|
const DynamicForm = ({
|
|
34041
34054
|
ariaLabel,
|
|
34042
34055
|
dataFormArray = [],
|
|
@@ -34090,7 +34103,7 @@ const DynamicForm = ({
|
|
|
34090
34103
|
}, `DynamicForm-${form.id}-${index}}`);
|
|
34091
34104
|
};
|
|
34092
34105
|
const contactsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
34093
|
-
className: `${COMPONENT_NAME$
|
|
34106
|
+
className: `${COMPONENT_NAME$5}__SectionFormWrapper`,
|
|
34094
34107
|
children: dataFormArray.map(renderForm)
|
|
34095
34108
|
});
|
|
34096
34109
|
const dividerMarkup = labelDivider && /*#__PURE__*/jsxRuntimeExports.jsx(Divider, {
|
|
@@ -34103,7 +34116,7 @@ const DynamicForm = ({
|
|
|
34103
34116
|
children: onAddForm.label
|
|
34104
34117
|
});
|
|
34105
34118
|
const THEME_CLASS = `${theme}`;
|
|
34106
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
34119
|
+
const className = cssClassName(COMPONENT_NAME$5, THEME_CLASS);
|
|
34107
34120
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
34108
34121
|
className: className,
|
|
34109
34122
|
children: [dividerMarkup, contactsMarkup, addContactButtonMarkup]
|
|
@@ -36876,16 +36889,16 @@ Sortable.mount(Remove, Revert);
|
|
|
36876
36889
|
|
|
36877
36890
|
const Context = /*#__PURE__*/createContext({});
|
|
36878
36891
|
|
|
36879
|
-
const COMPONENT_NAME$
|
|
36892
|
+
const COMPONENT_NAME$4 = 'SortableList__Item';
|
|
36880
36893
|
const Item$1 = ({
|
|
36881
36894
|
children
|
|
36882
36895
|
}) => {
|
|
36883
36896
|
const {
|
|
36884
36897
|
hasHandle
|
|
36885
36898
|
} = useContext(Context);
|
|
36886
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
36899
|
+
const className = cssClassName(COMPONENT_NAME$4, !hasHandle && 'no-handle');
|
|
36887
36900
|
const handleMarkup = hasHandle ? /*#__PURE__*/jsxRuntimeExports.jsxs("span", {
|
|
36888
|
-
className: `${COMPONENT_NAME$
|
|
36901
|
+
className: `${COMPONENT_NAME$4}__Handle`,
|
|
36889
36902
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
36890
36903
|
name: "MoreVertical"
|
|
36891
36904
|
}), /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
@@ -36893,7 +36906,7 @@ const Item$1 = ({
|
|
|
36893
36906
|
})]
|
|
36894
36907
|
}) : null;
|
|
36895
36908
|
const contentMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
36896
|
-
className: `${COMPONENT_NAME$
|
|
36909
|
+
className: `${COMPONENT_NAME$4}__Content`,
|
|
36897
36910
|
children: children
|
|
36898
36911
|
});
|
|
36899
36912
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("li", {
|
|
@@ -36902,7 +36915,7 @@ const Item$1 = ({
|
|
|
36902
36915
|
});
|
|
36903
36916
|
};
|
|
36904
36917
|
|
|
36905
|
-
const COMPONENT_NAME$
|
|
36918
|
+
const COMPONENT_NAME$3 = "SortableList";
|
|
36906
36919
|
const SortableList = function ({
|
|
36907
36920
|
renderItem,
|
|
36908
36921
|
items,
|
|
@@ -36910,7 +36923,7 @@ const SortableList = function ({
|
|
|
36910
36923
|
hasHandle
|
|
36911
36924
|
}) {
|
|
36912
36925
|
const listRef = useRef(null);
|
|
36913
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
36926
|
+
const className = cssClassName(COMPONENT_NAME$3);
|
|
36914
36927
|
const hasItems = items && items.length > 0;
|
|
36915
36928
|
const handleSortEnd = event => {
|
|
36916
36929
|
const {
|
|
@@ -36942,7 +36955,7 @@ const SortableList = function ({
|
|
|
36942
36955
|
}
|
|
36943
36956
|
return itemComponent;
|
|
36944
36957
|
};
|
|
36945
|
-
const listClassName = cssClassName(`${COMPONENT_NAME$
|
|
36958
|
+
const listClassName = cssClassName(`${COMPONENT_NAME$3}__List`);
|
|
36946
36959
|
const listMarkup = hasItems ? /*#__PURE__*/jsxRuntimeExports.jsx("ul", {
|
|
36947
36960
|
ref: listRef,
|
|
36948
36961
|
className: listClassName,
|
|
@@ -37506,7 +37519,7 @@ const FilterControl = ({
|
|
|
37506
37519
|
});
|
|
37507
37520
|
};
|
|
37508
37521
|
|
|
37509
|
-
const COMPONENT_NAME$
|
|
37522
|
+
const COMPONENT_NAME$2 = 'FilterField';
|
|
37510
37523
|
const FilterField = ({
|
|
37511
37524
|
label,
|
|
37512
37525
|
isRequired = false,
|
|
@@ -37515,19 +37528,19 @@ const FilterField = ({
|
|
|
37515
37528
|
name
|
|
37516
37529
|
}) => {
|
|
37517
37530
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37518
|
-
className: `${COMPONENT_NAME$
|
|
37531
|
+
className: `${COMPONENT_NAME$2}__LabelWrapper`,
|
|
37519
37532
|
children: label
|
|
37520
37533
|
}) : null;
|
|
37521
37534
|
const filterFieldMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37522
|
-
className: `${COMPONENT_NAME$
|
|
37535
|
+
className: `${COMPONENT_NAME$2}__FieldWrapper`,
|
|
37523
37536
|
id: name,
|
|
37524
37537
|
children: field
|
|
37525
37538
|
});
|
|
37526
37539
|
const removeButtonMarkup = onRemove && !isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37527
|
-
className: `${COMPONENT_NAME$
|
|
37540
|
+
className: `${COMPONENT_NAME$2}__RemoveButtonWrapper`,
|
|
37528
37541
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
37529
37542
|
type: "button",
|
|
37530
|
-
className: `${COMPONENT_NAME$
|
|
37543
|
+
className: `${COMPONENT_NAME$2}__RemoveButton`,
|
|
37531
37544
|
onClick: onRemove,
|
|
37532
37545
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
37533
37546
|
name: "X"
|
|
@@ -37535,12 +37548,12 @@ const FilterField = ({
|
|
|
37535
37548
|
})
|
|
37536
37549
|
}) : null;
|
|
37537
37550
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37538
|
-
className: `${COMPONENT_NAME$
|
|
37551
|
+
className: `${COMPONENT_NAME$2}`,
|
|
37539
37552
|
children: [labelMarkup, filterFieldMarkup, removeButtonMarkup]
|
|
37540
37553
|
});
|
|
37541
37554
|
};
|
|
37542
37555
|
|
|
37543
|
-
const COMPONENT_NAME = 'Filters';
|
|
37556
|
+
const COMPONENT_NAME$1 = 'Filters';
|
|
37544
37557
|
const Filters = ({
|
|
37545
37558
|
ariaLabel,
|
|
37546
37559
|
filters = [],
|
|
@@ -37594,11 +37607,11 @@ const Filters = ({
|
|
|
37594
37607
|
key: `extra-action-${index}`
|
|
37595
37608
|
}, extraAction.label)) : null;
|
|
37596
37609
|
const secondaryActionsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37597
|
-
className: `${COMPONENT_NAME}__SecondaryActionsWrapper`,
|
|
37610
|
+
className: `${COMPONENT_NAME$1}__SecondaryActionsWrapper`,
|
|
37598
37611
|
children: availableFiltersPopoverMarkup
|
|
37599
37612
|
});
|
|
37600
37613
|
const mainActionsMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37601
|
-
className: `${COMPONENT_NAME}__MainActionsWrapper`,
|
|
37614
|
+
className: `${COMPONENT_NAME$1}__MainActionsWrapper`,
|
|
37602
37615
|
children: [extraActionsMarkup, /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
37603
37616
|
ariaLabel: `${ariaLabel}-cleanFilters`,
|
|
37604
37617
|
onClick: onCleanFilters,
|
|
@@ -37622,7 +37635,7 @@ const Filters = ({
|
|
|
37622
37635
|
handleRemoveFilter(filter);
|
|
37623
37636
|
};
|
|
37624
37637
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37625
|
-
className: `${COMPONENT_NAME}__SelectedFilter`,
|
|
37638
|
+
className: `${COMPONENT_NAME$1}__SelectedFilter`,
|
|
37626
37639
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(FilterField, {
|
|
37627
37640
|
label: foundFilter.label,
|
|
37628
37641
|
field: foundFilter.filter,
|
|
@@ -37633,15 +37646,15 @@ const Filters = ({
|
|
|
37633
37646
|
}, index);
|
|
37634
37647
|
};
|
|
37635
37648
|
const selectedFiltersMarkup = selectedFilters.length ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37636
|
-
className: `${COMPONENT_NAME}__SelectedFiltersWrapper`,
|
|
37649
|
+
className: `${COMPONENT_NAME$1}__SelectedFiltersWrapper`,
|
|
37637
37650
|
children: selectedFilters.map(renderSelectedFilter)
|
|
37638
37651
|
}) : null;
|
|
37639
37652
|
const actionsContainerMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37640
|
-
className: `${COMPONENT_NAME}__ActionsWrapper`,
|
|
37653
|
+
className: `${COMPONENT_NAME$1}__ActionsWrapper`,
|
|
37641
37654
|
children: [secondaryActionsMarkup, mainActionsMarkup]
|
|
37642
37655
|
});
|
|
37643
37656
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37644
|
-
className: COMPONENT_NAME,
|
|
37657
|
+
className: COMPONENT_NAME$1,
|
|
37645
37658
|
ref: mainContainerRef,
|
|
37646
37659
|
children: [selectedFiltersMarkup, actionsContainerMarkup]
|
|
37647
37660
|
});
|
|
@@ -39684,7 +39697,7 @@ function BrowserRouter({
|
|
|
39684
39697
|
);
|
|
39685
39698
|
}
|
|
39686
39699
|
var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
39687
|
-
var Link = React2.forwardRef(
|
|
39700
|
+
var Link$1 = React2.forwardRef(
|
|
39688
39701
|
function LinkWithRef({
|
|
39689
39702
|
onClick,
|
|
39690
39703
|
discover = "render",
|
|
@@ -39760,7 +39773,7 @@ var Link = React2.forwardRef(
|
|
|
39760
39773
|
return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(PrefetchPageLinks, { page: href2 })) : link;
|
|
39761
39774
|
}
|
|
39762
39775
|
);
|
|
39763
|
-
Link.displayName = "Link";
|
|
39776
|
+
Link$1.displayName = "Link";
|
|
39764
39777
|
var NavLink = React2.forwardRef(
|
|
39765
39778
|
function NavLinkWithRef({
|
|
39766
39779
|
"aria-current": ariaCurrentProp = "page",
|
|
@@ -39813,7 +39826,7 @@ var NavLink = React2.forwardRef(
|
|
|
39813
39826
|
}
|
|
39814
39827
|
let style = typeof styleProp === "function" ? styleProp(renderProps) : styleProp;
|
|
39815
39828
|
return /* @__PURE__ */ React2.createElement(
|
|
39816
|
-
Link,
|
|
39829
|
+
Link$1,
|
|
39817
39830
|
{
|
|
39818
39831
|
...rest,
|
|
39819
39832
|
"aria-current": ariaCurrent,
|
|
@@ -41305,5 +41318,23 @@ const Tile = ({
|
|
|
41305
41318
|
});
|
|
41306
41319
|
};
|
|
41307
41320
|
|
|
41308
|
-
|
|
41321
|
+
const COMPONENT_NAME = 'Link';
|
|
41322
|
+
const Link = ({
|
|
41323
|
+
children,
|
|
41324
|
+
className: classNameProp,
|
|
41325
|
+
component,
|
|
41326
|
+
to,
|
|
41327
|
+
target
|
|
41328
|
+
}) => {
|
|
41329
|
+
const Component = component;
|
|
41330
|
+
const className = cssClassName(COMPONENT_NAME, classNameProp);
|
|
41331
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(Component, {
|
|
41332
|
+
className: className,
|
|
41333
|
+
to: to,
|
|
41334
|
+
target: target,
|
|
41335
|
+
children: children
|
|
41336
|
+
});
|
|
41337
|
+
};
|
|
41338
|
+
|
|
41339
|
+
export { ActionList, Alert, AlertProvider, AlphaAttributeInput, AlphaBadge, AlphaButton, AlphaChip, AlphaFilterControl, AlphaGraphicCard, AlphaIcon, AlphaInlineError, AlphaInputDate, InputTag$1 as AlphaInputTag, AlphaInputText, AlphaLabel, AlphaLabelledField, AlphaMultiSelectionPicker, AlphaSegmentedControl, AlphaSideMenu, AlphaSpinner, AlphaStepper, AlphaTag, AlphaTile, AlphaTooltip, Totalizer as AlphaTotalizer, AlphaZipCodeInput, AnnotatedSection, Avatar, Badge, Banner, Button, CalendarPicker, Card, Checkbox, ChoiceList, Collapsible, Connector, Container, Cover, DataTable, DatePicker, DeletableSection, Divider, DynamicForm, EmptyState, ErrorIcon, FileDownloader, Filedrop, FilterControl, Filters, Footer, Form$1 as Form, FormField, FormLayout, Frame, Grid, GridItem, Header$1 as Header, Icon, IconButton, IndexList, InlineEdit, InputPhoneNumber, InputTag, InputText, Item$2 as Item, JsonViewer, Label, Link, ListInfo, Loader, Logo, Media, Modal, ModalHeader, Nip, OptionList, Page, PageActions, Pagination, Pane, Panel, PanelFooter, PanelHeader, PendingIcon, Popover$1 as Popover, Progress, RadioButton, Section$1 as Section, SectionForm, Select, SideMenu, SkeletonInput, SkeletonMedia, SkeletonTabs, SkeletonText, SkeletonTitle, SortableList, Spinner, Stack, StepDefault, SuccessIcon, Table, Tabs, Tag, ThemeProvider, ThreadItem, Thumbnail, Tier, Tile, TimeSelector, Title, Toggle, Tooltip, WarningIcon, capitalize, cssClassName, formatDate, formatFileSize, isComponentTypeOf, isValidIcon, themeClassConverter, useShowAlert, useTheme };
|
|
41309
41340
|
//# sourceMappingURL=index.esm.js.map
|