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.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,
|
|
@@ -6954,7 +6954,7 @@ const Grid = ({
|
|
|
6954
6954
|
};
|
|
6955
6955
|
Grid.Item = GridItem;
|
|
6956
6956
|
|
|
6957
|
-
const COMPONENT_NAME$
|
|
6957
|
+
const COMPONENT_NAME$F = 'AlphaAttributeInput';
|
|
6958
6958
|
const AlphaAttributeInput = ({
|
|
6959
6959
|
items,
|
|
6960
6960
|
divider,
|
|
@@ -6962,7 +6962,7 @@ const AlphaAttributeInput = ({
|
|
|
6962
6962
|
isRequired
|
|
6963
6963
|
}) => {
|
|
6964
6964
|
const [isFocused, setIsFocused] = useState(false);
|
|
6965
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
6965
|
+
const className = cssClassName(COMPONENT_NAME$F, isFocused && 'isFocused');
|
|
6966
6966
|
const handleBlur = callback => {
|
|
6967
6967
|
setIsFocused(false);
|
|
6968
6968
|
if (callback) {
|
|
@@ -6982,16 +6982,16 @@ const AlphaAttributeInput = ({
|
|
|
6982
6982
|
}
|
|
6983
6983
|
};
|
|
6984
6984
|
const itemLabelMarkup = item.label ? /*#__PURE__*/jsxRuntimeExports.jsx("label", {
|
|
6985
|
-
className: `${COMPONENT_NAME$
|
|
6985
|
+
className: `${COMPONENT_NAME$F}__ItemLabelWrapper`,
|
|
6986
6986
|
children: item.label
|
|
6987
6987
|
}) : null;
|
|
6988
6988
|
const dividerMarkup = divider && index < items.length - 1 ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
6989
|
-
className: `${COMPONENT_NAME$
|
|
6989
|
+
className: `${COMPONENT_NAME$F}__Divider`,
|
|
6990
6990
|
children: divider
|
|
6991
6991
|
}) : null;
|
|
6992
6992
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(Fragment, {
|
|
6993
6993
|
children: [/*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
6994
|
-
className: `${COMPONENT_NAME$
|
|
6994
|
+
className: `${COMPONENT_NAME$F}__Item`,
|
|
6995
6995
|
children: [itemLabelMarkup, /*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
6996
6996
|
type: item.type,
|
|
6997
6997
|
value: item.value,
|
|
@@ -7008,17 +7008,17 @@ const AlphaAttributeInput = ({
|
|
|
7008
7008
|
}, index);
|
|
7009
7009
|
};
|
|
7010
7010
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7011
|
-
className: `${COMPONENT_NAME$
|
|
7011
|
+
className: `${COMPONENT_NAME$F}__LabelWrapper`,
|
|
7012
7012
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
7013
|
-
className: `${COMPONENT_NAME$
|
|
7013
|
+
className: `${COMPONENT_NAME$F}__Label`,
|
|
7014
7014
|
children: [label, isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7015
|
-
className: `${COMPONENT_NAME$
|
|
7015
|
+
className: `${COMPONENT_NAME$F}__IsRequiredSign`,
|
|
7016
7016
|
children: "*"
|
|
7017
7017
|
}) : null]
|
|
7018
7018
|
})
|
|
7019
7019
|
}) : null;
|
|
7020
7020
|
const itemsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7021
|
-
className: `${COMPONENT_NAME$
|
|
7021
|
+
className: `${COMPONENT_NAME$F}__ItemsWrapper`,
|
|
7022
7022
|
children: items.map(renderItem)
|
|
7023
7023
|
});
|
|
7024
7024
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -7027,7 +7027,7 @@ const AlphaAttributeInput = ({
|
|
|
7027
7027
|
});
|
|
7028
7028
|
};
|
|
7029
7029
|
|
|
7030
|
-
const COMPONENT_NAME$
|
|
7030
|
+
const COMPONENT_NAME$E = "AlphaBadge";
|
|
7031
7031
|
const AlphaBadge = ({
|
|
7032
7032
|
theme: themeProp,
|
|
7033
7033
|
children,
|
|
@@ -7040,9 +7040,9 @@ const AlphaBadge = ({
|
|
|
7040
7040
|
theme
|
|
7041
7041
|
} = useTheme();
|
|
7042
7042
|
const THEME_CLASS = `${theme}`;
|
|
7043
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7043
|
+
const className = cssClassName(COMPONENT_NAME$E, !themeProp && THEME_CLASS, isPrimary && "isPrimary", isDanger && "isDanger", isSuccess && "isSuccess", isWarning && "isWarning", themeProp && `${themeProp.toUpperCase()}`);
|
|
7044
7044
|
const childrenMarkup = children && /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7045
|
-
className: `${COMPONENT_NAME$
|
|
7045
|
+
className: `${COMPONENT_NAME$E}__TextWrapper`,
|
|
7046
7046
|
children: children
|
|
7047
7047
|
});
|
|
7048
7048
|
return /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
@@ -7051,7 +7051,7 @@ const AlphaBadge = ({
|
|
|
7051
7051
|
});
|
|
7052
7052
|
};
|
|
7053
7053
|
|
|
7054
|
-
const COMPONENT_NAME$
|
|
7054
|
+
const COMPONENT_NAME$D = "AlphaIcon";
|
|
7055
7055
|
const ICON_COLOR_VARIANTS = ["danger", "darkGray", "lightGray", "onDark", "primary", "success", "warning", "cloud", "klin", "link", "rainao", "workfloo", "rekon"];
|
|
7056
7056
|
const AlphaIcon = ({
|
|
7057
7057
|
source,
|
|
@@ -7070,10 +7070,10 @@ const AlphaIcon = ({
|
|
|
7070
7070
|
if (color && !ICON_COLOR_VARIANTS.includes(color)) {
|
|
7071
7071
|
console.warn(`The color ${color} is not supported for the AlphaIcon component when hasBackdrop is true.`);
|
|
7072
7072
|
}
|
|
7073
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7073
|
+
const className = cssClassName(COMPONENT_NAME$D, color && `is-${color}`, filled && "isFilled", outlined && "isOutlined", size && `is-${size}`, hasBackdrop && "hasBackdrop", source && `source-${sourceType}`);
|
|
7074
7074
|
const Source = source;
|
|
7075
7075
|
const StringSource = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7076
|
-
className: `${COMPONENT_NAME$
|
|
7076
|
+
className: `${COMPONENT_NAME$D}__StringSource`,
|
|
7077
7077
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7078
7078
|
children: source
|
|
7079
7079
|
})
|
|
@@ -7088,12 +7088,12 @@ const AlphaIcon = ({
|
|
|
7088
7088
|
});
|
|
7089
7089
|
};
|
|
7090
7090
|
|
|
7091
|
-
const COMPONENT_NAME$
|
|
7091
|
+
const COMPONENT_NAME$C = "AlphaSpinner";
|
|
7092
7092
|
const AlphaSpinner = ({
|
|
7093
7093
|
icon,
|
|
7094
7094
|
size
|
|
7095
7095
|
}) => {
|
|
7096
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7096
|
+
const className = cssClassName(COMPONENT_NAME$C);
|
|
7097
7097
|
let iconSource;
|
|
7098
7098
|
if (icon) {
|
|
7099
7099
|
if (isValidIcon(icon.icon)) {
|
|
@@ -7108,7 +7108,7 @@ const AlphaSpinner = ({
|
|
|
7108
7108
|
}
|
|
7109
7109
|
}
|
|
7110
7110
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7111
|
-
className: `${COMPONENT_NAME$
|
|
7111
|
+
className: `${COMPONENT_NAME$C}__IconWrapper`,
|
|
7112
7112
|
children: iconSource
|
|
7113
7113
|
}) : null;
|
|
7114
7114
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -7117,7 +7117,7 @@ const AlphaSpinner = ({
|
|
|
7117
7117
|
});
|
|
7118
7118
|
};
|
|
7119
7119
|
|
|
7120
|
-
const COMPONENT_NAME$
|
|
7120
|
+
const COMPONENT_NAME$B = "AlphaButton";
|
|
7121
7121
|
const AlphaButton = ({
|
|
7122
7122
|
ariaLabel,
|
|
7123
7123
|
children,
|
|
@@ -7153,7 +7153,7 @@ const AlphaButton = ({
|
|
|
7153
7153
|
} = useTheme();
|
|
7154
7154
|
const THEME_CLASS = `${theme}`;
|
|
7155
7155
|
const isIconOnly = !children && icon;
|
|
7156
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7156
|
+
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
7157
|
const buttonProps = {
|
|
7158
7158
|
id,
|
|
7159
7159
|
type: isSubmit ? "submit" : "button",
|
|
@@ -7171,7 +7171,7 @@ const AlphaButton = ({
|
|
|
7171
7171
|
onTouchEnd
|
|
7172
7172
|
};
|
|
7173
7173
|
const childrenMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7174
|
-
className: `${COMPONENT_NAME$
|
|
7174
|
+
className: `${COMPONENT_NAME$B}__TextWrapper`,
|
|
7175
7175
|
children: children
|
|
7176
7176
|
}) : null;
|
|
7177
7177
|
let iconSource;
|
|
@@ -7197,11 +7197,11 @@ const AlphaButton = ({
|
|
|
7197
7197
|
}
|
|
7198
7198
|
}
|
|
7199
7199
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7200
|
-
className: `${COMPONENT_NAME$
|
|
7200
|
+
className: `${COMPONENT_NAME$B}__IconWrapper`,
|
|
7201
7201
|
children: iconSource
|
|
7202
7202
|
}) : null;
|
|
7203
7203
|
const spinnerMarkup = isLoading && /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
7204
|
-
className: `${COMPONENT_NAME$
|
|
7204
|
+
className: `${COMPONENT_NAME$B}__SpinnerWrapper`,
|
|
7205
7205
|
children: spinnerIconSource
|
|
7206
7206
|
});
|
|
7207
7207
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("button", {
|
|
@@ -7211,7 +7211,7 @@ const AlphaButton = ({
|
|
|
7211
7211
|
});
|
|
7212
7212
|
};
|
|
7213
7213
|
|
|
7214
|
-
const COMPONENT_NAME$
|
|
7214
|
+
const COMPONENT_NAME$A = "AlphaChip";
|
|
7215
7215
|
const AlphaChip = ({
|
|
7216
7216
|
children,
|
|
7217
7217
|
hasError,
|
|
@@ -7224,13 +7224,13 @@ const AlphaChip = ({
|
|
|
7224
7224
|
theme: currentTheme
|
|
7225
7225
|
} = useTheme();
|
|
7226
7226
|
const THEME_CLASS = `${currentTheme}`;
|
|
7227
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7227
|
+
const className = cssClassName(COMPONENT_NAME$A, hasError && "hasError", isDisabled && "isDisabled", theme && `${theme.toUpperCase()}`, THEME_CLASS);
|
|
7228
7228
|
const childrenMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7229
|
-
className: `${COMPONENT_NAME$
|
|
7229
|
+
className: `${COMPONENT_NAME$A}__TextWrapper`,
|
|
7230
7230
|
children: children
|
|
7231
7231
|
}) : null;
|
|
7232
7232
|
const closeButtonMarkup = removeButtonIcon && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
7233
|
-
className: `${COMPONENT_NAME$
|
|
7233
|
+
className: `${COMPONENT_NAME$A}__CloseButtonWrapper`,
|
|
7234
7234
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
7235
7235
|
onClick: onRemove,
|
|
7236
7236
|
icon: removeButtonIcon
|
|
@@ -7278,7 +7278,7 @@ const getPosition = (activator, tooltip, alignment) => {
|
|
|
7278
7278
|
};
|
|
7279
7279
|
};
|
|
7280
7280
|
|
|
7281
|
-
const COMPONENT_NAME$
|
|
7281
|
+
const COMPONENT_NAME$z = 'Alpha__TooltipOverlay';
|
|
7282
7282
|
const Overlay = ({
|
|
7283
7283
|
children,
|
|
7284
7284
|
activator,
|
|
@@ -7292,7 +7292,7 @@ const Overlay = ({
|
|
|
7292
7292
|
onClick
|
|
7293
7293
|
}) => {
|
|
7294
7294
|
const tooltipRef = useRef(null);
|
|
7295
|
-
const overlayClassName = cssClassName(COMPONENT_NAME$
|
|
7295
|
+
const overlayClassName = cssClassName(COMPONENT_NAME$z, position && `is-${position}`, appearance && `is-${appearance}`, theme && appearance === 'default' && `is-${theme}`);
|
|
7296
7296
|
const [positionStyles, setPositionStyles] = useState({
|
|
7297
7297
|
'--tooltip-overlay-top': 0,
|
|
7298
7298
|
'--tooltip-overlay-left': 0,
|
|
@@ -7343,7 +7343,7 @@ const Overlay = ({
|
|
|
7343
7343
|
return markup;
|
|
7344
7344
|
};
|
|
7345
7345
|
|
|
7346
|
-
const COMPONENT_NAME$
|
|
7346
|
+
const COMPONENT_NAME$y = 'AlphaTooltip';
|
|
7347
7347
|
const AlphaTooltip = ({
|
|
7348
7348
|
content,
|
|
7349
7349
|
children,
|
|
@@ -7365,7 +7365,7 @@ const AlphaTooltip = ({
|
|
|
7365
7365
|
const isMouseOver = useRef(false);
|
|
7366
7366
|
const activatorContainer = useRef(null);
|
|
7367
7367
|
const WrapperComponent = activatorWrapper;
|
|
7368
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7368
|
+
const className = cssClassName(COMPONENT_NAME$y);
|
|
7369
7369
|
const handleOpen = useCallback(() => {
|
|
7370
7370
|
if (!isActivePersistence) {
|
|
7371
7371
|
setIsActive(true);
|
|
@@ -7648,7 +7648,7 @@ function getRangeDate(range, date) {
|
|
|
7648
7648
|
};
|
|
7649
7649
|
}
|
|
7650
7650
|
|
|
7651
|
-
const COMPONENT_NAME$
|
|
7651
|
+
const COMPONENT_NAME$x = 'DatePicker__Day';
|
|
7652
7652
|
const Day = /*#__PURE__*/memo(function Day({
|
|
7653
7653
|
day,
|
|
7654
7654
|
isDisabled,
|
|
@@ -7659,7 +7659,7 @@ const Day = /*#__PURE__*/memo(function Day({
|
|
|
7659
7659
|
onClick,
|
|
7660
7660
|
theme: themeProp
|
|
7661
7661
|
}) {
|
|
7662
|
-
const emptyDayClassName = cssClassName(COMPONENT_NAME$
|
|
7662
|
+
const emptyDayClassName = cssClassName(COMPONENT_NAME$x, !day && 'isEmpty');
|
|
7663
7663
|
if (!day) {
|
|
7664
7664
|
return /*#__PURE__*/jsxRuntimeExports.jsx("td", {
|
|
7665
7665
|
className: emptyDayClassName
|
|
@@ -7674,7 +7674,7 @@ const Day = /*#__PURE__*/memo(function Day({
|
|
|
7674
7674
|
}
|
|
7675
7675
|
};
|
|
7676
7676
|
const today = isToday(new Date(), day);
|
|
7677
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7677
|
+
const className = cssClassName(COMPONENT_NAME$x, today && 'isToday', `theme-${themeProp || theme}`, isSelected && 'isSelected', isDisabled && 'isDisabled', isInRange && 'isInRange', isFirstSelectedDay && 'isFirstSelectedDay', isLastSelectedDay && 'isLastSelectedDay');
|
|
7678
7678
|
const date = day.getDate();
|
|
7679
7679
|
return /*#__PURE__*/jsxRuntimeExports.jsx("td", {
|
|
7680
7680
|
className: className,
|
|
@@ -7685,7 +7685,7 @@ const Day = /*#__PURE__*/memo(function Day({
|
|
|
7685
7685
|
});
|
|
7686
7686
|
});
|
|
7687
7687
|
|
|
7688
|
-
const COMPONENT_NAME$
|
|
7688
|
+
const COMPONENT_NAME$w = 'DatePicker__Month';
|
|
7689
7689
|
const Month = ({
|
|
7690
7690
|
month = new Date().getMonth(),
|
|
7691
7691
|
year = new Date().getFullYear(),
|
|
@@ -7698,7 +7698,7 @@ const Month = ({
|
|
|
7698
7698
|
disableDates,
|
|
7699
7699
|
weekDays
|
|
7700
7700
|
}) => {
|
|
7701
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7701
|
+
const className = cssClassName(COMPONENT_NAME$w);
|
|
7702
7702
|
const weeks = useMemo(() => getWeeksByMonth(month, year, weekStartsOn), [month, year, weekStartsOn]);
|
|
7703
7703
|
const handleDateClick = useCallback(selectedDate => {
|
|
7704
7704
|
if (onChange) {
|
|
@@ -7742,7 +7742,7 @@ const Month = ({
|
|
|
7742
7742
|
});
|
|
7743
7743
|
};
|
|
7744
7744
|
|
|
7745
|
-
const COMPONENT_NAME$
|
|
7745
|
+
const COMPONENT_NAME$v = 'DatePIcker__YearField';
|
|
7746
7746
|
const YearField = ({
|
|
7747
7747
|
onChange,
|
|
7748
7748
|
value,
|
|
@@ -7753,7 +7753,7 @@ const YearField = ({
|
|
|
7753
7753
|
onKeyDown,
|
|
7754
7754
|
onKeyUp
|
|
7755
7755
|
}) => {
|
|
7756
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7756
|
+
const className = cssClassName(COMPONENT_NAME$v);
|
|
7757
7757
|
const handleChange = event => {
|
|
7758
7758
|
if (onChange) {
|
|
7759
7759
|
const value = event.target.value.trim();
|
|
@@ -7778,7 +7778,7 @@ const YearField = ({
|
|
|
7778
7778
|
});
|
|
7779
7779
|
};
|
|
7780
7780
|
|
|
7781
|
-
const COMPONENT_NAME$
|
|
7781
|
+
const COMPONENT_NAME$u = 'DatePicker__Header';
|
|
7782
7782
|
const Header$2 = ({
|
|
7783
7783
|
month,
|
|
7784
7784
|
year,
|
|
@@ -7786,7 +7786,7 @@ const Header$2 = ({
|
|
|
7786
7786
|
months
|
|
7787
7787
|
}) => {
|
|
7788
7788
|
const [yearValue, setYearValue] = useState(year);
|
|
7789
|
-
const headerClassName = cssClassName(COMPONENT_NAME$
|
|
7789
|
+
const headerClassName = cssClassName(COMPONENT_NAME$u);
|
|
7790
7790
|
const handleMonthChange = useCallback((month, year) => {
|
|
7791
7791
|
if (onChange) {
|
|
7792
7792
|
onChange(month, year);
|
|
@@ -7823,7 +7823,7 @@ const Header$2 = ({
|
|
|
7823
7823
|
appearance: "secondary",
|
|
7824
7824
|
onClick: () => handleMonthChange(previousMonth, previousYear)
|
|
7825
7825
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("span", {
|
|
7826
|
-
className: `${COMPONENT_NAME$
|
|
7826
|
+
className: `${COMPONENT_NAME$u}__DateLabel`,
|
|
7827
7827
|
children: [montName, /*#__PURE__*/jsxRuntimeExports.jsx(YearField, {
|
|
7828
7828
|
value: yearValue,
|
|
7829
7829
|
onChange: setYearValue,
|
|
@@ -7839,7 +7839,7 @@ const Header$2 = ({
|
|
|
7839
7839
|
});
|
|
7840
7840
|
};
|
|
7841
7841
|
|
|
7842
|
-
const COMPONENT_NAME$
|
|
7842
|
+
const COMPONENT_NAME$t = 'DatePicker';
|
|
7843
7843
|
function getMonthSelectedDate(selected) {
|
|
7844
7844
|
return selected instanceof Date ? {
|
|
7845
7845
|
start: selected,
|
|
@@ -7861,7 +7861,7 @@ const DatePicker = ({
|
|
|
7861
7861
|
months,
|
|
7862
7862
|
weekDays
|
|
7863
7863
|
}) => {
|
|
7864
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
7864
|
+
const className = cssClassName(COMPONENT_NAME$t);
|
|
7865
7865
|
const handleDateChange = useCallback(dateRange => {
|
|
7866
7866
|
if (onChange) {
|
|
7867
7867
|
onChange(dateRange);
|
|
@@ -16524,7 +16524,7 @@ function formatDate(date, toISO) {
|
|
|
16524
16524
|
return DateTime.fromJSDate(date).toFormat('dd/MM/yyyy');
|
|
16525
16525
|
}
|
|
16526
16526
|
|
|
16527
|
-
const COMPONENT_NAME$
|
|
16527
|
+
const COMPONENT_NAME$s = 'DateInput';
|
|
16528
16528
|
const AlphaInputDate = ({
|
|
16529
16529
|
ariaLabel,
|
|
16530
16530
|
disabled,
|
|
@@ -16550,7 +16550,7 @@ const AlphaInputDate = ({
|
|
|
16550
16550
|
const [isErrorTooltipActive, setIsErrorTooltipActive] = useState(false);
|
|
16551
16551
|
const [selectedDate, setSelectedDate] = useState();
|
|
16552
16552
|
const inputRef = useRef(null);
|
|
16553
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
16553
|
+
const className = cssClassName(COMPONENT_NAME$s);
|
|
16554
16554
|
const handleMonthChange = (monthValue, yearValue) => {
|
|
16555
16555
|
setDate({
|
|
16556
16556
|
month: monthValue,
|
|
@@ -16675,7 +16675,7 @@ const AlphaInputDate = ({
|
|
|
16675
16675
|
weekDays: weekdays
|
|
16676
16676
|
});
|
|
16677
16677
|
const inputMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
16678
|
-
className: `${COMPONENT_NAME$
|
|
16678
|
+
className: `${COMPONENT_NAME$s}__InputWrapper`,
|
|
16679
16679
|
onClick: () => setIsPopoverActive(true),
|
|
16680
16680
|
ref: inputRef,
|
|
16681
16681
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaTooltip, {
|
|
@@ -16880,16 +16880,16 @@ const Tag = ({
|
|
|
16880
16880
|
});
|
|
16881
16881
|
};
|
|
16882
16882
|
|
|
16883
|
-
const COMPONENT_NAME$
|
|
16883
|
+
const COMPONENT_NAME$r = "Divider";
|
|
16884
16884
|
const Divider = ({
|
|
16885
16885
|
alignment = "left",
|
|
16886
16886
|
label
|
|
16887
16887
|
}) => {
|
|
16888
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
16888
|
+
const className = cssClassName(COMPONENT_NAME$r, alignment, !label && "no-label");
|
|
16889
16889
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
16890
|
-
className: `${COMPONENT_NAME$
|
|
16890
|
+
className: `${COMPONENT_NAME$r}__LabelWrapper`,
|
|
16891
16891
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
16892
|
-
className: `${COMPONENT_NAME$
|
|
16892
|
+
className: `${COMPONENT_NAME$r}__Label`,
|
|
16893
16893
|
children: label
|
|
16894
16894
|
})
|
|
16895
16895
|
}) : null;
|
|
@@ -17534,7 +17534,7 @@ const Panel$1 = ({
|
|
|
17534
17534
|
});
|
|
17535
17535
|
};
|
|
17536
17536
|
|
|
17537
|
-
const COMPONENT_NAME$
|
|
17537
|
+
const COMPONENT_NAME$q = 'Tabs';
|
|
17538
17538
|
const Tabs = ({
|
|
17539
17539
|
onSelect,
|
|
17540
17540
|
selected,
|
|
@@ -17546,7 +17546,7 @@ const Tabs = ({
|
|
|
17546
17546
|
const {
|
|
17547
17547
|
theme
|
|
17548
17548
|
} = useTheme();
|
|
17549
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
17549
|
+
const classNames = cssClassName(COMPONENT_NAME$q, `is${themeClassConverter(theme)}`);
|
|
17550
17550
|
const panelMarkup = children ? tabs.map((tab, index) => selected === index ? /*#__PURE__*/jsxRuntimeExports.jsx(Panel$1, {
|
|
17551
17551
|
id: tab.panelID || `${tab.id}-panel`,
|
|
17552
17552
|
children: children
|
|
@@ -17809,12 +17809,12 @@ const AlphaGraphicCard = ({
|
|
|
17809
17809
|
});
|
|
17810
17810
|
};
|
|
17811
17811
|
|
|
17812
|
-
const COMPONENT_NAME$
|
|
17812
|
+
const COMPONENT_NAME$p = "AlphaInlineError";
|
|
17813
17813
|
const AlphaInlineError = ({
|
|
17814
17814
|
icon,
|
|
17815
17815
|
children
|
|
17816
17816
|
}) => {
|
|
17817
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17817
|
+
const className = cssClassName(COMPONENT_NAME$p);
|
|
17818
17818
|
let iconSource;
|
|
17819
17819
|
if (icon) {
|
|
17820
17820
|
if (isValidIcon(icon.icon)) {
|
|
@@ -17828,11 +17828,11 @@ const AlphaInlineError = ({
|
|
|
17828
17828
|
}
|
|
17829
17829
|
}
|
|
17830
17830
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17831
|
-
className: `${COMPONENT_NAME$
|
|
17831
|
+
className: `${COMPONENT_NAME$p}__IconWrapper`,
|
|
17832
17832
|
children: iconSource
|
|
17833
17833
|
}) : null;
|
|
17834
17834
|
const messageMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
17835
|
-
className: `${COMPONENT_NAME$
|
|
17835
|
+
className: `${COMPONENT_NAME$p}__MessageWrapper`,
|
|
17836
17836
|
children: children
|
|
17837
17837
|
}) : null;
|
|
17838
17838
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -17841,8 +17841,8 @@ const AlphaInlineError = ({
|
|
|
17841
17841
|
});
|
|
17842
17842
|
};
|
|
17843
17843
|
|
|
17844
|
-
const COMPONENT_NAME$
|
|
17845
|
-
const className$1 = cssClassName(COMPONENT_NAME$
|
|
17844
|
+
const COMPONENT_NAME$o = "AlphaLabel";
|
|
17845
|
+
const className$1 = cssClassName(COMPONENT_NAME$o);
|
|
17846
17846
|
const AlphaLabel = ({
|
|
17847
17847
|
children,
|
|
17848
17848
|
isRequired,
|
|
@@ -17850,7 +17850,7 @@ const AlphaLabel = ({
|
|
|
17850
17850
|
id
|
|
17851
17851
|
}) => {
|
|
17852
17852
|
const requiredSignMarkup = isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
17853
|
-
className: `${COMPONENT_NAME$
|
|
17853
|
+
className: `${COMPONENT_NAME$o}__RequiredSign`,
|
|
17854
17854
|
children: "*"
|
|
17855
17855
|
}) : null;
|
|
17856
17856
|
const labelMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
@@ -17858,7 +17858,7 @@ const AlphaLabel = ({
|
|
|
17858
17858
|
children: [children, requiredSignMarkup]
|
|
17859
17859
|
});
|
|
17860
17860
|
const actionMarkup = action ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17861
|
-
className: `${COMPONENT_NAME$
|
|
17861
|
+
className: `${COMPONENT_NAME$o}__ActionWrapper`,
|
|
17862
17862
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
17863
17863
|
id: action.id,
|
|
17864
17864
|
isDanger: action.isDanger,
|
|
@@ -17876,12 +17876,12 @@ const AlphaLabel = ({
|
|
|
17876
17876
|
});
|
|
17877
17877
|
};
|
|
17878
17878
|
|
|
17879
|
-
const COMPONENT_NAME$
|
|
17879
|
+
const COMPONENT_NAME$n = "AlphaLabelledField__HelpText";
|
|
17880
17880
|
const HelpText = ({
|
|
17881
17881
|
message,
|
|
17882
17882
|
icon
|
|
17883
17883
|
}) => {
|
|
17884
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17884
|
+
const className = cssClassName(COMPONENT_NAME$n);
|
|
17885
17885
|
let iconSource;
|
|
17886
17886
|
if (icon) {
|
|
17887
17887
|
if (isValidIcon(icon.icon)) {
|
|
@@ -17895,11 +17895,11 @@ const HelpText = ({
|
|
|
17895
17895
|
}
|
|
17896
17896
|
}
|
|
17897
17897
|
const iconMarkup = iconSource ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17898
|
-
className: `${COMPONENT_NAME$
|
|
17898
|
+
className: `${COMPONENT_NAME$n}__IconWrapper`,
|
|
17899
17899
|
children: iconSource
|
|
17900
17900
|
}) : null;
|
|
17901
17901
|
const messageMarkup = message ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17902
|
-
className: `${COMPONENT_NAME$
|
|
17902
|
+
className: `${COMPONENT_NAME$n}__MessageWrapper`,
|
|
17903
17903
|
children: message
|
|
17904
17904
|
}) : null;
|
|
17905
17905
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -17908,7 +17908,7 @@ const HelpText = ({
|
|
|
17908
17908
|
});
|
|
17909
17909
|
};
|
|
17910
17910
|
|
|
17911
|
-
const COMPONENT_NAME$
|
|
17911
|
+
const COMPONENT_NAME$m = "AlphaLabelledField";
|
|
17912
17912
|
const AlphaLabelledField = ({
|
|
17913
17913
|
label,
|
|
17914
17914
|
children,
|
|
@@ -17918,9 +17918,9 @@ const AlphaLabelledField = ({
|
|
|
17918
17918
|
id,
|
|
17919
17919
|
isRequired
|
|
17920
17920
|
}) => {
|
|
17921
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
17921
|
+
const className = cssClassName(COMPONENT_NAME$m);
|
|
17922
17922
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17923
|
-
className: `${COMPONENT_NAME$
|
|
17923
|
+
className: `${COMPONENT_NAME$m}__LabelWrapper`,
|
|
17924
17924
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabel, {
|
|
17925
17925
|
action: action,
|
|
17926
17926
|
id: id,
|
|
@@ -17929,7 +17929,7 @@ const AlphaLabelledField = ({
|
|
|
17929
17929
|
})
|
|
17930
17930
|
}) : null;
|
|
17931
17931
|
const errorMarkup = error ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17932
|
-
className: `${COMPONENT_NAME$
|
|
17932
|
+
className: `${COMPONENT_NAME$m}__ErrorWrapper`,
|
|
17933
17933
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaInlineError, {
|
|
17934
17934
|
icon: error.icon,
|
|
17935
17935
|
children: error.message
|
|
@@ -17945,7 +17945,7 @@ const AlphaLabelledField = ({
|
|
|
17945
17945
|
isActive: Boolean(errorMarkup),
|
|
17946
17946
|
appearance: "error",
|
|
17947
17947
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
17948
|
-
className: `${COMPONENT_NAME$
|
|
17948
|
+
className: `${COMPONENT_NAME$m}__ContentWrapper`,
|
|
17949
17949
|
children: children
|
|
17950
17950
|
})
|
|
17951
17951
|
}) : children;
|
|
@@ -17955,7 +17955,7 @@ const AlphaLabelledField = ({
|
|
|
17955
17955
|
});
|
|
17956
17956
|
};
|
|
17957
17957
|
|
|
17958
|
-
const COMPONENT_NAME$
|
|
17958
|
+
const COMPONENT_NAME$l = "AlphaInputTag";
|
|
17959
17959
|
const InputTag$1 = ({
|
|
17960
17960
|
ariaLabel,
|
|
17961
17961
|
id,
|
|
@@ -18014,7 +18014,7 @@ const InputTag$1 = ({
|
|
|
18014
18014
|
};
|
|
18015
18015
|
const renderTag = (tag, index) => {
|
|
18016
18016
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18017
|
-
className: `${COMPONENT_NAME$
|
|
18017
|
+
className: `${COMPONENT_NAME$l}__TagWrapper`,
|
|
18018
18018
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaChip, {
|
|
18019
18019
|
removeButtonIcon: tagRemoveIcon,
|
|
18020
18020
|
onRemove: () => handleRemoveTag(index),
|
|
@@ -18022,8 +18022,8 @@ const InputTag$1 = ({
|
|
|
18022
18022
|
})
|
|
18023
18023
|
}, index);
|
|
18024
18024
|
};
|
|
18025
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18026
|
-
const inputWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18025
|
+
const className = cssClassName(COMPONENT_NAME$l);
|
|
18026
|
+
const inputWrapperClassName = cssClassName(`${COMPONENT_NAME$l}__InputWrapper`, isFocused && "isFocused", isDisabled && "isDisabled", hasError && "hasError");
|
|
18027
18027
|
const handleInputChange = event => {
|
|
18028
18028
|
if (onInputTextChange) {
|
|
18029
18029
|
onInputTextChange(event.target.value);
|
|
@@ -18061,12 +18061,12 @@ const InputTag$1 = ({
|
|
|
18061
18061
|
});
|
|
18062
18062
|
};
|
|
18063
18063
|
|
|
18064
|
-
const COMPONENT_NAME$
|
|
18064
|
+
const COMPONENT_NAME$k = "AlphaInputText";
|
|
18065
18065
|
const AlphaInputText = ({
|
|
18066
18066
|
isDisabled,
|
|
18067
18067
|
label
|
|
18068
18068
|
}) => {
|
|
18069
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18069
|
+
const className = cssClassName(COMPONENT_NAME$k, isDisabled && "isDisabled");
|
|
18070
18070
|
return /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabelledField, {
|
|
18071
18071
|
label: label,
|
|
18072
18072
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -18075,7 +18075,7 @@ const AlphaInputText = ({
|
|
|
18075
18075
|
});
|
|
18076
18076
|
};
|
|
18077
18077
|
|
|
18078
|
-
const COMPONENT_NAME$
|
|
18078
|
+
const COMPONENT_NAME$j = "AlphaMultiSelectionPicker__Picker__List";
|
|
18079
18079
|
const List = ({
|
|
18080
18080
|
items,
|
|
18081
18081
|
selected,
|
|
@@ -18085,7 +18085,7 @@ const List = ({
|
|
|
18085
18085
|
const scrollToSelected = () => {
|
|
18086
18086
|
const listWrapper = listWrapperRef.current;
|
|
18087
18087
|
if (listWrapper) {
|
|
18088
|
-
const selectedElement = listWrapper.querySelector(`.${COMPONENT_NAME$
|
|
18088
|
+
const selectedElement = listWrapper.querySelector(`.${COMPONENT_NAME$j}__ListItem--selected`);
|
|
18089
18089
|
if (selectedElement) {
|
|
18090
18090
|
const {
|
|
18091
18091
|
top
|
|
@@ -18114,16 +18114,16 @@ const List = ({
|
|
|
18114
18114
|
value
|
|
18115
18115
|
} = item;
|
|
18116
18116
|
const isSelected = Boolean(selected !== null && selected !== undefined && selected === value);
|
|
18117
|
-
const className = cssClassName(`${COMPONENT_NAME$
|
|
18117
|
+
const className = cssClassName(`${COMPONENT_NAME$j}__ListItem`, isSelected && "selected");
|
|
18118
18118
|
const handleClick = () => handleChange(value);
|
|
18119
18119
|
return /*#__PURE__*/jsxRuntimeExports.jsx("li", {
|
|
18120
18120
|
className: className,
|
|
18121
18121
|
onClick: handleClick,
|
|
18122
18122
|
children: label
|
|
18123
|
-
}, `${COMPONENT_NAME$
|
|
18123
|
+
}, `${COMPONENT_NAME$j}__ListItem-${index}`);
|
|
18124
18124
|
};
|
|
18125
18125
|
const itemsMarkup = items ? items.map(renderItem) : null;
|
|
18126
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18126
|
+
const className = cssClassName(COMPONENT_NAME$j);
|
|
18127
18127
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18128
18128
|
className: className,
|
|
18129
18129
|
ref: listWrapperRef,
|
|
@@ -18133,7 +18133,7 @@ const List = ({
|
|
|
18133
18133
|
});
|
|
18134
18134
|
};
|
|
18135
18135
|
|
|
18136
|
-
const COMPONENT_NAME$
|
|
18136
|
+
const COMPONENT_NAME$i = 'AlphaMultiSelectionPicker__Picker';
|
|
18137
18137
|
const Picker = ({
|
|
18138
18138
|
headers,
|
|
18139
18139
|
items,
|
|
@@ -18156,11 +18156,11 @@ const Picker = ({
|
|
|
18156
18156
|
}
|
|
18157
18157
|
};
|
|
18158
18158
|
const renderHeader = (header, index) => /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18159
|
-
className: `${COMPONENT_NAME$
|
|
18159
|
+
className: `${COMPONENT_NAME$i}__HeaderItem`,
|
|
18160
18160
|
children: capitalize(header)
|
|
18161
|
-
}, `${COMPONENT_NAME$
|
|
18161
|
+
}, `${COMPONENT_NAME$i}__HeaderItem-${index}`);
|
|
18162
18162
|
const headersMarkup = headers ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18163
|
-
className: `${COMPONENT_NAME$
|
|
18163
|
+
className: `${COMPONENT_NAME$i}__HeadersMarkup`,
|
|
18164
18164
|
children: headers.map(renderHeader)
|
|
18165
18165
|
}) : null;
|
|
18166
18166
|
const renderList = (listItems, index) => {
|
|
@@ -18169,13 +18169,13 @@ const Picker = ({
|
|
|
18169
18169
|
items: listItems,
|
|
18170
18170
|
onChange: value => handleChange(value, index),
|
|
18171
18171
|
selected: selectedValue
|
|
18172
|
-
}, `${COMPONENT_NAME$
|
|
18172
|
+
}, `${COMPONENT_NAME$i}__List-${index}`);
|
|
18173
18173
|
};
|
|
18174
18174
|
const itemsListsMarkup = items ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18175
|
-
className: `${COMPONENT_NAME$
|
|
18175
|
+
className: `${COMPONENT_NAME$i}__ItemsListWrapper`,
|
|
18176
18176
|
children: items.map(renderList)
|
|
18177
18177
|
}) : null;
|
|
18178
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18178
|
+
const className = cssClassName(COMPONENT_NAME$i, theme);
|
|
18179
18179
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18180
18180
|
className: className,
|
|
18181
18181
|
children: [headersMarkup, itemsListsMarkup]
|
|
@@ -18255,7 +18255,7 @@ const AlphaSegmentedControl = ({
|
|
|
18255
18255
|
|
|
18256
18256
|
const SideMenuContext = /*#__PURE__*/createContext({});
|
|
18257
18257
|
|
|
18258
|
-
const COMPONENT_NAME$
|
|
18258
|
+
const COMPONENT_NAME$h = "AlphaSideMenu__Item";
|
|
18259
18259
|
const Item$2 = ({
|
|
18260
18260
|
label,
|
|
18261
18261
|
isDisabled,
|
|
@@ -18303,7 +18303,7 @@ const Item$2 = ({
|
|
|
18303
18303
|
}
|
|
18304
18304
|
}, [isActive]);
|
|
18305
18305
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18306
|
-
className: `${COMPONENT_NAME$
|
|
18306
|
+
className: `${COMPONENT_NAME$h}__Label`,
|
|
18307
18307
|
children: label
|
|
18308
18308
|
}) : null;
|
|
18309
18309
|
const iconSource = icon && isValidIcon(icon?.icon) ? /*#__PURE__*/jsxRuntimeExports.jsx(AlphaIcon, {
|
|
@@ -18313,7 +18313,7 @@ const Item$2 = ({
|
|
|
18313
18313
|
children: icon
|
|
18314
18314
|
});
|
|
18315
18315
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18316
|
-
className: `${COMPONENT_NAME$
|
|
18316
|
+
className: `${COMPONENT_NAME$h}__IconWrapper`,
|
|
18317
18317
|
children: iconSource
|
|
18318
18318
|
}) : null;
|
|
18319
18319
|
const handleClick = () => {
|
|
@@ -18346,7 +18346,7 @@ const Item$2 = ({
|
|
|
18346
18346
|
position: "right",
|
|
18347
18347
|
children: anchorMarkup
|
|
18348
18348
|
}) : null;
|
|
18349
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18349
|
+
const classNames = cssClassName(COMPONENT_NAME$h, isDisabled && "isDisabled", isActive && "isActive", truncateText && "isTruncated", (isCollapsed !== undefined ? isCollapsed : collapsed) && "isCollapsed");
|
|
18350
18350
|
if (isVisible !== undefined && !isVisible(location, {
|
|
18351
18351
|
label,
|
|
18352
18352
|
url,
|
|
@@ -18364,7 +18364,7 @@ const Item$2 = ({
|
|
|
18364
18364
|
});
|
|
18365
18365
|
};
|
|
18366
18366
|
|
|
18367
|
-
const COMPONENT_NAME$
|
|
18367
|
+
const COMPONENT_NAME$g = "AlphaSideMenu__Section";
|
|
18368
18368
|
const Section$1 = ({
|
|
18369
18369
|
items,
|
|
18370
18370
|
fill,
|
|
@@ -18376,7 +18376,7 @@ const Section$1 = ({
|
|
|
18376
18376
|
collapsed
|
|
18377
18377
|
} = useContext(SideMenuContext);
|
|
18378
18378
|
const isCollapsed = isCollapsedProp !== undefined ? isCollapsedProp : collapsed;
|
|
18379
|
-
const titleClassNames = cssClassName(`${COMPONENT_NAME$
|
|
18379
|
+
const titleClassNames = cssClassName(`${COMPONENT_NAME$g}__TitleWrapper`, (isCollapsed !== undefined ? isCollapsed : collapsed) && "isCollapsed");
|
|
18380
18380
|
const titleMarkup = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18381
18381
|
// layout
|
|
18382
18382
|
className: titleClassNames
|
|
@@ -18422,10 +18422,10 @@ const Section$1 = ({
|
|
|
18422
18422
|
}, `alpha-side-menu-item-${index}`);
|
|
18423
18423
|
};
|
|
18424
18424
|
const itemsMarkup = items && items.length > 0 ? /*#__PURE__*/jsxRuntimeExports.jsx("ul", {
|
|
18425
|
-
className: `${COMPONENT_NAME$
|
|
18425
|
+
className: `${COMPONENT_NAME$g}__Items`,
|
|
18426
18426
|
children: items.map(renderItem)
|
|
18427
18427
|
}) : null;
|
|
18428
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18428
|
+
const classNames = cssClassName(COMPONENT_NAME$g, fill && "isFill");
|
|
18429
18429
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18430
18430
|
className: classNames
|
|
18431
18431
|
// layout
|
|
@@ -18438,7 +18438,7 @@ const Section$1 = ({
|
|
|
18438
18438
|
});
|
|
18439
18439
|
};
|
|
18440
18440
|
|
|
18441
|
-
const COMPONENT_NAME$
|
|
18441
|
+
const COMPONENT_NAME$f = "AlphaSideMenu__Tier";
|
|
18442
18442
|
const Tier = ({
|
|
18443
18443
|
children,
|
|
18444
18444
|
title,
|
|
@@ -18453,12 +18453,12 @@ const Tier = ({
|
|
|
18453
18453
|
const isMenuCollapsed = isCollapsed !== undefined ? isCollapsed : collapsed;
|
|
18454
18454
|
const titleMarkup = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18455
18455
|
// layout
|
|
18456
|
-
className: `${COMPONENT_NAME$
|
|
18456
|
+
className: `${COMPONENT_NAME$f}__TitleWrapper`,
|
|
18457
18457
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18458
18458
|
children: title
|
|
18459
18459
|
})
|
|
18460
18460
|
}) : null;
|
|
18461
|
-
const cssExpandButtonWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18461
|
+
const cssExpandButtonWrapperClassName = cssClassName(`${COMPONENT_NAME$f}__ExpandButtonWrapper`, hasSubNavigation && "isCollapsed");
|
|
18462
18462
|
const expandButtonMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18463
18463
|
// layout
|
|
18464
18464
|
className: cssExpandButtonWrapperClassName,
|
|
@@ -18468,7 +18468,7 @@ const Tier = ({
|
|
|
18468
18468
|
onClick: onExpand
|
|
18469
18469
|
})
|
|
18470
18470
|
});
|
|
18471
|
-
const classNames = cssClassName(COMPONENT_NAME$
|
|
18471
|
+
const classNames = cssClassName(COMPONENT_NAME$f, isMenuCollapsed && "isCollapsed");
|
|
18472
18472
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18473
18473
|
className: classNames
|
|
18474
18474
|
// initial={false}
|
|
@@ -18482,7 +18482,7 @@ const Tier = ({
|
|
|
18482
18482
|
});
|
|
18483
18483
|
};
|
|
18484
18484
|
|
|
18485
|
-
const COMPONENT_NAME$
|
|
18485
|
+
const COMPONENT_NAME$e = "AlphaSideMenu";
|
|
18486
18486
|
const AlphaSideMenu = ({
|
|
18487
18487
|
children,
|
|
18488
18488
|
collapsed,
|
|
@@ -18503,7 +18503,7 @@ const AlphaSideMenu = ({
|
|
|
18503
18503
|
console.error("AlphaSideMenu only accepts Section components as children");
|
|
18504
18504
|
}
|
|
18505
18505
|
});
|
|
18506
|
-
const cssClassNames = cssClassName(COMPONENT_NAME$
|
|
18506
|
+
const cssClassNames = cssClassName(COMPONENT_NAME$e, isCollapsed && "isCollapsed");
|
|
18507
18507
|
const handleSetCurrentTierItems = (items, item) => {
|
|
18508
18508
|
if (!item?.isExternal) {
|
|
18509
18509
|
if (!items.length) {
|
|
@@ -18556,7 +18556,7 @@ const StepDefault = {
|
|
|
18556
18556
|
status: 'incomplete'
|
|
18557
18557
|
};
|
|
18558
18558
|
|
|
18559
|
-
const COMPONENT_NAME$
|
|
18559
|
+
const COMPONENT_NAME$d = 'AlphaStepper__Step';
|
|
18560
18560
|
const Step = ({
|
|
18561
18561
|
iconMarkup,
|
|
18562
18562
|
label,
|
|
@@ -18569,20 +18569,20 @@ const Step = ({
|
|
|
18569
18569
|
const {
|
|
18570
18570
|
theme
|
|
18571
18571
|
} = useTheme();
|
|
18572
|
-
const itemClassName = cssClassName(`${COMPONENT_NAME$
|
|
18572
|
+
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
18573
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18574
|
-
className: COMPONENT_NAME$
|
|
18574
|
+
className: COMPONENT_NAME$d,
|
|
18575
18575
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18576
18576
|
className: itemClassName,
|
|
18577
18577
|
children: iconMarkup
|
|
18578
18578
|
}), /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18579
|
-
className: `${COMPONENT_NAME$
|
|
18579
|
+
className: `${COMPONENT_NAME$d}__Label`,
|
|
18580
18580
|
children: label
|
|
18581
18581
|
})]
|
|
18582
18582
|
});
|
|
18583
18583
|
};
|
|
18584
18584
|
|
|
18585
|
-
const COMPONENT_NAME$
|
|
18585
|
+
const COMPONENT_NAME$c = "AlphaStepper";
|
|
18586
18586
|
const getSourceIcon = icon => {
|
|
18587
18587
|
if (icon) {
|
|
18588
18588
|
if (isValidIcon(icon.icon)) {
|
|
@@ -18609,7 +18609,7 @@ const AlphaStepper = ({
|
|
|
18609
18609
|
...StepDefault
|
|
18610
18610
|
}, index) => {
|
|
18611
18611
|
const lastStepStatus = steps[index - 1] ? steps[index - 1].status : "";
|
|
18612
|
-
const iconClassName = cssClassName(`${COMPONENT_NAME$
|
|
18612
|
+
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
18613
|
let iconSource = getSourceIcon(incompleteIcon);
|
|
18614
18614
|
if (step.hasError && errorIcon) iconSource = getSourceIcon(errorIcon);
|
|
18615
18615
|
if (step.status === "complete") iconSource = getSourceIcon(completeIcon);
|
|
@@ -18629,23 +18629,23 @@ const AlphaStepper = ({
|
|
|
18629
18629
|
isSuccess: isSuccess,
|
|
18630
18630
|
isLastStepComplete: isLastStepComplete,
|
|
18631
18631
|
isLastStepInactive: isLastStepInactive
|
|
18632
|
-
}, `${COMPONENT_NAME$
|
|
18632
|
+
}, `${COMPONENT_NAME$c}-${index}`);
|
|
18633
18633
|
};
|
|
18634
18634
|
const stepsMarkup = steps ? steps.map(renderStep) : null;
|
|
18635
18635
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18636
|
-
className: `${COMPONENT_NAME$
|
|
18636
|
+
className: `${COMPONENT_NAME$c}__Container`,
|
|
18637
18637
|
children: stepsMarkup
|
|
18638
18638
|
});
|
|
18639
18639
|
};
|
|
18640
18640
|
|
|
18641
|
-
const COMPONENT_NAME$
|
|
18641
|
+
const COMPONENT_NAME$b = "AlphaTag";
|
|
18642
18642
|
const AlphaTag = ({
|
|
18643
18643
|
color,
|
|
18644
18644
|
children
|
|
18645
18645
|
}) => {
|
|
18646
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18646
|
+
const className = cssClassName(COMPONENT_NAME$b, color && `is-${color.color}-${color.intensity}`);
|
|
18647
18647
|
const childrenMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18648
|
-
className: `${COMPONENT_NAME$
|
|
18648
|
+
className: `${COMPONENT_NAME$b}__TextWrapper`,
|
|
18649
18649
|
children: children
|
|
18650
18650
|
});
|
|
18651
18651
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -18661,7 +18661,7 @@ const StatusIcon = {
|
|
|
18661
18661
|
Warning: WarningIcon
|
|
18662
18662
|
};
|
|
18663
18663
|
|
|
18664
|
-
const COMPONENT_NAME$
|
|
18664
|
+
const COMPONENT_NAME$a = "AlphaTile";
|
|
18665
18665
|
const AlphaTile = ({
|
|
18666
18666
|
isSelected,
|
|
18667
18667
|
icon,
|
|
@@ -18673,8 +18673,8 @@ const AlphaTile = ({
|
|
|
18673
18673
|
const {
|
|
18674
18674
|
theme
|
|
18675
18675
|
} = useTheme();
|
|
18676
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18677
|
-
const statusWrapperClassName = cssClassName(`${COMPONENT_NAME$
|
|
18676
|
+
const className = cssClassName(COMPONENT_NAME$a, `is${themeClassConverter(themeProp || theme)}`, isSelected && "isSelected");
|
|
18677
|
+
const statusWrapperClassName = cssClassName(`${COMPONENT_NAME$a}--StatusWrapper`, status && `is${status}`);
|
|
18678
18678
|
let iconSource;
|
|
18679
18679
|
if (icon) {
|
|
18680
18680
|
if (isValidIcon(icon.icon)) {
|
|
@@ -18689,21 +18689,21 @@ const AlphaTile = ({
|
|
|
18689
18689
|
}
|
|
18690
18690
|
}
|
|
18691
18691
|
const iconWrapper = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18692
|
-
className: `${COMPONENT_NAME$
|
|
18692
|
+
className: `${COMPONENT_NAME$a}__IconWrapper`,
|
|
18693
18693
|
children: iconSource
|
|
18694
18694
|
}) : null;
|
|
18695
18695
|
const mediaMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18696
|
-
className: `${COMPONENT_NAME$
|
|
18696
|
+
className: `${COMPONENT_NAME$a}__MediaWrapper`,
|
|
18697
18697
|
children: iconWrapper
|
|
18698
18698
|
}) : null;
|
|
18699
18699
|
const titleWrapper = title ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18700
18700
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18701
|
-
className: `${COMPONENT_NAME$
|
|
18701
|
+
className: `${COMPONENT_NAME$a}__TitleWrapper`,
|
|
18702
18702
|
children: title
|
|
18703
18703
|
})
|
|
18704
18704
|
}) : null;
|
|
18705
18705
|
const HeaderWrapper = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18706
|
-
className: `${COMPONENT_NAME$
|
|
18706
|
+
className: `${COMPONENT_NAME$a}__HeaderWrapper`,
|
|
18707
18707
|
children: [mediaMarkup, titleWrapper]
|
|
18708
18708
|
});
|
|
18709
18709
|
const statusIcon = status ? StatusIcon[status] : "";
|
|
@@ -18722,7 +18722,7 @@ const AlphaTile = ({
|
|
|
18722
18722
|
});
|
|
18723
18723
|
};
|
|
18724
18724
|
|
|
18725
|
-
const COMPONENT_NAME$
|
|
18725
|
+
const COMPONENT_NAME$9 = "TimeSelector";
|
|
18726
18726
|
const TimeSelector = ({
|
|
18727
18727
|
plurals,
|
|
18728
18728
|
singulars,
|
|
@@ -18854,7 +18854,7 @@ const TimeSelector = ({
|
|
|
18854
18854
|
let min;
|
|
18855
18855
|
if (valuesMaxMin) [min, max] = valuesMaxMin;
|
|
18856
18856
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18857
|
-
className: `${COMPONENT_NAME$
|
|
18857
|
+
className: `${COMPONENT_NAME$9}__InnerField`,
|
|
18858
18858
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
18859
18859
|
type: "number",
|
|
18860
18860
|
value: elValue,
|
|
@@ -18872,20 +18872,20 @@ const TimeSelector = ({
|
|
|
18872
18872
|
}, index);
|
|
18873
18873
|
};
|
|
18874
18874
|
const fieldsMarkup = Object.keys(singulars).map(renderField);
|
|
18875
|
-
const fieldClass = cssClassName(`${COMPONENT_NAME$
|
|
18875
|
+
const fieldClass = cssClassName(`${COMPONENT_NAME$9}__Field`, (isFocused || isActive) && "isFocused");
|
|
18876
18876
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18877
|
-
className: `${COMPONENT_NAME$
|
|
18877
|
+
className: `${COMPONENT_NAME$9}__LabelWrapper`,
|
|
18878
18878
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaLabel, {
|
|
18879
18879
|
isRequired: isRequired,
|
|
18880
18880
|
children: label
|
|
18881
18881
|
})
|
|
18882
18882
|
}) : null;
|
|
18883
18883
|
const helpTextMarkup = helpText ? helpText && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18884
|
-
className: `${COMPONENT_NAME$
|
|
18884
|
+
className: `${COMPONENT_NAME$9}__HelpTextWrapper`,
|
|
18885
18885
|
children: helpText
|
|
18886
18886
|
}) : null;
|
|
18887
18887
|
const fieldMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18888
|
-
className: `${COMPONENT_NAME$
|
|
18888
|
+
className: `${COMPONENT_NAME$9}__FieldWrapper`,
|
|
18889
18889
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs(AlphaTooltip, {
|
|
18890
18890
|
content: error,
|
|
18891
18891
|
appearance: "error",
|
|
@@ -18917,7 +18917,7 @@ const TimeSelector = ({
|
|
|
18917
18917
|
useEffect(() => {
|
|
18918
18918
|
setItems(getItemsMultiSelectionPicker());
|
|
18919
18919
|
}, [value]);
|
|
18920
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18920
|
+
const className = cssClassName(COMPONENT_NAME$9, theme, !value && "isEmpty");
|
|
18921
18921
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18922
18922
|
className: className,
|
|
18923
18923
|
children: [popoverMarkup, helpTextMarkup]
|
|
@@ -18928,7 +18928,7 @@ function getTimeValue(value) {
|
|
|
18928
18928
|
return value < 10 ? `0${value}` : `${value}`;
|
|
18929
18929
|
}
|
|
18930
18930
|
|
|
18931
|
-
const COMPONENT_NAME$
|
|
18931
|
+
const COMPONENT_NAME$8 = "Totalizer";
|
|
18932
18932
|
const Totalizer = ({
|
|
18933
18933
|
action,
|
|
18934
18934
|
direction,
|
|
@@ -18944,9 +18944,9 @@ const Totalizer = ({
|
|
|
18944
18944
|
theme
|
|
18945
18945
|
} = useTheme();
|
|
18946
18946
|
const themeClass = `has-Theme${themeProp ? themeProp.toUpperCase() : theme.toUpperCase()}`;
|
|
18947
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
18947
|
+
const className = cssClassName(COMPONENT_NAME$8, themeClass, isDisabled && "isDisabled", isFocused && "isFocused", direction && `has-${direction}Direction`);
|
|
18948
18948
|
const titleMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18949
|
-
className: `${COMPONENT_NAME$
|
|
18949
|
+
className: `${COMPONENT_NAME$8}__TitleWrapper`,
|
|
18950
18950
|
children: label
|
|
18951
18951
|
}) : null;
|
|
18952
18952
|
let iconSource;
|
|
@@ -18962,28 +18962,28 @@ const Totalizer = ({
|
|
|
18962
18962
|
}
|
|
18963
18963
|
}
|
|
18964
18964
|
const iconMarkup = icon ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
18965
|
-
className: `${COMPONENT_NAME$
|
|
18965
|
+
className: `${COMPONENT_NAME$8}__IconWrapper`,
|
|
18966
18966
|
children: iconSource
|
|
18967
18967
|
}) : null;
|
|
18968
18968
|
const headerMarkup = titleMarkup || iconMarkup ? /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
18969
|
-
className: `${COMPONENT_NAME$
|
|
18969
|
+
className: `${COMPONENT_NAME$8}__HeaderWrapper`,
|
|
18970
18970
|
children: [titleMarkup, iconMarkup]
|
|
18971
18971
|
}) : null;
|
|
18972
18972
|
const valueMarkup = value ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18973
|
-
className: `${COMPONENT_NAME$
|
|
18973
|
+
className: `${COMPONENT_NAME$8}__ValueWrapper`,
|
|
18974
18974
|
children: value
|
|
18975
18975
|
}) : null;
|
|
18976
18976
|
const placeholderValueMarkup = placeholderValue ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18977
|
-
className: `${COMPONENT_NAME$
|
|
18977
|
+
className: `${COMPONENT_NAME$8}__PlaceholderValueWrapper`,
|
|
18978
18978
|
children: placeholderValue
|
|
18979
18979
|
}) : null;
|
|
18980
18980
|
const valueContentToRender = !valueMarkup && placeholderValueMarkup || valueMarkup;
|
|
18981
18981
|
const valueContainerMarkup = valueMarkup || placeholderValueMarkup ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18982
|
-
className: `${COMPONENT_NAME$
|
|
18982
|
+
className: `${COMPONENT_NAME$8}__ValueContainerWrapper`,
|
|
18983
18983
|
children: valueContentToRender
|
|
18984
18984
|
}) : null;
|
|
18985
18985
|
const actionMarkup = action ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
18986
|
-
className: `${COMPONENT_NAME$
|
|
18986
|
+
className: `${COMPONENT_NAME$8}__ActionWrapper`,
|
|
18987
18987
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
18988
18988
|
id: action.id,
|
|
18989
18989
|
onClick: action.onClick,
|
|
@@ -18999,7 +18999,7 @@ const Totalizer = ({
|
|
|
18999
18999
|
children: action.content
|
|
19000
19000
|
})
|
|
19001
19001
|
}) : null;
|
|
19002
|
-
const contentClassName = cssClassName(`${COMPONENT_NAME$
|
|
19002
|
+
const contentClassName = cssClassName(`${COMPONENT_NAME$8}__ContentWrapper`, action && "has-Action");
|
|
19003
19003
|
const contentMarkup = valueContainerMarkup || actionMarkup ? /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19004
19004
|
className: contentClassName,
|
|
19005
19005
|
children: [valueContainerMarkup, actionMarkup]
|
|
@@ -19010,7 +19010,7 @@ const Totalizer = ({
|
|
|
19010
19010
|
});
|
|
19011
19011
|
};
|
|
19012
19012
|
|
|
19013
|
-
const COMPONENT_NAME$
|
|
19013
|
+
const COMPONENT_NAME$7 = 'AlphaZipCodeInput';
|
|
19014
19014
|
const AlphaZipCodeInput = ({
|
|
19015
19015
|
label,
|
|
19016
19016
|
isRequired,
|
|
@@ -19042,20 +19042,20 @@ const AlphaZipCodeInput = ({
|
|
|
19042
19042
|
}
|
|
19043
19043
|
};
|
|
19044
19044
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19045
|
-
className: `${COMPONENT_NAME$
|
|
19045
|
+
className: `${COMPONENT_NAME$7}__LabelWrapper`,
|
|
19046
19046
|
children: /*#__PURE__*/jsxRuntimeExports.jsxs("label", {
|
|
19047
|
-
className: `${COMPONENT_NAME$
|
|
19047
|
+
className: `${COMPONENT_NAME$7}__Label`,
|
|
19048
19048
|
children: [label, isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
19049
|
-
className: `${COMPONENT_NAME$
|
|
19049
|
+
className: `${COMPONENT_NAME$7}__Label--isRequired`,
|
|
19050
19050
|
children: "*"
|
|
19051
19051
|
}) : null]
|
|
19052
19052
|
})
|
|
19053
19053
|
}) : null;
|
|
19054
|
-
const classesInput = cssClassName(`${COMPONENT_NAME$
|
|
19054
|
+
const classesInput = cssClassName(`${COMPONENT_NAME$7}__InputWrapper`, isFocusActive && 'isFocus', loading && 'loading');
|
|
19055
19055
|
const inputMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19056
19056
|
className: classesInput,
|
|
19057
19057
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("input", {
|
|
19058
|
-
className: `${COMPONENT_NAME$
|
|
19058
|
+
className: `${COMPONENT_NAME$7}__InputWrapper--input`,
|
|
19059
19059
|
onBlur: handleOnBlur,
|
|
19060
19060
|
onFocus: handleOnFocus,
|
|
19061
19061
|
onChange: handleOnChange,
|
|
@@ -19069,12 +19069,12 @@ const AlphaZipCodeInput = ({
|
|
|
19069
19069
|
setShowPopover(false);
|
|
19070
19070
|
};
|
|
19071
19071
|
const renderLabelItem = item => /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19072
|
-
className: `${COMPONENT_NAME$
|
|
19072
|
+
className: `${COMPONENT_NAME$7}__ItemWrapper`,
|
|
19073
19073
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19074
|
-
className: `${COMPONENT_NAME$
|
|
19074
|
+
className: `${COMPONENT_NAME$7}__Item__Value`,
|
|
19075
19075
|
children: item.cp
|
|
19076
19076
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19077
|
-
className: `${COMPONENT_NAME$
|
|
19077
|
+
className: `${COMPONENT_NAME$7}__Item__Description`,
|
|
19078
19078
|
children: [item.municipality, ", ", item.city, ", ", item.state]
|
|
19079
19079
|
})]
|
|
19080
19080
|
});
|
|
@@ -19088,7 +19088,7 @@ const AlphaZipCodeInput = ({
|
|
|
19088
19088
|
onChange: handleOnSelectItem
|
|
19089
19089
|
}) : null;
|
|
19090
19090
|
const emptyItemsMarkup = items && items.length === 0 ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19091
|
-
className: `${COMPONENT_NAME$
|
|
19091
|
+
className: `${COMPONENT_NAME$7}__EmptyItems`,
|
|
19092
19092
|
children: labelEmpty
|
|
19093
19093
|
}) : null;
|
|
19094
19094
|
const popoverMarkup = useMemo(() => /*#__PURE__*/jsxRuntimeExports.jsx(Popover$1, {
|
|
@@ -19107,7 +19107,7 @@ const AlphaZipCodeInput = ({
|
|
|
19107
19107
|
} else setShowPopover(false);
|
|
19108
19108
|
}, [items]);
|
|
19109
19109
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19110
|
-
className: `${COMPONENT_NAME$
|
|
19110
|
+
className: `${COMPONENT_NAME$7}__Wrapper`,
|
|
19111
19111
|
children: [labelMarkup, popoverMarkup]
|
|
19112
19112
|
});
|
|
19113
19113
|
};
|
|
@@ -33606,7 +33606,7 @@ const TrashIcon = () => /*#__PURE__*/jsxRuntimeExports.jsxs("svg", {
|
|
|
33606
33606
|
})]
|
|
33607
33607
|
});
|
|
33608
33608
|
|
|
33609
|
-
const COMPONENT_NAME$
|
|
33609
|
+
const COMPONENT_NAME$6 = 'DeletableSection';
|
|
33610
33610
|
const DeletableSection = ({
|
|
33611
33611
|
ariaLabel,
|
|
33612
33612
|
children,
|
|
@@ -33618,14 +33618,14 @@ const DeletableSection = ({
|
|
|
33618
33618
|
theme
|
|
33619
33619
|
} = useTheme();
|
|
33620
33620
|
const THEME_CLASS = `${theme}`;
|
|
33621
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
33622
|
-
const classNameButton = cssClassName(`${COMPONENT_NAME$
|
|
33621
|
+
const className = cssClassName(COMPONENT_NAME$6);
|
|
33622
|
+
const classNameButton = cssClassName(`${COMPONENT_NAME$6}__DeleteButtonWrapper`, THEME_CLASS);
|
|
33623
33623
|
const icon = iconDeletable || TrashIcon;
|
|
33624
33624
|
const deleteButtonMarkup = onDelete && isDeletable ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
33625
33625
|
className: classNameButton,
|
|
33626
33626
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
33627
33627
|
"aria-label": ariaLabel ? `${ariaLabel}-removeForm` : ariaLabel,
|
|
33628
|
-
className: `${COMPONENT_NAME$
|
|
33628
|
+
className: `${COMPONENT_NAME$6}__DeleteButton`,
|
|
33629
33629
|
onClick: onDelete,
|
|
33630
33630
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(AlphaIcon, {
|
|
33631
33631
|
source: icon,
|
|
@@ -33634,7 +33634,7 @@ const DeletableSection = ({
|
|
|
33634
33634
|
})
|
|
33635
33635
|
}) : null;
|
|
33636
33636
|
const contentMarkup = children ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
33637
|
-
className: `${COMPONENT_NAME$
|
|
33637
|
+
className: `${COMPONENT_NAME$6}__ContentWrapper`,
|
|
33638
33638
|
children: children
|
|
33639
33639
|
}) : null;
|
|
33640
33640
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
@@ -34036,7 +34036,7 @@ const SectionForm = ({
|
|
|
34036
34036
|
});
|
|
34037
34037
|
};
|
|
34038
34038
|
|
|
34039
|
-
const COMPONENT_NAME$
|
|
34039
|
+
const COMPONENT_NAME$5 = "DynamicForm";
|
|
34040
34040
|
const DynamicForm = ({
|
|
34041
34041
|
ariaLabel,
|
|
34042
34042
|
dataFormArray = [],
|
|
@@ -34090,7 +34090,7 @@ const DynamicForm = ({
|
|
|
34090
34090
|
}, `DynamicForm-${form.id}-${index}}`);
|
|
34091
34091
|
};
|
|
34092
34092
|
const contactsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
34093
|
-
className: `${COMPONENT_NAME$
|
|
34093
|
+
className: `${COMPONENT_NAME$5}__SectionFormWrapper`,
|
|
34094
34094
|
children: dataFormArray.map(renderForm)
|
|
34095
34095
|
});
|
|
34096
34096
|
const dividerMarkup = labelDivider && /*#__PURE__*/jsxRuntimeExports.jsx(Divider, {
|
|
@@ -34103,7 +34103,7 @@ const DynamicForm = ({
|
|
|
34103
34103
|
children: onAddForm.label
|
|
34104
34104
|
});
|
|
34105
34105
|
const THEME_CLASS = `${theme}`;
|
|
34106
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
34106
|
+
const className = cssClassName(COMPONENT_NAME$5, THEME_CLASS);
|
|
34107
34107
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
34108
34108
|
className: className,
|
|
34109
34109
|
children: [dividerMarkup, contactsMarkup, addContactButtonMarkup]
|
|
@@ -36876,16 +36876,16 @@ Sortable.mount(Remove, Revert);
|
|
|
36876
36876
|
|
|
36877
36877
|
const Context = /*#__PURE__*/createContext({});
|
|
36878
36878
|
|
|
36879
|
-
const COMPONENT_NAME$
|
|
36879
|
+
const COMPONENT_NAME$4 = 'SortableList__Item';
|
|
36880
36880
|
const Item$1 = ({
|
|
36881
36881
|
children
|
|
36882
36882
|
}) => {
|
|
36883
36883
|
const {
|
|
36884
36884
|
hasHandle
|
|
36885
36885
|
} = useContext(Context);
|
|
36886
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
36886
|
+
const className = cssClassName(COMPONENT_NAME$4, !hasHandle && 'no-handle');
|
|
36887
36887
|
const handleMarkup = hasHandle ? /*#__PURE__*/jsxRuntimeExports.jsxs("span", {
|
|
36888
|
-
className: `${COMPONENT_NAME$
|
|
36888
|
+
className: `${COMPONENT_NAME$4}__Handle`,
|
|
36889
36889
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
36890
36890
|
name: "MoreVertical"
|
|
36891
36891
|
}), /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
@@ -36893,7 +36893,7 @@ const Item$1 = ({
|
|
|
36893
36893
|
})]
|
|
36894
36894
|
}) : null;
|
|
36895
36895
|
const contentMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
36896
|
-
className: `${COMPONENT_NAME$
|
|
36896
|
+
className: `${COMPONENT_NAME$4}__Content`,
|
|
36897
36897
|
children: children
|
|
36898
36898
|
});
|
|
36899
36899
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("li", {
|
|
@@ -36902,7 +36902,7 @@ const Item$1 = ({
|
|
|
36902
36902
|
});
|
|
36903
36903
|
};
|
|
36904
36904
|
|
|
36905
|
-
const COMPONENT_NAME$
|
|
36905
|
+
const COMPONENT_NAME$3 = "SortableList";
|
|
36906
36906
|
const SortableList = function ({
|
|
36907
36907
|
renderItem,
|
|
36908
36908
|
items,
|
|
@@ -36910,7 +36910,7 @@ const SortableList = function ({
|
|
|
36910
36910
|
hasHandle
|
|
36911
36911
|
}) {
|
|
36912
36912
|
const listRef = useRef(null);
|
|
36913
|
-
const className = cssClassName(COMPONENT_NAME$
|
|
36913
|
+
const className = cssClassName(COMPONENT_NAME$3);
|
|
36914
36914
|
const hasItems = items && items.length > 0;
|
|
36915
36915
|
const handleSortEnd = event => {
|
|
36916
36916
|
const {
|
|
@@ -36942,7 +36942,7 @@ const SortableList = function ({
|
|
|
36942
36942
|
}
|
|
36943
36943
|
return itemComponent;
|
|
36944
36944
|
};
|
|
36945
|
-
const listClassName = cssClassName(`${COMPONENT_NAME$
|
|
36945
|
+
const listClassName = cssClassName(`${COMPONENT_NAME$3}__List`);
|
|
36946
36946
|
const listMarkup = hasItems ? /*#__PURE__*/jsxRuntimeExports.jsx("ul", {
|
|
36947
36947
|
ref: listRef,
|
|
36948
36948
|
className: listClassName,
|
|
@@ -37506,7 +37506,7 @@ const FilterControl = ({
|
|
|
37506
37506
|
});
|
|
37507
37507
|
};
|
|
37508
37508
|
|
|
37509
|
-
const COMPONENT_NAME$
|
|
37509
|
+
const COMPONENT_NAME$2 = 'FilterField';
|
|
37510
37510
|
const FilterField = ({
|
|
37511
37511
|
label,
|
|
37512
37512
|
isRequired = false,
|
|
@@ -37515,19 +37515,19 @@ const FilterField = ({
|
|
|
37515
37515
|
name
|
|
37516
37516
|
}) => {
|
|
37517
37517
|
const labelMarkup = label ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37518
|
-
className: `${COMPONENT_NAME$
|
|
37518
|
+
className: `${COMPONENT_NAME$2}__LabelWrapper`,
|
|
37519
37519
|
children: label
|
|
37520
37520
|
}) : null;
|
|
37521
37521
|
const filterFieldMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37522
|
-
className: `${COMPONENT_NAME$
|
|
37522
|
+
className: `${COMPONENT_NAME$2}__FieldWrapper`,
|
|
37523
37523
|
id: name,
|
|
37524
37524
|
children: field
|
|
37525
37525
|
});
|
|
37526
37526
|
const removeButtonMarkup = onRemove && !isRequired ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37527
|
-
className: `${COMPONENT_NAME$
|
|
37527
|
+
className: `${COMPONENT_NAME$2}__RemoveButtonWrapper`,
|
|
37528
37528
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
37529
37529
|
type: "button",
|
|
37530
|
-
className: `${COMPONENT_NAME$
|
|
37530
|
+
className: `${COMPONENT_NAME$2}__RemoveButton`,
|
|
37531
37531
|
onClick: onRemove,
|
|
37532
37532
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
37533
37533
|
name: "X"
|
|
@@ -37535,12 +37535,12 @@ const FilterField = ({
|
|
|
37535
37535
|
})
|
|
37536
37536
|
}) : null;
|
|
37537
37537
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37538
|
-
className: `${COMPONENT_NAME$
|
|
37538
|
+
className: `${COMPONENT_NAME$2}`,
|
|
37539
37539
|
children: [labelMarkup, filterFieldMarkup, removeButtonMarkup]
|
|
37540
37540
|
});
|
|
37541
37541
|
};
|
|
37542
37542
|
|
|
37543
|
-
const COMPONENT_NAME = 'Filters';
|
|
37543
|
+
const COMPONENT_NAME$1 = 'Filters';
|
|
37544
37544
|
const Filters = ({
|
|
37545
37545
|
ariaLabel,
|
|
37546
37546
|
filters = [],
|
|
@@ -37594,11 +37594,11 @@ const Filters = ({
|
|
|
37594
37594
|
key: `extra-action-${index}`
|
|
37595
37595
|
}, extraAction.label)) : null;
|
|
37596
37596
|
const secondaryActionsMarkup = /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37597
|
-
className: `${COMPONENT_NAME}__SecondaryActionsWrapper`,
|
|
37597
|
+
className: `${COMPONENT_NAME$1}__SecondaryActionsWrapper`,
|
|
37598
37598
|
children: availableFiltersPopoverMarkup
|
|
37599
37599
|
});
|
|
37600
37600
|
const mainActionsMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37601
|
-
className: `${COMPONENT_NAME}__MainActionsWrapper`,
|
|
37601
|
+
className: `${COMPONENT_NAME$1}__MainActionsWrapper`,
|
|
37602
37602
|
children: [extraActionsMarkup, /*#__PURE__*/jsxRuntimeExports.jsx(AlphaButton, {
|
|
37603
37603
|
ariaLabel: `${ariaLabel}-cleanFilters`,
|
|
37604
37604
|
onClick: onCleanFilters,
|
|
@@ -37622,7 +37622,7 @@ const Filters = ({
|
|
|
37622
37622
|
handleRemoveFilter(filter);
|
|
37623
37623
|
};
|
|
37624
37624
|
return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37625
|
-
className: `${COMPONENT_NAME}__SelectedFilter`,
|
|
37625
|
+
className: `${COMPONENT_NAME$1}__SelectedFilter`,
|
|
37626
37626
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(FilterField, {
|
|
37627
37627
|
label: foundFilter.label,
|
|
37628
37628
|
field: foundFilter.filter,
|
|
@@ -37633,15 +37633,15 @@ const Filters = ({
|
|
|
37633
37633
|
}, index);
|
|
37634
37634
|
};
|
|
37635
37635
|
const selectedFiltersMarkup = selectedFilters.length ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
37636
|
-
className: `${COMPONENT_NAME}__SelectedFiltersWrapper`,
|
|
37636
|
+
className: `${COMPONENT_NAME$1}__SelectedFiltersWrapper`,
|
|
37637
37637
|
children: selectedFilters.map(renderSelectedFilter)
|
|
37638
37638
|
}) : null;
|
|
37639
37639
|
const actionsContainerMarkup = /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37640
|
-
className: `${COMPONENT_NAME}__ActionsWrapper`,
|
|
37640
|
+
className: `${COMPONENT_NAME$1}__ActionsWrapper`,
|
|
37641
37641
|
children: [secondaryActionsMarkup, mainActionsMarkup]
|
|
37642
37642
|
});
|
|
37643
37643
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
37644
|
-
className: COMPONENT_NAME,
|
|
37644
|
+
className: COMPONENT_NAME$1,
|
|
37645
37645
|
ref: mainContainerRef,
|
|
37646
37646
|
children: [selectedFiltersMarkup, actionsContainerMarkup]
|
|
37647
37647
|
});
|
|
@@ -39684,7 +39684,7 @@ function BrowserRouter({
|
|
|
39684
39684
|
);
|
|
39685
39685
|
}
|
|
39686
39686
|
var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
39687
|
-
var Link = React2.forwardRef(
|
|
39687
|
+
var Link$1 = React2.forwardRef(
|
|
39688
39688
|
function LinkWithRef({
|
|
39689
39689
|
onClick,
|
|
39690
39690
|
discover = "render",
|
|
@@ -39760,7 +39760,7 @@ var Link = React2.forwardRef(
|
|
|
39760
39760
|
return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(PrefetchPageLinks, { page: href2 })) : link;
|
|
39761
39761
|
}
|
|
39762
39762
|
);
|
|
39763
|
-
Link.displayName = "Link";
|
|
39763
|
+
Link$1.displayName = "Link";
|
|
39764
39764
|
var NavLink = React2.forwardRef(
|
|
39765
39765
|
function NavLinkWithRef({
|
|
39766
39766
|
"aria-current": ariaCurrentProp = "page",
|
|
@@ -39813,7 +39813,7 @@ var NavLink = React2.forwardRef(
|
|
|
39813
39813
|
}
|
|
39814
39814
|
let style = typeof styleProp === "function" ? styleProp(renderProps) : styleProp;
|
|
39815
39815
|
return /* @__PURE__ */ React2.createElement(
|
|
39816
|
-
Link,
|
|
39816
|
+
Link$1,
|
|
39817
39817
|
{
|
|
39818
39818
|
...rest,
|
|
39819
39819
|
"aria-current": ariaCurrent,
|
|
@@ -41305,5 +41305,23 @@ const Tile = ({
|
|
|
41305
41305
|
});
|
|
41306
41306
|
};
|
|
41307
41307
|
|
|
41308
|
-
|
|
41308
|
+
const COMPONENT_NAME = 'Link';
|
|
41309
|
+
const Link = ({
|
|
41310
|
+
children,
|
|
41311
|
+
className: classNameProp,
|
|
41312
|
+
component,
|
|
41313
|
+
to,
|
|
41314
|
+
target
|
|
41315
|
+
}) => {
|
|
41316
|
+
const Component = component;
|
|
41317
|
+
const className = cssClassName(COMPONENT_NAME, classNameProp);
|
|
41318
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(Component, {
|
|
41319
|
+
className: className,
|
|
41320
|
+
to: to,
|
|
41321
|
+
target: target,
|
|
41322
|
+
children: children
|
|
41323
|
+
});
|
|
41324
|
+
};
|
|
41325
|
+
|
|
41326
|
+
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
41327
|
//# sourceMappingURL=index.esm.js.map
|