@procore/core-react 10.17.0 → 10.18.0-rc.4
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/.storybook/manager-head.html +2 -0
- package/dist/esm/components/Menu/Menu.d.ts +2 -2
- package/dist/esm/components/Modal/Modal.d.ts +1 -0
- package/dist/esm/components/Modal/Modal.js +4 -1
- package/dist/esm/components/Modal/Modal.js.map +1 -1
- package/dist/esm/components/Panel/Panel.d.ts +1 -0
- package/dist/esm/components/Panel/Panel.js +4 -1
- package/dist/esm/components/Panel/Panel.js.map +1 -1
- package/dist/esm/layouts/NextDetailPage/NextDetailPage.d.ts +1 -1
- package/dist/esm/layouts/NextDetailPage/NextDetailPage.js +2 -3
- package/dist/esm/layouts/NextDetailPage/NextDetailPage.js.map +1 -1
- package/dist/esm/layouts/NextDetailPage/NextDetailPage.styles.d.ts +0 -16
- package/dist/esm/layouts/NextDetailPage/NextDetailPage.styles.js +4 -26
- package/dist/esm/layouts/NextDetailPage/NextDetailPage.styles.js.map +1 -1
- package/dist/esm/layouts/NextDetailPage/NextDetailPage.types.d.ts +0 -33
- package/dist/esm/layouts/Section/Section.d.ts +4 -0
- package/dist/esm/layouts/{NextDetailPage/NextDetailPageSection.js → Section/Section.js} +10 -9
- package/dist/esm/layouts/Section/Section.js.map +1 -0
- package/dist/esm/layouts/Section/Section.styles.d.ts +19 -0
- package/dist/esm/layouts/Section/Section.styles.js +31 -0
- package/dist/esm/layouts/Section/Section.styles.js.map +1 -0
- package/dist/esm/layouts/Section/Section.types.d.ts +34 -0
- package/dist/esm/layouts/Section/Section.types.js +2 -0
- package/dist/esm/layouts/Section/Section.types.js.map +1 -0
- package/dist/esm/layouts/Section/index.d.ts +1 -0
- package/dist/esm/layouts/Section/index.js +2 -0
- package/dist/esm/layouts/Section/index.js.map +1 -0
- package/package.json +9 -8
- package/dist/esm/layouts/NextDetailPage/NextDetailPageSection.d.ts +0 -4
- package/dist/esm/layouts/NextDetailPage/NextDetailPageSection.js.map +0 -1
|
@@ -7,7 +7,7 @@ export declare const MenuHookContext: React.Context<MenuHook | null>;
|
|
|
7
7
|
export declare function useMenuHookContext(): MenuHook;
|
|
8
8
|
export declare const Menu_: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
export declare const Group: React.ForwardRefExoticComponent<DivAttributes & GroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export declare const Item: React.ForwardRefExoticComponent<Pick<DivAttributes & ItemProps, "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "selected" | "item" | "
|
|
10
|
+
export declare const Item: React.ForwardRefExoticComponent<Pick<DivAttributes & ItemProps, "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "selected" | "item" | "suggested" | "index"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export declare const Options: React.ForwardRefExoticComponent<OptionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export declare function Search({ className, i18nScope, placeholder, ...props }: MenuSearchProps): JSX.Element;
|
|
13
13
|
export declare namespace Search {
|
|
@@ -19,7 +19,7 @@ export declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.Ref
|
|
|
19
19
|
Footer: React.ForwardRefExoticComponent<DivAttributes & FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
Group: React.ForwardRefExoticComponent<DivAttributes & GroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
21
|
Header: React.ForwardRefExoticComponent<DivAttributes & HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
Item: React.ForwardRefExoticComponent<Pick<DivAttributes & ItemProps, "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "selected" | "item" | "
|
|
22
|
+
Item: React.ForwardRefExoticComponent<Pick<DivAttributes & ItemProps, "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "selected" | "item" | "suggested" | "index"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
Options: React.ForwardRefExoticComponent<OptionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
Search: typeof Search;
|
|
25
25
|
};
|
|
@@ -15,4 +15,5 @@ export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.R
|
|
|
15
15
|
Overlay: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
16
|
Scrim: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
17
|
State: (props: any) => JSX.Element;
|
|
18
|
+
Section: React.ForwardRefExoticComponent<import("../../layouts/Section/Section.types").SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
19
|
};
|
|
@@ -32,6 +32,7 @@ import { addSubcomponents } from '../../utils/addSubcomponents';
|
|
|
32
32
|
import { Button } from '../Button';
|
|
33
33
|
import { Portal } from '../Portal';
|
|
34
34
|
import { StyledModal, StyledModalBody, StyledModalButtons, StyledModalCancel, StyledModalContainer, StyledModalContent, StyledModalFooter, StyledModalFooterNotation, StyledModalHeader, StyledModalHeading, StyledModalScrim, StyledModalWarningIcon, fadeInClassName, fadeOutClassName, StyledModalFooterSummary, } from './Modal.styles';
|
|
35
|
+
import { Section, SectionProvider } from '../../layouts/Section';
|
|
35
36
|
function noop() { }
|
|
36
37
|
var ModalContext = React.createContext({
|
|
37
38
|
isBodyScrolled: false,
|
|
@@ -61,7 +62,8 @@ var ModalBody = React.forwardRef(function (_a, ref) {
|
|
|
61
62
|
},
|
|
62
63
|
scope: scrollRef,
|
|
63
64
|
});
|
|
64
|
-
return (React.createElement(
|
|
65
|
+
return (React.createElement(SectionProvider, null,
|
|
66
|
+
React.createElement(StyledModalBody, __assign({}, props, { isOverflowingY: isOverflowingY, noSideSpacing: noSideSpacing, ref: mergeRefs(overflowRef, scrollRef, ref) }), children)));
|
|
65
67
|
});
|
|
66
68
|
var ModalFooterSummary = React.forwardRef(function (_a, ref) {
|
|
67
69
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
@@ -136,5 +138,6 @@ export var Modal = addSubcomponents({
|
|
|
136
138
|
Overlay: Overlay,
|
|
137
139
|
Scrim: Scrim,
|
|
138
140
|
State: State,
|
|
141
|
+
Section: Section,
|
|
139
142
|
}, Modal_);
|
|
140
143
|
//# sourceMappingURL=Modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAE/D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,GACzB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IACJ,SAAS,WAAA;IACT,OAAO,SAAA;IACP,MAAM,QAAA;IACN,aAAa,eAAA;IACb,cAAc,gBAAA;IACd,aAAa,eAAA;IACb,MAAM,QAAA;IACN,OAAO,SAAA;IACP,KAAK,OAAA;IACL,KAAK,OAAA;IACL,OAAO,SAAA;CACR,EACD,MAAM,CACP,CAAA"}
|
|
@@ -16,6 +16,7 @@ export declare const Panel: React.ForwardRefExoticComponent<DivAttributes & Reac
|
|
|
16
16
|
HeaderActions: React.ForwardRefExoticComponent<DivAttributes & {
|
|
17
17
|
qa?: Pick<PanelQaTags, "moreIcon"> | undefined;
|
|
18
18
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Section: React.ForwardRefExoticComponent<import("../../layouts/Section/Section.types").SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
20
|
Title: React.ForwardRefExoticComponent<TypographyProps & {
|
|
20
21
|
qa?: Pick<PanelQaTags, "title"> | undefined;
|
|
21
22
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -32,6 +32,7 @@ import { Menu } from '../Menu';
|
|
|
32
32
|
import { OverlayTrigger } from '../OverlayTrigger';
|
|
33
33
|
import { Tooltip } from '../Tooltip';
|
|
34
34
|
import { StyledBody, StyledFooter, StyledFooterActions, StyledFooterNotation, StyledHeader, StyledHeaderActions, StyledHeaderBackAction, StyledMoreMenu, StyledPanel, StyledTitle, } from './Panel.styles';
|
|
35
|
+
import { Section, SectionProvider } from '../../layouts/Section';
|
|
35
36
|
var maxVisibleIcons = 3;
|
|
36
37
|
var HeaderAction = React.forwardRef(function HeaderAction(_a, ref) {
|
|
37
38
|
var title = _a.title, children = _a.children, props = __rest(_a, ["title", "children"]);
|
|
@@ -85,7 +86,8 @@ var Header = React.forwardRef(function Header(_a, ref) {
|
|
|
85
86
|
});
|
|
86
87
|
var Body = React.forwardRef(function Body(_a, ref) {
|
|
87
88
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
88
|
-
return (React.createElement(
|
|
89
|
+
return (React.createElement(SectionProvider, null,
|
|
90
|
+
React.createElement(StyledBody, __assign({}, props, { ref: ref }), children)));
|
|
89
91
|
});
|
|
90
92
|
var FooterNotation = React.forwardRef(function FooterNotation(_a, ref) {
|
|
91
93
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
@@ -120,6 +122,7 @@ export var Panel = addSubcomponents({
|
|
|
120
122
|
Header: Header,
|
|
121
123
|
HeaderAction: HeaderAction,
|
|
122
124
|
HeaderActions: HeaderActions,
|
|
125
|
+
Section: Section,
|
|
123
126
|
Title: Title,
|
|
124
127
|
}, Panel_);
|
|
125
128
|
//# sourceMappingURL=Panel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.js","sourceRoot":"","sources":["../../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,EACL,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,WAAW,E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AAW,GAAG,oBAAoB,CAAA;AAC/C,aAAa,CAAC,WAAW,GAAG,qBAAqB,CAAA;AACjD,KAAK,CAAC,WAAW,GAAG,aAAa,CAAA;AAEjC,MAAM,CAAC,IAAM,KAAK,GAAG,gBAAgB,CACnC;IACE,IAAI,MAAA;IACJ,MAAM,QAAA;IACN,aAAa,eAAA;IACb,cAAc,gBAAA;IACd,MAAM,QAAA;IACN,YAAY,cAAA;IACZ,aAAa,eAAA;IACb,OAAO,SAAA;IACP,KAAK,OAAA;CACN,EACD,MAAM,CACP,CAAA"}
|
|
@@ -22,7 +22,7 @@ export declare const DetailPage: React.ForwardRefExoticComponent<DetailPageProps
|
|
|
22
22
|
Footer: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
FooterActions: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
FooterNotation: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
Section: React.ForwardRefExoticComponent<import("
|
|
25
|
+
Section: React.ForwardRefExoticComponent<import("../Section/Section.types").SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
Body: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
27
27
|
Aside: React.ForwardRefExoticComponent<import("../../utils/types").DivAttributes & React.RefAttributes<HTMLDivElement>>;
|
|
28
28
|
};
|
|
@@ -24,7 +24,7 @@ import React from 'react';
|
|
|
24
24
|
import { H1 } from '../../components/Semantic';
|
|
25
25
|
import { StyledDetailPageBody, StyledDetailPageFooterActions, StyledDetailPageFooterNotation, StyledDetailPageFooterContent, StyledDetailPageCard, StyledDetailPageFooter, } from './NextDetailPage.styles';
|
|
26
26
|
import { addSubcomponents } from '../../utils/addSubcomponents';
|
|
27
|
-
import {
|
|
27
|
+
import { Section, SectionProvider } from '../Section';
|
|
28
28
|
import { NextGrid } from '../NextGrid';
|
|
29
29
|
import { Page } from '../PageLayout';
|
|
30
30
|
import { gridConfig } from './NextDetailPage.constants';
|
|
@@ -66,7 +66,6 @@ Heading.displayName = 'DetailPage.Heading';
|
|
|
66
66
|
Body.displayName = 'DetailPage.Body';
|
|
67
67
|
Footer.displayName = 'DetailPage.Footer';
|
|
68
68
|
Card.displayName = 'DetailPage.Card';
|
|
69
|
-
DetailPageSection.displayName = 'DetailPage.Section';
|
|
70
69
|
export var DetailPage = addSubcomponents({
|
|
71
70
|
Main: Page.Main,
|
|
72
71
|
Header: Page.Header,
|
|
@@ -79,7 +78,7 @@ export var DetailPage = addSubcomponents({
|
|
|
79
78
|
Footer: Footer,
|
|
80
79
|
FooterActions: FooterActions,
|
|
81
80
|
FooterNotation: FooterNotation,
|
|
82
|
-
Section:
|
|
81
|
+
Section: Section,
|
|
83
82
|
Body: Body,
|
|
84
83
|
Aside: Page.Aside,
|
|
85
84
|
}, DetailPage_);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextDetailPage.js","sourceRoot":"","sources":["../../../../src/layouts/NextDetailPage/NextDetailPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAA;AAE9C,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAE/D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NextDetailPage.js","sourceRoot":"","sources":["../../../../src/layouts/NextDetailPage/NextDetailPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAA;AAE9C,OAAO,EACL,o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AA;AACH,CAAC,CAAC,CAAA;AAEF,WAAW,CAAC,WAAW,GAAG,YAAY,CAAA;AACtC,OAAO,CAAC,WAAW,GAAG,oBAAoB,CAAA;AAC1C,IAAI,CAAC,WAAW,GAAG,iBAAiB,CAAA;AACpC,MAAM,CAAC,WAAW,GAAG,mBAAmB,CAAA;AACxC,IAAI,CAAC,WAAW,GAAG,iBAAiB,CAAA;AAEpC,MAAM,CAAC,IAAM,UAAU,GAAG,gBAAgB,CACxC;IACE,IAAI,EAAE,IAAI,CAAC,IAAI;IACf,MAAM,EAAE,IAAI,CAAC,MAAM;IACnB,WAAW,EAAE,IAAI,CAAC,WAAW;IAC7B,IAAI,MAAA;IACJ,MAAM,EAAE,IAAI,CAAC,MAAM;IACnB,KAAK,EAAE,IAAI,CAAC,KAAK;IACjB,OAAO,SAAA;IACP,IAAI,EAAE,IAAI,CAAC,IAAI;IACf,MAAM,QAAA;IACN,aAAa,eAAA;IACb,cAAc,gBAAA;IACd,OAAO,SAAA;IACP,IAAI,MAAA;IACJ,KAAK,EAAE,IAAI,CAAC,KAAK;CAClB,EACD,WAAW,CACZ,CAAA"}
|
|
@@ -4,20 +4,4 @@ export declare const StyledDetailPageFooterNotation: import("styled-components")
|
|
|
4
4
|
export declare const StyledDetailPageFooter: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../utils/types").DivAttributes & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
5
5
|
export declare const StyledDetailPageFooterActions: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../utils/types").DivAttributes & import("../Box").BoxProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
6
6
|
export declare const StyledDetailPageFooterContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const StyledDetailPageSectionInner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const StyledDetailPageSectionCollapseHeading: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const StyledDetailPageSectionActions: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../utils/types").DivAttributes & import("../Box").BoxProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
10
|
-
export declare const StyledDetailPageSectionContentRegion: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
-
export declare const StyledDetailPageSectionHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
interface StyledSectionProps {
|
|
13
|
-
$divide: boolean;
|
|
14
|
-
$closed: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const sectionClassnames: {
|
|
17
|
-
divide: string;
|
|
18
|
-
levelAnonymous: string;
|
|
19
|
-
level: (num: number) => string;
|
|
20
|
-
};
|
|
21
|
-
export declare const StyledDetailPageSection: import("styled-components").StyledComponent<"div", any, StyledSectionProps, never>;
|
|
22
7
|
export declare const StyledDetailPageCard: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../utils/types").DivAttributes & import("../../components/Card").CardProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
23
|
-
export {};
|
|
@@ -2,11 +2,12 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import styled
|
|
5
|
+
import styled from 'styled-components';
|
|
6
6
|
import { Card } from '../../components/Card';
|
|
7
7
|
import { colors } from '../../styles/colors';
|
|
8
8
|
import { spacing } from '../../styles/spacing';
|
|
9
9
|
import { Page } from '../PageLayout';
|
|
10
|
+
import { sectionContentMinMargin, StyledSection, sectionClassnames, StyledSectionInner, } from '../Section/Section.styles';
|
|
10
11
|
import { Box } from '../Box';
|
|
11
12
|
import { getActions, StyledPageBanner, StyledPageTitle, } from '../PageLayout/PageLayout.styles';
|
|
12
13
|
export var StyledDetailPage = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 100%;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n"], ["\n background-color: ", ";\n height: 100%;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n"])), colors.gray96);
|
|
@@ -16,29 +17,6 @@ export var StyledDetailPageFooter = styled(Page.Footer)(templateObject_4 || (tem
|
|
|
16
17
|
export var StyledDetailPageFooterActions = styled(Box)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), getActions());
|
|
17
18
|
var maxFooterContentWidth = 1920;
|
|
18
19
|
export var StyledDetailPageFooterContent = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 100%;\n align-items: center;\n display: flex;\n justify-content: flex-end;\n padding: 0 ", "px;\n max-width: ", "px;\n"], ["\n width: 100%;\n align-items: center;\n display: flex;\n justify-content: flex-end;\n padding: 0 ", "px;\n max-width: ", "px;\n"])), spacing.xl, maxFooterContentWidth);
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var detailLayoutSectionContentMinMargin = detailLayoutSectionCollapseButtonWidth +
|
|
22
|
-
detailLayoutSectionCollapseButtonMargin * 2;
|
|
23
|
-
export var StyledDetailPageSectionInner = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n padding-bottom: ", "px;\n padding-top: ", "px;\n"], ["\n padding-bottom: ", "px;\n padding-top: ", "px;\n"])), spacing.xxl, spacing.xxl);
|
|
24
|
-
export var StyledDetailPageSectionCollapseHeading = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n position: absolute;\n left: ", "px;\n top: 0;\n"], ["\n position: absolute;\n left: ", "px;\n top: 0;\n"])), -1 *
|
|
25
|
-
(detailLayoutSectionCollapseButtonWidth +
|
|
26
|
-
detailLayoutSectionCollapseButtonMargin));
|
|
27
|
-
export var StyledDetailPageSectionActions = styled(Box)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), getActions());
|
|
28
|
-
export var StyledDetailPageSectionContentRegion = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject([""], [""])));
|
|
29
|
-
export var StyledDetailPageSectionHeader = styled.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n position: relative;\n // min-height on header for alignment:\n // - when heading line height is less than the collapse button height\n // - when heading line height is less than the button size it will shift\n // the heading text when the section is opened and buttons appear\n min-height: 36px;\n word-break: break-word;\n\n & + ", " {\n padding-top: 28px;\n }\n"], ["\n align-items: center;\n display: flex;\n position: relative;\n // min-height on header for alignment:\n // - when heading line height is less than the collapse button height\n // - when heading line height is less than the button size it will shift\n // the heading text when the section is opened and buttons appear\n min-height: 36px;\n word-break: break-word;\n\n & + ", " {\n padding-top: 28px;\n }\n"])), StyledDetailPageSectionContentRegion);
|
|
30
|
-
export var sectionClassnames = {
|
|
31
|
-
divide: 'section--divide',
|
|
32
|
-
levelAnonymous: 'section--level-anon',
|
|
33
|
-
level: function (num) { return "section--level-" + num; },
|
|
34
|
-
};
|
|
35
|
-
export var StyledDetailPageSection = styled.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n margin-left: auto;\n margin-right: auto;\n padding-left: ", "px; // space for a collapse button\n padding-right: ", "px;\n\n &:first-child {\n padding-top: ", "px;\n }\n\n &:last-child {\n padding-bottom: ", "px;\n }\n\n [data-jss-placeholder=\"form__row\"] + & {\n margin-top: ", "px;\n }\n\n [data-jss-placeholder=\"form__row\"]:last-of-type {\n margin-bottom: -28px;\n }\n\n ", "\n\n ", "\n}\n"], ["\n margin-left: auto;\n margin-right: auto;\n padding-left: ", "px; // space for a collapse button\n padding-right: ", "px;\n\n &:first-child {\n padding-top: ", "px;\n }\n\n &:last-child {\n padding-bottom: ", "px;\n }\n\n [data-jss-placeholder=\"form__row\"] + & {\n margin-top: ", "px;\n }\n\n [data-jss-placeholder=\"form__row\"]:last-of-type {\n margin-bottom: -28px;\n }\n\n ", "\n\n ", "\n}\n"])), detailLayoutSectionContentMinMargin, detailLayoutSectionContentMinMargin, spacing.lg, spacing.lg, spacing.xs, function (_a) {
|
|
36
|
-
var $closed = _a.$closed;
|
|
37
|
-
return $closed && css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", " {\n padding-top: 0;\n }\n "], ["\n ", " {\n padding-top: 0;\n }\n "])), StyledDetailPageSectionContentRegion);
|
|
38
|
-
}, function (_a) {
|
|
39
|
-
var $divide = _a.$divide;
|
|
40
|
-
return $divide && css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n & > ", " {\n border-top: 1px solid ", ";\n }\n "], ["\n & > ", " {\n border-top: 1px solid ", ";\n }\n "])), StyledDetailPageSectionInner, colors.gray85);
|
|
41
|
-
});
|
|
42
|
-
export var StyledDetailPageCard = styled(Card)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n margin-top: ", "px;\n width: 100%;\n\n & > ", " {\n padding: ", "px\n ", "px 0\n ", "px;\n max-width: 100%;\n\n &:empty {\n padding-top: ", "px;\n }\n }\n\n ", " ", " + ", " {\n margin-top: 0;\n }\n\n ", " ", " {\n margin-left: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n padding-top: 0;\n padding-bottom: 0;\n\n &:first-child,\n & + ", " {\n margin-top: 0;\n }\n\n &:last-child {\n & > ", " {\n padding-bottom: 0;\n }\n }\n }\n\n &\n > .", ":first-child\n > ", " {\n border-top: 0px;\n }\n &\n > ", "\n + ", "\n > ", " {\n border-top: 0;\n }\n\n // Solving if a card starts with:\n // - a single anonymous section\n // - a banner then a single anonymous section\n // and is followed by:\n // - a named section\n // then\n // - reduce the visual space\n .", ":first-child,\n ", "\n + .", " {\n & + .", ", & + .", " {\n & > ", " {\n margin-top: ", "px;\n }\n }\n }\n"], ["\n margin-top: ", "px;\n width: 100%;\n\n & > ", " {\n padding: ", "px\n ", "px 0\n ", "px;\n max-width: 100%;\n\n &:empty {\n padding-top: ", "px;\n }\n }\n\n ", " ", " + ", " {\n margin-top: 0;\n }\n\n ", " ", " {\n margin-left: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n padding-top: 0;\n padding-bottom: 0;\n\n &:first-child,\n & + ", " {\n margin-top: 0;\n }\n\n &:last-child {\n & > ", " {\n padding-bottom: 0;\n }\n }\n }\n\n &\n > .", ":first-child\n > ", " {\n border-top: 0px;\n }\n &\n > ", "\n + ", "\n > ", " {\n border-top: 0;\n }\n\n // Solving if a card starts with:\n // - a single anonymous section\n // - a banner then a single anonymous section\n // and is followed by:\n // - a named section\n // then\n // - reduce the visual space\n .", ":first-child,\n ", "\n + .", " {\n & + .", ", & + .", " {\n & > ", " {\n margin-top: ", "px;\n }\n }\n }\n"])), spacing.xl, StyledPageBanner, detailLayoutSectionContentMinMargin, detailLayoutSectionContentMinMargin, detailLayoutSectionContentMinMargin, spacing.sm, StyledDetailPageSection, StyledDetailPageSection, StyledDetailPageSection, StyledDetailPageSection, StyledDetailPageSection, detailLayoutSectionContentMinMargin * -1, detailLayoutSectionContentMinMargin * -1, spacing.xxl, StyledDetailPageSection, StyledDetailPageSectionInner, sectionClassnames.divide, StyledDetailPageSectionInner, StyledPageBanner, StyledDetailPageSection, StyledDetailPageSectionInner, sectionClassnames.levelAnonymous, StyledPageBanner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), sectionClassnames.level(3), StyledDetailPageSectionInner, spacing.xxl * -1);
|
|
43
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
20
|
+
export var StyledDetailPageCard = styled(Card)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-top: ", "px;\n width: 100%;\n\n & > ", " {\n padding: ", "px ", "px 0\n ", "px;\n max-width: 100%;\n\n &:empty {\n padding-top: ", "px;\n }\n }\n\n & > ", " + ", " > ", " {\n border-top: 0;\n }\n\n // Solving if a card starts with:\n // - a banner then a single anonymous section\n // and is followed by:\n // - a named section\n // then\n // - reduce the visual space\n ", "\n + .", " {\n & + .", ", & + .", " {\n & > ", " {\n margin-top: ", "px;\n }\n }\n }\n"], ["\n margin-top: ", "px;\n width: 100%;\n\n & > ", " {\n padding: ", "px ", "px 0\n ", "px;\n max-width: 100%;\n\n &:empty {\n padding-top: ", "px;\n }\n }\n\n & > ", " + ", " > ", " {\n border-top: 0;\n }\n\n // Solving if a card starts with:\n // - a banner then a single anonymous section\n // and is followed by:\n // - a named section\n // then\n // - reduce the visual space\n ", "\n + .", " {\n & + .", ", & + .", " {\n & > ", " {\n margin-top: ", "px;\n }\n }\n }\n"])), spacing.xl, StyledPageBanner, sectionContentMinMargin, sectionContentMinMargin, sectionContentMinMargin, spacing.sm, StyledPageBanner, StyledSection, StyledSectionInner, StyledPageBanner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), sectionClassnames.level(3), StyledSectionInner, spacing.xxl * -1);
|
|
21
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
44
22
|
//# sourceMappingURL=NextDetailPage.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextDetailPage.styles.js","sourceRoot":"","sources":["../../../../src/layouts/NextDetailPage/NextDetailPage.styles.ts"],"names":[],"mappings":";;;;AAAA,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"NextDetailPage.styles.js","sourceRoot":"","sources":["../../../../src/layouts/NextDetailPage/NextDetailPage.styles.ts"],"names":[],"mappings":";;;;AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAA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+BAGlB,EAAgB,mBACT,EAAuB,KAAM,EAAuB,cAC3D,EAAuB,iEAIV,EAAU,2BAIvB,EAAgB,KAAM,EAAa,KAAM,EAAkB,yNAU/D,EAAgB,SACb,EAAgC,eAC5B,EAA0B,SAAU,EAA0B,gBAC7D,EAAkB,0BACR,EAAgB,4BAIrC,KA/Be,OAAO,CAAC,EAAE,EAGlB,gBAAgB,EACT,uBAAuB,EAAM,uBAAuB,EAC3D,uBAAuB,EAIV,OAAO,CAAC,EAAE,EAIvB,gBAAgB,EAAM,aAAa,EAAM,kBAAkB,EAU/D,gBAAgB,EACb,iBAAiB,CAAC,cAAc,EAC5B,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAU,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,EAC7D,kBAAkB,EACR,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC,CAIrC,CAAA"}
|
|
@@ -6,36 +6,3 @@ export interface DetailPageProps extends Props {
|
|
|
6
6
|
*/
|
|
7
7
|
width?: DetailPageWidth;
|
|
8
8
|
}
|
|
9
|
-
export interface SectionProviderProps {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export interface SectionProps extends Props {
|
|
13
|
-
/**
|
|
14
|
-
* @description Actions of Buttons and Dropdowns to render. If a function, the open
|
|
15
|
-
state is provided as `open` key
|
|
16
|
-
*/
|
|
17
|
-
actions?: React.ReactNode | ((section: {
|
|
18
|
-
open: boolean;
|
|
19
|
-
}) => React.ReactNode);
|
|
20
|
-
/**
|
|
21
|
-
* @description Enable the expand and collapse accordion feature.
|
|
22
|
-
* Requires a unique ID across sections, unique within the provider (NextDetailPage.Card) and
|
|
23
|
-
* requires a heading on the section. Closed sections will not render its children.
|
|
24
|
-
*/
|
|
25
|
-
expandId?: string | number;
|
|
26
|
-
/**
|
|
27
|
-
* @description Heading text for the section
|
|
28
|
-
*/
|
|
29
|
-
heading?: string;
|
|
30
|
-
/**
|
|
31
|
-
* @description If expandable, start open or closed
|
|
32
|
-
*/
|
|
33
|
-
initialIsOpen?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface SectionContextAPI {
|
|
36
|
-
open: {
|
|
37
|
-
[id: string]: boolean;
|
|
38
|
-
};
|
|
39
|
-
setSection: (id: string | number, open: boolean) => void;
|
|
40
|
-
toggleSection: (id: string | number) => void;
|
|
41
|
-
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SectionProps, SectionProviderProps } from './Section.types';
|
|
3
|
+
export declare const SectionProvider: ({ children }: SectionProviderProps) => JSX.Element;
|
|
4
|
+
export declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -25,7 +25,7 @@ import React from 'react';
|
|
|
25
25
|
import { ulid } from 'ulid';
|
|
26
26
|
import { Button } from '../../components/Button';
|
|
27
27
|
import { H2, H3 } from '../../components/Semantic';
|
|
28
|
-
import {
|
|
28
|
+
import { StyledSection, StyledSectionInner, StyledSectionHeader, StyledSectionCollapseHeading, StyledSectionContentRegion, StyledSectionActions, sectionClassnames, } from './Section.styles';
|
|
29
29
|
var isFunction = function (obj) { return typeof obj === 'function'; };
|
|
30
30
|
// Header levels start at level 2
|
|
31
31
|
var LevelContext = React.createContext(2);
|
|
@@ -55,7 +55,7 @@ export var SectionProvider = function (_a) {
|
|
|
55
55
|
setSection: setSection,
|
|
56
56
|
} }, children));
|
|
57
57
|
};
|
|
58
|
-
export var
|
|
58
|
+
export var Section = React.forwardRef(function Section(_a, ref) {
|
|
59
59
|
var _b;
|
|
60
60
|
var actions = _a.actions, children = _a.children, className = _a.className, expandId = _a.expandId, heading = _a.heading, _c = _a.initialIsOpen, initialIsOpen = _c === void 0 ? true : _c, props = __rest(_a, ["actions", "children", "className", "expandId", "heading", "initialIsOpen"]);
|
|
61
61
|
var level = React.useContext(LevelContext);
|
|
@@ -81,19 +81,20 @@ export var DetailPageSection = React.forwardRef(function Section(_a, ref) {
|
|
|
81
81
|
var expandClosed = !open || !children;
|
|
82
82
|
var divide = level >= 3 || !heading;
|
|
83
83
|
return (React.createElement(LevelContext.Provider, { value: level + 1 },
|
|
84
|
-
React.createElement(
|
|
84
|
+
React.createElement(StyledSection, __assign({ ref: ref, className: cx(className, (_b = {},
|
|
85
85
|
_b[sectionClassnames.divide] = divide,
|
|
86
86
|
_b[sectionClassnames.levelAnonymous] = !heading,
|
|
87
87
|
_b[sectionClassnames.level(level)] = heading && level,
|
|
88
88
|
_b)), "$divide": divide, "$closed": expandClosed }, props),
|
|
89
|
-
React.createElement(
|
|
90
|
-
heading || actions ? (React.createElement(
|
|
91
|
-
expandId ? (React.createElement(
|
|
89
|
+
React.createElement(StyledSectionInner, null,
|
|
90
|
+
heading || actions ? (React.createElement(StyledSectionHeader, null,
|
|
91
|
+
expandId ? (React.createElement(StyledSectionCollapseHeading, { "aria-labelledby": headingTextId, "aria-level": level, role: "heading" },
|
|
92
92
|
React.createElement(Button, { "aria-controls": contentRegionId, "aria-expanded": open, "aria-labelledby": headingTextId, icon: open ? 'chevron-down' : 'chevron-right', onClick: toggleOpen, variant: "tertiary" }))) : null,
|
|
93
93
|
React.createElement(Heading, { "aria-hidden": expandId ? true : false, id: headingTextId }, heading),
|
|
94
|
-
actions ? (React.createElement(
|
|
94
|
+
actions ? (React.createElement(StyledSectionActions, { alignSelf: "flex-start", flexShrink: 0, marginLeft: "auto" }, isFunction(actions)
|
|
95
95
|
? actions({ open: open })
|
|
96
96
|
: actions)) : null)) : null,
|
|
97
|
-
React.createElement(
|
|
97
|
+
React.createElement(StyledSectionContentRegion, { "aria-hidden": !open, id: contentRegionId, role: "region" }, open ? children : null)))));
|
|
98
98
|
});
|
|
99
|
-
|
|
99
|
+
Section.displayName = 'Section';
|
|
100
|
+
//# sourceMappingURL=Section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.js","sourceRoot":"","sources":["../../../../src/layouts/Section/Section.tsx"],"names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T,oBAAC,oBAAoB,IACnB,SAAS,EAAC,YAAY,EACtB,UAAU,EAAE,CAAC,EACb,UAAU,EAAC,MAAM,IAEhB,UAAU,CAAC,OAAO,CAAC;wBAClB,CAAC,CAAE,OAAoB,CAAC,EAAE,IAAI,MAAA,EAAE,CAAC;wBACjC,CAAC,CAAC,OAAO,CACU,CACxB,CAAC,CAAC,CAAC,IAAI,CACY,CACvB,CAAC,CAAC,CAAC,IAAI;gBACR,oBAAC,0BAA0B,mBACZ,CAAC,IAAI,EAClB,EAAE,EAAE,eAAe,EACnB,IAAI,EAAC,QAAQ,IAEZ,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CACI,CACV,CACP,CACM,CACzB,CAAA;AACH,CAAC,CACF,CAAA;AAED,OAAO,CAAC,WAAW,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const sectionCollapseButtonWidth = 36;
|
|
2
|
+
export declare const sectionCollapseButtonMargin = 8;
|
|
3
|
+
export declare const sectionContentMinMargin: number;
|
|
4
|
+
export declare const StyledSectionInner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const StyledSectionCollapseHeading: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const StyledSectionActions: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../utils/types").DivAttributes & import("../Box").BoxProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
7
|
+
export declare const StyledSectionContentRegion: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const StyledSectionHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
interface StyledSectionProps {
|
|
10
|
+
$divide: boolean;
|
|
11
|
+
$closed: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const sectionClassnames: {
|
|
14
|
+
divide: string;
|
|
15
|
+
levelAnonymous: string;
|
|
16
|
+
level: (num: number) => string;
|
|
17
|
+
};
|
|
18
|
+
export declare const StyledSection: import("styled-components").StyledComponent<"div", any, StyledSectionProps, never>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import styled, { css } from 'styled-components';
|
|
6
|
+
import { colors } from '../../styles/colors';
|
|
7
|
+
import { StyledFormRow } from '../../components/Form/Form.styles';
|
|
8
|
+
import { spacing } from '../../styles/spacing';
|
|
9
|
+
import { Box } from '../Box';
|
|
10
|
+
export var sectionCollapseButtonWidth = 36;
|
|
11
|
+
export var sectionCollapseButtonMargin = 8;
|
|
12
|
+
export var sectionContentMinMargin = sectionCollapseButtonWidth + sectionCollapseButtonMargin * 2;
|
|
13
|
+
export var StyledSectionInner = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-bottom: ", "px;\n padding-top: ", "px;\n"], ["\n padding-bottom: ", "px;\n padding-top: ", "px;\n"])), spacing.xxl, spacing.xxl);
|
|
14
|
+
export var StyledSectionCollapseHeading = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n left: ", "px;\n top: 0;\n"], ["\n position: absolute;\n left: ", "px;\n top: 0;\n"])), -1 * (sectionCollapseButtonWidth + sectionCollapseButtonMargin));
|
|
15
|
+
export var StyledSectionActions = styled(Box)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-shrink: 0;\n padding-left: ", "px;\n\n > button,\n > a {\n &:first-child {\n margin-left: 0;\n }\n\n margin-left: ", "px;\n }\n"], ["\n flex-shrink: 0;\n padding-left: ", "px;\n\n > button,\n > a {\n &:first-child {\n margin-left: 0;\n }\n\n margin-left: ", "px;\n }\n"])), spacing.xl, spacing.sm);
|
|
16
|
+
export var StyledSectionContentRegion = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject([""], [""])));
|
|
17
|
+
export var StyledSectionHeader = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n position: relative;\n // min-height on header for alignment:\n // - when heading line height is less than the collapse button height\n // - when heading line height is less than the button size it will shift\n // the heading text when the section is opened and buttons appear\n min-height: 36px;\n word-break: break-word;\n\n & + ", " {\n padding-top: 28px;\n }\n"], ["\n align-items: center;\n display: flex;\n position: relative;\n // min-height on header for alignment:\n // - when heading line height is less than the collapse button height\n // - when heading line height is less than the button size it will shift\n // the heading text when the section is opened and buttons appear\n min-height: 36px;\n word-break: break-word;\n\n & + ", " {\n padding-top: 28px;\n }\n"])), StyledSectionContentRegion);
|
|
18
|
+
export var sectionClassnames = {
|
|
19
|
+
divide: 'section--divide',
|
|
20
|
+
levelAnonymous: 'section--level-anon',
|
|
21
|
+
level: function (num) { return "section--level-" + num; },
|
|
22
|
+
};
|
|
23
|
+
export var StyledSection = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n padding-left: ", "px; // space for a collapse button\n padding-right: ", "px;\n\n &.", ":first-child > ", " {\n border-top: 0px;\n }\n\n // Solving if a card starts with:\n // - a single anonymous section\n // and is followed by:\n // - a named section\n // then\n // - reduce the visual space\n &.", ":first-child {\n & + .", ", & + .", " {\n & > ", " {\n margin-top: ", "px;\n }\n }\n }\n\n &:first-child {\n padding-top: ", "px;\n }\n\n &:last-child {\n padding-bottom: ", "px;\n }\n\n ", " + & {\n margin-top: ", "px;\n }\n\n ", ":last-of-type {\n margin-bottom: -28px;\n }\n\n & & + & {\n margin-top: 0;\n }\n\n & & {\n margin-left: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n padding-top: 0;\n padding-bottom: 0;\n\n &:first-child,\n & + & {\n margin-top: 0;\n }\n\n &:last-child {\n & > ", " {\n padding-bottom: 0;\n }\n }\n }\n\n ", "\n\n ", "\n}\n"], ["\n padding-left: ", "px; // space for a collapse button\n padding-right: ", "px;\n\n &.", ":first-child > ", " {\n border-top: 0px;\n }\n\n // Solving if a card starts with:\n // - a single anonymous section\n // and is followed by:\n // - a named section\n // then\n // - reduce the visual space\n &.", ":first-child {\n & + .", ", & + .", " {\n & > ", " {\n margin-top: ", "px;\n }\n }\n }\n\n &:first-child {\n padding-top: ", "px;\n }\n\n &:last-child {\n padding-bottom: ", "px;\n }\n\n ", " + & {\n margin-top: ", "px;\n }\n\n ", ":last-of-type {\n margin-bottom: -28px;\n }\n\n & & + & {\n margin-top: 0;\n }\n\n & & {\n margin-left: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n padding-top: 0;\n padding-bottom: 0;\n\n &:first-child,\n & + & {\n margin-top: 0;\n }\n\n &:last-child {\n & > ", " {\n padding-bottom: 0;\n }\n }\n }\n\n ", "\n\n ", "\n}\n"])), sectionContentMinMargin, sectionContentMinMargin, sectionClassnames.divide, StyledSectionInner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), sectionClassnames.level(3), StyledSectionInner, spacing.xxl * -1, spacing.lg, spacing.lg, StyledFormRow, spacing.xs, StyledFormRow, sectionContentMinMargin * -1, sectionContentMinMargin * -1, spacing.xxl, StyledSectionInner, function (_a) {
|
|
24
|
+
var $closed = _a.$closed;
|
|
25
|
+
return $closed && css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", " {\n padding-top: 0;\n }\n "], ["\n ", " {\n padding-top: 0;\n }\n "])), StyledSectionContentRegion);
|
|
26
|
+
}, function (_a) {
|
|
27
|
+
var $divide = _a.$divide;
|
|
28
|
+
return $divide && css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n & > ", " {\n border-top: 1px solid ", ";\n }\n "], ["\n & > ", " {\n border-top: 1px solid ", ";\n }\n "])), StyledSectionInner, colors.gray85);
|
|
29
|
+
});
|
|
30
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
31
|
+
//# sourceMappingURL=Section.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.styles.js","sourceRoot":"","sources":["../../../../src/layouts/Section/Section.styles.ts"],"names":[],"mappings":";;;;AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAE5B,MAAM,CAAC,IAAM,0BAA0B,GAAG,EAAE,CAAA;AAC5C,MAAM,CAAC,IAAM,2BAA2B,GAAG,CAAC,CAAA;AAC5C,MAAM,CAAC,IAAM,uBAAuB,GAClC,0BAA0B,GAAG,2BAA2B,GAAG,CAAC,CAAA;AAE9D,MAAM,CAAC,IAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,0HAAA,sBACxB,EAAW,sBACd,EAAW,OAC3B,KAFmB,OAAO,CAAC,GAAG,EACd,OAAO,CAAC,GAAG,CAC3B,CAAA;AAED,MAAM,CAAC,IAAM,4BAA4B,GAAG,MAAM,CAAC,GAAG,0HAAA,mCAE5C,EAA+D,kBAExE,KAFS,CAAC,CAAC,GAAG,CAAC,0BAA0B,GAAG,2BAA2B,CAAC,CAExE,CAAA;AAED,MAAM,CAAC,IAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAC,+NAAA,uCAE7B,EAAU,qGAQT,EAAU,YAE5B,KAViB,OAAO,CAAC,EAAE,EAQT,OAAO,CAAC,EAAE,CAE5B,CAAA;AAED,MAAM,CAAC,IAAM,0BAA0B,GAAG,MAAM,CAAC,GAAG,qEAAA,EAAE,IAAA,CAAA;AAEtD,MAAM,CAAC,IAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,gfAAA,wYAWrC,E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oCACE,EAAa,kBAExC,KAHO,kBAAkB,EACE,MAAM,CAAC,MAAM,CAExC;AALD,CAKC,CAEJ,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Props } from '../../utils/types';
|
|
2
|
+
export interface SectionProviderProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface SectionProps extends Props {
|
|
6
|
+
/**
|
|
7
|
+
* @description Actions of Buttons and Dropdowns to render. If a function, the open
|
|
8
|
+
state is provided as `open` key
|
|
9
|
+
*/
|
|
10
|
+
actions?: React.ReactNode | ((section: {
|
|
11
|
+
open: boolean;
|
|
12
|
+
}) => React.ReactNode);
|
|
13
|
+
/**
|
|
14
|
+
* @description Enable the expand and collapse accordion feature.
|
|
15
|
+
* Requires a unique ID across sections, unique within the provider (NextDetailPage.Card) and
|
|
16
|
+
* requires a heading on the section. Closed sections will not render its children.
|
|
17
|
+
*/
|
|
18
|
+
expandId?: string | number;
|
|
19
|
+
/**
|
|
20
|
+
* @description Heading text for the section
|
|
21
|
+
*/
|
|
22
|
+
heading?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @description If expandable, start open or closed
|
|
25
|
+
*/
|
|
26
|
+
initialIsOpen?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface SectionContextAPI {
|
|
29
|
+
open: {
|
|
30
|
+
[id: string]: boolean;
|
|
31
|
+
};
|
|
32
|
+
setSection: (id: string | number, open: boolean) => void;
|
|
33
|
+
toggleSection: (id: string | number) => void;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.types.js","sourceRoot":"","sources":["../../../../src/layouts/Section/Section.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Section, SectionProvider } from './Section';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/layouts/Section/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/core-react",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.18.0-rc.4+44cef9cbf",
|
|
4
4
|
"description": "JSX implementations for core-css",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
"test": "TZ=America/Los_Angeles jest --runInBand",
|
|
18
18
|
"typecheck": "tsc -p . --noEmit",
|
|
19
19
|
"typecheck:watch": "tsc -p . --noEmit --watch",
|
|
20
|
-
"snapshot": "build
|
|
21
|
-
"storybook": "
|
|
20
|
+
"snapshot": "yarn storybook:build && percy storybook ./storybook-static",
|
|
21
|
+
"storybook:build": "build-storybook",
|
|
22
|
+
"storybook": "start-storybook -p 9000 -s .storybook/public"
|
|
22
23
|
},
|
|
23
24
|
"repository": {
|
|
24
25
|
"type": "git",
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"eslint-config-prettier": "8.3.0",
|
|
85
86
|
"eslint-plugin-react-hooks": "4.2.0",
|
|
86
87
|
"formik": "2.2.9",
|
|
87
|
-
"jest": "27.
|
|
88
|
+
"jest": "27.3.1",
|
|
88
89
|
"miragejs": "^0.1.41",
|
|
89
90
|
"node-sass": "4.14.1",
|
|
90
91
|
"react-test-renderer": "17.0.2",
|
|
@@ -97,9 +98,9 @@
|
|
|
97
98
|
"yup": "0.32.9"
|
|
98
99
|
},
|
|
99
100
|
"dependencies": {
|
|
100
|
-
"@procore/core-css": "10.
|
|
101
|
-
"@procore/core-i18n-js": "10.
|
|
102
|
-
"@procore/core-icons": "10.
|
|
101
|
+
"@procore/core-css": "10.18.0-rc.4+44cef9cbf",
|
|
102
|
+
"@procore/core-i18n-js": "10.18.0-rc.4+44cef9cbf",
|
|
103
|
+
"@procore/core-icons": "10.18.0-rc.4+44cef9cbf",
|
|
103
104
|
"@tinymce/tinymce-react": "3.12.6",
|
|
104
105
|
"axios": "0.22.0",
|
|
105
106
|
"classnames": "2.3.1",
|
|
@@ -122,5 +123,5 @@
|
|
|
122
123
|
"react-dom": ">=16.8.0 < 18",
|
|
123
124
|
"styled-components": ">= 5.1.1 < 6"
|
|
124
125
|
},
|
|
125
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "44cef9cbf2f614a62429f32711a438e1abd41e62"
|
|
126
127
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SectionProps, SectionProviderProps } from './NextDetailPage.types';
|
|
3
|
-
export declare const SectionProvider: ({ children }: SectionProviderProps) => JSX.Element;
|
|
4
|
-
export declare const DetailPageSection: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NextDetailPageSection.js","sourceRoot":"","sources":["../../../../src/layouts/NextDetailPage/NextDetailPageSection.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,6BAA6B,EAC7B,sCAAsC,EACtC,oCAAoC,EACpC,8BAA8B,EAC9B,iBAAiB,GAClB,MAAM,yBAAyB,CAAA;AAQhC,IAAM,UAAU,GAAG,UAAC,GAAY,IAAc,OAAA,OAAO,GAAG,KAAK,UAAU,EAAzB,CAAyB,CAAA;AAEvE,iCAAiC;AACjC,IAAM,YAAY,GAAG,KAAK,CAAC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