kiban-design-system 1.0.283-alpha.0 → 1.0.284-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/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 +201 -182
- 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 +201 -183
- 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,
|
|
@@ -6974,7 +6974,7 @@ const Grid = ({
|
|
|
6974
6974
|
};
|
|
6975
6975
|
Grid.Item = GridItem;
|
|
6976
6976
|
|
|
6977
|
-
const COMPONENT_NAME$
|
|
6977
|
+
const COMPONENT_NAME$F = 'AlphaAttributeInput';
|
|
6978
6978
|
const AlphaAttributeInput = ({
|
|
6979
6979
|
items,
|
|
6980
6980
|
divider,
|
|
@@ -6982,7 +6982,7 @@ const AlphaAttributeInput = ({
|
|
|
6982
6982
|
isRequired
|
|
6983
6983
|
}) => {
|
|
6984
6984
|
const [isFocused, setIsFocused] = React2.useState(false);
|
|
6985
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
6985
|
+
const className = cssClassName(COMPONENT_NAME$F, isFocused && 'isFocused');
|
|
6986
6986
|
const handleBlur = callback => {
|
|
6987
6987
|
setIsFocused(false);
|
|
6988
6988
|
if (callback) {
|
|
@@ -7002,16 +7002,16 @@ const AlphaAttributeInput = ({
|
|
|
7002
7002
|
}
|
|
7003
7003
|
};
|
|
7004
7004
|
const itemLabelMarkup = item.label ? /*#__PURE__*/jsxRuntimeExports.jsx("label", {
|
|
7005
|
-
className: `${COMPONENT_NAME$
|
|
7005
|
+
className: `${COMPONENT_NAME$F}__ItemLabelWrapper`,
|
|
7006
7006
|
children: item.label
|
|
7007
7007
|
}) : null;
|
|
7008
7008
|
const dividerMarkup = divider && index < items.length - 1 ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7009
|
-
className: `${COMPONENT_NAME$
|
|
7009
|
+
className: `${COMPONENT_NAME$F}__Divider`,
|
|
7010
7010
|
children: divider
|
|
7011
7011
|
}) : null;
|
|
7012
7012
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(React2.Fragment, {
|
|
7013
7013
|
children: [/*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
7014
|
-
className: `${COMPONENT_NAME$
|
|
7014
|
+
className: `${COMPONENT_NAME$F}__Item`,
|
|
7015
7015
|
children: [itemLabelMarkup, /*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
7016
7016
|
type: item.type,
|
|
7017
7017
|
value: item.value,
|
|
@@ -7028,17 +7028,17 @@ const AlphaAttributeInput = ({
|
|
|
7028
7028
|
}, index);
|
|
7029
7029
|
};
|
|
7030
7030
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7031
|
-
className: `${COMPONENT_NAME$
|
|
7031
|
+
className: `${COMPONENT_NAME$F}__LabelWrapper`,
|
|
7032
7032
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
7033
|
-
className: `${COMPONENT_NAME$
|
|
7033
|
+
className: `${COMPONENT_NAME$F}__Label`,
|
|
7034
7034
|
children: [label, isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7035
|
-
className: `${COMPONENT_NAME$
|
|
7035
|
+
className: `${COMPONENT_NAME$F}__IsRequiredSign`,
|
|
7036
7036
|
children: "*"
|
|
7037
7037
|
}) : null]
|
|
7038
7038
|
})
|
|
7039
7039
|
}) : null;
|
|
7040
7040
|
const itemsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7041
|
-
className: `${COMPONENT_NAME$
|
|
7041
|
+
className: `${COMPONENT_NAME$F}__ItemsWrapper`,
|
|
7042
7042
|
children: items.map(renderItem)
|
|
7043
7043
|
});
|
|
7044
7044
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -7047,7 +7047,7 @@ const AlphaAttributeInput = ({
|
|
|
7047
7047
|
});
|
|
7048
7048
|
};
|
|
7049
7049
|
|
|
7050
|
-
const COMPONENT_NAME$
|
|
7050
|
+
const COMPONENT_NAME$E = "AlphaBadge";
|
|
7051
7051
|
const AlphaBadge = ({
|
|
7052
7052
|
theme: themeProp,
|
|
7053
7053
|
children,
|
|
@@ -7060,9 +7060,9 @@ const AlphaBadge = ({
|
|
|
7060
7060
|
theme
|
|
7061
7061
|
} = useTheme();
|
|
7062
7062
|
const THEME_CLASS = `${theme}`;
|
|
7063
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7063
|
+
const className = cssClassName(COMPONENT_NAME$E, !themeProp && THEME_CLASS, isPrimary && "isPrimary", isDanger && "isDanger", isSuccess && "isSuccess", isWarning && "isWarning", themeProp && `${themeProp.toUpperCase()}`);
|
|
7064
7064
|
const childrenMarkup = children && /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7065
|
-
className: `${COMPONENT_NAME$
|
|
7065
|
+
className: `${COMPONENT_NAME$E}__TextWrapper`,
|
|
7066
7066
|
children: children
|
|
7067
7067
|
});
|
|
7068
7068
|
return /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
@@ -7071,7 +7071,7 @@ const AlphaBadge = ({
|
|
|
7071
7071
|
});
|
|
7072
7072
|
};
|
|
7073
7073
|
|
|
7074
|
-
const COMPONENT_NAME$
|
|
7074
|
+
const COMPONENT_NAME$D = "AlphaIcon";
|
|
7075
7075
|
const ICON_COLOR_VARIANTS = ["danger", "darkGray", "lightGray", "onDark", "primary", "success", "warning", "cloud", "klin", "link", "rainao", "workfloo", "rekon"];
|
|
7076
7076
|
const AlphaIcon = ({
|
|
7077
7077
|
source,
|
|
@@ -7090,10 +7090,10 @@ const AlphaIcon = ({
|
|
|
7090
7090
|
if (color && !ICON_COLOR_VARIANTS.includes(color)) {
|
|
7091
7091
|
console.warn(`The color ${color} is not supported for the AlphaIcon component when hasBackdrop is true.`);
|
|
7092
7092
|
}
|
|
7093
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7093
|
+
const className = cssClassName(COMPONENT_NAME$D, color && `is-${color}`, filled && "isFilled", outlined && "isOutlined", size && `is-${size}`, hasBackdrop && "hasBackdrop", source && `source-${sourceType}`);
|
|
7094
7094
|
const Source = source;
|
|
7095
7095
|
const StringSource = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7096
|
-
className: `${COMPONENT_NAME$
|
|
7096
|
+
className: `${COMPONENT_NAME$D}__StringSource`,
|
|
7097
7097
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7098
7098
|
children: source
|
|
7099
7099
|
})
|
|
@@ -7108,12 +7108,12 @@ const AlphaIcon = ({
|
|
|
7108
7108
|
});
|
|
7109
7109
|
};
|
|
7110
7110
|
|
|
7111
|
-
const COMPONENT_NAME$
|
|
7111
|
+
const COMPONENT_NAME$C = "AlphaSpinner";
|
|
7112
7112
|
const AlphaSpinner = ({
|
|
7113
7113
|
icon,
|
|
7114
7114
|
size
|
|
7115
7115
|
}) => {
|
|
7116
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7116
|
+
const className = cssClassName(COMPONENT_NAME$C);
|
|
7117
7117
|
let iconSource;
|
|
7118
7118
|
if (icon) {
|
|
7119
7119
|
if (isValidIcon(icon.icon)) {
|
|
@@ -7128,7 +7128,7 @@ const AlphaSpinner = ({
|
|
|
7128
7128
|
}
|
|
7129
7129
|
}
|
|
7130
7130
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7131
|
-
className: `${COMPONENT_NAME$
|
|
7131
|
+
className: `${COMPONENT_NAME$C}__IconWrapper`,
|
|
7132
7132
|
children: iconSource
|
|
7133
7133
|
}) : null;
|
|
7134
7134
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -7137,7 +7137,7 @@ const AlphaSpinner = ({
|
|
|
7137
7137
|
});
|
|
7138
7138
|
};
|
|
7139
7139
|
|
|
7140
|
-
const COMPONENT_NAME$
|
|
7140
|
+
const COMPONENT_NAME$B = "AlphaButton";
|
|
7141
7141
|
const AlphaButton = ({
|
|
7142
7142
|
ariaLabel,
|
|
7143
7143
|
children,
|
|
@@ -7173,7 +7173,7 @@ const AlphaButton = ({
|
|
|
7173
7173
|
} = useTheme();
|
|
7174
7174
|
const THEME_CLASS = `${theme}`;
|
|
7175
7175
|
const isIconOnly = !children && icon;
|
|
7176
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7176
|
+
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
7177
|
const buttonProps = {
|
|
7178
7178
|
id,
|
|
7179
7179
|
type: isSubmit ? "submit" : "button",
|
|
@@ -7191,7 +7191,7 @@ const AlphaButton = ({
|
|
|
7191
7191
|
onTouchEnd
|
|
7192
7192
|
};
|
|
7193
7193
|
const childrenMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7194
|
-
className: `${COMPONENT_NAME$
|
|
7194
|
+
className: `${COMPONENT_NAME$B}__TextWrapper`,
|
|
7195
7195
|
children: children
|
|
7196
7196
|
}) : null;
|
|
7197
7197
|
let iconSource;
|
|
@@ -7217,11 +7217,11 @@ const AlphaButton = ({
|
|
|
7217
7217
|
}
|
|
7218
7218
|
}
|
|
7219
7219
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7220
|
-
className: `${COMPONENT_NAME$
|
|
7220
|
+
className: `${COMPONENT_NAME$B}__IconWrapper`,
|
|
7221
7221
|
children: iconSource
|
|
7222
7222
|
}) : null;
|
|
7223
7223
|
const spinnerMarkup = isLoading && /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7224
|
-
className: `${COMPONENT_NAME$
|
|
7224
|
+
className: `${COMPONENT_NAME$B}__SpinnerWrapper`,
|
|
7225
7225
|
children: spinnerIconSource
|
|
7226
7226
|
});
|
|
7227
7227
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("button", {
|
|
@@ -7231,7 +7231,7 @@ const AlphaButton = ({
|
|
|
7231
7231
|
});
|
|
7232
7232
|
};
|
|
7233
7233
|
|
|
7234
|
-
const COMPONENT_NAME$
|
|
7234
|
+
const COMPONENT_NAME$A = "AlphaChip";
|
|
7235
7235
|
const AlphaChip = ({
|
|
7236
7236
|
children,
|
|
7237
7237
|
hasError,
|
|
@@ -7244,13 +7244,13 @@ const AlphaChip = ({
|
|
|
7244
7244
|
theme: currentTheme
|
|
7245
7245
|
} = useTheme();
|
|
7246
7246
|
const THEME_CLASS = `${currentTheme}`;
|
|
7247
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7247
|
+
const className = cssClassName(COMPONENT_NAME$A, hasError && "hasError", isDisabled && "isDisabled", theme && `${theme.toUpperCase()}`, THEME_CLASS);
|
|
7248
7248
|
const childrenMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7249
|
-
className: `${COMPONENT_NAME$
|
|
7249
|
+
className: `${COMPONENT_NAME$A}__TextWrapper`,
|
|
7250
7250
|
children: children
|
|
7251
7251
|
}) : null;
|
|
7252
7252
|
const closeButtonMarkup = removeButtonIcon && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7253
|
-
className: `${COMPONENT_NAME$
|
|
7253
|
+
className: `${COMPONENT_NAME$A}__CloseButtonWrapper`,
|
|
7254
7254
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
7255
7255
|
onClick: onRemove,
|
|
7256
7256
|
icon: removeButtonIcon
|
|
@@ -7298,7 +7298,7 @@ const getPosition = (activator, tooltip, alignment) => {
|
|
|
7298
7298
|
};
|
|
7299
7299
|
};
|
|
7300
7300
|
|
|
7301
|
-
const COMPONENT_NAME$
|
|
7301
|
+
const COMPONENT_NAME$z = 'Alpha__TooltipOverlay';
|
|
7302
7302
|
const Overlay = ({
|
|
7303
7303
|
children,
|
|
7304
7304
|
activator,
|
|
@@ -7312,7 +7312,7 @@ const Overlay = ({
|
|
|
7312
7312
|
onClick
|
|
7313
7313
|
}) => {
|
|
7314
7314
|
const tooltipRef = React2.useRef(null);
|
|
7315
|
-
const overlayClassName = cssClassName(COMPONENT_NAME$
|
|
7315
|
+
const overlayClassName = cssClassName(COMPONENT_NAME$z, position && `is-${position}`, appearance && `is-${appearance}`, theme && appearance === 'default' && `is-${theme}`);
|
|
7316
7316
|
const [positionStyles, setPositionStyles] = React2.useState({
|
|
7317
7317
|
'--tooltip-overlay-top': 0,
|
|
7318
7318
|
'--tooltip-overlay-left': 0,
|
|
@@ -7363,7 +7363,7 @@ const Overlay = ({
|
|
|
7363
7363
|
return markup;
|
|
7364
7364
|
};
|
|
7365
7365
|
|
|
7366
|
-
const COMPONENT_NAME$
|
|
7366
|
+
const COMPONENT_NAME$y = 'AlphaTooltip';
|
|
7367
7367
|
const AlphaTooltip = ({
|
|
7368
7368
|
content,
|
|
7369
7369
|
children,
|
|
@@ -7385,7 +7385,7 @@ const AlphaTooltip = ({
|
|
|
7385
7385
|
const isMouseOver = React2.useRef(false);
|
|
7386
7386
|
const activatorContainer = React2.useRef(null);
|
|
7387
7387
|
const WrapperComponent = activatorWrapper;
|
|
7388
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7388
|
+
const className = cssClassName(COMPONENT_NAME$y);
|
|
7389
7389
|
const handleOpen = React2.useCallback(() => {
|
|
7390
7390
|
if (!isActivePersistence) {
|
|
7391
7391
|
setIsActive(true);
|
|
@@ -7668,7 +7668,7 @@ function getRangeDate(range, date) {
|
|
|
7668
7668
|
};
|
|
7669
7669
|
}
|
|
7670
7670
|
|
|
7671
|
-
const COMPONENT_NAME$
|
|
7671
|
+
const COMPONENT_NAME$x = 'DatePicker__Day';
|
|
7672
7672
|
const Day = /*#__PURE__*/React2.memo(function Day({
|
|
7673
7673
|
day,
|
|
7674
7674
|
isDisabled,
|
|
@@ -7679,7 +7679,7 @@ const Day = /*#__PURE__*/React2.memo(function Day({
|
|
|
7679
7679
|
onClick,
|
|
7680
7680
|
theme: themeProp
|
|
7681
7681
|
}) {
|
|
7682
|
-
const emptyDayClassName = cssClassName(COMPONENT_NAME$
|
|
7682
|
+
const emptyDayClassName = cssClassName(COMPONENT_NAME$x, !day && 'isEmpty');
|
|
7683
7683
|
if (!day) {
|
|
7684
7684
|
return /*#__PURE__*/jsxRuntimeExports.jsx("td", {
|
|
7685
7685
|
className: emptyDayClassName
|
|
@@ -7694,7 +7694,7 @@ const Day = /*#__PURE__*/React2.memo(function Day({
|
|
|
7694
7694
|
}
|
|
7695
7695
|
};
|
|
7696
7696
|
const today = isToday(new Date(), day);
|
|
7697
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7697
|
+
const className = cssClassName(COMPONENT_NAME$x, today && 'isToday', `theme-${themeProp || theme}`, isSelected && 'isSelected', isDisabled && 'isDisabled', isInRange && 'isInRange', isFirstSelectedDay && 'isFirstSelectedDay', isLastSelectedDay && 'isLastSelectedDay');
|
|
7698
7698
|
const date = day.getDate();
|
|
7699
7699
|
return /*#__PURE__*/jsxRuntimeExports.jsx("td", {
|
|
7700
7700
|
className: className,
|
|
@@ -7705,7 +7705,7 @@ const Day = /*#__PURE__*/React2.memo(function Day({
|
|
|
7705
7705
|
});
|
|
7706
7706
|
});
|
|
7707
7707
|
|
|
7708
|
-
const COMPONENT_NAME$
|
|
7708
|
+
const COMPONENT_NAME$w = 'DatePicker__Month';
|
|
7709
7709
|
const Month = ({
|
|
7710
7710
|
month = new Date().getMonth(),
|
|
7711
7711
|
year = new Date().getFullYear(),
|
|
@@ -7718,7 +7718,7 @@ const Month = ({
|
|
|
7718
7718
|
disableDates,
|
|
7719
7719
|
weekDays
|
|
7720
7720
|
}) => {
|
|
7721
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7721
|
+
const className = cssClassName(COMPONENT_NAME$w);
|
|
7722
7722
|
const weeks = React2.useMemo(() => getWeeksByMonth(month, year, weekStartsOn), [month, year, weekStartsOn]);
|
|
7723
7723
|
const handleDateClick = React2.useCallback(selectedDate => {
|
|
7724
7724
|
if (onChange) {
|
|
@@ -7762,7 +7762,7 @@ const Month = ({
|
|
|
7762
7762
|
});
|
|
7763
7763
|
};
|
|
7764
7764
|
|
|
7765
|
-
const COMPONENT_NAME$
|
|
7765
|
+
const COMPONENT_NAME$v = 'DatePIcker__YearField';
|
|
7766
7766
|
const YearField = ({
|
|
7767
7767
|
onChange,
|
|
7768
7768
|
value,
|
|
@@ -7773,7 +7773,7 @@ const YearField = ({
|
|
|
7773
7773
|
onKeyDown,
|
|
7774
7774
|
onKeyUp
|
|
7775
7775
|
}) => {
|
|
7776
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7776
|
+
const className = cssClassName(COMPONENT_NAME$v);
|
|
7777
7777
|
const handleChange = event => {
|
|
7778
7778
|
if (onChange) {
|
|
7779
7779
|
const value = event.target.value.trim();
|
|
@@ -7798,7 +7798,7 @@ const YearField = ({
|
|
|
7798
7798
|
});
|
|
7799
7799
|
};
|
|
7800
7800
|
|
|
7801
|
-
const COMPONENT_NAME$
|
|
7801
|
+
const COMPONENT_NAME$u = 'DatePicker__Header';
|
|
7802
7802
|
const Header$2 = ({
|
|
7803
7803
|
month,
|
|
7804
7804
|
year,
|
|
@@ -7806,7 +7806,7 @@ const Header$2 = ({
|
|
|
7806
7806
|
months
|
|
7807
7807
|
}) => {
|
|
7808
7808
|
const [yearValue, setYearValue] = React2.useState(year);
|
|
7809
|
-
const headerClassName = cssClassName(COMPONENT_NAME$
|
|
7809
|
+
const headerClassName = cssClassName(COMPONENT_NAME$u);
|
|
7810
7810
|
const handleMonthChange = React2.useCallback((month, year) => {
|
|
7811
7811
|
if (onChange) {
|
|
7812
7812
|
onChange(month, year);
|
|
@@ -7843,7 +7843,7 @@ const Header$2 = ({
|
|
|
7843
7843
|
appearance: "secondary",
|
|
7844
7844
|
onClick: () => handleMonthChange(previousMonth, previousYear)
|
|
7845
7845
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("span", {
|
|
7846
|
-
className: `${COMPONENT_NAME$
|
|
7846
|
+
className: `${COMPONENT_NAME$u}__DateLabel`,
|
|
7847
7847
|
children: [montName, /*#__PURE__*/jsxRuntimeExports.jsx(YearField, {
|
|
7848
7848
|
value: yearValue,
|
|
7849
7849
|
onChange: setYearValue,
|
|
@@ -7859,7 +7859,7 @@ const Header$2 = ({
|
|
|
7859
7859
|
});
|
|
7860
7860
|
};
|
|
7861
7861
|
|
|
7862
|
-
const COMPONENT_NAME$
|
|
7862
|
+
const COMPONENT_NAME$t = 'DatePicker';
|
|
7863
7863
|
function getMonthSelectedDate(selected) {
|
|
7864
7864
|
return selected instanceof Date ? {
|
|
7865
7865
|
start: selected,
|
|
@@ -7881,7 +7881,7 @@ const DatePicker = ({
|
|
|
7881
7881
|
months,
|
|
7882
7882
|
weekDays
|
|
7883
7883
|
}) => {
|
|
7884
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7884
|
+
const className = cssClassName(COMPONENT_NAME$t);
|
|
7885
7885
|
const handleDateChange = React2.useCallback(dateRange => {
|
|
7886
7886
|
if (onChange) {
|
|
7887
7887
|
onChange(dateRange);
|
|
@@ -16544,7 +16544,7 @@ function formatDate(date, toISO) {
|
|
|
16544
16544
|
return DateTime.fromJSDate(date).toFormat('dd/MM/yyyy');
|
|
16545
16545
|
}
|
|
16546
16546
|
|
|
16547
|
-
const COMPONENT_NAME$
|
|
16547
|
+
const COMPONENT_NAME$s = 'DateInput';
|
|
16548
16548
|
const AlphaInputDate = ({
|
|
16549
16549
|
ariaLabel,
|
|
16550
16550
|
disabled,
|
|
@@ -16570,7 +16570,7 @@ const AlphaInputDate = ({
|
|
|
16570
16570
|
const [isErrorTooltipActive, setIsErrorTooltipActive] = React2.useState(false);
|
|
16571
16571
|
const [selectedDate, setSelectedDate] = React2.useState();
|
|
16572
16572
|
const inputRef = React2.useRef(null);
|
|
16573
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
16573
|
+
const className = cssClassName(COMPONENT_NAME$s);
|
|
16574
16574
|
const handleMonthChange = (monthValue, yearValue) => {
|
|
16575
16575
|
setDate({
|
|
16576
16576
|
month: monthValue,
|
|
@@ -16695,7 +16695,7 @@ const AlphaInputDate = ({
|
|
|
16695
16695
|
weekDays: weekdays
|
|
16696
16696
|
});
|
|
16697
16697
|
const inputMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
16698
|
-
className: `${COMPONENT_NAME$
|
|
16698
|
+
className: `${COMPONENT_NAME$s}__InputWrapper`,
|
|
16699
16699
|
onClick: () => setIsPopoverActive(true),
|
|
16700
16700
|
ref: inputRef,
|
|
16701
16701
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaTooltip, {
|
|
@@ -16900,16 +16900,16 @@ const Tag = ({
|
|
|
16900
16900
|
});
|
|
16901
16901
|
};
|
|
16902
16902
|
|
|
16903
|
-
const COMPONENT_NAME$
|
|
16903
|
+
const COMPONENT_NAME$r = "Divider";
|
|
16904
16904
|
const Divider = ({
|
|
16905
16905
|
alignment = "left",
|
|
16906
16906
|
label
|
|
16907
16907
|
}) => {
|
|
16908
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
16908
|
+
const className = cssClassName(COMPONENT_NAME$r, alignment, !label && "no-label");
|
|
16909
16909
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
16910
|
-
className: `${COMPONENT_NAME$
|
|
16910
|
+
className: `${COMPONENT_NAME$r}__LabelWrapper`,
|
|
16911
16911
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
16912
|
-
className: `${COMPONENT_NAME$
|
|
16912
|
+
className: `${COMPONENT_NAME$r}__Label`,
|
|
16913
16913
|
children: label
|
|
16914
16914
|
})
|
|
16915
16915
|
}) : null;
|
|
@@ -17554,7 +17554,7 @@ const Panel$1 = ({
|
|
|
17554
17554
|
});
|
|
17555
17555
|
};
|
|
17556
17556
|
|
|
17557
|
-
const COMPONENT_NAME$
|
|
17557
|
+
const COMPONENT_NAME$q = 'Tabs';
|
|
17558
17558
|
const Tabs = ({
|
|
17559
17559
|
onSelect,
|
|
17560
17560
|
selected,
|
|
@@ -17566,7 +17566,7 @@ const Tabs = ({
|
|
|
17566
17566
|
const {
|
|
17567
17567
|
theme
|
|
17568
17568
|
} = useTheme();
|
|
17569
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
17569
|
+
const classNames = cssClassName(COMPONENT_NAME$q, `is${themeClassConverter(theme)}`);
|
|
17570
17570
|
const panelMarkup = children ? tabs.map((tab, index) => selected === index ? /*#__PURE__*/jsxRuntimeExports.jsx(Panel$1, {
|
|
17571
17571
|
id: tab.panelID || `${tab.id}-panel`,
|
|
17572
17572
|
children: children
|
|
@@ -17829,12 +17829,12 @@ const AlphaGraphicCard = ({
|
|
|
17829
17829
|
});
|
|
17830
17830
|
};
|
|
17831
17831
|
|
|
17832
|
-
const COMPONENT_NAME$
|
|
17832
|
+
const COMPONENT_NAME$p = "AlphaInlineError";
|
|
17833
17833
|
const AlphaInlineError = ({
|
|
17834
17834
|
icon,
|
|
17835
17835
|
children
|
|
17836
17836
|
}) => {
|
|
17837
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17837
|
+
const className = cssClassName(COMPONENT_NAME$p);
|
|
17838
17838
|
let iconSource;
|
|
17839
17839
|
if (icon) {
|
|
17840
17840
|
if (isValidIcon(icon.icon)) {
|
|
@@ -17848,11 +17848,11 @@ const AlphaInlineError = ({
|
|
|
17848
17848
|
}
|
|
17849
17849
|
}
|
|
17850
17850
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17851
|
-
className: `${COMPONENT_NAME$
|
|
17851
|
+
className: `${COMPONENT_NAME$p}__IconWrapper`,
|
|
17852
17852
|
children: iconSource
|
|
17853
17853
|
}) : null;
|
|
17854
17854
|
const messageMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
17855
|
-
className: `${COMPONENT_NAME$
|
|
17855
|
+
className: `${COMPONENT_NAME$p}__MessageWrapper`,
|
|
17856
17856
|
children: children
|
|
17857
17857
|
}) : null;
|
|
17858
17858
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -17861,8 +17861,8 @@ const AlphaInlineError = ({
|
|
|
17861
17861
|
});
|
|
17862
17862
|
};
|
|
17863
17863
|
|
|
17864
|
-
const COMPONENT_NAME$
|
|
17865
|
-
const className$1 = cssClassName(COMPONENT_NAME$
|
|
17864
|
+
const COMPONENT_NAME$o = "AlphaLabel";
|
|
17865
|
+
const className$1 = cssClassName(COMPONENT_NAME$o);
|
|
17866
17866
|
const AlphaLabel = ({
|
|
17867
17867
|
children,
|
|
17868
17868
|
isRequired,
|
|
@@ -17870,7 +17870,7 @@ const AlphaLabel = ({
|
|
|
17870
17870
|
id
|
|
17871
17871
|
}) => {
|
|
17872
17872
|
const requiredSignMarkup = isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
17873
|
-
className: `${COMPONENT_NAME$
|
|
17873
|
+
className: `${COMPONENT_NAME$o}__RequiredSign`,
|
|
17874
17874
|
children: "*"
|
|
17875
17875
|
}) : null;
|
|
17876
17876
|
const labelMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
@@ -17878,7 +17878,7 @@ const AlphaLabel = ({
|
|
|
17878
17878
|
children: [children, requiredSignMarkup]
|
|
17879
17879
|
});
|
|
17880
17880
|
const actionMarkup = action ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17881
|
-
className: `${COMPONENT_NAME$
|
|
17881
|
+
className: `${COMPONENT_NAME$o}__ActionWrapper`,
|
|
17882
17882
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
17883
17883
|
id: action.id,
|
|
17884
17884
|
isDanger: action.isDanger,
|
|
@@ -17896,12 +17896,12 @@ const AlphaLabel = ({
|
|
|
17896
17896
|
});
|
|
17897
17897
|
};
|
|
17898
17898
|
|
|
17899
|
-
const COMPONENT_NAME$
|
|
17899
|
+
const COMPONENT_NAME$n = "AlphaLabelledField__HelpText";
|
|
17900
17900
|
const HelpText = ({
|
|
17901
17901
|
message,
|
|
17902
17902
|
icon
|
|
17903
17903
|
}) => {
|
|
17904
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17904
|
+
const className = cssClassName(COMPONENT_NAME$n);
|
|
17905
17905
|
let iconSource;
|
|
17906
17906
|
if (icon) {
|
|
17907
17907
|
if (isValidIcon(icon.icon)) {
|
|
@@ -17915,11 +17915,11 @@ const HelpText = ({
|
|
|
17915
17915
|
}
|
|
17916
17916
|
}
|
|
17917
17917
|
const iconMarkup = iconSource ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17918
|
-
className: `${COMPONENT_NAME$
|
|
17918
|
+
className: `${COMPONENT_NAME$n}__IconWrapper`,
|
|
17919
17919
|
children: iconSource
|
|
17920
17920
|
}) : null;
|
|
17921
17921
|
const messageMarkup = message ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17922
|
-
className: `${COMPONENT_NAME$
|
|
17922
|
+
className: `${COMPONENT_NAME$n}__MessageWrapper`,
|
|
17923
17923
|
children: message
|
|
17924
17924
|
}) : null;
|
|
17925
17925
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -17928,7 +17928,7 @@ const HelpText = ({
|
|
|
17928
17928
|
});
|
|
17929
17929
|
};
|
|
17930
17930
|
|
|
17931
|
-
const COMPONENT_NAME$
|
|
17931
|
+
const COMPONENT_NAME$m = "AlphaLabelledField";
|
|
17932
17932
|
const AlphaLabelledField = ({
|
|
17933
17933
|
label,
|
|
17934
17934
|
children,
|
|
@@ -17938,9 +17938,9 @@ const AlphaLabelledField = ({
|
|
|
17938
17938
|
id,
|
|
17939
17939
|
isRequired
|
|
17940
17940
|
}) => {
|
|
17941
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17941
|
+
const className = cssClassName(COMPONENT_NAME$m);
|
|
17942
17942
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17943
|
-
className: `${COMPONENT_NAME$
|
|
17943
|
+
className: `${COMPONENT_NAME$m}__LabelWrapper`,
|
|
17944
17944
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabel, {
|
|
17945
17945
|
action: action,
|
|
17946
17946
|
id: id,
|
|
@@ -17949,7 +17949,7 @@ const AlphaLabelledField = ({
|
|
|
17949
17949
|
})
|
|
17950
17950
|
}) : null;
|
|
17951
17951
|
const errorMarkup = error ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17952
|
-
className: `${COMPONENT_NAME$
|
|
17952
|
+
className: `${COMPONENT_NAME$m}__ErrorWrapper`,
|
|
17953
17953
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaInlineError, {
|
|
17954
17954
|
icon: error.icon,
|
|
17955
17955
|
children: error.message
|
|
@@ -17965,7 +17965,7 @@ const AlphaLabelledField = ({
|
|
|
17965
17965
|
isActive: Boolean(errorMarkup),
|
|
17966
17966
|
appearance: "error",
|
|
17967
17967
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17968
|
-
className: `${COMPONENT_NAME$
|
|
17968
|
+
className: `${COMPONENT_NAME$m}__ContentWrapper`,
|
|
17969
17969
|
children: children
|
|
17970
17970
|
})
|
|
17971
17971
|
}) : children;
|
|
@@ -17975,7 +17975,7 @@ const AlphaLabelledField = ({
|
|
|
17975
17975
|
});
|
|
17976
17976
|
};
|
|
17977
17977
|
|
|
17978
|
-
const COMPONENT_NAME$
|
|
17978
|
+
const COMPONENT_NAME$l = "AlphaInputTag";
|
|
17979
17979
|
const InputTag$1 = ({
|
|
17980
17980
|
ariaLabel,
|
|
17981
17981
|
id,
|
|
@@ -18034,7 +18034,7 @@ const InputTag$1 = ({
|
|
|
18034
18034
|
};
|
|
18035
18035
|
const renderTag = (tag, index) => {
|
|
18036
18036
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18037
|
-
className: `${COMPONENT_NAME$
|
|
18037
|
+
className: `${COMPONENT_NAME$l}__TagWrapper`,
|
|
18038
18038
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaChip, {
|
|
18039
18039
|
removeButtonIcon: tagRemoveIcon,
|
|
18040
18040
|
onRemove: () => handleRemoveTag(index),
|
|
@@ -18042,8 +18042,8 @@ const InputTag$1 = ({
|
|
|
18042
18042
|
})
|
|
18043
18043
|
}, index);
|
|
18044
18044
|
};
|
|
18045
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18046
|
-
const inputWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18045
|
+
const className = cssClassName(COMPONENT_NAME$l);
|
|
18046
|
+
const inputWrapperClassName = cssClassName(`${COMPONENT_NAME$l}__InputWrapper`, isFocused && "isFocused", isDisabled && "isDisabled", hasError && "hasError");
|
|
18047
18047
|
const handleInputChange = event => {
|
|
18048
18048
|
if (onInputTextChange) {
|
|
18049
18049
|
onInputTextChange(event.target.value);
|
|
@@ -18081,12 +18081,12 @@ const InputTag$1 = ({
|
|
|
18081
18081
|
});
|
|
18082
18082
|
};
|
|
18083
18083
|
|
|
18084
|
-
const COMPONENT_NAME$
|
|
18084
|
+
const COMPONENT_NAME$k = "AlphaInputText";
|
|
18085
18085
|
const AlphaInputText = ({
|
|
18086
18086
|
isDisabled,
|
|
18087
18087
|
label
|
|
18088
18088
|
}) => {
|
|
18089
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18089
|
+
const className = cssClassName(COMPONENT_NAME$k, isDisabled && "isDisabled");
|
|
18090
18090
|
return /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabelledField, {
|
|
18091
18091
|
label: label,
|
|
18092
18092
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -18095,7 +18095,7 @@ const AlphaInputText = ({
|
|
|
18095
18095
|
});
|
|
18096
18096
|
};
|
|
18097
18097
|
|
|
18098
|
-
const COMPONENT_NAME$
|
|
18098
|
+
const COMPONENT_NAME$j = "AlphaMultiSelectionPicker__Picker__List";
|
|
18099
18099
|
const List = ({
|
|
18100
18100
|
items,
|
|
18101
18101
|
selected,
|
|
@@ -18105,7 +18105,7 @@ const List = ({
|
|
|
18105
18105
|
const scrollToSelected = () => {
|
|
18106
18106
|
const listWrapper = listWrapperRef.current;
|
|
18107
18107
|
if (listWrapper) {
|
|
18108
|
-
const selectedElement = listWrapper.querySelector(`.${COMPONENT_NAME$
|
|
18108
|
+
const selectedElement = listWrapper.querySelector(`.${COMPONENT_NAME$j}__ListItem--selected`);
|
|
18109
18109
|
if (selectedElement) {
|
|
18110
18110
|
const {
|
|
18111
18111
|
top
|
|
@@ -18134,16 +18134,16 @@ const List = ({
|
|
|
18134
18134
|
value
|
|
18135
18135
|
} = item;
|
|
18136
18136
|
const isSelected = Boolean(selected !== null && selected !== undefined && selected === value);
|
|
18137
|
-
const className = cssClassName(`${COMPONENT_NAME$
|
|
18137
|
+
const className = cssClassName(`${COMPONENT_NAME$j}__ListItem`, isSelected && "selected");
|
|
18138
18138
|
const handleClick = () => handleChange(value);
|
|
18139
18139
|
return /*#__PURE__*/jsxRuntimeExports.jsx("li", {
|
|
18140
18140
|
className: className,
|
|
18141
18141
|
onClick: handleClick,
|
|
18142
18142
|
children: label
|
|
18143
|
-
}, `${COMPONENT_NAME$
|
|
18143
|
+
}, `${COMPONENT_NAME$j}__ListItem-${index}`);
|
|
18144
18144
|
};
|
|
18145
18145
|
const itemsMarkup = items ? items.map(renderItem) : null;
|
|
18146
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18146
|
+
const className = cssClassName(COMPONENT_NAME$j);
|
|
18147
18147
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18148
18148
|
className: className,
|
|
18149
18149
|
ref: listWrapperRef,
|
|
@@ -18153,7 +18153,7 @@ const List = ({
|
|
|
18153
18153
|
});
|
|
18154
18154
|
};
|
|
18155
18155
|
|
|
18156
|
-
const COMPONENT_NAME$
|
|
18156
|
+
const COMPONENT_NAME$i = 'AlphaMultiSelectionPicker__Picker';
|
|
18157
18157
|
const Picker = ({
|
|
18158
18158
|
headers,
|
|
18159
18159
|
items,
|
|
@@ -18176,11 +18176,11 @@ const Picker = ({
|
|
|
18176
18176
|
}
|
|
18177
18177
|
};
|
|
18178
18178
|
const renderHeader = (header, index) => /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18179
|
-
className: `${COMPONENT_NAME$
|
|
18179
|
+
className: `${COMPONENT_NAME$i}__HeaderItem`,
|
|
18180
18180
|
children: capitalize(header)
|
|
18181
|
-
}, `${COMPONENT_NAME$
|
|
18181
|
+
}, `${COMPONENT_NAME$i}__HeaderItem-${index}`);
|
|
18182
18182
|
const headersMarkup = headers ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18183
|
-
className: `${COMPONENT_NAME$
|
|
18183
|
+
className: `${COMPONENT_NAME$i}__HeadersMarkup`,
|
|
18184
18184
|
children: headers.map(renderHeader)
|
|
18185
18185
|
}) : null;
|
|
18186
18186
|
const renderList = (listItems, index) => {
|
|
@@ -18189,13 +18189,13 @@ const Picker = ({
|
|
|
18189
18189
|
items: listItems,
|
|
18190
18190
|
onChange: value => handleChange(value, index),
|
|
18191
18191
|
selected: selectedValue
|
|
18192
|
-
}, `${COMPONENT_NAME$
|
|
18192
|
+
}, `${COMPONENT_NAME$i}__List-${index}`);
|
|
18193
18193
|
};
|
|
18194
18194
|
const itemsListsMarkup = items ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18195
|
-
className: `${COMPONENT_NAME$
|
|
18195
|
+
className: `${COMPONENT_NAME$i}__ItemsListWrapper`,
|
|
18196
18196
|
children: items.map(renderList)
|
|
18197
18197
|
}) : null;
|
|
18198
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18198
|
+
const className = cssClassName(COMPONENT_NAME$i, theme);
|
|
18199
18199
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18200
18200
|
className: className,
|
|
18201
18201
|
children: [headersMarkup, itemsListsMarkup]
|
|
@@ -18275,7 +18275,7 @@ const AlphaSegmentedControl = ({
|
|
|
18275
18275
|
|
|
18276
18276
|
const SideMenuContext = /*#__PURE__*/React2.createContext({});
|
|
18277
18277
|
|
|
18278
|
-
const COMPONENT_NAME$
|
|
18278
|
+
const COMPONENT_NAME$h = "AlphaSideMenu__Item";
|
|
18279
18279
|
const Item$2 = ({
|
|
18280
18280
|
label,
|
|
18281
18281
|
isDisabled,
|
|
@@ -18323,7 +18323,7 @@ const Item$2 = ({
|
|
|
18323
18323
|
}
|
|
18324
18324
|
}, [isActive]);
|
|
18325
18325
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18326
|
-
className: `${COMPONENT_NAME$
|
|
18326
|
+
className: `${COMPONENT_NAME$h}__Label`,
|
|
18327
18327
|
children: label
|
|
18328
18328
|
}) : null;
|
|
18329
18329
|
const iconSource = icon && isValidIcon(icon?.icon) ? /*#__PURE__*/jsxRuntimeExports.jsx(AlphaIcon, {
|
|
@@ -18333,7 +18333,7 @@ const Item$2 = ({
|
|
|
18333
18333
|
children: icon
|
|
18334
18334
|
});
|
|
18335
18335
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18336
|
-
className: `${COMPONENT_NAME$
|
|
18336
|
+
className: `${COMPONENT_NAME$h}__IconWrapper`,
|
|
18337
18337
|
children: iconSource
|
|
18338
18338
|
}) : null;
|
|
18339
18339
|
const handleClick = () => {
|
|
@@ -18366,7 +18366,7 @@ const Item$2 = ({
|
|
|
18366
18366
|
position: "right",
|
|
18367
18367
|
children: anchorMarkup
|
|
18368
18368
|
}) : null;
|
|
18369
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18369
|
+
const classNames = cssClassName(COMPONENT_NAME$h, isDisabled && "isDisabled", isActive && "isActive", truncateText && "isTruncated", (isCollapsed !== undefined ? isCollapsed : collapsed) && "isCollapsed");
|
|
18370
18370
|
if (isVisible !== undefined && !isVisible(location, {
|
|
18371
18371
|
label,
|
|
18372
18372
|
url,
|
|
@@ -18384,7 +18384,7 @@ const Item$2 = ({
|
|
|
18384
18384
|
});
|
|
18385
18385
|
};
|
|
18386
18386
|
|
|
18387
|
-
const COMPONENT_NAME$
|
|
18387
|
+
const COMPONENT_NAME$g = "AlphaSideMenu__Section";
|
|
18388
18388
|
const Section$1 = ({
|
|
18389
18389
|
items,
|
|
18390
18390
|
fill,
|
|
@@ -18396,7 +18396,7 @@ const Section$1 = ({
|
|
|
18396
18396
|
collapsed
|
|
18397
18397
|
} = React2.useContext(SideMenuContext);
|
|
18398
18398
|
const isCollapsed = isCollapsedProp !== undefined ? isCollapsedProp : collapsed;
|
|
18399
|
-
const titleClassNames = cssClassName(`${COMPONENT_NAME$
|
|
18399
|
+
const titleClassNames = cssClassName(`${COMPONENT_NAME$g}__TitleWrapper`, (isCollapsed !== undefined ? isCollapsed : collapsed) && "isCollapsed");
|
|
18400
18400
|
const titleMarkup = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18401
18401
|
// layout
|
|
18402
18402
|
className: titleClassNames
|
|
@@ -18442,10 +18442,10 @@ const Section$1 = ({
|
|
|
18442
18442
|
}, `alpha-side-menu-item-${index}`);
|
|
18443
18443
|
};
|
|
18444
18444
|
const itemsMarkup = items && items.length > 0 ? /*#__PURE__*/jsxRuntimeExports.jsx("ul", {
|
|
18445
|
-
className: `${COMPONENT_NAME$
|
|
18445
|
+
className: `${COMPONENT_NAME$g}__Items`,
|
|
18446
18446
|
children: items.map(renderItem)
|
|
18447
18447
|
}) : null;
|
|
18448
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18448
|
+
const classNames = cssClassName(COMPONENT_NAME$g, fill && "isFill");
|
|
18449
18449
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18450
18450
|
className: classNames
|
|
18451
18451
|
// layout
|
|
@@ -18458,7 +18458,7 @@ const Section$1 = ({
|
|
|
18458
18458
|
});
|
|
18459
18459
|
};
|
|
18460
18460
|
|
|
18461
|
-
const COMPONENT_NAME$
|
|
18461
|
+
const COMPONENT_NAME$f = "AlphaSideMenu__Tier";
|
|
18462
18462
|
const Tier = ({
|
|
18463
18463
|
children,
|
|
18464
18464
|
title,
|
|
@@ -18473,12 +18473,12 @@ const Tier = ({
|
|
|
18473
18473
|
const isMenuCollapsed = isCollapsed !== undefined ? isCollapsed : collapsed;
|
|
18474
18474
|
const titleMarkup = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18475
18475
|
// layout
|
|
18476
|
-
className: `${COMPONENT_NAME$
|
|
18476
|
+
className: `${COMPONENT_NAME$f}__TitleWrapper`,
|
|
18477
18477
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18478
18478
|
children: title
|
|
18479
18479
|
})
|
|
18480
18480
|
}) : null;
|
|
18481
|
-
const cssExpandButtonWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18481
|
+
const cssExpandButtonWrapperClassName = cssClassName(`${COMPONENT_NAME$f}__ExpandButtonWrapper`, hasSubNavigation && "isCollapsed");
|
|
18482
18482
|
const expandButtonMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18483
18483
|
// layout
|
|
18484
18484
|
className: cssExpandButtonWrapperClassName,
|
|
@@ -18488,7 +18488,7 @@ const Tier = ({
|
|
|
18488
18488
|
onClick: onExpand
|
|
18489
18489
|
})
|
|
18490
18490
|
});
|
|
18491
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18491
|
+
const classNames = cssClassName(COMPONENT_NAME$f, isMenuCollapsed && "isCollapsed");
|
|
18492
18492
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18493
18493
|
className: classNames
|
|
18494
18494
|
// initial={false}
|
|
@@ -18502,7 +18502,7 @@ const Tier = ({
|
|
|
18502
18502
|
});
|
|
18503
18503
|
};
|
|
18504
18504
|
|
|
18505
|
-
const COMPONENT_NAME$
|
|
18505
|
+
const COMPONENT_NAME$e = "AlphaSideMenu";
|
|
18506
18506
|
const AlphaSideMenu = ({
|
|
18507
18507
|
children,
|
|
18508
18508
|
collapsed,
|
|
@@ -18523,7 +18523,7 @@ const AlphaSideMenu = ({
|
|
|
18523
18523
|
console.error("AlphaSideMenu only accepts Section components as children");
|
|
18524
18524
|
}
|
|
18525
18525
|
});
|
|
18526
|
-
const cssClassNames = cssClassName(COMPONENT_NAME$
|
|
18526
|
+
const cssClassNames = cssClassName(COMPONENT_NAME$e, isCollapsed && "isCollapsed");
|
|
18527
18527
|
const handleSetCurrentTierItems = (items, item) => {
|
|
18528
18528
|
if (!item?.isExternal) {
|
|
18529
18529
|
if (!items.length) {
|
|
@@ -18576,7 +18576,7 @@ const StepDefault = {
|
|
|
18576
18576
|
status: 'incomplete'
|
|
18577
18577
|
};
|
|
18578
18578
|
|
|
18579
|
-
const COMPONENT_NAME$
|
|
18579
|
+
const COMPONENT_NAME$d = 'AlphaStepper__Step';
|
|
18580
18580
|
const Step = ({
|
|
18581
18581
|
iconMarkup,
|
|
18582
18582
|
label,
|
|
@@ -18589,20 +18589,20 @@ const Step = ({
|
|
|
18589
18589
|
const {
|
|
18590
18590
|
theme
|
|
18591
18591
|
} = useTheme();
|
|
18592
|
-
const itemClassName = cssClassName(`${COMPONENT_NAME$
|
|
18592
|
+
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
18593
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18594
|
-
className: COMPONENT_NAME$
|
|
18594
|
+
className: COMPONENT_NAME$d,
|
|
18595
18595
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18596
18596
|
className: itemClassName,
|
|
18597
18597
|
children: iconMarkup
|
|
18598
18598
|
}), /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18599
|
-
className: `${COMPONENT_NAME$
|
|
18599
|
+
className: `${COMPONENT_NAME$d}__Label`,
|
|
18600
18600
|
children: label
|
|
18601
18601
|
})]
|
|
18602
18602
|
});
|
|
18603
18603
|
};
|
|
18604
18604
|
|
|
18605
|
-
const COMPONENT_NAME$
|
|
18605
|
+
const COMPONENT_NAME$c = "AlphaStepper";
|
|
18606
18606
|
const getSourceIcon = icon => {
|
|
18607
18607
|
if (icon) {
|
|
18608
18608
|
if (isValidIcon(icon.icon)) {
|
|
@@ -18629,7 +18629,7 @@ const AlphaStepper = ({
|
|
|
18629
18629
|
...StepDefault
|
|
18630
18630
|
}, index) => {
|
|
18631
18631
|
const lastStepStatus = steps[index - 1] ? steps[index - 1].status : "";
|
|
18632
|
-
const iconClassName = cssClassName(`${COMPONENT_NAME$
|
|
18632
|
+
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
18633
|
let iconSource = getSourceIcon(incompleteIcon);
|
|
18634
18634
|
if (step.hasError && errorIcon) iconSource = getSourceIcon(errorIcon);
|
|
18635
18635
|
if (step.status === "complete") iconSource = getSourceIcon(completeIcon);
|
|
@@ -18649,23 +18649,23 @@ const AlphaStepper = ({
|
|
|
18649
18649
|
isSuccess: isSuccess,
|
|
18650
18650
|
isLastStepComplete: isLastStepComplete,
|
|
18651
18651
|
isLastStepInactive: isLastStepInactive
|
|
18652
|
-
}, `${COMPONENT_NAME$
|
|
18652
|
+
}, `${COMPONENT_NAME$c}-${index}`);
|
|
18653
18653
|
};
|
|
18654
18654
|
const stepsMarkup = steps ? steps.map(renderStep) : null;
|
|
18655
18655
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18656
|
-
className: `${COMPONENT_NAME$
|
|
18656
|
+
className: `${COMPONENT_NAME$c}__Container`,
|
|
18657
18657
|
children: stepsMarkup
|
|
18658
18658
|
});
|
|
18659
18659
|
};
|
|
18660
18660
|
|
|
18661
|
-
const COMPONENT_NAME$
|
|
18661
|
+
const COMPONENT_NAME$b = "AlphaTag";
|
|
18662
18662
|
const AlphaTag = ({
|
|
18663
18663
|
color,
|
|
18664
18664
|
children
|
|
18665
18665
|
}) => {
|
|
18666
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18666
|
+
const className = cssClassName(COMPONENT_NAME$b, color && `is-${color.color}-${color.intensity}`);
|
|
18667
18667
|
const childrenMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18668
|
-
className: `${COMPONENT_NAME$
|
|
18668
|
+
className: `${COMPONENT_NAME$b}__TextWrapper`,
|
|
18669
18669
|
children: children
|
|
18670
18670
|
});
|
|
18671
18671
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -18681,7 +18681,7 @@ const StatusIcon = {
|
|
|
18681
18681
|
Warning: WarningIcon
|
|
18682
18682
|
};
|
|
18683
18683
|
|
|
18684
|
-
const COMPONENT_NAME$
|
|
18684
|
+
const COMPONENT_NAME$a = "AlphaTile";
|
|
18685
18685
|
const AlphaTile = ({
|
|
18686
18686
|
isSelected,
|
|
18687
18687
|
icon,
|
|
@@ -18693,8 +18693,8 @@ const AlphaTile = ({
|
|
|
18693
18693
|
const {
|
|
18694
18694
|
theme
|
|
18695
18695
|
} = useTheme();
|
|
18696
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18697
|
-
const statusWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18696
|
+
const className = cssClassName(COMPONENT_NAME$a, `is${themeClassConverter(themeProp || theme)}`, isSelected && "isSelected");
|
|
18697
|
+
const statusWrapperClassName = cssClassName(`${COMPONENT_NAME$a}--StatusWrapper`, status && `is${status}`);
|
|
18698
18698
|
let iconSource;
|
|
18699
18699
|
if (icon) {
|
|
18700
18700
|
if (isValidIcon(icon.icon)) {
|
|
@@ -18709,21 +18709,21 @@ const AlphaTile = ({
|
|
|
18709
18709
|
}
|
|
18710
18710
|
}
|
|
18711
18711
|
const iconWrapper = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18712
|
-
className: `${COMPONENT_NAME$
|
|
18712
|
+
className: `${COMPONENT_NAME$a}__IconWrapper`,
|
|
18713
18713
|
children: iconSource
|
|
18714
18714
|
}) : null;
|
|
18715
18715
|
const mediaMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18716
|
-
className: `${COMPONENT_NAME$
|
|
18716
|
+
className: `${COMPONENT_NAME$a}__MediaWrapper`,
|
|
18717
18717
|
children: iconWrapper
|
|
18718
18718
|
}) : null;
|
|
18719
18719
|
const titleWrapper = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18720
18720
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18721
|
-
className: `${COMPONENT_NAME$
|
|
18721
|
+
className: `${COMPONENT_NAME$a}__TitleWrapper`,
|
|
18722
18722
|
children: title
|
|
18723
18723
|
})
|
|
18724
18724
|
}) : null;
|
|
18725
18725
|
const HeaderWrapper = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18726
|
-
className: `${COMPONENT_NAME$
|
|
18726
|
+
className: `${COMPONENT_NAME$a}__HeaderWrapper`,
|
|
18727
18727
|
children: [mediaMarkup, titleWrapper]
|
|
18728
18728
|
});
|
|
18729
18729
|
const statusIcon = status ? StatusIcon[status] : "";
|
|
@@ -18742,7 +18742,7 @@ const AlphaTile = ({
|
|
|
18742
18742
|
});
|
|
18743
18743
|
};
|
|
18744
18744
|
|
|
18745
|
-
const COMPONENT_NAME$
|
|
18745
|
+
const COMPONENT_NAME$9 = "TimeSelector";
|
|
18746
18746
|
const TimeSelector = ({
|
|
18747
18747
|
plurals,
|
|
18748
18748
|
singulars,
|
|
@@ -18874,7 +18874,7 @@ const TimeSelector = ({
|
|
|
18874
18874
|
let min;
|
|
18875
18875
|
if (valuesMaxMin) [min, max] = valuesMaxMin;
|
|
18876
18876
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18877
|
-
className: `${COMPONENT_NAME$
|
|
18877
|
+
className: `${COMPONENT_NAME$9}__InnerField`,
|
|
18878
18878
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
18879
18879
|
type: "number",
|
|
18880
18880
|
value: elValue,
|
|
@@ -18892,20 +18892,20 @@ const TimeSelector = ({
|
|
|
18892
18892
|
}, index);
|
|
18893
18893
|
};
|
|
18894
18894
|
const fieldsMarkup = Object.keys(singulars).map(renderField);
|
|
18895
|
-
const fieldClass = cssClassName(`${COMPONENT_NAME$
|
|
18895
|
+
const fieldClass = cssClassName(`${COMPONENT_NAME$9}__Field`, (isFocused || isActive) && "isFocused");
|
|
18896
18896
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18897
|
-
className: `${COMPONENT_NAME$
|
|
18897
|
+
className: `${COMPONENT_NAME$9}__LabelWrapper`,
|
|
18898
18898
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabel, {
|
|
18899
18899
|
isRequired: isRequired,
|
|
18900
18900
|
children: label
|
|
18901
18901
|
})
|
|
18902
18902
|
}) : null;
|
|
18903
18903
|
const helpTextMarkup = helpText ? helpText && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18904
|
-
className: `${COMPONENT_NAME$
|
|
18904
|
+
className: `${COMPONENT_NAME$9}__HelpTextWrapper`,
|
|
18905
18905
|
children: helpText
|
|
18906
18906
|
}) : null;
|
|
18907
18907
|
const fieldMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18908
|
-
className: `${COMPONENT_NAME$
|
|
18908
|
+
className: `${COMPONENT_NAME$9}__FieldWrapper`,
|
|
18909
18909
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs(AlphaTooltip, {
|
|
18910
18910
|
content: error,
|
|
18911
18911
|
appearance: "error",
|
|
@@ -18937,7 +18937,7 @@ const TimeSelector = ({
|
|
|
18937
18937
|
React2.useEffect(() => {
|
|
18938
18938
|
setItems(getItemsMultiSelectionPicker());
|
|
18939
18939
|
}, [value]);
|
|
18940
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18940
|
+
const className = cssClassName(COMPONENT_NAME$9, theme, !value && "isEmpty");
|
|
18941
18941
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18942
18942
|
className: className,
|
|
18943
18943
|
children: [popoverMarkup, helpTextMarkup]
|
|
@@ -18948,7 +18948,7 @@ function getTimeValue(value) {
|
|
|
18948
18948
|
return value < 10 ? `0${value}` : `${value}`;
|
|
18949
18949
|
}
|
|
18950
18950
|
|
|
18951
|
-
const COMPONENT_NAME$
|
|
18951
|
+
const COMPONENT_NAME$8 = "Totalizer";
|
|
18952
18952
|
const Totalizer = ({
|
|
18953
18953
|
action,
|
|
18954
18954
|
direction,
|
|
@@ -18964,9 +18964,9 @@ const Totalizer = ({
|
|
|
18964
18964
|
theme
|
|
18965
18965
|
} = useTheme();
|
|
18966
18966
|
const themeClass = `has-Theme${themeProp ? themeProp.toUpperCase() : theme.toUpperCase()}`;
|
|
18967
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18967
|
+
const className = cssClassName(COMPONENT_NAME$8, themeClass, isDisabled && "isDisabled", isFocused && "isFocused", direction && `has-${direction}Direction`);
|
|
18968
18968
|
const titleMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18969
|
-
className: `${COMPONENT_NAME$
|
|
18969
|
+
className: `${COMPONENT_NAME$8}__TitleWrapper`,
|
|
18970
18970
|
children: label
|
|
18971
18971
|
}) : null;
|
|
18972
18972
|
let iconSource;
|
|
@@ -18982,28 +18982,28 @@ const Totalizer = ({
|
|
|
18982
18982
|
}
|
|
18983
18983
|
}
|
|
18984
18984
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18985
|
-
className: `${COMPONENT_NAME$
|
|
18985
|
+
className: `${COMPONENT_NAME$8}__IconWrapper`,
|
|
18986
18986
|
children: iconSource
|
|
18987
18987
|
}) : null;
|
|
18988
18988
|
const headerMarkup = titleMarkup || iconMarkup ? /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18989
|
-
className: `${COMPONENT_NAME$
|
|
18989
|
+
className: `${COMPONENT_NAME$8}__HeaderWrapper`,
|
|
18990
18990
|
children: [titleMarkup, iconMarkup]
|
|
18991
18991
|
}) : null;
|
|
18992
18992
|
const valueMarkup = value ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18993
|
-
className: `${COMPONENT_NAME$
|
|
18993
|
+
className: `${COMPONENT_NAME$8}__ValueWrapper`,
|
|
18994
18994
|
children: value
|
|
18995
18995
|
}) : null;
|
|
18996
18996
|
const placeholderValueMarkup = placeholderValue ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18997
|
-
className: `${COMPONENT_NAME$
|
|
18997
|
+
className: `${COMPONENT_NAME$8}__PlaceholderValueWrapper`,
|
|
18998
18998
|
children: placeholderValue
|
|
18999
18999
|
}) : null;
|
|
19000
19000
|
const valueContentToRender = !valueMarkup && placeholderValueMarkup || valueMarkup;
|
|
19001
19001
|
const valueContainerMarkup = valueMarkup || placeholderValueMarkup ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19002
|
-
className: `${COMPONENT_NAME$
|
|
19002
|
+
className: `${COMPONENT_NAME$8}__ValueContainerWrapper`,
|
|
19003
19003
|
children: valueContentToRender
|
|
19004
19004
|
}) : null;
|
|
19005
19005
|
const actionMarkup = action ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19006
|
-
className: `${COMPONENT_NAME$
|
|
19006
|
+
className: `${COMPONENT_NAME$8}__ActionWrapper`,
|
|
19007
19007
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
19008
19008
|
id: action.id,
|
|
19009
19009
|
onClick: action.onClick,
|
|
@@ -19019,7 +19019,7 @@ const Totalizer = ({
|
|
|
19019
19019
|
children: action.content
|
|
19020
19020
|
})
|
|
19021
19021
|
}) : null;
|
|
19022
|
-
const contentClassName = cssClassName(`${COMPONENT_NAME$
|
|
19022
|
+
const contentClassName = cssClassName(`${COMPONENT_NAME$8}__ContentWrapper`, action && "has-Action");
|
|
19023
19023
|
const contentMarkup = valueContainerMarkup || actionMarkup ? /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19024
19024
|
className: contentClassName,
|
|
19025
19025
|
children: [valueContainerMarkup, actionMarkup]
|
|
@@ -19030,7 +19030,7 @@ const Totalizer = ({
|
|
|
19030
19030
|
});
|
|
19031
19031
|
};
|
|
19032
19032
|
|
|
19033
|
-
const COMPONENT_NAME$
|
|
19033
|
+
const COMPONENT_NAME$7 = 'AlphaZipCodeInput';
|
|
19034
19034
|
const AlphaZipCodeInput = ({
|
|
19035
19035
|
label,
|
|
19036
19036
|
isRequired,
|
|
@@ -19062,20 +19062,20 @@ const AlphaZipCodeInput = ({
|
|
|
19062
19062
|
}
|
|
19063
19063
|
};
|
|
19064
19064
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19065
|
-
className: `${COMPONENT_NAME$
|
|
19065
|
+
className: `${COMPONENT_NAME$7}__LabelWrapper`,
|
|
19066
19066
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
19067
|
-
className: `${COMPONENT_NAME$
|
|
19067
|
+
className: `${COMPONENT_NAME$7}__Label`,
|
|
19068
19068
|
children: [label, isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
19069
|
-
className: `${COMPONENT_NAME$
|
|
19069
|
+
className: `${COMPONENT_NAME$7}__Label--isRequired`,
|
|
19070
19070
|
children: "*"
|
|
19071
19071
|
}) : null]
|
|
19072
19072
|
})
|
|
19073
19073
|
}) : null;
|
|
19074
|
-
const classesInput = cssClassName(`${COMPONENT_NAME$
|
|
19074
|
+
const classesInput = cssClassName(`${COMPONENT_NAME$7}__InputWrapper`, isFocusActive && 'isFocus', loading && 'loading');
|
|
19075
19075
|
const inputMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19076
19076
|
className: classesInput,
|
|
19077
19077
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
19078
|
-
className: `${COMPONENT_NAME$
|
|
19078
|
+
className: `${COMPONENT_NAME$7}__InputWrapper--input`,
|
|
19079
19079
|
onBlur: handleOnBlur,
|
|
19080
19080
|
onFocus: handleOnFocus,
|
|
19081
19081
|
onChange: handleOnChange,
|
|
@@ -19089,12 +19089,12 @@ const AlphaZipCodeInput = ({
|
|
|
19089
19089
|
setShowPopover(false);
|
|
19090
19090
|
};
|
|
19091
19091
|
const renderLabelItem = item => /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19092
|
-
className: `${COMPONENT_NAME$
|
|
19092
|
+
className: `${COMPONENT_NAME$7}__ItemWrapper`,
|
|
19093
19093
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19094
|
-
className: `${COMPONENT_NAME$
|
|
19094
|
+
className: `${COMPONENT_NAME$7}__Item__Value`,
|
|
19095
19095
|
children: item.cp
|
|
19096
19096
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19097
|
-
className: `${COMPONENT_NAME$
|
|
19097
|
+
className: `${COMPONENT_NAME$7}__Item__Description`,
|
|
19098
19098
|
children: [item.municipality, ", ", item.city, ", ", item.state]
|
|
19099
19099
|
})]
|
|
19100
19100
|
});
|
|
@@ -19108,7 +19108,7 @@ const AlphaZipCodeInput = ({
|
|
|
19108
19108
|
onChange: handleOnSelectItem
|
|
19109
19109
|
}) : null;
|
|
19110
19110
|
const emptyItemsMarkup = items && items.length === 0 ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19111
|
-
className: `${COMPONENT_NAME$
|
|
19111
|
+
className: `${COMPONENT_NAME$7}__EmptyItems`,
|
|
19112
19112
|
children: labelEmpty
|
|
19113
19113
|
}) : null;
|
|
19114
19114
|
const popoverMarkup = React2.useMemo(() => /*#__PURE__*/jsxRuntimeExports.jsx(Popover$1, {
|
|
@@ -19127,7 +19127,7 @@ const AlphaZipCodeInput = ({
|
|
|
19127
19127
|
} else setShowPopover(false);
|
|
19128
19128
|
}, [items]);
|
|
19129
19129
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19130
|
-
className: `${COMPONENT_NAME$
|
|
19130
|
+
className: `${COMPONENT_NAME$7}__Wrapper`,
|
|
19131
19131
|
children: [labelMarkup, popoverMarkup]
|
|
19132
19132
|
});
|
|
19133
19133
|
};
|
|
@@ -33626,7 +33626,7 @@ const TrashIcon = () => /*#__PURE__*/jsxRuntimeExports.jsxs("svg", {
|
|
|
33626
33626
|
})]
|
|
33627
33627
|
});
|
|
33628
33628
|
|
|
33629
|
-
const COMPONENT_NAME$
|
|
33629
|
+
const COMPONENT_NAME$6 = 'DeletableSection';
|
|
33630
33630
|
const DeletableSection = ({
|
|
33631
33631
|
ariaLabel,
|
|
33632
33632
|
children,
|
|
@@ -33638,14 +33638,14 @@ const DeletableSection = ({
|
|
|
33638
33638
|
theme
|
|
33639
33639
|
} = useTheme();
|
|
33640
33640
|
const THEME_CLASS = `${theme}`;
|
|
33641
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
33642
|
-
const classNameButton = cssClassName(`${COMPONENT_NAME$
|
|
33641
|
+
const className = cssClassName(COMPONENT_NAME$6);
|
|
33642
|
+
const classNameButton = cssClassName(`${COMPONENT_NAME$6}__DeleteButtonWrapper`, THEME_CLASS);
|
|
33643
33643
|
const icon = iconDeletable || TrashIcon;
|
|
33644
33644
|
const deleteButtonMarkup = onDelete && isDeletable ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
33645
33645
|
className: classNameButton,
|
|
33646
33646
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
33647
33647
|
"aria-label": ariaLabel ? `${ariaLabel}-removeForm` : ariaLabel,
|
|
33648
|
-
className: `${COMPONENT_NAME$
|
|
33648
|
+
className: `${COMPONENT_NAME$6}__DeleteButton`,
|
|
33649
33649
|
onClick: onDelete,
|
|
33650
33650
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaIcon, {
|
|
33651
33651
|
source: icon,
|
|
@@ -33654,7 +33654,7 @@ const DeletableSection = ({
|
|
|
33654
33654
|
})
|
|
33655
33655
|
}) : null;
|
|
33656
33656
|
const contentMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
33657
|
-
className: `${COMPONENT_NAME$
|
|
33657
|
+
className: `${COMPONENT_NAME$6}__ContentWrapper`,
|
|
33658
33658
|
children: children
|
|
33659
33659
|
}) : null;
|
|
33660
33660
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -34056,7 +34056,7 @@ const SectionForm = ({
|
|
|
34056
34056
|
});
|
|
34057
34057
|
};
|
|
34058
34058
|
|
|
34059
|
-
const COMPONENT_NAME$
|
|
34059
|
+
const COMPONENT_NAME$5 = "DynamicForm";
|
|
34060
34060
|
const DynamicForm = ({
|
|
34061
34061
|
ariaLabel,
|
|
34062
34062
|
dataFormArray = [],
|
|
@@ -34110,7 +34110,7 @@ const DynamicForm = ({
|
|
|
34110
34110
|
}, `DynamicForm-${form.id}-${index}}`);
|
|
34111
34111
|
};
|
|
34112
34112
|
const contactsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
34113
|
-
className: `${COMPONENT_NAME$
|
|
34113
|
+
className: `${COMPONENT_NAME$5}__SectionFormWrapper`,
|
|
34114
34114
|
children: dataFormArray.map(renderForm)
|
|
34115
34115
|
});
|
|
34116
34116
|
const dividerMarkup = labelDivider && /*#__PURE__*/jsxRuntimeExports.jsx(Divider, {
|
|
@@ -34123,7 +34123,7 @@ const DynamicForm = ({
|
|
|
34123
34123
|
children: onAddForm.label
|
|
34124
34124
|
});
|
|
34125
34125
|
const THEME_CLASS = `${theme}`;
|
|
34126
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
34126
|
+
const className = cssClassName(COMPONENT_NAME$5, THEME_CLASS);
|
|
34127
34127
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
34128
34128
|
className: className,
|
|
34129
34129
|
children: [dividerMarkup, contactsMarkup, addContactButtonMarkup]
|
|
@@ -36896,16 +36896,16 @@ Sortable.mount(Remove, Revert);
|
|
|
36896
36896
|
|
|
36897
36897
|
const Context = /*#__PURE__*/React2.createContext({});
|
|
36898
36898
|
|
|
36899
|
-
const COMPONENT_NAME$
|
|
36899
|
+
const COMPONENT_NAME$4 = 'SortableList__Item';
|
|
36900
36900
|
const Item$1 = ({
|
|
36901
36901
|
children
|
|
36902
36902
|
}) => {
|
|
36903
36903
|
const {
|
|
36904
36904
|
hasHandle
|
|
36905
36905
|
} = React2.useContext(Context);
|
|
36906
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
36906
|
+
const className = cssClassName(COMPONENT_NAME$4, !hasHandle && 'no-handle');
|
|
36907
36907
|
const handleMarkup = hasHandle ? /*#__PURE__*/jsxRuntimeExports.jsxs("span", {
|
|
36908
|
-
className: `${COMPONENT_NAME$
|
|
36908
|
+
className: `${COMPONENT_NAME$4}__Handle`,
|
|
36909
36909
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
36910
36910
|
name: "MoreVertical"
|
|
36911
36911
|
}), /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
@@ -36913,7 +36913,7 @@ const Item$1 = ({
|
|
|
36913
36913
|
})]
|
|
36914
36914
|
}) : null;
|
|
36915
36915
|
const contentMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
36916
|
-
className: `${COMPONENT_NAME$
|
|
36916
|
+
className: `${COMPONENT_NAME$4}__Content`,
|
|
36917
36917
|
children: children
|
|
36918
36918
|
});
|
|
36919
36919
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("li", {
|
|
@@ -36922,7 +36922,7 @@ const Item$1 = ({
|
|
|
36922
36922
|
});
|
|
36923
36923
|
};
|
|
36924
36924
|
|
|
36925
|
-
const COMPONENT_NAME$
|
|
36925
|
+
const COMPONENT_NAME$3 = "SortableList";
|
|
36926
36926
|
const SortableList = function ({
|
|
36927
36927
|
renderItem,
|
|
36928
36928
|
items,
|
|
@@ -36930,7 +36930,7 @@ const SortableList = function ({
|
|
|
36930
36930
|
hasHandle
|
|
36931
36931
|
}) {
|
|
36932
36932
|
const listRef = React2.useRef(null);
|
|
36933
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
36933
|
+
const className = cssClassName(COMPONENT_NAME$3);
|
|
36934
36934
|
const hasItems = items && items.length > 0;
|
|
36935
36935
|
const handleSortEnd = event => {
|
|
36936
36936
|
const {
|
|
@@ -36962,7 +36962,7 @@ const SortableList = function ({
|
|
|
36962
36962
|
}
|
|
36963
36963
|
return itemComponent;
|
|
36964
36964
|
};
|
|
36965
|
-
const listClassName = cssClassName(`${COMPONENT_NAME$
|
|
36965
|
+
const listClassName = cssClassName(`${COMPONENT_NAME$3}__List`);
|
|
36966
36966
|
const listMarkup = hasItems ? /*#__PURE__*/jsxRuntimeExports.jsx("ul", {
|
|
36967
36967
|
ref: listRef,
|
|
36968
36968
|
className: listClassName,
|
|
@@ -37526,7 +37526,7 @@ const FilterControl = ({
|
|
|
37526
37526
|
});
|
|
37527
37527
|
};
|
|
37528
37528
|
|
|
37529
|
-
const COMPONENT_NAME$
|
|
37529
|
+
const COMPONENT_NAME$2 = 'FilterField';
|
|
37530
37530
|
const FilterField = ({
|
|
37531
37531
|
label,
|
|
37532
37532
|
isRequired = false,
|
|
@@ -37535,19 +37535,19 @@ const FilterField = ({
|
|
|
37535
37535
|
name
|
|
37536
37536
|
}) => {
|
|
37537
37537
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37538
|
-
className: `${COMPONENT_NAME$
|
|
37538
|
+
className: `${COMPONENT_NAME$2}__LabelWrapper`,
|
|
37539
37539
|
children: label
|
|
37540
37540
|
}) : null;
|
|
37541
37541
|
const filterFieldMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37542
|
-
className: `${COMPONENT_NAME$
|
|
37542
|
+
className: `${COMPONENT_NAME$2}__FieldWrapper`,
|
|
37543
37543
|
id: name,
|
|
37544
37544
|
children: field
|
|
37545
37545
|
});
|
|
37546
37546
|
const removeButtonMarkup = onRemove && !isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37547
|
-
className: `${COMPONENT_NAME$
|
|
37547
|
+
className: `${COMPONENT_NAME$2}__RemoveButtonWrapper`,
|
|
37548
37548
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
37549
37549
|
type: "button",
|
|
37550
|
-
className: `${COMPONENT_NAME$
|
|
37550
|
+
className: `${COMPONENT_NAME$2}__RemoveButton`,
|
|
37551
37551
|
onClick: onRemove,
|
|
37552
37552
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
37553
37553
|
name: "X"
|
|
@@ -37555,12 +37555,12 @@ const FilterField = ({
|
|
|
37555
37555
|
})
|
|
37556
37556
|
}) : null;
|
|
37557
37557
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37558
|
-
className: `${COMPONENT_NAME$
|
|
37558
|
+
className: `${COMPONENT_NAME$2}`,
|
|
37559
37559
|
children: [labelMarkup, filterFieldMarkup, removeButtonMarkup]
|
|
37560
37560
|
});
|
|
37561
37561
|
};
|
|
37562
37562
|
|
|
37563
|
-
const COMPONENT_NAME = 'Filters';
|
|
37563
|
+
const COMPONENT_NAME$1 = 'Filters';
|
|
37564
37564
|
const Filters = ({
|
|
37565
37565
|
ariaLabel,
|
|
37566
37566
|
filters = [],
|
|
@@ -37614,11 +37614,11 @@ const Filters = ({
|
|
|
37614
37614
|
key: `extra-action-${index}`
|
|
37615
37615
|
}, extraAction.label)) : null;
|
|
37616
37616
|
const secondaryActionsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37617
|
-
className: `${COMPONENT_NAME}__SecondaryActionsWrapper`,
|
|
37617
|
+
className: `${COMPONENT_NAME$1}__SecondaryActionsWrapper`,
|
|
37618
37618
|
children: availableFiltersPopoverMarkup
|
|
37619
37619
|
});
|
|
37620
37620
|
const mainActionsMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37621
|
-
className: `${COMPONENT_NAME}__MainActionsWrapper`,
|
|
37621
|
+
className: `${COMPONENT_NAME$1}__MainActionsWrapper`,
|
|
37622
37622
|
children: [extraActionsMarkup, /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
37623
37623
|
ariaLabel: `${ariaLabel}-cleanFilters`,
|
|
37624
37624
|
onClick: onCleanFilters,
|
|
@@ -37642,7 +37642,7 @@ const Filters = ({
|
|
|
37642
37642
|
handleRemoveFilter(filter);
|
|
37643
37643
|
};
|
|
37644
37644
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37645
|
-
className: `${COMPONENT_NAME}__SelectedFilter`,
|
|
37645
|
+
className: `${COMPONENT_NAME$1}__SelectedFilter`,
|
|
37646
37646
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(FilterField, {
|
|
37647
37647
|
label: foundFilter.label,
|
|
37648
37648
|
field: foundFilter.filter,
|
|
@@ -37653,15 +37653,15 @@ const Filters = ({
|
|
|
37653
37653
|
}, index);
|
|
37654
37654
|
};
|
|
37655
37655
|
const selectedFiltersMarkup = selectedFilters.length ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37656
|
-
className: `${COMPONENT_NAME}__SelectedFiltersWrapper`,
|
|
37656
|
+
className: `${COMPONENT_NAME$1}__SelectedFiltersWrapper`,
|
|
37657
37657
|
children: selectedFilters.map(renderSelectedFilter)
|
|
37658
37658
|
}) : null;
|
|
37659
37659
|
const actionsContainerMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37660
|
-
className: `${COMPONENT_NAME}__ActionsWrapper`,
|
|
37660
|
+
className: `${COMPONENT_NAME$1}__ActionsWrapper`,
|
|
37661
37661
|
children: [secondaryActionsMarkup, mainActionsMarkup]
|
|
37662
37662
|
});
|
|
37663
37663
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37664
|
-
className: COMPONENT_NAME,
|
|
37664
|
+
className: COMPONENT_NAME$1,
|
|
37665
37665
|
ref: mainContainerRef,
|
|
37666
37666
|
children: [selectedFiltersMarkup, actionsContainerMarkup]
|
|
37667
37667
|
});
|
|
@@ -39704,7 +39704,7 @@ function BrowserRouter({
|
|
|
39704
39704
|
);
|
|
39705
39705
|
}
|
|
39706
39706
|
var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
39707
|
-
var Link = React2__namespace.forwardRef(
|
|
39707
|
+
var Link$1 = React2__namespace.forwardRef(
|
|
39708
39708
|
function LinkWithRef({
|
|
39709
39709
|
onClick,
|
|
39710
39710
|
discover = "render",
|
|
@@ -39780,7 +39780,7 @@ var Link = React2__namespace.forwardRef(
|
|
|
39780
39780
|
return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, link, /* @__PURE__ */ React2__namespace.createElement(PrefetchPageLinks, { page: href2 })) : link;
|
|
39781
39781
|
}
|
|
39782
39782
|
);
|
|
39783
|
-
Link.displayName = "Link";
|
|
39783
|
+
Link$1.displayName = "Link";
|
|
39784
39784
|
var NavLink = React2__namespace.forwardRef(
|
|
39785
39785
|
function NavLinkWithRef({
|
|
39786
39786
|
"aria-current": ariaCurrentProp = "page",
|
|
@@ -39833,7 +39833,7 @@ var NavLink = React2__namespace.forwardRef(
|
|
|
39833
39833
|
}
|
|
39834
39834
|
let style = typeof styleProp === "function" ? styleProp(renderProps) : styleProp;
|
|
39835
39835
|
return /* @__PURE__ */ React2__namespace.createElement(
|
|
39836
|
-
Link,
|
|
39836
|
+
Link$1,
|
|
39837
39837
|
{
|
|
39838
39838
|
...rest,
|
|
39839
39839
|
"aria-current": ariaCurrent,
|
|
@@ -41325,6 +41325,24 @@ const Tile = ({
|
|
|
41325
41325
|
});
|
|
41326
41326
|
};
|
|
41327
41327
|
|
|
41328
|
+
const COMPONENT_NAME = 'Link';
|
|
41329
|
+
const Link = ({
|
|
41330
|
+
children,
|
|
41331
|
+
className: classNameProp,
|
|
41332
|
+
component,
|
|
41333
|
+
to,
|
|
41334
|
+
target
|
|
41335
|
+
}) => {
|
|
41336
|
+
const Component = component;
|
|
41337
|
+
const className = cssClassName(COMPONENT_NAME, classNameProp);
|
|
41338
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(Component, {
|
|
41339
|
+
className: className,
|
|
41340
|
+
to: to,
|
|
41341
|
+
target: target,
|
|
41342
|
+
children: children
|
|
41343
|
+
});
|
|
41344
|
+
};
|
|
41345
|
+
|
|
41328
41346
|
exports.ActionList = ActionList;
|
|
41329
41347
|
exports.Alert = Alert;
|
|
41330
41348
|
exports.AlertProvider = AlertProvider;
|
|
@@ -41393,6 +41411,7 @@ exports.InputText = InputText;
|
|
|
41393
41411
|
exports.Item = Item$2;
|
|
41394
41412
|
exports.JsonViewer = JsonViewer;
|
|
41395
41413
|
exports.Label = Label;
|
|
41414
|
+
exports.Link = Link;
|
|
41396
41415
|
exports.ListInfo = ListInfo;
|
|
41397
41416
|
exports.Loader = Loader;
|
|
41398
41417
|
exports.Logo = Logo;
|