@hexure/ui 1.13.92 → 1.13.94
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 +7 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Select/Select.d.ts +1 -0
- package/dist/esm/index.js +7 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Select/Select.d.ts +1 -0
- package/dist/index.d.ts +83 -82
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2923,7 +2923,7 @@ const Button = (_a) => {
|
|
|
2923
2923
|
};
|
|
2924
2924
|
const format_styles = button_type_mapping[format];
|
|
2925
2925
|
const baseId = dataItemid || 'button';
|
|
2926
|
-
const button_view = (React.createElement(StyledButton, Object.assign({ "$bg_color": format_styles.background_color, "$border_color": format_styles.border_color, "$disabled": disabled || loading, "$format": format, "$hasChildren": !!has_children, "$iconPosition": iconPosition, "$margin": margin, "$small": small, disabled: disabled || loading, onClick: disabled || loading ? undefined : onClick, title: title, type: type || (isForm ? 'submit' : undefined) }, accessibleProps, { "data-itemid": `${baseId}-styled-button
|
|
2926
|
+
const button_view = (React.createElement(StyledButton, Object.assign({ "$bg_color": format_styles.background_color, "$border_color": format_styles.border_color, "$disabled": disabled || loading, "$format": format, "$hasChildren": !!has_children, "$iconPosition": iconPosition, "$margin": margin, "$small": small, disabled: disabled || loading, onClick: disabled || loading ? undefined : onClick, title: title, type: type || (isForm ? 'submit' : undefined) }, accessibleProps, { "data-itemid": `${baseId}-styled-button`, "data-section-name": 'drawer-close-icon-button' }),
|
|
2927
2927
|
children ? (React.createElement(Label$5, { "$content_color": disabled || loading ? '#666666' : format_styles.content_color, "$small": small, "data-itemid": `${baseId}-label` }, children)) : null,
|
|
2928
2928
|
icon && !badge ? (React.createElement(StyledIcon$5, { "$hasChildren": !!has_children, "data-itemid": `${baseId}-icon` },
|
|
2929
2929
|
React.createElement(Icon, { color: (() => {
|
|
@@ -3802,7 +3802,7 @@ const SearchInput$1 = styled.input `
|
|
|
3802
3802
|
white-space: nowrap;
|
|
3803
3803
|
`;
|
|
3804
3804
|
const Select = (_a) => {
|
|
3805
|
-
var { options, optionGroups, placeholder = '--Select-One--', readOnly, invalid, searchable = false, value: propValue, onChange, style, tabIndex, dataItemid, isInvalidRedBackground = false, isWarningError = false } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "searchable", "value", "onChange", "style", "tabIndex", "dataItemid", "isInvalidRedBackground", "isWarningError"]);
|
|
3805
|
+
var { options, optionGroups, placeholder = '--Select-One--', readOnly, invalid, searchable = false, value: propValue, onChange, style, tabIndex, dataItemid, isInvalidRedBackground = false, isWarningError = false, innerRef = null } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "searchable", "value", "onChange", "style", "tabIndex", "dataItemid", "isInvalidRedBackground", "isWarningError", "innerRef"]);
|
|
3806
3806
|
const [searchTerm, setSearchTerm] = React.useState('');
|
|
3807
3807
|
const [value, setValue] = React.useState(propValue || '');
|
|
3808
3808
|
const baseId = dataItemid || 'select';
|
|
@@ -3827,7 +3827,7 @@ const Select = (_a) => {
|
|
|
3827
3827
|
: optionGroups;
|
|
3828
3828
|
return (React.createElement(Wrapper$a, { "$invalid": invalid, "$isInvalidRedBackground": isInvalidRedBackground, "$isWarningError": isWarningError, "$readOnly": readOnly, "$style": style, "data-itemid": `${baseId}-wrapper`, style: style },
|
|
3829
3829
|
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))),
|
|
3830
|
-
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),
|
|
3830
|
+
React.createElement(Trigger$1, Object.assign({ "data-itemid": `${baseId}-trigger`, disabled: readOnly, id: `${baseId}-trigger`, name: baseId, onChange: handleChange, placeholder: placeholder, ref: innerRef, tabIndex: readOnly ? -1 : tabIndex, value: value }, accessibleProps),
|
|
3831
3831
|
placeholder && !value && (React.createElement("option", { "data-itemid": `${baseId}-placeholder`, disabled: true, value: '' }, placeholder)),
|
|
3832
3832
|
filteredOptionGroups &&
|
|
3833
3833
|
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)))))),
|
|
@@ -5682,6 +5682,7 @@ const CloseMsg = styled.span `
|
|
|
5682
5682
|
line-height: 1em;
|
|
5683
5683
|
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
5684
5684
|
`;
|
|
5685
|
+
const CloseIcon = styled.span ``;
|
|
5685
5686
|
const ContentWrapper = styled.div `
|
|
5686
5687
|
overflow-x: hidden;
|
|
5687
5688
|
overflow-y: auto;
|
|
@@ -5722,7 +5723,8 @@ const Modal = (_a) => {
|
|
|
5722
5723
|
title ? (React.createElement(Heading, { "data-itemid": `${baseId}-title`, style: headerTitleStyle, type: 'secondary' }, title)) : null,
|
|
5723
5724
|
React.createElement(Close, { "data-itemid": `${baseId}-close`, onClick: onClose },
|
|
5724
5725
|
React.createElement(CloseMsg, { "data-itemid": `${baseId}-close-msg` }, "(Esc)"),
|
|
5725
|
-
React.createElement(
|
|
5726
|
+
React.createElement(CloseIcon, { "data-itemid": `${baseId}-close-icon-wrapper` },
|
|
5727
|
+
React.createElement(Icon, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-close-icon`, path: js.mdiClose, size: '24px' })))),
|
|
5726
5728
|
steps ? React.createElement(ProgressBar, { steps: steps }) : null,
|
|
5727
5729
|
React.createElement(ContentWrapper, { "data-itemid": `${baseId}-content-wrapper` }, children),
|
|
5728
5730
|
primaryButton || secondaryButton || tertiaryButton || quarternaryButton ? (React.createElement(ButtonBar, { "data-itemid": `${baseId}-button-bar` },
|
|
@@ -5887,7 +5889,7 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag, dataIte
|
|
|
5887
5889
|
return (React.createElement(Wrapper$4, { "data-itemid": `${baseId}-wrapper` },
|
|
5888
5890
|
React.createElement(Info, { "data-itemid": `${baseId}-info` },
|
|
5889
5891
|
React.createElement(Title, { "data-itemid": `${baseId}-title` },
|
|
5890
|
-
React.createElement(Heading, {
|
|
5892
|
+
React.createElement(Heading, { dataItemid: `${baseId}-heading`, type: 'secondary' }, title),
|
|
5891
5893
|
tag ? React.createElement(Tag, Object.assign({}, tag, { "data-itemid": `${baseId}-tag` })) : null),
|
|
5892
5894
|
breadcrumbs ? (React.createElement(Breadcrumbs, { "data-itemid": `${baseId}-breadcrumbs` }, breadcrumbs.map((crumb, i) => {
|
|
5893
5895
|
const crumbId = `${baseId}-breadcrumb-${i}`;
|