@vodafone_de/brix-components 17.1.2 → 18.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/dist/{BorderRadius-Co-IV3fn.js → BorderRadius-0jhn76gB.js} +2 -2
- package/dist/{BorderWidth-OZWeXaq_.js → BorderWidth-CwrNKc0Q.js} +2 -2
- package/dist/ButtonAppearanceHelper-3qIbHGWJ.js +102 -0
- package/dist/CornerStyle-n77nckhh.js +7 -0
- package/dist/{colorUtils-CfSj2Iqa.js → colorUtils-c9PiZEci.js} +1 -1
- package/dist/components/Accordion/index.js +8 -4
- package/dist/components/Accordion/validate.d.ts +2 -2
- package/dist/components/AccordionGroup/validate.d.ts +2 -2
- package/dist/components/ArtDirectedImage/index.js +3 -3
- package/dist/components/ArtDirectedImage/validate.d.ts +0 -9
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/validate.d.ts +1 -1
- package/dist/components/BottomBar/index.js +5 -5
- package/dist/components/Button/ButtonAppearanceHelper.test.d.ts +1 -0
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Button/validate.d.ts +1 -1
- package/dist/components/ButtonAsLink/index.js +1 -1
- package/dist/components/ButtonGroup/validate.d.ts +1 -1
- package/dist/components/Calendar/components/Footer/helpers/getFooterText.test.d.ts +1 -0
- package/dist/components/Calendar/index.js +66 -62
- package/dist/components/Callout/index.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Carousel/index.js +1 -1
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/Collapsible/index.js +1 -1
- package/dist/components/ColorSwatch/index.js +2 -2
- package/dist/components/ConsentMessage/index.js +1 -1
- package/dist/components/Container/index.js +1 -1
- package/dist/components/DateInput/index.js +2 -2
- package/dist/components/Dialog/index.js +8 -3
- package/dist/components/Dialog/validate.d.ts +1 -1
- package/dist/components/DiscoveryCard/index.js +5 -5
- package/dist/components/DiscoveryCard/validate.d.ts +3 -12
- package/dist/components/DiscoveryCardGroup/index.js +2 -2
- package/dist/components/DiscoveryCardGroup/validate.d.ts +9 -36
- package/dist/components/EnergySnippet/validate.d.ts +1 -1
- package/dist/components/FeatureCardGroup/components/FeatureCard/index.js +9 -8
- package/dist/components/FeatureCardGroup/components/FeatureCard/validate.d.ts +2 -11
- package/dist/components/FeatureCardGroup/index.js +1 -1
- package/dist/components/FeatureCardGroup/validate.d.ts +6 -15
- package/dist/components/Fieldset/index.js +8 -3
- package/dist/components/Fieldset/validate.d.ts +3 -3
- package/dist/components/FilterGroup/index.js +2 -2
- package/dist/components/FilterGroup/validate.d.ts +5 -5
- package/dist/components/Footnote/index.js +1 -1
- package/dist/components/FootnoteContent/index.js +1 -1
- package/dist/components/FootnoteSection/index.js +1 -1
- package/dist/components/FootnoteSection/validate.d.ts +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/validate.d.ts +4 -4
- package/dist/components/GoogleMap/index.js +31 -19
- package/dist/components/GoogleMap/props.d.ts +13 -1
- package/dist/components/GoogleMap/styled.d.ts +1 -1
- package/dist/components/GoogleMap/validate.d.ts +12 -3
- package/dist/components/Grid/index.js +2 -2
- package/dist/components/GridItem/index.js +2 -2
- package/dist/components/IconButton/index.js +4 -4
- package/dist/components/IconButton/validate.d.ts +1 -1
- package/dist/components/IconLoader/validate.d.ts +1 -1
- package/dist/components/IconSnippet/index.js +14 -24
- package/dist/components/IconSnippet/validate.d.ts +3 -3
- package/dist/components/IconSnippetList/index.js +1 -1
- package/dist/components/IconSnippetList/validate.d.ts +3 -3
- package/dist/components/Image/index.js +4 -52
- package/dist/components/Image/validate.d.ts +0 -9
- package/dist/components/ImageHeader/index.js +25 -19
- package/dist/components/ImageHeader/styled.d.ts +17 -0
- package/dist/components/ImageHeader/validate.d.ts +3 -12
- package/dist/components/InfoBanner/index.js +1 -1
- package/dist/components/InfoBanner/validate.d.ts +2 -2
- package/dist/components/InlineLink/index.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Input/validate.d.ts +1 -0
- package/dist/components/Legend/index.d.ts +1 -1
- package/dist/components/Legend/index.js +54 -68
- package/dist/components/Legend/validate.d.ts +6 -6
- package/dist/components/Link/index.js +1 -1
- package/dist/components/Link/validate.d.ts +1 -1
- package/dist/components/LinkAsButton/index.js +1 -1
- package/dist/components/LinkAsButton/validate.d.ts +1 -1
- package/dist/components/LinkList/index.js +25 -15
- package/dist/components/LinkList/styled.d.ts +1 -1
- package/dist/components/LinkListItem/index.js +15 -342
- package/dist/components/LinkListItem/props.d.ts +0 -4
- package/dist/components/LinkListItem/styled.d.ts +1 -1
- package/dist/components/LinkListItem/validate.d.ts +2 -3
- package/dist/components/LoadingSpinner/index.js +11 -10
- package/dist/components/LocalStyle/index.js +1 -1
- package/dist/components/MediaText/index.js +2 -2
- package/dist/components/MediaText/validate.d.ts +1 -10
- package/dist/components/Notification/index.js +20 -34
- package/dist/components/Notification/validate.d.ts +3 -3
- package/dist/components/OpenTextFootnoteAdapter/index.js +3 -3
- package/dist/components/PasswordInput/index.js +2 -2
- package/dist/components/PickerGroup/components/Picker/index.js +2 -2
- package/dist/components/PickerGroup/components/Picker/validate.d.ts +1 -1
- package/dist/components/PickerGroup/index.js +1 -1
- package/dist/components/PickerGroup/validate.d.ts +1 -1
- package/dist/components/Price/index.d.ts +0 -1
- package/dist/components/Price/index.js +61 -8
- package/dist/components/Price/props.d.ts +6 -6
- package/dist/components/ProductCard/index.js +4 -4
- package/dist/components/ProductCard/validate.d.ts +3 -12
- package/dist/components/QuickLinkList/components/QuickLink/index.js +2 -2
- package/dist/components/QuickLinkList/index.js +1 -1
- package/dist/components/RadioGroup/index.js +2 -2
- package/dist/components/Rating/index.js +1 -1
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichText/parseHtml.d.ts +2 -1
- package/dist/components/RichTextContentful/getOptions.d.ts +6 -2
- package/dist/components/RichTextContentful/helpers/listHelpers.d.ts +1 -0
- package/dist/components/RichTextContentful/index.js +1 -1
- package/dist/components/RichTextContentful/props.d.ts +2 -1
- package/dist/components/RichTextContentful/styled.d.ts +5 -1
- package/dist/components/SearchInput/index.js +2 -2
- package/dist/components/SelectInput/index.js +1 -1
- package/dist/components/SuggestInput/components/SuggestInputList/index.d.ts +1 -1
- package/dist/components/SuggestInput/components/SuggestInputList/props.d.ts +0 -2
- package/dist/components/SuggestInput/index.js +20 -22
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/TabGroup/index.js +11 -4
- package/dist/components/TabGroup/validate.d.ts +2 -2
- package/dist/components/Table/index.js +2 -2
- package/dist/components/TabularPrice/index.js +3 -2
- package/dist/components/TextList/components/TextListItem/index.js +1 -1
- package/dist/components/TextList/index.js +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/TimeInput/index.js +2 -2
- package/dist/components/ToggleButtonProvider/validate.d.ts +8 -8
- package/dist/components/Tray/index.d.ts +1 -1
- package/dist/components/Tray/index.js +20 -14
- package/dist/components/Tray/validate.d.ts +1 -1
- package/dist/components/UtilityLink/index.js +1 -18
- package/dist/components/Video/componentName.d.ts +1 -0
- package/dist/components/Video/i18n.d.ts +42 -0
- package/dist/components/Video/index.d.ts +5 -0
- package/dist/components/Video/index.js +902 -0
- package/dist/components/Video/props.d.ts +52 -0
- package/dist/components/Video/styled.d.ts +2 -0
- package/dist/components/Video/validate.d.ts +84 -0
- package/dist/components/Video/validate.test.d.ts +1 -0
- package/dist/components/YouTubeVideo/index.js +1 -1
- package/dist/contentful/props/index.d.ts +2 -0
- package/dist/contentful/registry/ContentFulComponentName.d.ts +1 -1
- package/dist/contentful/registry/SupportedBrixProps.d.ts +2 -2
- package/dist/contentful/registry/index.js +1 -1
- package/dist/contentful/validation/index.d.ts +1 -0
- package/dist/contentful/validation/index.js +38 -9
- package/dist/{cssVars-DIZd9rHN.js → cssVars-DKs5LlTN.js} +112 -108
- package/dist/foundations/BrixComponentProps/componentNames.d.ts +1 -1
- package/dist/foundations/BrixComponentProps/validate.d.ts +3 -0
- package/dist/foundations/GlobalStyle/index.js +1 -1
- package/dist/foundations/colorMaps.d.ts +18 -0
- package/dist/foundations/cssVars.d.ts +1 -7
- package/dist/foundations/cssVars.test.d.ts +1 -0
- package/dist/foundations/layout/index.js +23 -6
- package/dist/foundations/typographyAndIconSizeCssVars.d.ts +7 -0
- package/dist/getSizesFromGridConfig-C-GBct4J.js +28 -0
- package/dist/{index-XoIBkRyI.js → index-BLp5wi_X.js} +199 -171
- package/dist/{index-B7QEcUdq.js → index-BXTweg2t.js} +26 -52
- package/dist/{index-BR6u6rvI.js → index-CW-UuGll.js} +2 -2
- package/dist/{index-iCvdBgcJ.js → index-C_6tWuWh.js} +1 -1
- package/dist/{index-C9M-9a7m.js → index-Cms5ie2I.js} +4 -4
- package/dist/{index-DQ_p1dIc.js → index-CpuHeI4h.js} +2 -2
- package/dist/{index-BIa9NKUU.js → index-DqdKVD9N.js} +3 -3
- package/dist/{index-B0jIyAgf.js → index-E0RMtc9X.js} +1 -1
- package/dist/{index-CWByESA7.js → index-h88pZ6zH.js} +2 -2
- package/dist/{index-Dn3We7oE.js → index-p9ZTAIzJ.js} +3 -3
- package/dist/index-xzvddlgp.js +345 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +227 -222
- package/dist/opentext/index.js +1 -1
- package/dist/opentext/map/googleMap.d.ts +2 -1
- package/dist/{props-BPxy0GPb.js → props-Bod9bL2v.js} +4 -4
- package/dist/{props-P3bM0HEk.js → props-E4PNCuS6.js} +1 -4
- package/dist/props-n71pckjd.js +5 -0
- package/dist/{styled-DRNdxc1V.js → styled-BJ9cE7xy.js} +2 -2
- package/dist/styled-BrSdmb0C.js +52 -0
- package/dist/{styled-bzTYGIm_.js → styled-DDY0xAl_.js} +1 -1
- package/dist/{styled-DhKlciPC.js → styled-Dfbxuq_p.js} +1 -1
- package/dist/styled-R9Zq1ahD.js +21 -0
- package/dist/{styled-DYgC4qQm.js → styled-ldBsCamo.js} +2 -2
- package/dist/{youTubeVideo-BOudL3DM.js → youTubeVideo-CsdIB_iu.js} +30 -56
- package/package.json +2 -1
- package/dist/ButtonAppearanceHelper-BQUk7S3X.js +0 -92
- package/dist/components/AccordionGroup/stories/scrollToViewFixedHeaderStoryObj.d.ts +0 -2
- package/dist/components/Carousel/stories/productCards.d.ts +0 -8
- package/dist/components/Flex/stories/alignCenterArgs.d.ts +0 -2
- package/dist/components/Flex/stories/alignEndArgs.d.ts +0 -2
- package/dist/components/Flex/stories/alignStartArgs.d.ts +0 -2
- package/dist/components/Flex/stories/autoAndFullItemArgs.d.ts +0 -2
- package/dist/components/Flex/stories/autoAndFullItemVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/fullAndAutoItemArgs.d.ts +0 -2
- package/dist/components/Flex/stories/fullAndAutoItemVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyBetweenArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyBetweenVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyCenterArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyCenterVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyEndArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyEndVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyStartArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyStartVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/twoFullItemsArgs.d.ts +0 -2
- package/dist/components/Flex/stories/twoFullItemsVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/xlGapSpacingArgs.d.ts +0 -2
- package/dist/components/Grid/stories/alignGridCenterArgs.d.ts +0 -2
- package/dist/components/Grid/stories/alignGridItemArgs.d.ts +0 -2
- package/dist/components/Grid/stories/alignGridRightArgs.d.ts +0 -2
- package/dist/components/Grid/stories/grid12Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid222222Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid3333Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid363Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid444Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid64Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid66Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid75Args.d.ts +0 -2
- package/dist/components/Grid/stories/nestingArgs.d.ts +0 -2
- package/dist/components/Grid/stories/noSpacingArgs.d.ts +0 -2
- package/dist/components/Grid/stories/offsetArgs.d.ts +0 -2
- package/dist/components/Grid/stories/responsiveArgs.d.ts +0 -2
- package/dist/components/Grid/stories/stretchArgs.d.ts +0 -2
- package/dist/components/Grid/stories/tagOrderedListArgs.d.ts +0 -2
- package/dist/components/Grid/stories/tagUnorderedListArgs.d.ts +0 -2
- package/dist/getSizesFromGridConfig-BqDW79mt.js +0 -48
|
@@ -34,7 +34,8 @@ export interface RichTextContentfulProps extends BrixComponentProps, Omit<HTMLAt
|
|
|
34
34
|
*/
|
|
35
35
|
html: Document;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Spacing between the parsed content blocks, applied as a CSS gap on the
|
|
38
|
+
* wrapper. Defaults to `md`. Has no effect when the root renders as `span`.
|
|
38
39
|
*/
|
|
39
40
|
paragraphSpacing?: Spacing;
|
|
40
41
|
/**
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { RichTextContentfulProps } from './props';
|
|
2
|
-
export declare const RichTextContentfulStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "color" | "content" | "layout" | "style" | "translate" | "key" | "component" | "uid" | "bottomSpacing" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "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-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture"> & Omit<RichTextContentfulProps, "html" | "paragraphSpacing" | "tagProps">, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "color" | "content" | "layout" | "style" | "translate" | "key" | "component" | "uid" | "bottomSpacing" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "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-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture"> & Omit<RichTextContentfulProps, "html" | "paragraphSpacing" | "tagProps">, never>>> & string;
|
|
2
|
+
export declare const RichTextContentfulStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "color" | "content" | "layout" | "style" | "translate" | "key" | "component" | "uid" | "bottomSpacing" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "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-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "as" | "paragraphSpacing"> & Omit<RichTextContentfulProps, "html" | "tagProps"> & {
|
|
3
|
+
as?: string;
|
|
4
|
+
}, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "color" | "content" | "layout" | "style" | "translate" | "key" | "component" | "uid" | "bottomSpacing" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "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-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "as" | "paragraphSpacing"> & Omit<RichTextContentfulProps, "html" | "tagProps"> & {
|
|
5
|
+
as?: string;
|
|
6
|
+
}, never>>> & string;
|
|
@@ -9,7 +9,7 @@ import { s as spacingMd, b as spacingNone } from "../../Spacing-Dj-qX3Z5.js";
|
|
|
9
9
|
import { bn as CloseIcon } from "../../_5gPlusIcon-Bv-RNXxR.js";
|
|
10
10
|
import styled from "styled-components";
|
|
11
11
|
import IconButton from "../IconButton/index.js";
|
|
12
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
12
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-ldBsCamo.js";
|
|
13
13
|
import { translateLayoutPropsToCss } from "../../foundations/layout/index.js";
|
|
14
14
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
15
15
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
@@ -17,7 +17,7 @@ import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js"
|
|
|
17
17
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
18
18
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
19
19
|
import { c as colorBorderFocus } from "../../BorderColor-BACbvI20.js";
|
|
20
|
-
import {
|
|
20
|
+
import { b as borderWidthFocus } from "../../BorderWidth-CwrNKc0Q.js";
|
|
21
21
|
import { s as shouldForwardProp } from "../../shouldForwardProp-CONMmlMa.js";
|
|
22
22
|
const SearchInputButtonWrapperStyled = styled.div.withConfig({
|
|
23
23
|
shouldForwardProp,
|
|
@@ -18,7 +18,7 @@ import { g as getSpacing, c as capitalize } from "../../index-l-i-mIeP.js";
|
|
|
18
18
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
19
19
|
import { a as colorBackgroundNeutral } from "../../BackgroundColor-Ba4D10TC.js";
|
|
20
20
|
import { c as colorBorderFocus, a as colorBorderNeutral, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-BACbvI20.js";
|
|
21
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
21
|
+
import { b as borderRadiusMd } from "../../BorderRadius-0jhn76gB.js";
|
|
22
22
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
23
23
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
24
24
|
import { s as shouldForwardProp } from "../../shouldForwardProp-CONMmlMa.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SuggestInputListProps } from './props';
|
|
2
|
-
declare const SuggestInputList: ({ listItems, showList,
|
|
2
|
+
declare const SuggestInputList: ({ listItems, showList, selectedOption, listItemsRef, pickOption, uid, query, }: SuggestInputListProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default SuggestInputList;
|
|
@@ -7,10 +7,8 @@ export interface SuggestInputListProps {
|
|
|
7
7
|
listItems: SuggestInputProps['options'];
|
|
8
8
|
listItemsRef: MutableRefObject<HTMLLIElement[]>;
|
|
9
9
|
query: string;
|
|
10
|
-
filterItems: (item: string) => void;
|
|
11
10
|
pickOption: (value: string) => void;
|
|
12
11
|
showList: boolean;
|
|
13
12
|
selectedOption: number;
|
|
14
13
|
uid: string;
|
|
15
|
-
sortItems(query: string, a: string, b: string): number;
|
|
16
14
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState,
|
|
3
|
+
import { useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
4
4
|
import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
5
5
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
6
6
|
import IconLoader from "../IconLoader/index.js";
|
|
7
7
|
import { i as inputStateError } from "../../props-Czq9XX2J.js";
|
|
8
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
8
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-ldBsCamo.js";
|
|
9
9
|
import { i as iconSizeSm } from "../../IconSize-Da9zhR76.js";
|
|
10
10
|
import { c as spacingSm, a as spacingXs, s as spacingMd } from "../../Spacing-Dj-qX3Z5.js";
|
|
11
11
|
import Body from "../Body/index.js";
|
|
@@ -115,21 +115,13 @@ const highlightQuery = (label, query) => {
|
|
|
115
115
|
const SuggestInputList = ({
|
|
116
116
|
listItems,
|
|
117
117
|
showList,
|
|
118
|
-
filterItems,
|
|
119
|
-
sortItems,
|
|
120
118
|
selectedOption,
|
|
121
119
|
listItemsRef,
|
|
122
120
|
pickOption,
|
|
123
121
|
uid,
|
|
124
122
|
query
|
|
125
123
|
}) => {
|
|
126
|
-
|
|
127
|
-
useEffect(() => {
|
|
128
|
-
setOptions(listItems);
|
|
129
|
-
}, [listItems]);
|
|
130
|
-
return /* @__PURE__ */ jsx(SuggestInputListWrapperStyled, { showList, children: /* @__PURE__ */ jsx(SuggestInputListStyled, { role: "listbox", id: "listbox", tabIndex: -1, children: options == null ? void 0 : options.filter((listItem) => filterItems(listItem.label)).sort((a, b) => {
|
|
131
|
-
return sortItems(query, a.label, b.label);
|
|
132
|
-
}).map((listItem, index) => {
|
|
124
|
+
return /* @__PURE__ */ jsx(SuggestInputListWrapperStyled, { showList, children: /* @__PURE__ */ jsx(SuggestInputListStyled, { role: "listbox", id: `${uid}-listbox`, tabIndex: -1, children: listItems == null ? void 0 : listItems.map((listItem, index) => {
|
|
133
125
|
const isSelected = index === selectedOption;
|
|
134
126
|
return /* @__PURE__ */ jsx(SuggestInputListItemStyled, { ref: (el) => {
|
|
135
127
|
listItemsRef.current[index] = el;
|
|
@@ -296,6 +288,7 @@ const SuggestInput = ({
|
|
|
296
288
|
}
|
|
297
289
|
return -1;
|
|
298
290
|
};
|
|
291
|
+
const visibleOptions = (options ?? []).filter((listItem) => filterItems(listItem.label)).sort((a, b) => sortItems(value, a.label, b.label));
|
|
299
292
|
const handleChange = (userInput) => {
|
|
300
293
|
if (!showList && !loading) setShowList(true);
|
|
301
294
|
setValue(userInput);
|
|
@@ -331,7 +324,7 @@ const SuggestInput = ({
|
|
|
331
324
|
switch (event.key) {
|
|
332
325
|
case "ArrowDown":
|
|
333
326
|
if (!showList) setShowList(true);
|
|
334
|
-
if (
|
|
327
|
+
if (visibleOptions.length > 0 && listItemsRef.current[selectedOption + 1]) {
|
|
335
328
|
moveToOption(listItemsRef.current[selectedOption + 1]);
|
|
336
329
|
setSelectedOption(selectedOption + 1);
|
|
337
330
|
} else {
|
|
@@ -341,20 +334,25 @@ const SuggestInput = ({
|
|
|
341
334
|
break;
|
|
342
335
|
case "ArrowUp":
|
|
343
336
|
if (!showList) setShowList(true);
|
|
344
|
-
if (
|
|
337
|
+
if (visibleOptions.length > 0 && listItemsRef.current[selectedOption - 1]) {
|
|
345
338
|
moveToOption(listItemsRef.current[selectedOption - 1]);
|
|
346
339
|
setSelectedOption(selectedOption - 1);
|
|
347
|
-
} else if (
|
|
348
|
-
moveToOption(listItemsRef.current[
|
|
349
|
-
setSelectedOption(
|
|
340
|
+
} else if (visibleOptions.length) {
|
|
341
|
+
moveToOption(listItemsRef.current[visibleOptions.length - 1]);
|
|
342
|
+
setSelectedOption(visibleOptions.length - 1);
|
|
350
343
|
}
|
|
351
344
|
break;
|
|
352
|
-
case "Enter":
|
|
353
|
-
if (showList)
|
|
354
|
-
|
|
355
|
-
|
|
345
|
+
case "Enter": {
|
|
346
|
+
if (!showList) break;
|
|
347
|
+
const selectedItem = selectedOption > -1 ? listItemsRef.current[selectedOption] : void 0;
|
|
348
|
+
if (!(selectedItem == null ? void 0 : selectedItem.dataset.value)) {
|
|
349
|
+
closeList();
|
|
350
|
+
break;
|
|
356
351
|
}
|
|
352
|
+
pickOption(selectedItem.dataset.value);
|
|
353
|
+
(_a2 = inputRef.current) == null ? void 0 : _a2.setSelectionRange(value.length, value.length);
|
|
357
354
|
break;
|
|
355
|
+
}
|
|
358
356
|
case "Escape":
|
|
359
357
|
if (showList) {
|
|
360
358
|
closeList();
|
|
@@ -374,7 +372,7 @@ const SuggestInput = ({
|
|
|
374
372
|
setShowList(false);
|
|
375
373
|
}, role: "combobox", value: ((_a = options == null ? void 0 : options.find((listItem) => listItem.value === value)) == null ? void 0 : _a.label) || value, ...{
|
|
376
374
|
"aria-expanded": showList,
|
|
377
|
-
"aria-controls":
|
|
375
|
+
"aria-controls": `${uid}-listbox`,
|
|
378
376
|
"aria-activedescendant": selectedOption > -1 ? `${uid}-item-${selectedOption}` : void 0,
|
|
379
377
|
"aria-busy": loading ? loading : void 0,
|
|
380
378
|
"aria-autocomplete": "list"
|
|
@@ -387,7 +385,7 @@ const SuggestInput = ({
|
|
|
387
385
|
}, tabIndex: -1, disabled, children: /* @__PURE__ */ jsx(IconLoader, { size: iconSizeSm, name: buttonIcon }) })
|
|
388
386
|
] })
|
|
389
387
|
] }),
|
|
390
|
-
/* @__PURE__ */ jsx(SuggestInputList, { listItems:
|
|
388
|
+
/* @__PURE__ */ jsx(SuggestInputList, { listItems: visibleOptions, listItemsRef, pickOption, query: value, showList, selectedOption, uid, ...{
|
|
391
389
|
"aria-label": label
|
|
392
390
|
} }),
|
|
393
391
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status, message: inputStateError === status ? errorMessage : helperText })
|
|
@@ -16,8 +16,8 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
16
16
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
17
17
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
18
18
|
import { c as colorBorderFocus } from "../../BorderColor-BACbvI20.js";
|
|
19
|
-
import { d as borderRadiusFull } from "../../BorderRadius-
|
|
20
|
-
import {
|
|
19
|
+
import { d as borderRadiusFull } from "../../BorderRadius-0jhn76gB.js";
|
|
20
|
+
import { b as borderWidthFocus, d as borderWidthSm } from "../../BorderWidth-CwrNKc0Q.js";
|
|
21
21
|
import { e as colorObjectInverse, f as colorObjectSelected, g as colorObjectUnselected } from "../../ObjectColor-CSHEae46.js";
|
|
22
22
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
23
23
|
import { s as spacingMd, a as spacingXs } from "../../Spacing-Dj-qX3Z5.js";
|
|
@@ -21,8 +21,8 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
21
21
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
22
22
|
import { a as colorBackgroundNeutral } from "../../BackgroundColor-Ba4D10TC.js";
|
|
23
23
|
import { f as colorBorderSubtle, c as colorBorderFocus } from "../../BorderColor-BACbvI20.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
24
|
+
import { c as borderRadiusSm } from "../../BorderRadius-0jhn76gB.js";
|
|
25
|
+
import { b as borderWidthFocus } from "../../BorderWidth-CwrNKc0Q.js";
|
|
26
26
|
import { a as fontWeightBold } from "../../FontWeight-C8c-UnWu.js";
|
|
27
27
|
import { d as colorObjectBrand } from "../../ObjectColor-CSHEae46.js";
|
|
28
28
|
import { s as spacingMd, c as spacingSm, a as spacingXs, f as spacing2Xs } from "../../Spacing-Dj-qX3Z5.js";
|
|
@@ -165,16 +165,17 @@ const TabGroup = ({
|
|
|
165
165
|
onTabChange,
|
|
166
166
|
...props
|
|
167
167
|
}) => {
|
|
168
|
-
if (!(tabs == null ? void 0 : tabs.length)) return null;
|
|
169
168
|
const getValueFromUrl = () => {
|
|
170
169
|
if (typeof window === "undefined") return null;
|
|
170
|
+
if (!(tabs == null ? void 0 : tabs.length)) return null;
|
|
171
171
|
const hash = window.location.hash;
|
|
172
172
|
if (!hash.startsWith("#tab-")) return null;
|
|
173
173
|
const tabValueFromHash = hash.replace("#tab-", "");
|
|
174
174
|
return tabs.some((tab) => tab.value === tabValueFromHash) ? tabValueFromHash : null;
|
|
175
175
|
};
|
|
176
176
|
const [activeTab, setActiveTab] = useState(() => {
|
|
177
|
-
|
|
177
|
+
var _a;
|
|
178
|
+
return activeValue || ((_a = tabs == null ? void 0 : tabs[0]) == null ? void 0 : _a.value) || "";
|
|
178
179
|
});
|
|
179
180
|
const [indicatorStyle, setIndicatorStyle] = useState({
|
|
180
181
|
left: 0,
|
|
@@ -200,6 +201,11 @@ const TabGroup = ({
|
|
|
200
201
|
setActiveTab(activeValue);
|
|
201
202
|
}
|
|
202
203
|
}, [activeValue]);
|
|
204
|
+
useEffect(() => {
|
|
205
|
+
if (!activeTab && (tabs == null ? void 0 : tabs.length)) {
|
|
206
|
+
setActiveTab(tabs[0].value || "");
|
|
207
|
+
}
|
|
208
|
+
}, [tabs]);
|
|
203
209
|
useEffect(() => {
|
|
204
210
|
const valueFromUrl = getValueFromUrl();
|
|
205
211
|
if (valueFromUrl) {
|
|
@@ -238,6 +244,7 @@ const TabGroup = ({
|
|
|
238
244
|
});
|
|
239
245
|
}
|
|
240
246
|
}, [activeTab, width]);
|
|
247
|
+
if (!(tabs == null ? void 0 : tabs.length)) return null;
|
|
241
248
|
const scrollTabIntoView = (tabEl) => {
|
|
242
249
|
if (width !== "auto") return;
|
|
243
250
|
const containerEl = tabsContainerRef.current;
|
|
@@ -80,6 +80,7 @@ export declare const tabGroupSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
80
80
|
Filter: "Filter";
|
|
81
81
|
Grid: "Grid";
|
|
82
82
|
Notification: "Notification";
|
|
83
|
+
Video: "Video";
|
|
83
84
|
Focus: "Focus";
|
|
84
85
|
AbTest: "AbTest";
|
|
85
86
|
Above28: "Above28";
|
|
@@ -634,7 +635,6 @@ export declare const tabGroupSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
634
635
|
VfHappyHelpful: "VfHappyHelpful";
|
|
635
636
|
VfHappy: "VfHappy";
|
|
636
637
|
VideoFrame: "VideoFrame";
|
|
637
|
-
Video: "Video";
|
|
638
638
|
Virtuoso: "Virtuoso";
|
|
639
639
|
VirusProtection: "VirusProtection";
|
|
640
640
|
VocSensor: "VocSensor";
|
|
@@ -745,6 +745,7 @@ export declare const tabGroupSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
745
745
|
Filter: "Filter";
|
|
746
746
|
Grid: "Grid";
|
|
747
747
|
Notification: "Notification";
|
|
748
|
+
Video: "Video";
|
|
748
749
|
Focus: "Focus";
|
|
749
750
|
AbTest: "AbTest";
|
|
750
751
|
Above28: "Above28";
|
|
@@ -1299,7 +1300,6 @@ export declare const tabGroupSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1299
1300
|
VfHappyHelpful: "VfHappyHelpful";
|
|
1300
1301
|
VfHappy: "VfHappy";
|
|
1301
1302
|
VideoFrame: "VideoFrame";
|
|
1302
|
-
Video: "Video";
|
|
1303
1303
|
Virtuoso: "Virtuoso";
|
|
1304
1304
|
VirusProtection: "VirusProtection";
|
|
1305
1305
|
VocSensor: "VocSensor";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { T as TableWrapper } from "../../index-
|
|
3
|
-
import { b, c, d, e, t, h, i } from "../../index-
|
|
2
|
+
import { T as TableWrapper } from "../../index-BLp5wi_X.js";
|
|
3
|
+
import { b, c, d, e, t, h, i } from "../../index-BLp5wi_X.js";
|
|
4
4
|
export {
|
|
5
5
|
b as TableBody,
|
|
6
6
|
c as TableCell,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
|
-
import { T } from "../../index-
|
|
5
|
-
import
|
|
4
|
+
import { T } from "../../index-BXTweg2t.js";
|
|
5
|
+
import "../../index-Dgu9iIhb.js";
|
|
6
|
+
import { t } from "../../props-n71pckjd.js";
|
|
6
7
|
export {
|
|
7
8
|
T as default,
|
|
8
9
|
t as tabularPricePrefixWeights
|
|
@@ -3,7 +3,7 @@ import "react/jsx-runtime";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../tags-BeNegJAK.js";
|
|
5
5
|
import "../../Spacing-Dj-qX3Z5.js";
|
|
6
|
-
import { f } from "../../index-
|
|
6
|
+
import { f } from "../../index-BLp5wi_X.js";
|
|
7
7
|
import { t } from "../../props-B5OwQmNC.js";
|
|
8
8
|
export {
|
|
9
9
|
f as default,
|
|
@@ -18,7 +18,7 @@ import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
|
18
18
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
19
19
|
import { a as colorBackgroundNeutral, d as colorBackgroundSubtle } from "../../BackgroundColor-Ba4D10TC.js";
|
|
20
20
|
import { a as colorBorderNeutral, c as colorBorderFocus, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-BACbvI20.js";
|
|
21
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
21
|
+
import { b as borderRadiusMd } from "../../BorderRadius-0jhn76gB.js";
|
|
22
22
|
import { t as textHeadingXs } from "../../HeadingSize-O__w72MO.js";
|
|
23
23
|
import { c as colorTextPlaceholder, a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
24
24
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
@@ -6,14 +6,14 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
|
6
6
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
7
7
|
import { s as spacingMd, a as spacingXs } from "../../Spacing-Dj-qX3Z5.js";
|
|
8
8
|
import { i as inputStateError } from "../../props-Czq9XX2J.js";
|
|
9
|
-
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-
|
|
9
|
+
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-ldBsCamo.js";
|
|
10
10
|
import { i as iconSizeSm } from "../../IconSize-Da9zhR76.js";
|
|
11
11
|
import { bm as ClockIcon } from "../../_5gPlusIcon-Bv-RNXxR.js";
|
|
12
12
|
import styled from "styled-components";
|
|
13
13
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
14
14
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
15
15
|
import { c as colorBorderFocus } from "../../BorderColor-BACbvI20.js";
|
|
16
|
-
import {
|
|
16
|
+
import { b as borderWidthFocus } from "../../BorderWidth-CwrNKc0Q.js";
|
|
17
17
|
const ClockIconStyled = styled(ClockIcon).withConfig({
|
|
18
18
|
displayName: "ClockIconStyled",
|
|
19
19
|
componentId: "sc-1odlw8-0"
|
|
@@ -72,6 +72,7 @@ export declare const toggleButtonProviderExclusiveSchema: z.ZodObject<{
|
|
|
72
72
|
Filter: "Filter";
|
|
73
73
|
Grid: "Grid";
|
|
74
74
|
Notification: "Notification";
|
|
75
|
+
Video: "Video";
|
|
75
76
|
Focus: "Focus";
|
|
76
77
|
AbTest: "AbTest";
|
|
77
78
|
Above28: "Above28";
|
|
@@ -626,7 +627,6 @@ export declare const toggleButtonProviderExclusiveSchema: z.ZodObject<{
|
|
|
626
627
|
VfHappyHelpful: "VfHappyHelpful";
|
|
627
628
|
VfHappy: "VfHappy";
|
|
628
629
|
VideoFrame: "VideoFrame";
|
|
629
|
-
Video: "Video";
|
|
630
630
|
Virtuoso: "Virtuoso";
|
|
631
631
|
VirusProtection: "VirusProtection";
|
|
632
632
|
VocSensor: "VocSensor";
|
|
@@ -662,6 +662,7 @@ export declare const toggleButtonProviderExclusiveSchema: z.ZodObject<{
|
|
|
662
662
|
Filter: "Filter";
|
|
663
663
|
Grid: "Grid";
|
|
664
664
|
Notification: "Notification";
|
|
665
|
+
Video: "Video";
|
|
665
666
|
Focus: "Focus";
|
|
666
667
|
AbTest: "AbTest";
|
|
667
668
|
Above28: "Above28";
|
|
@@ -1216,7 +1217,6 @@ export declare const toggleButtonProviderExclusiveSchema: z.ZodObject<{
|
|
|
1216
1217
|
VfHappyHelpful: "VfHappyHelpful";
|
|
1217
1218
|
VfHappy: "VfHappy";
|
|
1218
1219
|
VideoFrame: "VideoFrame";
|
|
1219
|
-
Video: "Video";
|
|
1220
1220
|
Virtuoso: "Virtuoso";
|
|
1221
1221
|
VirusProtection: "VirusProtection";
|
|
1222
1222
|
VocSensor: "VocSensor";
|
|
@@ -1325,6 +1325,7 @@ export declare const toggleButtonProviderMultiSchema: z.ZodObject<{
|
|
|
1325
1325
|
Filter: "Filter";
|
|
1326
1326
|
Grid: "Grid";
|
|
1327
1327
|
Notification: "Notification";
|
|
1328
|
+
Video: "Video";
|
|
1328
1329
|
Focus: "Focus";
|
|
1329
1330
|
AbTest: "AbTest";
|
|
1330
1331
|
Above28: "Above28";
|
|
@@ -1879,7 +1880,6 @@ export declare const toggleButtonProviderMultiSchema: z.ZodObject<{
|
|
|
1879
1880
|
VfHappyHelpful: "VfHappyHelpful";
|
|
1880
1881
|
VfHappy: "VfHappy";
|
|
1881
1882
|
VideoFrame: "VideoFrame";
|
|
1882
|
-
Video: "Video";
|
|
1883
1883
|
Virtuoso: "Virtuoso";
|
|
1884
1884
|
VirusProtection: "VirusProtection";
|
|
1885
1885
|
VocSensor: "VocSensor";
|
|
@@ -1915,6 +1915,7 @@ export declare const toggleButtonProviderMultiSchema: z.ZodObject<{
|
|
|
1915
1915
|
Filter: "Filter";
|
|
1916
1916
|
Grid: "Grid";
|
|
1917
1917
|
Notification: "Notification";
|
|
1918
|
+
Video: "Video";
|
|
1918
1919
|
Focus: "Focus";
|
|
1919
1920
|
AbTest: "AbTest";
|
|
1920
1921
|
Above28: "Above28";
|
|
@@ -2469,7 +2470,6 @@ export declare const toggleButtonProviderMultiSchema: z.ZodObject<{
|
|
|
2469
2470
|
VfHappyHelpful: "VfHappyHelpful";
|
|
2470
2471
|
VfHappy: "VfHappy";
|
|
2471
2472
|
VideoFrame: "VideoFrame";
|
|
2472
|
-
Video: "Video";
|
|
2473
2473
|
Virtuoso: "Virtuoso";
|
|
2474
2474
|
VirusProtection: "VirusProtection";
|
|
2475
2475
|
VocSensor: "VocSensor";
|
|
@@ -2578,6 +2578,7 @@ export declare const toggleButtonProviderSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
2578
2578
|
Filter: "Filter";
|
|
2579
2579
|
Grid: "Grid";
|
|
2580
2580
|
Notification: "Notification";
|
|
2581
|
+
Video: "Video";
|
|
2581
2582
|
Focus: "Focus";
|
|
2582
2583
|
AbTest: "AbTest";
|
|
2583
2584
|
Above28: "Above28";
|
|
@@ -3132,7 +3133,6 @@ export declare const toggleButtonProviderSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
3132
3133
|
VfHappyHelpful: "VfHappyHelpful";
|
|
3133
3134
|
VfHappy: "VfHappy";
|
|
3134
3135
|
VideoFrame: "VideoFrame";
|
|
3135
|
-
Video: "Video";
|
|
3136
3136
|
Virtuoso: "Virtuoso";
|
|
3137
3137
|
VirusProtection: "VirusProtection";
|
|
3138
3138
|
VocSensor: "VocSensor";
|
|
@@ -3168,6 +3168,7 @@ export declare const toggleButtonProviderSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
3168
3168
|
Filter: "Filter";
|
|
3169
3169
|
Grid: "Grid";
|
|
3170
3170
|
Notification: "Notification";
|
|
3171
|
+
Video: "Video";
|
|
3171
3172
|
Focus: "Focus";
|
|
3172
3173
|
AbTest: "AbTest";
|
|
3173
3174
|
Above28: "Above28";
|
|
@@ -3722,7 +3723,6 @@ export declare const toggleButtonProviderSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
3722
3723
|
VfHappyHelpful: "VfHappyHelpful";
|
|
3723
3724
|
VfHappy: "VfHappy";
|
|
3724
3725
|
VideoFrame: "VideoFrame";
|
|
3725
|
-
Video: "Video";
|
|
3726
3726
|
Virtuoso: "Virtuoso";
|
|
3727
3727
|
VirusProtection: "VirusProtection";
|
|
3728
3728
|
VocSensor: "VocSensor";
|
|
@@ -3830,6 +3830,7 @@ export declare const toggleButtonProviderSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
3830
3830
|
Filter: "Filter";
|
|
3831
3831
|
Grid: "Grid";
|
|
3832
3832
|
Notification: "Notification";
|
|
3833
|
+
Video: "Video";
|
|
3833
3834
|
Focus: "Focus";
|
|
3834
3835
|
AbTest: "AbTest";
|
|
3835
3836
|
Above28: "Above28";
|
|
@@ -4384,7 +4385,6 @@ export declare const toggleButtonProviderSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
4384
4385
|
VfHappyHelpful: "VfHappyHelpful";
|
|
4385
4386
|
VfHappy: "VfHappy";
|
|
4386
4387
|
VideoFrame: "VideoFrame";
|
|
4387
|
-
Video: "Video";
|
|
4388
4388
|
Virtuoso: "Virtuoso";
|
|
4389
4389
|
VirusProtection: "VirusProtection";
|
|
4390
4390
|
VocSensor: "VocSensor";
|
|
@@ -4420,6 +4420,7 @@ export declare const toggleButtonProviderSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
4420
4420
|
Filter: "Filter";
|
|
4421
4421
|
Grid: "Grid";
|
|
4422
4422
|
Notification: "Notification";
|
|
4423
|
+
Video: "Video";
|
|
4423
4424
|
Focus: "Focus";
|
|
4424
4425
|
AbTest: "AbTest";
|
|
4425
4426
|
Above28: "Above28";
|
|
@@ -4974,7 +4975,6 @@ export declare const toggleButtonProviderSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
4974
4975
|
VfHappyHelpful: "VfHappyHelpful";
|
|
4975
4976
|
VfHappy: "VfHappy";
|
|
4976
4977
|
VideoFrame: "VideoFrame";
|
|
4977
|
-
Video: "Video";
|
|
4978
4978
|
Virtuoso: "Virtuoso";
|
|
4979
4979
|
VirusProtection: "VirusProtection";
|
|
4980
4980
|
VocSensor: "VocSensor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TrayProps } from './props';
|
|
2
|
-
declare const Tray: ({ heading, contentElements, uid, focusElementOnOpen, focusElementOnClose, children, buttons, zIndex, ...props }: TrayProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Tray: ({ heading, contentElements, uid: uidProp, focusElementOnOpen, focusElementOnClose, children, buttons, zIndex, ...props }: TrayProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Tray;
|
|
4
4
|
export * from './props';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useRef, useEffect
|
|
3
|
+
import { useId, useState, useRef, useEffect } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
6
6
|
import { k as flexOrientationVertical } from "../../props-BhXFN7yR.js";
|
|
@@ -16,7 +16,7 @@ import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/i
|
|
|
16
16
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
17
17
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
18
18
|
import { f as colorBackgroundOverlayStatic } from "../../BackgroundColor-Ba4D10TC.js";
|
|
19
|
-
import {
|
|
19
|
+
import { b as borderWidthFocus } from "../../BorderWidth-CwrNKc0Q.js";
|
|
20
20
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
21
21
|
const TrayOverlayStyled = styled("div").withConfig({
|
|
22
22
|
displayName: "TrayOverlayStyled",
|
|
@@ -110,7 +110,7 @@ const TrayButtonContainerStyled = styled("div").withConfig({
|
|
|
110
110
|
const Tray = ({
|
|
111
111
|
heading,
|
|
112
112
|
contentElements = "body>*:not([id^='overlay'])",
|
|
113
|
-
uid
|
|
113
|
+
uid: uidProp,
|
|
114
114
|
focusElementOnOpen,
|
|
115
115
|
focusElementOnClose,
|
|
116
116
|
children,
|
|
@@ -118,9 +118,12 @@ const Tray = ({
|
|
|
118
118
|
zIndex,
|
|
119
119
|
...props
|
|
120
120
|
}) => {
|
|
121
|
+
const generatedUid = useId();
|
|
122
|
+
const uid = uidProp ?? generatedUid;
|
|
121
123
|
const [open, setOpen] = useState(props.open === true);
|
|
122
124
|
const [mounted, setMounted] = useState(false);
|
|
123
125
|
const invokingElement = useRef(null);
|
|
126
|
+
const prevOpenRef = useRef(void 0);
|
|
124
127
|
const headingId = `tray-heading-${uid}`;
|
|
125
128
|
const overlay = useRef(null);
|
|
126
129
|
useEffect(() => {
|
|
@@ -176,9 +179,19 @@ const Tray = ({
|
|
|
176
179
|
};
|
|
177
180
|
}, []);
|
|
178
181
|
useEffect(() => {
|
|
179
|
-
var _a;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
var _a, _b;
|
|
183
|
+
const wasOpen = prevOpenRef.current;
|
|
184
|
+
const isNowOpen = open;
|
|
185
|
+
prevOpenRef.current = open;
|
|
186
|
+
if (!isNowOpen) {
|
|
187
|
+
if (wasOpen === true) {
|
|
188
|
+
mounted && ((_a = props.onToggle) == null ? void 0 : _a.call(props, false));
|
|
189
|
+
const elementToFocus2 = focusElementOnClose ? document.getElementById(focusElementOnClose) : invokingElement.current;
|
|
190
|
+
elementToFocus2 == null ? void 0 : elementToFocus2.focus();
|
|
191
|
+
}
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
(_b = props.onToggle) == null ? void 0 : _b.call(props, true);
|
|
182
195
|
updateElements(true);
|
|
183
196
|
document.addEventListener("keydown", closeWithEscape);
|
|
184
197
|
const elementToFocus = focusElementOnOpen ? document.getElementById(focusElementOnOpen) : document.getElementById(headingId);
|
|
@@ -187,16 +200,9 @@ const Tray = ({
|
|
|
187
200
|
});
|
|
188
201
|
return () => {
|
|
189
202
|
document.removeEventListener("keydown", closeWithEscape);
|
|
203
|
+
updateElements(false);
|
|
190
204
|
};
|
|
191
205
|
}, [open]);
|
|
192
|
-
useEffect(() => {
|
|
193
|
-
var _a;
|
|
194
|
-
if (open) return;
|
|
195
|
-
mounted && ((_a = props.onToggle) == null ? void 0 : _a.call(props, false));
|
|
196
|
-
updateElements(false);
|
|
197
|
-
const elementToFocus = focusElementOnClose ? document.getElementById(focusElementOnClose) : invokingElement.current;
|
|
198
|
-
elementToFocus == null ? void 0 : elementToFocus.focus();
|
|
199
|
-
}, [open]);
|
|
200
206
|
useEffect(() => {
|
|
201
207
|
overlay.current = document.getElementById(`overlay-${uid}`);
|
|
202
208
|
}, []);
|