@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260528112256 → 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"));
@@ -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
@@ -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.20260528112256",
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",