@elliemae/ds-group-box 3.0.0-alpha.0 → 3.0.0-alpha.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.
@@ -1,9 +1,26 @@
1
1
  var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
8
  var __getProtoOf = Object.getPrototypeOf;
6
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7
24
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
25
  var __export = (target, all) => {
9
26
  for (var name in all)
@@ -55,10 +72,9 @@ const DSGroupBox = ({
55
72
  isMain = true
56
73
  }) => {
57
74
  const { labelText } = labelProps;
58
- return /* @__PURE__ */ import_react.default.createElement(import_blocks.GroupBoxWrapper, {
59
- ...containerProps,
75
+ return /* @__PURE__ */ import_react.default.createElement(import_blocks.GroupBoxWrapper, __spreadProps(__spreadValues({}, containerProps), {
60
76
  classProps: { onlyHeader, noBorder, type, isMain }
61
- }, labelText && /* @__PURE__ */ import_react.default.createElement(import_GroupHeader.DSGroupBoxHeader, {
77
+ }), labelText && /* @__PURE__ */ import_react.default.createElement(import_GroupHeader.DSGroupBoxHeader, {
62
78
  centerActions,
63
79
  isMain,
64
80
  labelProps,
@@ -74,10 +90,9 @@ const DSGroupBox = ({
74
90
  noBorder,
75
91
  noBorderTop: !!labelText
76
92
  }
77
- }, components && components.props ? import_react.default.Children.map(components, (component) => import_react.default.cloneElement(component, {
78
- ...component.props,
93
+ }, components && components.props ? import_react.default.Children.map(components, (component) => import_react.default.cloneElement(component, __spreadProps(__spreadValues({}, component.props), {
79
94
  isMain: false
80
- }), null) : components));
95
+ })), null) : components));
81
96
  };
82
97
  const props = {
83
98
  containerProps: import_react_desc.PropTypes.object.description("props to inject to wrapper"),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSGroupBox.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { GroupBoxWrapper, GroupBoxContent } from './components/blocks';\nimport { DSGroupBoxHeader } from './components/GroupHeader';\nimport { BOX_TYPES, BOX_TYPES_ARRAY } from './constants';\n\nconst DSGroupBox = ({\n containerProps = {},\n labelProps = {\n labelText: '',\n borderBottom: false,\n id: 'ds-group-box__header',\n },\n rightActions = [],\n centerActions = [],\n type = BOX_TYPES.CATEGORY,\n asRow = false,\n onlyHeader = false,\n noBorder = true,\n noPadding = false,\n children: components = [],\n // eslint-disable-next-line react/prop-types\n isMain = true,\n}) => {\n const { labelText } = labelProps;\n return (\n <GroupBoxWrapper\n {...containerProps}\n classProps={{ onlyHeader, noBorder, type, isMain }}\n >\n {labelText && (\n <DSGroupBoxHeader\n centerActions={centerActions}\n isMain={isMain}\n labelProps={labelProps}\n noBorder={noBorder}\n rightActions={rightActions}\n type={type}\n />\n )}\n\n <GroupBoxContent\n classProps={{\n type,\n asRow,\n onlyHeader,\n noPadding,\n noBorder,\n noBorderTop: !!labelText,\n }}\n >\n {components && components.props\n ? React.Children.map(\n components,\n (component) =>\n React.cloneElement(component, {\n ...component.props,\n isMain: false,\n }),\n null,\n )\n : components}\n </GroupBoxContent>\n </GroupBoxWrapper>\n );\n};\n\nconst props = {\n /** props to inject to wrapper */\n containerProps: PropTypes.object.description('props to inject to wrapper'),\n /**\n * Label attributes to be rendered\n */\n labelProps: PropTypes.shape({\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n borderBottom: PropTypes.bool,\n id: PropTypes.string,\n }).description('Label attributes to be rendered'),\n /**\n * ['category-box', 'group-box']\n */\n type: PropTypes.oneOf(BOX_TYPES_ARRAY).description(\n BOX_TYPES_ARRAY.toString(),\n ),\n /**\n * Components to be rendered inside the box\n */\n children: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.arrayOf(PropTypes.element),\n ]).isRequired.description('Components to be rendered inside the box'),\n /**\n * Actions on the right side of the label\n */\n rightActions: PropTypes.arrayOf(PropTypes.element).description(\n 'Actions on the right side of the label',\n ),\n /**\n * Actions on the next to the label\n */\n centerActions: PropTypes.arrayOf(PropTypes.element).description(\n 'Actions on the next to the label',\n ),\n /**\n * Display the content of the group box with flex direction row\n */\n asRow: PropTypes.bool.description(\n 'Display the content of the group box with flex direction row',\n ),\n /**\n * Show border only on the header\n */\n onlyHeader: PropTypes.bool.description('Show border only on the header'),\n /**\n * Remove the wrapper border\n */\n noBorder: PropTypes.bool.description('Remove the wrapper border'),\n /**\n * Remove the top and bottom padding from the content\n */\n noPadding: PropTypes.bool.description(\n 'Remove the top and bottom padding from the content',\n ),\n};\n\nDSGroupBox.propTypes = props;\nconst DSGroupBoxWithSchema = describe(DSGroupBox);\n\nDSGroupBoxWithSchema.propTypes = props;\n\nexport { DSGroupBox, DSGroupBoxWithSchema };\nexport default DSGroupBox;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAA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,qBAAM,SAAS,IACb,YACA,CAAC,cACC,qBAAM,aAAa,WAAW,iCACzB,UAAU,QADe;AAAA,IAE5B,QAAQ;AAAA,OAEZ,QAEF;AAAA;AAMZ,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,4BAAU,OAAO,YAAY;AAAA,EAI7C,YAAY,4BAAU,MAAM;AAAA,IAC1B,WAAW,4BAAU,UAAU,CAAC,4BAAU,QAAQ,4BAAU;AAAA,IAC5D,cAAc,4BAAU;AAAA,IACxB,IAAI,4BAAU;AAAA,KACb,YAAY;AAAA,EAIf,MAAM,4BAAU,MAAM,kCAAiB,YACrC,iCAAgB;AAAA,EAKlB,UAAU,4BAAU,UAAU;AAAA,IAC5B,4BAAU;AAAA,IACV,4BAAU,QAAQ,4BAAU;AAAA,KAC3B,WAAW,YAAY;AAAA,EAI1B,cAAc,4BAAU,QAAQ,4BAAU,SAAS,YACjD;AAAA,EAKF,eAAe,4BAAU,QAAQ,4BAAU,SAAS,YAClD;AAAA,EAKF,OAAO,4BAAU,KAAK,YACpB;AAAA,EAKF,YAAY,4BAAU,KAAK,YAAY;AAAA,EAIvC,UAAU,4BAAU,KAAK,YAAY;AAAA,EAIrC,WAAW,4BAAU,KAAK,YACxB;AAAA;AAIJ,WAAW,YAAY;AACvB,MAAM,uBAAuB,gCAAS;AAEtC,qBAAqB,YAAY;AAGjC,IAAO,qBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,22 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  import * as React from "react";
2
21
  import React2 from "react";
3
22
  import { PropTypes, describe } from "react-desc";
@@ -22,10 +41,9 @@ const DSGroupBox = ({
22
41
  isMain = true
23
42
  }) => {
24
43
  const { labelText } = labelProps;
25
- return /* @__PURE__ */ React2.createElement(GroupBoxWrapper, {
26
- ...containerProps,
44
+ return /* @__PURE__ */ React2.createElement(GroupBoxWrapper, __spreadProps(__spreadValues({}, containerProps), {
27
45
  classProps: { onlyHeader, noBorder, type, isMain }
28
- }, labelText && /* @__PURE__ */ React2.createElement(DSGroupBoxHeader, {
46
+ }), labelText && /* @__PURE__ */ React2.createElement(DSGroupBoxHeader, {
29
47
  centerActions,
30
48
  isMain,
31
49
  labelProps,
@@ -41,10 +59,9 @@ const DSGroupBox = ({
41
59
  noBorder,
42
60
  noBorderTop: !!labelText
43
61
  }
44
- }, components && components.props ? React2.Children.map(components, (component) => React2.cloneElement(component, {
45
- ...component.props,
62
+ }, components && components.props ? React2.Children.map(components, (component) => React2.cloneElement(component, __spreadProps(__spreadValues({}, component.props), {
46
63
  isMain: false
47
- }), null) : components));
64
+ })), null) : components));
48
65
  };
49
66
  const props = {
50
67
  containerProps: PropTypes.object.description("props to inject to wrapper"),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSGroupBox.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { GroupBoxWrapper, GroupBoxContent } from './components/blocks';\nimport { DSGroupBoxHeader } from './components/GroupHeader';\nimport { BOX_TYPES, BOX_TYPES_ARRAY } from './constants';\n\nconst DSGroupBox = ({\n containerProps = {},\n labelProps = {\n labelText: '',\n borderBottom: false,\n id: 'ds-group-box__header',\n },\n rightActions = [],\n centerActions = [],\n type = BOX_TYPES.CATEGORY,\n asRow = false,\n onlyHeader = false,\n noBorder = true,\n noPadding = false,\n children: components = [],\n // eslint-disable-next-line react/prop-types\n isMain = true,\n}) => {\n const { labelText } = labelProps;\n return (\n <GroupBoxWrapper\n {...containerProps}\n classProps={{ onlyHeader, noBorder, type, isMain }}\n >\n {labelText && (\n <DSGroupBoxHeader\n centerActions={centerActions}\n isMain={isMain}\n labelProps={labelProps}\n noBorder={noBorder}\n rightActions={rightActions}\n type={type}\n />\n )}\n\n <GroupBoxContent\n classProps={{\n type,\n asRow,\n onlyHeader,\n noPadding,\n noBorder,\n noBorderTop: !!labelText,\n }}\n >\n {components && components.props\n ? React.Children.map(\n components,\n (component) =>\n React.cloneElement(component, {\n ...component.props,\n isMain: false,\n }),\n null,\n )\n : components}\n </GroupBoxContent>\n </GroupBoxWrapper>\n );\n};\n\nconst props = {\n /** props to inject to wrapper */\n containerProps: PropTypes.object.description('props to inject to wrapper'),\n /**\n * Label attributes to be rendered\n */\n labelProps: PropTypes.shape({\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n borderBottom: PropTypes.bool,\n id: PropTypes.string,\n }).description('Label attributes to be rendered'),\n /**\n * ['category-box', 'group-box']\n */\n type: PropTypes.oneOf(BOX_TYPES_ARRAY).description(\n BOX_TYPES_ARRAY.toString(),\n ),\n /**\n * Components to be rendered inside the box\n */\n children: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.arrayOf(PropTypes.element),\n ]).isRequired.description('Components to be rendered inside the box'),\n /**\n * Actions on the right side of the label\n */\n rightActions: PropTypes.arrayOf(PropTypes.element).description(\n 'Actions on the right side of the label',\n ),\n /**\n * Actions on the next to the label\n */\n centerActions: PropTypes.arrayOf(PropTypes.element).description(\n 'Actions on the next to the label',\n ),\n /**\n * Display the content of the group box with flex direction row\n */\n asRow: PropTypes.bool.description(\n 'Display the content of the group box with flex direction row',\n ),\n /**\n * Show border only on the header\n */\n onlyHeader: PropTypes.bool.description('Show border only on the header'),\n /**\n * Remove the wrapper border\n */\n noBorder: PropTypes.bool.description('Remove the wrapper border'),\n /**\n * Remove the top and bottom padding from the content\n */\n noPadding: PropTypes.bool.description(\n 'Remove the top and bottom padding from the content',\n ),\n};\n\nDSGroupBox.propTypes = props;\nconst DSGroupBoxWithSchema = describe(DSGroupBox);\n\nDSGroupBoxWithSchema.propTypes = props;\n\nexport { DSGroupBox, DSGroupBoxWithSchema };\nexport default DSGroupBox;\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,aAAa,CAAC;AAAA,EAClB,iBAAiB;AAAA,EACjB,aAAa;AAAA,IACX,WAAW;AAAA,IACX,cAAc;AAAA,IACd,IAAI;AAAA;AAAA,EAEN,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,OAAO,UAAU;AAAA,EACjB,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,UAAU,aAAa;AAAA,EAEvB,SAAS;AAAA,MACL;AACJ,QAAM,EAAE,cAAc;AACtB,SACE,qCAAC,iBAAD;AAAA,OACM;AAAA,IACJ,YAAY,EAAE,YAAY,UAAU,MAAM;AAAA,KAEzC,aACC,qCAAC,kBAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MAIJ,qCAAC,iBAAD;AAAA,IACE,YAAY;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAa,CAAC,CAAC;AAAA;AAAA,KAGhB,cAAc,WAAW,QACtB,OAAM,SAAS,IACb,YACA,CAAC,cACC,OAAM,aAAa,WAAW;AAAA,OACzB,UAAU;AAAA,IACb,QA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MIT",
5
5
  "description": "ICE MT - Dimsum - Group Box",
6
6
  "files": [
@@ -67,9 +67,9 @@
67
67
  "indent": 4
68
68
  },
69
69
  "dependencies": {
70
- "@elliemae/ds-classnames": "3.0.0-alpha.0",
71
- "@elliemae/ds-system": "3.0.0-alpha.0",
72
- "@elliemae/ds-truncated-tooltip-text": "3.0.0-alpha.0",
70
+ "@elliemae/ds-classnames": "3.0.0-alpha.1",
71
+ "@elliemae/ds-system": "3.0.0-alpha.1",
72
+ "@elliemae/ds-truncated-tooltip-text": "3.0.0-alpha.1",
73
73
  "@xstyled/styled-components": "~3.1.2",
74
74
  "prop-types": "~15.7.2",
75
75
  "react-desc": "~4.1.3"
@@ -94,6 +94,7 @@
94
94
  "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
95
95
  "test": "node ../../scripts/testing/test.mjs",
96
96
  "lint": "node ../../scripts/lint.mjs",
97
+ "dts": "node ../../scripts/dts.mjs",
97
98
  "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
98
99
  }
99
100
  }
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function ActionItem({ children }: {
4
- children: any;
5
- }): JSX.Element;
6
- declare namespace ActionItem {
7
- var propTypes: {
8
- children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
9
- };
10
- }
11
- export default ActionItem;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function Actions({ actions, centerActions, rightActions }: {
4
- actions?: never[] | undefined;
5
- centerActions: any;
6
- rightActions: any;
7
- }): JSX.Element | null;
8
- declare namespace Actions {
9
- var propTypes: {
10
- actions: PropTypes.Requireable<any[]>;
11
- centerActions: PropTypes.Requireable<boolean>;
12
- rightActions: PropTypes.Requireable<boolean>;
13
- };
14
- }
15
- export { Actions };
16
- export default Actions;
@@ -1,113 +0,0 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
- /// <reference types="react" />
3
- declare const DSGroupBox: {
4
- ({ containerProps, labelProps, rightActions, centerActions, type, asRow, onlyHeader, noBorder, noPadding, children: components, isMain, }: {
5
- containerProps?: {} | undefined;
6
- labelProps?: {
7
- labelText: string;
8
- borderBottom: boolean;
9
- id: string;
10
- } | undefined;
11
- rightActions?: never[] | undefined;
12
- centerActions?: never[] | undefined;
13
- type?: string | undefined;
14
- asRow?: boolean | undefined;
15
- onlyHeader?: boolean | undefined;
16
- noBorder?: boolean | undefined;
17
- noPadding?: boolean | undefined;
18
- children?: never[] | undefined;
19
- isMain?: boolean | undefined;
20
- }): JSX.Element;
21
- propTypes: {
22
- /** props to inject to wrapper */
23
- containerProps: {
24
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
25
- deprecated: import("react-desc").PropTypesDescValidator;
26
- };
27
- isRequired: import("react-desc").PropTypesDescValue;
28
- };
29
- /**
30
- * Label attributes to be rendered
31
- */
32
- labelProps: {
33
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
34
- deprecated: import("react-desc").PropTypesDescValidator;
35
- };
36
- isRequired: import("react-desc").PropTypesDescValue;
37
- };
38
- /**
39
- * ['category-box', 'group-box']
40
- */
41
- type: {
42
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
43
- deprecated: import("react-desc").PropTypesDescValidator;
44
- };
45
- isRequired: import("react-desc").PropTypesDescValue;
46
- };
47
- /**
48
- * Components to be rendered inside the box
49
- */
50
- children: any;
51
- /**
52
- * Actions on the right side of the label
53
- */
54
- rightActions: {
55
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
56
- deprecated: import("react-desc").PropTypesDescValidator;
57
- };
58
- isRequired: import("react-desc").PropTypesDescValue;
59
- };
60
- /**
61
- * Actions on the next to the label
62
- */
63
- centerActions: {
64
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
65
- deprecated: import("react-desc").PropTypesDescValidator;
66
- };
67
- isRequired: import("react-desc").PropTypesDescValue;
68
- };
69
- /**
70
- * Display the content of the group box with flex direction row
71
- */
72
- asRow: {
73
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
74
- deprecated: import("react-desc").PropTypesDescValidator;
75
- };
76
- isRequired: import("react-desc").PropTypesDescValue;
77
- };
78
- /**
79
- * Show border only on the header
80
- */
81
- onlyHeader: {
82
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
83
- deprecated: import("react-desc").PropTypesDescValidator;
84
- };
85
- isRequired: import("react-desc").PropTypesDescValue;
86
- };
87
- /**
88
- * Remove the wrapper border
89
- */
90
- noBorder: {
91
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
92
- deprecated: import("react-desc").PropTypesDescValidator;
93
- };
94
- isRequired: import("react-desc").PropTypesDescValue;
95
- };
96
- /**
97
- * Remove the top and bottom padding from the content
98
- */
99
- noPadding: {
100
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
101
- deprecated: import("react-desc").PropTypesDescValidator;
102
- };
103
- isRequired: import("react-desc").PropTypesDescValue;
104
- };
105
- };
106
- };
107
- declare const DSGroupBoxWithSchema: {
108
- (props?: unknown): JSX.Element;
109
- propTypes: unknown;
110
- toTypescript: () => import("react-desc").TypescriptSchema;
111
- };
112
- export { DSGroupBox, DSGroupBoxWithSchema };
113
- export default DSGroupBox;
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function GroupBoxLabel({ borderBottom, children, noBorder, isMain, type, id }: {
4
- borderBottom: any;
5
- children: any;
6
- noBorder: any;
7
- isMain: any;
8
- type: any;
9
- id: any;
10
- }): JSX.Element;
11
- declare namespace GroupBoxLabel {
12
- var propTypes: {
13
- children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
14
- type: PropTypes.Requireable<string>;
15
- borderBottom: PropTypes.Requireable<boolean>;
16
- isMain: PropTypes.Validator<boolean>;
17
- noBorder: PropTypes.Requireable<boolean>;
18
- id: PropTypes.Requireable<string>;
19
- };
20
- }
21
- export default GroupBoxLabel;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function LabelElement({ children }: {
4
- children: any;
5
- }): JSX.Element;
6
- declare namespace LabelElement {
7
- var propTypes: {
8
- children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
9
- };
10
- }
11
- export default LabelElement;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const DSGroupBoxHeader: ({ labelProps, rightActions, centerActions, type, noBorder, isMain, }: {
3
- labelProps?: {
4
- labelText: string;
5
- borderBottom: boolean;
6
- id: string;
7
- } | undefined;
8
- rightActions?: never[] | undefined;
9
- centerActions?: never[] | undefined;
10
- type?: string | undefined;
11
- noBorder: any;
12
- isMain: any;
13
- }) => JSX.Element;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const GroupBoxWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
3
- export declare const GroupBoxContent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
4
- export declare const Label: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
@@ -1,5 +0,0 @@
1
- export declare const BOX_TYPES: {
2
- CATEGORY: string;
3
- GROUP: string;
4
- };
5
- export declare const BOX_TYPES_ARRAY: string[];
@@ -1,3 +0,0 @@
1
- export * from './DSGroupBox';
2
- export * from './constants';
3
- export { default } from './DSGroupBox';
@@ -1 +0,0 @@
1
- export {};