@iyulab/components 0.2.2 → 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.
Files changed (50) hide show
  1. package/CHANGELOG.md +123 -118
  2. package/LICENSE +20 -20
  3. package/README.md +283 -283
  4. package/dist/assets/icons/arrow-down.svg.js +1 -1
  5. package/dist/assets/icons/arrow-repeat.svg.js +1 -1
  6. package/dist/assets/icons/arrow-up.svg.js +1 -1
  7. package/dist/assets/icons/ban.svg.js +1 -1
  8. package/dist/assets/icons/bell-fill.svg.js +1 -1
  9. package/dist/assets/icons/box-arrow-up-right.svg.js +1 -1
  10. package/dist/assets/icons/check-circle-fill.svg.js +1 -1
  11. package/dist/assets/icons/check-lg.svg.js +1 -1
  12. package/dist/assets/icons/chevron-down.svg.js +1 -1
  13. package/dist/assets/icons/chevron-left.svg.js +1 -1
  14. package/dist/assets/icons/chevron-right.svg.js +1 -1
  15. package/dist/assets/icons/chevron-up.svg.js +1 -1
  16. package/dist/assets/icons/copy.svg.js +1 -1
  17. package/dist/assets/icons/dash-lg.svg.js +1 -1
  18. package/dist/assets/icons/exclamation-circle-fill.svg.js +1 -1
  19. package/dist/assets/icons/exclamation-triangle-fill.svg.js +1 -1
  20. package/dist/assets/icons/eye-slash.svg.js +1 -1
  21. package/dist/assets/icons/eye.svg.js +1 -1
  22. package/dist/assets/icons/file-earmark.svg.js +1 -1
  23. package/dist/assets/icons/flag.svg.js +1 -1
  24. package/dist/assets/icons/globe.svg.js +1 -1
  25. package/dist/assets/icons/hand-thumbs-down-fill.svg.js +1 -1
  26. package/dist/assets/icons/hand-thumbs-down.svg.js +1 -1
  27. package/dist/assets/icons/hand-thumbs-up-fill.svg.js +1 -1
  28. package/dist/assets/icons/hand-thumbs-up.svg.js +1 -1
  29. package/dist/assets/icons/info-circle-fill.svg.js +1 -1
  30. package/dist/assets/icons/lightbulb-fill.svg.js +1 -1
  31. package/dist/assets/icons/lightbulb-off.svg.js +1 -1
  32. package/dist/assets/icons/lightbulb.svg.js +1 -1
  33. package/dist/assets/icons/mic-fill.svg.js +1 -1
  34. package/dist/assets/icons/mic-mute-fill.svg.js +1 -1
  35. package/dist/assets/icons/paperclip.svg.js +1 -1
  36. package/dist/assets/icons/pencil-square.svg.js +1 -1
  37. package/dist/assets/icons/plus-lg.svg.js +1 -1
  38. package/dist/assets/icons/search.svg.js +1 -1
  39. package/dist/assets/icons/share.svg.js +1 -1
  40. package/dist/assets/icons/stop-circle.svg.js +1 -1
  41. package/dist/assets/icons/tools.svg.js +1 -1
  42. package/dist/assets/icons/x-lg.svg.js +1 -1
  43. package/dist/assets/styles/dark.css +129 -129
  44. package/dist/assets/styles/dark.css.js +1 -1
  45. package/dist/assets/styles/light.css +129 -129
  46. package/dist/assets/styles/light.css.js +1 -1
  47. package/dist/components/icon/UIcon.component.d.ts +4 -1
  48. package/dist/components/input/UInput.component.d.ts +8 -0
  49. package/dist/components/input/UInput.component.js +17 -0
  50. package/package.json +60 -60
package/CHANGELOG.md CHANGED
@@ -1,118 +1,123 @@
1
- # Changelog
2
-
3
- ## 0.2.2 (2026-02-09)
4
-
5
- ### Features
6
- - **UInput**: Added `min`, `max`, `step` properties for number/date/time input types (closes #1)
7
-
8
- ## 0.2.1 (2026-02-09)
9
-
10
- ### Documentation
11
- - **Events**: Added complete event API reference with all `u-*` events, detail types, and usage examples (closes #3)
12
- - **CSS Custom Properties**: Added full `--u-*` variable reference with light/dark values (closes #2)
13
- - **Theming**: Added theme setup, switching, and external design system integration guide
14
- - **Components**: Added component list with tags and descriptions
15
-
16
- ## 0.2.0 (2026-01-16)
17
-
18
- ### Breaking Changes
19
- - **Utilities**: Refactored utility class architecture to static-only pattern
20
- - `IconRegistry`: Changed from singleton instance to static class (use `IconRegistry.register()` instead of `icons.register()`)
21
- - `Notifier`: Changed from singleton instance to static class (use `Notifier.toast()` instead of `notifier.toast()`)
22
- - `Theme`: Changed from singleton instance to static class (use `Theme.init()` instead of `theme.init()`)
23
- - **IconButton**: Removed `UIconButton` component (use `UButton` with icon slot instead)
24
-
25
- ### Features
26
- - **UTag**: Added new Tag component for displaying labels, categories, and status
27
- - Supports variants: `default`, `info`, `success`, `warning`, `danger`
28
- - Removable tag functionality with smooth animation
29
- - Prefix/suffix slots for custom content
30
- - **UButton**: Added `variant` property with support for `default`, `borderless`, and `link` styles
31
- - **UTooltip**: Added `interactive` property for keeping tooltip open when hovering over it
32
- - **Icons**: Added new icon assets
33
- - `arrow-repeat`, `box-arrow-up-right`, `file-earmark`, `flag`, `globe`
34
- - `hand-thumbs-up`, `hand-thumbs-up-fill`, `hand-thumbs-down`, `hand-thumbs-down-fill`
35
- - `share`, `stop-circle`, `tools`
36
- - **Utilities**: Added new utility functions
37
- - `converters.ts`: `arrayAttrConverter()` for array attribute conversion
38
- - `elements.ts`: DOM helper functions (`getParentElement`, `querySelectorWithin`, `querySelectorAllWithin`)
39
-
40
- ### Improvements
41
- - **FloatingElement**: Enhanced positioning and anchor management logic
42
- - **UButton**: Improved click event handling for disabled and loading states
43
- - **UDialog/UDrawer**: Updated to use improved modal element patterns
44
- - **UMenu**: Refactored submenu handling and dropdown logic
45
- - **IconRegistry**: Reorganized and improved icon loading architecture
46
- - **Utilities**: Moved internal utilities to public utilities directory
47
- - `internals/attribute-converters.ts` `utilities/converters.ts`
48
- - `internals/node-helpers.ts` `utilities/elements.ts`
49
- - `utilities/icons.ts` `utilities/IconRegistry.ts`
50
-
51
- ## 0.1.11 (2026-01-06)
52
-
53
- ### Fixes
54
- - Fixed d.ts generation error for `Theme` class by exporting the class
55
-
56
- ### Features
57
- - **UTreeItem**: Added `loading` property with spinner indicator
58
- - **UTreeItem**: Added MutationObserver for dynamic child loading support
59
- - **UMenuItem**: Added `loading` property with spinner indicator
60
-
61
- ### Improvements
62
- - **UDivider**: Simplified component (removed movable functionality)
63
- - **USplitPanel**: Completely rewritten with native splitter implementation
64
- - **UMenu/UMenuItem**: Refactored submenu handling logic
65
- - **UTreeItem**: Improved children slot handling with `processChildren` method
66
- - **UTreeItem**: Changed indent styling to use CSS custom property (`--indent-level`)
67
-
68
- ## 0.1.10 (2025-12-19)
69
- - Fixed circular dependency issue between `UMenu` and `UMenuItem`
70
- - Changed `UMenuItem` to use tagName check instead of `instanceof` for submenu detection
71
-
72
- ## 0.1.9 (2025-12-19)
73
- - Added `Tree`, `TreeItem` components for hierarchical data display
74
- - Updated React wrapper plugin to support new file structure
75
- - Removed `CopyButton` component
76
- - Changed React wrapper output directory to `react-components`
77
-
78
- ## 0.1.8 (2025-12-18)
79
- - **Breaking Change**: Added `U` prefix to all component class names (e.g., `Alert` → `UAlert`)
80
- - **Breaking Change**: Changed file naming convention
81
- - `{Name}.ts` `U{Name}.component.ts` (class implementation)
82
- - `{Name}.styles.ts` → `U{Name}.styles.ts` (styles)
83
- - `index.ts` → `U{Name}.ts` (element definition)
84
-
85
- ## 0.1.7 (2025-12-13)
86
- - Added `FloatingElement` base class for popover, tooltip common logic
87
- - Added `ModalElement` base class for dialog, drawer common logic
88
- - Added `Drawer` component
89
- - Added `Skeleton` component
90
- - Improved `Menu` component with dropdown, contextmenu, submenu support
91
- - Refactored `Dialog` component based on `ModalElement`
92
- - Removed `ContextMenu`, `DropdownMenu` (merged into `Menu`)
93
-
94
- ## 0.1.5 (2025-12-10)
95
- - Improved `Icon` component and refactored icon utilities
96
- - Improved `Input` component styles and validation
97
- - Improved `Tooltip`, `Divider`, `SplitPanel` components
98
- - Improved `notifier` utility
99
- - Removed `Panel` component
100
- - Updated theme styles (light/dark)
101
-
102
- ## 0.1.4 (2025-12-05)
103
- - Fixes some issues
104
-
105
- ## 0.1.3 (2025-11-17)
106
- - fixed a theme `useBuiltIn` Option, now it works as expected.
107
- - added `ProgressBar` component to show loading progress at the top of the page.
108
-
109
- ## 0.1.2 (2025-11-13)
110
- - fixed a type issue in `theme` utility.
111
-
112
- ## 0.1.1 (2025-11-13)
113
- - added `BrowserStorage` which supports `localStorage` and `cookie` with async methods for getting, setting, and removing items.
114
- - changed theme `persist` option to `store` option, and fixed some issues.
115
- - removed `toggle` method from theme utility.
116
-
117
- ## 0.1.0 (2025-11-12)
118
- - Initial library version release
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.