@avento-space/ts-ui 1.2.4 → 1.2.6
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 +180 -180
- package/dist/{card.wc-83Ws3o27.d.ts → card.wc-CLzyZAbJ.d.ts} +1 -1
- package/dist/{chunk-GJ6NMUKU.js → chunk-2FE7DEDS.js} +4 -4
- package/dist/{chunk-GJ6NMUKU.js.map → chunk-2FE7DEDS.js.map} +1 -1
- package/dist/{chunk-6SD5UBY6.js → chunk-C4GTD5ZH.js} +3 -3
- package/dist/chunk-C4GTD5ZH.js.map +1 -0
- package/dist/{chunk-2JEFDU25.js → chunk-EDV6KYRZ.js} +3 -3
- package/dist/{chunk-2JEFDU25.js.map → chunk-EDV6KYRZ.js.map} +1 -1
- package/dist/{chunk-AOFVLHAJ.js → chunk-XN2J666Y.js} +26 -4
- package/dist/chunk-XN2J666Y.js.map +1 -0
- package/dist/components/index.d.ts +2 -10
- package/dist/components/index.js +2 -2
- package/dist/define.js +4 -4
- package/dist/icons/index.js +2 -2
- package/dist/index-DaqSE01_.d.ts +19 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/react/index.d.ts +1 -1
- package/package.json +6 -1
- package/tailwind-theme.css +293 -0
- package/dist/chunk-6SD5UBY6.js.map +0 -1
- package/dist/chunk-AOFVLHAJ.js.map +0 -1
- package/dist/slot.wc-BvIJg5UJ.d.ts +0 -11
package/README.md
CHANGED
|
@@ -1,180 +1,180 @@
|
|
|
1
|
-
# Avento TS UI
|
|
2
|
-
|
|
3
|
-
**Web Components UI library — framework-agnostic, signal-driven, tree-shakeable.**
|
|
4
|
-
|
|
5
|
-
Build reactive UIs with native web components. Works with any framework (React, Vue, Angular, or vanilla JS) or no framework at all.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Features
|
|
10
|
-
|
|
11
|
-
- **50+ production-ready components** — buttons, modals, tables, forms, overlays, and more
|
|
12
|
-
- **Shadow DOM** — encapsulated styles, no leaks
|
|
13
|
-
- **Signal-based reactivity** — fine-grained updates without virtual DOM
|
|
14
|
-
- **Tree-shakeable** — import only what you use
|
|
15
|
-
- **Framework-agnostic** — use directly as HTML tags or via React wrappers
|
|
16
|
-
- **Accessible** — WAI-ARIA patterns, keyboard navigation, focus management
|
|
17
|
-
- **Icon system** — 3000+ SVG icons built in
|
|
18
|
-
- **Zero dependencies** — only TypeScript
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## Quick Start
|
|
23
|
-
|
|
24
|
-
### Install
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
npm install @avento-space/ts-ui
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Usage (vanilla JS / any framework)
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
import { defineComponents } from '@avento-space/ts-ui';
|
|
34
|
-
|
|
35
|
-
// Register all components (prefix: u-)
|
|
36
|
-
defineComponents();
|
|
37
|
-
|
|
38
|
-
// Components are now available as HTML tags
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
```html
|
|
42
|
-
<u-button variant="primary">Click me</u-button>
|
|
43
|
-
<u-modal title="Hello" open>
|
|
44
|
-
<p>Modal content</p>
|
|
45
|
-
</u-modal>
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Usage with React
|
|
49
|
-
|
|
50
|
-
```tsx
|
|
51
|
-
import { defineComponents } from '@avento-space/ts-ui';
|
|
52
|
-
import { Button, Modal } from '@avento-space/ts-ui/react';
|
|
53
|
-
|
|
54
|
-
defineComponents();
|
|
55
|
-
|
|
56
|
-
function App() {
|
|
57
|
-
return (
|
|
58
|
-
<Button variant="primary" onClick={() => alert('Hi!')}>
|
|
59
|
-
Click me
|
|
60
|
-
</Button>
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## Components
|
|
68
|
-
|
|
69
|
-
| Component | Tag | Description |
|
|
70
|
-
|-----------|-----|-------------|
|
|
71
|
-
| Accordion | `<u-accordion>` | Collapsible sections |
|
|
72
|
-
| Badge | `<u-badge>` | Status indicators, labels |
|
|
73
|
-
| Box | `<u-box>` | Semantic layout wrapper |
|
|
74
|
-
| Breadcrumb | `<u-breadcrumb>` | Navigation trail |
|
|
75
|
-
| Button | `<u-button>` | Primary, secondary, ghost, danger, link |
|
|
76
|
-
| Calendar | `<u-calendar>` | Date picker |
|
|
77
|
-
| Card | `<u-card>` | Content container with header/footer |
|
|
78
|
-
| Checkbox | `<u-checkbox>` | Toggle option |
|
|
79
|
-
| Collection | `<u-collection>` | Managed item selection |
|
|
80
|
-
| Combobox | `<u-combobox>` | Autocomplete input |
|
|
81
|
-
| CommandPalette | `<u-command-palette>` | ⌘K command menu |
|
|
82
|
-
| Container | `<u-container>` | Max-width layout wrapper |
|
|
83
|
-
| ContextMenu | `<u-context-menu>` | Right-click menu |
|
|
84
|
-
| DataTable | `<u-data-table>` | Sortable, filterable table |
|
|
85
|
-
| DialogRoot | `<u-dialog-root>` | Dialog base behavior |
|
|
86
|
-
| DismissableLayer | `<u-dismissable-layer>` | Click-outside handler |
|
|
87
|
-
| Drawer | `<u-drawer>` | Slide-in panel |
|
|
88
|
-
| Dropdown | `<u-dropdown>` | Menu button |
|
|
89
|
-
| Field | `<u-field>` | Label + input wrapper |
|
|
90
|
-
| FocusManager | `<u-focus-manager>` | Keyboard focus orchestration |
|
|
91
|
-
| FocusScope | `<u-focus-scope>` | Isolated focus zone |
|
|
92
|
-
| FocusTrap | `<u-focus-trap>` | Tab cycle trapping |
|
|
93
|
-
| Form | `<u-form>` | Form validation wrapper |
|
|
94
|
-
| Grid | `<u-grid>` | CSS Grid layout |
|
|
95
|
-
| Hoverable | `<u-hoverable>` | Hover state behavior |
|
|
96
|
-
| Input | `<u-input>` | Text input |
|
|
97
|
-
| KeyboardNavigation | `<u-keyboard-navigation>` | Arrow key navigation |
|
|
98
|
-
| Label | `<u-label>` | Form label |
|
|
99
|
-
| Link | `<u-link>` | Styled anchor |
|
|
100
|
-
| List | `<u-list>` | Keyed list renderer |
|
|
101
|
-
| LiveRegion | `<u-live-region>` | Screen reader announcements |
|
|
102
|
-
| Modal | `<u-modal>` | Dialog overlay |
|
|
103
|
-
| Overlay | `<u-overlay>` | Backdrop layer |
|
|
104
|
-
| Popover | `<u-popover>` | Hover/focus tooltip-like |
|
|
105
|
-
| Popper | `<u-popper>` | Positioning utility |
|
|
106
|
-
| Portal | `<u-portal>` | Teleport to another node |
|
|
107
|
-
| Presence | `<u-presence>` | Mount/unmount animation |
|
|
108
|
-
| Pressable | `<u-pressable>` | Press interaction behavior |
|
|
109
|
-
| RadioGroup | `<u-radio-group>` | Radio button group |
|
|
110
|
-
| RouterView | `<u-router-view>` | Router outlet |
|
|
111
|
-
| Select | `<u-select>` | Native select replacement |
|
|
112
|
-
| Slot | `<u-slot>` | Named slot content |
|
|
113
|
-
| Sortable | `<u-sortable>` | Drag-to-reorder list |
|
|
114
|
-
| Spacer | `<u-spacer>` | Flex spacing utility |
|
|
115
|
-
| Stack / HStack | `<u-stack>` / `<u-hstack>` | Flexbox layouts |
|
|
116
|
-
| Switch | `<u-switch>` | Toggle control |
|
|
117
|
-
| Table | `<u-table>` | Data table |
|
|
118
|
-
| Tabs | `<u-tabs>` | Tabbed interface |
|
|
119
|
-
| Text | `<u-text>` | Typography with size/weight/color |
|
|
120
|
-
| Textarea | `<u-textarea>` | Multi-line input |
|
|
121
|
-
| Toast | `<u-toast>` | Notification popup |
|
|
122
|
-
| TooltipRoot | `<u-tooltip-root>` | Hover tooltip |
|
|
123
|
-
| Transition | `<u-transition>` | CSS transition behavior |
|
|
124
|
-
| Tree | `<u-tree>` | Hierarchical list |
|
|
125
|
-
| VisuallyHidden | `<u-visually-hidden>` | Screen reader-only content |
|
|
126
|
-
| Icon | `<u-icon>` | 3000+ SVG icons |
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
## Styling
|
|
131
|
-
|
|
132
|
-
Components use **Shadow DOM**, so global CSS (Tailwind, modules, etc.) cannot style internal elements. Use **CSS custom properties** for design tokens and **`::part()` selectors** for targeting specific internal elements.
|
|
133
|
-
|
|
134
|
-
> 📖 **Full documentation:** [`docs/theming.md`](./docs/theming.md) — includes the complete token table, stacking/z-index guide, React patterns, migration notes, and the optional [Tailwind
|
|
135
|
-
|
|
136
|
-
```css
|
|
137
|
-
/* Token override — affects all components */
|
|
138
|
-
:root { --u-color-primary: #7c3aed; }
|
|
139
|
-
|
|
140
|
-
/* Part selector — styles the internal <button> */
|
|
141
|
-
u-button::part(button) { font-weight: 700; text-transform: uppercase; }
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
---
|
|
145
|
-
|
|
146
|
-
## React Wrappers
|
|
147
|
-
|
|
148
|
-
```tsx
|
|
149
|
-
import { Button, Modal, Tabs, Text, Badge, Card } from '@avento-space/ts-ui/react';
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
Each web component has a React wrapper that forwards props and refs.
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
## Icons
|
|
157
|
-
|
|
158
|
-
```html
|
|
159
|
-
<u-icon name="heart"></u-icon>
|
|
160
|
-
<u-icon name="settings" size="32" stroke-width="1.5"></u-icon>
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
3000+ icons available. See the icon registry for all names.
|
|
164
|
-
|
|
165
|
-
---
|
|
166
|
-
|
|
167
|
-
## Scripts
|
|
168
|
-
|
|
169
|
-
| Command | Description |
|
|
170
|
-
|---------|-------------|
|
|
171
|
-
| `npm run build` | Build with tsup (ESM + .d.ts) |
|
|
172
|
-
| `npm test` | Run vitest |
|
|
173
|
-
| `npm run typecheck` | TypeScript check |
|
|
174
|
-
| `npm run lint` | ESLint |
|
|
175
|
-
|
|
176
|
-
---
|
|
177
|
-
|
|
178
|
-
## License
|
|
179
|
-
|
|
180
|
-
MIT
|
|
1
|
+
# Avento TS UI
|
|
2
|
+
|
|
3
|
+
**Web Components UI library — framework-agnostic, signal-driven, tree-shakeable.**
|
|
4
|
+
|
|
5
|
+
Build reactive UIs with native web components. Works with any framework (React, Vue, Angular, or vanilla JS) or no framework at all.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **50+ production-ready components** — buttons, modals, tables, forms, overlays, and more
|
|
12
|
+
- **Shadow DOM** — encapsulated styles, no leaks
|
|
13
|
+
- **Signal-based reactivity** — fine-grained updates without virtual DOM
|
|
14
|
+
- **Tree-shakeable** — import only what you use
|
|
15
|
+
- **Framework-agnostic** — use directly as HTML tags or via React wrappers
|
|
16
|
+
- **Accessible** — WAI-ARIA patterns, keyboard navigation, focus management
|
|
17
|
+
- **Icon system** — 3000+ SVG icons built in
|
|
18
|
+
- **Zero dependencies** — only TypeScript
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Quick Start
|
|
23
|
+
|
|
24
|
+
### Install
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install @avento-space/ts-ui
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Usage (vanilla JS / any framework)
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { defineComponents } from '@avento-space/ts-ui';
|
|
34
|
+
|
|
35
|
+
// Register all components (prefix: u-)
|
|
36
|
+
defineComponents();
|
|
37
|
+
|
|
38
|
+
// Components are now available as HTML tags
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<u-button variant="primary">Click me</u-button>
|
|
43
|
+
<u-modal title="Hello" open>
|
|
44
|
+
<p>Modal content</p>
|
|
45
|
+
</u-modal>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Usage with React
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
import { defineComponents } from '@avento-space/ts-ui';
|
|
52
|
+
import { Button, Modal } from '@avento-space/ts-ui/react';
|
|
53
|
+
|
|
54
|
+
defineComponents();
|
|
55
|
+
|
|
56
|
+
function App() {
|
|
57
|
+
return (
|
|
58
|
+
<Button variant="primary" onClick={() => alert('Hi!')}>
|
|
59
|
+
Click me
|
|
60
|
+
</Button>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Components
|
|
68
|
+
|
|
69
|
+
| Component | Tag | Description |
|
|
70
|
+
|-----------|-----|-------------|
|
|
71
|
+
| Accordion | `<u-accordion>` | Collapsible sections |
|
|
72
|
+
| Badge | `<u-badge>` | Status indicators, labels |
|
|
73
|
+
| Box | `<u-box>` | Semantic layout wrapper |
|
|
74
|
+
| Breadcrumb | `<u-breadcrumb>` | Navigation trail |
|
|
75
|
+
| Button | `<u-button>` | Primary, secondary, ghost, danger, link |
|
|
76
|
+
| Calendar | `<u-calendar>` | Date picker |
|
|
77
|
+
| Card | `<u-card>` | Content container with header/footer |
|
|
78
|
+
| Checkbox | `<u-checkbox>` | Toggle option |
|
|
79
|
+
| Collection | `<u-collection>` | Managed item selection |
|
|
80
|
+
| Combobox | `<u-combobox>` | Autocomplete input |
|
|
81
|
+
| CommandPalette | `<u-command-palette>` | ⌘K command menu |
|
|
82
|
+
| Container | `<u-container>` | Max-width layout wrapper |
|
|
83
|
+
| ContextMenu | `<u-context-menu>` | Right-click menu |
|
|
84
|
+
| DataTable | `<u-data-table>` | Sortable, filterable table |
|
|
85
|
+
| DialogRoot | `<u-dialog-root>` | Dialog base behavior |
|
|
86
|
+
| DismissableLayer | `<u-dismissable-layer>` | Click-outside handler |
|
|
87
|
+
| Drawer | `<u-drawer>` | Slide-in panel |
|
|
88
|
+
| Dropdown | `<u-dropdown>` | Menu button |
|
|
89
|
+
| Field | `<u-field>` | Label + input wrapper |
|
|
90
|
+
| FocusManager | `<u-focus-manager>` | Keyboard focus orchestration |
|
|
91
|
+
| FocusScope | `<u-focus-scope>` | Isolated focus zone |
|
|
92
|
+
| FocusTrap | `<u-focus-trap>` | Tab cycle trapping |
|
|
93
|
+
| Form | `<u-form>` | Form validation wrapper |
|
|
94
|
+
| Grid | `<u-grid>` | CSS Grid layout |
|
|
95
|
+
| Hoverable | `<u-hoverable>` | Hover state behavior |
|
|
96
|
+
| Input | `<u-input>` | Text input |
|
|
97
|
+
| KeyboardNavigation | `<u-keyboard-navigation>` | Arrow key navigation |
|
|
98
|
+
| Label | `<u-label>` | Form label |
|
|
99
|
+
| Link | `<u-link>` | Styled anchor |
|
|
100
|
+
| List | `<u-list>` | Keyed list renderer |
|
|
101
|
+
| LiveRegion | `<u-live-region>` | Screen reader announcements |
|
|
102
|
+
| Modal | `<u-modal>` | Dialog overlay |
|
|
103
|
+
| Overlay | `<u-overlay>` | Backdrop layer |
|
|
104
|
+
| Popover | `<u-popover>` | Hover/focus tooltip-like |
|
|
105
|
+
| Popper | `<u-popper>` | Positioning utility |
|
|
106
|
+
| Portal | `<u-portal>` | Teleport to another node |
|
|
107
|
+
| Presence | `<u-presence>` | Mount/unmount animation |
|
|
108
|
+
| Pressable | `<u-pressable>` | Press interaction behavior |
|
|
109
|
+
| RadioGroup | `<u-radio-group>` | Radio button group |
|
|
110
|
+
| RouterView | `<u-router-view>` | Router outlet |
|
|
111
|
+
| Select | `<u-select>` | Native select replacement |
|
|
112
|
+
| Slot | `<u-slot>` | Named slot content |
|
|
113
|
+
| Sortable | `<u-sortable>` | Drag-to-reorder list |
|
|
114
|
+
| Spacer | `<u-spacer>` | Flex spacing utility |
|
|
115
|
+
| Stack / HStack | `<u-stack>` / `<u-hstack>` | Flexbox layouts |
|
|
116
|
+
| Switch | `<u-switch>` | Toggle control |
|
|
117
|
+
| Table | `<u-table>` | Data table |
|
|
118
|
+
| Tabs | `<u-tabs>` | Tabbed interface |
|
|
119
|
+
| Text | `<u-text>` | Typography with size/weight/color |
|
|
120
|
+
| Textarea | `<u-textarea>` | Multi-line input |
|
|
121
|
+
| Toast | `<u-toast>` | Notification popup |
|
|
122
|
+
| TooltipRoot | `<u-tooltip-root>` | Hover tooltip |
|
|
123
|
+
| Transition | `<u-transition>` | CSS transition behavior |
|
|
124
|
+
| Tree | `<u-tree>` | Hierarchical list |
|
|
125
|
+
| VisuallyHidden | `<u-visually-hidden>` | Screen reader-only content |
|
|
126
|
+
| Icon | `<u-icon>` | 3000+ SVG icons |
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Styling
|
|
131
|
+
|
|
132
|
+
Components use **Shadow DOM**, so global CSS (Tailwind, modules, etc.) cannot style internal elements. Use **CSS custom properties** for design tokens and **`::part()` selectors** for targeting specific internal elements.
|
|
133
|
+
|
|
134
|
+
> 📖 **Full documentation:** [`docs/theming.md`](./docs/theming.md) — includes the complete token table, stacking/z-index guide, React patterns, migration notes, and the optional [Tailwind theme file](docs/theming.md#7-optional-tailwind-theme) for autocomplete-friendly `--u-*` utilities.
|
|
135
|
+
|
|
136
|
+
```css
|
|
137
|
+
/* Token override — affects all components */
|
|
138
|
+
:root { --u-color-primary: #7c3aed; }
|
|
139
|
+
|
|
140
|
+
/* Part selector — styles the internal <button> */
|
|
141
|
+
u-button::part(button) { font-weight: 700; text-transform: uppercase; }
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## React Wrappers
|
|
147
|
+
|
|
148
|
+
```tsx
|
|
149
|
+
import { Button, Modal, Tabs, Text, Badge, Card } from '@avento-space/ts-ui/react';
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Each web component has a React wrapper that forwards props and refs.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Icons
|
|
157
|
+
|
|
158
|
+
```html
|
|
159
|
+
<u-icon name="heart"></u-icon>
|
|
160
|
+
<u-icon name="settings" size="32" stroke-width="1.5"></u-icon>
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
3000+ icons available. See the icon registry for all names.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Scripts
|
|
168
|
+
|
|
169
|
+
| Command | Description |
|
|
170
|
+
|---------|-------------|
|
|
171
|
+
| `npm run build` | Build with tsup (ESM + .d.ts) |
|
|
172
|
+
| `npm test` | Run vitest |
|
|
173
|
+
| `npm run typecheck` | TypeScript check |
|
|
174
|
+
| `npm run lint` | ESLint |
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## License
|
|
179
|
+
|
|
180
|
+
MIT
|
|
@@ -1624,4 +1624,4 @@ declare class UCard extends UElement {
|
|
|
1624
1624
|
_mount(): void;
|
|
1625
1625
|
}
|
|
1626
1626
|
|
|
1627
|
-
export { type
|
|
1627
|
+
export { type TreeProps as $, type AccordionProps as A, type BadgeProps as B, type CalendarProps as C, type DataTableProps as D, type RouterViewProps as E, type FieldProps as F, type GridProps as G, type HoverableProps as H, type InputProps as I, type SelectProps as J, type KeyboardNavigationProps as K, type LabelProps as L, type ModalProps as M, type SortableProps as N, type OverlayProps as O, type PopoverProps as P, type SpacerProps as Q, type RadioGroupProps as R, type StackProps as S, type SwitchProps as T, type TableProps as U, type TabsProps as V, type TextProps as W, type TextareaProps as X, type ToastProps as Y, type TooltipRootProps as Z, type TransitionProps as _, type AnimateProps as a, UModal as a$, type VirtualListProps as a0, type VisuallyHiddenProps as a1, type AccordionItemProps as a2, type AnimatePreset as a3, type BadgeSize as a4, type BadgeVariant as a5, type BoxAs as a6, type BreadcrumbItem as a7, type CardPadding as a8, type CardVariant as a9, UCalendar as aA, UCard as aB, UCheckbox as aC, UCollection as aD, UCombobox as aE, UCommandPalette as aF, UContainer as aG, UContextMenu as aH, UDataTable as aI, UDialogRoot as aJ, UDismissableLayer as aK, UDrawer as aL, UDropdown as aM, UField as aN, UFocusManager as aO, UFocusScope as aP, UFocusTrap as aQ, UForm as aR, UGrid as aS, UHStack as aT, UHoverable as aU, UInput as aV, UKeyboardNavigation as aW, ULabel as aX, ULink as aY, UList as aZ, ULiveRegion as a_, type CollectionSelection as aa, type ComboboxOption as ab, type CommandItem as ac, type ContextMenuItem as ad, type DataTableColumn as ae, type DrawerSide as af, type DropdownItem as ag, type LiveRegionPoliteness as ah, type PopperPlacement as ai, type PresenceAnimation as aj, type RadioProps as ak, type SelectOption as al, type TableColumn as am, type TextColor as an, type TextSize as ao, type TextWeight as ap, type ToastOptions as aq, type TransitionType as ar, type TreeNodeData as as, UAccordion as at, UAccordionItem as au, UAnimate as av, UBadge as aw, UBox as ax, UBreadcrumb as ay, UButton as az, type BoxProps as b, UOverlay as b0, UPopover as b1, UPopper as b2, UPortal as b3, UPresence as b4, UPressable as b5, URadio as b6, URadioGroup as b7, URouterView as b8, USelect as b9, USortable as ba, USpacer as bb, UStack as bc, USwitch as bd, UTable as be, UTabs as bf, UText as bg, UTextarea as bh, UToast as bi, UTooltipRoot as bj, UTransition as bk, UTree as bl, UVirtualList as bm, UVisuallyHidden as bn, createControlledInput as bo, setPortalRoot as bp, type BreadcrumbProps as c, type ButtonProps as d, type CardProps as e, type CheckboxProps as f, type CollectionProps as g, type ComboboxProps as h, type CommandPaletteProps as i, type ContainerProps as j, type ContextMenuProps as k, type DialogRootProps as l, type DismissableLayerProps as m, type DrawerProps as n, type DropdownProps as o, type FocusManagerProps as p, type FocusScopeProps as q, type FocusTrapProps as r, type FormProps as s, type LinkProps as t, type ListProps as u, type LiveRegionProps as v, type PopperProps as w, type PortalProps as x, type PresenceProps as y, type PressableProps as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UButton, UInput, UBox, UList, UVirtualList, UPortal, UText, UStack, UHStack, UGrid, USlot, UPressable, UFocusScope, UDismissableLayer, UOverlay, UField, UCheckbox, USelect, ULink, USpacer, UContainer, UHoverable, UFocusTrap, UPopper, UDialogRoot, UTooltipRoot, UTextarea, URadioGroup, URadio, USwitch, ULabel, UCollection, UTree, UTable, URouterView, UBreadcrumb, UTabs, UVisuallyHidden, ULiveRegion, UFocusManager, UKeyboardNavigation, UPresence, UTransition, UAnimate, UModal, UDrawer, UPopover, UDropdown, UAccordion, UAccordionItem, UCombobox, UCalendar, UDataTable, UCommandPalette, UToast, UContextMenu, USortable, UForm, UBadge, UCard } from './chunk-
|
|
2
|
-
import { UIcon } from './chunk-
|
|
1
|
+
import { UButton, UInput, UBox, UList, UVirtualList, UPortal, UText, UStack, UHStack, UGrid, USlot, UPressable, UFocusScope, UDismissableLayer, UOverlay, UField, UCheckbox, USelect, ULink, USpacer, UContainer, UHoverable, UFocusTrap, UPopper, UDialogRoot, UTooltipRoot, UTextarea, URadioGroup, URadio, USwitch, ULabel, UCollection, UTree, UTable, URouterView, UBreadcrumb, UTabs, UVisuallyHidden, ULiveRegion, UFocusManager, UKeyboardNavigation, UPresence, UTransition, UAnimate, UModal, UDrawer, UPopover, UDropdown, UAccordion, UAccordionItem, UCombobox, UCalendar, UDataTable, UCommandPalette, UToast, UContextMenu, USortable, UForm, UBadge, UCard } from './chunk-EDV6KYRZ.js';
|
|
2
|
+
import { UIcon } from './chunk-C4GTD5ZH.js';
|
|
3
3
|
|
|
4
4
|
// src/core/define.ts
|
|
5
5
|
var DEFINED = /* @__PURE__ */ new Set();
|
|
@@ -77,5 +77,5 @@ function defineComponents(options = {}) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export { defineComponents };
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-2FE7DEDS.js.map
|
|
81
|
+
//# sourceMappingURL=chunk-2FE7DEDS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/define.ts"],"names":[],"mappings":";;;;AA0DA,IAAM,OAAA,uBAAc,GAAA,EAAY;AAMzB,SAAS,gBAAA,CAAiB,OAAA,GAAyB,EAAC,EAAS;AAClE,EAAA,MAAM,MAAA,GAAS,QAAQ,MAAA,IAAU,GA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AAAA,IAC3C,CAAC,CAAA,EAAG,MAAM,CAAA,SAAA,CAAA,EAAa,SAAS,CAAA;AAAA,IAChC,CAAC,CAAA,EAAG,MAAM,CAAA,SAAA,CAAA,EAAa,SAAS,CAAA;AAAA,IAChC,CAAC,CAAA,EAAG,MAAM,CAAA,WAAA,CAAA,EAAe,UAAU,CAAA;AAAA,IACnC,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAA,EAAoB,eAAe,CAAA;AAAA,IAC7C,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAA,EAAU,MAAM,CAAA;AAAA,IAC1B,CAAC,CAAA,EAAG,MAAM,CAAA,aAAA,CAAA,EAAiB,YAAY,CAAA;AAAA,IACvC,CAAC,CAAA,EAAG,MAAM,CAAA,SAAA,CAAA,EAAa,SAAS,CAAA;AAAA,IAChC,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK,CAAA;AAAA,IACxB,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAA,EAAU,MAAM,CAAA;AAAA,IAC1B,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK,CAAA;AAAA,IACxB,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK;AAAA,GAC1B;AAEA,EAAA,KAAA,MAAW,CAAC,IAAA,EAAM,KAAK,CAAA,IAAK,UAAA,EAAY;AACtC,IAAA,IAAI,CAAC,eAAe,GAAA,CAAI,IAAI,KAAK,CAAC,OAAA,CAAQ,GAAA,CAAI,IAAI,CAAA,EAAG;AACnD,MAAA,cAAA,CAAe,MAAA,CAAO,MAAM,KAAK,CAAA;AACjC,MAAA,OAAA,CAAQ,IAAI,IAAI,CAAA;AAAA,IAClB;AAAA,EACF;AACF","file":"chunk-GJ6NMUKU.js","sourcesContent":["import { UButton } from '../components/button.wc.js';\r\nimport { UInput } from '../components/input.wc.js';\r\nimport { UBox } from '../components/box.wc.js';\r\nimport { UList, UVirtualList } from '../components/list.wc.js';\r\nimport { UPortal } from '../components/portal.wc.js';\r\nimport { UText } from '../components/text.wc.js';\r\nimport { UStack, UHStack } from '../components/stack.wc.js';\r\nimport { UGrid } from '../components/grid.wc.js';\r\nimport { USlot } from '../components/slot.wc.js';\r\nimport { UPressable } from '../components/pressable.wc.js';\r\nimport { UFocusScope } from '../components/focus-scope.wc.js';\r\nimport { UDismissableLayer } from '../components/dismissable-layer.wc.js';\r\nimport { UOverlay } from '../components/overlay.wc.js';\r\nimport { UField } from '../components/field.wc.js';\r\nimport { UCheckbox } from '../components/checkbox.wc.js';\r\nimport { USelect } from '../components/select.wc.js';\r\nimport { ULink } from '../components/link.wc.js';\r\nimport { USpacer } from '../components/spacer.wc.js';\r\nimport { UContainer } from '../components/container.wc.js';\r\nimport { UHoverable } from '../components/hoverable.wc.js';\r\nimport { UFocusTrap } from '../components/focus-trap.wc.js';\r\nimport { UPopper } from '../components/popper.wc.js';\r\nimport { UDialogRoot } from '../components/dialog-root.wc.js';\r\nimport { UTooltipRoot } from '../components/tooltip-root.wc.js';\r\nimport { UTextarea } from '../components/textarea.wc.js';\r\nimport { URadioGroup, URadio } from '../components/radio-group.wc.js';\r\nimport { USwitch } from '../components/switch.wc.js';\r\nimport { ULabel } from '../components/label.wc.js';\r\nimport { UCollection } from '../components/collection.wc.js';\r\nimport { UTree } from '../components/tree.wc.js';\r\nimport { UTable } from '../components/table.wc.js';\r\nimport { URouterView } from '../components/router-view.wc.js';\r\nimport { UBreadcrumb } from '../components/breadcrumb.wc.js';\r\nimport { UTabs } from '../components/tabs.wc.js';\r\nimport { UVisuallyHidden } from '../components/visually-hidden.wc.js';\r\nimport { ULiveRegion } from '../components/live-region.wc.js';\r\nimport { UFocusManager } from '../components/focus-manager.wc.js';\r\nimport { UKeyboardNavigation } from '../components/keyboard-navigation.wc.js';\r\nimport { UPresence } from '../components/presence.wc.js';\r\nimport { UTransition } from '../components/transition.wc.js';\r\nimport { UAnimate } from '../components/animate.wc.js';\r\nimport { UModal } from '../components/modal.wc.js';\r\nimport { UDrawer } from '../components/drawer.wc.js';\r\nimport { UPopover } from '../components/popover.wc.js';\r\nimport { UDropdown } from '../components/dropdown.wc.js';\r\nimport { UAccordion, UAccordionItem } from '../components/accordion.wc.js';\r\nimport { UCombobox } from '../components/combobox.wc.js';\r\nimport { UCalendar } from '../components/calendar.wc.js';\r\nimport { UDataTable } from '../components/data-table.wc.js';\r\nimport { UCommandPalette } from '../components/command-palette.wc.js';\r\nimport { UToast } from '../components/toast.wc.js';\r\nimport { UContextMenu } from '../components/context-menu.wc.js';\r\nimport { USortable } from '../components/sortable.wc.js';\r\nimport { UForm } from '../components/form.wc.js';\r\nimport { UBadge } from '../components/badge.wc.js';\r\nimport { UCard } from '../components/card.wc.js';\r\nimport { UIcon } from '../icons/icon-element.js';\r\n\r\nconst DEFINED = new Set<string>();\r\n\r\nexport interface DefineOptions {\r\n prefix?: string;\r\n}\r\n\r\nexport function defineComponents(options: DefineOptions = {}): void {\r\n const prefix = options.prefix || 'u';\r\n\r\n const components: [string, CustomElementConstructor][] = [\r\n [`${prefix}-button`, UButton],\r\n [`${prefix}-input`, UInput],\r\n [`${prefix}-box`, UBox],\r\n [`${prefix}-list`, UList],\r\n [`${prefix}-virtual-list`, UVirtualList],\r\n [`${prefix}-portal`, UPortal],\r\n [`${prefix}-text`, UText],\r\n [`${prefix}-stack`, UStack],\r\n [`${prefix}-hstack`, UHStack],\r\n [`${prefix}-grid`, UGrid],\r\n [`${prefix}-slot`, USlot],\r\n [`${prefix}-pressable`, UPressable],\r\n [`${prefix}-focus-scope`, UFocusScope],\r\n [`${prefix}-dismissable-layer`, UDismissableLayer],\r\n [`${prefix}-overlay`, UOverlay],\r\n [`${prefix}-field`, UField],\r\n [`${prefix}-checkbox`, UCheckbox],\r\n [`${prefix}-select`, USelect],\r\n [`${prefix}-link`, ULink],\r\n [`${prefix}-spacer`, USpacer],\r\n [`${prefix}-container`, UContainer],\r\n [`${prefix}-hoverable`, UHoverable],\r\n [`${prefix}-focus-trap`, UFocusTrap],\r\n [`${prefix}-popper`, UPopper],\r\n [`${prefix}-dialog-root`, UDialogRoot],\r\n [`${prefix}-tooltip-root`, UTooltipRoot],\r\n [`${prefix}-textarea`, UTextarea],\r\n [`${prefix}-radio-group`, URadioGroup],\r\n [`${prefix}-radio`, URadio],\r\n [`${prefix}-switch`, USwitch],\r\n [`${prefix}-label`, ULabel],\r\n [`${prefix}-collection`, UCollection],\r\n [`${prefix}-tree`, UTree],\r\n [`${prefix}-table`, UTable],\r\n [`${prefix}-router-view`, URouterView],\r\n [`${prefix}-breadcrumb`, UBreadcrumb],\r\n [`${prefix}-tabs`, UTabs],\r\n [`${prefix}-visually-hidden`, UVisuallyHidden],\r\n [`${prefix}-live-region`, ULiveRegion],\r\n [`${prefix}-focus-manager`, UFocusManager],\r\n [`${prefix}-keyboard-navigation`, UKeyboardNavigation],\r\n [`${prefix}-presence`, UPresence],\r\n [`${prefix}-transition`, UTransition],\r\n [`${prefix}-animate`, UAnimate],\r\n [`${prefix}-modal`, UModal],\r\n [`${prefix}-drawer`, UDrawer],\r\n [`${prefix}-popover`, UPopover],\r\n [`${prefix}-dropdown`, UDropdown],\r\n [`${prefix}-accordion`, UAccordion],\r\n [`${prefix}-accordion-item`, UAccordionItem],\r\n [`${prefix}-combobox`, UCombobox],\r\n [`${prefix}-calendar`, UCalendar],\r\n [`${prefix}-data-table`, UDataTable],\r\n [`${prefix}-command-palette`, UCommandPalette],\r\n [`${prefix}-toast`, UToast],\r\n [`${prefix}-context-menu`, UContextMenu],\r\n [`${prefix}-sortable`, USortable],\r\n [`${prefix}-form`, UForm],\r\n [`${prefix}-badge`, UBadge],\r\n [`${prefix}-card`, UCard],\r\n [`${prefix}-icon`, UIcon],\r\n ];\r\n\r\n for (const [name, klass] of components) {\r\n if (!customElements.get(name) && !DEFINED.has(name)) {\r\n customElements.define(name, klass);\r\n DEFINED.add(name);\r\n }\r\n }\r\n}\r\n"]}
|
|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A;AACjC,MAAA,OAAA,CAAQ,IAAI,IAAI,CAAA;AAAA,IAClB;AAAA,EACF;AACF","file":"chunk-2FE7DEDS.js","sourcesContent":["import { UButton } from '../components/button.wc.js';\r\nimport { UInput } from '../components/input.wc.js';\r\nimport { UBox } from '../components/box.wc.js';\r\nimport { UList, UVirtualList } from '../components/list.wc.js';\r\nimport { UPortal } from '../components/portal.wc.js';\r\nimport { UText } from '../components/text.wc.js';\r\nimport { UStack, UHStack } from '../components/stack.wc.js';\r\nimport { UGrid } from '../components/grid.wc.js';\r\nimport { USlot } from '../components/slot.wc.js';\r\nimport { UPressable } from '../components/pressable.wc.js';\r\nimport { UFocusScope } from '../components/focus-scope.wc.js';\r\nimport { UDismissableLayer } from '../components/dismissable-layer.wc.js';\r\nimport { UOverlay } from '../components/overlay.wc.js';\r\nimport { UField } from '../components/field.wc.js';\r\nimport { UCheckbox } from '../components/checkbox.wc.js';\r\nimport { USelect } from '../components/select.wc.js';\r\nimport { ULink } from '../components/link.wc.js';\r\nimport { USpacer } from '../components/spacer.wc.js';\r\nimport { UContainer } from '../components/container.wc.js';\r\nimport { UHoverable } from '../components/hoverable.wc.js';\r\nimport { UFocusTrap } from '../components/focus-trap.wc.js';\r\nimport { UPopper } from '../components/popper.wc.js';\r\nimport { UDialogRoot } from '../components/dialog-root.wc.js';\r\nimport { UTooltipRoot } from '../components/tooltip-root.wc.js';\r\nimport { UTextarea } from '../components/textarea.wc.js';\r\nimport { URadioGroup, URadio } from '../components/radio-group.wc.js';\r\nimport { USwitch } from '../components/switch.wc.js';\r\nimport { ULabel } from '../components/label.wc.js';\r\nimport { UCollection } from '../components/collection.wc.js';\r\nimport { UTree } from '../components/tree.wc.js';\r\nimport { UTable } from '../components/table.wc.js';\r\nimport { URouterView } from '../components/router-view.wc.js';\r\nimport { UBreadcrumb } from '../components/breadcrumb.wc.js';\r\nimport { UTabs } from '../components/tabs.wc.js';\r\nimport { UVisuallyHidden } from '../components/visually-hidden.wc.js';\r\nimport { ULiveRegion } from '../components/live-region.wc.js';\r\nimport { UFocusManager } from '../components/focus-manager.wc.js';\r\nimport { UKeyboardNavigation } from '../components/keyboard-navigation.wc.js';\r\nimport { UPresence } from '../components/presence.wc.js';\r\nimport { UTransition } from '../components/transition.wc.js';\r\nimport { UAnimate } from '../components/animate.wc.js';\r\nimport { UModal } from '../components/modal.wc.js';\r\nimport { UDrawer } from '../components/drawer.wc.js';\r\nimport { UPopover } from '../components/popover.wc.js';\r\nimport { UDropdown } from '../components/dropdown.wc.js';\r\nimport { UAccordion, UAccordionItem } from '../components/accordion.wc.js';\r\nimport { UCombobox } from '../components/combobox.wc.js';\r\nimport { UCalendar } from '../components/calendar.wc.js';\r\nimport { UDataTable } from '../components/data-table.wc.js';\r\nimport { UCommandPalette } from '../components/command-palette.wc.js';\r\nimport { UToast } from '../components/toast.wc.js';\r\nimport { UContextMenu } from '../components/context-menu.wc.js';\r\nimport { USortable } from '../components/sortable.wc.js';\r\nimport { UForm } from '../components/form.wc.js';\r\nimport { UBadge } from '../components/badge.wc.js';\r\nimport { UCard } from '../components/card.wc.js';\r\nimport { UIcon } from '../icons/icon-element.js';\r\n\r\nconst DEFINED = new Set<string>();\r\n\r\nexport interface DefineOptions {\r\n prefix?: string;\r\n}\r\n\r\nexport function defineComponents(options: DefineOptions = {}): void {\r\n const prefix = options.prefix || 'u';\r\n\r\n const components: [string, CustomElementConstructor][] = [\r\n [`${prefix}-button`, UButton],\r\n [`${prefix}-input`, UInput],\r\n [`${prefix}-box`, UBox],\r\n [`${prefix}-list`, UList],\r\n [`${prefix}-virtual-list`, UVirtualList],\r\n [`${prefix}-portal`, UPortal],\r\n [`${prefix}-text`, UText],\r\n [`${prefix}-stack`, UStack],\r\n [`${prefix}-hstack`, UHStack],\r\n [`${prefix}-grid`, UGrid],\r\n [`${prefix}-slot`, USlot],\r\n [`${prefix}-pressable`, UPressable],\r\n [`${prefix}-focus-scope`, UFocusScope],\r\n [`${prefix}-dismissable-layer`, UDismissableLayer],\r\n [`${prefix}-overlay`, UOverlay],\r\n [`${prefix}-field`, UField],\r\n [`${prefix}-checkbox`, UCheckbox],\r\n [`${prefix}-select`, USelect],\r\n [`${prefix}-link`, ULink],\r\n [`${prefix}-spacer`, USpacer],\r\n [`${prefix}-container`, UContainer],\r\n [`${prefix}-hoverable`, UHoverable],\r\n [`${prefix}-focus-trap`, UFocusTrap],\r\n [`${prefix}-popper`, UPopper],\r\n [`${prefix}-dialog-root`, UDialogRoot],\r\n [`${prefix}-tooltip-root`, UTooltipRoot],\r\n [`${prefix}-textarea`, UTextarea],\r\n [`${prefix}-radio-group`, URadioGroup],\r\n [`${prefix}-radio`, URadio],\r\n [`${prefix}-switch`, USwitch],\r\n [`${prefix}-label`, ULabel],\r\n [`${prefix}-collection`, UCollection],\r\n [`${prefix}-tree`, UTree],\r\n [`${prefix}-table`, UTable],\r\n [`${prefix}-router-view`, URouterView],\r\n [`${prefix}-breadcrumb`, UBreadcrumb],\r\n [`${prefix}-tabs`, UTabs],\r\n [`${prefix}-visually-hidden`, UVisuallyHidden],\r\n [`${prefix}-live-region`, ULiveRegion],\r\n [`${prefix}-focus-manager`, UFocusManager],\r\n [`${prefix}-keyboard-navigation`, UKeyboardNavigation],\r\n [`${prefix}-presence`, UPresence],\r\n [`${prefix}-transition`, UTransition],\r\n [`${prefix}-animate`, UAnimate],\r\n [`${prefix}-modal`, UModal],\r\n [`${prefix}-drawer`, UDrawer],\r\n [`${prefix}-popover`, UPopover],\r\n [`${prefix}-dropdown`, UDropdown],\r\n [`${prefix}-accordion`, UAccordion],\r\n [`${prefix}-accordion-item`, UAccordionItem],\r\n [`${prefix}-combobox`, UCombobox],\r\n [`${prefix}-calendar`, UCalendar],\r\n [`${prefix}-data-table`, UDataTable],\r\n [`${prefix}-command-palette`, UCommandPalette],\r\n [`${prefix}-toast`, UToast],\r\n [`${prefix}-context-menu`, UContextMenu],\r\n [`${prefix}-sortable`, USortable],\r\n [`${prefix}-form`, UForm],\r\n [`${prefix}-badge`, UBadge],\r\n [`${prefix}-card`, UCard],\r\n [`${prefix}-icon`, UIcon],\r\n ];\r\n\r\n for (const [name, klass] of components) {\r\n if (!customElements.get(name) && !DEFINED.has(name)) {\r\n customElements.define(name, klass);\r\n DEFINED.add(name);\r\n }\r\n }\r\n}\r\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UElement, iconStyles } from './chunk-
|
|
1
|
+
import { UElement, iconStyles } from './chunk-XN2J666Y.js';
|
|
2
2
|
|
|
3
3
|
// src/icons/registry.ts
|
|
4
4
|
var iconRegistry = {
|
|
@@ -4979,5 +4979,5 @@ var UIcon = class extends UElement {
|
|
|
4979
4979
|
};
|
|
4980
4980
|
|
|
4981
4981
|
export { UIcon, iconRegistry };
|
|
4982
|
-
//# sourceMappingURL=chunk-
|
|
4983
|
-
//# sourceMappingURL=chunk-
|
|
4982
|
+
//# sourceMappingURL=chunk-C4GTD5ZH.js.map
|
|
4983
|
+
//# sourceMappingURL=chunk-C4GTD5ZH.js.map
|