j20 0.0.15 → 0.0.17
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/index.d.ts +16 -13
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime.d.ts +1 -0
- package/dist/jsx-runtime.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4648,15 +4648,6 @@ declare const onMount: (callback: () => (() => void) | void) => void;
|
|
|
4648
4648
|
|
|
4649
4649
|
declare const onDestroy: (callback: () => void) => _j20org_signal.Effect;
|
|
4650
4650
|
|
|
4651
|
-
declare const style: (css?: string) => CSSStyleSheet;
|
|
4652
|
-
|
|
4653
|
-
interface ListProps<T> {
|
|
4654
|
-
of: T[];
|
|
4655
|
-
children: (i: T, index: number) => JSX.Element;
|
|
4656
|
-
trait?: (item: T) => any;
|
|
4657
|
-
}
|
|
4658
|
-
declare const For: <T>(p: ListProps<T>) => Element[];
|
|
4659
|
-
|
|
4660
4651
|
type FC<P extends Record<string, any> = {}> = {
|
|
4661
4652
|
isLogic?: boolean;
|
|
4662
4653
|
} & ((props: P) => JSX.Element);
|
|
@@ -4674,11 +4665,22 @@ type CustomElement<P extends Record<string, any> = {}> = {
|
|
|
4674
4665
|
};
|
|
4675
4666
|
type WC<P extends Record<string, string | boolean | number> = {}, E extends Record<string, any> = {}> = {
|
|
4676
4667
|
customElement: CustomElement<P>;
|
|
4677
|
-
} & ((props:
|
|
4668
|
+
} & ((props: JSX.HTMLAttributes<HTMLElement> & {
|
|
4678
4669
|
children?: JSX.Element;
|
|
4679
|
-
} & {
|
|
4670
|
+
} & P & {
|
|
4680
4671
|
[K in keyof E as `on${Capitalize<K & string>}`]: (e: E[K]) => void;
|
|
4681
4672
|
}) => JSX.Element);
|
|
4673
|
+
type ExtractClasses<T extends string> = T extends `${string}.${infer Name} {${infer Body}${infer _Brace}${infer Rest}` ? Name | ExtractClasses<Body> | ExtractClasses<Rest> : T extends `${string}\n${infer Rest}` ? ExtractClasses<Rest> : never;
|
|
4674
|
+
|
|
4675
|
+
declare const sheet: (css?: string) => CSSStyleSheet;
|
|
4676
|
+
declare const css: <T extends string>(css: T) => { [K in ExtractClasses<T>]: string; };
|
|
4677
|
+
|
|
4678
|
+
interface ListProps<T> {
|
|
4679
|
+
of: T[];
|
|
4680
|
+
children: (i: T, index: number) => JSX.Element;
|
|
4681
|
+
trait?: (item: T) => any;
|
|
4682
|
+
}
|
|
4683
|
+
declare const For: <T>(p: ListProps<T>) => Element[];
|
|
4682
4684
|
|
|
4683
4685
|
interface IfProps {
|
|
4684
4686
|
of: any;
|
|
@@ -4761,5 +4763,6 @@ declare const template: (template: string) => (isSvg: boolean) => any;
|
|
|
4761
4763
|
|
|
4762
4764
|
declare const registerWebComponent: <C extends WC<any, any>>(Comp: C) => void;
|
|
4763
4765
|
|
|
4764
|
-
export { $, $useContext, Case, Default, For, Fragment, If, Replace, Some, Switch, createComponent, createContext, createDom, createElement, createLogicComponent, createRoot, effect, getCurrentInstance, h2, id, instanceCreate, instanceCreateElement, instanceDestroy, instanceGetElements, instanceInit, jsx, jsxs, mounts, onDestroy, onMount, ref, registerWebComponent, securityGetCurrentInstance,
|
|
4765
|
-
export type { AttrValueType, CaseProps, CustomElement, DOMElement, DefaultProps, FC, IfProps, Instance, ListProps, RefObject, ReplaceProps, ReplacePropsInner, SomeProps, SwitchProps, WC };
|
|
4766
|
+
export { $, $useContext, Case, Default, For, Fragment, If, Replace, Some, Switch, createComponent, createContext, createDom, createElement, createLogicComponent, createRoot, css, effect, getCurrentInstance, h2, id, instanceCreate, instanceCreateElement, instanceDestroy, instanceGetElements, instanceInit, jsx, jsxs, mounts, onDestroy, onMount, ref, registerWebComponent, securityGetCurrentInstance, sheet, template, wc };
|
|
4767
|
+
export type { AttrValueType, CaseProps, CustomElement, DOMElement, DefaultProps, ExtractClasses, FC, IfProps, Instance, ListProps, RefObject, ReplaceProps, ReplacePropsInner, SomeProps, SwitchProps, WC };
|
|
4768
|
+
//# sourceMappingURL=index.d.ts.map
|