@motifx/core 1.0.1 → 1.1.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/chunks/{core-DxINgP83.esm.js → core-BGdhUeHu.esm.js} +3175 -1138
- package/dist/chunks/core-BGdhUeHu.esm.js.map +1 -0
- package/dist/chunks/{core-DfzGo_Ti.cjs → core-BI6Lk585.cjs} +3366 -1299
- package/dist/chunks/core-BI6Lk585.cjs.map +1 -0
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.cjs.map +1 -1
- package/dist/devtools.esm.js +1 -1
- package/dist/devtools.esm.js.map +1 -1
- package/dist/index.cjs +87 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -18
- package/dist/index.d.ts +38 -18
- package/dist/index.esm.js +42 -30
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.umd.js +1574 -1120
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/jsx-runtime.cjs.map +1 -1
- package/dist/jsx-runtime.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/core-BDvHkZLQ.esm.js +0 -1601
- package/dist/chunks/core-BDvHkZLQ.esm.js.map +0 -1
- package/dist/chunks/core-DXGu4dNE.cjs +0 -1642
- package/dist/chunks/core-DXGu4dNE.cjs.map +0 -1
- package/dist/chunks/core-DfzGo_Ti.cjs.map +0 -1
- package/dist/chunks/core-DxINgP83.esm.js.map +0 -1
package/dist/jsx-runtime.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.cjs","sources":["../src/jsx-runtime.ts"],"sourcesContent":null,"names":["JSX"],"mappings":";;AAyIiBA;AAAjB,CAAA,UAAiB,GAAG,EAAA;AAapB,CAAC,EAbgBA,WAAG,KAAHA,WAAG,GAAA,EAAA,CAAA,CAAA;;"}
|
|
1
|
+
{"version":3,"file":"jsx-runtime.cjs","sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { ComponentBase, ElementType, EventArgs } from \"./\";\n\ntype motifPrimitive = string | number | boolean | Node | Text | Element | null | undefined;\n\ndeclare const DEV: boolean;\n\nexport type MotifStyle = string | (() => any) | Array<any> | Object | Partial<CSSStyleDeclaration> | CSSStyleDeclaration;\nexport type MotifClass = string | Record<string, any> | Array<any> | (() => any);\nexport type MotifValue = string | number | boolean | Record<string, any> | Array<any> | (() => any);\nexport type MotifBindable<T> = T | string | (() => T | string);\n\nexport interface MotifBaseProps {\n children?: any;\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n style?: MotifStyle;\n class?: MotifClass;\n className?: MotifClass;\n}\n\ntype MethodLikeProps = {\n focus?: any;\n blur?: any;\n click?: any;\n select?: any;\n scrollIntoView?: any;\n scrollTo?: any;\n scrollBy?: any;\n requestFullscreen?: any;\n exitFullscreen?: any;\n play?: any;\n pause?: any;\n submit?: any;\n reset?: any;\n requestSubmit?: any;\n checkValidity?: any;\n reportValidity?: any;\n show?: any;\n showModal?: any;\n close?: any;\n showPicker?: any;\n setSelectionRange?: any;\n setRangeText?: any;\n requestPointerLock?: any;\n exitPointerLock?: any;\n setPointerCapture?: any;\n releasePointerCapture?: any;\n requestPictureInPicture?: any;\n exitPictureInPicture?: any;\n load?: any;\n fastSeek?: any;\n showPopover?: any;\n hidePopover?: any;\n togglePopover?: any;\n \"onconfig\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onbuilding\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onbuilt\"?: (sender: ComponentBase, e: EventArgs) => void;\n /** Element canlı DOM'a (document) bağlandığında bir kez; focus/ölçüm gibi işler için. */\n \"onmounted\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onconfigured\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"oninitializing\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"oninitialized\"?: (sender: ComponentBase, e: EventArgs) => void;\n};\ntype MethodLikeKeys = keyof MethodLikeProps;\n\nexport type MotifFunctionalComponent<P = Record<string, unknown>> = (\n props: P & MotifBaseProps & any\n) => unknown;\n\nexport type MotifFunctionalComponentBasic = (\n props: MotifBaseProps\n) => unknown;\n\nexport type AnyFunctionalComponent<P = any> = (props: P) => unknown;\nexport type MotifComponentConstructor<TElement extends ElementType = any, P extends Record<string, unknown> = Record<string, unknown>> =\n new (...args: any[]) => ComponentBase<TElement, P>;\n\nexport type MotifComponentType<P = Record<string, unknown>, TElement = unknown> =\n | string\n | MotifFunctionalComponent<P>\n | MotifFunctionalComponentBasic\n | AnyFunctionalComponent<P>\n | MotifComponentConstructor<TElement extends ElementType ? TElement : any, P extends Record<string, unknown> ? P : any>\n | { el: string; ctor?: (this: any, props?: any) => any;[newProp: string]: any };\n\ntype ExtractEventArg<T> = T extends ((this: any, ev: infer EV) => any) | null ? EV : never;\ntype motifEventsFor<TElement> = {\n [P in keyof TElement as P extends `on${string}` ? P : never]?:\n TElement[P] extends ((this: any, ev: infer EV) => any) | null\n ? ((sender: ComponentBase, ev: EV) => any) | ((ev: EV) => any)\n : ((sender: ComponentBase, ev: any) => any) | ((ev: any) => any);\n};\n\n// Transform DOM attributes so that non-event, non-method, non-style/class/value props accept either the value or a function returning it\ntype MotifElementProps<TElement> = {\n [P in keyof Omit<\n Partial<TElement>,\n keyof motifEventsFor<TElement> | 'style' | 'class' | 'className' | 'value' | 'for' | MethodLikeKeys\n >]?: MotifBindable<Partial<TElement>[P]>;\n};\n\ntype IntrinsicHTML = {\n [K in keyof HTMLElementTagNameMap]:\n MotifElementProps<HTMLElementTagNameMap[K]> &\n motifEventsFor<HTMLElementTagNameMap[K]> &\n Partial<MotifBaseProps> &\n MethodLikeProps &\n (K extends 'input' | 'textarea' ? { value?: MotifValue } : {}) & object & { [key: string]: any };\n};\n\ntype IntrinsicSVG = IntrinsicHTML;\n// type IntrinsicSVG = {\n// keyof motifEventsFor<SVGElementTagNameMap[\"svg\"]> | 'style' | 'class' | 'className' | 'value' | MethodLikeKeys\n\ntype IntrinsicElementsMap = IntrinsicHTML & IntrinsicSVG;\n\nexport type __attr = {\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n initializeComponent?: (sender: ComponentBase) => void;\n \"x-wait\"?: (sender: ComponentBase, e: EventArgs) => boolean;\n \"x-building\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-built\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-config\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-configured\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-initializing\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-initialized\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onbuilding\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onbuilt\"?: (sender: ComponentBase, e: EventArgs) => void;\n /** Element canlı DOM'a (document) bağlandığında bir kez;*/\n \"onmounted\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onconfig\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onconfigured\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"oninitializing\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"oninitialized\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-style\"?: MotifStyle;\n}\nexport namespace JSX {\n export type Element = ComponentBase<any, any>;\n export type ElementType = MotifComponentType<any, any>;\n export interface ElementClass extends ComponentBase { }\n export interface ElementAttributesProperty extends __attr {\n props: {};\n };\n\n export interface IntrinsicElements extends IntrinsicElementsMap {\n [elementName: string]: IntrinsicElementsMap[keyof IntrinsicElementsMap];\n }\n\n export interface IntrinsicAttributes extends __attr { };\n}\n\ndeclare global {\n namespace JSX {\n export type Element = ComponentBase<any, any>;\n export type ElementType = MotifComponentType<any, any>;\n export interface ElementClass extends ComponentBase { }\n export interface ElementAttributesProperty extends __attr {\n props: {};\n }\n\n export interface IntrinsicElements extends IntrinsicElementsMap {\n [elementName: string]: IntrinsicElementsMap[keyof IntrinsicElementsMap];\n }\n\n export interface IntrinsicAttributes extends __attr { }\n }\n}\n"],"names":["JSX"],"mappings":";;AAyIiBA;AAAjB,CAAA,UAAiB,GAAG,EAAA;AAapB,CAAC,EAbgBA,WAAG,KAAHA,WAAG,GAAA,EAAA,CAAA,CAAA;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.esm.js","sources":["../src/jsx-runtime.ts"],"sourcesContent":null,"names":[],"mappings":"AAyIM,IAAW;AAAjB,CAAA,UAAiB,GAAG,EAAA;AAapB,CAAC,EAbgB,GAAG,KAAH,GAAG,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"jsx-runtime.esm.js","sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { ComponentBase, ElementType, EventArgs } from \"./\";\n\ntype motifPrimitive = string | number | boolean | Node | Text | Element | null | undefined;\n\ndeclare const DEV: boolean;\n\nexport type MotifStyle = string | (() => any) | Array<any> | Object | Partial<CSSStyleDeclaration> | CSSStyleDeclaration;\nexport type MotifClass = string | Record<string, any> | Array<any> | (() => any);\nexport type MotifValue = string | number | boolean | Record<string, any> | Array<any> | (() => any);\nexport type MotifBindable<T> = T | string | (() => T | string);\n\nexport interface MotifBaseProps {\n children?: any;\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n style?: MotifStyle;\n class?: MotifClass;\n className?: MotifClass;\n}\n\ntype MethodLikeProps = {\n focus?: any;\n blur?: any;\n click?: any;\n select?: any;\n scrollIntoView?: any;\n scrollTo?: any;\n scrollBy?: any;\n requestFullscreen?: any;\n exitFullscreen?: any;\n play?: any;\n pause?: any;\n submit?: any;\n reset?: any;\n requestSubmit?: any;\n checkValidity?: any;\n reportValidity?: any;\n show?: any;\n showModal?: any;\n close?: any;\n showPicker?: any;\n setSelectionRange?: any;\n setRangeText?: any;\n requestPointerLock?: any;\n exitPointerLock?: any;\n setPointerCapture?: any;\n releasePointerCapture?: any;\n requestPictureInPicture?: any;\n exitPictureInPicture?: any;\n load?: any;\n fastSeek?: any;\n showPopover?: any;\n hidePopover?: any;\n togglePopover?: any;\n \"onconfig\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onbuilding\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onbuilt\"?: (sender: ComponentBase, e: EventArgs) => void;\n /** Element canlı DOM'a (document) bağlandığında bir kez; focus/ölçüm gibi işler için. */\n \"onmounted\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onconfigured\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"oninitializing\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"oninitialized\"?: (sender: ComponentBase, e: EventArgs) => void;\n};\ntype MethodLikeKeys = keyof MethodLikeProps;\n\nexport type MotifFunctionalComponent<P = Record<string, unknown>> = (\n props: P & MotifBaseProps & any\n) => unknown;\n\nexport type MotifFunctionalComponentBasic = (\n props: MotifBaseProps\n) => unknown;\n\nexport type AnyFunctionalComponent<P = any> = (props: P) => unknown;\nexport type MotifComponentConstructor<TElement extends ElementType = any, P extends Record<string, unknown> = Record<string, unknown>> =\n new (...args: any[]) => ComponentBase<TElement, P>;\n\nexport type MotifComponentType<P = Record<string, unknown>, TElement = unknown> =\n | string\n | MotifFunctionalComponent<P>\n | MotifFunctionalComponentBasic\n | AnyFunctionalComponent<P>\n | MotifComponentConstructor<TElement extends ElementType ? TElement : any, P extends Record<string, unknown> ? P : any>\n | { el: string; ctor?: (this: any, props?: any) => any;[newProp: string]: any };\n\ntype ExtractEventArg<T> = T extends ((this: any, ev: infer EV) => any) | null ? EV : never;\ntype motifEventsFor<TElement> = {\n [P in keyof TElement as P extends `on${string}` ? P : never]?:\n TElement[P] extends ((this: any, ev: infer EV) => any) | null\n ? ((sender: ComponentBase, ev: EV) => any) | ((ev: EV) => any)\n : ((sender: ComponentBase, ev: any) => any) | ((ev: any) => any);\n};\n\n// Transform DOM attributes so that non-event, non-method, non-style/class/value props accept either the value or a function returning it\ntype MotifElementProps<TElement> = {\n [P in keyof Omit<\n Partial<TElement>,\n keyof motifEventsFor<TElement> | 'style' | 'class' | 'className' | 'value' | 'for' | MethodLikeKeys\n >]?: MotifBindable<Partial<TElement>[P]>;\n};\n\ntype IntrinsicHTML = {\n [K in keyof HTMLElementTagNameMap]:\n MotifElementProps<HTMLElementTagNameMap[K]> &\n motifEventsFor<HTMLElementTagNameMap[K]> &\n Partial<MotifBaseProps> &\n MethodLikeProps &\n (K extends 'input' | 'textarea' ? { value?: MotifValue } : {}) & object & { [key: string]: any };\n};\n\ntype IntrinsicSVG = IntrinsicHTML;\n// type IntrinsicSVG = {\n// keyof motifEventsFor<SVGElementTagNameMap[\"svg\"]> | 'style' | 'class' | 'className' | 'value' | MethodLikeKeys\n\ntype IntrinsicElementsMap = IntrinsicHTML & IntrinsicSVG;\n\nexport type __attr = {\n key?: string | number;\n ref?: ComponentBase | ((component: any) => void);\n initializeComponent?: (sender: ComponentBase) => void;\n \"x-wait\"?: (sender: ComponentBase, e: EventArgs) => boolean;\n \"x-building\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-built\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-config\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-configured\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-initializing\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-initialized\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onbuilding\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onbuilt\"?: (sender: ComponentBase, e: EventArgs) => void;\n /** Element canlı DOM'a (document) bağlandığında bir kez;*/\n \"onmounted\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onconfig\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"onconfigured\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"oninitializing\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"oninitialized\"?: (sender: ComponentBase, e: EventArgs) => void;\n \"x-style\"?: MotifStyle;\n}\nexport namespace JSX {\n export type Element = ComponentBase<any, any>;\n export type ElementType = MotifComponentType<any, any>;\n export interface ElementClass extends ComponentBase { }\n export interface ElementAttributesProperty extends __attr {\n props: {};\n };\n\n export interface IntrinsicElements extends IntrinsicElementsMap {\n [elementName: string]: IntrinsicElementsMap[keyof IntrinsicElementsMap];\n }\n\n export interface IntrinsicAttributes extends __attr { };\n}\n\ndeclare global {\n namespace JSX {\n export type Element = ComponentBase<any, any>;\n export type ElementType = MotifComponentType<any, any>;\n export interface ElementClass extends ComponentBase { }\n export interface ElementAttributesProperty extends __attr {\n props: {};\n }\n\n export interface IntrinsicElements extends IntrinsicElementsMap {\n [elementName: string]: IntrinsicElementsMap[keyof IntrinsicElementsMap];\n }\n\n export interface IntrinsicAttributes extends __attr { }\n }\n}\n"],"names":[],"mappings":"AAyIM,IAAW;AAAjB,CAAA,UAAiB,GAAG,EAAA;AAapB,CAAC,EAbgB,GAAG,KAAH,GAAG,GAAA,EAAA,CAAA,CAAA;;;;"}
|