@iyulab/components 1.0.1 → 1.0.2
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/CHANGELOG.md +161 -175
- package/dist/utilities/Dialog.js +1 -1
- package/dist/utilities/Toast.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,215 +1,201 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 1.0.
|
|
3
|
+
## [1.0.2] - 2026-04-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `Toast`: Fixed toast not being removed from DOM after hide — changed event listener from `'u-hide'` to `'hide'` to match actual event dispatched by `UAlert`
|
|
7
|
+
- `Dialog`: Fixed dialog promise never resolving after close — changed event listener from `'u-hide'` to `'hide'` to match actual event dispatched by `UOverlayElement`
|
|
8
|
+
|
|
9
|
+
## [1.0.1] - 2026-04-01
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- `@lit/react` moved from `dependencies` to optional `peerDependencies`
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- `UIcon`: Auto-apply `fill="currentColor"` only for fill-based icons; skip when `stroke="currentColor"` is present. Removed global `fill: currentColor` CSS rule
|
|
16
|
+
- `URadio` / `USelect`: `options` field is now a `@state()` so the UI re-renders when options change; `onChangeValue()` now triggers on both `value` and `options` changes
|
|
17
|
+
- `UTextarea`: Replaced `all: unset` with explicit CSS reset for better cross-browser compatibility; height recalculation moved inside `requestAnimationFrame` to stabilize auto-resize
|
|
18
|
+
- `Dialog`: Fixed `prompt()` input not capturing user text — switched to property binding (`.value`) and native `@input` event
|
|
19
|
+
|
|
20
|
+
## [1.0.0] - 2026-04-01
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
- New components: `u-avatar`, `u-badge`, `u-breadcrumb` / `u-breadcrumb-item`, `u-chip`, `u-field`, `u-icon-button`, `u-option`, `u-panel`, `u-radio`, `u-rating`, `u-select`, `u-slider`, `u-switch`, `u-tab` / `u-tab-panel`
|
|
24
|
+
- `Toast` utility: semantic API replacing `Notifier.toast()` — `Toast.show()`, `Toast.success()`, `Toast.error()`, etc.
|
|
25
|
+
- `Dialog` utility: imperative API — `Dialog.confirm()`, `Dialog.prompt()`, etc.
|
|
26
|
+
- `OverlayManager`: built-in overlay stack management and ESC key handling
|
|
27
|
+
- `icons.ts`: full rewrite of `IconRegistry` with bundled SVG support via Vite `import.meta.glob` and built-in CDN resolvers for Tabler, Heroicons, Lucide, and Bootstrap Icons
|
|
28
|
+
- Vite plugins: `vite-plugin-glob-resolve` and `vite-plugin-react-wrapper` for automatic React wrapper generation
|
|
29
|
+
- `skills/iyulab-components/` agent skill with 39 component references, 9 utility references, and 5 extension references
|
|
30
|
+
- `docs/` developer documentation (architecture, guidelines, events, theming, form-controls, icons)
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- **Breaking:** Removed `U`-prefixed event types (`UChangeEvent`, `UInputEvent`, `UShowEvent`, `UHideEvent`, `USelectEvent`, `UResizeEvent`) — replaced with `ShowEvent`, `HideEvent`, `PickEvent`, `CheckEvent`, `ExpandEvent`, `CollapseEvent`, `NavigateEvent`, `RemoveEvent`, `ShiftEvent`
|
|
34
|
+
- **Breaking:** `Notifier` replaced by `Toast`; `IconRegistry` rewritten as `icons.ts` — existing API is not compatible, migration required
|
|
35
|
+
- **Breaking:** `UModalElement` removed — merged into `UOverlayElement`; extend `UOverlayElement` instead
|
|
36
|
+
- Heavy components extract render logic into a separate `U<Name>.component.ts` file
|
|
37
|
+
- `converters.ts` extended with additional type conversion utilities
|
|
38
|
+
- `README.md` overhauled with Agent Skills installation guide
|
|
4
39
|
|
|
5
|
-
|
|
40
|
+
## [0.4.0] - 2026-03-02
|
|
6
41
|
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
42
|
+
### Added
|
|
43
|
+
- `UJsonElement`: new base class that reads JSON from a `<script type="application/json">` tag in light DOM and maps properties to the component automatically; includes built-in error UI (`error()` method) and `buildHTML()` static helper
|
|
44
|
+
- `sanitizers.ts` utility: `stripZeroWidth()`, `escapeHtmlText()`, `escapeHtmlAttr()`, `escapeHtmlHref()` for HTML/XSS protection
|
|
45
|
+
- New icon assets: `arrow-down-up`, `code-slash`, `download`, `sort-alpha-down`, `sort-alpha-up`
|
|
11
46
|
|
|
12
|
-
###
|
|
47
|
+
### Changed
|
|
48
|
+
- **Breaking:** `BaseElement`, `FloatingElement`, `ModalElement` renamed to `UElement`, `UFloatingElement`, `UModalElement` — all components updated accordingly
|
|
13
49
|
|
|
14
|
-
|
|
50
|
+
### Fixed
|
|
51
|
+
- `UCarousel`: Fixed tap vs drag detection — pointer target is tracked to dispatch a `click` event on tap when drag distance is below threshold
|
|
15
52
|
|
|
16
|
-
|
|
53
|
+
## [0.3.0] - 2026-02-26
|
|
17
54
|
|
|
18
|
-
|
|
55
|
+
### Added
|
|
56
|
+
- `UCard`: card layout component with `header`, `footer`, `media` slots
|
|
57
|
+
- `UCarousel`: carousel component with autoplay, drag, navigation, and multi-slide view
|
|
19
58
|
|
|
20
|
-
###
|
|
59
|
+
### Changed
|
|
60
|
+
- Moved `@lit/react` and `react` to optional `peerDependencies`
|
|
61
|
+
- Updated devDependencies
|
|
21
62
|
|
|
22
|
-
|
|
23
|
-
- `ShowEvent` / `HideEvent` / `PickEvent` / `CheckEvent` / `ExpandEvent` / `CollapseEvent` / `NavigateEvent` / `RemoveEvent` / `ShiftEvent`
|
|
24
|
-
- **Utility API overhaul**: `Notifier` replaced by `Toast`; `IconRegistry` rewritten as `icons.ts` — existing API is not compatible, migration required
|
|
25
|
-
- **`UModalElement` removed**: Merged into `UOverlayElement`. Components that extended `UModalElement` must now extend `UOverlayElement`
|
|
63
|
+
## [0.2.3] - 2026-02-09
|
|
26
64
|
|
|
27
|
-
###
|
|
65
|
+
### Added
|
|
66
|
+
- `UInput`: `inputmode`, `enterkeyhint`, `size`, `multiple` properties for improved mobile UX and HTML standard compliance (#4)
|
|
28
67
|
|
|
29
|
-
-
|
|
30
|
-
- `u-badge` — numeric or status badge
|
|
31
|
-
- `u-breadcrumb` / `u-breadcrumb-item` — navigation breadcrumb trail
|
|
32
|
-
- `u-chip` — selectable chip with `pick` and `remove` events
|
|
33
|
-
- `u-field` — form field layout wrapper (label, description, validation message)
|
|
34
|
-
- `u-icon-button` — icon-only button
|
|
35
|
-
- `u-option` — option item for `u-select` and combobox inputs
|
|
36
|
-
- `u-panel` — general-purpose container panel
|
|
37
|
-
- `u-radio` — single-choice radio button
|
|
38
|
-
- `u-rating` — star/score input
|
|
39
|
-
- `u-select` — dropdown select control
|
|
40
|
-
- `u-slider` — range slider
|
|
41
|
-
- `u-switch` — toggle switch
|
|
42
|
-
- `u-tab` / `u-tab-panel` — tab navigation
|
|
68
|
+
## [0.2.2] - 2026-02-09
|
|
43
69
|
|
|
44
|
-
###
|
|
70
|
+
### Added
|
|
71
|
+
- `UInput`: `min`, `max`, `step` properties for number/date/time input types (#1)
|
|
45
72
|
|
|
46
|
-
|
|
47
|
-
- **`Toast` utility**: Replaces `Notifier.toast()` with a semantic API — `Toast.show()`, `Toast.success()`, `Toast.error()`, etc.
|
|
48
|
-
- **`Dialog` utility**: Imperative dialog API added — `Dialog.confirm()`, `Dialog.prompt()`, etc.
|
|
49
|
-
- **`OverlayManager`**: Built-in overlay stack management and ESC key handling
|
|
50
|
-
- **`icons.ts`**: Full rewrite of `IconRegistry` with bundled SVG support via Vite `import.meta.glob` and built-in CDN resolvers for Tabler, Heroicons, Lucide, and Bootstrap Icons
|
|
51
|
-
- **`converters.ts`**: Extended type conversion utilities
|
|
52
|
-
- **Vite plugins**: Added `vite-plugin-glob-resolve` and `vite-plugin-react-wrapper` for automatic React wrapper generation
|
|
73
|
+
## [0.2.1] - 2026-02-09
|
|
53
74
|
|
|
54
|
-
###
|
|
75
|
+
### Added
|
|
76
|
+
- Events documentation: complete event API reference with all `u-*` events, detail types, and usage examples (#3)
|
|
77
|
+
- CSS Custom Properties reference: full `--u-*` variable list with light/dark values (#2)
|
|
78
|
+
- Theming guide: setup, switching, and external design system integration
|
|
79
|
+
- Component list with tags and descriptions
|
|
55
80
|
|
|
56
|
-
-
|
|
57
|
-
- `docs/` — developer documentation added (architecture, guidelines, events, theming, form-controls, icons)
|
|
58
|
-
- `README.md` overhauled with Agent Skills installation guide
|
|
81
|
+
## [0.2.0] - 2026-01-16
|
|
59
82
|
|
|
60
|
-
|
|
83
|
+
### Added
|
|
84
|
+
- `UTag`: tag component for labels, categories, and status; variants: `default`, `info`, `success`, `warning`, `danger`; removable with animation; prefix/suffix slots
|
|
85
|
+
- `UButton`: `variant` property with `default`, `borderless`, and `link` styles
|
|
86
|
+
- `UTooltip`: `interactive` property for keeping tooltip open on hover
|
|
87
|
+
- New icon assets: `arrow-repeat`, `box-arrow-up-right`, `file-earmark`, `flag`, `globe`, `hand-thumbs-up`, `hand-thumbs-up-fill`, `hand-thumbs-down`, `hand-thumbs-down-fill`, `share`, `stop-circle`, `tools`
|
|
88
|
+
- `converters.ts`: `arrayAttrConverter()` for array attribute conversion
|
|
89
|
+
- `elements.ts`: DOM helpers — `getParentElement`, `querySelectorWithin`, `querySelectorAllWithin`
|
|
61
90
|
|
|
62
|
-
|
|
91
|
+
### Changed
|
|
92
|
+
- **Breaking:** `IconRegistry` changed from singleton instance to static class (use `IconRegistry.register()` instead of `icons.register()`)
|
|
93
|
+
- **Breaking:** `Notifier` changed from singleton instance to static class (use `Notifier.toast()` instead of `notifier.toast()`)
|
|
94
|
+
- **Breaking:** `Theme` changed from singleton instance to static class (use `Theme.init()` instead of `theme.init()`)
|
|
95
|
+
- **Breaking:** `UIconButton` removed — use `UButton` with icon slot instead
|
|
96
|
+
- `FloatingElement`: enhanced positioning and anchor management logic
|
|
97
|
+
- `UButton`: improved click event handling for disabled and loading states
|
|
98
|
+
- `UDialog` / `UDrawer`: updated to use improved modal element patterns
|
|
99
|
+
- `UMenu`: refactored submenu handling and dropdown logic
|
|
100
|
+
- `IconRegistry`: reorganized and improved icon loading architecture
|
|
101
|
+
- Internal utilities moved to public: `internals/attribute-converters.ts` → `utilities/converters.ts`, `internals/node-helpers.ts` → `utilities/elements.ts`, `utilities/icons.ts` → `utilities/IconRegistry.ts`
|
|
63
102
|
|
|
64
|
-
|
|
65
|
-
- **BaseElement / FloatingElement / ModalElement**: Renamed to `UElement`, `UFloatingElement`, `UModalElement` to align with the `U` prefix naming convention
|
|
66
|
-
- All components updated to use the renamed base classes
|
|
103
|
+
## [0.1.11] - 2026-01-06
|
|
67
104
|
|
|
68
|
-
###
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
- Provides static `buildHTML()` helper to generate safe component HTML from JSON data
|
|
72
|
-
- **Icons**: Added new icon assets
|
|
73
|
-
- `arrow-down-up`, `code-slash`, `download`, `sort-alpha-down`, `sort-alpha-up`
|
|
105
|
+
### Added
|
|
106
|
+
- `UTreeItem`: `loading` property with spinner indicator and `MutationObserver` for dynamic child loading
|
|
107
|
+
- `UMenuItem`: `loading` property with spinner indicator
|
|
74
108
|
|
|
75
|
-
###
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
- `escapeHtmlHref()`: Sanitizes and validates `href`/`src` values (blocks `javascript:`, `data:`, `vbscript:` protocols)
|
|
109
|
+
### Changed
|
|
110
|
+
- `UDivider`: simplified component (removed movable functionality)
|
|
111
|
+
- `USplitPanel`: completely rewritten with native splitter implementation
|
|
112
|
+
- `UMenu` / `UMenuItem`: refactored submenu handling logic
|
|
113
|
+
- `UTreeItem`: improved children slot handling with `processChildren` method; indent styling now uses CSS custom property (`--indent-level`)
|
|
81
114
|
|
|
82
|
-
###
|
|
83
|
-
-
|
|
115
|
+
### Fixed
|
|
116
|
+
- Fixed d.ts generation error for `Theme` class by exporting the class
|
|
84
117
|
|
|
85
|
-
## 0.
|
|
118
|
+
## [0.1.10] - 2025-12-19
|
|
86
119
|
|
|
87
|
-
###
|
|
88
|
-
-
|
|
89
|
-
-
|
|
120
|
+
### Fixed
|
|
121
|
+
- Fixed circular dependency issue between `UMenu` and `UMenuItem`
|
|
122
|
+
- `UMenuItem` now uses tag name check instead of `instanceof` for submenu detection
|
|
90
123
|
|
|
91
|
-
|
|
92
|
-
- Moved `@lit/react`, `react` to optional peerDependencies
|
|
93
|
-
- Updated devDependencies
|
|
124
|
+
## [0.1.9] - 2025-12-19
|
|
94
125
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- **UInput**: Added `inputmode`, `enterkeyhint`, `size`, `multiple` properties for improved mobile UX and HTML standard compliance (closes #4)
|
|
99
|
-
|
|
100
|
-
## 0.2.2 (2026-02-09)
|
|
101
|
-
|
|
102
|
-
### Features
|
|
103
|
-
- **UInput**: Added `min`, `max`, `step` properties for number/date/time input types (closes #1)
|
|
104
|
-
|
|
105
|
-
## 0.2.1 (2026-02-09)
|
|
106
|
-
|
|
107
|
-
### Documentation
|
|
108
|
-
- **Events**: Added complete event API reference with all `u-*` events, detail types, and usage examples (closes #3)
|
|
109
|
-
- **CSS Custom Properties**: Added full `--u-*` variable reference with light/dark values (closes #2)
|
|
110
|
-
- **Theming**: Added theme setup, switching, and external design system integration guide
|
|
111
|
-
- **Components**: Added component list with tags and descriptions
|
|
112
|
-
|
|
113
|
-
## 0.2.0 (2026-01-16)
|
|
114
|
-
|
|
115
|
-
### Breaking Changes
|
|
116
|
-
- **Utilities**: Refactored utility class architecture to static-only pattern
|
|
117
|
-
- `IconRegistry`: Changed from singleton instance to static class (use `IconRegistry.register()` instead of `icons.register()`)
|
|
118
|
-
- `Notifier`: Changed from singleton instance to static class (use `Notifier.toast()` instead of `notifier.toast()`)
|
|
119
|
-
- `Theme`: Changed from singleton instance to static class (use `Theme.init()` instead of `theme.init()`)
|
|
120
|
-
- **IconButton**: Removed `UIconButton` component (use `UButton` with icon slot instead)
|
|
121
|
-
|
|
122
|
-
### Features
|
|
123
|
-
- **UTag**: Added new Tag component for displaying labels, categories, and status
|
|
124
|
-
- Supports variants: `default`, `info`, `success`, `warning`, `danger`
|
|
125
|
-
- Removable tag functionality with smooth animation
|
|
126
|
-
- Prefix/suffix slots for custom content
|
|
127
|
-
- **UButton**: Added `variant` property with support for `default`, `borderless`, and `link` styles
|
|
128
|
-
- **UTooltip**: Added `interactive` property for keeping tooltip open when hovering over it
|
|
129
|
-
- **Icons**: Added new icon assets
|
|
130
|
-
- `arrow-repeat`, `box-arrow-up-right`, `file-earmark`, `flag`, `globe`
|
|
131
|
-
- `hand-thumbs-up`, `hand-thumbs-up-fill`, `hand-thumbs-down`, `hand-thumbs-down-fill`
|
|
132
|
-
- `share`, `stop-circle`, `tools`
|
|
133
|
-
- **Utilities**: Added new utility functions
|
|
134
|
-
- `converters.ts`: `arrayAttrConverter()` for array attribute conversion
|
|
135
|
-
- `elements.ts`: DOM helper functions (`getParentElement`, `querySelectorWithin`, `querySelectorAllWithin`)
|
|
136
|
-
|
|
137
|
-
### Improvements
|
|
138
|
-
- **FloatingElement**: Enhanced positioning and anchor management logic
|
|
139
|
-
- **UButton**: Improved click event handling for disabled and loading states
|
|
140
|
-
- **UDialog/UDrawer**: Updated to use improved modal element patterns
|
|
141
|
-
- **UMenu**: Refactored submenu handling and dropdown logic
|
|
142
|
-
- **IconRegistry**: Reorganized and improved icon loading architecture
|
|
143
|
-
- **Utilities**: Moved internal utilities to public utilities directory
|
|
144
|
-
- `internals/attribute-converters.ts` → `utilities/converters.ts`
|
|
145
|
-
- `internals/node-helpers.ts` → `utilities/elements.ts`
|
|
146
|
-
- `utilities/icons.ts` → `utilities/IconRegistry.ts`
|
|
147
|
-
|
|
148
|
-
## 0.1.11 (2026-01-06)
|
|
149
|
-
|
|
150
|
-
### Fixes
|
|
151
|
-
- Fixed d.ts generation error for `Theme` class by exporting the class
|
|
126
|
+
### Added
|
|
127
|
+
- `Tree` and `TreeItem` components for hierarchical data display
|
|
128
|
+
- Updated React wrapper plugin to support new file structure
|
|
152
129
|
|
|
153
|
-
###
|
|
154
|
-
-
|
|
155
|
-
- **UTreeItem**: Added MutationObserver for dynamic child loading support
|
|
156
|
-
- **UMenuItem**: Added `loading` property with spinner indicator
|
|
130
|
+
### Removed
|
|
131
|
+
- Removed `CopyButton` component
|
|
157
132
|
|
|
158
|
-
###
|
|
159
|
-
-
|
|
160
|
-
- **USplitPanel**: Completely rewritten with native splitter implementation
|
|
161
|
-
- **UMenu/UMenuItem**: Refactored submenu handling logic
|
|
162
|
-
- **UTreeItem**: Improved children slot handling with `processChildren` method
|
|
163
|
-
- **UTreeItem**: Changed indent styling to use CSS custom property (`--indent-level`)
|
|
133
|
+
### Changed
|
|
134
|
+
- React wrapper output directory changed to `react-components`
|
|
164
135
|
|
|
165
|
-
## 0.1.
|
|
166
|
-
- Fixed circular dependency issue between `UMenu` and `UMenuItem`
|
|
167
|
-
- Changed `UMenuItem` to use tagName check instead of `instanceof` for submenu detection
|
|
136
|
+
## [0.1.8] - 2025-12-18
|
|
168
137
|
|
|
169
|
-
|
|
170
|
-
- Added `
|
|
171
|
-
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
## 0.1.5 (2025-12-10)
|
|
138
|
+
### Changed
|
|
139
|
+
- **Breaking:** Added `U` prefix to all component class names (e.g., `Alert` → `UAlert`)
|
|
140
|
+
- **Breaking:** File naming convention changed: `{Name}.ts` → `U{Name}.component.ts`, `{Name}.styles.ts` → `U{Name}.styles.ts`, `index.ts` → `U{Name}.ts`
|
|
141
|
+
|
|
142
|
+
## [0.1.7] - 2025-12-12
|
|
143
|
+
|
|
144
|
+
### Added
|
|
145
|
+
- `FloatingElement` base class for shared popover and tooltip logic
|
|
146
|
+
- `ModalElement` base class for shared dialog and drawer logic
|
|
147
|
+
- `Drawer` component
|
|
148
|
+
- `Skeleton` component
|
|
149
|
+
|
|
150
|
+
### Changed
|
|
151
|
+
- `Menu`: improved with dropdown, context menu, and submenu support
|
|
152
|
+
- `Dialog`: refactored to extend `ModalElement`
|
|
153
|
+
|
|
154
|
+
### Removed
|
|
155
|
+
- Removed `ContextMenu` and `DropdownMenu` — functionality merged into `Menu`
|
|
156
|
+
|
|
157
|
+
## [0.1.5] - 2025-12-10
|
|
158
|
+
|
|
159
|
+
### Changed
|
|
192
160
|
- Improved `Icon` component and refactored icon utilities
|
|
193
161
|
- Improved `Input` component styles and validation
|
|
194
162
|
- Improved `Tooltip`, `Divider`, `SplitPanel` components
|
|
195
163
|
- Improved `notifier` utility
|
|
196
|
-
- Removed `Panel` component
|
|
197
164
|
- Updated theme styles (light/dark)
|
|
198
165
|
|
|
199
|
-
|
|
200
|
-
-
|
|
166
|
+
### Removed
|
|
167
|
+
- Removed `Panel` component
|
|
168
|
+
|
|
169
|
+
## [0.1.4] - 2025-12-05
|
|
170
|
+
|
|
171
|
+
### Fixed
|
|
172
|
+
- Fixed miscellaneous issues
|
|
173
|
+
|
|
174
|
+
## [0.1.3] - 2025-11-17
|
|
175
|
+
|
|
176
|
+
### Added
|
|
177
|
+
- `ProgressBar` component for displaying top-of-page loading progress
|
|
178
|
+
|
|
179
|
+
### Fixed
|
|
180
|
+
- Fixed theme `useBuiltIn` option not working as expected
|
|
181
|
+
|
|
182
|
+
## [0.1.2] - 2025-11-13
|
|
183
|
+
|
|
184
|
+
### Fixed
|
|
185
|
+
- Fixed a type issue in `theme` utility
|
|
186
|
+
|
|
187
|
+
## [0.1.1] - 2025-11-13
|
|
188
|
+
|
|
189
|
+
### Added
|
|
190
|
+
- `BrowserStorage` utility supporting `localStorage` and `cookie` with async get/set/remove methods
|
|
201
191
|
|
|
202
|
-
|
|
203
|
-
-
|
|
204
|
-
- added `ProgressBar` component to show loading progress at the top of the page.
|
|
192
|
+
### Changed
|
|
193
|
+
- Theme `persist` option renamed to `store`
|
|
205
194
|
|
|
206
|
-
|
|
207
|
-
-
|
|
195
|
+
### Removed
|
|
196
|
+
- Removed `toggle` method from theme utility
|
|
208
197
|
|
|
209
|
-
## 0.1.
|
|
210
|
-
- added `BrowserStorage` which supports `localStorage` and `cookie` with async methods for getting, setting, and removing items.
|
|
211
|
-
- changed theme `persist` option to `store` option, and fixed some issues.
|
|
212
|
-
- removed `toggle` method from theme utility.
|
|
198
|
+
## [0.1.0] - 2025-11-12
|
|
213
199
|
|
|
214
|
-
|
|
215
|
-
- Initial
|
|
200
|
+
### Added
|
|
201
|
+
- Initial release
|
package/dist/utilities/Dialog.js
CHANGED
|
@@ -108,7 +108,7 @@ var Dialog = class {
|
|
|
108
108
|
(options.target || document.body).appendChild(dialog);
|
|
109
109
|
await dialog.updateComplete;
|
|
110
110
|
dialog.show();
|
|
111
|
-
dialog.addEventListener("
|
|
111
|
+
dialog.addEventListener("hide", (e) => {
|
|
112
112
|
if (e.target !== dialog) return;
|
|
113
113
|
setTimeout(() => dialog.remove(), 300);
|
|
114
114
|
resolve(closeValue);
|
package/dist/utilities/Toast.js
CHANGED
|
@@ -52,7 +52,7 @@ var Toast = class {
|
|
|
52
52
|
container.appendChild(el);
|
|
53
53
|
await el.updateComplete;
|
|
54
54
|
el.show();
|
|
55
|
-
el.addEventListener("
|
|
55
|
+
el.addEventListener("hide", async () => {
|
|
56
56
|
await new Promise((resolve) => setTimeout(resolve, 200));
|
|
57
57
|
el.remove();
|
|
58
58
|
this.elements.delete(el);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyulab/components",
|
|
3
3
|
"description": "web-components library based on lit-element made by iyulab",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iyulab",
|
|
7
7
|
"components",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist",
|
|
20
|
+
"skills",
|
|
20
21
|
"plugins/**/*.js",
|
|
21
22
|
"plugins/**/*.d.ts",
|
|
22
|
-
"
|
|
23
|
-
"LICENSE",
|
|
23
|
+
"package.json",
|
|
24
24
|
"README.md",
|
|
25
25
|
"CHANGELOG.md",
|
|
26
|
-
"
|
|
26
|
+
"LICENSE"
|
|
27
27
|
],
|
|
28
28
|
"type": "module",
|
|
29
29
|
"types": "./dist/index.d.ts",
|