@galaxy-ds/core 2.0.5 → 2.0.6
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/DateRangePicker/DateRangePicker.types.d.ts +2 -1
- package/dist/RibbonButtonGroup/RibbonButtonGroup.types.d.ts +3 -3
- package/dist/index.esm.js +5 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -9
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/src/DatePicker/DatePicker.stories.mdx +11 -10
- package/src/DatePicker/support/DatePickerExample.tsx +14 -0
- package/src/DateRangePicker/DateRangePicker.stories.mdx +28 -16
- package/src/DateRangePicker/DateRangePicker.test.tsx +6 -1
- package/src/DateRangePicker/DateRangePicker.types.ts +11 -1
- package/src/DateRangePicker/support/DateRangePickerExample.tsx +31 -0
- package/src/RibbonButton/RibbonButton.stories.mdx +27 -3
- package/src/RibbonButton/RibbonButton.styled.tsx +4 -5
- package/src/RibbonButton/RibbonButton.tsx +2 -1
- package/src/RibbonButtonGroup/RibbonButtonGroup.stories.mdx +27 -2
- package/src/RibbonButtonGroup/RibbonButtonGroup.tsx +2 -2
- package/src/RibbonButtonGroup/RibbonButtonGroup.types.ts +11 -12
- package/src/DatePicker/support/DatePickerExample.js +0 -15
- package/src/DateRangePicker/support/DateRangePickerExample.js +0 -22
package/dist/index.js
CHANGED
|
@@ -16609,18 +16609,14 @@ var RibbonContentStyled = styles$1.styled('div', {
|
|
|
16609
16609
|
shouldForwardProp: function (prop) { return prop !== 'isWrapped'; },
|
|
16610
16610
|
})(function (_a) {
|
|
16611
16611
|
var isWrapped = _a.isWrapped;
|
|
16612
|
-
return (__assign({}, (isWrapped && {
|
|
16613
|
-
height: '80px',
|
|
16612
|
+
return (__assign({ display: 'flex', flexDirection: 'column', alignItems: 'center', height: '100%' }, (isWrapped && {
|
|
16614
16613
|
width: '54px',
|
|
16615
|
-
p: {
|
|
16616
|
-
position: 'relative',
|
|
16617
|
-
bottom: '8px',
|
|
16618
|
-
},
|
|
16619
16614
|
})));
|
|
16620
16615
|
});
|
|
16621
16616
|
|
|
16622
16617
|
var RibbonButton = React.forwardRef(function RibbonMenuListButton(props, ref) {
|
|
16623
|
-
|
|
16618
|
+
props.isWrapped; props.icon; props.label; var rest = __rest(props, ["isWrapped", "icon", "label"]);
|
|
16619
|
+
return (jsxRuntime.jsx(RibbonButtonStyled$1, __assign({ ref: ref, variant: "outlined" }, rest, { children: jsxRuntime.jsxs(RibbonContentStyled, __assign({ isWrapped: props.isWrapped }, { children: [props.icon, jsxRuntime.jsx(RibbonLabelStyled, __assign({ variant: "body2" }, { children: props.label }))] })) })));
|
|
16624
16620
|
});
|
|
16625
16621
|
|
|
16626
16622
|
var RibbonButtonGroupStyled = styles$1.styled(ButtonGroup__default["default"])({
|
|
@@ -16999,8 +16995,8 @@ function NewEntryRibbonIcons() {
|
|
|
16999
16995
|
}
|
|
17000
16996
|
|
|
17001
16997
|
var RibbonButtonGroup = React.forwardRef(function RibbonButtonGroup(props, ref) {
|
|
17002
|
-
var icon = props.icon, label = props.label, isWrapped = props.isWrapped, onToggle = props.onToggle, onClick = props.onClick;
|
|
17003
|
-
return (jsxRuntime.jsxs(RibbonButtonGroupStyled, __assign({ variant: "outlined", disableRipple: true, ref: ref },
|
|
16998
|
+
var icon = props.icon, label = props.label, isWrapped = props.isWrapped, onToggle = props.onToggle, onClick = props.onClick, rest = __rest(props, ["icon", "label", "isWrapped", "onToggle", "onClick"]);
|
|
16999
|
+
return (jsxRuntime.jsxs(RibbonButtonGroupStyled, __assign({ variant: "outlined", disableRipple: true, ref: ref }, rest, { children: [jsxRuntime.jsx(RibbonButtonStyled, { variant: "outlined", icon: icon, label: label, isWrapped: isWrapped, onClick: function (event) {
|
|
17004
17000
|
event.stopPropagation();
|
|
17005
17001
|
onClick && onClick();
|
|
17006
17002
|
} }), jsxRuntime.jsx(RibbonCaratWrapperStyled, __assign({ className: "carat", onClick: function (event) {
|