PHP 8.2.30
Preview: jsx.ts Size: 1.55 KB
/home/byroehnu/.trash/node_modules11/@emotion/react/src/jsx.ts

import * as React from 'react'
import Emotion, { createEmotionProps } from './emotion-element'
import { EmotionJSX } from './jsx-namespace'
import { hasOwn } from './utils'

export const jsx: typeof React.createElement = function (
  type: any,
  props: any
): any {
  // eslint-disable-next-line prefer-rest-params
  let args: any = arguments

  if (props == null || !hasOwn.call(props, 'css')) {
    return React.createElement.apply(undefined, args)
  }

  let argsLength = args.length
  let createElementArgArray: any = new Array(argsLength)
  createElementArgArray[0] = Emotion
  createElementArgArray[1] = createEmotionProps(type, props)

  for (let i = 2; i < argsLength; i++) {
    createElementArgArray[i] = args[i]
  }

  return React.createElement.apply(null, createElementArgArray)
}
export namespace jsx {
  export namespace JSX {
    export type ElementType = EmotionJSX.ElementType
    export interface Element extends EmotionJSX.Element {}
    export interface ElementClass extends EmotionJSX.ElementClass {}
    export interface ElementAttributesProperty
      extends EmotionJSX.ElementAttributesProperty {}
    export interface ElementChildrenAttribute
      extends EmotionJSX.ElementChildrenAttribute {}
    export type LibraryManagedAttributes<C, P> =
      EmotionJSX.LibraryManagedAttributes<C, P>
    export interface IntrinsicAttributes
      extends EmotionJSX.IntrinsicAttributes {}
    export interface IntrinsicClassAttributes<T>
      extends EmotionJSX.IntrinsicClassAttributes<T> {}
    export type IntrinsicElements = EmotionJSX.IntrinsicElements
  }
}

Directory Contents

Dirs: 1 × Files: 16

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-28 00:30:22
Edit Download
4.50 KB lrw-r--r-- 2026-02-28 00:30:24
Edit Download
2.49 KB lrw-r--r-- 2026-02-28 00:30:26
Edit Download
423 B lrw-r--r-- 2026-02-28 00:30:08
Edit Download
4.99 KB lrw-r--r-- 2026-02-28 00:30:26
Edit Download
1.61 KB lrw-r--r-- 2026-02-28 00:30:12
Edit Download
4.49 KB lrw-r--r-- 2026-02-28 00:30:26
Edit Download
2.08 KB lrw-r--r-- 2026-02-28 00:30:14
Edit Download
826 B lrw-r--r-- 2026-02-28 00:30:14
Edit Download
4.23 KB lrw-r--r-- 2026-02-28 00:30:16
Edit Download
924 B lrw-r--r-- 2026-02-28 00:30:16
Edit Download
1.55 KB lrw-r--r-- 2026-02-28 00:30:16
Edit Download
654 B lrw-r--r-- 2026-02-28 00:30:20
Edit Download
2.85 KB lrw-r--r-- 2026-02-28 00:30:28
Edit Download
544 B lrw-r--r-- 2026-02-28 00:30:24
Edit Download
40 B lrw-r--r-- 2026-02-28 00:30:24
Edit Download
650 B lrw-r--r-- 2026-02-28 00:30:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).