deepsea-components 5.5.0 → 5.5.1

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.
@@ -12,5 +12,4 @@ export type FormLabelProps = ComponentProps<"div"> & {
12
12
  /**
13
13
  * 为 Ant Design 的 FormItem 设计的 Label 组件
14
14
  */
15
- declare const FormLabel: FC<FormLabelProps>;
16
- export default FormLabel;
15
+ export declare const FormLabel: FC<FormLabelProps>;
@@ -19,7 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // src/components/FormLabel.tsx
20
20
  var FormLabel_exports = {};
21
21
  __export(FormLabel_exports, {
22
- default: () => FormLabel_default
22
+ FormLabel: () => FormLabel
23
23
  });
24
24
  module.exports = __toCommonJS(FormLabel_exports);
25
25
  var import_css = require("@emotion/css");
@@ -42,5 +42,8 @@ var FormLabel = (props) => {
42
42
  }
43
43
  ));
44
44
  };
45
- var FormLabel_default = FormLabel;
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ FormLabel
48
+ });
46
49
  //# sourceMappingURL=FormLabel.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/FormLabel.tsx"],
4
- "sourcesContent": ["import { css } from \"@emotion/css\"\r\nimport { clsx } from \"deepsea-tools\"\r\nimport { ComponentProps, FC, Fragment } from \"react\"\r\n\r\nexport type FormLabelProps = ComponentProps<\"div\"> & {\r\n /**\r\n * Label 的宽度.\r\n */\r\n width: number\r\n /**\r\n * 是否在 Label 前面添加一个空白区域,只有当前 Label 为非必选,而存在其他 Label 为必选的时候开启\r\n */\r\n before?: boolean\r\n}\r\n\r\n/**\r\n * 为 Ant Design 的 FormItem 设计的 Label 组件\r\n */\r\nconst FormLabel: FC<FormLabelProps> = props => {\r\n const { className, style, before, width, ...rest } = props\r\n\r\n return (\r\n <Fragment>\r\n {!!before && <div className=\"w-[11px]\">&ensp;</div>}\r\n <div\r\n className={clsx(\r\n css`\r\n text-align: justify;\r\n text-align-last: justify;\r\n `,\r\n className\r\n )}\r\n style={{ width, ...style }}\r\n {...rest}\r\n />\r\n </Fragment>\r\n )\r\n}\r\n\r\nexport default FormLabel\r\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAoB;AACpB,2BAAqB;AACrB,mBAA6C;AAgB7C,IAAM,YAAgC,WAAS;AAC3C,QAAM,EAAE,WAAW,OAAO,QAAQ,OAAO,GAAG,KAAK,IAAI;AAErD,SACI,oCAAC,6BACI,CAAC,CAAC,UAAU,oCAAC,SAAI,WAAU,cAAW,GAAM,GAC7C;AAAA,IAAC;AAAA;AAAA,MACG,eAAW;AAAA,QACP;AAAA;AAAA;AAAA;AAAA,QAIA;AAAA,MACJ;AAAA,MACA,OAAO,EAAE,OAAO,GAAG,MAAM;AAAA,MACxB,GAAG;AAAA;AAAA,EACR,CACJ;AAER;AAEA,IAAO,oBAAQ;",
4
+ "sourcesContent": ["import { css } from \"@emotion/css\"\r\nimport { clsx } from \"deepsea-tools\"\r\nimport { ComponentProps, FC, Fragment } from \"react\"\r\n\r\nexport type FormLabelProps = ComponentProps<\"div\"> & {\r\n /**\r\n * Label 的宽度.\r\n */\r\n width: number\r\n /**\r\n * 是否在 Label 前面添加一个空白区域,只有当前 Label 为非必选,而存在其他 Label 为必选的时候开启\r\n */\r\n before?: boolean\r\n}\r\n\r\n/**\r\n * 为 Ant Design 的 FormItem 设计的 Label 组件\r\n */\r\nexport const FormLabel: FC<FormLabelProps> = props => {\r\n const { className, style, before, width, ...rest } = props\r\n\r\n return (\r\n <Fragment>\r\n {!!before && <div className=\"w-[11px]\">&ensp;</div>}\r\n <div\r\n className={clsx(\r\n css`\r\n text-align: justify;\r\n text-align-last: justify;\r\n `,\r\n className\r\n )}\r\n style={{ width, ...style }}\r\n {...rest}\r\n />\r\n </Fragment>\r\n )\r\n}\r\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAoB;AACpB,2BAAqB;AACrB,mBAA6C;AAgBtC,IAAM,YAAgC,WAAS;AAClD,QAAM,EAAE,WAAW,OAAO,QAAQ,OAAO,GAAG,KAAK,IAAI;AAErD,SACI,oCAAC,6BACI,CAAC,CAAC,UAAU,oCAAC,SAAI,WAAU,cAAW,GAAM,GAC7C;AAAA,IAAC;AAAA;AAAA,MACG,eAAW;AAAA,QACP;AAAA;AAAA;AAAA;AAAA,QAIA;AAAA,MACJ;AAAA,MACA,OAAO,EAAE,OAAO,GAAG,MAAM;AAAA,MACxB,GAAG;AAAA;AAAA,EACR,CACJ;AAER;",
6
6
  "names": []
7
7
  }
@@ -12,5 +12,4 @@ export type FormLabelProps = ComponentProps<"div"> & {
12
12
  /**
13
13
  * 为 Ant Design 的 FormItem 设计的 Label 组件
14
14
  */
15
- declare const FormLabel: FC<FormLabelProps>;
16
- export default FormLabel;
15
+ export declare const FormLabel: FC<FormLabelProps>;
@@ -6,7 +6,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
6
6
  /**
7
7
  * 为 Ant Design 的 FormItem 设计的 Label 组件
8
8
  */
9
- const FormLabel = props => {
9
+ export const FormLabel = props => {
10
10
  const {
11
11
  className,
12
12
  style,
@@ -31,5 +31,4 @@ const FormLabel = props => {
31
31
  })]
32
32
  });
33
33
  };
34
- export default FormLabel;
35
34
  //# sourceMappingURL=FormLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["css","clsx","Fragment","jsx","_jsx","jsxs","_jsxs","FormLabel","props","className","style","before","width","rest","children"],"sources":["../../../src/components/FormLabel.tsx"],"sourcesContent":["import { css } from \"@emotion/css\"\r\nimport { clsx } from \"deepsea-tools\"\r\nimport { ComponentProps, FC, Fragment } from \"react\"\r\n\r\nexport type FormLabelProps = ComponentProps<\"div\"> & {\r\n /**\r\n * Label 的宽度.\r\n */\r\n width: number\r\n /**\r\n * 是否在 Label 前面添加一个空白区域,只有当前 Label 为非必选,而存在其他 Label 为必选的时候开启\r\n */\r\n before?: boolean\r\n}\r\n\r\n/**\r\n * 为 Ant Design 的 FormItem 设计的 Label 组件\r\n */\r\nconst FormLabel: FC<FormLabelProps> = props => {\r\n const { className, style, before, width, ...rest } = props\r\n\r\n return (\r\n <Fragment>\r\n {!!before && <div className=\"w-[11px]\">&ensp;</div>}\r\n <div\r\n className={clsx(\r\n css`\r\n text-align: justify;\r\n text-align-last: justify;\r\n `,\r\n className\r\n )}\r\n style={{ width, ...style }}\r\n {...rest}\r\n />\r\n </Fragment>\r\n )\r\n}\r\n\r\nexport default FormLabel\r\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,cAAc;AAClC,SAASC,IAAI,QAAQ,eAAe;AACpC,SAA6BC,QAAQ,QAAQ,OAAO;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAapD;AACA;AACA;AACA,MAAMC,SAA6B,GAAGC,KAAK,IAAI;EAC3C,MAAM;IAAEC,SAAS;IAAEC,KAAK;IAAEC,MAAM;IAAEC,KAAK;IAAE,GAAGC;EAAK,CAAC,GAAGL,KAAK;EAE1D,oBACIF,KAAA,CAACJ,QAAQ;IAAAY,QAAA,GACJ,CAAC,CAACH,MAAM,iBAAIP,IAAA;MAAKK,SAAS,EAAC,UAAU;MAAAK,QAAA,EAAC;IAAM,CAAK,CAAC,eACnDV,IAAA;MACIK,SAAS,EAAER,IAAI,CACXD,GAAI;AACxB;AACA;AACA,qBAAqB,EACDS,SACJ,CAAE;MACFC,KAAK,EAAE;QAAEE,KAAK;QAAE,GAAGF;MAAM,CAAE;MAAA,GACvBG;IAAI,CACX,CAAC;EAAA,CACI,CAAC;AAEnB,CAAC;AAED,eAAeN,SAAS"}
1
+ {"version":3,"names":["css","clsx","Fragment","jsx","_jsx","jsxs","_jsxs","FormLabel","props","className","style","before","width","rest","children"],"sources":["../../../src/components/FormLabel.tsx"],"sourcesContent":["import { css } from \"@emotion/css\"\r\nimport { clsx } from \"deepsea-tools\"\r\nimport { ComponentProps, FC, Fragment } from \"react\"\r\n\r\nexport type FormLabelProps = ComponentProps<\"div\"> & {\r\n /**\r\n * Label 的宽度.\r\n */\r\n width: number\r\n /**\r\n * 是否在 Label 前面添加一个空白区域,只有当前 Label 为非必选,而存在其他 Label 为必选的时候开启\r\n */\r\n before?: boolean\r\n}\r\n\r\n/**\r\n * 为 Ant Design 的 FormItem 设计的 Label 组件\r\n */\r\nexport const FormLabel: FC<FormLabelProps> = props => {\r\n const { className, style, before, width, ...rest } = props\r\n\r\n return (\r\n <Fragment>\r\n {!!before && <div className=\"w-[11px]\">&ensp;</div>}\r\n <div\r\n className={clsx(\r\n css`\r\n text-align: justify;\r\n text-align-last: justify;\r\n `,\r\n className\r\n )}\r\n style={{ width, ...style }}\r\n {...rest}\r\n />\r\n </Fragment>\r\n )\r\n}\r\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,cAAc;AAClC,SAASC,IAAI,QAAQ,eAAe;AACpC,SAA6BC,QAAQ,QAAQ,OAAO;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAapD;AACA;AACA;AACA,OAAO,MAAMC,SAA6B,GAAGC,KAAK,IAAI;EAClD,MAAM;IAAEC,SAAS;IAAEC,KAAK;IAAEC,MAAM;IAAEC,KAAK;IAAE,GAAGC;EAAK,CAAC,GAAGL,KAAK;EAE1D,oBACIF,KAAA,CAACJ,QAAQ;IAAAY,QAAA,GACJ,CAAC,CAACH,MAAM,iBAAIP,IAAA;MAAKK,SAAS,EAAC,UAAU;MAAAK,QAAA,EAAC;IAAM,CAAK,CAAC,eACnDV,IAAA;MACIK,SAAS,EAAER,IAAI,CACXD,GAAI;AACxB;AACA;AACA,qBAAqB,EACDS,SACJ,CAAE;MACFC,KAAK,EAAE;QAAEE,KAAK;QAAE,GAAGF;MAAM,CAAE;MAAA,GACvBG;IAAI,CACX,CAAC;EAAA,CACI,CAAC;AAEnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepsea-components",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "格数科技自用组件库",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -16,7 +16,7 @@ export type FormLabelProps = ComponentProps<"div"> & {
16
16
  /**
17
17
  * 为 Ant Design 的 FormItem 设计的 Label 组件
18
18
  */
19
- const FormLabel: FC<FormLabelProps> = props => {
19
+ export const FormLabel: FC<FormLabelProps> = props => {
20
20
  const { className, style, before, width, ...rest } = props
21
21
 
22
22
  return (
@@ -36,5 +36,3 @@ const FormLabel: FC<FormLabelProps> = props => {
36
36
  </Fragment>
37
37
  )
38
38
  }
39
-
40
- export default FormLabel