@acoustte-digital-services/digitalstore-controls 0.12.3 → 0.14.0

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.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- interface ViewControlPropsView {
3
+ interface ViewControlProps {
4
4
  value?: any;
5
5
  controlType: string;
6
6
  format?: string;
@@ -9,9 +9,9 @@ interface ViewControlPropsView {
9
9
  customProps?: Record<string, any>;
10
10
  }
11
11
 
12
- declare const ViewControl: React.FC<ViewControlPropsView>;
12
+ declare const ViewControl: React.FC<ViewControlProps>;
13
13
 
14
- declare const ViewControlTypesView: {
14
+ declare const ViewControlTypes: {
15
15
  lineTextView: string;
16
16
  emailTextView: string;
17
17
  multilineTextBulletsView: string;
@@ -22,8 +22,7 @@ declare const ViewControlTypesView: {
22
22
  statusBgView: string;
23
23
  multilineTextView: string;
24
24
  booleanView: string;
25
- checkboxInputView: string;
26
25
  text: string;
27
26
  };
28
27
 
29
- export { ViewControl, ViewControlTypesView };
28
+ export { ViewControl, ViewControlTypes };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- interface ViewControlPropsView {
3
+ interface ViewControlProps {
4
4
  value?: any;
5
5
  controlType: string;
6
6
  format?: string;
@@ -9,9 +9,9 @@ interface ViewControlPropsView {
9
9
  customProps?: Record<string, any>;
10
10
  }
11
11
 
12
- declare const ViewControl: React.FC<ViewControlPropsView>;
12
+ declare const ViewControl: React.FC<ViewControlProps>;
13
13
 
14
- declare const ViewControlTypesView: {
14
+ declare const ViewControlTypes: {
15
15
  lineTextView: string;
16
16
  emailTextView: string;
17
17
  multilineTextBulletsView: string;
@@ -22,8 +22,7 @@ declare const ViewControlTypesView: {
22
22
  statusBgView: string;
23
23
  multilineTextView: string;
24
24
  booleanView: string;
25
- checkboxInputView: string;
26
25
  text: string;
27
26
  };
28
27
 
29
- export { ViewControl, ViewControlTypesView };
28
+ export { ViewControl, ViewControlTypes };
package/dist/index.js CHANGED
@@ -44,12 +44,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
44
44
  // src/index.ts
45
45
  var index_exports = {};
46
46
  __export(index_exports, {
47
- ViewControl: () => ViewControlView_default,
48
- ViewControlTypesView: () => ViewControlTypesView_default
47
+ ViewControl: () => ViewControl_default,
48
+ ViewControlTypes: () => ViewControlTypes_default
49
49
  });
50
50
  module.exports = __toCommonJS(index_exports);
51
51
 
52
- // src/controls/view/ViewControlView.tsx
52
+ // src/controls/view/ViewControl.tsx
53
53
  var import_react11 = __toESM(require("react"));
54
54
 
55
55
  // src/controls/view/LineTextView.tsx
@@ -171,8 +171,8 @@ var MultilinetextView = (props) => {
171
171
  };
172
172
  var MultilineTextView_default = MultilinetextView;
173
173
 
174
- // src/controls/view/ViewControlTypesView.tsx
175
- var ViewControlTypesView = {
174
+ // src/controls/view/ViewControlTypes.tsx
175
+ var ViewControlTypes = {
176
176
  lineTextView: "lineTextView",
177
177
  emailTextView: "emailTextView",
178
178
  multilineTextBulletsView: "multilineTextBulletsView",
@@ -183,16 +183,14 @@ var ViewControlTypesView = {
183
183
  statusBgView: "statusBgView",
184
184
  multilineTextView: "multilineTextView",
185
185
  booleanView: "booleanView",
186
- checkboxInputView: "booleanView",
187
186
  text: "text"
188
- // booleanView: "booleanView"
189
187
  };
190
- var ViewControlTypesView_default = ViewControlTypesView;
188
+ var ViewControlTypes_default = ViewControlTypes;
191
189
 
192
190
  // src/controls/view/BooleanView.tsx
193
191
  var import_react10 = __toESM(require("react"));
194
192
  var import_jsx_runtime10 = require("react/jsx-runtime");
195
- var booleanView = (props) => {
193
+ var BooleanView = (props) => {
196
194
  const { value, customProps } = props;
197
195
  const showOnlyTrueIcon = customProps == null ? void 0 : customProps.showOnlyTrueIcon;
198
196
  console.log("BooleanView Debug:", {
@@ -215,7 +213,7 @@ var booleanView = (props) => {
215
213
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react10.default.Fragment, { children: booleanValue === true && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
216
214
  "svg",
217
215
  {
218
- className: "w-15 h-8 textView-green-600",
216
+ className: "w-15 h-8 text-green-600",
219
217
  fill: "currentColor",
220
218
  viewBox: "0 0 20 20",
221
219
  children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
@@ -231,30 +229,30 @@ var booleanView = (props) => {
231
229
  }
232
230
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react10.default.Fragment, { children: booleanValue ? "true" : "false" });
233
231
  };
234
- var BooleanView_default = booleanView;
232
+ var BooleanView_default = BooleanView;
235
233
 
236
- // src/controls/view/ViewControlView.tsx
234
+ // src/controls/view/ViewControl.tsx
237
235
  var import_jsx_runtime11 = require("react/jsx-runtime");
238
236
  var ViewControl = (props) => {
239
237
  const ControlComponents = {
240
- [ViewControlTypesView_default.lineTextView]: LineTextView_default,
241
- [ViewControlTypesView_default.emailTextView]: EmailTextView_default,
242
- [ViewControlTypesView_default.multilineTextBulletsView]: MultilineTextBulletsView_default,
243
- [ViewControlTypesView_default.moneyView]: MoneyView_default,
244
- [ViewControlTypesView_default.numberView]: NumberView_default,
245
- [ViewControlTypesView_default.dateView]: DateView_default,
246
- [ViewControlTypesView_default.statusView]: StatusView_default,
247
- [ViewControlTypesView_default.statusBgView]: StatusBgView_default,
248
- [ViewControlTypesView_default.multilineTextView]: MultilineTextView_default,
249
- [ViewControlTypesView_default.booleanView]: BooleanView_default,
250
- [ViewControlTypesView_default.lineTextView]: LineTextView_default
238
+ [ViewControlTypes_default.lineTextView]: LineTextView_default,
239
+ [ViewControlTypes_default.emailTextView]: EmailTextView_default,
240
+ [ViewControlTypes_default.multilineTextBulletsView]: MultilineTextBulletsView_default,
241
+ [ViewControlTypes_default.moneyView]: MoneyView_default,
242
+ [ViewControlTypes_default.numberView]: NumberView_default,
243
+ [ViewControlTypes_default.dateView]: DateView_default,
244
+ [ViewControlTypes_default.statusView]: StatusView_default,
245
+ [ViewControlTypes_default.statusBgView]: StatusBgView_default,
246
+ [ViewControlTypes_default.multilineTextView]: MultilineTextView_default,
247
+ [ViewControlTypes_default.lineTextView]: LineTextView_default,
248
+ [ViewControlTypes_default.booleanView]: BooleanView_default
251
249
  };
252
250
  const SelectedControlComponent = ControlComponents[props.controlType];
253
251
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react11.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectedControlComponent, __spreadValues({}, props)) : "Control not found" });
254
252
  };
255
- var ViewControlView_default = ViewControl;
253
+ var ViewControl_default = ViewControl;
256
254
  // Annotate the CommonJS export names for ESM import in node:
257
255
  0 && (module.exports = {
258
256
  ViewControl,
259
- ViewControlTypesView
257
+ ViewControlTypes
260
258
  });
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
15
15
  return a;
16
16
  };
17
17
 
18
- // src/controls/view/ViewControlView.tsx
18
+ // src/controls/view/ViewControl.tsx
19
19
  import React11 from "react";
20
20
 
21
21
  // src/controls/view/LineTextView.tsx
@@ -137,8 +137,8 @@ var MultilinetextView = (props) => {
137
137
  };
138
138
  var MultilineTextView_default = MultilinetextView;
139
139
 
140
- // src/controls/view/ViewControlTypesView.tsx
141
- var ViewControlTypesView = {
140
+ // src/controls/view/ViewControlTypes.tsx
141
+ var ViewControlTypes = {
142
142
  lineTextView: "lineTextView",
143
143
  emailTextView: "emailTextView",
144
144
  multilineTextBulletsView: "multilineTextBulletsView",
@@ -149,16 +149,14 @@ var ViewControlTypesView = {
149
149
  statusBgView: "statusBgView",
150
150
  multilineTextView: "multilineTextView",
151
151
  booleanView: "booleanView",
152
- checkboxInputView: "booleanView",
153
152
  text: "text"
154
- // booleanView: "booleanView"
155
153
  };
156
- var ViewControlTypesView_default = ViewControlTypesView;
154
+ var ViewControlTypes_default = ViewControlTypes;
157
155
 
158
156
  // src/controls/view/BooleanView.tsx
159
157
  import React10 from "react";
160
158
  import { jsx as jsx10 } from "react/jsx-runtime";
161
- var booleanView = (props) => {
159
+ var BooleanView = (props) => {
162
160
  const { value, customProps } = props;
163
161
  const showOnlyTrueIcon = customProps == null ? void 0 : customProps.showOnlyTrueIcon;
164
162
  console.log("BooleanView Debug:", {
@@ -181,7 +179,7 @@ var booleanView = (props) => {
181
179
  return /* @__PURE__ */ jsx10(React10.Fragment, { children: booleanValue === true && /* @__PURE__ */ jsx10(
182
180
  "svg",
183
181
  {
184
- className: "w-15 h-8 textView-green-600",
182
+ className: "w-15 h-8 text-green-600",
185
183
  fill: "currentColor",
186
184
  viewBox: "0 0 20 20",
187
185
  children: /* @__PURE__ */ jsx10(
@@ -197,29 +195,29 @@ var booleanView = (props) => {
197
195
  }
198
196
  return /* @__PURE__ */ jsx10(React10.Fragment, { children: booleanValue ? "true" : "false" });
199
197
  };
200
- var BooleanView_default = booleanView;
198
+ var BooleanView_default = BooleanView;
201
199
 
202
- // src/controls/view/ViewControlView.tsx
200
+ // src/controls/view/ViewControl.tsx
203
201
  import { jsx as jsx11 } from "react/jsx-runtime";
204
202
  var ViewControl = (props) => {
205
203
  const ControlComponents = {
206
- [ViewControlTypesView_default.lineTextView]: LineTextView_default,
207
- [ViewControlTypesView_default.emailTextView]: EmailTextView_default,
208
- [ViewControlTypesView_default.multilineTextBulletsView]: MultilineTextBulletsView_default,
209
- [ViewControlTypesView_default.moneyView]: MoneyView_default,
210
- [ViewControlTypesView_default.numberView]: NumberView_default,
211
- [ViewControlTypesView_default.dateView]: DateView_default,
212
- [ViewControlTypesView_default.statusView]: StatusView_default,
213
- [ViewControlTypesView_default.statusBgView]: StatusBgView_default,
214
- [ViewControlTypesView_default.multilineTextView]: MultilineTextView_default,
215
- [ViewControlTypesView_default.booleanView]: BooleanView_default,
216
- [ViewControlTypesView_default.lineTextView]: LineTextView_default
204
+ [ViewControlTypes_default.lineTextView]: LineTextView_default,
205
+ [ViewControlTypes_default.emailTextView]: EmailTextView_default,
206
+ [ViewControlTypes_default.multilineTextBulletsView]: MultilineTextBulletsView_default,
207
+ [ViewControlTypes_default.moneyView]: MoneyView_default,
208
+ [ViewControlTypes_default.numberView]: NumberView_default,
209
+ [ViewControlTypes_default.dateView]: DateView_default,
210
+ [ViewControlTypes_default.statusView]: StatusView_default,
211
+ [ViewControlTypes_default.statusBgView]: StatusBgView_default,
212
+ [ViewControlTypes_default.multilineTextView]: MultilineTextView_default,
213
+ [ViewControlTypes_default.lineTextView]: LineTextView_default,
214
+ [ViewControlTypes_default.booleanView]: BooleanView_default
217
215
  };
218
216
  const SelectedControlComponent = ControlComponents[props.controlType];
219
217
  return /* @__PURE__ */ jsx11(React11.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx11(SelectedControlComponent, __spreadValues({}, props)) : "Control not found" });
220
218
  };
221
- var ViewControlView_default = ViewControl;
219
+ var ViewControl_default = ViewControl;
222
220
  export {
223
- ViewControlView_default as ViewControl,
224
- ViewControlTypesView_default as ViewControlTypesView
221
+ ViewControl_default as ViewControl,
222
+ ViewControlTypes_default as ViewControlTypes
225
223
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls",
3
- "version": "0.12.3",
3
+ "version": "0.14.0",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",