@hexure/ui 1.13.72 → 1.13.74
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/cjs/index.js +15 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ActionDialog/ActionDialog.d.ts +2 -0
- package/dist/cjs/types/components/AppMenu/AppMenu.d.ts +0 -1
- package/dist/cjs/types/components/Drawer/Drawer.d.ts +1 -2
- package/dist/cjs/types/components/Modal/Modal.d.ts +1 -0
- package/dist/esm/index.js +15 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ActionDialog/ActionDialog.d.ts +2 -0
- package/dist/esm/types/components/AppMenu/AppMenu.d.ts +0 -1
- package/dist/esm/types/components/Drawer/Drawer.d.ts +1 -2
- package/dist/esm/types/components/Modal/Modal.d.ts +1 -0
- package/dist/index.d.ts +86 -85
- package/package.json +1 -1
- /package/dist/cjs/types/components/{MultiSelect → Multiselect}/MultiSelect.d.ts +0 -0
- /package/dist/cjs/types/components/{MultiSelect → Multiselect}/index.d.ts +0 -0
- /package/dist/esm/types/components/{MultiSelect → Multiselect}/MultiSelect.d.ts +0 -0
- /package/dist/esm/types/components/{MultiSelect → Multiselect}/index.d.ts +0 -0
|
@@ -7,6 +7,8 @@ interface ButtonProps {
|
|
|
7
7
|
onClick: (e?: any) => void;
|
|
8
8
|
tabIndex?: number;
|
|
9
9
|
loading?: boolean;
|
|
10
|
+
/** Optional ID for automation purposes */
|
|
11
|
+
dataItemid?: string;
|
|
10
12
|
}
|
|
11
13
|
export interface ActionDialogProps extends AccessibleProps {
|
|
12
14
|
/** It is used to give title. */
|
|
@@ -9,10 +9,9 @@ export interface ButtonProps extends AccessibleProps {
|
|
|
9
9
|
onClick: (e?: any) => void;
|
|
10
10
|
tabIndex?: number;
|
|
11
11
|
loading?: boolean;
|
|
12
|
-
/** Tooltip Props */
|
|
13
12
|
toolTip?: TooltipProps;
|
|
14
|
-
/** Set the title of the button on hover */
|
|
15
13
|
title?: string;
|
|
14
|
+
dataItemid?: string;
|
|
16
15
|
}
|
|
17
16
|
export interface DrawerProps extends AccessibleProps {
|
|
18
17
|
primaryButton?: ButtonProps;
|
|
@@ -9,6 +9,7 @@ interface ButtonProps {
|
|
|
9
9
|
onClick: (e?: any) => void;
|
|
10
10
|
tabIndex?: number;
|
|
11
11
|
loading?: boolean;
|
|
12
|
+
dataItemid?: string;
|
|
12
13
|
}
|
|
13
14
|
export interface ModalProps extends AccessibleProps {
|
|
14
15
|
/** Defines a button to be displayed on the far right of the bottom button bar */
|
package/dist/esm/index.js
CHANGED
|
@@ -3016,9 +3016,9 @@ const ActionDialog = (_a) => {
|
|
|
3016
3016
|
title ? (React.createElement(Heading, { "data-itemid": `${baseId}-title`, margin: '0px 0px 20px 0px', type: 'secondary' }, title)) : null,
|
|
3017
3017
|
description ? (React.createElement(Copy, { align: 'center', "data-itemid": `${baseId}-description` }, description)) : null,
|
|
3018
3018
|
primaryButton || secondaryButton || tertiaryButton ? (React.createElement(Buttons$1, { "data-itemid": `${baseId}-buttons` },
|
|
3019
|
-
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": `${baseId}
|
|
3020
|
-
secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": `${baseId}
|
|
3021
|
-
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": `${baseId}
|
|
3019
|
+
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": tertiaryButton.children || `${baseId}-${tertiaryButton.children}`, dataItemid: tertiaryButton.children || `${baseId}-${tertiaryButton.children}`, format: tertiaryButton.format || 'secondary' }))) : null,
|
|
3020
|
+
secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": secondaryButton.children || `${baseId}-${secondaryButton.children}`, dataItemid: secondaryButton.children || `${baseId}-${secondaryButton.children}`, format: secondaryButton.format || 'secondary' }))) : null,
|
|
3021
|
+
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": primaryButton.children || `${baseId}-${primaryButton.children}`, dataItemid: primaryButton.children || `${baseId}-${primaryButton.children}`, format: primaryButton.format || 'primary' }))) : null)) : null)));
|
|
3022
3022
|
};
|
|
3023
3023
|
|
|
3024
3024
|
const Wrapper$f = styled.div `
|
|
@@ -3303,7 +3303,7 @@ const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px', dataIte
|
|
|
3303
3303
|
})),
|
|
3304
3304
|
React.createElement(Footer, { "$isOpen": !collapsed, "data-itemid": `${baseId}-footer` },
|
|
3305
3305
|
React.createElement(FooterInfo, { "$isOpen": !collapsed, "data-itemid": `${baseId}-footer-info` },
|
|
3306
|
-
footerTag && (React.createElement(Tag, {
|
|
3306
|
+
footerTag && (React.createElement(Tag, { dataItemid: `${baseId}-footer-tag`, rotate: collapsed }, footerTag)),
|
|
3307
3307
|
!collapsed && (React.createElement(Copy, { "data-itemid": `${baseId}-footer-copy`, margin: '8px 0 0 0', type: 'small' },
|
|
3308
3308
|
"\u00A9 ",
|
|
3309
3309
|
new Date().getFullYear(),
|
|
@@ -3813,7 +3813,7 @@ const Select = (_a) => {
|
|
|
3813
3813
|
: optionGroups;
|
|
3814
3814
|
return (React.createElement(Wrapper$a, { "$invalid": invalid, "$isInvalidRedBackground": isInvalidRedBackground, "$isWarningError": isWarningError, "$readOnly": readOnly, "$style": style, "data-itemid": `${baseId}-wrapper` },
|
|
3815
3815
|
searchable && (React.createElement(SearchInput$1, Object.assign({ "data-itemid": `${baseId}-search-input`, onChange: handleSearch, placeholder: placeholder, tabIndex: readOnly ? -1 : tabIndex, type: 'text', value: searchTerm }, accessibleProps))),
|
|
3816
|
-
React.createElement(Trigger$1, Object.assign({ "data-itemid": `${baseId}-trigger`, disabled: readOnly, onChange: handleChange, placeholder: placeholder, tabIndex: readOnly ? -1 : tabIndex, value: value }, accessibleProps),
|
|
3816
|
+
React.createElement(Trigger$1, Object.assign({ "data-itemid": `${baseId}-trigger`, disabled: readOnly, id: `${baseId}-trigger`, name: baseId, onChange: handleChange, placeholder: placeholder, tabIndex: readOnly ? -1 : tabIndex, value: value }, accessibleProps),
|
|
3817
3817
|
placeholder && !value && (React.createElement("option", { "data-itemid": `${baseId}-placeholder`, disabled: true, value: '' }, placeholder)),
|
|
3818
3818
|
filteredOptionGroups &&
|
|
3819
3819
|
filteredOptionGroups.map((group, i) => (React.createElement("optgroup", { "data-itemid": `${baseId}-optgroup-${i}`, key: i, label: group.label || `Group ${i}` }, group.options.map((option, j) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}-${j}`, key: j, style: { color: option.color }, value: option.value }, option.label || option.value)))))),
|
|
@@ -3912,10 +3912,10 @@ onChange = () => { }, style, dataItemid, locale, }) => {
|
|
|
3912
3912
|
const baseId = dataItemid || 'date-picker';
|
|
3913
3913
|
return (React.createElement(React.Fragment, null,
|
|
3914
3914
|
React.createElement(DatePickerWrapper, { "$style": style, "data-itemid": `${baseId}-wrapper` },
|
|
3915
|
-
React.createElement(Select, {
|
|
3915
|
+
React.createElement(Select, { dataItemid: `${baseId}-month-select`, invalid: invalid, onChange: handleMonthChange, options: months, placeholder: (locale === null || locale === void 0 ? void 0 : locale.SelectMonth) ? locale === null || locale === void 0 ? void 0 : locale.SelectMonth : 'Select Month', readOnly: readOnly, style: { borderRadius: '4px 0px 0px 4px', flexGrow: 3 }, value: selectedMonth }),
|
|
3916
3916
|
React.createElement(Middle, { "data-itemid": `${baseId}-middle` },
|
|
3917
|
-
React.createElement(Select, {
|
|
3918
|
-
React.createElement(Select, {
|
|
3917
|
+
React.createElement(Select, { dataItemid: `${baseId}-day-select`, invalid: invalid, onChange: handleDayChange, options: dayOptions, placeholder: (locale === null || locale === void 0 ? void 0 : locale.SelectDay) ? locale === null || locale === void 0 ? void 0 : locale.SelectDay : 'Select Day', readOnly: readOnly, style: { borderRadius: '0px' }, value: selectedDay })),
|
|
3918
|
+
React.createElement(Select, { dataItemid: `${baseId}-year-select`, invalid: invalid, onChange: handleYearChange, options: years, placeholder: (locale === null || locale === void 0 ? void 0 : locale.SelectYear) ? locale === null || locale === void 0 ? void 0 : locale.SelectYear : 'Select Year', readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: selectedYear }))));
|
|
3919
3919
|
};
|
|
3920
3920
|
|
|
3921
3921
|
const Scrim$1 = styled.div `
|
|
@@ -4007,9 +4007,9 @@ const Drawer = (_a) => {
|
|
|
4007
4007
|
primaryButton || secondaryButton || tertiaryButton ? (React.createElement(ButtonBar$1, { "data-itemid": `${baseId}-button-bar` },
|
|
4008
4008
|
React.createElement(Copy, { "data-itemid": `${baseId}-button-bar-notes`, type: 'small' }, bottomNotes),
|
|
4009
4009
|
React.createElement(ButtonBarNote, null,
|
|
4010
|
-
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": `${baseId}
|
|
4011
|
-
secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": `${baseId}
|
|
4012
|
-
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": `${baseId}
|
|
4010
|
+
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": tertiaryButton.children || `${baseId}-${tertiaryButton.children}`, dataItemid: tertiaryButton.children || `${baseId}-${tertiaryButton.children}`, format: tertiaryButton.format || 'secondary' }))) : null,
|
|
4011
|
+
secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": secondaryButton.children || `${baseId}-${secondaryButton.children}`, dataItemid: secondaryButton.children || `${baseId}-${secondaryButton.children}`, format: secondaryButton.format || 'secondary' }))) : null,
|
|
4012
|
+
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": primaryButton.children || `${baseId}-${primaryButton.children}`, dataItemid: primaryButton.children || `${baseId}-${primaryButton.children}`, format: primaryButton.format || 'primary' }))) : null))) : null),
|
|
4013
4013
|
scrim ? (React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, "data-itemid": `${baseId}-scrim`, onClick: onClose })) : null));
|
|
4014
4014
|
};
|
|
4015
4015
|
|
|
@@ -5719,9 +5719,9 @@ const Modal = (_a) => {
|
|
|
5719
5719
|
display: 'flex',
|
|
5720
5720
|
alignItems: 'center',
|
|
5721
5721
|
} },
|
|
5722
|
-
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": `${baseId}
|
|
5722
|
+
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": tertiaryButton.children || `${baseId}-${tertiaryButton.children}`, dataItemid: tertiaryButton.children || `${baseId}-${tertiaryButton.children}`, format: tertiaryButton.format || 'secondary' }))) : null,
|
|
5723
5723
|
quarternaryButton ? (React.createElement(ButtonContainer, { "data-itemid": `${baseId}-quarternary-button-container` },
|
|
5724
|
-
React.createElement(Button, Object.assign({}, quarternaryButton, { "data-itemid": `${baseId}
|
|
5724
|
+
React.createElement(Button, Object.assign({}, quarternaryButton, { "data-itemid": quarternaryButton.children || `${baseId}-${quarternaryButton.children}`, dataItemid: quarternaryButton.children || `${baseId}-${quarternaryButton.children}`, format: quarternaryButton.format || 'secondary' })))) : null)) : null,
|
|
5725
5725
|
primaryButton || secondaryButton ? (React.createElement("div", { "data-itemid": `${baseId}-right-buttons`, style: {
|
|
5726
5726
|
marginLeft: 'auto',
|
|
5727
5727
|
paddingLeft: 40,
|
|
@@ -5729,8 +5729,8 @@ const Modal = (_a) => {
|
|
|
5729
5729
|
alignItems: 'center',
|
|
5730
5730
|
} },
|
|
5731
5731
|
secondaryButton ? (React.createElement(ButtonContainer, { "data-itemid": `${baseId}-secondary-button-container` },
|
|
5732
|
-
React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": `${baseId}
|
|
5733
|
-
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": `${baseId}
|
|
5732
|
+
React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": secondaryButton.children || `${baseId}-${secondaryButton.children}`, dataItemid: secondaryButton.children || `${baseId}-${secondaryButton.children}`, format: secondaryButton.format || 'secondary' })))) : null,
|
|
5733
|
+
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": primaryButton.children || `${baseId}-${primaryButton.children}`, dataItemid: primaryButton.children || `${baseId}-${primaryButton.children}`, format: primaryButton.format || 'primary' }))) : null)) : null)) : null)));
|
|
5734
5734
|
};
|
|
5735
5735
|
|
|
5736
5736
|
const Wrapper$5 = styled.div `
|