@iyulab/components 0.2.2 → 0.3.0

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