UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

1 lines 822 B
{"version":3,"file":"is-primitive-size.mjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/is-primitive-size/is-primitive-size.ts"],"sourcesContent":["import type { AppShellResponsiveSize, AppShellSize } from '../../AppShell.types';\n\nexport function isPrimitiveSize(\n size: AppShellSize | AppShellResponsiveSize | undefined\n): size is AppShellSize | AppShellResponsiveSize {\n const isBaseSize =\n typeof size === 'object' &&\n size !== null &&\n typeof size.base !== 'undefined' &&\n Object.keys(size).length === 1;\n return typeof size === 'number' || typeof size === 'string' || isBaseSize;\n}\n"],"mappings":";;AAEA,SAAgB,gBACd,MAC+C;CAC/C,MAAM,aACJ,OAAO,SAAS,YAChB,SAAS,QACT,OAAO,KAAK,SAAS,eACrB,OAAO,KAAK,KAAK,CAAC,WAAW;AAC/B,QAAO,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY"}