Skip to content

Commit

Permalink
chore: update build files
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvg committed Jun 22, 2024
1 parent 6e330fe commit d2f55af
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 5 deletions.
11 changes: 9 additions & 2 deletions kolibri/library/components/adapters/react/dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ const createForwardRef = (ReactComponent, displayName) => {
return React__default.forwardRef(forwardRef);
};

var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
if (defineCustomElement !== void 0) {
defineCustomElement();
Expand All @@ -129,9 +135,10 @@ const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFun
const ReactComponent = class extends React__default.Component {
constructor(props) {
super(props);
this.setComponentElRef = (element) => {
__publicField(this, "componentEl");
__publicField(this, "setComponentElRef", (element) => {
this.componentEl = element;
};
});
}
componentDidMount() {
this.componentDidUpdate(this.props);
Expand Down
14 changes: 14 additions & 0 deletions kolibri/library/components/adapters/react/dist/index.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as react from 'react';
import { JSX } from '@public-ui/library-components';

interface StyleReactProps {
class?: string;
className?: string;
style?: {
[key: string]: any;
};
}

declare const DemoButton: react.ForwardRefExoticComponent<JSX.DemoButton & Omit<react.HTMLAttributes<HTMLDemoButtonElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLDemoButtonElement>>;

export { DemoButton };
14 changes: 14 additions & 0 deletions kolibri/library/components/adapters/react/dist/index.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as react from 'react';
import { JSX } from '@public-ui/library-components';

interface StyleReactProps {
class?: string;
className?: string;
style?: {
[key: string]: any;
};
}

declare const DemoButton: react.ForwardRefExoticComponent<JSX.DemoButton & Omit<react.HTMLAttributes<HTMLDemoButtonElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLDemoButtonElement>>;

export { DemoButton };
11 changes: 9 additions & 2 deletions kolibri/library/components/adapters/react/dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ const createForwardRef = (ReactComponent, displayName) => {
return React.forwardRef(forwardRef);
};

var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
if (defineCustomElement !== void 0) {
defineCustomElement();
Expand All @@ -123,9 +129,10 @@ const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFun
const ReactComponent = class extends React.Component {
constructor(props) {
super(props);
this.setComponentElRef = (element) => {
__publicField(this, "componentEl");
__publicField(this, "setComponentElRef", (element) => {
this.componentEl = element;
};
});
}
componentDidMount() {
this.componentDidUpdate(this.props);
Expand Down
10 changes: 10 additions & 0 deletions kolibri/library/components/adapters/vue/dist/index.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as vue from 'vue';
import { JSX } from '@public-ui/library-components';

interface InputProps<T> {
modelValue?: T;
}

declare const DemoButton: vue.DefineSetupFnComponent<JSX.DemoButton & InputProps<string | number | boolean>, {}, {}, JSX.DemoButton & InputProps<string | number | boolean> & {}, vue.PublicProps>;

export { DemoButton };
10 changes: 10 additions & 0 deletions kolibri/library/components/adapters/vue/dist/index.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as vue from 'vue';
import { JSX } from '@public-ui/library-components';

interface InputProps<T> {
modelValue?: T;
}

declare const DemoButton: vue.DefineSetupFnComponent<JSX.DemoButton & InputProps<string | number | boolean>, {}, {}, JSX.DemoButton & InputProps<string | number | boolean> & {}, vue.PublicProps>;

export { DemoButton };
13 changes: 13 additions & 0 deletions kolibri/library/schema/dist/index.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Generic, Theme } from 'adopted-style-sheets';

type RequiredButtonProps = NonNullable<unknown>;
type OptionalButtonProps = NonNullable<unknown>;
type RequiredButtonStates = RequiredButtonProps;
type OptionalButtonStates = OptionalButtonProps;
type ButtonProps = Generic.Element.Members<RequiredButtonProps, OptionalButtonProps>;
type ButtonStates = Generic.Element.Members<RequiredButtonStates, OptionalButtonStates>;
type ButtonAPI = Generic.Element.ComponentApi<RequiredButtonProps, OptionalButtonProps, RequiredButtonStates, OptionalButtonStates>;

declare const Demo: Theme<"demo", never, "button">;

export { type ButtonAPI, type ButtonProps, type ButtonStates, Demo, type OptionalButtonProps, type OptionalButtonStates, type RequiredButtonProps, type RequiredButtonStates };
13 changes: 13 additions & 0 deletions kolibri/library/schema/dist/index.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Generic, Theme } from 'adopted-style-sheets';

type RequiredButtonProps = NonNullable<unknown>;
type OptionalButtonProps = NonNullable<unknown>;
type RequiredButtonStates = RequiredButtonProps;
type OptionalButtonStates = OptionalButtonProps;
type ButtonProps = Generic.Element.Members<RequiredButtonProps, OptionalButtonProps>;
type ButtonStates = Generic.Element.Members<RequiredButtonStates, OptionalButtonStates>;
type ButtonAPI = Generic.Element.ComponentApi<RequiredButtonProps, OptionalButtonProps, RequiredButtonStates, OptionalButtonStates>;

declare const Demo: Theme<"demo", never, "button">;

export { type ButtonAPI, type ButtonProps, type ButtonStates, Demo, type OptionalButtonProps, type OptionalButtonStates, type RequiredButtonProps, type RequiredButtonStates };
2 changes: 1 addition & 1 deletion kolibri/library/schema/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ type ButtonAPI = Generic.Element.ComponentApi<RequiredButtonProps, OptionalButto

declare const Demo: Theme<"demo", never, "button">;

export { ButtonAPI, ButtonProps, ButtonStates, Demo, OptionalButtonProps, OptionalButtonStates, RequiredButtonProps, RequiredButtonStates };
export { type ButtonAPI, type ButtonProps, type ButtonStates, Demo, type OptionalButtonProps, type OptionalButtonStates, type RequiredButtonProps, type RequiredButtonStates };

0 comments on commit d2f55af

Please sign in to comment.