@iyulab/components 0.2.1 → 0.2.3
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 +123 -113
- package/LICENSE +20 -20
- package/README.md +283 -283
- package/dist/assets/icons/arrow-down.svg.js +1 -1
- package/dist/assets/icons/arrow-repeat.svg.js +1 -1
- package/dist/assets/icons/arrow-up.svg.js +1 -1
- package/dist/assets/icons/ban.svg.js +1 -1
- package/dist/assets/icons/bell-fill.svg.js +1 -1
- package/dist/assets/icons/box-arrow-up-right.svg.js +1 -1
- package/dist/assets/icons/check-circle-fill.svg.js +1 -1
- package/dist/assets/icons/check-lg.svg.js +1 -1
- package/dist/assets/icons/chevron-down.svg.js +1 -1
- package/dist/assets/icons/chevron-left.svg.js +1 -1
- package/dist/assets/icons/chevron-right.svg.js +1 -1
- package/dist/assets/icons/chevron-up.svg.js +1 -1
- package/dist/assets/icons/copy.svg.js +1 -1
- package/dist/assets/icons/dash-lg.svg.js +1 -1
- package/dist/assets/icons/exclamation-circle-fill.svg.js +1 -1
- package/dist/assets/icons/exclamation-triangle-fill.svg.js +1 -1
- package/dist/assets/icons/eye-slash.svg.js +1 -1
- package/dist/assets/icons/eye.svg.js +1 -1
- package/dist/assets/icons/file-earmark.svg.js +1 -1
- package/dist/assets/icons/flag.svg.js +1 -1
- package/dist/assets/icons/globe.svg.js +1 -1
- package/dist/assets/icons/hand-thumbs-down-fill.svg.js +1 -1
- package/dist/assets/icons/hand-thumbs-down.svg.js +1 -1
- package/dist/assets/icons/hand-thumbs-up-fill.svg.js +1 -1
- package/dist/assets/icons/hand-thumbs-up.svg.js +1 -1
- package/dist/assets/icons/info-circle-fill.svg.js +1 -1
- package/dist/assets/icons/lightbulb-fill.svg.js +1 -1
- package/dist/assets/icons/lightbulb-off.svg.js +1 -1
- package/dist/assets/icons/lightbulb.svg.js +1 -1
- package/dist/assets/icons/mic-fill.svg.js +1 -1
- package/dist/assets/icons/mic-mute-fill.svg.js +1 -1
- package/dist/assets/icons/paperclip.svg.js +1 -1
- package/dist/assets/icons/pencil-square.svg.js +1 -1
- package/dist/assets/icons/plus-lg.svg.js +1 -1
- package/dist/assets/icons/search.svg.js +1 -1
- package/dist/assets/icons/share.svg.js +1 -1
- package/dist/assets/icons/stop-circle.svg.js +1 -1
- package/dist/assets/icons/tools.svg.js +1 -1
- package/dist/assets/icons/x-lg.svg.js +1 -1
- package/dist/assets/styles/dark.css +129 -129
- package/dist/assets/styles/dark.css.js +1 -1
- package/dist/assets/styles/light.css +129 -129
- package/dist/assets/styles/light.css.js +1 -1
- package/dist/components/icon/UIcon.component.d.ts +4 -1
- package/dist/components/input/UInput.component.d.ts +14 -0
- package/dist/components/input/UInput.component.js +29 -0
- package/dist/utilities/IconRegistry.js +1 -2
- package/package.json +60 -60
- package/dist/assets/icons/layout-sidebar.svg.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,113 +1,123 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 0.2.
|
|
4
|
-
|
|
5
|
-
###
|
|
6
|
-
- **
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- **
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- **
|
|
32
|
-
- `
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- **
|
|
37
|
-
- **
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
- **Utilities**:
|
|
42
|
-
- `
|
|
43
|
-
- `
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
- Changed
|
|
72
|
-
|
|
73
|
-
## 0.1.
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
- Added `
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
-
|
|
106
|
-
|
|
107
|
-
## 0.1.
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.3 (2026-02-09)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
- **UInput**: Added `inputmode`, `enterkeyhint`, `size`, `multiple` properties for improved mobile UX and HTML standard compliance (closes #4)
|
|
7
|
+
|
|
8
|
+
## 0.2.2 (2026-02-09)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
- **UInput**: Added `min`, `max`, `step` properties for number/date/time input types (closes #1)
|
|
12
|
+
|
|
13
|
+
## 0.2.1 (2026-02-09)
|
|
14
|
+
|
|
15
|
+
### Documentation
|
|
16
|
+
- **Events**: Added complete event API reference with all `u-*` events, detail types, and usage examples (closes #3)
|
|
17
|
+
- **CSS Custom Properties**: Added full `--u-*` variable reference with light/dark values (closes #2)
|
|
18
|
+
- **Theming**: Added theme setup, switching, and external design system integration guide
|
|
19
|
+
- **Components**: Added component list with tags and descriptions
|
|
20
|
+
|
|
21
|
+
## 0.2.0 (2026-01-16)
|
|
22
|
+
|
|
23
|
+
### Breaking Changes
|
|
24
|
+
- **Utilities**: Refactored utility class architecture to static-only pattern
|
|
25
|
+
- `IconRegistry`: Changed from singleton instance to static class (use `IconRegistry.register()` instead of `icons.register()`)
|
|
26
|
+
- `Notifier`: Changed from singleton instance to static class (use `Notifier.toast()` instead of `notifier.toast()`)
|
|
27
|
+
- `Theme`: Changed from singleton instance to static class (use `Theme.init()` instead of `theme.init()`)
|
|
28
|
+
- **IconButton**: Removed `UIconButton` component (use `UButton` with icon slot instead)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
- **UTag**: Added new Tag component for displaying labels, categories, and status
|
|
32
|
+
- Supports variants: `default`, `info`, `success`, `warning`, `danger`
|
|
33
|
+
- Removable tag functionality with smooth animation
|
|
34
|
+
- Prefix/suffix slots for custom content
|
|
35
|
+
- **UButton**: Added `variant` property with support for `default`, `borderless`, and `link` styles
|
|
36
|
+
- **UTooltip**: Added `interactive` property for keeping tooltip open when hovering over it
|
|
37
|
+
- **Icons**: Added new icon assets
|
|
38
|
+
- `arrow-repeat`, `box-arrow-up-right`, `file-earmark`, `flag`, `globe`
|
|
39
|
+
- `hand-thumbs-up`, `hand-thumbs-up-fill`, `hand-thumbs-down`, `hand-thumbs-down-fill`
|
|
40
|
+
- `share`, `stop-circle`, `tools`
|
|
41
|
+
- **Utilities**: Added new utility functions
|
|
42
|
+
- `converters.ts`: `arrayAttrConverter()` for array attribute conversion
|
|
43
|
+
- `elements.ts`: DOM helper functions (`getParentElement`, `querySelectorWithin`, `querySelectorAllWithin`)
|
|
44
|
+
|
|
45
|
+
### Improvements
|
|
46
|
+
- **FloatingElement**: Enhanced positioning and anchor management logic
|
|
47
|
+
- **UButton**: Improved click event handling for disabled and loading states
|
|
48
|
+
- **UDialog/UDrawer**: Updated to use improved modal element patterns
|
|
49
|
+
- **UMenu**: Refactored submenu handling and dropdown logic
|
|
50
|
+
- **IconRegistry**: Reorganized and improved icon loading architecture
|
|
51
|
+
- **Utilities**: Moved internal utilities to public utilities directory
|
|
52
|
+
- `internals/attribute-converters.ts` → `utilities/converters.ts`
|
|
53
|
+
- `internals/node-helpers.ts` → `utilities/elements.ts`
|
|
54
|
+
- `utilities/icons.ts` → `utilities/IconRegistry.ts`
|
|
55
|
+
|
|
56
|
+
## 0.1.11 (2026-01-06)
|
|
57
|
+
|
|
58
|
+
### Fixes
|
|
59
|
+
- Fixed d.ts generation error for `Theme` class by exporting the class
|
|
60
|
+
|
|
61
|
+
### Features
|
|
62
|
+
- **UTreeItem**: Added `loading` property with spinner indicator
|
|
63
|
+
- **UTreeItem**: Added MutationObserver for dynamic child loading support
|
|
64
|
+
- **UMenuItem**: Added `loading` property with spinner indicator
|
|
65
|
+
|
|
66
|
+
### Improvements
|
|
67
|
+
- **UDivider**: Simplified component (removed movable functionality)
|
|
68
|
+
- **USplitPanel**: Completely rewritten with native splitter implementation
|
|
69
|
+
- **UMenu/UMenuItem**: Refactored submenu handling logic
|
|
70
|
+
- **UTreeItem**: Improved children slot handling with `processChildren` method
|
|
71
|
+
- **UTreeItem**: Changed indent styling to use CSS custom property (`--indent-level`)
|
|
72
|
+
|
|
73
|
+
## 0.1.10 (2025-12-19)
|
|
74
|
+
- Fixed circular dependency issue between `UMenu` and `UMenuItem`
|
|
75
|
+
- Changed `UMenuItem` to use tagName check instead of `instanceof` for submenu detection
|
|
76
|
+
|
|
77
|
+
## 0.1.9 (2025-12-19)
|
|
78
|
+
- Added `Tree`, `TreeItem` components for hierarchical data display
|
|
79
|
+
- Updated React wrapper plugin to support new file structure
|
|
80
|
+
- Removed `CopyButton` component
|
|
81
|
+
- Changed React wrapper output directory to `react-components`
|
|
82
|
+
|
|
83
|
+
## 0.1.8 (2025-12-18)
|
|
84
|
+
- **Breaking Change**: Added `U` prefix to all component class names (e.g., `Alert` → `UAlert`)
|
|
85
|
+
- **Breaking Change**: Changed file naming convention
|
|
86
|
+
- `{Name}.ts` → `U{Name}.component.ts` (class implementation)
|
|
87
|
+
- `{Name}.styles.ts` → `U{Name}.styles.ts` (styles)
|
|
88
|
+
- `index.ts` → `U{Name}.ts` (element definition)
|
|
89
|
+
|
|
90
|
+
## 0.1.7 (2025-12-13)
|
|
91
|
+
- Added `FloatingElement` base class for popover, tooltip common logic
|
|
92
|
+
- Added `ModalElement` base class for dialog, drawer common logic
|
|
93
|
+
- Added `Drawer` component
|
|
94
|
+
- Added `Skeleton` component
|
|
95
|
+
- Improved `Menu` component with dropdown, contextmenu, submenu support
|
|
96
|
+
- Refactored `Dialog` component based on `ModalElement`
|
|
97
|
+
- Removed `ContextMenu`, `DropdownMenu` (merged into `Menu`)
|
|
98
|
+
|
|
99
|
+
## 0.1.5 (2025-12-10)
|
|
100
|
+
- Improved `Icon` component and refactored icon utilities
|
|
101
|
+
- Improved `Input` component styles and validation
|
|
102
|
+
- Improved `Tooltip`, `Divider`, `SplitPanel` components
|
|
103
|
+
- Improved `notifier` utility
|
|
104
|
+
- Removed `Panel` component
|
|
105
|
+
- Updated theme styles (light/dark)
|
|
106
|
+
|
|
107
|
+
## 0.1.4 (2025-12-05)
|
|
108
|
+
- Fixes some issues
|
|
109
|
+
|
|
110
|
+
## 0.1.3 (2025-11-17)
|
|
111
|
+
- fixed a theme `useBuiltIn` Option, now it works as expected.
|
|
112
|
+
- added `ProgressBar` component to show loading progress at the top of the page.
|
|
113
|
+
|
|
114
|
+
## 0.1.2 (2025-11-13)
|
|
115
|
+
- fixed a type issue in `theme` utility.
|
|
116
|
+
|
|
117
|
+
## 0.1.1 (2025-11-13)
|
|
118
|
+
- added `BrowserStorage` which supports `localStorage` and `cookie` with async methods for getting, setting, and removing items.
|
|
119
|
+
- changed theme `persist` option to `store` option, and fixed some issues.
|
|
120
|
+
- removed `toggle` method from theme utility.
|
|
121
|
+
|
|
122
|
+
## 0.1.0 (2025-11-12)
|
|
123
|
+
- Initial library version release
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) [year] [fullname]
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) [year] [fullname]
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|