@shoplflow/templates 0.0.19 → 0.0.22

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 CHANGED
@@ -1,15 +1,17 @@
1
1
  'use strict';
2
2
 
3
3
  var base = require('@shoplflow/base');
4
- var jsxRuntime = require('react/jsx-runtime');
5
4
  var styled = require('@emotion/styled');
6
5
  var shoplAssets = require('@shoplflow/shopl-assets');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
7
 
8
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
 
10
10
  var styled__default = /*#__PURE__*/_interopDefault(styled);
11
11
 
12
12
  var __defProp = Object.defineProperty;
13
+ var __defProps = Object.defineProperties;
14
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
13
15
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
14
16
  var __hasOwnProp = Object.prototype.hasOwnProperty;
15
17
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -25,10 +27,19 @@ var __spreadValues = (a, b) => {
25
27
  }
26
28
  return a;
27
29
  };
28
- var Example = ({ text }) => {
29
- return /* @__PURE__ */ jsxRuntime.jsx(base.Stack.Horizontal, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: text }) });
30
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
31
+ var __objRest = (source, exclude) => {
32
+ var target = {};
33
+ for (var prop in source)
34
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
35
+ target[prop] = source[prop];
36
+ if (source != null && __getOwnPropSymbols)
37
+ for (var prop of __getOwnPropSymbols(source)) {
38
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
39
+ target[prop] = source[prop];
40
+ }
41
+ return target;
30
42
  };
31
- exports.Example = Example;
32
43
  var getTypographyAndColor = (depth) => {
33
44
  switch (depth) {
34
45
  case 1:
@@ -80,8 +91,9 @@ var Header = ({ depth, title, isRequired, count, helpIconProps }) => {
80
91
  helpIconProps && /* @__PURE__ */ jsxRuntime.jsx(TitleGroupHelpIcon, __spreadValues({}, helpIconProps))
81
92
  ] });
82
93
  };
83
- var Description = ({ description }) => {
84
- return /* @__PURE__ */ jsxRuntime.jsx(base.StackContainer, { minHeight: "30px", height: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(base.Text, { typography: "paragraph1", color: "neutral500", wordBreak: "break-all", children: description }) });
94
+ var Description = (_a) => {
95
+ var _b = _a, { description } = _b, rest = __objRest(_b, ["description"]);
96
+ return /* @__PURE__ */ jsxRuntime.jsx(base.StackContainer.Vertical, { padding: "0px 0px 12px", height: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(base.Text, __spreadProps(__spreadValues({ typography: "paragraph1", color: "neutral500", wordBreak: "break-all", whiteSpace: "pre-line" }, rest), { children: description })) });
85
97
  };
86
98
  var TitleGroup = ({ children }) => {
87
99
  return /* @__PURE__ */ jsxRuntime.jsx(base.Stack.Vertical, { width: "100%", "data-shoplflow": "Title", children });
package/dist/index.d.cts CHANGED
@@ -1,20 +1,14 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { TooltipProps } from '@shoplflow/base';
2
+ import { TextProps, TooltipProps } from '@shoplflow/base';
3
3
  import { ChildrenProps } from '@shoplflow/base/src/utils/type/ComponentProps';
4
4
  import { ReactNode } from 'react';
5
5
 
6
- declare type ExampleProps = {
7
- text: string;
8
- };
9
-
10
- declare const Example: ({ text }: ExampleProps) => react_jsx_runtime.JSX.Element;
11
-
12
6
  declare type ActionsProps = {
13
7
  children: ReactNode;
14
8
  };
15
9
  declare type DescriptionProps = {
16
- description: string;
17
- };
10
+ description?: string;
11
+ } & TextProps;
18
12
  declare type TitleGroupHelpIconProps = {
19
13
  /**
20
14
  * 툴팁 내용, 없을 경우 Tooltip 미노출
@@ -68,7 +62,7 @@ declare const TitleGroup: {
68
62
  HeaderBox: ({ children }: ChildrenProps) => react_jsx_runtime.JSX.Element;
69
63
  Header: ({ depth, title, isRequired, count, helpIconProps }: TitleGroupHeaderProps) => react_jsx_runtime.JSX.Element;
70
64
  Actions: ({ children }: ActionsProps) => react_jsx_runtime.JSX.Element;
71
- Description: ({ description }: DescriptionProps) => react_jsx_runtime.JSX.Element;
65
+ Description: ({ description, ...rest }: DescriptionProps) => react_jsx_runtime.JSX.Element;
72
66
  };
73
67
 
74
- export { ActionsProps, DescriptionProps, Example, ExampleProps, TitleGroup, TitleGroupHeaderProps, TitleGroupHelpIconProps, TitleGroupProps };
68
+ export { ActionsProps, DescriptionProps, TitleGroup, TitleGroupHeaderProps, TitleGroupHelpIconProps, TitleGroupProps };
package/dist/index.d.ts CHANGED
@@ -1,20 +1,14 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { TooltipProps } from '@shoplflow/base';
2
+ import { TextProps, TooltipProps } from '@shoplflow/base';
3
3
  import { ChildrenProps } from '@shoplflow/base/src/utils/type/ComponentProps';
4
4
  import { ReactNode } from 'react';
5
5
 
6
- declare type ExampleProps = {
7
- text: string;
8
- };
9
-
10
- declare const Example: ({ text }: ExampleProps) => react_jsx_runtime.JSX.Element;
11
-
12
6
  declare type ActionsProps = {
13
7
  children: ReactNode;
14
8
  };
15
9
  declare type DescriptionProps = {
16
- description: string;
17
- };
10
+ description?: string;
11
+ } & TextProps;
18
12
  declare type TitleGroupHelpIconProps = {
19
13
  /**
20
14
  * 툴팁 내용, 없을 경우 Tooltip 미노출
@@ -68,7 +62,7 @@ declare const TitleGroup: {
68
62
  HeaderBox: ({ children }: ChildrenProps) => react_jsx_runtime.JSX.Element;
69
63
  Header: ({ depth, title, isRequired, count, helpIconProps }: TitleGroupHeaderProps) => react_jsx_runtime.JSX.Element;
70
64
  Actions: ({ children }: ActionsProps) => react_jsx_runtime.JSX.Element;
71
- Description: ({ description }: DescriptionProps) => react_jsx_runtime.JSX.Element;
65
+ Description: ({ description, ...rest }: DescriptionProps) => react_jsx_runtime.JSX.Element;
72
66
  };
73
67
 
74
- export { ActionsProps, DescriptionProps, Example, ExampleProps, TitleGroup, TitleGroupHeaderProps, TitleGroupHelpIconProps, TitleGroupProps };
68
+ export { ActionsProps, DescriptionProps, TitleGroup, TitleGroupHeaderProps, TitleGroupHelpIconProps, TitleGroupProps };
package/dist/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  import { colorTokens, Stack, StackContainer, Text, Tooltip, IconButton, Icon } from '@shoplflow/base';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
2
  import styled from '@emotion/styled';
4
3
  import { HelpLineIcon } from '@shoplflow/shopl-assets';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
5
 
6
6
  var __defProp = Object.defineProperty;
7
+ var __defProps = Object.defineProperties;
8
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
9
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
11
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -19,10 +21,19 @@ var __spreadValues = (a, b) => {
19
21
  }
20
22
  return a;
21
23
  };
22
- var Example = ({ text }) => {
23
- return /* @__PURE__ */ jsx(Stack.Horizontal, { children: /* @__PURE__ */ jsx("div", { children: text }) });
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
24
36
  };
25
- var Example_default = Example;
26
37
  var getTypographyAndColor = (depth) => {
27
38
  switch (depth) {
28
39
  case 1:
@@ -74,8 +85,9 @@ var Header = ({ depth, title, isRequired, count, helpIconProps }) => {
74
85
  helpIconProps && /* @__PURE__ */ jsx(TitleGroupHelpIcon, __spreadValues({}, helpIconProps))
75
86
  ] });
76
87
  };
77
- var Description = ({ description }) => {
78
- return /* @__PURE__ */ jsx(StackContainer, { minHeight: "30px", height: "auto", children: /* @__PURE__ */ jsx(Text, { typography: "paragraph1", color: "neutral500", wordBreak: "break-all", children: description }) });
88
+ var Description = (_a) => {
89
+ var _b = _a, { description } = _b, rest = __objRest(_b, ["description"]);
90
+ return /* @__PURE__ */ jsx(StackContainer.Vertical, { padding: "0px 0px 12px", height: "auto", children: /* @__PURE__ */ jsx(Text, __spreadProps(__spreadValues({ typography: "paragraph1", color: "neutral500", wordBreak: "break-all", whiteSpace: "pre-line" }, rest), { children: description })) });
79
91
  };
80
92
  var TitleGroup = ({ children }) => {
81
93
  return /* @__PURE__ */ jsx(Stack.Vertical, { width: "100%", "data-shoplflow": "Title", children });
@@ -86,4 +98,4 @@ TitleGroup.Actions = Actions;
86
98
  TitleGroup.Description = Description;
87
99
  var TitleGroup_default = TitleGroup;
88
100
 
89
- export { Example_default as Example, TitleGroup_default as TitleGroup };
101
+ export { TitleGroup_default as TitleGroup };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplflow/templates",
3
- "version": "0.0.19",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -87,10 +87,10 @@
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.38",
91
- "@shoplflow/shopl-assets": "^0.11.3",
90
+ "@shoplflow/base": "^0.32.39",
91
+ "@shoplflow/utils": "^0.6.5",
92
92
  "@shoplflow/hada-assets": "^0.1.3",
93
- "@shoplflow/utils": "^0.6.5"
93
+ "@shoplflow/shopl-assets": "^0.11.4"
94
94
  },
95
95
  "scripts": {
96
96
  "type-check": "tsc --noEmit",