zed-gpui 0.0.1
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/LICENSE +21 -0
- package/README.md +160 -0
- package/dist/index.d.mts +202 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 kasukabe tsumugi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# gpuj
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.org/package/gpuj)
|
|
4
|
+
[](https://www.npmjs.org/package/gpuj)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<img src="../../assets/icon.png" width="240px" alt="gpuj logo" />
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
> A functional web front-end framework with gpui-inspired syntax
|
|
12
|
+
|
|
13
|
+
gpuj is a lightweight, functional web framework that provides an elegant, chainable API for building HTML elements with JavaScript/TypeScript. Inspired by the gpui philosophy, it offers a fluent interface for styling, event handling, and DOM manipulation.
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- 🎨 **Rich styling API** - Flexbox, Grid, spacing, colors, typography, and more
|
|
18
|
+
- ⚡ **Event handling** - Comprehensive event listeners (mouse, keyboard, touch, drag & drop, etc.)
|
|
19
|
+
- 🔧 **Type-safe** - Full TypeScript support with type inference
|
|
20
|
+
- 📦 **Auto-injection** - Optional inject module for seamless DOM integration
|
|
21
|
+
- 🪶 **Lightweight** - Zero dependencies, tree-shakeable
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pnpm add gpuj
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { div, p, btn } from 'gpuj';
|
|
33
|
+
|
|
34
|
+
// Create elements with chained styling
|
|
35
|
+
const container = div()
|
|
36
|
+
.flex()
|
|
37
|
+
.gap('1rem')
|
|
38
|
+
.p('2rem')
|
|
39
|
+
.bg('#f0f0f0');
|
|
40
|
+
|
|
41
|
+
const title = p()
|
|
42
|
+
.textSize('1.5rem')
|
|
43
|
+
.text('#333')
|
|
44
|
+
.text('Hello, gpuj!');
|
|
45
|
+
|
|
46
|
+
const button = btn()
|
|
47
|
+
.px('1rem')
|
|
48
|
+
.py('0.5rem')
|
|
49
|
+
.bg('#007bff')
|
|
50
|
+
.text('#fff')
|
|
51
|
+
.rounded('0.25rem')
|
|
52
|
+
.cursorPointer()
|
|
53
|
+
.onClick(() => console.log('Clicked!'))
|
|
54
|
+
.text('Click Me');
|
|
55
|
+
|
|
56
|
+
// Build and append to DOM
|
|
57
|
+
document.body.append(
|
|
58
|
+
container.build(),
|
|
59
|
+
title.build(),
|
|
60
|
+
button.build()
|
|
61
|
+
);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Auto-injection Mode
|
|
65
|
+
|
|
66
|
+
For automatic `build()` calling, import the inject module:
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import 'gpuj/inject';
|
|
70
|
+
import { div, p, btn } from 'gpuj';
|
|
71
|
+
|
|
72
|
+
// Now you can use HTMLBuilder directly with DOM methods
|
|
73
|
+
document.body.append(
|
|
74
|
+
div().flex().p('2rem'),
|
|
75
|
+
p().text('Auto-builded!')
|
|
76
|
+
);
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## API Overview
|
|
80
|
+
|
|
81
|
+
### Element Creation
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
div() // <div>
|
|
85
|
+
span() // <span>
|
|
86
|
+
section()// <section>
|
|
87
|
+
p() // <p>
|
|
88
|
+
btn() // <button>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Layout & Display
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
.flex() // display: flex
|
|
95
|
+
.flexDirection('column') // flex-direction
|
|
96
|
+
.grid() // display: grid
|
|
97
|
+
.gridTemplateColumns('1fr 1fr')
|
|
98
|
+
.block() // display: block
|
|
99
|
+
.hidden() // display: none
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Spacing
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
.p('1rem') // padding
|
|
106
|
+
.px('1rem') // padding-left & right
|
|
107
|
+
.py('1rem') // padding-top & bottom
|
|
108
|
+
.m('1rem') // margin
|
|
109
|
+
.mx('auto') // margin-left & right
|
|
110
|
+
.gap('1rem') // gap (for flex/grid)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Sizing
|
|
114
|
+
|
|
115
|
+
```typescript
|
|
116
|
+
.w('100%') // width
|
|
117
|
+
.h('100px') // height
|
|
118
|
+
.size('50px', '50px') // width & height
|
|
119
|
+
.minW('200px') // min-width
|
|
120
|
+
.maxW('100%') // max-width
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Colors & Backgrounds
|
|
124
|
+
|
|
125
|
+
```typescript
|
|
126
|
+
.bg('#fff') // background-color
|
|
127
|
+
.bgImage('url(...)') // background-image
|
|
128
|
+
.text('#333') // color
|
|
129
|
+
.borderColor('#ccc') // border-color
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Typography
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
.textSize('1rem') // font-size
|
|
136
|
+
.fontWeight('bold') // font-weight
|
|
137
|
+
.textAlign('center') // text-align
|
|
138
|
+
.lineHeight('1.5') // line-height
|
|
139
|
+
.truncate() // text-overflow: ellipsis
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Events
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
.onClick((e) => {})
|
|
146
|
+
.onKeyDown((e) => {})
|
|
147
|
+
.onMouseDown((e) => {})
|
|
148
|
+
.onTouchStart((e) => {})
|
|
149
|
+
.onDrag((e) => {})
|
|
150
|
+
.onScroll((e) => {})
|
|
151
|
+
.on('customEvent', handler)
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## License
|
|
155
|
+
|
|
156
|
+
MIT
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
**GitHub**: [baendlorel/gpuj](https://github.com/baendlorel/gpuj)
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
//#region src/element.d.ts
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElement {
|
|
4
|
+
jpui: true;
|
|
5
|
+
id_(id: string): this;
|
|
6
|
+
attr(attr: string, value: any): this;
|
|
7
|
+
child(...nodes: any[]): this;
|
|
8
|
+
class(classList: string[]): this;
|
|
9
|
+
class(className: string): this;
|
|
10
|
+
w(w: string): this;
|
|
11
|
+
h(h: string): this;
|
|
12
|
+
size(w: string, h: string): this;
|
|
13
|
+
minW(w: string): this;
|
|
14
|
+
minH(h: string): this;
|
|
15
|
+
maxW(w: string): this;
|
|
16
|
+
maxH(h: string): this;
|
|
17
|
+
flex(): this;
|
|
18
|
+
flexFlex(): this;
|
|
19
|
+
flexNone(): this;
|
|
20
|
+
flexAuto(): this;
|
|
21
|
+
flexGrow(grow: number): this;
|
|
22
|
+
flexShrink(shrink: number): this;
|
|
23
|
+
flexBasis(basis: string): this;
|
|
24
|
+
flexDirection(direction: string): this;
|
|
25
|
+
flexWrap(wrap: string): this;
|
|
26
|
+
grid(): this;
|
|
27
|
+
gridTemplateColumns(columns: string): this;
|
|
28
|
+
gridTemplateRows(rows: string): this;
|
|
29
|
+
gridColumn(column: string): this;
|
|
30
|
+
gridRow(row: string): this;
|
|
31
|
+
gap(gap: string): this;
|
|
32
|
+
gapX(gap: string): this;
|
|
33
|
+
gapY(gap: string): this;
|
|
34
|
+
justify(justify: string): this;
|
|
35
|
+
items(items: string): this;
|
|
36
|
+
content(content: string): this;
|
|
37
|
+
self(alignSelf: string): this;
|
|
38
|
+
justifySelf(justifySelf: string): this;
|
|
39
|
+
px(px: string): this;
|
|
40
|
+
py(py: string): this;
|
|
41
|
+
pt(pt: string): this;
|
|
42
|
+
pr(pr: string): this;
|
|
43
|
+
pb(pb: string): this;
|
|
44
|
+
pl(pl: string): this;
|
|
45
|
+
p(p: string): this;
|
|
46
|
+
mx(mx: string): this;
|
|
47
|
+
my(my: string): this;
|
|
48
|
+
mt(mt: string): this;
|
|
49
|
+
mr(mr: string): this;
|
|
50
|
+
mb(mb: string): this;
|
|
51
|
+
ml(ml: string): this;
|
|
52
|
+
m(m: string): this;
|
|
53
|
+
border(): this;
|
|
54
|
+
borderW(width: string): this;
|
|
55
|
+
borderT(width: string): this;
|
|
56
|
+
borderR(width: string): this;
|
|
57
|
+
borderB(width: string): this;
|
|
58
|
+
borderL(width: string): this;
|
|
59
|
+
borderColor(color: string): this;
|
|
60
|
+
borderStyle(style: string): this;
|
|
61
|
+
rounded(radius: string): this;
|
|
62
|
+
roundedTL(radius: string): this;
|
|
63
|
+
roundedTR(radius: string): this;
|
|
64
|
+
roundedBL(radius: string): this;
|
|
65
|
+
roundedBR(radius: string): this;
|
|
66
|
+
bg(color: string): this;
|
|
67
|
+
bgColor(color: string): this;
|
|
68
|
+
bgImage(image: string): this;
|
|
69
|
+
bgSize(size: string): this;
|
|
70
|
+
bgPosition(position: string): this;
|
|
71
|
+
bgRepeat(repeat: string): this;
|
|
72
|
+
shadow(shadow: string): this;
|
|
73
|
+
shadowMd(): this;
|
|
74
|
+
shadowLg(): this;
|
|
75
|
+
shadowNone(): this;
|
|
76
|
+
opacity(value: number): this;
|
|
77
|
+
text(color: string): this;
|
|
78
|
+
textColor(color: string): this;
|
|
79
|
+
textSize(size: string): this;
|
|
80
|
+
textAlign(align: string): this;
|
|
81
|
+
fontWeight(weight: string): this;
|
|
82
|
+
lineHeight(height: string): this;
|
|
83
|
+
letterSpacing(spacing: string): this;
|
|
84
|
+
textOverflow(overflow: string): this;
|
|
85
|
+
whitespace(value: string): this;
|
|
86
|
+
truncate(): this;
|
|
87
|
+
lineClamp(lines: number): this;
|
|
88
|
+
relative(): this;
|
|
89
|
+
absolute(): this;
|
|
90
|
+
fixed(): this;
|
|
91
|
+
sticky(): this;
|
|
92
|
+
static(): this;
|
|
93
|
+
inset(value: string): this;
|
|
94
|
+
insetY(value: string): this;
|
|
95
|
+
insetX(value: string): this;
|
|
96
|
+
top(value: string): this;
|
|
97
|
+
right(value: string): this;
|
|
98
|
+
bottom(value: string): this;
|
|
99
|
+
left(value: string): this;
|
|
100
|
+
z(value: number): this;
|
|
101
|
+
zIndex(value: number): this;
|
|
102
|
+
overflow(value: string): this;
|
|
103
|
+
overflowX(value: string): this;
|
|
104
|
+
overflowY(value: string): this;
|
|
105
|
+
overflowHidden(): this;
|
|
106
|
+
overflowScroll(): this;
|
|
107
|
+
overflowAuto(): this;
|
|
108
|
+
overflowVisible(): this;
|
|
109
|
+
cursor(cursor: string): this;
|
|
110
|
+
cursorPointer(): this;
|
|
111
|
+
cursorDefault(): this;
|
|
112
|
+
cursorMove(): this;
|
|
113
|
+
cursorGrab(): this;
|
|
114
|
+
cursorGrabbing(): this;
|
|
115
|
+
pointerEvents(value: string): this;
|
|
116
|
+
pointerEventsNone(): this;
|
|
117
|
+
pointerEventsAuto(): this;
|
|
118
|
+
userSelect(value: string): this;
|
|
119
|
+
selectNone(): this;
|
|
120
|
+
selectText(): this;
|
|
121
|
+
selectAll(): this;
|
|
122
|
+
block(): this;
|
|
123
|
+
inlineBlock(): this;
|
|
124
|
+
inline(): this;
|
|
125
|
+
hide(): this;
|
|
126
|
+
visible(): this;
|
|
127
|
+
invisible(): this;
|
|
128
|
+
rotate(deg: number): this;
|
|
129
|
+
scale(x: number, y?: number): this;
|
|
130
|
+
transformTranslate(x: string, y: string): this;
|
|
131
|
+
transition(property: string): this;
|
|
132
|
+
transitionDuration(duration: string): this;
|
|
133
|
+
transitionTimingFunction(timing: string): this;
|
|
134
|
+
transitionDelay(delay: string): this;
|
|
135
|
+
onClick(handler: (event: MouseEvent) => void): this;
|
|
136
|
+
onDoubleClick(handler: (event: MouseEvent) => void): this;
|
|
137
|
+
onMouseDown(handler: (event: MouseEvent) => void): this;
|
|
138
|
+
onMouseUp(handler: (event: MouseEvent) => void): this;
|
|
139
|
+
onMouseMove(handler: (event: MouseEvent) => void): this;
|
|
140
|
+
onMouseEnter(handler: (event: MouseEvent) => void): this;
|
|
141
|
+
onMouseLeave(handler: (event: MouseEvent) => void): this;
|
|
142
|
+
onMouseOver(handler: (event: MouseEvent) => void): this;
|
|
143
|
+
onMouseOut(handler: (event: MouseEvent) => void): this;
|
|
144
|
+
onMouseWheel(handler: (event: WheelEvent) => void): this;
|
|
145
|
+
onKeyDown(handler: (event: KeyboardEvent) => void): this;
|
|
146
|
+
onKeyUp(handler: (event: KeyboardEvent) => void): this;
|
|
147
|
+
onKeyPress(handler: (event: KeyboardEvent) => void): this;
|
|
148
|
+
onFocus(handler: (event: FocusEvent) => void): this;
|
|
149
|
+
onBlur(handler: (event: FocusEvent) => void): this;
|
|
150
|
+
onFocusIn(handler: (event: FocusEvent) => void): this;
|
|
151
|
+
onFocusOut(handler: (event: FocusEvent) => void): this;
|
|
152
|
+
onChange(handler: (event: Event) => void): this;
|
|
153
|
+
onInput(handler: (event: Event) => void): this;
|
|
154
|
+
onSubmit(handler: (event: SubmitEvent) => void): this;
|
|
155
|
+
onReset(handler: (event: Event) => void): this;
|
|
156
|
+
onTouchStart(handler: (event: TouchEvent) => void): this;
|
|
157
|
+
onTouchEnd(handler: (event: TouchEvent) => void): this;
|
|
158
|
+
onTouchMove(handler: (event: TouchEvent) => void): this;
|
|
159
|
+
onTouchCancel(handler: (event: TouchEvent) => void): this;
|
|
160
|
+
onDrag(handler: (event: DragEvent) => void): this;
|
|
161
|
+
onDragStart(handler: (event: DragEvent) => void): this;
|
|
162
|
+
onDragEnd(handler: (event: DragEvent) => void): this;
|
|
163
|
+
onDragEnter(handler: (event: DragEvent) => void): this;
|
|
164
|
+
onDragLeave(handler: (event: DragEvent) => void): this;
|
|
165
|
+
onDragOver(handler: (event: DragEvent) => void): this;
|
|
166
|
+
onDragDrop(handler: (event: DragEvent) => void): this;
|
|
167
|
+
onCopy(handler: (event: ClipboardEvent) => void): this;
|
|
168
|
+
onCut(handler: (event: ClipboardEvent) => void): this;
|
|
169
|
+
onPaste(handler: (event: ClipboardEvent) => void): this;
|
|
170
|
+
onScroll(handler: (event: Event) => void): this;
|
|
171
|
+
onResize(handler: (event: UIEvent) => void): this;
|
|
172
|
+
onPlay(handler: (event: Event) => void): this;
|
|
173
|
+
onPause(handler: (event: Event) => void): this;
|
|
174
|
+
onEnded(handler: (event: Event) => void): this;
|
|
175
|
+
onVolumeChange(handler: (event: Event) => void): this;
|
|
176
|
+
onAnimationStart(handler: (event: AnimationEvent) => void): this;
|
|
177
|
+
onAnimationEnd(handler: (event: AnimationEvent) => void): this;
|
|
178
|
+
onAnimationIteration(handler: (event: AnimationEvent) => void): this;
|
|
179
|
+
onTransitionEnd(handler: (event: TransitionEvent) => void): this;
|
|
180
|
+
onPointerDown(handler: (event: PointerEvent) => void): this;
|
|
181
|
+
onPointerUp(handler: (event: PointerEvent) => void): this;
|
|
182
|
+
onPointerMove(handler: (event: PointerEvent) => void): this;
|
|
183
|
+
onPointerEnter(handler: (event: PointerEvent) => void): this;
|
|
184
|
+
onPointerLeave(handler: (event: PointerEvent) => void): this;
|
|
185
|
+
onPointerCancel(handler: (event: PointerEvent) => void): this;
|
|
186
|
+
on(eventName: string, handler: EventListener): this;
|
|
187
|
+
off(eventName: string, handler: EventListener): this;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/index.d.ts
|
|
192
|
+
declare const h: <T extends keyof HTMLElementTagNameMap>(tag: T) => HTMLElementTagNameMap[T];
|
|
193
|
+
declare const div: () => HTMLDivElement;
|
|
194
|
+
declare const span: () => HTMLSpanElement;
|
|
195
|
+
declare const section: () => HTMLElement;
|
|
196
|
+
declare const p: () => HTMLParagraphElement;
|
|
197
|
+
declare const input: () => HTMLInputElement;
|
|
198
|
+
declare const textarea: () => HTMLTextAreaElement;
|
|
199
|
+
declare const btn: () => HTMLButtonElement;
|
|
200
|
+
//#endregion
|
|
201
|
+
export { btn, div, h, input, p, section, span, textarea };
|
|
202
|
+
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.assign(HTMLElement.prototype,{id_(e){return this.id=e,this},attr(e,t){return this.setAttribute(e,t),this},child(...e){return this.append(...e),this},class(e){return Array.isArray(e)?this.className=e.join(` `):this.className=e,this},w(e){return this.style.width=e,this},h(e){return this.style.height=e,this},size(e,t){return this.style.width=e,this.style.height=t,this},minW(e){return this.style.minWidth=e,this},minH(e){return this.style.minHeight=e,this},maxW(e){return this.style.maxWidth=e,this},maxH(e){return this.style.maxHeight=e,this},flex(){return this.style.display=`flex`,this},flexFlex(){return this.style.display=`flex`,this.style.flex=`1 1 0%`,this},flexNone(){return this.style.flex=`none`,this},flexAuto(){return this.style.flex=`1 1 auto`,this},flexGrow(e){return this.style.flexGrow=String(e),this},flexShrink(e){return this.style.flexShrink=String(e),this},flexBasis(e){return this.style.flexBasis=e,this},flexDirection(e){return this.style.flexDirection=e,this},flexWrap(e){return this.style.flexWrap=e,this},grid(){return this.style.display=`grid`,this},gridTemplateColumns(e){return this.style.gridTemplateColumns=e,this},gridTemplateRows(e){return this.style.gridTemplateRows=e,this},gridColumn(e){return this.style.gridColumn=e,this},gridRow(e){return this.style.gridRow=e,this},gap(e){return this.style.gap=e,this},gapX(e){return this.style.columnGap=e,this},gapY(e){return this.style.rowGap=e,this},justify(e){return this.style.justifyContent=e,this},items(e){return this.style.alignItems=e,this},content(e){return this.style.alignContent=e,this},self(e){return this.style.alignSelf=e,this},justifySelf(e){return this.style.justifySelf=e,this},px(e){return this.style.paddingLeft=e,this.style.paddingRight=e,this},py(e){return this.style.paddingTop=e,this.style.paddingBottom=e,this},pt(e){return this.style.paddingTop=e,this},pr(e){return this.style.paddingRight=e,this},pb(e){return this.style.paddingBottom=e,this},pl(e){return this.style.paddingLeft=e,this},p(e){return this.style.padding=e,this},mx(e){return this.style.marginLeft=e,this.style.marginRight=e,this},my(e){return this.style.marginTop=e,this.style.marginBottom=e,this},mt(e){return this.style.marginTop=e,this},mr(e){return this.style.marginRight=e,this},mb(e){return this.style.marginBottom=e,this},ml(e){return this.style.marginLeft=e,this},m(e){return this.style.margin=e,this},border(){return this.style.border=`1px solid currentColor`,this},borderW(e){return this.style.borderWidth=e,this},borderT(e){return this.style.borderTopWidth=e,this},borderR(e){return this.style.borderRightWidth=e,this},borderB(e){return this.style.borderBottomWidth=e,this},borderL(e){return this.style.borderLeftWidth=e,this},borderColor(e){return this.style.borderColor=e,this},borderStyle(e){return this.style.borderStyle=e,this},rounded(e){return this.style.borderRadius=e,this},roundedTL(e){return this.style.borderTopLeftRadius=e,this},roundedTR(e){return this.style.borderTopRightRadius=e,this},roundedBL(e){return this.style.borderBottomLeftRadius=e,this},roundedBR(e){return this.style.borderBottomRightRadius=e,this},bg(e){return this.style.backgroundColor=e,this},bgColor(e){return this.style.backgroundColor=e,this},bgImage(e){return this.style.backgroundImage=e,this},bgSize(e){return this.style.backgroundSize=e,this},bgPosition(e){return this.style.backgroundPosition=e,this},bgRepeat(e){return this.style.backgroundRepeat=e,this},shadow(e){return this.style.boxShadow=e,this},shadowMd(){return this.style.boxShadow=`0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)`,this},shadowLg(){return this.style.boxShadow=`0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)`,this},shadowNone(){return this.style.boxShadow=`none`,this},opacity(e){return this.style.opacity=String(e),this},text(e){return this.style.color=e,this},textColor(e){return this.style.color=e,this},textSize(e){return this.style.fontSize=e,this},textAlign(e){return this.style.textAlign=e,this},fontWeight(e){return this.style.fontWeight=e,this},lineHeight(e){return this.style.lineHeight=e,this},letterSpacing(e){return this.style.letterSpacing=e,this},textOverflow(e){return this.style.textOverflow=e,this},whitespace(e){return this.style.whiteSpace=e,this},truncate(){return this.style.overflow=`hidden`,this.style.textOverflow=`ellipsis`,this.style.whiteSpace=`nowrap`,this},lineClamp(e){return this.style.display=`-webkit-box`,this.style.webkitLineClamp=String(e),this.style.webkitBoxOrient=`vertical`,this.style.overflow=`hidden`,this},relative(){return this.style.position=`relative`,this},absolute(){return this.style.position=`absolute`,this},fixed(){return this.style.position=`fixed`,this},sticky(){return this.style.position=`sticky`,this},static(){return this.style.position=`static`,this},inset(e){return this.style.top=e,this.style.right=e,this.style.bottom=e,this.style.left=e,this},insetY(e){return this.style.top=e,this.style.bottom=e,this},insetX(e){return this.style.right=e,this.style.left=e,this},top(e){return this.style.top=e,this},right(e){return this.style.right=e,this},bottom(e){return this.style.bottom=e,this},left(e){return this.style.left=e,this},z(e){return this.style.zIndex=String(e),this},zIndex(e){return this.style.zIndex=String(e),this},overflow(e){return this.style.overflow=e,this},overflowX(e){return this.style.overflowX=e,this},overflowY(e){return this.style.overflowY=e,this},overflowHidden(){return this.style.overflow=`hidden`,this},overflowScroll(){return this.style.overflow=`scroll`,this},overflowAuto(){return this.style.overflow=`auto`,this},overflowVisible(){return this.style.overflow=`visible`,this},cursor(e){return this.style.cursor=e,this},cursorPointer(){return this.style.cursor=`pointer`,this},cursorDefault(){return this.style.cursor=`default`,this},cursorMove(){return this.style.cursor=`move`,this},cursorGrab(){return this.style.cursor=`grab`,this},cursorGrabbing(){return this.style.cursor=`grabbing`,this},pointerEvents(e){return this.style.pointerEvents=e,this},pointerEventsNone(){return this.style.pointerEvents=`none`,this},pointerEventsAuto(){return this.style.pointerEvents=`auto`,this},userSelect(e){return this.style.userSelect=e,this},selectNone(){return this.style.userSelect=`none`,this},selectText(){return this.style.userSelect=`text`,this},selectAll(){return this.style.userSelect=`all`,this},block(){return this.style.display=`block`,this},inlineBlock(){return this.style.display=`inline-block`,this},inline(){return this.style.display=`inline`,this},hide(){return this.style.display=`none`,this},visible(){return this.style.visibility=`visible`,this},invisible(){return this.style.visibility=`hidden`,this},rotate(e){return this.style.transform=`rotate(${e}deg)`,this},scale(e,t){let n=t===void 0?e:t;return this.style.transform=`scale(${e}, ${n})`,this},transformTranslate(e,t){return this.style.transform=`translate(${e}, ${t})`,this},transition(e){return this.style.transition=e,this},transitionDuration(e){return this.style.transitionDuration=e,this},transitionTimingFunction(e){return this.style.transitionTimingFunction=e,this},transitionDelay(e){return this.style.transitionDelay=e,this},onClick(e){return this.addEventListener(`click`,e),this},onDoubleClick(e){return this.addEventListener(`dblclick`,e),this},onMouseDown(e){return this.addEventListener(`mousedown`,e),this},onMouseUp(e){return this.addEventListener(`mouseup`,e),this},onMouseMove(e){return this.addEventListener(`mousemove`,e),this},onMouseEnter(e){return this.addEventListener(`mouseenter`,e),this},onMouseLeave(e){return this.addEventListener(`mouseleave`,e),this},onMouseOver(e){return this.addEventListener(`mouseover`,e),this},onMouseOut(e){return this.addEventListener(`mouseout`,e),this},onMouseWheel(e){return this.addEventListener(`wheel`,e),this},onKeyDown(e){return this.addEventListener(`keydown`,e),this},onKeyUp(e){return this.addEventListener(`keyup`,e),this},onKeyPress(e){return this.addEventListener(`keypress`,e),this},onFocus(e){return this.addEventListener(`focus`,e),this},onBlur(e){return this.addEventListener(`blur`,e),this},onFocusIn(e){return this.addEventListener(`focusin`,e),this},onFocusOut(e){return this.addEventListener(`focusout`,e),this},onChange(e){return this.addEventListener(`change`,e),this},onInput(e){return this.addEventListener(`input`,e),this},onSubmit(e){return this.addEventListener(`submit`,e),this},onReset(e){return this.addEventListener(`reset`,e),this},onTouchStart(e){return this.addEventListener(`touchstart`,e),this},onTouchEnd(e){return this.addEventListener(`touchend`,e),this},onTouchMove(e){return this.addEventListener(`touchmove`,e),this},onTouchCancel(e){return this.addEventListener(`touchcancel`,e),this},onDrag(e){return this.addEventListener(`drag`,e),this},onDragStart(e){return this.addEventListener(`dragstart`,e),this},onDragEnd(e){return this.addEventListener(`dragend`,e),this},onDragEnter(e){return this.addEventListener(`dragenter`,e),this},onDragLeave(e){return this.addEventListener(`dragleave`,e),this},onDragOver(e){return this.addEventListener(`dragover`,e),this},onDragDrop(e){return this.addEventListener(`drop`,e),this},onCopy(e){return this.addEventListener(`copy`,e),this},onCut(e){return this.addEventListener(`cut`,e),this},onPaste(e){return this.addEventListener(`paste`,e),this},onScroll(e){return this.addEventListener(`scroll`,e),this},onResize(e){return this.addEventListener(`resize`,e),this},onPlay(e){return this.addEventListener(`play`,e),this},onPause(e){return this.addEventListener(`pause`,e),this},onEnded(e){return this.addEventListener(`ended`,e),this},onVolumeChange(e){return this.addEventListener(`volumechange`,e),this},onAnimationStart(e){return this.addEventListener(`animationstart`,e),this},onAnimationEnd(e){return this.addEventListener(`animationend`,e),this},onAnimationIteration(e){return this.addEventListener(`animationiteration`,e),this},onTransitionEnd(e){return this.addEventListener(`transitionend`,e),this},onPointerDown(e){return this.addEventListener(`pointerdown`,e),this},onPointerUp(e){return this.addEventListener(`pointerup`,e),this},onPointerMove(e){return this.addEventListener(`pointermove`,e),this},onPointerEnter(e){return this.addEventListener(`pointerenter`,e),this},onPointerLeave(e){return this.addEventListener(`pointerleave`,e),this},onPointerCancel(e){return this.addEventListener(`pointercancel`,e),this},on(e,t){return this.addEventListener(e,t),this},off(e,t){return this.removeEventListener(e,t),this}});const e=e=>document.createElement(e),t=()=>document.createElement(`div`),n=()=>document.createElement(`span`),r=()=>document.createElement(`section`),i=()=>document.createElement(`p`),a=()=>document.createElement(`input`),o=()=>document.createElement(`textarea`),s=()=>document.createElement(`button`);export{s as btn,t as div,e as h,a as input,i as p,r as section,n as span,o as textarea};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/element.ts","../src/index.ts"],"sourcesContent":["declare global {\n interface HTMLElement {\n jpui: true;\n\n // # utils\n id_(id: string): this;\n attr(attr: string, value: any): this;\n child(...nodes: any[]): this;\n\n // # styles\n class(classList: string[]): this;\n class(className: string): this;\n w(w: string): this;\n h(h: string): this;\n size(w: string, h: string): this;\n minW(w: string): this;\n minH(h: string): this;\n maxW(w: string): this;\n maxH(h: string): this;\n flex(): this;\n flexFlex(): this;\n flexNone(): this;\n flexAuto(): this;\n flexGrow(grow: number): this;\n flexShrink(shrink: number): this;\n flexBasis(basis: string): this;\n flexDirection(direction: string): this;\n flexWrap(wrap: string): this;\n grid(): this;\n gridTemplateColumns(columns: string): this;\n gridTemplateRows(rows: string): this;\n gridColumn(column: string): this;\n gridRow(row: string): this;\n gap(gap: string): this;\n gapX(gap: string): this;\n gapY(gap: string): this;\n justify(justify: string): this;\n items(items: string): this;\n content(content: string): this;\n self(alignSelf: string): this;\n justifySelf(justifySelf: string): this;\n px(px: string): this;\n py(py: string): this;\n pt(pt: string): this;\n pr(pr: string): this;\n pb(pb: string): this;\n pl(pl: string): this;\n p(p: string): this;\n mx(mx: string): this;\n my(my: string): this;\n mt(mt: string): this;\n mr(mr: string): this;\n mb(mb: string): this;\n ml(ml: string): this;\n m(m: string): this;\n border(): this;\n borderW(width: string): this;\n borderT(width: string): this;\n borderR(width: string): this;\n borderB(width: string): this;\n borderL(width: string): this;\n borderColor(color: string): this;\n borderStyle(style: string): this;\n rounded(radius: string): this;\n roundedTL(radius: string): this;\n roundedTR(radius: string): this;\n roundedBL(radius: string): this;\n roundedBR(radius: string): this;\n bg(color: string): this;\n bgColor(color: string): this;\n bgImage(image: string): this;\n bgSize(size: string): this;\n bgPosition(position: string): this;\n bgRepeat(repeat: string): this;\n shadow(shadow: string): this;\n shadowMd(): this;\n shadowLg(): this;\n shadowNone(): this;\n opacity(value: number): this;\n text(color: string): this;\n textColor(color: string): this;\n textSize(size: string): this;\n textAlign(align: string): this;\n fontWeight(weight: string): this;\n lineHeight(height: string): this;\n letterSpacing(spacing: string): this;\n textOverflow(overflow: string): this;\n whitespace(value: string): this;\n truncate(): this;\n lineClamp(lines: number): this;\n relative(): this;\n absolute(): this;\n fixed(): this;\n sticky(): this;\n static(): this;\n inset(value: string): this;\n insetY(value: string): this;\n insetX(value: string): this;\n top(value: string): this;\n right(value: string): this;\n bottom(value: string): this;\n left(value: string): this;\n z(value: number): this;\n zIndex(value: number): this;\n overflow(value: string): this;\n overflowX(value: string): this;\n overflowY(value: string): this;\n overflowHidden(): this;\n overflowScroll(): this;\n overflowAuto(): this;\n overflowVisible(): this;\n cursor(cursor: string): this;\n cursorPointer(): this;\n cursorDefault(): this;\n cursorMove(): this;\n cursorGrab(): this;\n cursorGrabbing(): this;\n pointerEvents(value: string): this;\n pointerEventsNone(): this;\n pointerEventsAuto(): this;\n userSelect(value: string): this;\n selectNone(): this;\n selectText(): this;\n selectAll(): this;\n block(): this;\n inlineBlock(): this;\n inline(): this;\n // renamed from hidden() to avoid clashing with HTMLElement.hidden\n hide(): this;\n visible(): this;\n invisible(): this;\n rotate(deg: number): this;\n scale(x: number, y?: number): this;\n // renamed from translate() to avoid clashing with HTMLElement.translate\n transformTranslate(x: string, y: string): this;\n transition(property: string): this;\n transitionDuration(duration: string): this;\n transitionTimingFunction(timing: string): this;\n transitionDelay(delay: string): this;\n\n // # events\n onClick(handler: (event: MouseEvent) => void): this;\n onDoubleClick(handler: (event: MouseEvent) => void): this;\n onMouseDown(handler: (event: MouseEvent) => void): this;\n onMouseUp(handler: (event: MouseEvent) => void): this;\n onMouseMove(handler: (event: MouseEvent) => void): this;\n onMouseEnter(handler: (event: MouseEvent) => void): this;\n onMouseLeave(handler: (event: MouseEvent) => void): this;\n onMouseOver(handler: (event: MouseEvent) => void): this;\n onMouseOut(handler: (event: MouseEvent) => void): this;\n onMouseWheel(handler: (event: WheelEvent) => void): this;\n onKeyDown(handler: (event: KeyboardEvent) => void): this;\n onKeyUp(handler: (event: KeyboardEvent) => void): this;\n onKeyPress(handler: (event: KeyboardEvent) => void): this;\n onFocus(handler: (event: FocusEvent) => void): this;\n onBlur(handler: (event: FocusEvent) => void): this;\n onFocusIn(handler: (event: FocusEvent) => void): this;\n onFocusOut(handler: (event: FocusEvent) => void): this;\n onChange(handler: (event: Event) => void): this;\n onInput(handler: (event: Event) => void): this;\n onSubmit(handler: (event: SubmitEvent) => void): this;\n onReset(handler: (event: Event) => void): this;\n onTouchStart(handler: (event: TouchEvent) => void): this;\n onTouchEnd(handler: (event: TouchEvent) => void): this;\n onTouchMove(handler: (event: TouchEvent) => void): this;\n onTouchCancel(handler: (event: TouchEvent) => void): this;\n onDrag(handler: (event: DragEvent) => void): this;\n onDragStart(handler: (event: DragEvent) => void): this;\n onDragEnd(handler: (event: DragEvent) => void): this;\n onDragEnter(handler: (event: DragEvent) => void): this;\n onDragLeave(handler: (event: DragEvent) => void): this;\n onDragOver(handler: (event: DragEvent) => void): this;\n onDragDrop(handler: (event: DragEvent) => void): this;\n onCopy(handler: (event: ClipboardEvent) => void): this;\n onCut(handler: (event: ClipboardEvent) => void): this;\n onPaste(handler: (event: ClipboardEvent) => void): this;\n onScroll(handler: (event: Event) => void): this;\n onResize(handler: (event: UIEvent) => void): this;\n onPlay(handler: (event: Event) => void): this;\n onPause(handler: (event: Event) => void): this;\n onEnded(handler: (event: Event) => void): this;\n onVolumeChange(handler: (event: Event) => void): this;\n onAnimationStart(handler: (event: AnimationEvent) => void): this;\n onAnimationEnd(handler: (event: AnimationEvent) => void): this;\n onAnimationIteration(handler: (event: AnimationEvent) => void): this;\n onTransitionEnd(handler: (event: TransitionEvent) => void): this;\n onPointerDown(handler: (event: PointerEvent) => void): this;\n onPointerUp(handler: (event: PointerEvent) => void): this;\n onPointerMove(handler: (event: PointerEvent) => void): this;\n onPointerEnter(handler: (event: PointerEvent) => void): this;\n onPointerLeave(handler: (event: PointerEvent) => void): this;\n onPointerCancel(handler: (event: PointerEvent) => void): this;\n on(eventName: string, handler: EventListener): this;\n off(eventName: string, handler: EventListener): this;\n }\n}\n\nObject.assign(HTMLElement.prototype, {\n id_(id) {\n this.id = id;\n return this;\n },\n attr(attr, value) {\n this.setAttribute(attr, value);\n return this;\n },\n child(...nodes) {\n this.append(...nodes);\n return this;\n },\n class(c) {\n if (Array.isArray(c)) {\n this.className = c.join(' ');\n } else {\n this.className = c;\n }\n return this;\n },\n w(w) {\n this.style.width = w;\n return this;\n },\n\n h(h) {\n this.style.height = h;\n return this;\n },\n\n size(w, h) {\n this.style.width = w;\n this.style.height = h;\n return this;\n },\n\n minW(w) {\n this.style.minWidth = w;\n return this;\n },\n\n minH(h) {\n this.style.minHeight = h;\n return this;\n },\n\n maxW(w) {\n this.style.maxWidth = w;\n return this;\n },\n\n maxH(h) {\n this.style.maxHeight = h;\n return this;\n },\n\n flex() {\n this.style.display = 'flex';\n return this;\n },\n\n flexFlex() {\n this.style.display = 'flex';\n this.style.flex = '1 1 0%';\n return this;\n },\n\n flexNone() {\n this.style.flex = 'none';\n return this;\n },\n\n flexAuto() {\n this.style.flex = '1 1 auto';\n return this;\n },\n\n flexGrow(grow) {\n this.style.flexGrow = String(grow);\n return this;\n },\n\n flexShrink(shrink) {\n this.style.flexShrink = String(shrink);\n return this;\n },\n\n flexBasis(basis) {\n this.style.flexBasis = basis;\n return this;\n },\n\n flexDirection(direction) {\n this.style.flexDirection = direction;\n return this;\n },\n\n flexWrap(wrap) {\n this.style.flexWrap = wrap;\n return this;\n },\n\n grid() {\n this.style.display = 'grid';\n return this;\n },\n\n gridTemplateColumns(columns) {\n this.style.gridTemplateColumns = columns;\n return this;\n },\n\n gridTemplateRows(rows) {\n this.style.gridTemplateRows = rows;\n return this;\n },\n\n gridColumn(column) {\n this.style.gridColumn = column;\n return this;\n },\n\n gridRow(row) {\n this.style.gridRow = row;\n return this;\n },\n\n gap(gap) {\n this.style.gap = gap;\n return this;\n },\n\n gapX(gap) {\n this.style.columnGap = gap;\n return this;\n },\n\n gapY(gap) {\n this.style.rowGap = gap;\n return this;\n },\n\n justify(justify) {\n this.style.justifyContent = justify;\n return this;\n },\n\n items(items) {\n this.style.alignItems = items;\n return this;\n },\n\n content(content) {\n this.style.alignContent = content;\n return this;\n },\n\n self(alignSelf) {\n this.style.alignSelf = alignSelf;\n return this;\n },\n\n justifySelf(justifySelf) {\n this.style.justifySelf = justifySelf;\n return this;\n },\n\n px(px) {\n this.style.paddingLeft = px;\n this.style.paddingRight = px;\n return this;\n },\n\n py(py) {\n this.style.paddingTop = py;\n this.style.paddingBottom = py;\n return this;\n },\n\n pt(pt) {\n this.style.paddingTop = pt;\n return this;\n },\n\n pr(pr) {\n this.style.paddingRight = pr;\n return this;\n },\n\n pb(pb) {\n this.style.paddingBottom = pb;\n return this;\n },\n\n pl(pl) {\n this.style.paddingLeft = pl;\n return this;\n },\n\n p(p) {\n this.style.padding = p;\n return this;\n },\n\n mx(mx) {\n this.style.marginLeft = mx;\n this.style.marginRight = mx;\n return this;\n },\n\n my(my) {\n this.style.marginTop = my;\n this.style.marginBottom = my;\n return this;\n },\n\n mt(mt) {\n this.style.marginTop = mt;\n return this;\n },\n\n mr(mr) {\n this.style.marginRight = mr;\n return this;\n },\n\n mb(mb) {\n this.style.marginBottom = mb;\n return this;\n },\n\n ml(ml) {\n this.style.marginLeft = ml;\n return this;\n },\n\n m(m) {\n this.style.margin = m;\n return this;\n },\n\n border() {\n this.style.border = '1px solid currentColor';\n return this;\n },\n\n borderW(width) {\n this.style.borderWidth = width;\n return this;\n },\n\n borderT(width) {\n this.style.borderTopWidth = width;\n return this;\n },\n\n borderR(width) {\n this.style.borderRightWidth = width;\n return this;\n },\n\n borderB(width) {\n this.style.borderBottomWidth = width;\n return this;\n },\n\n borderL(width) {\n this.style.borderLeftWidth = width;\n return this;\n },\n\n borderColor(color) {\n this.style.borderColor = color;\n return this;\n },\n\n borderStyle(style) {\n this.style.borderStyle = style;\n return this;\n },\n\n rounded(radius) {\n this.style.borderRadius = radius;\n return this;\n },\n\n roundedTL(radius) {\n this.style.borderTopLeftRadius = radius;\n return this;\n },\n\n roundedTR(radius) {\n this.style.borderTopRightRadius = radius;\n return this;\n },\n\n roundedBL(radius) {\n this.style.borderBottomLeftRadius = radius;\n return this;\n },\n\n roundedBR(radius) {\n this.style.borderBottomRightRadius = radius;\n return this;\n },\n\n bg(color) {\n this.style.backgroundColor = color;\n return this;\n },\n\n bgColor(color) {\n this.style.backgroundColor = color;\n return this;\n },\n\n bgImage(image) {\n this.style.backgroundImage = image;\n return this;\n },\n\n bgSize(size) {\n this.style.backgroundSize = size;\n return this;\n },\n\n bgPosition(position) {\n this.style.backgroundPosition = position;\n return this;\n },\n\n bgRepeat(repeat) {\n this.style.backgroundRepeat = repeat;\n return this;\n },\n\n shadow(shadow) {\n this.style.boxShadow = shadow;\n return this;\n },\n\n shadowMd() {\n this.style.boxShadow = '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)';\n return this;\n },\n\n shadowLg() {\n this.style.boxShadow = '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)';\n return this;\n },\n\n shadowNone() {\n this.style.boxShadow = 'none';\n return this;\n },\n\n opacity(value) {\n this.style.opacity = String(value);\n return this;\n },\n\n text(color) {\n this.style.color = color;\n return this;\n },\n\n textColor(color) {\n this.style.color = color;\n return this;\n },\n\n textSize(size) {\n this.style.fontSize = size;\n return this;\n },\n\n textAlign(align) {\n this.style.textAlign = align;\n return this;\n },\n\n fontWeight(weight) {\n this.style.fontWeight = weight;\n return this;\n },\n\n lineHeight(height) {\n this.style.lineHeight = height;\n return this;\n },\n\n letterSpacing(spacing) {\n this.style.letterSpacing = spacing;\n return this;\n },\n\n textOverflow(overflow) {\n this.style.textOverflow = overflow;\n return this;\n },\n\n whitespace(value) {\n this.style.whiteSpace = value;\n return this;\n },\n\n truncate() {\n this.style.overflow = 'hidden';\n this.style.textOverflow = 'ellipsis';\n this.style.whiteSpace = 'nowrap';\n return this;\n },\n\n lineClamp(lines) {\n this.style.display = '-webkit-box';\n this.style.webkitLineClamp = String(lines);\n this.style.webkitBoxOrient = 'vertical';\n this.style.overflow = 'hidden';\n return this;\n },\n\n relative() {\n this.style.position = 'relative';\n return this;\n },\n\n absolute() {\n this.style.position = 'absolute';\n return this;\n },\n\n fixed() {\n this.style.position = 'fixed';\n return this;\n },\n\n sticky() {\n this.style.position = 'sticky';\n return this;\n },\n\n static() {\n this.style.position = 'static';\n return this;\n },\n\n inset(value) {\n this.style.top = value;\n this.style.right = value;\n this.style.bottom = value;\n this.style.left = value;\n return this;\n },\n\n insetY(value) {\n this.style.top = value;\n this.style.bottom = value;\n return this;\n },\n\n insetX(value) {\n this.style.right = value;\n this.style.left = value;\n return this;\n },\n\n top(value) {\n this.style.top = value;\n return this;\n },\n\n right(value) {\n this.style.right = value;\n return this;\n },\n\n bottom(value) {\n this.style.bottom = value;\n return this;\n },\n\n left(value) {\n this.style.left = value;\n return this;\n },\n\n z(value) {\n this.style.zIndex = String(value);\n return this;\n },\n\n zIndex(value) {\n this.style.zIndex = String(value);\n return this;\n },\n\n overflow(value) {\n this.style.overflow = value;\n return this;\n },\n\n overflowX(value) {\n this.style.overflowX = value;\n return this;\n },\n\n overflowY(value) {\n this.style.overflowY = value;\n return this;\n },\n\n overflowHidden() {\n this.style.overflow = 'hidden';\n return this;\n },\n\n overflowScroll() {\n this.style.overflow = 'scroll';\n return this;\n },\n\n overflowAuto() {\n this.style.overflow = 'auto';\n return this;\n },\n\n overflowVisible() {\n this.style.overflow = 'visible';\n return this;\n },\n\n cursor(cursor) {\n this.style.cursor = cursor;\n return this;\n },\n\n cursorPointer() {\n this.style.cursor = 'pointer';\n return this;\n },\n\n cursorDefault() {\n this.style.cursor = 'default';\n return this;\n },\n\n cursorMove() {\n this.style.cursor = 'move';\n return this;\n },\n\n cursorGrab() {\n this.style.cursor = 'grab';\n return this;\n },\n\n cursorGrabbing() {\n this.style.cursor = 'grabbing';\n return this;\n },\n\n pointerEvents(value) {\n this.style.pointerEvents = value;\n return this;\n },\n\n pointerEventsNone() {\n this.style.pointerEvents = 'none';\n return this;\n },\n\n pointerEventsAuto() {\n this.style.pointerEvents = 'auto';\n return this;\n },\n\n userSelect(value) {\n this.style.userSelect = value;\n return this;\n },\n\n selectNone() {\n this.style.userSelect = 'none';\n return this;\n },\n\n selectText() {\n this.style.userSelect = 'text';\n return this;\n },\n\n selectAll() {\n this.style.userSelect = 'all';\n return this;\n },\n\n block() {\n this.style.display = 'block';\n return this;\n },\n\n inlineBlock() {\n this.style.display = 'inline-block';\n return this;\n },\n\n inline() {\n this.style.display = 'inline';\n return this;\n },\n\n hide() {\n this.style.display = 'none';\n return this;\n },\n\n visible() {\n this.style.visibility = 'visible';\n return this;\n },\n\n invisible() {\n this.style.visibility = 'hidden';\n return this;\n },\n\n rotate(deg) {\n this.style.transform = `rotate(${deg}deg)`;\n return this;\n },\n\n scale(x, y?) {\n const yValue = y !== undefined ? y : x;\n this.style.transform = `scale(${x}, ${yValue})`;\n return this;\n },\n\n transformTranslate(x, y) {\n this.style.transform = `translate(${x}, ${y})`;\n return this;\n },\n\n transition(property) {\n this.style.transition = property;\n return this;\n },\n\n transitionDuration(duration) {\n this.style.transitionDuration = duration;\n return this;\n },\n\n transitionTimingFunction(timing) {\n this.style.transitionTimingFunction = timing;\n return this;\n },\n\n transitionDelay(delay) {\n this.style.transitionDelay = delay;\n return this;\n },\n\n onClick(handler) {\n this.addEventListener('click', handler);\n return this;\n },\n\n onDoubleClick(handler) {\n this.addEventListener('dblclick', handler);\n return this;\n },\n\n onMouseDown(handler) {\n this.addEventListener('mousedown', handler);\n return this;\n },\n\n onMouseUp(handler) {\n this.addEventListener('mouseup', handler);\n return this;\n },\n\n onMouseMove(handler) {\n this.addEventListener('mousemove', handler);\n return this;\n },\n\n onMouseEnter(handler) {\n this.addEventListener('mouseenter', handler);\n return this;\n },\n\n onMouseLeave(handler) {\n this.addEventListener('mouseleave', handler);\n return this;\n },\n\n onMouseOver(handler) {\n this.addEventListener('mouseover', handler);\n return this;\n },\n\n onMouseOut(handler) {\n this.addEventListener('mouseout', handler);\n return this;\n },\n\n onMouseWheel(handler) {\n this.addEventListener('wheel', handler);\n return this;\n },\n\n onKeyDown(handler) {\n this.addEventListener('keydown', handler);\n return this;\n },\n\n onKeyUp(handler) {\n this.addEventListener('keyup', handler);\n return this;\n },\n\n onKeyPress(handler) {\n this.addEventListener('keypress', handler);\n return this;\n },\n\n onFocus(handler) {\n this.addEventListener('focus', handler);\n return this;\n },\n\n onBlur(handler) {\n this.addEventListener('blur', handler);\n return this;\n },\n\n onFocusIn(handler) {\n this.addEventListener('focusin', handler);\n return this;\n },\n\n onFocusOut(handler) {\n this.addEventListener('focusout', handler);\n return this;\n },\n\n onChange(handler) {\n this.addEventListener('change', handler);\n return this;\n },\n\n onInput(handler) {\n this.addEventListener('input', handler);\n return this;\n },\n\n onSubmit(handler) {\n this.addEventListener('submit', handler);\n return this;\n },\n\n onReset(handler) {\n this.addEventListener('reset', handler);\n return this;\n },\n\n onTouchStart(handler) {\n this.addEventListener('touchstart', handler);\n return this;\n },\n\n onTouchEnd(handler) {\n this.addEventListener('touchend', handler);\n return this;\n },\n\n onTouchMove(handler) {\n this.addEventListener('touchmove', handler);\n return this;\n },\n\n onTouchCancel(handler) {\n this.addEventListener('touchcancel', handler);\n return this;\n },\n\n onDrag(handler: (event: DragEvent) => void) {\n this.addEventListener('drag', handler);\n return this;\n },\n\n onDragStart(handler: (event: DragEvent) => void) {\n this.addEventListener('dragstart', handler);\n return this;\n },\n\n onDragEnd(handler: (event: DragEvent) => void) {\n this.addEventListener('dragend', handler);\n return this;\n },\n\n onDragEnter(handler: (event: DragEvent) => void) {\n this.addEventListener('dragenter', handler);\n return this;\n },\n\n onDragLeave(handler: (event: DragEvent) => void) {\n this.addEventListener('dragleave', handler);\n return this;\n },\n\n onDragOver(handler: (event: DragEvent) => void) {\n this.addEventListener('dragover', handler);\n return this;\n },\n\n onDragDrop(handler: (event: DragEvent) => void) {\n this.addEventListener('drop', handler);\n return this;\n },\n\n onCopy(handler: (event: ClipboardEvent) => void) {\n this.addEventListener('copy', handler);\n return this;\n },\n\n onCut(handler: (event: ClipboardEvent) => void) {\n this.addEventListener('cut', handler);\n return this;\n },\n\n onPaste(handler: (event: ClipboardEvent) => void) {\n this.addEventListener('paste', handler);\n return this;\n },\n\n onScroll(handler) {\n this.addEventListener('scroll', handler);\n return this;\n },\n\n onResize(handler: (event: UIEvent) => void) {\n this.addEventListener('resize', handler);\n return this;\n },\n\n onPlay(handler) {\n this.addEventListener('play', handler);\n return this;\n },\n\n onPause(handler) {\n this.addEventListener('pause', handler);\n return this;\n },\n\n onEnded(handler) {\n this.addEventListener('ended', handler);\n return this;\n },\n\n onVolumeChange(handler) {\n this.addEventListener('volumechange', handler);\n return this;\n },\n\n onAnimationStart(handler) {\n this.addEventListener('animationstart', handler);\n return this;\n },\n\n onAnimationEnd(handler) {\n this.addEventListener('animationend', handler);\n return this;\n },\n\n onAnimationIteration(handler) {\n this.addEventListener('animationiteration', handler);\n return this;\n },\n\n onTransitionEnd(handler) {\n this.addEventListener('transitionend', handler);\n return this;\n },\n\n onPointerDown(handler) {\n this.addEventListener('pointerdown', handler);\n return this;\n },\n\n onPointerUp(handler) {\n this.addEventListener('pointerup', handler);\n return this;\n },\n\n onPointerMove(handler) {\n this.addEventListener('pointermove', handler);\n return this;\n },\n\n onPointerEnter(handler) {\n this.addEventListener('pointerenter', handler);\n return this;\n },\n\n onPointerLeave(handler) {\n this.addEventListener('pointerleave', handler);\n return this;\n },\n\n onPointerCancel(handler) {\n this.addEventListener('pointercancel', handler);\n return this;\n },\n\n on(eventName, handler) {\n this.addEventListener(eventName, handler);\n return this;\n },\n\n off(eventName, handler) {\n this.removeEventListener(eventName, handler);\n return this;\n },\n} as HTMLElement);\n\nexport {};\n","import './element.js';\n\nexport const h = <T extends keyof HTMLElementTagNameMap>(tag: T): HTMLElementTagNameMap[T] =>\n document.createElement(tag);\n\nexport const div = () => document.createElement('div');\nexport const span = () => document.createElement('span');\nexport const section = () => document.createElement('section');\nexport const p = () => document.createElement('p');\nexport const input = () => document.createElement('input');\nexport const textarea = () => document.createElement('textarea');\nexport const btn = () => document.createElement('button');\n"],"mappings":"AAqMA,OAAO,OAAO,YAAY,UAAW,CACnC,IAAI,EAAI,CAEN,MADA,MAAK,GAAK,EACH,IACT,EACA,KAAK,EAAM,EAAO,CAEhB,OADA,KAAK,aAAa,EAAM,CAAK,EACtB,IACT,EACA,MAAM,GAAG,EAAO,CAEd,OADA,KAAK,OAAO,GAAG,CAAK,EACb,IACT,EACA,MAAM,EAAG,CA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AEA,eAAe,EAAS,CAEtB,OADA,KAAK,iBAAiB,eAAgB,CAAO,EACtC,IACT,EAEA,eAAe,EAAS,CAEtB,OADA,KAAK,iBAAiB,eAAgB,CAAO,EACtC,IACT,EAEA,gBAAgB,EAAS,CAEvB,OADA,KAAK,iBAAiB,gBAAiB,CAAO,EACvC,IACT,EAEA,GAAG,EAAW,EAAS,CAErB,OADA,KAAK,iBAAiB,EAAW,CAAO,EACjC,IACT,EAEA,IAAI,EAAW,EAAS,CAEtB,OADA,KAAK,oBAAoB,EAAW,CAAO,EACpC,IACT,CACF,CAAgB,EClmChB,MAAa,EAA4C,GACvD,SAAS,cAAc,CAAG,EAEf,MAAY,SAAS,cAAc,KAAK,EACxC,MAAa,SAAS,cAAc,MAAM,EAC1C,MAAgB,SAAS,cAAc,SAAS,EAChD,MAAU,SAAS,cAAc,GAAG,EACpC,MAAc,SAAS,cAAc,OAAO,EAC5C,MAAiB,SAAS,cAAc,UAAU,EAClD,MAAY,SAAS,cAAc,QAAQ"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zed-gpui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Kasukabe Tsumugi",
|
|
6
|
+
"email": "futami16237@gmail.com"
|
|
7
|
+
},
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=16.0.0"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"purpose": "npm",
|
|
13
|
+
"description": "zed-div is a functional web front-end framework similar to gpui, which enhances the HTMLElement prototype to implement its functionality",
|
|
14
|
+
"description_zh": "zed-div 是一个写法类似 gpui 的函数式 web 前端框架,通过增强HTMLElement原型实现其功能",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.mjs",
|
|
19
|
+
"default": "./dist/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"./inject": {
|
|
22
|
+
"types": "./dist/inject.d.ts",
|
|
23
|
+
"import": "./dist/inject.mjs",
|
|
24
|
+
"default": "./dist/inject.mjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"instruction.md"
|
|
30
|
+
],
|
|
31
|
+
"homepage": "https://github.com/baendlorel/gpui-ts#readme",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/baendlorel/gpui-ts",
|
|
35
|
+
"directory": "packages/main"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"framework",
|
|
39
|
+
"web",
|
|
40
|
+
"gpui",
|
|
41
|
+
"typescript",
|
|
42
|
+
"javascript"
|
|
43
|
+
],
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsdown"
|
|
47
|
+
}
|
|
48
|
+
}
|