@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260528050408 → 0.8.1-dev.20260529111817

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
@@ -199,6 +199,32 @@ declare const LineTextInput: React.FC<InputControlProps$1>;
199
199
 
200
200
  declare const MultilineTextInput: React.FC<InputControlProps$1>;
201
201
 
202
+ declare enum StyleTypes {
203
+ Solid = "Primary",
204
+ Hollow = "PrimaryHollow",
205
+ Link = "Link"
206
+ }
207
+ interface ActionResponse<T> {
208
+ isSuccessful: boolean;
209
+ message?: string;
210
+ data?: T;
211
+ }
212
+
213
+ interface ButtonProps<T> {
214
+ oneTimeAction?: boolean;
215
+ onValidate?: () => Promise<boolean>;
216
+ onClick?: () => Promise<ActionResponse<T>>;
217
+ showToast?: boolean;
218
+ children: React.ReactNode;
219
+ ButtonType?: StyleTypes;
220
+ className?: string;
221
+ hideProgressIndicator?: boolean;
222
+ confirm?: boolean;
223
+ confirmationMessage?: string;
224
+ disabled?: boolean;
225
+ }
226
+ declare const Button: React.FC<ButtonProps<any>>;
227
+
202
228
  declare const MoneyInput: React.FC<InputControlProps$1>;
203
229
 
204
230
  declare const PercentageInput: React.FC<InputControlProps$1>;
@@ -501,12 +527,6 @@ interface AdditionalActions {
501
527
  }
502
528
  declare const DataForm: React.FC<DataFormConfiguration>;
503
529
 
504
- interface ActionResponse<T> {
505
- isSuccessful: boolean;
506
- message?: string;
507
- data?: T;
508
- }
509
-
510
530
  interface WidgetProps {
511
531
  isPinned?: boolean;
512
532
  widgetCode: string;
@@ -535,4 +555,4 @@ interface DataFormRendererProps {
535
555
  }
536
556
  declare const DataFormRenderer: ({ formDefinition, dataItem, params, tabs, apiBaseUrl, session, widgetProps, onSave, onDelete, onCancelAdd, isAddPage, entityId, }: DataFormRendererProps) => react_jsx_runtime.JSX.Element | null;
537
557
 
538
- export { type ActionResponse$1 as ActionResponse, BooleanSelect, CheckboxInput, ColorInput, DataForm, DataFormRenderer, DataList, DataListRenderer, DateTimeInput, EmailInput, InputControl, type InputControlProps$1 as InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };
558
+ export { type ActionResponse$1 as ActionResponse, BooleanSelect, Button, CheckboxInput, ColorInput, DataForm, DataFormRenderer, DataList, DataListRenderer, DateTimeInput, EmailInput, InputControl, type InputControlProps$1 as InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };
package/dist/index.d.ts CHANGED
@@ -199,6 +199,32 @@ declare const LineTextInput: React.FC<InputControlProps$1>;
199
199
 
200
200
  declare const MultilineTextInput: React.FC<InputControlProps$1>;
201
201
 
202
+ declare enum StyleTypes {
203
+ Solid = "Primary",
204
+ Hollow = "PrimaryHollow",
205
+ Link = "Link"
206
+ }
207
+ interface ActionResponse<T> {
208
+ isSuccessful: boolean;
209
+ message?: string;
210
+ data?: T;
211
+ }
212
+
213
+ interface ButtonProps<T> {
214
+ oneTimeAction?: boolean;
215
+ onValidate?: () => Promise<boolean>;
216
+ onClick?: () => Promise<ActionResponse<T>>;
217
+ showToast?: boolean;
218
+ children: React.ReactNode;
219
+ ButtonType?: StyleTypes;
220
+ className?: string;
221
+ hideProgressIndicator?: boolean;
222
+ confirm?: boolean;
223
+ confirmationMessage?: string;
224
+ disabled?: boolean;
225
+ }
226
+ declare const Button: React.FC<ButtonProps<any>>;
227
+
202
228
  declare const MoneyInput: React.FC<InputControlProps$1>;
203
229
 
204
230
  declare const PercentageInput: React.FC<InputControlProps$1>;
@@ -501,12 +527,6 @@ interface AdditionalActions {
501
527
  }
502
528
  declare const DataForm: React.FC<DataFormConfiguration>;
503
529
 
504
- interface ActionResponse<T> {
505
- isSuccessful: boolean;
506
- message?: string;
507
- data?: T;
508
- }
509
-
510
530
  interface WidgetProps {
511
531
  isPinned?: boolean;
512
532
  widgetCode: string;
@@ -535,4 +555,4 @@ interface DataFormRendererProps {
535
555
  }
536
556
  declare const DataFormRenderer: ({ formDefinition, dataItem, params, tabs, apiBaseUrl, session, widgetProps, onSave, onDelete, onCancelAdd, isAddPage, entityId, }: DataFormRendererProps) => react_jsx_runtime.JSX.Element | null;
537
557
 
538
- export { type ActionResponse$1 as ActionResponse, BooleanSelect, CheckboxInput, ColorInput, DataForm, DataFormRenderer, DataList, DataListRenderer, DateTimeInput, EmailInput, InputControl, type InputControlProps$1 as InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };
558
+ export { type ActionResponse$1 as ActionResponse, BooleanSelect, Button, CheckboxInput, ColorInput, DataForm, DataFormRenderer, DataList, DataListRenderer, DateTimeInput, EmailInput, InputControl, type InputControlProps$1 as InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };
package/dist/index.js CHANGED
@@ -1516,6 +1516,7 @@ var init_IframeClient = __esm({
1516
1516
  var index_exports = {};
1517
1517
  __export(index_exports, {
1518
1518
  BooleanSelect: () => BooleanSelect_default,
1519
+ Button: () => Button_default,
1519
1520
  CheckboxInput: () => CheckboxInput_default,
1520
1521
  ColorInput: () => ColorInput_default,
1521
1522
  DataForm: () => DataForm_default,
@@ -5874,6 +5875,7 @@ var Toast_default = Toast;
5874
5875
 
5875
5876
  // src/index.ts
5876
5877
  init_ToastService();
5878
+ init_Button();
5877
5879
 
5878
5880
  // src/components/NavigationTabsV2.tsx
5879
5881
  var import_link3 = __toESM(require("next/link"));
@@ -6072,7 +6074,7 @@ var DataList = (props) => {
6072
6074
  href: builder.getNewPageUrl(page),
6073
6075
  children: page
6074
6076
  }
6075
- ) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
6077
+ ) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
6076
6078
  /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "px-2 py-1", children: "..." }),
6077
6079
  /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6078
6080
  Hyperlink,
@@ -6138,7 +6140,7 @@ var DataList = (props) => {
6138
6140
  href: builder.getNewPageUrl(page),
6139
6141
  children: page
6140
6142
  }
6141
- ) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
6143
+ ) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
6142
6144
  )
6143
6145
  ] });
6144
6146
  } else {
@@ -6170,7 +6172,7 @@ var DataList = (props) => {
6170
6172
  href: builder.getNewPageUrl(page),
6171
6173
  children: page
6172
6174
  }
6173
- ) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
6175
+ ) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
6174
6176
  /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "px-2 py-1", children: "..." }),
6175
6177
  /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
6176
6178
  Hyperlink,
@@ -7152,6 +7154,7 @@ var DataFormRenderer_default = DataFormRenderer;
7152
7154
  // Annotate the CommonJS export names for ESM import in node:
7153
7155
  0 && (module.exports = {
7154
7156
  BooleanSelect,
7157
+ Button,
7155
7158
  CheckboxInput,
7156
7159
  ColorInput,
7157
7160
  DataForm,
package/dist/index.mjs CHANGED
@@ -4530,7 +4530,7 @@ var DataList = (props) => {
4530
4530
  href: builder.getNewPageUrl(page),
4531
4531
  children: page
4532
4532
  }
4533
- ) : /* @__PURE__ */ jsx65("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
4533
+ ) : /* @__PURE__ */ jsx65("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
4534
4534
  /* @__PURE__ */ jsx65("span", { className: "px-2 py-1", children: "..." }),
4535
4535
  /* @__PURE__ */ jsx65(
4536
4536
  Hyperlink,
@@ -4596,7 +4596,7 @@ var DataList = (props) => {
4596
4596
  href: builder.getNewPageUrl(page),
4597
4597
  children: page
4598
4598
  }
4599
- ) : /* @__PURE__ */ jsx65("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)
4599
+ ) : /* @__PURE__ */ jsx65("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)
4600
4600
  )
4601
4601
  ] });
4602
4602
  } else {
@@ -4628,7 +4628,7 @@ var DataList = (props) => {
4628
4628
  href: builder.getNewPageUrl(page),
4629
4629
  children: page
4630
4630
  }
4631
- ) : /* @__PURE__ */ jsx65("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary text-white", children: page }) }, page)),
4631
+ ) : /* @__PURE__ */ jsx65("span", { className: "px-3 py-1 border-t border-b border-gray-300 bg-primary-base", children: page }) }, page)),
4632
4632
  /* @__PURE__ */ jsx65("span", { className: "px-2 py-1", children: "..." }),
4633
4633
  /* @__PURE__ */ jsx65(
4634
4634
  Hyperlink,
@@ -5602,6 +5602,7 @@ var DataFormRenderer = ({
5602
5602
  var DataFormRenderer_default = DataFormRenderer;
5603
5603
  export {
5604
5604
  BooleanSelect_default as BooleanSelect,
5605
+ Button_default as Button,
5605
5606
  CheckboxInput_default as CheckboxInput,
5606
5607
  ColorInput_default as ColorInput,
5607
5608
  DataForm_default as DataForm,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260528050408",
3
+ "version": "0.8.1-dev.20260529111817",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",