Comparing version
@@ -1,2 +0,1 @@ | ||
import { Element } from "jsxte-wc"; | ||
export type Dependency<T> = { | ||
@@ -3,0 +2,0 @@ getValue: () => T; |
@@ -1,6 +0,5 @@ | ||
import { AttributeBool } from "jsxte"; | ||
import { InputType } from "jsxte/dist/types/jsx/prop-types/input-jsx-props"; | ||
import { BaseElement } from "../../base-elements"; | ||
import "../../index.css"; | ||
import { CustomKeyboardEvent } from "../../utils/events"; | ||
import { AttributeBool, InputType } from "../../utils/types"; | ||
import "./input.css"; | ||
@@ -49,2 +48,3 @@ declare global { | ||
} | ||
export type { InputChangeEvent }; | ||
export declare class ADWaveInputElement extends BaseElement { | ||
@@ -86,5 +86,3 @@ accessor value: string; | ||
private lastScrollIntoView; | ||
/** | ||
* Scrolls into view the currently highlighted suggestion. | ||
*/ | ||
/** Scrolls into view the currently highlighted suggestion. */ | ||
private scrollActiveToView; | ||
@@ -102,2 +100,1 @@ private handleOptionClick; | ||
} | ||
export {}; |
@@ -1,6 +0,5 @@ | ||
import { AttributeBool } from "jsxte"; | ||
import { WcSlot } from "jsxte-wc"; | ||
import { BaseElement } from "../../base-elements"; | ||
import "../../index.css"; | ||
import { CustomMouseEvent } from "../../utils/events"; | ||
import { AttributeBool } from "../../utils/types"; | ||
import "./selector.css"; | ||
@@ -42,2 +41,8 @@ declare global { | ||
} | ||
declare class SelectorChangeEvent extends CustomEvent<{ | ||
value: string | null; | ||
}> { | ||
constructor(value: string | null); | ||
} | ||
export type { SelectorChangeEvent }; | ||
export declare class ADWaveSelector extends BaseElement { | ||
@@ -49,4 +54,4 @@ accessor placeholder: string | null; | ||
accessor orientation: "up" | "down"; | ||
accessor value: string | null; | ||
accessor isOpen: boolean; | ||
accessor currentOption: string | undefined; | ||
accessor options: ADWaveSelectorOption[]; | ||
@@ -83,3 +88,3 @@ private uid; | ||
constructor(); | ||
isEqualTo(value?: string): boolean; | ||
isEqualTo(value?: string | null): boolean; | ||
hasValue(): boolean; | ||
@@ -86,0 +91,0 @@ getValue(): string; |
@@ -1,5 +0,5 @@ | ||
import { AttributeBool } from "jsxte"; | ||
import { BaseElement } from "../../base-elements"; | ||
import "../../index.css"; | ||
import { CustomPointerEvent } from "../../utils/events"; | ||
import { AttributeBool } from "../../utils/types"; | ||
import "./slider.css"; | ||
@@ -36,2 +36,3 @@ declare global { | ||
} | ||
export type { SliderChangeEvent }; | ||
export declare class ADWaveSliderElement extends BaseElement { | ||
@@ -58,2 +59,1 @@ accessor value: number; | ||
} | ||
export {}; |
@@ -1,5 +0,5 @@ | ||
import { AttributeBool } from "jsxte"; | ||
import { BaseElement } from "../../base-elements"; | ||
import "../../index.css"; | ||
import { CustomKeyboardEvent, CustomMouseEvent } from "../../utils/events"; | ||
import { AttributeBool } from "../../utils/types"; | ||
import "./switch.css"; | ||
@@ -6,0 +6,0 @@ declare global { |
@@ -5,1 +5,2 @@ export * from "./components/input/input"; | ||
export * from "./components/switch/switch"; | ||
export type { CustomKeyboardEvent, CustomMouseEvent, CustomPointerEvent, } from "./utils/events"; |
@@ -1,2 +0,1 @@ | ||
import { Element } from "jsxte-wc"; | ||
export declare const forceClassName: (element: Element, className: string) => void; |
{ | ||
"name": "adwaveui", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "./dist/esm/index.js", | ||
@@ -65,2 +65,3 @@ "types": "./dist/types/index.d.ts", | ||
"husky": "^8.0.3", | ||
"node-os-walk": "^1.0.2", | ||
"prettier": "^3.2.5", | ||
@@ -71,6 +72,6 @@ "prettier-plugin-jsdoc": "^1.3.0", | ||
"dependencies": { | ||
"jsxte": "^3.3.0", | ||
"jsxte-wc": "^1.1.5", | ||
"adwavecss": ">0.0.4" | ||
"adwavecss": ">=0.0.12", | ||
"jsxte": "^3.3.1", | ||
"jsxte-wc": "^1.1.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
102742
0.35%40
5.26%2419
0.04%9
12.5%Updated
Updated