@panneau/forms 5.0.0-alpha.34 → 5.0.0-alpha.35
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/Form.css
CHANGED
|
@@ -157,6 +157,21 @@
|
|
|
157
157
|
color: var(--panneau-color-danger);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
/* A new status comes in: it fades in and rises a little, as a toast does. */
|
|
161
|
+
.panneau-form-status-text {
|
|
162
|
+
display: inline-flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
gap: var(--panneau-space-1);
|
|
165
|
+
animation: panneau-form-status-in var(--panneau-duration-slow) var(--panneau-ease-out);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@keyframes panneau-form-status-in {
|
|
169
|
+
from {
|
|
170
|
+
opacity: 0;
|
|
171
|
+
transform: translateY(0.25rem);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
160
175
|
.panneau-form-summary:focus {
|
|
161
176
|
outline: var(--panneau-focus-width) solid var(--panneau-color-focus);
|
|
162
177
|
outline-offset: 2px;
|
package/dist/Form.module.js
CHANGED
|
@@ -19,6 +19,7 @@ var publicationState = "panneau-form-publication-state";
|
|
|
19
19
|
var savePanel = "panneau-form-save-panel";
|
|
20
20
|
var status = "panneau-form-status";
|
|
21
21
|
var statusError = "panneau-form-status-error";
|
|
22
|
+
var statusText = "panneau-form-status-text";
|
|
22
23
|
var summary = "panneau-form-summary";
|
|
23
24
|
var summaryList = "panneau-form-summary-list";
|
|
24
25
|
var summaryLink = "panneau-form-summary-link";
|
|
@@ -46,6 +47,8 @@ var Form_module_default = {
|
|
|
46
47
|
savePanel,
|
|
47
48
|
status,
|
|
48
49
|
statusError,
|
|
50
|
+
statusText,
|
|
51
|
+
"status-in": "panneau-form-status-in",
|
|
49
52
|
summary,
|
|
50
53
|
summaryList,
|
|
51
54
|
summaryLink,
|
|
@@ -55,6 +58,6 @@ var Form_module_default = {
|
|
|
55
58
|
skeletonTabs
|
|
56
59
|
};
|
|
57
60
|
//#endregion
|
|
58
|
-
export { besideAsideHidden, cell, Form_module_default as default, field, flow, flowCell, flowWide, footer, form, publicationState, row, savePanel, section, sectionDescription, sectionHeader, sectionTitle, skeletonField, skeletonInline, skeletonLabel, skeletonTabs, stack, status, statusError, summary, summaryLink, summaryList, text };
|
|
61
|
+
export { besideAsideHidden, cell, Form_module_default as default, field, flow, flowCell, flowWide, footer, form, publicationState, row, savePanel, section, sectionDescription, sectionHeader, sectionTitle, skeletonField, skeletonInline, skeletonLabel, skeletonTabs, stack, status, statusError, statusText, summary, summaryLink, summaryList, text };
|
|
59
62
|
|
|
60
63
|
//# sourceMappingURL=Form.module.js.map
|
package/dist/Form.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.module.js","names":[],"sources":["../src/Form.module.css"],"sourcesContent":[".form {\n container: panneau-form / inline-size;\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-6);\n min-width: 0;\n}\n\n.stack {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-5);\n min-width: 0;\n}\n\n.row {\n display: grid;\n grid-template-columns: repeat(12, minmax(0, 1fr));\n gap: var(--panneau-space-5) var(--panneau-space-4);\n min-width: 0;\n}\n\n.cell {\n grid-column: span var(--panneau-span, 12);\n min-width: 0;\n}\n\n/* Fields that the layout doesn't place: short ones side by side, in columns of at least 16rem. */\n.flow {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));\n gap: var(--panneau-space-5) var(--panneau-space-4);\n min-width: 0;\n}\n\n.flowCell {\n min-width: 0;\n}\n\n/* A field hidden by its condition renders nothing: its cell takes no column. */\n.flowCell:empty {\n display: none;\n}\n\n.flowWide {\n grid-column: 1 / -1;\n}\n\n/* Narrow containers (phones, side panels): every cell takes the full width. */\n@container panneau-form (max-width: 36rem) {\n .cell {\n grid-column: 1 / -1;\n }\n}\n\n.section {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-4);\n min-width: 0;\n padding: var(--panneau-space-4) var(--panneau-space-5);\n background-color: var(--panneau-color-surface);\n border: var(--panneau-border-width) solid var(--panneau-color-border);\n border-radius: var(--panneau-radius-lg);\n}\n\n@container panneau-form (max-width: 36rem) {\n .section {\n padding: var(--panneau-space-3);\n }\n}\n\n.sectionHeader {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-1);\n}\n\n.sectionDescription {\n margin: 0;\n}\n\n.sectionTitle {\n display: flex;\n align-items: center;\n gap: var(--panneau-space-2);\n font-size: var(--panneau-font-size-lg);\n font-weight: var(--panneau-font-weight-bold);\n line-height: var(--panneau-line-height-tight);\n margin: 0;\n}\n\n.sectionDescription,\n.text {\n font-size: var(--panneau-font-size-md);\n color: var(--panneau-color-text-muted);\n margin: 0;\n}\n\n.field {\n min-width: 0;\n scroll-margin: var(--panneau-space-10);\n}\n\n/* Sticks to the bottom of the window, above what the frame of the app puts there (a dock). */\n.footer {\n position: sticky;\n bottom: var(--panneau-frame-bottom, 0px);\n z-index: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: var(--panneau-space-2) var(--panneau-space-3);\n padding: var(--panneau-space-3) 0;\n background-color: var(--panneau-color-bg);\n border-top: var(--panneau-border-width) solid var(--panneau-color-border);\n}\n\n/* Beside the form, the `save` and `errors` panels of its sidebar take the place of the footer and\n of the summary at the top (decision 0075). The aside goes beside the form from 56rem. */\n@container panneau-form (min-width: 56rem) {\n /* Twice, over the display of the components it hides */\n .besideAsideHidden.besideAsideHidden {\n display: none;\n }\n}\n\n/* The state of the publication, at the top of its panel. */\n.publicationState {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--panneau-space-2);\n}\n\n/* The state of the form and its Save button, at the top of its sidebar. */\n.savePanel {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: var(--panneau-space-2) var(--panneau-space-3);\n}\n\n/* \"Unsaved changes\", \"Saved\" or the failure of the last save, next to the button. */\n.status {\n display: inline-flex;\n align-items: center;\n gap: var(--panneau-space-1);\n margin-inline-end: auto;\n font-size: var(--panneau-font-size-sm);\n color: var(--panneau-color-text-muted);\n}\n\n.statusError {\n color: var(--panneau-color-danger);\n}\n\n.summary:focus {\n outline: var(--panneau-focus-width) solid var(--panneau-color-focus);\n outline-offset: 2px;\n}\n\n.summaryList {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-1);\n margin: 0;\n padding-inline-start: var(--panneau-space-5);\n}\n\n.summaryLink {\n padding: 0;\n font: inherit;\n color: inherit;\n text-align: start;\n text-decoration: underline;\n cursor: pointer;\n background: none;\n border: 0;\n}\n\n.summaryLink:focus-visible {\n outline: var(--panneau-focus-width) solid var(--panneau-color-focus);\n outline-offset: 2px;\n}\n\n@container panneau-form (max-width: 36rem) {\n .footer > :not(.status) {\n flex: 1 1 auto;\n }\n}\n\n/* The skeleton of a form whose values load. */\n.skeletonField {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-1);\n}\n\n.skeletonInline {\n display: flex;\n align-items: center;\n gap: var(--panneau-space-2);\n}\n\n.skeletonLabel {\n font-size: var(--panneau-font-size-sm);\n}\n\n.skeletonTabs {\n display: flex;\n gap: var(--panneau-space-5);\n padding-block: var(--panneau-space-2);\n border-bottom: var(--panneau-border-width) solid var(--panneau-color-border);\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Form.module.js","names":[],"sources":["../src/Form.module.css"],"sourcesContent":[".form {\n container: panneau-form / inline-size;\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-6);\n min-width: 0;\n}\n\n.stack {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-5);\n min-width: 0;\n}\n\n.row {\n display: grid;\n grid-template-columns: repeat(12, minmax(0, 1fr));\n gap: var(--panneau-space-5) var(--panneau-space-4);\n min-width: 0;\n}\n\n.cell {\n grid-column: span var(--panneau-span, 12);\n min-width: 0;\n}\n\n/* Fields that the layout doesn't place: short ones side by side, in columns of at least 16rem. */\n.flow {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));\n gap: var(--panneau-space-5) var(--panneau-space-4);\n min-width: 0;\n}\n\n.flowCell {\n min-width: 0;\n}\n\n/* A field hidden by its condition renders nothing: its cell takes no column. */\n.flowCell:empty {\n display: none;\n}\n\n.flowWide {\n grid-column: 1 / -1;\n}\n\n/* Narrow containers (phones, side panels): every cell takes the full width. */\n@container panneau-form (max-width: 36rem) {\n .cell {\n grid-column: 1 / -1;\n }\n}\n\n.section {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-4);\n min-width: 0;\n padding: var(--panneau-space-4) var(--panneau-space-5);\n background-color: var(--panneau-color-surface);\n border: var(--panneau-border-width) solid var(--panneau-color-border);\n border-radius: var(--panneau-radius-lg);\n}\n\n@container panneau-form (max-width: 36rem) {\n .section {\n padding: var(--panneau-space-3);\n }\n}\n\n.sectionHeader {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-1);\n}\n\n.sectionDescription {\n margin: 0;\n}\n\n.sectionTitle {\n display: flex;\n align-items: center;\n gap: var(--panneau-space-2);\n font-size: var(--panneau-font-size-lg);\n font-weight: var(--panneau-font-weight-bold);\n line-height: var(--panneau-line-height-tight);\n margin: 0;\n}\n\n.sectionDescription,\n.text {\n font-size: var(--panneau-font-size-md);\n color: var(--panneau-color-text-muted);\n margin: 0;\n}\n\n.field {\n min-width: 0;\n scroll-margin: var(--panneau-space-10);\n}\n\n/* Sticks to the bottom of the window, above what the frame of the app puts there (a dock). */\n.footer {\n position: sticky;\n bottom: var(--panneau-frame-bottom, 0px);\n z-index: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: var(--panneau-space-2) var(--panneau-space-3);\n padding: var(--panneau-space-3) 0;\n background-color: var(--panneau-color-bg);\n border-top: var(--panneau-border-width) solid var(--panneau-color-border);\n}\n\n/* Beside the form, the `save` and `errors` panels of its sidebar take the place of the footer and\n of the summary at the top (decision 0075). The aside goes beside the form from 56rem. */\n@container panneau-form (min-width: 56rem) {\n /* Twice, over the display of the components it hides */\n .besideAsideHidden.besideAsideHidden {\n display: none;\n }\n}\n\n/* The state of the publication, at the top of its panel. */\n.publicationState {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--panneau-space-2);\n}\n\n/* The state of the form and its Save button, at the top of its sidebar. */\n.savePanel {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: var(--panneau-space-2) var(--panneau-space-3);\n}\n\n/* \"Unsaved changes\", \"Saved\" or the failure of the last save, next to the button. */\n.status {\n display: inline-flex;\n align-items: center;\n gap: var(--panneau-space-1);\n margin-inline-end: auto;\n font-size: var(--panneau-font-size-sm);\n color: var(--panneau-color-text-muted);\n}\n\n.statusError {\n color: var(--panneau-color-danger);\n}\n\n/* A new status comes in: it fades in and rises a little, as a toast does. */\n.statusText {\n display: inline-flex;\n align-items: center;\n gap: var(--panneau-space-1);\n animation: status-in var(--panneau-duration-slow) var(--panneau-ease-out);\n}\n\n@keyframes status-in {\n from {\n opacity: 0;\n transform: translateY(0.25rem);\n }\n}\n\n.summary:focus {\n outline: var(--panneau-focus-width) solid var(--panneau-color-focus);\n outline-offset: 2px;\n}\n\n.summaryList {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-1);\n margin: 0;\n padding-inline-start: var(--panneau-space-5);\n}\n\n.summaryLink {\n padding: 0;\n font: inherit;\n color: inherit;\n text-align: start;\n text-decoration: underline;\n cursor: pointer;\n background: none;\n border: 0;\n}\n\n.summaryLink:focus-visible {\n outline: var(--panneau-focus-width) solid var(--panneau-color-focus);\n outline-offset: 2px;\n}\n\n@container panneau-form (max-width: 36rem) {\n .footer > :not(.status) {\n flex: 1 1 auto;\n }\n}\n\n/* The skeleton of a form whose values load. */\n.skeletonField {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-space-1);\n}\n\n.skeletonInline {\n display: flex;\n align-items: center;\n gap: var(--panneau-space-2);\n}\n\n.skeletonLabel {\n font-size: var(--panneau-font-size-sm);\n}\n\n.skeletonTabs {\n display: flex;\n gap: var(--panneau-space-5);\n padding-block: var(--panneau-space-2);\n border-bottom: var(--panneau-border-width) solid var(--panneau-color-border);\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveControls.d.ts","sourceRoot":"","sources":["../../src/panels/SaveControls.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO/C,MAAM,WAAW,SAAS;IACtB,uFAAuF;IACvF,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC;IAC7C,YAAY,EAAE,OAAO,CAAC;IACtB,gDAAgD;IAChD,OAAO,EAAE,SAAS,CAAC;IACnB,6DAA6D;IAC7D,WAAW,EAAE,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IACzB,0FAA0F;IAC1F,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjC,MAAM,EAAE,SAAS,KAAK,EAAE,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,wEAAwE;AACxE,eAAO,MAAM,WAAW,2CAAwC,CAAC;AAEjE,0EAA0E;AAC1E,eAAO,MAAM,cAAc,8CAA2C,CAAC;AAEvE;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,SAAS,+
|
|
1
|
+
{"version":3,"file":"SaveControls.d.ts","sourceRoot":"","sources":["../../src/panels/SaveControls.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO/C,MAAM,WAAW,SAAS;IACtB,uFAAuF;IACvF,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC;IAC7C,YAAY,EAAE,OAAO,CAAC;IACtB,gDAAgD;IAChD,OAAO,EAAE,SAAS,CAAC;IACnB,6DAA6D;IAC7D,WAAW,EAAE,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IACzB,0FAA0F;IAC1F,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjC,MAAM,EAAE,SAAS,KAAK,EAAE,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,wEAAwE;AACxE,eAAO,MAAM,WAAW,2CAAwC,CAAC;AAEjE,0EAA0E;AAC1E,eAAO,MAAM,cAAc,8CAA2C,CAAC;AAEvE;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,SAAS,+BA4CrF"}
|
|
@@ -34,7 +34,10 @@ function SaveControls(t0) {
|
|
|
34
34
|
} else t3 = $[2];
|
|
35
35
|
let t4;
|
|
36
36
|
if ($[3] !== intl || $[4] !== status) {
|
|
37
|
-
t4 = status
|
|
37
|
+
t4 = status !== null ? /* @__PURE__ */ jsx("span", {
|
|
38
|
+
className: Form_module_default.statusText,
|
|
39
|
+
children: status === "error" ? intl.formatMessage(messages.saveFailed) : status === "unsaved" ? intl.formatMessage(messages.unsaved) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Icon, { icon: CircleCheck }), intl.formatMessage(messages.saved)] })
|
|
40
|
+
}, status) : null;
|
|
38
41
|
$[3] = intl;
|
|
39
42
|
$[4] = status;
|
|
40
43
|
$[5] = t4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveControls.js","names":["CircleCheck","ReactNode","createContext","Field","Button","Icon","Tooltip","isApplePlatform","usePanneauIntl","styles","cx","messages","SaveState","status","isSubmitting","actions","submitLabel","SummaryState","errors","Record","fields","onSelect","path","SaveContext","SummaryContext","SaveControls","t0","$","_c","intl","t1","Symbol","for","apple","t2","statusError","t3","t4","formatMessage","saveFailed","unsaved","saved","t5","t6","saveShortcut","modifier","save","t7","_c","styles","_Fragment"],"sources":["../../src/panels/SaveControls.tsx"],"sourcesContent":["import { CircleCheck } from 'lucide-react';\nimport { type ReactNode, createContext } from 'react';\n\nimport type { Field } from '@panneau/protocol';\nimport { Button, Icon, Tooltip, isApplePlatform, usePanneauIntl } from '@panneau/ui';\n\nimport styles from '../Form.module.css';\nimport { cx } from '../cx';\nimport { messages } from '../messages';\n\nexport interface SaveState {\n /** What the status says: the failure of the last save, unsaved changes, or \"Saved\". */\n status: 'error' | 'unsaved' | 'saved' | null;\n isSubmitting: boolean;\n /** The form's `actions`, next to its button. */\n actions: ReactNode;\n /** The label of the submit button, or `null` without one. */\n submitLabel: ReactNode;\n}\n\nexport interface SummaryState {\n /** Errors by path, in the order of their fields, after a failed save. Empty otherwise. */\n errors: Record<string, string[]>;\n fields: readonly Field[];\n onSelect: (path: string) => void;\n}\n\n/** What the `save` panel shows, from its `FormView` (decision 0075). */\nexport const SaveContext = createContext<SaveState | null>(null);\n\n/** What the `errors` panel shows, from its `FormView` (decision 0075). */\nexport const SummaryContext = createContext<SummaryState | null>(null);\n\n/**\n * The status of a form, its actions and its Save button: in its footer, or in the `save` panel of\n * its sidebar.\n */\nexport function SaveControls({ status, isSubmitting, actions, submitLabel }: SaveState) {\n const intl = usePanneauIntl();\n const apple = isApplePlatform();\n return (\n <>\n <span\n className={cx(styles.status, status === 'error' && styles.statusError)}\n role=\"status\"\n >\n {status === 'error' ? (\n
|
|
1
|
+
{"version":3,"file":"SaveControls.js","names":["CircleCheck","ReactNode","createContext","Field","Button","Icon","Tooltip","isApplePlatform","usePanneauIntl","styles","cx","messages","SaveState","status","isSubmitting","actions","submitLabel","SummaryState","errors","Record","fields","onSelect","path","SaveContext","SummaryContext","SaveControls","t0","$","_c","intl","t1","Symbol","for","apple","t2","statusError","t3","t4","statusText","formatMessage","saveFailed","unsaved","saved","t5","t6","saveShortcut","modifier","save","t7","_c","styles","_Fragment"],"sources":["../../src/panels/SaveControls.tsx"],"sourcesContent":["import { CircleCheck } from 'lucide-react';\nimport { type ReactNode, createContext } from 'react';\n\nimport type { Field } from '@panneau/protocol';\nimport { Button, Icon, Tooltip, isApplePlatform, usePanneauIntl } from '@panneau/ui';\n\nimport styles from '../Form.module.css';\nimport { cx } from '../cx';\nimport { messages } from '../messages';\n\nexport interface SaveState {\n /** What the status says: the failure of the last save, unsaved changes, or \"Saved\". */\n status: 'error' | 'unsaved' | 'saved' | null;\n isSubmitting: boolean;\n /** The form's `actions`, next to its button. */\n actions: ReactNode;\n /** The label of the submit button, or `null` without one. */\n submitLabel: ReactNode;\n}\n\nexport interface SummaryState {\n /** Errors by path, in the order of their fields, after a failed save. Empty otherwise. */\n errors: Record<string, string[]>;\n fields: readonly Field[];\n onSelect: (path: string) => void;\n}\n\n/** What the `save` panel shows, from its `FormView` (decision 0075). */\nexport const SaveContext = createContext<SaveState | null>(null);\n\n/** What the `errors` panel shows, from its `FormView` (decision 0075). */\nexport const SummaryContext = createContext<SummaryState | null>(null);\n\n/**\n * The status of a form, its actions and its Save button: in its footer, or in the `save` panel of\n * its sidebar.\n */\nexport function SaveControls({ status, isSubmitting, actions, submitLabel }: SaveState) {\n const intl = usePanneauIntl();\n const apple = isApplePlatform();\n return (\n <>\n <span\n className={cx(styles.status, status === 'error' && styles.statusError)}\n role=\"status\"\n >\n {status !== null ? (\n // Keyed by the status: each new one comes in with a short fade (decision 0081).\n <span key={status} className={styles.statusText}>\n {status === 'error' ? (\n intl.formatMessage(messages.saveFailed)\n ) : status === 'unsaved' ? (\n intl.formatMessage(messages.unsaved)\n ) : (\n <>\n <Icon icon={CircleCheck} />\n {intl.formatMessage(messages.saved)}\n </>\n )}\n </span>\n ) : null}\n </span>\n {actions}\n {submitLabel !== null ? (\n <Tooltip\n content={intl.formatMessage(messages.saveShortcut, {\n modifier: apple ? '⌘' : 'Ctrl',\n })}\n >\n <Button\n type=\"submit\"\n variant=\"primary\"\n isPending={isSubmitting}\n aria-keyshortcuts={apple ? 'Meta+Enter' : 'Control+Enter'}\n >\n {submitLabel ?? intl.formatMessage(messages.save)}\n </Button>\n </Tooltip>\n ) : null}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;AA4BA,IAAauB,cAAcrB,cAAgC,IAAI;;AAG/D,IAAasB,iBAAiBtB,cAAmC,IAAI;;;;;AAMrE,SAAOuB,aAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAsB,MAAA,EAAAf,QAAAC,cAAAC,SAAAC,gBAAAU;CACzB,MAAAG,OAAarB,eAAe;CAAE,IAAAsB;CAAA,IAAAH,EAAA,OAAAI,OAAAC,IAAA,2BAAA,GAAA;EAChBF,KAAAvB,gBAAgB;EAACoB,EAAA,KAAAG;CAAA,OAAAA,KAAAH,EAAA;CAA/B,MAAAM,QAAcH;CAI2B,MAAAI,KAAArB,WAAW,WAAWJ,oBAAM0B;CAAY,IAAAC;CAAA,IAAAT,EAAA,OAAAO,IAAA;EAA1DE,KAAA1B,GAAGD,oBAAMI,QAASqB,EAAwC;EAACP,EAAA,KAAAO;EAAAP,EAAA,KAAAS;CAAA,OAAAA,KAAAT,EAAA;CAAA,IAAAU;CAAA,IAAAV,EAAA,OAAAE,QAAAF,EAAA,OAAAd,QAAA;EAGrEwB,KAAAxB,WAAW,OAER,oBAAA,QAAA;GAA8B,WAAAJ,oBAAM6B;GAC/BzB,UAAAA,WAAW,UACRgB,KAAIU,cAAe5B,SAAQ6B,UAQ/B,IAPI3B,WAAW,YACXgB,KAAIU,cAAe5B,SAAQ8B,OAM/B,IAPI,qBAAAU,UAAA,EAAA,UAAA,CAII,oBAAC,MAAD,EAAYnD,MAAAA,YAAW,CAAA,GACtB6B,KAAIU,cAAe5B,SAAQ+B,KAAM,CAAC,EAAA,CAAA;EAGxC,GAXI7B,MAWJ,IAbV;EAcOc,EAAA,KAAAE;EAAAF,EAAA,KAAAd;EAAAc,EAAA,KAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,IAAAgB;CAAA,IAAAhB,EAAA,OAAAS,MAAAT,EAAA,OAAAU,IAAA;EAlBZM,KAAA,oBAAA,QAAA;GACe,WAAAP;GACN,MAAA;GAEJC,UAAAA;EAeE,CAAA;EAAAV,EAAA,KAAAS;EAAAT,EAAA,KAAAU;EAAAV,EAAA,KAAAgB;CAAA,OAAAA,KAAAhB,EAAA;CAAA,IAAAiB;CAAA,IAAAjB,EAAA,OAAAE,QAAAF,EAAA,QAAAb,gBAAAa,EAAA,QAAAX,aAAA;EAEN4B,KAAA5B,gBAAgB,OACb,oBAAC,SAAD;GACa,SAAAa,KAAIU,cAAe5B,SAAQkC,cAAe,EAAAC,UACrCb,QAAA,MAAA,OACd,CAAC;GAED,UAAA,oBAAC,QAAD;IACS,MAAA;IACG,SAAA;IACGnB,WAAAA;IACQ,qBAAAmB,QAAA,eAAA;IAElBjB,UAAAA,eAAea,KAAIU,cAAe5B,SAAQoC,IAAK;GAN7C,CAAA;EALH,CAAA,IADX;EAeOpB,EAAA,KAAAE;EAAAF,EAAA,MAAAb;EAAAa,EAAA,MAAAX;EAAAW,EAAA,MAAAiB;CAAA,OAAAA,KAAAjB,EAAA;CAAA,IAAAqB;CAAA,IAAArB,EAAA,QAAAZ,WAAAY,EAAA,QAAAgB,MAAAhB,EAAA,QAAAiB,IAAA;EArCZI,KAAA,qBAAAG,UAAA,EAAA,UAAA;GACIR;GAoBC5B;GACA6B;EAeO,EAAA,CAAA;EACTjB,EAAA,MAAAZ;EAAAY,EAAA,MAAAgB;EAAAhB,EAAA,MAAAiB;EAAAjB,EAAA,MAAAqB;CAAA,OAAAA,KAAArB,EAAA;CAAA,OAtCHqB;AAsCG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/forms",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.35",
|
|
4
4
|
"description": "Forms of Panneau: fields in a layout, driven by the form state of @panneau/core, with errors, unsaved changes and version conflicts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"react-intl": "^12.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@panneau/core": "5.0.0-alpha.
|
|
50
|
-
"@panneau/fields": "5.0.0-alpha.
|
|
51
|
-
"@panneau/intl": "5.0.0-alpha.
|
|
52
|
-
"@panneau/protocol": "5.0.0-alpha.
|
|
53
|
-
"@panneau/ui": "5.0.0-alpha.
|
|
49
|
+
"@panneau/core": "5.0.0-alpha.35",
|
|
50
|
+
"@panneau/fields": "5.0.0-alpha.35",
|
|
51
|
+
"@panneau/intl": "5.0.0-alpha.35",
|
|
52
|
+
"@panneau/protocol": "5.0.0-alpha.35",
|
|
53
|
+
"@panneau/ui": "5.0.0-alpha.35",
|
|
54
54
|
"lucide-react": "^1.57.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@panneau/data": "5.0.0-alpha.
|
|
58
|
-
"@panneau/editor": "5.0.0-alpha.
|
|
57
|
+
"@panneau/data": "5.0.0-alpha.35",
|
|
58
|
+
"@panneau/editor": "5.0.0-alpha.35"
|
|
59
59
|
}
|
|
60
60
|
}
|