@shoplflow/templates 0.0.27 → 0.0.28
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/index.cjs +2 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -80,7 +80,7 @@ var Actions = ({ children }) => {
|
|
|
80
80
|
var HeaderBox = ({ children }) => {
|
|
81
81
|
return /* @__PURE__ */ jsxRuntime.jsx(base.StackContainer.Horizontal, { align: "center", width: "100%", minHeight: "40px", height: "auto", justify: "space-between", children });
|
|
82
82
|
};
|
|
83
|
-
var Header = ({ depth, title, isRequired, count, helpIconProps }) => {
|
|
83
|
+
var Header = ({ depth, title, isRequired, count, helpIconProps, rightIconButton }) => {
|
|
84
84
|
const { color, typography } = getTypographyAndColor(depth);
|
|
85
85
|
return /* @__PURE__ */ jsxRuntime.jsxs(base.Stack.Horizontal, { align: "center", children: [
|
|
86
86
|
/* @__PURE__ */ jsxRuntime.jsxs(base.Stack.Horizontal, { spacing: "spacing04", align: "center", justify: "center", children: [
|
|
@@ -88,6 +88,7 @@ var Header = ({ depth, title, isRequired, count, helpIconProps }) => {
|
|
|
88
88
|
isRequired && /* @__PURE__ */ jsxRuntime.jsx(StyledRequired, { children: "*" }),
|
|
89
89
|
Boolean(count) && /* @__PURE__ */ jsxRuntime.jsx(base.Text, { typography: "body1_700", color: "primary300", children: count })
|
|
90
90
|
] }),
|
|
91
|
+
rightIconButton,
|
|
91
92
|
helpIconProps && /* @__PURE__ */ jsxRuntime.jsx(TitleGroupHelpIcon, __spreadValues({}, helpIconProps))
|
|
92
93
|
] });
|
|
93
94
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { TextProps, TooltipProps } from '@shoplflow/base';
|
|
2
|
+
import { TextProps, TooltipProps, IconButtonProps, IconButton } from '@shoplflow/base';
|
|
3
3
|
import { ChildrenProps } from '@shoplflow/base/src/utils/type/ComponentProps';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
4
|
+
import { ReactNode, ReactElement } from 'react';
|
|
5
5
|
|
|
6
6
|
declare type ActionsProps = {
|
|
7
7
|
children: ReactNode;
|
|
@@ -53,6 +53,7 @@ declare type TitleGroupHeaderProps = {
|
|
|
53
53
|
*/
|
|
54
54
|
isRequired?: boolean;
|
|
55
55
|
helpIconProps?: TitleGroupHelpIconProps;
|
|
56
|
+
rightIconButton?: ReactElement<IconButtonProps, typeof IconButton>;
|
|
56
57
|
};
|
|
57
58
|
interface TitleGroupProps extends ChildrenProps {
|
|
58
59
|
}
|
|
@@ -60,7 +61,7 @@ interface TitleGroupProps extends ChildrenProps {
|
|
|
60
61
|
declare const TitleGroup: {
|
|
61
62
|
({ children }: TitleGroupProps): react_jsx_runtime.JSX.Element;
|
|
62
63
|
HeaderBox: ({ children }: ChildrenProps) => react_jsx_runtime.JSX.Element;
|
|
63
|
-
Header: ({ depth, title, isRequired, count, helpIconProps }: TitleGroupHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
64
|
+
Header: ({ depth, title, isRequired, count, helpIconProps, rightIconButton }: TitleGroupHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
64
65
|
Actions: ({ children }: ActionsProps) => react_jsx_runtime.JSX.Element;
|
|
65
66
|
Description: ({ description, ...rest }: DescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
66
67
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { TextProps, TooltipProps } from '@shoplflow/base';
|
|
2
|
+
import { TextProps, TooltipProps, IconButtonProps, IconButton } from '@shoplflow/base';
|
|
3
3
|
import { ChildrenProps } from '@shoplflow/base/src/utils/type/ComponentProps';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
4
|
+
import { ReactNode, ReactElement } from 'react';
|
|
5
5
|
|
|
6
6
|
declare type ActionsProps = {
|
|
7
7
|
children: ReactNode;
|
|
@@ -53,6 +53,7 @@ declare type TitleGroupHeaderProps = {
|
|
|
53
53
|
*/
|
|
54
54
|
isRequired?: boolean;
|
|
55
55
|
helpIconProps?: TitleGroupHelpIconProps;
|
|
56
|
+
rightIconButton?: ReactElement<IconButtonProps, typeof IconButton>;
|
|
56
57
|
};
|
|
57
58
|
interface TitleGroupProps extends ChildrenProps {
|
|
58
59
|
}
|
|
@@ -60,7 +61,7 @@ interface TitleGroupProps extends ChildrenProps {
|
|
|
60
61
|
declare const TitleGroup: {
|
|
61
62
|
({ children }: TitleGroupProps): react_jsx_runtime.JSX.Element;
|
|
62
63
|
HeaderBox: ({ children }: ChildrenProps) => react_jsx_runtime.JSX.Element;
|
|
63
|
-
Header: ({ depth, title, isRequired, count, helpIconProps }: TitleGroupHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
64
|
+
Header: ({ depth, title, isRequired, count, helpIconProps, rightIconButton }: TitleGroupHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
64
65
|
Actions: ({ children }: ActionsProps) => react_jsx_runtime.JSX.Element;
|
|
65
66
|
Description: ({ description, ...rest }: DescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
66
67
|
};
|
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ var Actions = ({ children }) => {
|
|
|
74
74
|
var HeaderBox = ({ children }) => {
|
|
75
75
|
return /* @__PURE__ */ jsx(StackContainer.Horizontal, { align: "center", width: "100%", minHeight: "40px", height: "auto", justify: "space-between", children });
|
|
76
76
|
};
|
|
77
|
-
var Header = ({ depth, title, isRequired, count, helpIconProps }) => {
|
|
77
|
+
var Header = ({ depth, title, isRequired, count, helpIconProps, rightIconButton }) => {
|
|
78
78
|
const { color, typography } = getTypographyAndColor(depth);
|
|
79
79
|
return /* @__PURE__ */ jsxs(Stack.Horizontal, { align: "center", children: [
|
|
80
80
|
/* @__PURE__ */ jsxs(Stack.Horizontal, { spacing: "spacing04", align: "center", justify: "center", children: [
|
|
@@ -82,6 +82,7 @@ var Header = ({ depth, title, isRequired, count, helpIconProps }) => {
|
|
|
82
82
|
isRequired && /* @__PURE__ */ jsx(StyledRequired, { children: "*" }),
|
|
83
83
|
Boolean(count) && /* @__PURE__ */ jsx(Text, { typography: "body1_700", color: "primary300", children: count })
|
|
84
84
|
] }),
|
|
85
|
+
rightIconButton,
|
|
85
86
|
helpIconProps && /* @__PURE__ */ jsx(TitleGroupHelpIcon, __spreadValues({}, helpIconProps))
|
|
86
87
|
] });
|
|
87
88
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/templates",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"react-datepicker": "^7.3.0",
|
|
88
88
|
"react-dom": "^18.2.0",
|
|
89
89
|
"simplebar-react": "^3.2.6",
|
|
90
|
-
"@shoplflow/base": "^0.32.
|
|
91
|
-
"@shoplflow/hada-assets": "^0.1.3",
|
|
90
|
+
"@shoplflow/base": "^0.32.45",
|
|
92
91
|
"@shoplflow/shopl-assets": "^0.11.5",
|
|
92
|
+
"@shoplflow/hada-assets": "^0.1.3",
|
|
93
93
|
"@shoplflow/utils": "^0.6.5"
|
|
94
94
|
},
|
|
95
95
|
"scripts": {
|