zed-gpui 0.0.2 → 0.2.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/README.md CHANGED
@@ -1,142 +1,174 @@
1
- # Zed Gpui TS
1
+ # zed-gpui
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/zed-gpui.svg)](https://www.npmjs.org/package/zed-gpui)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/zed-gpui.svg)](https://www.npmjs.org/package/zed-gpui)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
6
 
7
7
  <p align="center">
8
- <img src="../../assets/icon.png" width="240px" alt="zed-gpui logo" />
8
+ <img src="assets/icon.png" width="240px" alt="zed-gpui logo" />
9
9
  </p>
10
10
 
11
- > A functional web front-end framework with gpui-inspired syntax
11
+ A small TypeScript / Web UI framework with a **gpui-inspired** style.
12
12
 
13
- zed-gpui 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.
13
+ Its core characteristics are simple and explicit:
14
14
 
15
- ## Features
15
+ - **Chainable API**: methods return `this` so calls can be composed fluently
16
+ - **All instance methods end with `_`**: such as `flex_()`, `w_()`, `onClick_()`
17
+ - **Directly uses native DOM**: the returned value is an actual `HTMLElement`
18
+ - **Creates elements by tag**: `div()`, `btn()`, `input()`, `h('section')`
19
+ - **Adds capabilities through prototype enhancement**: styling, attributes, events, and form helpers live on native elements
16
20
 
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
- - 🪶 **Lightweight** - Zero dependencies, tree-shakeable
21
-
22
- ## Installation
21
+ ## Install
23
22
 
24
23
  ```bash
25
24
  pnpm add zed-gpui
26
25
  ```
27
26
 
28
- ## Quick Start
27
+ ## Design conventions
28
+
29
+ ### 1. Chain-first API
29
30
 
30
- ```typescript
31
- import { div, p, btn } from 'zed-gpui';
31
+ Almost every method returns the current element, so the normal style is fluent chaining:
32
32
 
33
- // Create elements with chained styling
34
- const container = div()
35
- .flex()
36
- .gap('1rem')
37
- .p('2rem')
38
- .bg('#f0f0f0');
33
+ ```ts
34
+ const app = div()
35
+ .flex_()
36
+ .items_('center')
37
+ .justify_('center')
38
+ .w_('100%')
39
+ .h_('100vh')
40
+ .bg_('#f5f5f5');
41
+ ```
39
42
 
40
- const title = p()
41
- .textSize('1.5rem')
42
- .text('#333')
43
- .text('Hello, zed-gpui!');
43
+ ### 2. Every method ends with an underscore
44
44
 
45
- const button = btn()
46
- .px('1rem')
47
- .py('0.5rem')
48
- .bg('#007bff')
49
- .text('#fff')
50
- .rounded('0.25rem')
51
- .cursorPointer()
52
- .onClick(() => console.log('Clicked!'))
53
- .text('Click Me');
54
-
55
- // Build and append to DOM
56
- document.body.append(
57
- container.build(),
58
- title.build(),
59
- button.build()
60
- );
45
+ This is one of the most recognizable parts of the library.
46
+
47
+ ```ts
48
+ id_()
49
+ class_()
50
+ child_()
51
+ text_()
52
+ onClick_()
53
+ placeholder_()
61
54
  ```
62
55
 
56
+ The goal is straightforward:
63
57
 
64
- ## API Overview
58
+ - distinguish framework methods from native properties
59
+ - distinguish chainable element methods from ordinary utility functions
60
+ - make zed-gpui calls visually obvious at a glance
65
61
 
66
- ### Element Creation
62
+ ### 3. The result is real DOM, not a virtual node
67
63
 
68
- ```typescript
69
- div() // <div>
70
- span() // <span>
71
- section()// <section>
72
- p() // <p>
73
- btn() // <button>
64
+ ```ts
65
+ const node = div().text_('hello');
66
+ document.body.appendChild(node);
74
67
  ```
75
68
 
76
- ### Layout & Display
69
+ `node` is a real `HTMLDivElement`, not a virtual DOM node and not an intermediate description object.
70
+
71
+ ## Quick example
72
+
73
+ ```ts
74
+ import { div, btn, input } from 'zed-gpui';
75
+
76
+ const app = div()
77
+ .flex_()
78
+ .flexDirection_('column')
79
+ .gap_('12px')
80
+ .items_('center')
81
+ .justify_('center')
82
+ .w_('100%')
83
+ .h_('100vh');
84
+
85
+ const field = input()
86
+ .placeholder_('Enter text...')
87
+ .px_('12px')
88
+ .py_('8px')
89
+ .border_()
90
+ .rounded_('8px')
91
+ .w_('280px')
92
+ .onInput_((event) => {
93
+ console.log(event.currentTarget.value);
94
+ });
77
95
 
78
- ```typescript
79
- .flex() // display: flex
80
- .flexDirection('column') // flex-direction
81
- .grid() // display: grid
82
- .gridTemplateColumns('1fr 1fr')
83
- .block() // display: block
84
- .hidden() // display: none
96
+ const button = btn()
97
+ .text_('Click me')
98
+ .px_('16px')
99
+ .py_('10px')
100
+ .bg_('blue')
101
+ .textColor_('white')
102
+ .rounded_('8px')
103
+ .cursorPointer_()
104
+ .onClick_(() => {
105
+ console.log('clicked');
106
+ });
107
+
108
+ app.child_(field, button);
109
+ document.body.appendChild(app);
85
110
  ```
86
111
 
87
- ### Spacing
112
+ ## API style
88
113
 
89
- ```typescript
90
- .p('1rem') // padding
91
- .px('1rem') // padding-left & right
92
- .py('1rem') // padding-top & bottom
93
- .m('1rem') // margin
94
- .mx('auto') // margin-left & right
95
- .gap('1rem') // gap (for flex/grid)
96
- ```
114
+ ### Create elements
97
115
 
98
- ### Sizing
116
+ ```ts
117
+ div();
118
+ span();
119
+ section();
120
+ p();
121
+ btn();
122
+ input();
123
+ textarea();
124
+ select([{ value: 1, label: 'One' }]);
125
+ h('dialog');
126
+ ```
99
127
 
100
- ```typescript
101
- .w('100%') // width
102
- .h('100px') // height
103
- .size('50px', '50px') // width & height
104
- .minW('200px') // min-width
105
- .maxW('100%') // max-width
128
+ ### Common capabilities
129
+
130
+ ```ts
131
+ div()
132
+ .id_('app')
133
+ .class_('container')
134
+ .child_(span().text_('hello'))
135
+ .w_('320px')
136
+ .h_('80px')
137
+ .p_('16px')
138
+ .rounded_('12px')
139
+ .shadowMd_()
140
+ .onClick_(() => {});
106
141
  ```
107
142
 
108
- ### Colors & Backgrounds
143
+ The API surface broadly includes:
109
144
 
110
- ```typescript
111
- .bg('#fff') // background-color
112
- .bgImage('url(...)') // background-image
113
- .text('#333') // color
114
- .borderColor('#ccc') // border-color
115
- ```
145
+ - element attributes: `id_`, `attr_`, `name_`
146
+ - children and text: `child_`, `text_`
147
+ - layout: `flex_`, `grid_`, `justify_`, `items_`
148
+ - sizing and spacing: `w_`, `h_`, `p_`, `m_`, `gap_`
149
+ - border and radius: `border_`, `borderColor_`, `rounded_`
150
+ - color and typography: `bg_`, `textColor_`, `textSize_`
151
+ - positioning and overflow: `absolute_`, `top_`, `overflow_`
152
+ - events: `onClick_`, `onInput_`, `onChange_`, `on_`
153
+ - form helpers: `value_`, `placeholder_`, `checked_`, `options_`
116
154
 
117
- ### Typography
155
+ ## Good fit for
118
156
 
119
- ```typescript
120
- .textSize('1rem') // font-size
121
- .fontWeight('bold') // font-weight
122
- .textAlign('center') // text-align
123
- .lineHeight('1.5') // line-height
124
- .truncate() // text-overflow: ellipsis
125
- ```
157
+ This library is a good match if you want to:
126
158
 
127
- ### Events
159
+ - build UI directly with **native DOM**
160
+ - use a **chainable API** for styling and events
161
+ - keep a consistent naming style with **underscore-suffixed methods**
162
+ - write lightweight pages, tools, panels, or experimental UI
128
163
 
129
- ```typescript
130
- .onClick((e) => {})
131
- .onKeyDown((e) => {})
132
- .onMouseDown((e) => {})
133
- .onTouchStart((e) => {})
134
- .onDrag((e) => {})
135
- .onScroll((e) => {})
136
- .on('customEvent', handler)
137
- ```
164
+ ## Repository structure
165
+
166
+ This repository is a monorepo and mainly contains:
167
+
168
+ - `zed-gpui`: the main runtime package
169
+ - `unplugin-zed-gpui-treeshake`: the companion tree-shaking plugin
170
+ - `@zed-gpui/example`: the example project
138
171
 
139
172
  ## License
140
173
 
141
174
  MIT
142
-
package/dist/index.d.mts CHANGED
@@ -1,190 +1,370 @@
1
- //#region src/element.d.ts
1
+ //#region src/core/index.d.ts
2
2
  declare global {
3
3
  interface HTMLElement {
4
4
  jpui: true;
5
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;
6
+ attr_(attr: string, value: any): this;
7
+ name_(name: string): this;
8
+ child_(...nodes: any[]): this;
9
+ text_(text: string): this;
10
+ class_(classList: string[]): this;
11
+ class_(className: string): this;
12
+ w_(w: string): this;
13
+ h_(h: string): this;
14
+ size_(w: string, h: string): this;
15
+ minW_(w: string): this;
16
+ minH_(h: string): this;
17
+ maxW_(w: string): this;
18
+ maxH_(h: string): this;
19
+ flex_(): this;
20
+ flexFlex_(): this;
21
+ flexNone_(): this;
22
+ flexAuto_(): this;
23
+ flexGrow_(grow: number): this;
24
+ flexShrink_(shrink: number): this;
25
+ flexBasis_(basis: string): this;
26
+ flexDirection_(direction: string): this;
27
+ flexWrap_(wrap: string): this;
28
+ grid_(): this;
29
+ gridTemplateColumns_(columns: string): this;
30
+ gridTemplateRows_(rows: string): this;
31
+ gridColumn_(column: string): this;
32
+ gridRow_(row: string): this;
33
+ gap_(gap: string): this;
34
+ gapX_(gap: string): this;
35
+ gapY_(gap: string): this;
36
+ justify_(justify: string): this;
37
+ items_(items: string): this;
38
+ content_(content: string): this;
39
+ self_(alignSelf: string): this;
40
+ justifySelf_(justifySelf: string): this;
41
+ px_(px: string): this;
42
+ py_(py: string): this;
43
+ pt_(pt: string): this;
44
+ pr_(pr: string): this;
45
+ pb_(pb: string): this;
46
+ pl_(pl: string): this;
47
+ p_(p: string): this;
48
+ mx_(mx: string): this;
49
+ my_(my: string): this;
50
+ mt_(mt: string): this;
51
+ mr_(mr: string): this;
52
+ mb_(mb: string): this;
53
+ ml_(ml: string): this;
54
+ m_(m: string): this;
55
+ border_(): this;
56
+ borderW_(width: string): this;
57
+ borderT_(width: string): this;
58
+ borderR_(width: string): this;
59
+ borderB_(width: string): this;
60
+ borderL_(width: string): this;
61
+ borderColor_(color: string): this;
62
+ borderStyle_(style: string): this;
63
+ rounded_(radius: string): this;
64
+ roundedTL_(radius: string): this;
65
+ roundedTR_(radius: string): this;
66
+ roundedBL_(radius: string): this;
67
+ roundedBR_(radius: string): this;
68
+ bg_(color: string): this;
69
+ bgColor_(color: string): this;
70
+ bgImage_(image: string): this;
71
+ bgSize_(size: string): this;
72
+ bgPosition_(position: string): this;
73
+ bgRepeat_(repeat: string): this;
74
+ shadow_(shadow: string): this;
75
+ shadowMd_(): this;
76
+ shadowLg_(): this;
77
+ shadowNone_(): this;
78
+ opacity_(value: number): this;
79
+ textColor_(color: string): this;
80
+ textSize_(size: string): this;
81
+ textAlign_(align: string): this;
82
+ fontWeight_(weight: string): this;
83
+ lineHeight_(height: string): this;
84
+ letterSpacing_(spacing: string): this;
85
+ textOverflow_(overflow: string): this;
86
+ whitespace_(value: string): this;
87
+ truncate_(): this;
88
+ lineClamp_(lines: number): this;
89
+ relative_(): this;
90
+ absolute_(): this;
91
+ fixed_(): this;
92
+ sticky_(): this;
93
+ static_(): this;
94
+ inset_(value: string): this;
95
+ insetY_(value: string): this;
96
+ insetX_(value: string): this;
97
+ top_(value: string): this;
98
+ right_(value: string): this;
99
+ bottom_(value: string): this;
100
+ left_(value: string): this;
101
+ z_(value: number): this;
102
+ zIndex_(value: number): this;
103
+ overflow_(value: string): this;
104
+ overflowX_(value: string): this;
105
+ overflowY_(value: string): this;
106
+ overflowHidden_(): this;
107
+ overflowScroll_(): this;
108
+ overflowAuto_(): this;
109
+ overflowVisible_(): this;
110
+ cursor_(cursor: string): this;
111
+ cursorPointer_(): this;
112
+ cursorDefault_(): this;
113
+ cursorMove_(): this;
114
+ cursorGrab_(): this;
115
+ cursorGrabbing_(): this;
116
+ pointerEvents_(value: string): this;
117
+ pointerEventsNone_(): this;
118
+ pointerEventsAuto_(): this;
119
+ userSelect_(value: string): this;
120
+ selectNone_(): this;
121
+ selectText_(): this;
122
+ selectAll_(): this;
123
+ block_(): this;
124
+ inlineBlock_(): this;
125
+ inline_(): this;
126
+ hide_(): this;
127
+ visible_(): this;
128
+ invisible_(): this;
129
+ rotate_(deg: number): this;
130
+ scale_(x: number, y?: number): this;
131
+ transformTranslate_(x: string, y: string): this;
132
+ transition_(property: string): this;
133
+ transitionDuration_(duration: string): this;
134
+ transitionTimingFunction_(timing: string): this;
135
+ transitionDelay_(delay: string): this;
136
+ onClick_(handler: (event: MouseEvent) => void): this;
137
+ onDoubleClick_(handler: (event: MouseEvent) => void): this;
138
+ onMouseDown_(handler: (event: MouseEvent) => void): this;
139
+ onMouseUp_(handler: (event: MouseEvent) => void): this;
140
+ onMouseMove_(handler: (event: MouseEvent) => void): this;
141
+ onMouseEnter_(handler: (event: MouseEvent) => void): this;
142
+ onMouseLeave_(handler: (event: MouseEvent) => void): this;
143
+ onMouseOver_(handler: (event: MouseEvent) => void): this;
144
+ onMouseOut_(handler: (event: MouseEvent) => void): this;
145
+ onMouseWheel_(handler: (event: WheelEvent) => void): this;
146
+ onKeyDown_(handler: (event: KeyboardEvent) => void): this;
147
+ onKeyUp_(handler: (event: KeyboardEvent) => void): this;
148
+ onKeyPress_(handler: (event: KeyboardEvent) => void): this;
149
+ onFocus_(handler: (event: FocusEvent) => void): this;
150
+ onBlur_(handler: (event: FocusEvent) => void): this;
151
+ onFocusIn_(handler: (event: FocusEvent) => void): this;
152
+ onFocusOut_(handler: (event: FocusEvent) => void): this;
153
+ onChange_(handler: (event: Event) => void): this;
154
+ onInput_(handler: (event: Event) => void): this;
155
+ onSubmit_(handler: (event: SubmitEvent) => void): this;
156
+ onReset_(handler: (event: Event) => void): this;
157
+ onTouchStart_(handler: (event: TouchEvent) => void): this;
158
+ onTouchEnd_(handler: (event: TouchEvent) => void): this;
159
+ onTouchMove_(handler: (event: TouchEvent) => void): this;
160
+ onTouchCancel_(handler: (event: TouchEvent) => void): this;
161
+ onDrag_(handler: (event: DragEvent) => void): this;
162
+ onDragStart_(handler: (event: DragEvent) => void): this;
163
+ onDragEnd_(handler: (event: DragEvent) => void): this;
164
+ onDragEnter_(handler: (event: DragEvent) => void): this;
165
+ onDragLeave_(handler: (event: DragEvent) => void): this;
166
+ onDragOver_(handler: (event: DragEvent) => void): this;
167
+ onDragDrop_(handler: (event: DragEvent) => void): this;
168
+ onCopy_(handler: (event: ClipboardEvent) => void): this;
169
+ onCut_(handler: (event: ClipboardEvent) => void): this;
170
+ onPaste_(handler: (event: ClipboardEvent) => void): this;
171
+ onScroll_(handler: (event: Event) => void): this;
172
+ onResize_(handler: (event: UIEvent) => void): this;
173
+ onPlay_(handler: (event: Event) => void): this;
174
+ onPause_(handler: (event: Event) => void): this;
175
+ onEnded_(handler: (event: Event) => void): this;
176
+ onVolumeChange_(handler: (event: Event) => void): this;
177
+ onAnimationStart_(handler: (event: AnimationEvent) => void): this;
178
+ onAnimationEnd_(handler: (event: AnimationEvent) => void): this;
179
+ onAnimationIteration_(handler: (event: AnimationEvent) => void): this;
180
+ onTransitionEnd_(handler: (event: TransitionEvent) => void): this;
181
+ onPointerDown_(handler: (event: PointerEvent) => void): this;
182
+ onPointerUp_(handler: (event: PointerEvent) => void): this;
183
+ onPointerMove_(handler: (event: PointerEvent) => void): this;
184
+ onPointerEnter_(handler: (event: PointerEvent) => void): this;
185
+ onPointerLeave_(handler: (event: PointerEvent) => void): this;
186
+ onPointerCancel_(handler: (event: PointerEvent) => void): this;
187
+ on_(eventName: string, handler: EventListener): this;
188
+ off_(eventName: string, handler: EventListener): this;
189
+ }
190
+ }
191
+ //#endregion
192
+ //#region src/core/input.d.ts
193
+ declare global {
194
+ interface HTMLInputElement {
195
+ placeholder_(value: string): this;
196
+ value_(value: string): this;
197
+ type_(type: string): this;
198
+ checked_(checked?: boolean): this;
199
+ disabled_(disabled?: boolean): this;
200
+ focus_(): this;
201
+ blur_(): this;
202
+ select_(): this;
203
+ onChange_(handler: (event: Event & {
204
+ currentTarget: HTMLInputElement;
205
+ target: HTMLInputElement;
206
+ }) => void): this;
207
+ onInput_(handler: (event: Event & {
208
+ currentTarget: HTMLInputElement;
209
+ target: HTMLInputElement;
210
+ }) => void): this;
211
+ }
212
+ }
213
+ //#endregion
214
+ //#region src/core/textarea.d.ts
215
+ declare global {
216
+ interface HTMLTextAreaElement {
217
+ placeholder_(value: string): this;
218
+ value_(value: string): this;
219
+ rows_(rows: number): this;
220
+ cols_(cols: number): this;
221
+ disabled_(disabled?: boolean): this;
222
+ focus_(): this;
223
+ blur_(): this;
224
+ select_(): this;
225
+ onChange_(handler: (event: Event & {
226
+ currentTarget: HTMLTextAreaElement;
227
+ target: HTMLTextAreaElement;
228
+ }) => void): this;
229
+ onInput_(handler: (event: Event & {
230
+ currentTarget: HTMLTextAreaElement;
231
+ target: HTMLTextAreaElement;
232
+ }) => void): this;
233
+ }
234
+ }
235
+ //#endregion
236
+ //#region src/core/select.d.ts
237
+ declare global {
238
+ interface HTMLSelectElement {
239
+ value_(value: string): this;
240
+ options_(options: Array<{
241
+ value: any;
242
+ label: string;
243
+ }>): this;
244
+ disabled_(disabled?: boolean): this;
245
+ focus_(): this;
246
+ blur_(): this;
247
+ onChange_(handler: (event: Event & {
248
+ currentTarget: HTMLSelectElement;
249
+ target: HTMLSelectElement;
250
+ }) => void): this;
251
+ onInput_(handler: (event: Event & {
252
+ currentTarget: HTMLSelectElement;
253
+ target: HTMLSelectElement;
254
+ }) => void): this;
255
+ }
256
+ }
257
+ //#endregion
258
+ //#region src/core/button.d.ts
259
+ declare global {
260
+ interface HTMLButtonElement {
261
+ type_(type: 'button' | 'submit' | 'reset'): this;
262
+ disabled_(disabled?: boolean): this;
263
+ name_(name: string): this;
264
+ value_(value: string): this;
265
+ autofocus_(autofocus?: boolean): this;
266
+ }
267
+ }
268
+ //#endregion
269
+ //#region src/core/form.d.ts
270
+ declare global {
271
+ interface HTMLFormElement {
272
+ action_(action: string): this;
273
+ method_(method: 'get' | 'post' | 'dialog'): this;
274
+ target_(target: string): this;
275
+ enctype_(enctype: string): this;
276
+ noValidate_(noValidate?: boolean): this;
277
+ reset_(): this;
278
+ submit_(): this;
279
+ requestSubmit_(): this;
280
+ }
281
+ }
282
+ //#endregion
283
+ //#region src/core/a.d.ts
284
+ declare global {
285
+ interface HTMLAnchorElement {
286
+ href_(href: string): this;
287
+ target_(target: string): this;
288
+ rel_(rel: string): this;
289
+ download_(download?: string): this;
290
+ referrerPolicy_(policy: ReferrerPolicy): this;
291
+ }
292
+ }
293
+ //#endregion
294
+ //#region src/core/img.d.ts
295
+ declare global {
296
+ interface HTMLImageElement {
297
+ src_(src: string): this;
298
+ alt_(alt: string): this;
299
+ width_(width: number): this;
300
+ height_(height: number): this;
301
+ loading_(loading: 'eager' | 'lazy'): this;
302
+ decoding_(decoding: 'sync' | 'async' | 'auto'): this;
303
+ }
304
+ }
305
+ //#endregion
306
+ //#region src/core/media.d.ts
307
+ declare global {
308
+ interface HTMLMediaElement {
309
+ src_(src: string): this;
310
+ controls_(controls?: boolean): this;
311
+ autoplay_(autoplay?: boolean): this;
312
+ loop_(loop?: boolean): this;
313
+ muted_(muted?: boolean): this;
314
+ currentTime_(time: number): this;
315
+ volume_(volume: number): this;
316
+ play_(): this;
317
+ pause_(): this;
318
+ }
319
+ }
320
+ //#endregion
321
+ //#region src/core/label.d.ts
322
+ declare global {
323
+ interface HTMLLabelElement {
324
+ for_(htmlFor: string): this;
325
+ }
326
+ }
327
+ //#endregion
328
+ //#region src/core/option.d.ts
329
+ declare global {
330
+ interface HTMLOptionElement {
331
+ value_(value: string): this;
332
+ selected_(selected?: boolean): this;
333
+ disabled_(disabled?: boolean): this;
334
+ label_(label: string): this;
335
+ }
336
+ }
337
+ //#endregion
338
+ //#region src/core/details.d.ts
339
+ declare global {
340
+ interface HTMLDetailsElement {
341
+ open_(open?: boolean): this;
342
+ }
343
+ }
344
+ //#endregion
345
+ //#region src/core/dialog.d.ts
346
+ declare global {
347
+ interface HTMLDialogElement {
348
+ open_(open?: boolean): this;
349
+ show_(): this;
350
+ showModal_(): this;
351
+ close_(returnValue?: string): this;
352
+ }
353
+ }
354
+ //#endregion
355
+ //#region src/core/progress.d.ts
356
+ declare global {
357
+ interface HTMLProgressElement {
358
+ value_(value: number): this;
359
+ max_(max: number): this;
360
+ }
361
+ interface HTMLMeterElement {
362
+ value_(value: number): this;
363
+ min_(min: number): this;
364
+ max_(max: number): this;
365
+ low_(low: number): this;
366
+ high_(high: number): this;
367
+ optimum_(optimum: number): this;
188
368
  }
189
369
  }
190
370
  //#endregion
@@ -197,6 +377,10 @@ declare const p: () => HTMLParagraphElement;
197
377
  declare const input: () => HTMLInputElement;
198
378
  declare const textarea: () => HTMLTextAreaElement;
199
379
  declare const btn: () => HTMLButtonElement;
380
+ declare const select: (options: Array<{
381
+ value: any;
382
+ label: string;
383
+ }>) => HTMLSelectElement;
200
384
  //#endregion
201
- export { btn, div, h, input, p, section, span, textarea };
385
+ export { btn, div, h, input, p, section, select, span, textarea };
202
386
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1,2 +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.on(`click`,e)},onDoubleClick(e){return this.on(`dblclick`,e)},onMouseDown(e){return this.on(`mousedown`,e)},onMouseUp(e){return this.on(`mouseup`,e)},onMouseMove(e){return this.on(`mousemove`,e)},onMouseEnter(e){return this.on(`mouseenter`,e)},onMouseLeave(e){return this.on(`mouseleave`,e)},onMouseOver(e){return this.on(`mouseover`,e)},onMouseOut(e){return this.on(`mouseout`,e)},onMouseWheel(e){return this.on(`wheel`,e)},onKeyDown(e){return this.on(`keydown`,e)},onKeyUp(e){return this.on(`keyup`,e)},onKeyPress(e){return this.on(`keypress`,e)},onFocus(e){return this.on(`focus`,e)},onBlur(e){return this.on(`blur`,e)},onFocusIn(e){return this.on(`focusin`,e)},onFocusOut(e){return this.on(`focusout`,e)},onChange(e){return this.on(`change`,e)},onInput(e){return this.on(`input`,e)},onSubmit(e){return this.on(`submit`,e)},onReset(e){return this.on(`reset`,e)},onTouchStart(e){return this.on(`touchstart`,e)},onTouchEnd(e){return this.on(`touchend`,e)},onTouchMove(e){return this.on(`touchmove`,e)},onTouchCancel(e){return this.on(`touchcancel`,e)},onDrag(e){return this.on(`drag`,e)},onDragStart(e){return this.on(`dragstart`,e)},onDragEnd(e){return this.on(`dragend`,e)},onDragEnter(e){return this.on(`dragenter`,e)},onDragLeave(e){return this.on(`dragleave`,e)},onDragOver(e){return this.on(`dragover`,e)},onDragDrop(e){return this.on(`drop`,e)},onCopy(e){return this.on(`copy`,e)},onCut(e){return this.on(`cut`,e)},onPaste(e){return this.on(`paste`,e)},onScroll(e){return this.on(`scroll`,e)},onResize(e){return this.on(`resize`,e)},onPlay(e){return this.on(`play`,e)},onPause(e){return this.on(`pause`,e)},onEnded(e){return this.on(`ended`,e)},onVolumeChange(e){return this.on(`volumechange`,e)},onAnimationStart(e){return this.on(`animationstart`,e)},onAnimationEnd(e){return this.on(`animationend`,e)},onAnimationIteration(e){return this.on(`animationiteration`,e)},onTransitionEnd(e){return this.on(`transitionend`,e)},onPointerDown(e){return this.on(`pointerdown`,e)},onPointerUp(e){return this.on(`pointerup`,e)},onPointerMove(e){return this.on(`pointermove`,e)},onPointerEnter(e){return this.on(`pointerenter`,e)},onPointerLeave(e){return this.on(`pointerleave`,e)},onPointerCancel(e){return this.on(`pointercancel`,e)},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};
1
+ Object.assign(HTMLElement.prototype,{id_(e){return this.id=e,this},attr_(e,t){return this.setAttribute(e,t),this},name_(e){return this.setAttribute(`name`,e),this},child_(...e){return this.append(...e),this},class_(e){return this.className=Array.isArray(e)?e.join(` `):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.textContent=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){return this.style.transform=`scale(`+e+`, `+(t??e)+`)`,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.on_(`click`,e)},onDoubleClick_(e){return this.on_(`dblclick`,e)},onMouseDown_(e){return this.on_(`mousedown`,e)},onMouseUp_(e){return this.on_(`mouseup`,e)},onMouseMove_(e){return this.on_(`mousemove`,e)},onMouseEnter_(e){return this.on_(`mouseenter`,e)},onMouseLeave_(e){return this.on_(`mouseleave`,e)},onMouseOver_(e){return this.on_(`mouseover`,e)},onMouseOut_(e){return this.on_(`mouseout`,e)},onMouseWheel_(e){return this.on_(`wheel`,e)},onKeyDown_(e){return this.on_(`keydown`,e)},onKeyUp_(e){return this.on_(`keyup`,e)},onKeyPress_(e){return this.on_(`keypress`,e)},onFocus_(e){return this.on_(`focus`,e)},onBlur_(e){return this.on_(`blur`,e)},onFocusIn_(e){return this.on_(`focusin`,e)},onFocusOut_(e){return this.on_(`focusout`,e)},onChange_(e){return this.on_(`change`,e)},onInput_(e){return this.on_(`input`,e)},onSubmit_(e){return this.on_(`submit`,e)},onReset_(e){return this.on_(`reset`,e)},onTouchStart_(e){return this.on_(`touchstart`,e)},onTouchEnd_(e){return this.on_(`touchend`,e)},onTouchMove_(e){return this.on_(`touchmove`,e)},onTouchCancel_(e){return this.on_(`touchcancel`,e)},onDrag_(e){return this.on_(`drag`,e)},onDragStart_(e){return this.on_(`dragstart`,e)},onDragEnd_(e){return this.on_(`dragend`,e)},onDragEnter_(e){return this.on_(`dragenter`,e)},onDragLeave_(e){return this.on_(`dragleave`,e)},onDragOver_(e){return this.on_(`dragover`,e)},onDragDrop_(e){return this.on_(`drop`,e)},onCopy_(e){return this.on_(`copy`,e)},onCut_(e){return this.on_(`cut`,e)},onPaste_(e){return this.on_(`paste`,e)},onScroll_(e){return this.on_(`scroll`,e)},onResize_(e){return this.on_(`resize`,e)},onPlay_(e){return this.on_(`play`,e)},onPause_(e){return this.on_(`pause`,e)},onEnded_(e){return this.on_(`ended`,e)},onVolumeChange_(e){return this.on_(`volumechange`,e)},onAnimationStart_(e){return this.on_(`animationstart`,e)},onAnimationEnd_(e){return this.on_(`animationend`,e)},onAnimationIteration_(e){return this.on_(`animationiteration`,e)},onTransitionEnd_(e){return this.on_(`transitionend`,e)},onPointerDown_(e){return this.on_(`pointerdown`,e)},onPointerUp_(e){return this.on_(`pointerup`,e)},onPointerMove_(e){return this.on_(`pointermove`,e)},onPointerEnter_(e){return this.on_(`pointerenter`,e)},onPointerLeave_(e){return this.on_(`pointerleave`,e)},onPointerCancel_(e){return this.on_(`pointercancel`,e)},on_(e,t){return this.addEventListener(e,t),this},off_(e,t){return this.removeEventListener(e,t),this}}),Object.assign(HTMLInputElement.prototype,{placeholder_(e){return this.placeholder=e,this},value_(e){return this.value=e,this},type_(e){return this.type=e,this},checked_(e=!0){return this.checked=e,this},disabled_(e=!0){return this.disabled=e,this},focus_(){return this.focus(),this},blur_(){return this.blur(),this},select_(){return this.select(),this},onChange_(e){return this.on_(`change`,e)},onInput_(e){return this.on_(`input`,e)}}),Object.assign(HTMLTextAreaElement.prototype,{placeholder_(e){return this.placeholder=e,this},value_(e){return this.value=e,this},rows_(e){return this.rows=e,this},cols_(e){return this.cols=e,this},disabled_(e=!0){return this.disabled=e,this},focus_(){return this.focus(),this},blur_(){return this.blur(),this},select_(){return this.select(),this},onChange_(e){return this.on_(`change`,e)},onInput_(e){return this.on_(`input`,e)}}),Object.assign(HTMLSelectElement.prototype,{value_(e){return this.value=e,this},options_(e){return this.replaceChildren(...e.map(e=>{let t=document.createElement(`option`);return t.value=String(e.value),t.textContent=e.label,t})),this},disabled_(e=!0){return this.disabled=e,this},focus_(){return this.focus(),this},blur_(){return this.blur(),this},onChange_(e){return this.on_(`change`,e)},onInput_(e){return this.on_(`input`,e)}}),Object.assign(HTMLButtonElement.prototype,{type_(e){return this.type=e,this},disabled_(e=!0){return this.disabled=e,this},name_(e){return this.name=e,this},value_(e){return this.value=e,this},autofocus_(e=!0){return this.autofocus=e,this}}),Object.assign(HTMLFormElement.prototype,{action_(e){return this.action=e,this},method_(e){return this.method=e,this},target_(e){return this.target=e,this},enctype_(e){return this.enctype=e,this},noValidate_(e=!0){return this.noValidate=e,this},reset_(){return this.reset(),this},submit_(){return this.submit(),this},requestSubmit_(){return this.requestSubmit(),this}}),Object.assign(HTMLAnchorElement.prototype,{href_(e){return this.href=e,this},target_(e){return this.target=e,this},rel_(e){return this.rel=e,this},download_(e=``){return this.download=e,this},referrerPolicy_(e){return this.referrerPolicy=e,this}}),Object.assign(HTMLImageElement.prototype,{src_(e){return this.src=e,this},alt_(e){return this.alt=e,this},width_(e){return this.width=e,this},height_(e){return this.height=e,this},loading_(e){return this.loading=e,this},decoding_(e){return this.decoding=e,this}}),Object.assign(HTMLMediaElement.prototype,{src_(e){return this.src=e,this},controls_(e=!0){return this.controls=e,this},autoplay_(e=!0){return this.autoplay=e,this},loop_(e=!0){return this.loop=e,this},muted_(e=!0){return this.muted=e,this},currentTime_(e){return this.currentTime=e,this},volume_(e){return this.volume=e,this},play_(){return this.play(),this},pause_(){return this.pause(),this}}),Object.assign(HTMLLabelElement.prototype,{for_(e){return this.htmlFor=e,this}}),Object.assign(HTMLOptionElement.prototype,{value_(e){return this.value=e,this},selected_(e=!0){return this.selected=e,this},disabled_(e=!0){return this.disabled=e,this},label_(e){return this.label=e,this}}),Object.assign(HTMLDetailsElement.prototype,{open_(e=!0){return this.open=e,this}}),Object.assign(HTMLDialogElement.prototype,{open_(e=!0){return this.open=e,this},show_(){return this.show(),this},showModal_(){return this.showModal(),this},close_(e){return this.close(e),this}}),Object.assign(HTMLProgressElement.prototype,{value_(e){return this.value=e,this},max_(e){return this.max=e,this}}),Object.assign(HTMLMeterElement.prototype,{value_(e){return this.value=e,this},min_(e){return this.min=e,this},max_(e){return this.max=e,this},low_(e){return this.low=e,this},high_(e){return this.high=e,this},optimum_(e){return this.optimum=e,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`),c=e=>document.createElement(`select`).options_(e);export{s as btn,t as div,e as h,a as input,i as p,r as section,c as select,n as span,o as textarea};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +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 return this.on('click', handler as EventListener);\n },\n\n onDoubleClick(handler) {\n return this.on('dblclick', handler as EventListener);\n },\n\n onMouseDown(handler) {\n return this.on('mousedown', handler as EventListener);\n },\n\n onMouseUp(handler) {\n return this.on('mouseup', handler as EventListener);\n },\n\n onMouseMove(handler) {\n return this.on('mousemove', handler as EventListener);\n },\n\n onMouseEnter(handler) {\n return this.on('mouseenter', handler as EventListener);\n },\n\n onMouseLeave(handler) {\n return this.on('mouseleave', handler as EventListener);\n },\n\n onMouseOver(handler) {\n return this.on('mouseover', handler as EventListener);\n },\n\n onMouseOut(handler) {\n return this.on('mouseout', handler as EventListener);\n },\n\n onMouseWheel(handler) {\n return this.on('wheel', handler as EventListener);\n },\n\n onKeyDown(handler) {\n return this.on('keydown', handler as EventListener);\n },\n\n onKeyUp(handler) {\n return this.on('keyup', handler as EventListener);\n },\n\n onKeyPress(handler) {\n return this.on('keypress', handler as EventListener);\n },\n\n onFocus(handler) {\n return this.on('focus', handler as EventListener);\n },\n\n onBlur(handler) {\n return this.on('blur', handler as EventListener);\n },\n\n onFocusIn(handler) {\n return this.on('focusin', handler as EventListener);\n },\n\n onFocusOut(handler) {\n return this.on('focusout', handler as EventListener);\n },\n\n onChange(handler) {\n return this.on('change', handler as EventListener);\n },\n\n onInput(handler) {\n return this.on('input', handler as EventListener);\n },\n\n onSubmit(handler) {\n return this.on('submit', handler as EventListener);\n },\n\n onReset(handler) {\n return this.on('reset', handler as EventListener);\n },\n\n onTouchStart(handler) {\n return this.on('touchstart', handler as EventListener);\n },\n\n onTouchEnd(handler) {\n return this.on('touchend', handler as EventListener);\n },\n\n onTouchMove(handler) {\n return this.on('touchmove', handler as EventListener);\n },\n\n onTouchCancel(handler) {\n return this.on('touchcancel', handler as EventListener);\n },\n\n onDrag(handler: (event: DragEvent) => void) {\n return this.on('drag', handler as EventListener);\n },\n\n onDragStart(handler: (event: DragEvent) => void) {\n return this.on('dragstart', handler as EventListener);\n },\n\n onDragEnd(handler: (event: DragEvent) => void) {\n return this.on('dragend', handler as EventListener);\n },\n\n onDragEnter(handler: (event: DragEvent) => void) {\n return this.on('dragenter', handler as EventListener);\n },\n\n onDragLeave(handler: (event: DragEvent) => void) {\n return this.on('dragleave', handler as EventListener);\n },\n\n onDragOver(handler: (event: DragEvent) => void) {\n return this.on('dragover', handler as EventListener);\n },\n\n onDragDrop(handler: (event: DragEvent) => void) {\n return this.on('drop', handler as EventListener);\n },\n\n onCopy(handler: (event: ClipboardEvent) => void) {\n return this.on('copy', handler as EventListener);\n },\n\n onCut(handler: (event: ClipboardEvent) => void) {\n return this.on('cut', handler as EventListener);\n },\n\n onPaste(handler: (event: ClipboardEvent) => void) {\n return this.on('paste', handler as EventListener);\n },\n\n onScroll(handler) {\n return this.on('scroll', handler as EventListener);\n },\n\n onResize(handler: (event: UIEvent) => void) {\n return this.on('resize', handler as EventListener);\n },\n\n onPlay(handler) {\n return this.on('play', handler as EventListener);\n },\n\n onPause(handler) {\n return this.on('pause', handler as EventListener);\n },\n\n onEnded(handler) {\n return this.on('ended', handler as EventListener);\n },\n\n onVolumeChange(handler) {\n return this.on('volumechange', handler as EventListener);\n },\n\n onAnimationStart(handler) {\n return this.on('animationstart', handler as EventListener);\n },\n\n onAnimationEnd(handler) {\n return this.on('animationend', handler as EventListener);\n },\n\n onAnimationIteration(handler) {\n return this.on('animationiteration', handler as EventListener);\n },\n\n onTransitionEnd(handler) {\n return this.on('transitionend', handler as EventListener);\n },\n\n onPointerDown(handler) {\n return this.on('pointerdown', handler as EventListener);\n },\n\n onPointerUp(handler) {\n return this.on('pointerup', handler as EventListener);\n },\n\n onPointerMove(handler) {\n return this.on('pointermove', handler as EventListener);\n },\n\n onPointerEnter(handler) {\n return this.on('pointerenter', handler as EventListener);\n },\n\n onPointerLeave(handler) {\n return this.on('pointerleave', handler as EventListener);\n },\n\n onPointerCancel(handler) {\n return this.on('pointercancel', handler as EventListener);\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,CAMP,OALI,MAAM,QAAQ,CAAC,EACjB,KAAK,UAAY,EAAE,KAAK,GAAG,EAE3B,KAAK,UAAY,EAEZ,IACT,EACA,EAAE,EAAG,CAEH,MADA,MAAK,MAAM,MAAQ,EACZ,IACT,EAEA,EAAE,EAAG,CAEH,MADA,MAAK,MAAM,OAAS,EACb,IACT,EAEA,KAAK,EAAG,EAAG,CAGT,MAFA,MAAK,MAAM,MAAQ,EACnB,KAAK,MAAM,OAAS,EACb,IACT,EAEA,KAAK,EAAG,CAEN,MADA,MAAK,MAAM,SAAW,EACf,IACT,EAEA,KAAK,EAAG,CAEN,MADA,MAAK,MAAM,UAAY,EAChB,IACT,EAEA,KAAK,EAAG,CAEN,MADA,MAAK,MAAM,SAAW,EACf,IACT,EAEA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GAAG,eAAgB,CAAwB,CACzD,EAEA,iBAAiB,EAAS,CACxB,OAAO,KAAK,GAAG,iBAAkB,CAAwB,CAC3D,EAEA,eAAe,EAAS,CACtB,OAAO,KAAK,GAAG,eAAgB,CAAwB,CACzD,EAEA,qBAAqB,EAAS,CAC5B,OAAO,KAAK,GAAG,qBAAsB,CAAwB,CAC/D,EAEA,gBAAgB,EAAS,CACvB,OAAO,KAAK,GAAG,gBAAiB,CAAwB,CAC1D,EAEA,cAAc,EAAS,CACrB,OAAO,KAAK,GAAG,cAAe,CAAwB,CACxD,EAEA,YAAY,EAAS,CACnB,OAAO,KAAK,GAAG,YAAa,CAAwB,CACtD,EAEA,cAAc,EAAS,CACrB,OAAO,KAAK,GAAG,cAAe,CAAwB,CACxD,EAEA,eAAe,EAAS,CACtB,OAAO,KAAK,GAAG,eAAgB,CAAwB,CACzD,EAEA,eAAe,EAAS,CACtB,OAAO,KAAK,GAAG,eAAgB,CAAwB,CACzD,EAEA,gBAAgB,EAAS,CACvB,OAAO,KAAK,GAAG,gBAAiB,CAAwB,CAC1D,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,EC/iChB,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"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/core/index.ts","../src/core/input.ts","../src/core/textarea.ts","../src/core/select.ts","../src/core/button.ts","../src/core/form.ts","../src/core/a.ts","../src/core/img.ts","../src/core/media.ts","../src/core/label.ts","../src/core/option.ts","../src/core/details.ts","../src/core/dialog.ts","../src/core/progress.ts","../src/index.ts"],"sourcesContent":["declare global {\n interface HTMLElement {\n jpui: true;\n\n id_(id: string): this;\n attr_(attr: string, value: any): this;\n name_(name: string): this;\n child_(...nodes: any[]): this;\n text_(text: string): this;\n\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 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 hide_(): this;\n visible_(): this;\n invisible_(): this;\n rotate_(deg: number): this;\n scale_(x: number, y?: number): this;\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 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 name_(name) {\n this.setAttribute('name', name);\n return this;\n },\n child_(...nodes) {\n this.append(...nodes);\n return this;\n },\n class_(c) {\n this.className = Array.isArray(c) ? c.join(' ') : c;\n return this;\n },\n w_(w) {\n this.style.width = w;\n return this;\n },\n h_(h) {\n this.style.height = h;\n return this;\n },\n size_(w, h) {\n this.style.width = w;\n this.style.height = h;\n return this;\n },\n minW_(w) {\n this.style.minWidth = w;\n return this;\n },\n minH_(h) {\n this.style.minHeight = h;\n return this;\n },\n maxW_(w) {\n this.style.maxWidth = w;\n return this;\n },\n maxH_(h) {\n this.style.maxHeight = h;\n return this;\n },\n flex_() {\n this.style.display = 'flex';\n return this;\n },\n flexFlex_() {\n this.style.display = 'flex';\n this.style.flex = '1 1 0%';\n return this;\n },\n flexNone_() {\n this.style.flex = 'none';\n return this;\n },\n flexAuto_() {\n this.style.flex = '1 1 auto';\n return this;\n },\n flexGrow_(grow) {\n this.style.flexGrow = String(grow);\n return this;\n },\n flexShrink_(shrink) {\n this.style.flexShrink = String(shrink);\n return this;\n },\n flexBasis_(basis) {\n this.style.flexBasis = basis;\n return this;\n },\n flexDirection_(direction) {\n this.style.flexDirection = direction;\n return this;\n },\n flexWrap_(wrap) {\n this.style.flexWrap = wrap;\n return this;\n },\n grid_() {\n this.style.display = 'grid';\n return this;\n },\n gridTemplateColumns_(columns) {\n this.style.gridTemplateColumns = columns;\n return this;\n },\n gridTemplateRows_(rows) {\n this.style.gridTemplateRows = rows;\n return this;\n },\n gridColumn_(column) {\n this.style.gridColumn = column;\n return this;\n },\n gridRow_(row) {\n this.style.gridRow = row;\n return this;\n },\n gap_(gap) {\n this.style.gap = gap;\n return this;\n },\n gapX_(gap) {\n this.style.columnGap = gap;\n return this;\n },\n gapY_(gap) {\n this.style.rowGap = gap;\n return this;\n },\n justify_(justify) {\n this.style.justifyContent = justify;\n return this;\n },\n items_(items) {\n this.style.alignItems = items;\n return this;\n },\n content_(content) {\n this.style.alignContent = content;\n return this;\n },\n self_(alignSelf) {\n this.style.alignSelf = alignSelf;\n return this;\n },\n justifySelf_(justifySelf) {\n this.style.justifySelf = justifySelf;\n return this;\n },\n px_(px) {\n this.style.paddingLeft = px;\n this.style.paddingRight = px;\n return this;\n },\n py_(py) {\n this.style.paddingTop = py;\n this.style.paddingBottom = py;\n return this;\n },\n pt_(pt) {\n this.style.paddingTop = pt;\n return this;\n },\n pr_(pr) {\n this.style.paddingRight = pr;\n return this;\n },\n pb_(pb) {\n this.style.paddingBottom = pb;\n return this;\n },\n pl_(pl) {\n this.style.paddingLeft = pl;\n return this;\n },\n p_(p) {\n this.style.padding = p;\n return this;\n },\n mx_(mx) {\n this.style.marginLeft = mx;\n this.style.marginRight = mx;\n return this;\n },\n my_(my) {\n this.style.marginTop = my;\n this.style.marginBottom = my;\n return this;\n },\n mt_(mt) {\n this.style.marginTop = mt;\n return this;\n },\n mr_(mr) {\n this.style.marginRight = mr;\n return this;\n },\n mb_(mb) {\n this.style.marginBottom = mb;\n return this;\n },\n ml_(ml) {\n this.style.marginLeft = ml;\n return this;\n },\n m_(m) {\n this.style.margin = m;\n return this;\n },\n border_() {\n this.style.border = '1px solid currentColor';\n return this;\n },\n borderW_(width) {\n this.style.borderWidth = width;\n return this;\n },\n borderT_(width) {\n this.style.borderTopWidth = width;\n return this;\n },\n borderR_(width) {\n this.style.borderRightWidth = width;\n return this;\n },\n borderB_(width) {\n this.style.borderBottomWidth = width;\n return this;\n },\n borderL_(width) {\n this.style.borderLeftWidth = width;\n return this;\n },\n borderColor_(color) {\n this.style.borderColor = color;\n return this;\n },\n borderStyle_(style) {\n this.style.borderStyle = style;\n return this;\n },\n rounded_(radius) {\n this.style.borderRadius = radius;\n return this;\n },\n roundedTL_(radius) {\n this.style.borderTopLeftRadius = radius;\n return this;\n },\n roundedTR_(radius) {\n this.style.borderTopRightRadius = radius;\n return this;\n },\n roundedBL_(radius) {\n this.style.borderBottomLeftRadius = radius;\n return this;\n },\n roundedBR_(radius) {\n this.style.borderBottomRightRadius = radius;\n return this;\n },\n bg_(color) {\n this.style.backgroundColor = color;\n return this;\n },\n bgColor_(color) {\n this.style.backgroundColor = color;\n return this;\n },\n bgImage_(image) {\n this.style.backgroundImage = image;\n return this;\n },\n bgSize_(size) {\n this.style.backgroundSize = size;\n return this;\n },\n bgPosition_(position) {\n this.style.backgroundPosition = position;\n return this;\n },\n bgRepeat_(repeat) {\n this.style.backgroundRepeat = repeat;\n return this;\n },\n shadow_(shadow) {\n this.style.boxShadow = shadow;\n return this;\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 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 shadowNone_() {\n this.style.boxShadow = 'none';\n return this;\n },\n opacity_(value) {\n this.style.opacity = String(value);\n return this;\n },\n text_(t) {\n this.textContent = t;\n return this;\n },\n textColor_(color) {\n this.style.color = color;\n return this;\n },\n textSize_(size) {\n this.style.fontSize = size;\n return this;\n },\n textAlign_(align) {\n this.style.textAlign = align;\n return this;\n },\n fontWeight_(weight) {\n this.style.fontWeight = weight;\n return this;\n },\n lineHeight_(height) {\n this.style.lineHeight = height;\n return this;\n },\n letterSpacing_(spacing) {\n this.style.letterSpacing = spacing;\n return this;\n },\n textOverflow_(overflow) {\n this.style.textOverflow = overflow;\n return this;\n },\n whitespace_(value) {\n this.style.whiteSpace = value;\n return this;\n },\n truncate_() {\n this.style.overflow = 'hidden';\n this.style.textOverflow = 'ellipsis';\n this.style.whiteSpace = 'nowrap';\n return this;\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 relative_() {\n this.style.position = 'relative';\n return this;\n },\n absolute_() {\n this.style.position = 'absolute';\n return this;\n },\n fixed_() {\n this.style.position = 'fixed';\n return this;\n },\n sticky_() {\n this.style.position = 'sticky';\n return this;\n },\n static_() {\n this.style.position = 'static';\n return this;\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 insetY_(value) {\n this.style.top = value;\n this.style.bottom = value;\n return this;\n },\n insetX_(value) {\n this.style.right = value;\n this.style.left = value;\n return this;\n },\n top_(value) {\n this.style.top = value;\n return this;\n },\n right_(value) {\n this.style.right = value;\n return this;\n },\n bottom_(value) {\n this.style.bottom = value;\n return this;\n },\n left_(value) {\n this.style.left = value;\n return this;\n },\n z_(value) {\n this.style.zIndex = String(value);\n return this;\n },\n zIndex_(value) {\n this.style.zIndex = String(value);\n return this;\n },\n overflow_(value) {\n this.style.overflow = value;\n return this;\n },\n overflowX_(value) {\n this.style.overflowX = value;\n return this;\n },\n overflowY_(value) {\n this.style.overflowY = value;\n return this;\n },\n overflowHidden_() {\n this.style.overflow = 'hidden';\n return this;\n },\n overflowScroll_() {\n this.style.overflow = 'scroll';\n return this;\n },\n overflowAuto_() {\n this.style.overflow = 'auto';\n return this;\n },\n overflowVisible_() {\n this.style.overflow = 'visible';\n return this;\n },\n cursor_(cursor) {\n this.style.cursor = cursor;\n return this;\n },\n cursorPointer_() {\n this.style.cursor = 'pointer';\n return this;\n },\n cursorDefault_() {\n this.style.cursor = 'default';\n return this;\n },\n cursorMove_() {\n this.style.cursor = 'move';\n return this;\n },\n cursorGrab_() {\n this.style.cursor = 'grab';\n return this;\n },\n cursorGrabbing_() {\n this.style.cursor = 'grabbing';\n return this;\n },\n pointerEvents_(value) {\n this.style.pointerEvents = value;\n return this;\n },\n pointerEventsNone_() {\n this.style.pointerEvents = 'none';\n return this;\n },\n pointerEventsAuto_() {\n this.style.pointerEvents = 'auto';\n return this;\n },\n userSelect_(value) {\n this.style.userSelect = value;\n return this;\n },\n selectNone_() {\n this.style.userSelect = 'none';\n return this;\n },\n selectText_() {\n this.style.userSelect = 'text';\n return this;\n },\n selectAll_() {\n this.style.userSelect = 'all';\n return this;\n },\n block_() {\n this.style.display = 'block';\n return this;\n },\n inlineBlock_() {\n this.style.display = 'inline-block';\n return this;\n },\n inline_() {\n this.style.display = 'inline';\n return this;\n },\n hide_() {\n this.style.display = 'none';\n return this;\n },\n visible_() {\n this.style.visibility = 'visible';\n return this;\n },\n invisible_() {\n this.style.visibility = 'hidden';\n return this;\n },\n rotate_(deg) {\n this.style.transform = 'rotate(' + deg + 'deg)';\n return this;\n },\n scale_(x, y) {\n this.style.transform = 'scale(' + x + ', ' + (y ?? x) + ')';\n return this;\n },\n transformTranslate_(x, y) {\n this.style.transform = 'translate(' + x + ', ' + y + ')';\n return this;\n },\n transition_(property) {\n this.style.transition = property;\n return this;\n },\n transitionDuration_(duration) {\n this.style.transitionDuration = duration;\n return this;\n },\n transitionTimingFunction_(timing) {\n this.style.transitionTimingFunction = timing;\n return this;\n },\n transitionDelay_(delay) {\n this.style.transitionDelay = delay;\n return this;\n },\n onClick_(handler) {\n return this.on_('click', handler as EventListener);\n },\n onDoubleClick_(handler) {\n return this.on_('dblclick', handler as EventListener);\n },\n onMouseDown_(handler) {\n return this.on_('mousedown', handler as EventListener);\n },\n onMouseUp_(handler) {\n return this.on_('mouseup', handler as EventListener);\n },\n onMouseMove_(handler) {\n return this.on_('mousemove', handler as EventListener);\n },\n onMouseEnter_(handler) {\n return this.on_('mouseenter', handler as EventListener);\n },\n onMouseLeave_(handler) {\n return this.on_('mouseleave', handler as EventListener);\n },\n onMouseOver_(handler) {\n return this.on_('mouseover', handler as EventListener);\n },\n onMouseOut_(handler) {\n return this.on_('mouseout', handler as EventListener);\n },\n onMouseWheel_(handler) {\n return this.on_('wheel', handler as EventListener);\n },\n onKeyDown_(handler) {\n return this.on_('keydown', handler as EventListener);\n },\n onKeyUp_(handler) {\n return this.on_('keyup', handler as EventListener);\n },\n onKeyPress_(handler) {\n return this.on_('keypress', handler as EventListener);\n },\n onFocus_(handler) {\n return this.on_('focus', handler as EventListener);\n },\n onBlur_(handler) {\n return this.on_('blur', handler as EventListener);\n },\n onFocusIn_(handler) {\n return this.on_('focusin', handler as EventListener);\n },\n onFocusOut_(handler) {\n return this.on_('focusout', handler as EventListener);\n },\n onChange_(handler) {\n return this.on_('change', handler as EventListener);\n },\n onInput_(handler) {\n return this.on_('input', handler as EventListener);\n },\n onSubmit_(handler) {\n return this.on_('submit', handler as EventListener);\n },\n onReset_(handler) {\n return this.on_('reset', handler as EventListener);\n },\n onTouchStart_(handler) {\n return this.on_('touchstart', handler as EventListener);\n },\n onTouchEnd_(handler) {\n return this.on_('touchend', handler as EventListener);\n },\n onTouchMove_(handler) {\n return this.on_('touchmove', handler as EventListener);\n },\n onTouchCancel_(handler) {\n return this.on_('touchcancel', handler as EventListener);\n },\n onDrag_(handler) {\n return this.on_('drag', handler as EventListener);\n },\n onDragStart_(handler) {\n return this.on_('dragstart', handler as EventListener);\n },\n onDragEnd_(handler) {\n return this.on_('dragend', handler as EventListener);\n },\n onDragEnter_(handler) {\n return this.on_('dragenter', handler as EventListener);\n },\n onDragLeave_(handler) {\n return this.on_('dragleave', handler as EventListener);\n },\n onDragOver_(handler) {\n return this.on_('dragover', handler as EventListener);\n },\n onDragDrop_(handler) {\n return this.on_('drop', handler as EventListener);\n },\n onCopy_(handler) {\n return this.on_('copy', handler as EventListener);\n },\n onCut_(handler) {\n return this.on_('cut', handler as EventListener);\n },\n onPaste_(handler) {\n return this.on_('paste', handler as EventListener);\n },\n onScroll_(handler) {\n return this.on_('scroll', handler as EventListener);\n },\n onResize_(handler) {\n return this.on_('resize', handler as EventListener);\n },\n onPlay_(handler) {\n return this.on_('play', handler as EventListener);\n },\n onPause_(handler) {\n return this.on_('pause', handler as EventListener);\n },\n onEnded_(handler) {\n return this.on_('ended', handler as EventListener);\n },\n onVolumeChange_(handler) {\n return this.on_('volumechange', handler as EventListener);\n },\n onAnimationStart_(handler) {\n return this.on_('animationstart', handler as EventListener);\n },\n onAnimationEnd_(handler) {\n return this.on_('animationend', handler as EventListener);\n },\n onAnimationIteration_(handler) {\n return this.on_('animationiteration', handler as EventListener);\n },\n onTransitionEnd_(handler) {\n return this.on_('transitionend', handler as EventListener);\n },\n onPointerDown_(handler) {\n return this.on_('pointerdown', handler as EventListener);\n },\n onPointerUp_(handler) {\n return this.on_('pointerup', handler as EventListener);\n },\n onPointerMove_(handler) {\n return this.on_('pointermove', handler as EventListener);\n },\n onPointerEnter_(handler) {\n return this.on_('pointerenter', handler as EventListener);\n },\n onPointerLeave_(handler) {\n return this.on_('pointerleave', handler as EventListener);\n },\n onPointerCancel_(handler) {\n return this.on_('pointercancel', handler as EventListener);\n },\n on_(eventName, handler) {\n this.addEventListener(eventName, handler);\n return this;\n },\n off_(eventName, handler) {\n this.removeEventListener(eventName, handler);\n return this;\n },\n} as HTMLElement);\n\nexport {};\n","declare global {\n interface HTMLInputElement {\n placeholder_(value: string): this;\n value_(value: string): this;\n type_(type: string): this;\n checked_(checked?: boolean): this;\n disabled_(disabled?: boolean): this;\n focus_(): this;\n blur_(): this;\n select_(): this;\n onChange_(\n handler: (\n event: Event & { currentTarget: HTMLInputElement; target: HTMLInputElement },\n ) => void,\n ): this;\n onInput_(\n handler: (\n event: Event & { currentTarget: HTMLInputElement; target: HTMLInputElement },\n ) => void,\n ): this;\n }\n}\nObject.assign(HTMLInputElement.prototype, {\n placeholder_(value) {\n this.placeholder = value;\n return this;\n },\n value_(value) {\n this.value = value;\n return this;\n },\n type_(type) {\n this.type = type;\n return this;\n },\n checked_(checked = true) {\n this.checked = checked;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n focus_() {\n this.focus();\n return this;\n },\n blur_() {\n this.blur();\n return this;\n },\n select_() {\n this.select();\n return this;\n },\n onChange_(handler) {\n return this.on_('change', handler as EventListener);\n },\n onInput_(handler) {\n return this.on_('input', handler as EventListener);\n },\n} as HTMLInputElement);\nexport {};\n","declare global {\n interface HTMLTextAreaElement {\n placeholder_(value: string): this;\n value_(value: string): this;\n rows_(rows: number): this;\n cols_(cols: number): this;\n disabled_(disabled?: boolean): this;\n focus_(): this;\n blur_(): this;\n select_(): this;\n onChange_(\n handler: (\n event: Event & { currentTarget: HTMLTextAreaElement; target: HTMLTextAreaElement },\n ) => void,\n ): this;\n onInput_(\n handler: (\n event: Event & { currentTarget: HTMLTextAreaElement; target: HTMLTextAreaElement },\n ) => void,\n ): this;\n }\n}\nObject.assign(HTMLTextAreaElement.prototype, {\n placeholder_(value) {\n this.placeholder = value;\n return this;\n },\n value_(value) {\n this.value = value;\n return this;\n },\n rows_(rows) {\n this.rows = rows;\n return this;\n },\n cols_(cols) {\n this.cols = cols;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n focus_() {\n this.focus();\n return this;\n },\n blur_() {\n this.blur();\n return this;\n },\n select_() {\n this.select();\n return this;\n },\n onChange_(handler) {\n return this.on_('change', handler as EventListener);\n },\n onInput_(handler) {\n return this.on_('input', handler as EventListener);\n },\n} as HTMLTextAreaElement);\nexport {};\n","declare global {\n interface HTMLSelectElement {\n value_(value: string): this;\n options_(options: Array<{ value: any; label: string }>): this;\n disabled_(disabled?: boolean): this;\n focus_(): this;\n blur_(): this;\n onChange_(\n handler: (\n event: Event & { currentTarget: HTMLSelectElement; target: HTMLSelectElement },\n ) => void,\n ): this;\n onInput_(\n handler: (\n event: Event & { currentTarget: HTMLSelectElement; target: HTMLSelectElement },\n ) => void,\n ): this;\n }\n}\nObject.assign(HTMLSelectElement.prototype, {\n value_(value) {\n this.value = value;\n return this;\n },\n options_(options) {\n this.replaceChildren(\n ...options.map((option) => {\n const node = document.createElement('option');\n node.value = String(option.value);\n node.textContent = option.label;\n return node;\n }),\n );\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n focus_() {\n this.focus();\n return this;\n },\n blur_() {\n this.blur();\n return this;\n },\n onChange_(handler) {\n return this.on_('change', handler as EventListener);\n },\n onInput_(handler) {\n return this.on_('input', handler as EventListener);\n },\n} as HTMLSelectElement);\nexport {};\n","declare global {\n interface HTMLButtonElement {\n type_(type: 'button' | 'submit' | 'reset'): this;\n disabled_(disabled?: boolean): this;\n name_(name: string): this;\n value_(value: string): this;\n autofocus_(autofocus?: boolean): this;\n }\n}\nObject.assign(HTMLButtonElement.prototype, {\n type_(type) {\n this.type = type;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n name_(name) {\n this.name = name;\n return this;\n },\n value_(value) {\n this.value = value;\n return this;\n },\n autofocus_(autofocus = true) {\n this.autofocus = autofocus;\n return this;\n },\n} as HTMLButtonElement);\nexport {};\n","declare global {\n interface HTMLFormElement {\n action_(action: string): this;\n method_(method: 'get' | 'post' | 'dialog'): this;\n target_(target: string): this;\n enctype_(enctype: string): this;\n noValidate_(noValidate?: boolean): this;\n reset_(): this;\n submit_(): this;\n requestSubmit_(): this;\n }\n}\nObject.assign(HTMLFormElement.prototype, {\n action_(action) {\n this.action = action;\n return this;\n },\n method_(method) {\n this.method = method;\n return this;\n },\n target_(target) {\n this.target = target;\n return this;\n },\n enctype_(enctype) {\n this.enctype = enctype;\n return this;\n },\n noValidate_(noValidate = true) {\n this.noValidate = noValidate;\n return this;\n },\n reset_() {\n this.reset();\n return this;\n },\n submit_() {\n this.submit();\n return this;\n },\n requestSubmit_() {\n this.requestSubmit();\n return this;\n },\n} as HTMLFormElement);\nexport {};\n","declare global {\n interface HTMLAnchorElement {\n href_(href: string): this;\n target_(target: string): this;\n rel_(rel: string): this;\n download_(download?: string): this;\n referrerPolicy_(policy: ReferrerPolicy): this;\n }\n}\nObject.assign(HTMLAnchorElement.prototype, {\n href_(href) {\n this.href = href;\n return this;\n },\n target_(target) {\n this.target = target;\n return this;\n },\n rel_(rel) {\n this.rel = rel;\n return this;\n },\n download_(download = '') {\n this.download = download;\n return this;\n },\n referrerPolicy_(policy) {\n this.referrerPolicy = policy;\n return this;\n },\n} as HTMLAnchorElement);\nexport {};\n","declare global {\n interface HTMLImageElement {\n src_(src: string): this;\n alt_(alt: string): this;\n width_(width: number): this;\n height_(height: number): this;\n loading_(loading: 'eager' | 'lazy'): this;\n decoding_(decoding: 'sync' | 'async' | 'auto'): this;\n }\n}\nObject.assign(HTMLImageElement.prototype, {\n src_(src) {\n this.src = src;\n return this;\n },\n alt_(alt) {\n this.alt = alt;\n return this;\n },\n width_(width) {\n this.width = width;\n return this;\n },\n height_(height) {\n this.height = height;\n return this;\n },\n loading_(loading) {\n this.loading = loading;\n return this;\n },\n decoding_(decoding) {\n this.decoding = decoding;\n return this;\n },\n} as HTMLImageElement);\nexport {};\n","declare global {\n interface HTMLMediaElement {\n src_(src: string): this;\n controls_(controls?: boolean): this;\n autoplay_(autoplay?: boolean): this;\n loop_(loop?: boolean): this;\n muted_(muted?: boolean): this;\n currentTime_(time: number): this;\n volume_(volume: number): this;\n play_(): this;\n pause_(): this;\n }\n}\nObject.assign(HTMLMediaElement.prototype, {\n src_(src) {\n this.src = src;\n return this;\n },\n controls_(controls = true) {\n this.controls = controls;\n return this;\n },\n autoplay_(autoplay = true) {\n this.autoplay = autoplay;\n return this;\n },\n loop_(loop = true) {\n this.loop = loop;\n return this;\n },\n muted_(muted = true) {\n this.muted = muted;\n return this;\n },\n currentTime_(time) {\n this.currentTime = time;\n return this;\n },\n volume_(volume) {\n this.volume = volume;\n return this;\n },\n play_() {\n void this.play();\n return this;\n },\n pause_() {\n this.pause();\n return this;\n },\n} as HTMLMediaElement);\nexport {};\n","declare global {\n interface HTMLLabelElement {\n for_(htmlFor: string): this;\n }\n}\nObject.assign(HTMLLabelElement.prototype, {\n for_(htmlFor) {\n this.htmlFor = htmlFor;\n return this;\n },\n} as HTMLLabelElement);\nexport {};\n","declare global {\n interface HTMLOptionElement {\n value_(value: string): this;\n selected_(selected?: boolean): this;\n disabled_(disabled?: boolean): this;\n label_(label: string): this;\n }\n}\nObject.assign(HTMLOptionElement.prototype, {\n value_(value) {\n this.value = value;\n return this;\n },\n selected_(selected = true) {\n this.selected = selected;\n return this;\n },\n disabled_(disabled = true) {\n this.disabled = disabled;\n return this;\n },\n label_(label) {\n this.label = label;\n return this;\n },\n} as HTMLOptionElement);\nexport {};\n","declare global {\n interface HTMLDetailsElement {\n open_(open?: boolean): this;\n }\n}\nObject.assign(HTMLDetailsElement.prototype, {\n open_(open = true) {\n this.open = open;\n return this;\n },\n} as HTMLDetailsElement);\nexport {};\n","declare global {\n interface HTMLDialogElement {\n open_(open?: boolean): this;\n show_(): this;\n showModal_(): this;\n close_(returnValue?: string): this;\n }\n}\nObject.assign(HTMLDialogElement.prototype, {\n open_(open = true) {\n this.open = open;\n return this;\n },\n show_() {\n this.show();\n return this;\n },\n showModal_() {\n this.showModal();\n return this;\n },\n close_(returnValue) {\n this.close(returnValue);\n return this;\n },\n} as HTMLDialogElement);\nexport {};\n","declare global {\n interface HTMLProgressElement {\n value_(value: number): this;\n max_(max: number): this;\n }\n interface HTMLMeterElement {\n value_(value: number): this;\n min_(min: number): this;\n max_(max: number): this;\n low_(low: number): this;\n high_(high: number): this;\n optimum_(optimum: number): this;\n }\n}\nObject.assign(HTMLProgressElement.prototype, {\n value_(value) {\n this.value = value;\n return this;\n },\n max_(max) {\n this.max = max;\n return this;\n },\n} as HTMLProgressElement);\nObject.assign(HTMLMeterElement.prototype, {\n value_(value) {\n this.value = value;\n return this;\n },\n min_(min) {\n this.min = min;\n return this;\n },\n max_(max) {\n this.max = max;\n return this;\n },\n low_(low) {\n this.low = low;\n return this;\n },\n high_(high) {\n this.high = high;\n return this;\n },\n optimum_(optimum) {\n this.optimum = optimum;\n return this;\n },\n} as HTMLMeterElement);\nexport {};\n","import './core/init.js';\n\nexport const h = <T extends keyof HTMLElementTagNameMap>(tag: T): HTMLElementTagNameMap[T] =>\n document.createElement(tag);\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');\nexport const select = (options: Array<{ value: any; label: string }>) =>\n document.createElement('select').options_(options);\n"],"mappings":"AAiMA,OAAO,OAAO,YAAY,UAAW,CACnC,IAAI,EAAI,CAEN,MADA,MAAK,GAAK,EACH,IACT,EACA,MAAM,EAAM,EAAO,CAEjB,OADA,KAAK,aAAa,EAAM,CAAK,EACtB,IACT,EACA,MAAM,EAAM,CAEV,OADA,KAAK,aAAa,OAAQ,CAAI,EACvB,IACT,EACA,OAAO,GAAG,EAAO,CAEf,OADA,KAAK,OAAO,GAAG,CAAK,EACb,IACT,EACA,OAAO,EAAG,CAER,MADA,MAAK,UAAY,MAAM,QAAQ,CAAC,EAAI,EAAE,KAAK,GAAG,EAAI,EAC3C,IACT,EACA,GAAG,EAAG,CAEJ,MADA,MAAK,MAAM,MAAQ,EACZ,IACT,EACA,GAAG,EAAG,CAEJ,MADA,MAAK,MAAM,OAAS,EACb,IACT,EACA,MAAM,EAAG,EAAG,CAGV,MAFA,MAAK,MAAM,MAAQ,EACnB,KAAK,MAAM,OAAS,EACb,IACT,EACA,MAAM,EAAG,CAEP,MADA,MAAK,MAAM,SAAW,EACf,IACT,EACA,MAAM,EAAG,CAEP,MADA,MAAK,MAAM,UAAY,EAChB,IACT,EACA,MAAM,EAAG,CAEP,MADA,MAAK,MAAM,SAAW,EACf,IACT,EACA,MAAM,EAAG,CAEP,MADA,MAAK,MAAM,UAAY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AO,EAAO,CAEZ,MADA,MAAK,MAAQ,EACN,IACT,EACA,KAAK,EAAK,CAER,MADA,MAAK,IAAM,EACJ,IACT,CACF,CAAwB,EACxB,OAAO,OAAO,iBAAiB,UAAW,CACxC,OAAO,EAAO,CAEZ,MADA,MAAK,MAAQ,EACN,IACT,EACA,KAAK,EAAK,CAER,MADA,MAAK,IAAM,EACJ,IACT,EACA,KAAK,EAAK,CAER,MADA,MAAK,IAAM,EACJ,IACT,EACA,KAAK,EAAK,CAER,MADA,MAAK,IAAM,EACJ,IACT,EACA,MAAM,EAAM,CAEV,MADA,MAAK,KAAO,EACL,IACT,EACA,SAAS,EAAS,CAEhB,MADA,MAAK,QAAU,EACR,IACT,CACF,CAAqB,EC/CrB,MAAa,EAA4C,GACvD,SAAS,cAAc,CAAG,EACf,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,EAC3C,EAAU,GACrB,SAAS,cAAc,QAAQ,CAAC,CAAC,SAAS,CAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zed-gpui",
3
- "version": "0.0.2",
3
+ "version": "0.2.1",
4
4
  "author": {
5
5
  "name": "Kasukabe Tsumugi",
6
6
  "email": "futami16237@gmail.com"
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "type": "module",
12
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原型实现其功能",
13
+ "description": "zed-gpui is a functional web front-end framework with gpui-inspired syntax, which enhances the HTMLElement prototype to implement its functionality",
14
+ "description_zh": "zed-gpui 是一个采用 gpui 风格语法的函数式 web 前端框架,通过增强 HTMLElement 原型实现能力",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/index.d.ts",