@almadar/ui 4.50.21 → 4.50.22

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.
@@ -38135,6 +38135,7 @@ var init_Form = __esm({
38135
38135
  submitLabel,
38136
38136
  cancelLabel,
38137
38137
  showCancel,
38138
+ showSubmit = true,
38138
38139
  title,
38139
38140
  submitEvent = "SAVE",
38140
38141
  cancelEvent = "CANCEL",
@@ -38621,8 +38622,8 @@ var init_Form = __esm({
38621
38622
  sectionElements && sectionElements.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: gap === "sm" ? "sm" : gap === "lg" ? "lg" : "md", children: sectionElements }),
38622
38623
  schemaFields,
38623
38624
  children,
38624
- (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", className: "pt-4", children: [
38625
- /* @__PURE__ */ jsxRuntime.jsx(
38625
+ (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && (showSubmit || shouldShowCancel) && /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", className: "pt-4", children: [
38626
+ showSubmit && /* @__PURE__ */ jsxRuntime.jsx(
38626
38627
  Button,
38627
38628
  {
38628
38629
  type: "submit",
package/dist/avl/index.js CHANGED
@@ -38089,6 +38089,7 @@ var init_Form = __esm({
38089
38089
  submitLabel,
38090
38090
  cancelLabel,
38091
38091
  showCancel,
38092
+ showSubmit = true,
38092
38093
  title,
38093
38094
  submitEvent = "SAVE",
38094
38095
  cancelEvent = "CANCEL",
@@ -38575,8 +38576,8 @@ var init_Form = __esm({
38575
38576
  sectionElements && sectionElements.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: gap === "sm" ? "sm" : gap === "lg" ? "lg" : "md", children: sectionElements }),
38576
38577
  schemaFields,
38577
38578
  children,
38578
- (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "pt-4", children: [
38579
- /* @__PURE__ */ jsx(
38579
+ (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && (showSubmit || shouldShowCancel) && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "pt-4", children: [
38580
+ showSubmit && /* @__PURE__ */ jsx(
38580
38581
  Button,
38581
38582
  {
38582
38583
  type: "submit",
@@ -34190,6 +34190,7 @@ var init_Form = __esm({
34190
34190
  submitLabel,
34191
34191
  cancelLabel,
34192
34192
  showCancel,
34193
+ showSubmit = true,
34193
34194
  title,
34194
34195
  submitEvent = "SAVE",
34195
34196
  cancelEvent = "CANCEL",
@@ -34676,8 +34677,8 @@ var init_Form = __esm({
34676
34677
  sectionElements && sectionElements.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(exports.VStack, { gap: gap === "sm" ? "sm" : gap === "lg" ? "lg" : "md", children: sectionElements }),
34677
34678
  schemaFields,
34678
34679
  children,
34679
- (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { gap: "sm", className: "pt-4", children: [
34680
- /* @__PURE__ */ jsxRuntime.jsx(
34680
+ (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && (showSubmit || shouldShowCancel) && /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { gap: "sm", className: "pt-4", children: [
34681
+ showSubmit && /* @__PURE__ */ jsxRuntime.jsx(
34681
34682
  exports.Button,
34682
34683
  {
34683
34684
  type: "submit",
@@ -34144,6 +34144,7 @@ var init_Form = __esm({
34144
34144
  submitLabel,
34145
34145
  cancelLabel,
34146
34146
  showCancel,
34147
+ showSubmit = true,
34147
34148
  title,
34148
34149
  submitEvent = "SAVE",
34149
34150
  cancelEvent = "CANCEL",
@@ -34630,8 +34631,8 @@ var init_Form = __esm({
34630
34631
  sectionElements && sectionElements.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: gap === "sm" ? "sm" : gap === "lg" ? "lg" : "md", children: sectionElements }),
34631
34632
  schemaFields,
34632
34633
  children,
34633
- (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "pt-4", children: [
34634
- /* @__PURE__ */ jsx(
34634
+ (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && (showSubmit || shouldShowCancel) && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "pt-4", children: [
34635
+ showSubmit && /* @__PURE__ */ jsx(
34635
34636
  Button,
34636
34637
  {
34637
34638
  type: "submit",
@@ -176,6 +176,8 @@ export interface FormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement
176
176
  cancelLabel?: string;
177
177
  /** Show cancel button (defaults to true for schema forms) */
178
178
  showCancel?: boolean;
179
+ /** Show submit button (defaults to true for schema forms). Set false when a parent atom owns the submit action externally (e.g. wizard footers). */
180
+ showSubmit?: boolean;
179
181
  /** Form title (used by ModalSlot to extract title) */
180
182
  title?: string;
181
183
  /** Event to dispatch on successful submit (defaults to 'SAVE') */
@@ -34950,6 +34950,7 @@ var init_Form = __esm({
34950
34950
  submitLabel,
34951
34951
  cancelLabel,
34952
34952
  showCancel,
34953
+ showSubmit = true,
34953
34954
  title,
34954
34955
  submitEvent = "SAVE",
34955
34956
  cancelEvent = "CANCEL",
@@ -35436,8 +35437,8 @@ var init_Form = __esm({
35436
35437
  sectionElements && sectionElements.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: gap === "sm" ? "sm" : gap === "lg" ? "lg" : "md", children: sectionElements }),
35437
35438
  schemaFields,
35438
35439
  children,
35439
- (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", className: "pt-4", children: [
35440
- /* @__PURE__ */ jsxRuntime.jsx(
35440
+ (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && (showSubmit || shouldShowCancel) && /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", className: "pt-4", children: [
35441
+ showSubmit && /* @__PURE__ */ jsxRuntime.jsx(
35441
35442
  Button,
35442
35443
  {
35443
35444
  type: "submit",
@@ -34904,6 +34904,7 @@ var init_Form = __esm({
34904
34904
  submitLabel,
34905
34905
  cancelLabel,
34906
34906
  showCancel,
34907
+ showSubmit = true,
34907
34908
  title,
34908
34909
  submitEvent = "SAVE",
34909
34910
  cancelEvent = "CANCEL",
@@ -35390,8 +35391,8 @@ var init_Form = __esm({
35390
35391
  sectionElements && sectionElements.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: gap === "sm" ? "sm" : gap === "lg" ? "lg" : "md", children: sectionElements }),
35391
35392
  schemaFields,
35392
35393
  children,
35393
- (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "pt-4", children: [
35394
- /* @__PURE__ */ jsx(
35394
+ (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && (showSubmit || shouldShowCancel) && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "pt-4", children: [
35395
+ showSubmit && /* @__PURE__ */ jsx(
35395
35396
  Button,
35396
35397
  {
35397
35398
  type: "submit",
@@ -34517,6 +34517,7 @@ var init_Form = __esm({
34517
34517
  submitLabel,
34518
34518
  cancelLabel,
34519
34519
  showCancel,
34520
+ showSubmit = true,
34520
34521
  title,
34521
34522
  submitEvent = "SAVE",
34522
34523
  cancelEvent = "CANCEL",
@@ -35003,8 +35004,8 @@ var init_Form = __esm({
35003
35004
  sectionElements && sectionElements.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: gap === "sm" ? "sm" : gap === "lg" ? "lg" : "md", children: sectionElements }),
35004
35005
  schemaFields,
35005
35006
  children,
35006
- (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", className: "pt-4", children: [
35007
- /* @__PURE__ */ jsxRuntime.jsx(
35007
+ (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && (showSubmit || shouldShowCancel) && /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", className: "pt-4", children: [
35008
+ showSubmit && /* @__PURE__ */ jsxRuntime.jsx(
35008
35009
  Button,
35009
35010
  {
35010
35011
  type: "submit",
@@ -34471,6 +34471,7 @@ var init_Form = __esm({
34471
34471
  submitLabel,
34472
34472
  cancelLabel,
34473
34473
  showCancel,
34474
+ showSubmit = true,
34474
34475
  title,
34475
34476
  submitEvent = "SAVE",
34476
34477
  cancelEvent = "CANCEL",
@@ -34957,8 +34958,8 @@ var init_Form = __esm({
34957
34958
  sectionElements && sectionElements.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: gap === "sm" ? "sm" : gap === "lg" ? "lg" : "md", children: sectionElements }),
34958
34959
  schemaFields,
34959
34960
  children,
34960
- (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "pt-4", children: [
34961
- /* @__PURE__ */ jsx(
34961
+ (schemaFields && schemaFields.length > 0 || sectionElements && sectionElements.length > 0) && (showSubmit || shouldShowCancel) && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "pt-4", children: [
34962
+ showSubmit && /* @__PURE__ */ jsx(
34962
34963
  Button,
34963
34964
  {
34964
34965
  type: "submit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.50.21",
3
+ "version": "4.50.22",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [