infinity-forge 0.17.9 → 0.18.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,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const SearchTrigger: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
2
+ export declare const SearchTrigger: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLDivElement>;
4
+ }, never>>;
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.SearchTrigger = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.SearchTrigger = styled_components_1.default.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n max-width: 473px;\n height: 40px;\n padding: 0 16px;\n border: 0;\n border-radius: 5px;\n background: rgba(255, 255, 255, 0.2);\n font-weight: 400;\n color: #fff;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 10px;\n cursor: pointer;\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n"], ["\n width: 100%;\n max-width: 473px;\n height: 40px;\n padding: 0 16px;\n border: 0;\n border-radius: 5px;\n background: rgba(255, 255, 255, 0.2);\n font-weight: 400;\n color: #fff;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 10px;\n cursor: pointer;\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n"])));
12
+ exports.SearchTrigger = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n max-width: 473px;\n height: 40px;\n padding: 0 16px;\n border: 0;\n border-radius: 5px;\n background: rgba(255, 255, 255, 0.2);\n font-weight: 400;\n color: #fff;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 10px;\n cursor: pointer;\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n"], ["\n width: 100%;\n max-width: 473px;\n height: 40px;\n padding: 0 16px;\n border: 0;\n border-radius: 5px;\n background: rgba(255, 255, 255, 0.2);\n font-weight: 400;\n color: #fff;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 10px;\n cursor: pointer;\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n"])));
13
13
  var templateObject_1;
14
14
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/components/layout/header/components/search-modal/trigger/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,aAAa,GAAG,2BAAM,CAAC,MAAM,mhBAAA,gdA2BzC,KAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/components/layout/header/components/search-modal/trigger/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,aAAa,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,mhBAAA,gdA2BzC,KAAA"}
@@ -60,12 +60,12 @@ function useCreateTable(queryKey) {
60
60
  });
61
61
  }); },
62
62
  inputs: [
63
- [{ name: 'emailAddress', inputComponent: 'Input', type: 'email', label: 'Email' }],
63
+ [{ name: 'emailAddress', InputComponent: 'Input', type: 'email', label: 'Email' }],
64
64
  [
65
- { name: 'firstName', inputComponent: 'Input', type: 'text', label: 'Primeiro Nome' },
66
- { name: 'lastName', inputComponent: 'Input', type: 'text', label: 'Sobrenome' },
65
+ { name: 'firstName', InputComponent: 'Input', type: 'text', label: 'Primeiro Nome' },
66
+ { name: 'lastName', InputComponent: 'Input', type: 'text', label: 'Sobrenome' },
67
67
  ],
68
- [{ name: 'password', inputComponent: 'InputPassword', type: 'password', label: 'Senha' }],
68
+ [{ name: 'password', InputComponent: 'InputPassword', type: 'password', label: 'Senha' }],
69
69
  ],
70
70
  };
71
71
  return createTable;
@@ -68,12 +68,12 @@ function useEditTable(queryKey) {
68
68
  });
69
69
  }); },
70
70
  inputs: [
71
- [{ name: 'emailAddress', inputComponent: 'Input', type: 'email', label: 'Email' }],
71
+ [{ name: 'emailAddress', InputComponent: 'Input', type: 'email', label: 'Email' }],
72
72
  [
73
- { name: 'firstName', inputComponent: 'Input', type: 'text', label: 'Primeiro Nome' },
74
- { name: 'lastName', inputComponent: 'Input', type: 'text', label: 'Sobrenome' },
73
+ { name: 'firstName', InputComponent: 'Input', type: 'text', label: 'Primeiro Nome' },
74
+ { name: 'lastName', InputComponent: 'Input', type: 'text', label: 'Sobrenome' },
75
75
  ],
76
- [{ name: 'roleGate', inputComponent: 'Input', type: 'text', label: 'Role' }],
76
+ [{ name: 'roleGate', InputComponent: 'Input', type: 'text', label: 'Role' }],
77
77
  ],
78
78
  };
79
79
  return editTable;
@@ -108,7 +108,7 @@ function DynamicFormHandler(props) {
108
108
  });
109
109
  }); }, initialData: __assign(__assign({}, data), (props.initialData || {})), children: props.inputs.map(function (row, index) {
110
110
  return ((0, jsx_runtime_1.jsx)("div", { style: { display: 'grid', gap: 15, gridTemplateColumns: "repeat(".concat(row.length, ", 1fr)") }, children: row.map(function (input) {
111
- var Element = Inputs[input.inputComponent];
111
+ var Element = Inputs[input.InputComponent];
112
112
  return (0, jsx_runtime_1.jsx)(Element, __assign({}, input), input.name);
113
113
  }) }, index));
114
114
  }) }))] }));
@@ -4,7 +4,7 @@ import { ISelectProps } from '../../select/interfaces.js';
4
4
  import * as Inputs from '../../index.js';
5
5
  type InputProps<T = any> = {
6
6
  name: keyof T;
7
- inputComponent: keyof typeof Inputs;
7
+ InputComponent: keyof typeof Inputs;
8
8
  } & Partial<Omit<ISelectProps, 'name'>>;
9
9
  export type DynamicFormHandlerProps<T = any> = Partial<IFormHandler> & {
10
10
  button?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.17.9",
3
+ "version": "0.18.1",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",