UNPKG

@visa/nova-react

Version:

Visa Product Design System Nova React library

18 lines (17 loc) 2.3 kB
/** * Copyright (c) 2025 Visa, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * **/ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("clsx"),v=require("react");const l=({children:l,className:i,vAlignContent:r,vAlignItems:n,vAlignSelf:a,vColGap:o,vContainerHide:t,vElevation:x,vFlex:s,vFlexCol:d,vFlexColReverse:g,vFlexGrow:p,vFlexGrow0:$,vFlexInline:f,vFlexNoWrap:c,vFlexRow:m,vFlexRowReverse:F,vFlexShrink:w,vFlexShrink0:h,vFlexWrap:u,vFlexWrapReverse:M,vGap:P,vHide:R,vJustifyContent:y,vMargin:C,vMarginBottom:G,vMarginHorizontal:H,vMarginLeft:N,vMarginRight:k,vMarginTop:b,vMarginVertical:A,vMediaHide:S,vPadding:W,vPaddingBottom:j,vPaddingHorizontal:q,vPaddingLeft:z,vPaddingRight:B,vPaddingTop:E,vPaddingVertical:I,vRowGap:L,...T})=>{const V=e(r&&`v-align-content-${r}`,n&&`v-align-items-${n}`,a&&`v-align-self-${a}`,(o||0===o)&&`v-col-gap-${o}`,t&&`v-${t}-container-hide`,x&&`v-elevation-${x}`,(s||d||L)&&"v-flex",d&&"v-flex-col",g&&"v-flex-col-reverse",p&&"v-flex-grow",$&&"v-flex-grow-0",f&&"v-flex-inline",c&&"v-flex-nowrap",m&&"v-flex-row",F&&"v-flex-row-reverse",w&&"v-flex-shrink",h&&"v-flex-shrink-0",u&&"v-flex-wrap",M&&"v-flex-wrap-reverse",(P||0===P)&&`v-gap-${P}`,R&&"v-hide",y&&`v-justify-content-${y}`,(C||0===C)&&`v-m-${C}`,(G||0===G)&&`v-mb-${G}`,(H||0===H)&&`v-mx-${H}`,(N||0===N)&&`v-ml-${N}`,(k||0===k)&&`v-mr-${k}`,(b||0===b)&&`v-mt-${b}`,(A||0===A)&&`v-my-${A}`,S&&`v-${S}-media-hide`,(W||0===W)&&`v-p-${W}`,(j||0===j)&&`v-pb-${j}`,(q||0===q)&&`v-px-${q}`,(z||0===z)&&`v-pl-${z}`,(B||0===B)&&`v-pr-${B}`,(E||0===E)&&`v-pt-${E}`,(I||0===I)&&`v-py-${I}`,(L||0===L)&&`v-row-gap-${L}`,i,l.props.className)||void 0;return v.cloneElement(l,{className:V,...T})};l.displayName="UtilityFragment",exports.default=l;