@hexure/ui 1.8.11 → 1.8.13
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 +56 -49
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ActionDialog/ActionDialog.d.ts +1 -0
- package/dist/cjs/types/components/Modal/Modal.d.ts +1 -0
- package/dist/cjs/types/components/PageHeader/PageHeader.d.ts +2 -0
- package/dist/esm/index.js +56 -49
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ActionDialog/ActionDialog.d.ts +1 -0
- package/dist/esm/types/components/Modal/Modal.d.ts +1 -0
- package/dist/esm/types/components/PageHeader/PageHeader.d.ts +2 -0
- package/dist/index.d.ts +15 -12
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2029,7 +2029,7 @@ const Header$3 = styled.div `
|
|
|
2029
2029
|
height: 50px;
|
|
2030
2030
|
cursor: pointer;
|
|
2031
2031
|
`;
|
|
2032
|
-
const Title$
|
|
2032
|
+
const Title$2 = styled.div `
|
|
2033
2033
|
font-size: ${FontSizes.DEFAULT};
|
|
2034
2034
|
font-weight: 400;
|
|
2035
2035
|
color: ${Colors.BLACK.Hex};
|
|
@@ -2041,7 +2041,7 @@ const Accordion = (_a) => {
|
|
|
2041
2041
|
var { title, children, open, onClick } = _a, accessibleProps = __rest(_a, ["title", "children", "open", "onClick"]);
|
|
2042
2042
|
return (React.createElement(React.Fragment, null,
|
|
2043
2043
|
React.createElement(Header$3, Object.assign({ onClick: onClick }, accessibleProps),
|
|
2044
|
-
React.createElement(Title$
|
|
2044
|
+
React.createElement(Title$2, null, title),
|
|
2045
2045
|
React.createElement(Icon, { color: Colors.BLACK.Hex, path: open ? js.mdiChevronUp : js.mdiChevronDown, size: '24px' })),
|
|
2046
2046
|
open ? children : null));
|
|
2047
2047
|
};
|
|
@@ -2433,7 +2433,7 @@ const MenuItem = styled.div `
|
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
2435
|
`;
|
|
2436
|
-
const Title = styled.span `
|
|
2436
|
+
const Title$1 = styled.span `
|
|
2437
2437
|
font-family: Roboto;
|
|
2438
2438
|
font-size: 14px;
|
|
2439
2439
|
font-weight: 400;
|
|
@@ -2447,7 +2447,7 @@ const MoreMenu = (_a) => {
|
|
|
2447
2447
|
return (React.createElement(Wrapper$e, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item, i) => {
|
|
2448
2448
|
return (React.createElement(MenuItem, { key: i, onClick: item.onClick },
|
|
2449
2449
|
item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
|
|
2450
|
-
React.createElement(Title, null, item.label)));
|
|
2450
|
+
React.createElement(Title$1, null, item.label)));
|
|
2451
2451
|
})));
|
|
2452
2452
|
};
|
|
2453
2453
|
|
|
@@ -3827,6 +3827,40 @@ const MultiSelect = (_a) => {
|
|
|
3827
3827
|
};
|
|
3828
3828
|
|
|
3829
3829
|
const Wrapper$5 = styled.div `
|
|
3830
|
+
display: inline-block;
|
|
3831
|
+
border-radius: 4px;
|
|
3832
|
+
padding: 4px 6px;
|
|
3833
|
+
background: ${props => Colors[props.$color].Hex};
|
|
3834
|
+
color: #ffffff;
|
|
3835
|
+
box-sizing: border-box;
|
|
3836
|
+
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
3837
|
+
`;
|
|
3838
|
+
const Content = styled.div `
|
|
3839
|
+
display: flex;
|
|
3840
|
+
align-items: center;
|
|
3841
|
+
`;
|
|
3842
|
+
const Label$1 = styled.div `
|
|
3843
|
+
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
3844
|
+
font-size: ${FontSizes.SMALL};
|
|
3845
|
+
font-weight: 500;
|
|
3846
|
+
font-family: ${FontStyles.DEFAULT};
|
|
3847
|
+
line-height: 1.2em;
|
|
3848
|
+
`;
|
|
3849
|
+
const Remove = styled.div `
|
|
3850
|
+
margin-left: 10px;
|
|
3851
|
+
display: flex;
|
|
3852
|
+
align-items: center;
|
|
3853
|
+
`;
|
|
3854
|
+
const Tag = (_a) => {
|
|
3855
|
+
var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
|
|
3856
|
+
return (React.createElement(Wrapper$5, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
|
|
3857
|
+
React.createElement(Content, null,
|
|
3858
|
+
React.createElement(Label$1, { "$color": color }, children),
|
|
3859
|
+
removable ? (React.createElement(Remove, null,
|
|
3860
|
+
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: js.mdiClose, size: '15px' }))) : null)));
|
|
3861
|
+
};
|
|
3862
|
+
|
|
3863
|
+
const Wrapper$4 = styled.div `
|
|
3830
3864
|
display: flex;
|
|
3831
3865
|
padding: 16px 30px;
|
|
3832
3866
|
align-items: center;
|
|
@@ -3834,6 +3868,11 @@ const Wrapper$5 = styled.div `
|
|
|
3834
3868
|
align-self: stretch;
|
|
3835
3869
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
3836
3870
|
`;
|
|
3871
|
+
const Title = styled.div `
|
|
3872
|
+
display: flex;
|
|
3873
|
+
align-items: center;
|
|
3874
|
+
gap: 20px;
|
|
3875
|
+
`;
|
|
3837
3876
|
const Info = styled.div `
|
|
3838
3877
|
display: flex;
|
|
3839
3878
|
flex-direction: column;
|
|
@@ -3851,11 +3890,13 @@ const Actions = styled.div `
|
|
|
3851
3890
|
align-items: center;
|
|
3852
3891
|
gap: 8px;
|
|
3853
3892
|
`;
|
|
3854
|
-
const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu }) => {
|
|
3893
|
+
const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
|
|
3855
3894
|
const { format = 'primary', menuItems = [], label = '', } = buttonMenu || {};
|
|
3856
|
-
return (React.createElement(Wrapper$
|
|
3895
|
+
return (React.createElement(Wrapper$4, null,
|
|
3857
3896
|
React.createElement(Info, null,
|
|
3858
|
-
React.createElement(
|
|
3897
|
+
React.createElement(Title, null,
|
|
3898
|
+
React.createElement(Heading, { type: 'secondary' }, title),
|
|
3899
|
+
tag ? React.createElement(Tag, Object.assign({}, tag)) : null),
|
|
3859
3900
|
breadcrumbs ? (React.createElement(Breadcrumbs, null, breadcrumbs.map((crumb, i) => {
|
|
3860
3901
|
return (React.createElement(React.Fragment, { key: i },
|
|
3861
3902
|
crumb.onClick ? (React.createElement(Link, { onClick: crumb.onClick, small: true }, crumb.label)) : (React.createElement(Copy, { type: 'small' }, crumb.label)),
|
|
@@ -3869,7 +3910,7 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu }) => {
|
|
|
3869
3910
|
menuItems.length ? (React.createElement(ButtonMenu, { format: format, label: label, menuItems: menuItems, small: true })) : null)) : null));
|
|
3870
3911
|
};
|
|
3871
3912
|
|
|
3872
|
-
const Wrapper$
|
|
3913
|
+
const Wrapper$3 = styled.nav `
|
|
3873
3914
|
box-sizing: border-box;
|
|
3874
3915
|
display: flex;
|
|
3875
3916
|
align-items: center;
|
|
@@ -3895,7 +3936,7 @@ const Pagination = (_a) => {
|
|
|
3895
3936
|
onClick(new_page);
|
|
3896
3937
|
}
|
|
3897
3938
|
};
|
|
3898
|
-
return (React.createElement(Wrapper$
|
|
3939
|
+
return (React.createElement(Wrapper$3, Object.assign({}, accessibleProps),
|
|
3899
3940
|
React.createElement(Button, { disabled: is_first_page, icon: js.mdiChevronLeft, onClick: handlePrevClick, small: true }),
|
|
3900
3941
|
React.createElement(Select, { onChange: handlePageChange, options: Array.from(Array(pageCount).keys(), p => p + 1).map(p => ({
|
|
3901
3942
|
label: `Page ${p}`,
|
|
@@ -3904,7 +3945,7 @@ const Pagination = (_a) => {
|
|
|
3904
3945
|
React.createElement(Button, { disabled: is_last_page, icon: js.mdiChevronRight, onClick: handleNextClick, small: true })));
|
|
3905
3946
|
};
|
|
3906
3947
|
|
|
3907
|
-
const Wrapper$
|
|
3948
|
+
const Wrapper$2 = styled.label `
|
|
3908
3949
|
padding: 4px 0;
|
|
3909
3950
|
cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
|
|
3910
3951
|
display: flex;
|
|
@@ -3918,7 +3959,7 @@ const Input = styled.input `
|
|
|
3918
3959
|
margin: 0px 0px 2px 0px;
|
|
3919
3960
|
line-height: 1.1em;
|
|
3920
3961
|
`;
|
|
3921
|
-
const Label
|
|
3962
|
+
const Label = styled.span `
|
|
3922
3963
|
font-family: ${FontStyles.DEFAULT};
|
|
3923
3964
|
font-size: ${FontSizes.DEFAULT};
|
|
3924
3965
|
font-weight: 400;
|
|
@@ -3928,9 +3969,9 @@ const Label$1 = styled.span `
|
|
|
3928
3969
|
`;
|
|
3929
3970
|
const Radio = (_a) => {
|
|
3930
3971
|
var { children, disabled, checked, onChange, value } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange", "value"]);
|
|
3931
|
-
return (React.createElement(Wrapper$
|
|
3972
|
+
return (React.createElement(Wrapper$2, Object.assign({ "$disabled": disabled }, accessibleProps),
|
|
3932
3973
|
React.createElement(Input, { checked: checked, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, type: 'radio', value: value }),
|
|
3933
|
-
React.createElement(Label
|
|
3974
|
+
React.createElement(Label, null, children)));
|
|
3934
3975
|
};
|
|
3935
3976
|
|
|
3936
3977
|
const RadioList = (_a) => {
|
|
@@ -4012,7 +4053,7 @@ const Table = (_a) => {
|
|
|
4012
4053
|
}))) : null));
|
|
4013
4054
|
};
|
|
4014
4055
|
|
|
4015
|
-
const Wrapper$
|
|
4056
|
+
const Wrapper$1 = styled.div `
|
|
4016
4057
|
display: flex;
|
|
4017
4058
|
box-sizing: border-box;
|
|
4018
4059
|
align-items: flex-end;
|
|
@@ -4061,7 +4102,7 @@ const Badge = styled.div `
|
|
|
4061
4102
|
`;
|
|
4062
4103
|
const Tabs = (_a) => {
|
|
4063
4104
|
var { tabs } = _a, accessibleProps = __rest(_a, ["tabs"]);
|
|
4064
|
-
return (React.createElement(Wrapper$
|
|
4105
|
+
return (React.createElement(Wrapper$1, Object.assign({}, accessibleProps), tabs.map((_a, i) => {
|
|
4065
4106
|
var { isActive, label, badgeCount, errorBadge, onClick } = _a, accessibleProps = __rest(_a, ["isActive", "label", "badgeCount", "errorBadge", "onClick"]);
|
|
4066
4107
|
return (React.createElement(Tab, Object.assign({ "$isActive": isActive || false, key: i, onClick: isActive ? undefined : onClick }, accessibleProps),
|
|
4067
4108
|
badgeCount ? React.createElement(Badge, { "$isError": errorBadge || false }, badgeCount) : null,
|
|
@@ -4070,40 +4111,6 @@ const Tabs = (_a) => {
|
|
|
4070
4111
|
};
|
|
4071
4112
|
Tabs.defaultProps = {};
|
|
4072
4113
|
|
|
4073
|
-
const Wrapper$1 = styled.div `
|
|
4074
|
-
display: inline-block;
|
|
4075
|
-
border-radius: 4px;
|
|
4076
|
-
padding: 4px 6px;
|
|
4077
|
-
background: ${props => Colors[props.$color].Hex};
|
|
4078
|
-
color: #ffffff;
|
|
4079
|
-
box-sizing: border-box;
|
|
4080
|
-
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
4081
|
-
`;
|
|
4082
|
-
const Content = styled.div `
|
|
4083
|
-
display: flex;
|
|
4084
|
-
align-items: center;
|
|
4085
|
-
`;
|
|
4086
|
-
const Label = styled.div `
|
|
4087
|
-
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
4088
|
-
font-size: ${FontSizes.SMALL};
|
|
4089
|
-
font-weight: 500;
|
|
4090
|
-
font-family: ${FontStyles.DEFAULT};
|
|
4091
|
-
line-height: 1.2em;
|
|
4092
|
-
`;
|
|
4093
|
-
const Remove = styled.div `
|
|
4094
|
-
margin-left: 10px;
|
|
4095
|
-
display: flex;
|
|
4096
|
-
align-items: center;
|
|
4097
|
-
`;
|
|
4098
|
-
const Tag = (_a) => {
|
|
4099
|
-
var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
|
|
4100
|
-
return (React.createElement(Wrapper$1, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
|
|
4101
|
-
React.createElement(Content, null,
|
|
4102
|
-
React.createElement(Label, { "$color": color }, children),
|
|
4103
|
-
removable ? (React.createElement(Remove, null,
|
|
4104
|
-
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: js.mdiClose, size: '15px' }))) : null)));
|
|
4105
|
-
};
|
|
4106
|
-
|
|
4107
4114
|
const Track = styled.div `
|
|
4108
4115
|
height: 24px;
|
|
4109
4116
|
border-radius: 12px;
|