@apolitical/component-library 4.4.0 → 4.5.0-beta.1
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/discussion/components/add-post/add-post.d.ts +3 -1
- package/discussion/components/discussion-form-card/discussion-form-card.d.ts +14 -0
- package/discussion/components/discussion-form-card/index.d.ts +1 -0
- package/discussion/components/form/components/guidelines/guidelines.d.ts +13 -0
- package/discussion/components/form/components/guidelines/index.d.ts +1 -0
- package/discussion/components/form/components/index.d.ts +2 -0
- package/discussion/components/form/components/label/index.d.ts +1 -0
- package/discussion/components/form/components/label/label.d.ts +13 -0
- package/discussion/components/form/form.d.ts +100 -64
- package/discussion/components/form/index.d.ts +1 -1
- package/discussion/components/index.d.ts +1 -0
- package/discussion/sections/activity-section/cache/hooks/edit/edit.hook.d.ts +2 -1
- package/form/components/form/components/fields/checkbox/checkbox.d.ts +1 -1
- package/form/components/form/components/fields/input/input.d.ts +1 -1
- package/form/components/form/form.d.ts +1 -1
- package/form/components/form/form.types.d.ts +9 -1
- package/form/components/form/index.d.ts +1 -0
- package/form/components/rich-text-editor/helpers/transform/transform.d.ts +1 -1
- package/helpers/intl.d.ts +6 -0
- package/helpers/urls.d.ts +1 -0
- package/index.js +54 -52
- package/index.mjs +23502 -23304
- package/modals/discussion-form-modal/discussion-form-modal.d.ts +13 -0
- package/modals/discussion-form-modal/index.d.ts +1 -0
- package/modals/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_overlays.scss +8 -0
- package/styles/base/_text.scss +1 -1
- package/styles/variables/colors/theme/_discussion.scss +4 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type IDiscussionForm } from '../../discussion';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** Whether the modal is open on page load */
|
|
4
|
+
showModal?: boolean;
|
|
5
|
+
/** Function to call when the modal is closed */
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
/** Props for the DiscussionForm component */
|
|
8
|
+
form: IDiscussionForm;
|
|
9
|
+
/** Additional classes */
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const DiscussionFormModal: ({ showModal, onClose, form, className, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default DiscussionFormModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DiscussionFormModal } from './discussion-form-modal';
|
package/modals/index.d.ts
CHANGED