@gridui/modal 2.2.0 → 3.0.0
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/README.md +11 -4
- package/dist/index.js +2 -1
- package/dist/index.js.map +2 -2
- package/dist/modal-actions/modal-actions.d.ts +4 -1
- package/dist/modal-panel/modal-panel.d.ts +2 -0
- package/dist/styles.css +58 -68
- package/docs/catalog.json +6 -6
- package/docs/reference/modal-action.md +8 -8
- package/docs/reference/modal-actions.md +8 -2
- package/docs/reference/modal-body.md +2 -2
- package/docs/reference/modal-close.md +2 -2
- package/docs/reference/modal-description.md +2 -2
- package/docs/reference/modal-footer-note.md +1 -1
- package/docs/reference/modal-footer.md +2 -2
- package/docs/reference/modal-header.md +2 -2
- package/docs/reference/modal-panel.md +6 -2
- package/docs/reference/modal-title.md +2 -2
- package/docs/reference/modal-trigger.md +2 -2
- package/docs/reference/modal.md +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @gridui/modal
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Overlays family. Public API: `Modal`, `ModalAction`, `ModalActionProps`, `ModalActions`, `ModalActionsProps`, `ModalBody`, `ModalBodyProps`, `ModalClose`, `ModalCloseProps`, `ModalDescription`, `ModalDescriptionProps`, `ModalFooter`, `ModalFooterNote`, `ModalFooterNoteProps`, `ModalFooterProps`, `ModalHeader`, `ModalHeaderProps`, `ModalPanel`, `ModalPanelProps`, `ModalProps`, `ModalSectionProps`, `ModalSpace`, `ModalSpacing`, `ModalTitle`, `ModalTitleProps`, `ModalTrigger`, `ModalTriggerProps`.
|
|
4
4
|
|
|
5
5
|
Import components from `@gridui/modal` and load `@gridui/modal/styles.css` after Theme.
|
|
6
6
|
Applications own routes, labels, state persistence, and branding.
|
|
7
7
|
|
|
8
|
-
See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-
|
|
8
|
+
See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-overlays/modal/.changeset/history).
|
|
9
9
|
|
|
10
10
|
## Styles
|
|
11
11
|
|
|
@@ -99,11 +99,18 @@ Surface motion uses `@gridui/overlay`; its styles are included.
|
|
|
99
99
|
|
|
100
100
|
Shared animation policy and tempo come from `MotionConfig` in `@gridui/motion`.
|
|
101
101
|
Disabled or reduced-motion policy settles decoration without disabling interaction.
|
|
102
|
-
See the [motion guide](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-
|
|
102
|
+
See the [motion guide](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-foundation/motion)
|
|
103
103
|
for CSS scopes, portal behavior, and specialized timing contracts.
|
|
104
104
|
|
|
105
105
|
## Local color scopes
|
|
106
106
|
|
|
107
107
|
Pass `container` to the portaled panel/content to mount it in a local
|
|
108
|
-
`data-gridui-
|
|
108
|
+
`data-gridui-color-variant` region. Dialog panels use that host for their backdrop too.
|
|
109
109
|
The default remains `document.body`; React ancestry does not determine CSS inheritance.
|
|
110
|
+
|
|
111
|
+
## Sizing and density
|
|
112
|
+
|
|
113
|
+
ModalPanel accepts CSS width independently of trigger/action geometry. ModalActions supplies a ButtonGroup size default and ModalAction inherits Button size. Header close-cell stretching and explicit section spacing remain structural choices.
|
|
114
|
+
|
|
115
|
+
See the [shared sizing contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/sizing.md)
|
|
116
|
+
for native attributes, scope precedence, tokens and target behavior.
|
package/dist/index.js
CHANGED
|
@@ -215,6 +215,7 @@ var ModalPanel = (props) => {
|
|
|
215
215
|
const motionStyle = useMotionStyle();
|
|
216
216
|
const {
|
|
217
217
|
className,
|
|
218
|
+
width,
|
|
218
219
|
forceMount,
|
|
219
220
|
container,
|
|
220
221
|
...restProps
|
|
@@ -226,7 +227,7 @@ var ModalPanel = (props) => {
|
|
|
226
227
|
...restProps,
|
|
227
228
|
forceMount,
|
|
228
229
|
className: cn8(overlaySurfaceStyles({ kind: "dialog" }), "gridui-modal-panel gridui-u-modal--fixed gridui-u-modal--z-(--gridui-z-dialog) gridui-u-modal--left-1/2 gridui-u-modal--top-1/2 gridui-u-modal---translate-x-1/2 gridui-u-modal---translate-y-1/2 gridui-u-modal--flex gridui-u-modal--flex-col gridui-u-modal--w-[min(calc(100%-32px),var(--gridui-modal-width,37rem))] gridui-u-modal--max-h-[calc(100dvh-32px)] gridui-u-modal--min-w-0 gridui-u-modal--type-body", className),
|
|
229
|
-
style: { ...restProps.style, ...motionStyle }
|
|
230
|
+
style: { width, ...restProps.style, ...motionStyle }
|
|
230
231
|
}
|
|
231
232
|
);
|
|
232
233
|
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/modal/modal.tsx", "../src/modal-action/modal-action.tsx", "../src/modal-actions/modal-actions.tsx", "../src/modal-body/modal-body.tsx", "../src/modal-close/modal-close.tsx", "../src/modal-description/modal-description.tsx", "../src/modal-footer/modal-footer.tsx", "../src/modal-footer-note/modal-footer-note.tsx", "../src/modal-header/modal-header.tsx", "../src/modal-panel/modal-panel.tsx", "../src/modal-title/modal-title.tsx", "../src/modal-trigger/modal-trigger.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * @author WMXPY\n * @package Modal\n * @namespace Modal\n * @description Modal\n */\n\nimport { OverlayOpen, useOverlayState } from \"@gridui/overlay\";\nimport { type Space } from \"@gridui/style-utils/responsive\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalSpace = Space;\n\nexport type ModalProps = ComponentPropsWithRef<typeof Dialog.Root>;\n\nexport const Modal: FC<ModalProps> = (props: ModalProps) => {\n const state = useOverlayState(props);\n return (<OverlayOpen.Provider\n value={state.open}\n >\n <Dialog.Root\n {...props}\n {...state}\n />\n </OverlayOpen.Provider>);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalAction\n * @description Modal Action\n */\n\nimport { Button, type ButtonProps } from \"@gridui/button\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC } from \"react\";\n\nexport type ModalActionProps = ButtonProps;\n\nexport const ModalAction: FC<ModalActionProps> = (props: ModalActionProps) => {\n const { className, ...restProps } = props;\n return (<Button\n {...restProps}\n className={cn(\"gridui-modal-action\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalActions\n * @description Modal Actions\n */\n\nimport { ButtonGroup } from \"@gridui/button\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalActionsProps = ComponentPropsWithRef<\"div\">;\n\nexport const ModalActions: FC<ModalActionsProps> = (props: ModalActionsProps) => {\n const { className, ...restProps } = props;\n return (<ButtonGroup\n layout=\"cells\"\n {...restProps}\n className={cn(\"gridui-modal-actions\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalBody\n * @description Modal Body\n */\n\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalBodyProps = ComponentPropsWithRef<\"div\">;\n\nexport const ModalBody: FC<ModalBodyProps> = (props: ModalBodyProps) => {\n const { ref: forwardedRef, className, tabIndex = 0, ...restProps } = props;\n const scrollbarRef = useScrollbars({ ref: forwardedRef });\n const ref = useInteractionOutline({ ref: scrollbarRef });\n return (<div\n {...restProps}\n ref={ref}\n tabIndex={tabIndex}\n className={cn(\"gridui-u-modal--min-h-0 gridui-u-modal--min-w-0 gridui-u-modal--overflow-auto gridui-u-modal--overscroll-contain gridui-u-modal--p-gridui-24 gridui-u-modal--wrap-anywhere\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalClose\n * @description Modal Close\n */\n\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalCloseProps = ComponentPropsWithRef<typeof Dialog.Close>;\n\nexport const ModalClose: FC<ModalCloseProps> = (props: ModalCloseProps) => {\n return (<Dialog.Close\n {...props}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalDescription\n * @description Modal Description\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalDescriptionProps = ComponentPropsWithRef<typeof Dialog.Description>;\n\nexport const ModalDescription: FC<ModalDescriptionProps> = (props: ModalDescriptionProps) => {\n const {\n className,\n ...restProps\n } = props;\n return (<Dialog.Description\n {...restProps}\n className={cn(\"gridui-u-modal--mt-gridui-8 gridui-u-modal--mb-0 gridui-u-modal--type-supporting gridui-u-modal--text-muted\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalFooter\n * @description Modal Footer\n */\n\nimport type { ModalSectionProps } from \"../shared/types\";\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport { spacingVariables } from \"@gridui/style-utils/responsive\";\nimport type { FC } from \"react\";\n\nexport type ModalFooterProps = ModalSectionProps;\n\nexport const ModalFooter: FC<ModalFooterProps> = (props: ModalFooterProps) => {\n const {\n ref: forwardedRef,\n paddingBlock = 24,\n style,\n className,\n ...restProps\n } = props;\n const outlineRef = useInteractionOutline({ ref: forwardedRef });\n const ref = useScrollbars({ ref: outlineRef });\n return (<div\n {...restProps}\n ref={ref}\n style={{\n ...spacingVariables(\"modal-space\", paddingBlock),\n ...style,\n }}\n className={cn(\"gridui-modal-section gridui-modal-footer gridui-u-modal--max-h-[40dvh] gridui-u-modal--overflow-y-auto gridui-u-modal--shrink-0\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalFooterNote\n * @description Modal Footer Note\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalFooterNoteProps = ComponentPropsWithRef<\"div\">;\n\nexport const ModalFooterNote: FC<ModalFooterNoteProps> = (props: ModalFooterNoteProps) => {\n const { className, ...restProps } = props;\n return (<div\n {...restProps}\n className={cn(\"gridui-u-modal--min-w-0 gridui-u-modal--px-gridui-24 gridui-u-modal--py-(--gridui-modal-padding) gridui-u-modal--type-supporting gridui-u-modal--text-muted gridui-u-modal--wrap-anywhere\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalHeader\n * @description Modal Header\n */\n\nimport type { ModalSectionProps } from \"../shared/types\";\nimport { Button } from \"@gridui/button\";\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport { spacingVariables } from \"@gridui/style-utils/responsive\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type ModalHeaderProps = ModalSectionProps & {\n readonly closeLabel: string;\n};\n\nexport const ModalHeader: FC<ModalHeaderProps> = (props: ModalHeaderProps) => {\n const {\n closeLabel,\n children,\n paddingBlock = 24,\n style,\n className,\n ...restProps\n } = props;\n const scrollbarRef = useScrollbars<HTMLDivElement>();\n const scrollRef = useInteractionOutline({ ref: scrollbarRef });\n return (<div\n {...restProps}\n style={{\n ...spacingVariables(\"modal-space\", paddingBlock),\n ...style,\n }}\n className={cn(\"gridui-modal-section gridui-modal-header gridui-u-modal--relative gridui-u-modal--z-(--gridui-z-content) gridui-u-modal--overflow-visible gridui-u-modal--shrink-0 gridui-u-modal--grid gridui-u-modal--grid-cols-[minmax(0,1fr)_auto]\", className)}\n >\n <div\n ref={scrollRef}\n className=\"gridui-u-modal--max-h-[40dvh] gridui-u-modal--min-w-0 gridui-u-modal--overflow-y-auto gridui-u-modal--px-gridui-24 gridui-u-modal--py-(--gridui-modal-padding) gridui-u-modal--wrap-anywhere\"\n >\n {children}\n </div>\n <Dialog.Close\n asChild\n >\n <Button\n aria-label={closeLabel}\n variant=\"quiet\"\n className=\"gridui-modal-close gridui-u-modal--self-stretch gridui-u-modal--w-gridui-64 gridui-u-modal--min-h-11 gridui-u-modal--rounded-none gridui-u-modal--border-border gridui-u-modal--p-0\"\n >\n <X\n aria-hidden=\"true\"\n />\n </Button>\n </Dialog.Close>\n </div>);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalPanel\n * @description Modal Panel\n */\n\nimport { useMotionStyle } from \"@gridui/motion/policy\";\n/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalPanel\n * @description Modal Panel\n */\n\nimport { interactionLayerProps, overlayBackdropStyles, overlaySurfaceStyles, RetainedLayer } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalPanelProps = ComponentPropsWithRef<typeof Dialog.Content> & {\n readonly container?: ComponentPropsWithRef<typeof Dialog.Portal>[\"container\"];\n};\n\nexport const ModalPanel: FC<ModalPanelProps> = (props: ModalPanelProps) => {\n const motionStyle = useMotionStyle();\n const {\n className,\n forceMount,\n container,\n ...restProps\n } = props;\n const content = (<Dialog.Content\n {...interactionLayerProps}\n {...restProps}\n forceMount={forceMount}\n className={cn(overlaySurfaceStyles({ kind: \"dialog\" }), \"gridui-modal-panel gridui-u-modal--fixed gridui-u-modal--z-(--gridui-z-dialog) gridui-u-modal--left-1/2 gridui-u-modal--top-1/2 gridui-u-modal---translate-x-1/2 gridui-u-modal---translate-y-1/2 gridui-u-modal--flex gridui-u-modal--flex-col gridui-u-modal--w-[min(calc(100%-32px),var(--gridui-modal-width,37rem))] gridui-u-modal--max-h-[calc(100dvh-32px)] gridui-u-modal--min-w-0 gridui-u-modal--type-body\", className)}\n style={{ ...(restProps.style), ...motionStyle }}\n />);\n return (<>\n <Dialog.Portal container={container}>\n <Dialog.Overlay\n className={cn(overlayBackdropStyles(), \"gridui-modal-overlay gridui-u-modal--fixed gridui-u-modal--inset-0 gridui-u-modal--z-(--gridui-z-dialog-backdrop)\")}\n style={motionStyle}\n />\n </Dialog.Portal>\n <Dialog.Portal\n container={container}\n forceMount={forceMount}\n >\n {forceMount ? (<RetainedLayer>\n {content}\n </RetainedLayer>) : content}\n </Dialog.Portal>\n </>);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalTitle\n * @description Modal Title\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalTitleProps = ComponentPropsWithRef<typeof Dialog.Title>;\n\nexport const ModalTitle: FC<ModalTitleProps> = (props: ModalTitleProps) => {\n const { className, ...restProps } = props;\n return (<Dialog.Title\n {...restProps}\n className={cn(\"gridui-u-modal--m-0 gridui-u-modal--type-heading\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalTrigger\n * @description Modal Trigger\n */\n\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalTriggerProps = ComponentPropsWithRef<typeof Dialog.Trigger>;\n\nexport const ModalTrigger: FC<ModalTriggerProps> = (props: ModalTriggerProps) => {\n return (<Dialog.Trigger\n {...props}\n />);\n};\n"],
|
|
5
|
-
"mappings": ";AAOA,SAAS,aAAa,uBAAuB;AAC7C,OAA2B;AAC3B,YAAY,YAAY;AAYhB;AALD,IAAM,QAAwB,CAAC,UAAsB;AACxD,QAAM,QAAQ,gBAAgB,KAAK;AACnC,SAAQ;AAAA,IAAC,YAAY;AAAA,IAAZ;AAAA,MACL,OAAO,MAAM;AAAA,MAEb;AAAA,QAAQ;AAAA,QAAP;AAAA,UACI,GAAG;AAAA,UACH,GAAG;AAAA;AAAA,MACR;AAAA;AAAA,EACJ;AACJ;;;ACnBA,SAAS,cAAgC;AACzC,SAAS,UAAU;AAOP,gBAAAA,YAAA;AAFL,IAAM,cAAoC,CAAC,UAA4B;AAC1E,QAAM,EAAE,WAAW,GAAG,UAAU,IAAI;AACpC,SAAQ,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAW,GAAG,uBAAuB,SAAS;AAAA;AAAA,EAClD;AACJ;;;
|
|
4
|
+
"sourcesContent": ["/**\n * @author WMXPY\n * @package Modal\n * @namespace Modal\n * @description Modal\n */\n\nimport { OverlayOpen, useOverlayState } from \"@gridui/overlay\";\nimport { type Space } from \"@gridui/style-utils/responsive\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalSpace = Space;\n\nexport type ModalProps = ComponentPropsWithRef<typeof Dialog.Root>;\n\nexport const Modal: FC<ModalProps> = (props: ModalProps) => {\n const state = useOverlayState(props);\n return (<OverlayOpen.Provider\n value={state.open}\n >\n <Dialog.Root\n {...props}\n {...state}\n />\n </OverlayOpen.Provider>);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalAction\n * @description Modal Action\n */\n\nimport { Button, type ButtonProps } from \"@gridui/button\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC } from \"react\";\n\nexport type ModalActionProps = ButtonProps;\n\nexport const ModalAction: FC<ModalActionProps> = (props: ModalActionProps) => {\n const { className, ...restProps } = props;\n return (<Button\n {...restProps}\n className={cn(\"gridui-modal-action\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalActions\n * @description Modal Actions\n */\n\nimport type { ActionSize } from \"@gridui/theme\";\nimport { ButtonGroup } from \"@gridui/button\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalActionsProps = ComponentPropsWithRef<\"div\"> & { readonly size?: ActionSize };\n\nexport const ModalActions: FC<ModalActionsProps> = (props: ModalActionsProps) => {\n const { className, ...restProps } = props;\n return (<ButtonGroup\n layout=\"cells\"\n {...restProps}\n className={cn(\"gridui-modal-actions\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalBody\n * @description Modal Body\n */\n\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalBodyProps = ComponentPropsWithRef<\"div\">;\n\nexport const ModalBody: FC<ModalBodyProps> = (props: ModalBodyProps) => {\n const { ref: forwardedRef, className, tabIndex = 0, ...restProps } = props;\n const scrollbarRef = useScrollbars({ ref: forwardedRef });\n const ref = useInteractionOutline({ ref: scrollbarRef });\n return (<div\n {...restProps}\n ref={ref}\n tabIndex={tabIndex}\n className={cn(\"gridui-u-modal--min-h-0 gridui-u-modal--min-w-0 gridui-u-modal--overflow-auto gridui-u-modal--overscroll-contain gridui-u-modal--p-gridui-24 gridui-u-modal--wrap-anywhere\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalClose\n * @description Modal Close\n */\n\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalCloseProps = ComponentPropsWithRef<typeof Dialog.Close>;\n\nexport const ModalClose: FC<ModalCloseProps> = (props: ModalCloseProps) => {\n return (<Dialog.Close\n {...props}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalDescription\n * @description Modal Description\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalDescriptionProps = ComponentPropsWithRef<typeof Dialog.Description>;\n\nexport const ModalDescription: FC<ModalDescriptionProps> = (props: ModalDescriptionProps) => {\n const {\n className,\n ...restProps\n } = props;\n return (<Dialog.Description\n {...restProps}\n className={cn(\"gridui-u-modal--mt-gridui-8 gridui-u-modal--mb-0 gridui-u-modal--type-supporting gridui-u-modal--text-muted\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalFooter\n * @description Modal Footer\n */\n\nimport type { ModalSectionProps } from \"../shared/types\";\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport { spacingVariables } from \"@gridui/style-utils/responsive\";\nimport type { FC } from \"react\";\n\nexport type ModalFooterProps = ModalSectionProps;\n\nexport const ModalFooter: FC<ModalFooterProps> = (props: ModalFooterProps) => {\n const {\n ref: forwardedRef,\n paddingBlock = 24,\n style,\n className,\n ...restProps\n } = props;\n const outlineRef = useInteractionOutline({ ref: forwardedRef });\n const ref = useScrollbars({ ref: outlineRef });\n return (<div\n {...restProps}\n ref={ref}\n style={{\n ...spacingVariables(\"modal-space\", paddingBlock),\n ...style,\n }}\n className={cn(\"gridui-modal-section gridui-modal-footer gridui-u-modal--max-h-[40dvh] gridui-u-modal--overflow-y-auto gridui-u-modal--shrink-0\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalFooterNote\n * @description Modal Footer Note\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalFooterNoteProps = ComponentPropsWithRef<\"div\">;\n\nexport const ModalFooterNote: FC<ModalFooterNoteProps> = (props: ModalFooterNoteProps) => {\n const { className, ...restProps } = props;\n return (<div\n {...restProps}\n className={cn(\"gridui-u-modal--min-w-0 gridui-u-modal--px-gridui-24 gridui-u-modal--py-(--gridui-modal-padding) gridui-u-modal--type-supporting gridui-u-modal--text-muted gridui-u-modal--wrap-anywhere\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalHeader\n * @description Modal Header\n */\n\nimport type { ModalSectionProps } from \"../shared/types\";\nimport { Button } from \"@gridui/button\";\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport { spacingVariables } from \"@gridui/style-utils/responsive\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type ModalHeaderProps = ModalSectionProps & {\n readonly closeLabel: string;\n};\n\nexport const ModalHeader: FC<ModalHeaderProps> = (props: ModalHeaderProps) => {\n const {\n closeLabel,\n children,\n paddingBlock = 24,\n style,\n className,\n ...restProps\n } = props;\n const scrollbarRef = useScrollbars<HTMLDivElement>();\n const scrollRef = useInteractionOutline({ ref: scrollbarRef });\n return (<div\n {...restProps}\n style={{\n ...spacingVariables(\"modal-space\", paddingBlock),\n ...style,\n }}\n className={cn(\"gridui-modal-section gridui-modal-header gridui-u-modal--relative gridui-u-modal--z-(--gridui-z-content) gridui-u-modal--overflow-visible gridui-u-modal--shrink-0 gridui-u-modal--grid gridui-u-modal--grid-cols-[minmax(0,1fr)_auto]\", className)}\n >\n <div\n ref={scrollRef}\n className=\"gridui-u-modal--max-h-[40dvh] gridui-u-modal--min-w-0 gridui-u-modal--overflow-y-auto gridui-u-modal--px-gridui-24 gridui-u-modal--py-(--gridui-modal-padding) gridui-u-modal--wrap-anywhere\"\n >\n {children}\n </div>\n <Dialog.Close\n asChild\n >\n <Button\n aria-label={closeLabel}\n variant=\"quiet\"\n className=\"gridui-modal-close gridui-u-modal--self-stretch gridui-u-modal--w-gridui-64 gridui-u-modal--min-h-11 gridui-u-modal--rounded-none gridui-u-modal--border-border gridui-u-modal--p-0\"\n >\n <X\n aria-hidden=\"true\"\n />\n </Button>\n </Dialog.Close>\n </div>);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalPanel\n * @description Modal Panel\n */\n\nimport type { CSSProperties } from \"react\";\nimport { useMotionStyle } from \"@gridui/motion/policy\";\n/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalPanel\n * @description Modal Panel\n */\n\nimport { interactionLayerProps, overlayBackdropStyles, overlaySurfaceStyles, RetainedLayer } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalPanelProps = ComponentPropsWithRef<typeof Dialog.Content> & {\n readonly width?: CSSProperties[\"width\"];\n readonly container?: ComponentPropsWithRef<typeof Dialog.Portal>[\"container\"];\n};\n\nexport const ModalPanel: FC<ModalPanelProps> = (props: ModalPanelProps) => {\n const motionStyle = useMotionStyle();\n const {\n className,\n width,\n forceMount,\n container,\n ...restProps\n } = props;\n const content = (<Dialog.Content\n {...interactionLayerProps}\n {...restProps}\n forceMount={forceMount}\n className={cn(overlaySurfaceStyles({ kind: \"dialog\" }), \"gridui-modal-panel gridui-u-modal--fixed gridui-u-modal--z-(--gridui-z-dialog) gridui-u-modal--left-1/2 gridui-u-modal--top-1/2 gridui-u-modal---translate-x-1/2 gridui-u-modal---translate-y-1/2 gridui-u-modal--flex gridui-u-modal--flex-col gridui-u-modal--w-[min(calc(100%-32px),var(--gridui-modal-width,37rem))] gridui-u-modal--max-h-[calc(100dvh-32px)] gridui-u-modal--min-w-0 gridui-u-modal--type-body\", className)}\n style={{ width, ...(restProps.style), ...motionStyle }}\n />);\n return (<>\n <Dialog.Portal container={container}>\n <Dialog.Overlay\n className={cn(overlayBackdropStyles(), \"gridui-modal-overlay gridui-u-modal--fixed gridui-u-modal--inset-0 gridui-u-modal--z-(--gridui-z-dialog-backdrop)\")}\n style={motionStyle}\n />\n </Dialog.Portal>\n <Dialog.Portal\n container={container}\n forceMount={forceMount}\n >\n {forceMount ? (<RetainedLayer>\n {content}\n </RetainedLayer>) : content}\n </Dialog.Portal>\n </>);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalTitle\n * @description Modal Title\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalTitleProps = ComponentPropsWithRef<typeof Dialog.Title>;\n\nexport const ModalTitle: FC<ModalTitleProps> = (props: ModalTitleProps) => {\n const { className, ...restProps } = props;\n return (<Dialog.Title\n {...restProps}\n className={cn(\"gridui-u-modal--m-0 gridui-u-modal--type-heading\", className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Modal\n * @namespace ModalTrigger\n * @description Modal Trigger\n */\n\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ModalTriggerProps = ComponentPropsWithRef<typeof Dialog.Trigger>;\n\nexport const ModalTrigger: FC<ModalTriggerProps> = (props: ModalTriggerProps) => {\n return (<Dialog.Trigger\n {...props}\n />);\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": ["jsx", "cn", "jsx", "cn", "jsx", "Dialog", "jsx", "cn", "Dialog", "jsx", "useInteractionOutline", "useScrollbars", "cn", "jsx", "cn", "jsx", "Button", "useInteractionOutline", "useScrollbars", "cn", "spacingVariables", "Dialog", "jsx", "cn", "Dialog", "jsx", "jsxs", "cn", "Dialog", "jsx", "Dialog", "jsx"]
|
|
7
7
|
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* @namespace ModalActions
|
|
5
5
|
* @description Modal Actions
|
|
6
6
|
*/
|
|
7
|
+
import type { ActionSize } from "@gridui/theme";
|
|
7
8
|
import type { ComponentPropsWithRef, FC } from "react";
|
|
8
|
-
export type ModalActionsProps = ComponentPropsWithRef<"div"
|
|
9
|
+
export type ModalActionsProps = ComponentPropsWithRef<"div"> & {
|
|
10
|
+
readonly size?: ActionSize;
|
|
11
|
+
};
|
|
9
12
|
export declare const ModalActions: FC<ModalActionsProps>;
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
* @namespace ModalPanel
|
|
5
5
|
* @description Modal Panel
|
|
6
6
|
*/
|
|
7
|
+
import type { CSSProperties } from "react";
|
|
7
8
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
8
9
|
import type { ComponentPropsWithRef, FC } from "react";
|
|
9
10
|
export type ModalPanelProps = ComponentPropsWithRef<typeof Dialog.Content> & {
|
|
11
|
+
readonly width?: CSSProperties["width"];
|
|
10
12
|
readonly container?: ComponentPropsWithRef<typeof Dialog.Portal>["container"];
|
|
11
13
|
};
|
|
12
14
|
export declare const ModalPanel: FC<ModalPanelProps>;
|
package/dist/styles.css
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
|
-
@layer theme {
|
|
5
|
-
:root, :host {
|
|
6
|
-
--spacing: 0.25rem;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
4
|
@layer utilities {
|
|
10
5
|
.gridui-u-button--pointer-events-none {
|
|
11
6
|
pointer-events: none;
|
|
@@ -13,24 +8,13 @@
|
|
|
13
8
|
.gridui-u-button--inline-flex {
|
|
14
9
|
display: inline-flex;
|
|
15
10
|
}
|
|
11
|
+
.gridui-u-button--size-\(--_gridui-button-min\) {
|
|
12
|
+
width: var(--_gridui-button-min);
|
|
13
|
+
height: var(--_gridui-button-min);
|
|
14
|
+
}
|
|
16
15
|
.gridui-u-button--h-full {
|
|
17
16
|
height: 100%;
|
|
18
17
|
}
|
|
19
|
-
.gridui-u-button--h-gridui-control {
|
|
20
|
-
height: var(--gridui-control-min-height);
|
|
21
|
-
}
|
|
22
|
-
.gridui-u-button--min-h-18 {
|
|
23
|
-
min-height: calc(var(--spacing) * 18);
|
|
24
|
-
}
|
|
25
|
-
.gridui-u-button--min-h-gridui-control {
|
|
26
|
-
min-height: var(--gridui-control-min-height);
|
|
27
|
-
}
|
|
28
|
-
.gridui-u-button--min-h-gridui-control-large {
|
|
29
|
-
min-height: var(--gridui-control-min-height-large);
|
|
30
|
-
}
|
|
31
|
-
.gridui-u-button--min-h-gridui-control-small {
|
|
32
|
-
min-height: var(--gridui-control-min-height-small);
|
|
33
|
-
}
|
|
34
18
|
.gridui-u-button--w-fit {
|
|
35
19
|
width: fit-content;
|
|
36
20
|
}
|
|
@@ -40,14 +24,14 @@
|
|
|
40
24
|
.gridui-u-button--w-gridui-64 {
|
|
41
25
|
width: var(--gridui-space-64);
|
|
42
26
|
}
|
|
43
|
-
.gridui-u-button--w-gridui-control {
|
|
44
|
-
width: var(--gridui-control-min-height);
|
|
45
|
-
}
|
|
46
27
|
.gridui-u-button--w-gridui-control-large {
|
|
47
|
-
width: var(--gridui-control-min-height-large);
|
|
28
|
+
width: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
|
|
29
|
+
}
|
|
30
|
+
.gridui-u-button--w-gridui-control-medium {
|
|
31
|
+
width: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
|
|
48
32
|
}
|
|
49
33
|
.gridui-u-button--w-gridui-control-small {
|
|
50
|
-
width: var(--gridui-control-min-height-small);
|
|
34
|
+
width: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
|
|
51
35
|
}
|
|
52
36
|
.gridui-u-button--max-w-full {
|
|
53
37
|
max-width: 100%;
|
|
@@ -253,35 +237,10 @@
|
|
|
253
237
|
.gridui-u-button--\[\&_svg\]\:shrink-0 svg {
|
|
254
238
|
flex-shrink: 0;
|
|
255
239
|
}
|
|
256
|
-
.gridui-u-button--\[\&\.gridui-button-extra-large\]\:h-18.gridui-button-extra-large {
|
|
257
|
-
height: calc(var(--spacing) * 18);
|
|
258
|
-
}
|
|
259
|
-
.gridui-u-button--\[\&\.gridui-button-extra-large\]\:w-18.gridui-button-extra-large {
|
|
260
|
-
width: calc(var(--spacing) * 18);
|
|
261
|
-
}
|
|
262
|
-
.gridui-u-button--\[\&\.gridui-button-large\]\:h-gridui-control-large.gridui-button-large {
|
|
263
|
-
height: var(--gridui-control-min-height-large);
|
|
264
|
-
}
|
|
265
|
-
.gridui-u-button--\[\&\.gridui-button-large\]\:w-gridui-control-large.gridui-button-large {
|
|
266
|
-
width: var(--gridui-control-min-height-large);
|
|
267
|
-
}
|
|
268
|
-
.gridui-u-button--\[\&\.gridui-button-small\]\:h-gridui-control-small.gridui-button-small {
|
|
269
|
-
height: var(--gridui-control-min-height-small);
|
|
270
|
-
}
|
|
271
|
-
.gridui-u-button--\[\&\.gridui-button-small\]\:w-gridui-control-small.gridui-button-small {
|
|
272
|
-
width: var(--gridui-control-min-height-small);
|
|
273
|
-
}
|
|
274
|
-
@media (pointer: coarse) {
|
|
275
|
-
.gridui-u-button--pointer-coarse\:\[\&\.gridui-button-small\]\:h-gridui-control.gridui-button-small {
|
|
276
|
-
height: var(--gridui-control-min-height);
|
|
277
|
-
}
|
|
278
|
-
.gridui-u-button--pointer-coarse\:\[\&\.gridui-button-small\]\:w-gridui-control.gridui-button-small {
|
|
279
|
-
width: var(--gridui-control-min-height);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
240
|
}
|
|
283
241
|
@layer components {
|
|
284
242
|
.gridui-button {
|
|
243
|
+
min-height: var(--_gridui-button-min);
|
|
285
244
|
border: 1px solid transparent;
|
|
286
245
|
}
|
|
287
246
|
.gridui-button-cell {
|
|
@@ -327,8 +286,27 @@
|
|
|
327
286
|
transform: var(--gridui-motion-transform, translate(calc(-1 * var(--gridui-space-4)), calc(-1 * var(--gridui-space-4))));
|
|
328
287
|
}
|
|
329
288
|
}
|
|
289
|
+
.gridui-button-medium {
|
|
290
|
+
--_gridui-button-min: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
|
|
291
|
+
padding-block: var(--gridui-space-8);
|
|
292
|
+
padding-inline: var(--gridui-space-16);
|
|
293
|
+
}
|
|
294
|
+
.gridui-button-small {
|
|
295
|
+
--_gridui-button-min: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
|
|
296
|
+
padding-block: var(--gridui-space-4);
|
|
297
|
+
padding-inline: var(--gridui-space-8);
|
|
298
|
+
}
|
|
299
|
+
.gridui-button-large {
|
|
300
|
+
--_gridui-button-min: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
|
|
301
|
+
padding-block: var(--gridui-space-8);
|
|
302
|
+
padding-inline: var(--gridui-space-24);
|
|
303
|
+
}
|
|
304
|
+
.gridui-button-extra-large {
|
|
305
|
+
--_gridui-button-min: max(var(--gridui-control-min-height-extra-large), var(--gridui-target-min-size));
|
|
306
|
+
padding-block: var(--gridui-space-16);
|
|
307
|
+
padding-inline: var(--gridui-space-24);
|
|
308
|
+
}
|
|
330
309
|
.gridui-button-group {
|
|
331
|
-
--gridui-button-group-padding-block: var(--gridui-space-24);
|
|
332
310
|
container: gridui-button-group / inline-size;
|
|
333
311
|
min-width: 0;
|
|
334
312
|
}
|
|
@@ -371,12 +349,19 @@
|
|
|
371
349
|
min-width: 0;
|
|
372
350
|
}
|
|
373
351
|
.gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item] {
|
|
374
|
-
|
|
375
|
-
padding: var(--gridui-button-group-padding-block) var(--gridui-space-24);
|
|
352
|
+
padding-block: var(--gridui-button-group-padding-block, var(--_gridui-button-group-block, var(--gridui-space-8)));
|
|
376
353
|
border: 0;
|
|
377
354
|
border-radius: 0;
|
|
378
355
|
}
|
|
379
356
|
}
|
|
357
|
+
@layer components {
|
|
358
|
+
.gridui-button-group-items > [data-size="small"] {
|
|
359
|
+
--_gridui-button-group-block: var(--gridui-space-4);
|
|
360
|
+
}
|
|
361
|
+
.gridui-button-group-items > [data-size="extra-large"] {
|
|
362
|
+
--_gridui-button-group-block: var(--gridui-space-16);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
380
365
|
@property --tw-border-style {
|
|
381
366
|
syntax: "*";
|
|
382
367
|
inherits: false;
|
|
@@ -403,11 +388,6 @@
|
|
|
403
388
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
404
389
|
@layer properties;
|
|
405
390
|
@layer theme, base, components, utilities;
|
|
406
|
-
@layer theme {
|
|
407
|
-
:root, :host {
|
|
408
|
-
--spacing: 0.25rem;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
391
|
@layer utilities {
|
|
412
392
|
.gridui-u-overlay--z-\(--gridui-z-popover\) {
|
|
413
393
|
z-index: var(--gridui-z-popover);
|
|
@@ -422,9 +402,6 @@
|
|
|
422
402
|
width: var(--gridui-space-16);
|
|
423
403
|
height: var(--gridui-space-16);
|
|
424
404
|
}
|
|
425
|
-
.gridui-u-overlay--min-h-10 {
|
|
426
|
-
min-height: calc(var(--spacing) * 10);
|
|
427
|
-
}
|
|
428
405
|
.gridui-u-overlay--min-w-0 {
|
|
429
406
|
min-width: 0px;
|
|
430
407
|
}
|
|
@@ -463,15 +440,9 @@
|
|
|
463
440
|
.gridui-u-overlay--p-0 {
|
|
464
441
|
padding: 0px;
|
|
465
442
|
}
|
|
466
|
-
.gridui-u-overlay--p-gridui-8 {
|
|
467
|
-
padding: var(--gridui-space-8);
|
|
468
|
-
}
|
|
469
443
|
.gridui-u-overlay--px-gridui-8 {
|
|
470
444
|
padding-inline: var(--gridui-space-8);
|
|
471
445
|
}
|
|
472
|
-
.gridui-u-overlay--py-gridui-8 {
|
|
473
|
-
padding-block: var(--gridui-space-8);
|
|
474
|
-
}
|
|
475
446
|
.gridui-u-overlay--type-data {
|
|
476
447
|
font: var(--gridui-type-data);
|
|
477
448
|
font-family: var(--gridui-font-body);
|
|
@@ -578,6 +549,25 @@
|
|
|
578
549
|
animation: none;
|
|
579
550
|
}
|
|
580
551
|
}
|
|
552
|
+
.gridui-overlay-list {
|
|
553
|
+
--gridui-overlay-row-min: var(--gridui-control-min-height-medium);
|
|
554
|
+
--gridui-overlay-row-padding: var(--gridui-space-8);
|
|
555
|
+
}
|
|
556
|
+
.gridui-overlay-density-compact {
|
|
557
|
+
--gridui-overlay-row-min: var(--gridui-control-min-height-small);
|
|
558
|
+
--gridui-overlay-row-padding: var(--gridui-space-4);
|
|
559
|
+
}
|
|
560
|
+
.gridui-overlay-density-comfortable {
|
|
561
|
+
--gridui-overlay-row-min: var(--gridui-control-min-height-medium);
|
|
562
|
+
--gridui-overlay-row-padding: var(--gridui-space-8);
|
|
563
|
+
}
|
|
564
|
+
.gridui-overlay-list-item {
|
|
565
|
+
min-block-size: max(var(--gridui-overlay-row-min, var(--gridui-control-min-height-medium)), var(--gridui-target-min-size));
|
|
566
|
+
padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
|
|
567
|
+
}
|
|
568
|
+
.gridui-overlay-list-label {
|
|
569
|
+
padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
|
|
570
|
+
}
|
|
581
571
|
}
|
|
582
572
|
@property --tw-border-style {
|
|
583
573
|
syntax: "*";
|
package/docs/catalog.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/modal",
|
|
4
|
-
"version": "
|
|
5
|
-
"category": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"category": "overlays",
|
|
6
6
|
"description": "GridUI React modal",
|
|
7
7
|
"usage": "The centered modal shares Radix Dialog's focus and dismissal behavior with Drawer. Its header owns a title cell and a full-height close cell; its footer owns an optional note and edge-aligned action cells. Header and footer accept independent responsive `paddingBlock` values. The body owns content scrolling and defaults to `tabIndex={0}` so text-only content can be scrolled with the keyboard inside the focus scope. Supply a name when using a region role; native `tabIndex` overrides remain available. Small viewports stack footer actions below the note. See the composition example and API.",
|
|
8
8
|
"documentation": [
|
|
@@ -166,9 +166,9 @@
|
|
|
166
166
|
],
|
|
167
167
|
"styledImport": "@gridui/modal/styled",
|
|
168
168
|
"examples": [
|
|
169
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
170
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
171
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
172
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
169
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/composition.mdx",
|
|
170
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/forms-retention.mdx",
|
|
171
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/getting-started.mdx",
|
|
172
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx"
|
|
173
173
|
]
|
|
174
174
|
}
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -55,15 +55,15 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
55
55
|
|
|
56
56
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
57
57
|
|
|
58
|
-
###
|
|
58
|
+
### iconMotion
|
|
59
59
|
|
|
60
|
-
``"
|
|
60
|
+
``"none" | "outward" | null | undefined`` · Optional
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
### size
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
``ActionSize | undefined`` · Optional
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
Component size preset.
|
|
67
67
|
|
|
68
68
|
### variant
|
|
69
69
|
|
|
@@ -87,7 +87,7 @@ Layout within the containing region.
|
|
|
87
87
|
|
|
88
88
|
### startIconSize
|
|
89
89
|
|
|
90
|
-
``"
|
|
90
|
+
``"medium" | "large" | "extra-large" | undefined`` · Optional
|
|
91
91
|
|
|
92
92
|
### endIcon
|
|
93
93
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -55,3 +55,9 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
55
55
|
|
|
56
56
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
57
57
|
|
|
58
|
+
### size
|
|
59
|
+
|
|
60
|
+
``ActionSize | undefined`` · Optional
|
|
61
|
+
|
|
62
|
+
Component size preset.
|
|
63
|
+
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,7 +11,7 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
16
|
## API
|
|
17
17
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -117,6 +117,10 @@ Can be prevented.
|
|
|
117
117
|
Event handler called when auto-focusing on close.
|
|
118
118
|
Can be prevented.
|
|
119
119
|
|
|
120
|
+
### width
|
|
121
|
+
|
|
122
|
+
``Property.Width<string | number> | undefined`` · Optional
|
|
123
|
+
|
|
120
124
|
### container
|
|
121
125
|
|
|
122
126
|
``Element | DocumentFragment | null | undefined`` · Optional
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
package/docs/reference/modal.md
CHANGED
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/modal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "GridUI React modal",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"react-dom": "^19.2.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@gridui/button": "^
|
|
36
|
-
"@gridui/motion": "^1.0.
|
|
37
|
-
"@gridui/overlay": "^2.
|
|
38
|
-
"@gridui/style-utils": "^4.
|
|
39
|
-
"@gridui/theme": "^
|
|
35
|
+
"@gridui/button": "^6.0.0",
|
|
36
|
+
"@gridui/motion": "^1.0.3",
|
|
37
|
+
"@gridui/overlay": "^2.5.0",
|
|
38
|
+
"@gridui/style-utils": "^4.1.0",
|
|
39
|
+
"@gridui/theme": "^5.0.0",
|
|
40
40
|
"@radix-ui/react-dialog": "1.3.1",
|
|
41
|
-
"lucide-react": "1.
|
|
41
|
+
"lucide-react": "1.73.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@gridui-internal/configuration": "0.0.0-internal",
|