@iyulab/components 1.58.0 โ†’ 2.0.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 (195) hide show
  1. package/CHANGELOG.md +156 -0
  2. package/README.md +3 -1
  3. package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +1 -1
  4. package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +1 -1
  5. package/dist/assets/locales/ar.json.js +5 -1
  6. package/dist/assets/locales/de.json.js +5 -1
  7. package/dist/assets/locales/en.json.js +5 -1
  8. package/dist/assets/locales/es.json.js +5 -1
  9. package/dist/assets/locales/fr.json.js +5 -1
  10. package/dist/assets/locales/id.json.js +5 -1
  11. package/dist/assets/locales/ja.json.js +5 -1
  12. package/dist/assets/locales/ko.json.js +5 -1
  13. package/dist/assets/locales/pt-BR.json.js +5 -1
  14. package/dist/assets/locales/ru.json.js +5 -1
  15. package/dist/assets/locales/th.json.js +5 -1
  16. package/dist/assets/locales/vi.json.js +5 -1
  17. package/dist/assets/locales/zh-CN.json.js +5 -1
  18. package/dist/assets/locales/zh-TW.json.js +5 -1
  19. package/dist/components/UElement.styles.js +2 -2
  20. package/dist/components/alert/UAlert.d.ts +12 -7
  21. package/dist/components/alert/UAlert.js +3 -3
  22. package/dist/components/alert/UAlert.styles.js +6 -23
  23. package/dist/components/badge/UBadge.d.ts +5 -5
  24. package/dist/components/badge/UBadge.js +3 -3
  25. package/dist/components/badge/UBadge.styles.js +4 -4
  26. package/dist/components/breadcrumb-item/UBreadcrumbItem.styles.js +1 -1
  27. package/dist/components/button/UButton.d.ts +32 -16
  28. package/dist/components/button/UButton.js +38 -5
  29. package/dist/components/button/UButton.styles.js +67 -50
  30. package/dist/components/button/forwarded-aria.d.ts +6 -0
  31. package/dist/components/button/forwarded-aria.js +15 -0
  32. package/dist/components/button-group/UButtonGroup.d.ts +4 -4
  33. package/dist/components/button-group/UButtonGroup.js +8 -8
  34. package/dist/components/button-group/UButtonGroup.styles.js +2 -2
  35. package/dist/components/calendar/UCalendar.styles.js +4 -3
  36. package/dist/components/calendar/picker.styles.js +7 -2
  37. package/dist/components/card/UCard.d.ts +4 -3
  38. package/dist/components/card/UCard.js +3 -3
  39. package/dist/components/card/UCard.styles.js +2 -1
  40. package/dist/components/carousel/UCarousel.js +2 -2
  41. package/dist/components/carousel/UCarousel.styles.js +17 -6
  42. package/dist/components/checkbox/UCheckbox.d.ts +8 -9
  43. package/dist/components/checkbox/UCheckbox.js +3 -3
  44. package/dist/components/checkbox/UCheckbox.styles.js +22 -18
  45. package/dist/components/chip/UChip.d.ts +2 -2
  46. package/dist/components/chip/UChip.js +4 -4
  47. package/dist/components/copy-button/UCopyButton.d.ts +2 -2
  48. package/dist/components/copy-button/UCopyButton.js +4 -4
  49. package/dist/components/date-picker/UDatePicker.d.ts +3 -0
  50. package/dist/components/date-picker/UDatePicker.js +8 -3
  51. package/dist/components/date-picker/UDatePicker.styles.js +13 -2
  52. package/dist/components/date-range-picker/UDateRangePicker.d.ts +3 -0
  53. package/dist/components/date-range-picker/UDateRangePicker.js +7 -2
  54. package/dist/components/date-range-picker/UDateRangePicker.styles.js +13 -3
  55. package/dist/components/dialog/UDialog.js +1 -1
  56. package/dist/components/divider/UDivider.d.ts +3 -3
  57. package/dist/components/divider/UDivider.js +2 -2
  58. package/dist/components/divider/UDivider.styles.js +5 -5
  59. package/dist/components/drawer/UDrawer.js +1 -1
  60. package/dist/components/expander/UExpander.styles.js +2 -2
  61. package/dist/components/file-input/UFileInput.styles.js +5 -2
  62. package/dist/components/icon-button/UIconButton.d.ts +4 -3
  63. package/dist/components/icon-button/UIconButton.js +16 -6
  64. package/dist/components/icon-button/UIconButton.styles.js +2 -2
  65. package/dist/components/input/UInput.d.ts +12 -5
  66. package/dist/components/input/UInput.js +7 -4
  67. package/dist/components/input/UInput.styles.js +60 -30
  68. package/dist/components/menu/UMenu.d.ts +5 -4
  69. package/dist/components/menu/UMenu.js +3 -3
  70. package/dist/components/menu/UMenu.styles.js +1 -1
  71. package/dist/components/menu-item/UMenuItem.styles.js +1 -1
  72. package/dist/components/option/UOption.d.ts +1 -0
  73. package/dist/components/option/UOption.js +6 -3
  74. package/dist/components/option/UOption.styles.js +1 -1
  75. package/dist/components/progress-bar/UProgressBar.styles.js +11 -0
  76. package/dist/components/radio/URadio.d.ts +27 -6
  77. package/dist/components/radio/URadio.js +48 -12
  78. package/dist/components/radio/URadio.styles.js +47 -13
  79. package/dist/components/rating/URating.styles.js +5 -1
  80. package/dist/components/select/USelect.d.ts +9 -2
  81. package/dist/components/select/USelect.js +7 -2
  82. package/dist/components/select/USelect.styles.js +55 -26
  83. package/dist/components/slider/USlider.styles.js +4 -4
  84. package/dist/components/spinner/USpinner.styles.js +2 -0
  85. package/dist/components/split-panel/USplitPanel.styles.js +2 -1
  86. package/dist/components/steps/USteps.d.ts +57 -0
  87. package/dist/components/steps/USteps.js +58 -0
  88. package/dist/components/steps/USteps.styles.d.ts +1 -0
  89. package/dist/components/steps/USteps.styles.js +110 -0
  90. package/dist/components/switch/USwitch.styles.js +5 -3
  91. package/dist/components/tab/UTab.js +2 -2
  92. package/dist/components/tab/UTab.styles.js +1 -1
  93. package/dist/components/tab-panel/UTabPanel.d.ts +11 -2
  94. package/dist/components/tab-panel/UTabPanel.js +33 -5
  95. package/dist/components/tab-panel/UTabPanel.styles.js +29 -29
  96. package/dist/components/tag/UTag.d.ts +14 -6
  97. package/dist/components/tag/UTag.js +8 -3
  98. package/dist/components/tag/UTag.styles.js +33 -26
  99. package/dist/components/textarea/UTextarea.d.ts +9 -3
  100. package/dist/components/textarea/UTextarea.js +7 -2
  101. package/dist/components/textarea/UTextarea.styles.js +41 -22
  102. package/dist/components/tree-item/UTreeItem.styles.js +7 -5
  103. package/dist/index.d.ts +1 -0
  104. package/dist/index.js +2 -1
  105. package/dist/plugins/vite-plugin-react-wrapper.js +14 -5
  106. package/dist/react/UAlert.d.ts +4 -2
  107. package/dist/react/UAvatar.d.ts +4 -2
  108. package/dist/react/UBadge.d.ts +4 -2
  109. package/dist/react/UBreadcrumb.d.ts +4 -2
  110. package/dist/react/UBreadcrumbItem.d.ts +4 -2
  111. package/dist/react/UButton.d.ts +4 -2
  112. package/dist/react/UButtonGroup.d.ts +4 -2
  113. package/dist/react/UCard.d.ts +4 -2
  114. package/dist/react/UCarousel.d.ts +4 -2
  115. package/dist/react/UCheckbox.d.ts +4 -2
  116. package/dist/react/UChip.d.ts +4 -2
  117. package/dist/react/UCopyButton.d.ts +4 -2
  118. package/dist/react/UDatePicker.d.ts +4 -2
  119. package/dist/react/UDateRangePicker.d.ts +4 -2
  120. package/dist/react/UDialog.d.ts +4 -2
  121. package/dist/react/UDivider.d.ts +4 -2
  122. package/dist/react/UDrawer.d.ts +4 -2
  123. package/dist/react/UExpander.d.ts +4 -2
  124. package/dist/react/UField.d.ts +4 -2
  125. package/dist/react/UFileInput.d.ts +4 -2
  126. package/dist/react/UForm.d.ts +4 -2
  127. package/dist/react/UIcon.d.ts +4 -2
  128. package/dist/react/UIconButton.d.ts +4 -2
  129. package/dist/react/UInput.d.ts +4 -2
  130. package/dist/react/UMenu.d.ts +4 -2
  131. package/dist/react/UMenuItem.d.ts +4 -2
  132. package/dist/react/UOption.d.ts +4 -2
  133. package/dist/react/UPanel.d.ts +4 -2
  134. package/dist/react/UPopover.d.ts +4 -2
  135. package/dist/react/UProgressBar.d.ts +4 -2
  136. package/dist/react/UProgressRing.d.ts +4 -2
  137. package/dist/react/URadio.d.ts +4 -2
  138. package/dist/react/URating.d.ts +4 -2
  139. package/dist/react/USelect.d.ts +4 -2
  140. package/dist/react/USkeleton.d.ts +4 -2
  141. package/dist/react/USlider.d.ts +4 -2
  142. package/dist/react/USpinner.d.ts +4 -2
  143. package/dist/react/USplitPanel.d.ts +4 -2
  144. package/dist/react/USteps.d.ts +14 -0
  145. package/dist/react/USteps.js +10 -0
  146. package/dist/react/USwitch.d.ts +4 -2
  147. package/dist/react/UTab.d.ts +4 -2
  148. package/dist/react/UTabPanel.d.ts +4 -2
  149. package/dist/react/UTag.d.ts +4 -2
  150. package/dist/react/UText.d.ts +4 -2
  151. package/dist/react/UTextarea.d.ts +4 -2
  152. package/dist/react/UTooltip.d.ts +4 -2
  153. package/dist/react/UTree.d.ts +4 -2
  154. package/dist/react/UTreeItem.d.ts +4 -2
  155. package/dist/react/index.d.ts +1 -0
  156. package/dist/react/index.js +1 -0
  157. package/dist/styles/dark.css +42 -0
  158. package/dist/styles/light.css +44 -0
  159. package/dist/utilities/Dialog.d.ts +2 -2
  160. package/dist/utilities/Dialog.js +3 -3
  161. package/dist/utilities/Locale.d.ts +1 -1
  162. package/dist/utilities/Toast.d.ts +2 -2
  163. package/dist/utilities/Toast.js +1 -1
  164. package/dist/utilities/icons.d.ts +12 -3
  165. package/dist/utilities/icons.js +24 -6
  166. package/package.json +1 -1
  167. package/skills/iyulab-components/SKILL.md +3 -3
  168. package/skills/iyulab-components/references/components/alert.md +5 -5
  169. package/skills/iyulab-components/references/components/badge.md +3 -3
  170. package/skills/iyulab-components/references/components/button-group.md +3 -3
  171. package/skills/iyulab-components/references/components/button.md +34 -19
  172. package/skills/iyulab-components/references/components/card.md +3 -3
  173. package/skills/iyulab-components/references/components/checkbox.md +5 -5
  174. package/skills/iyulab-components/references/components/chip.md +2 -2
  175. package/skills/iyulab-components/references/components/copy-button.md +1 -1
  176. package/skills/iyulab-components/references/components/date-picker.md +1 -0
  177. package/skills/iyulab-components/references/components/date-range-picker.md +1 -0
  178. package/skills/iyulab-components/references/components/dialog.md +2 -2
  179. package/skills/iyulab-components/references/components/divider.md +2 -2
  180. package/skills/iyulab-components/references/components/drawer.md +1 -1
  181. package/skills/iyulab-components/references/components/field.md +1 -1
  182. package/skills/iyulab-components/references/components/icon-button.md +8 -2
  183. package/skills/iyulab-components/references/components/input.md +4 -2
  184. package/skills/iyulab-components/references/components/menu.md +1 -1
  185. package/skills/iyulab-components/references/components/radio.md +16 -4
  186. package/skills/iyulab-components/references/components/select.md +2 -1
  187. package/skills/iyulab-components/references/components/steps.md +66 -0
  188. package/skills/iyulab-components/references/components/tab-panel.md +10 -3
  189. package/skills/iyulab-components/references/components/tag.md +11 -7
  190. package/skills/iyulab-components/references/components/textarea.md +2 -1
  191. package/skills/iyulab-components/references/usage.md +1 -1
  192. package/skills/iyulab-components/references/utilities/dialog.md +2 -2
  193. package/skills/iyulab-components/references/utilities/icons.md +2 -2
  194. package/skills/iyulab-components/references/utilities/theme.md +9 -5
  195. package/skills/iyulab-components/references/utilities/toast.md +2 -2
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { USlider as USliderElement } from '@iyulab/components/dist/components/slider/USlider.js';
3
3
 
4
+ type USliderOwnProps = Omit<USliderElement, keyof HTMLElement>;
5
+
4
6
  export declare const USlider: React.ForwardRefExoticComponent<
5
- Omit<Partial<USliderElement>, keyof React.HTMLAttributes<USliderElement>>
6
- & Omit<React.HTMLAttributes<USliderElement>, 'onChange'>
7
+ Partial<Omit<USliderElement, Exclude<keyof React.HTMLAttributes<USliderElement>, keyof USliderOwnProps>>>
8
+ & Omit<React.HTMLAttributes<USliderElement>, keyof USliderOwnProps | 'onChange'>
7
9
  & React.RefAttributes<USliderElement>
8
10
  & {
9
11
  onChange?: (event: CustomEvent) => void;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { USpinner as USpinnerElement } from '@iyulab/components/dist/components/spinner/USpinner.js';
3
3
 
4
+ type USpinnerOwnProps = Omit<USpinnerElement, keyof HTMLElement>;
5
+
4
6
  export declare const USpinner: React.ForwardRefExoticComponent<
5
- Omit<Partial<USpinnerElement>, keyof React.HTMLAttributes<USpinnerElement>>
6
- & Omit<React.HTMLAttributes<USpinnerElement>, never>
7
+ Partial<Omit<USpinnerElement, Exclude<keyof React.HTMLAttributes<USpinnerElement>, keyof USpinnerOwnProps>>>
8
+ & Omit<React.HTMLAttributes<USpinnerElement>, keyof USpinnerOwnProps | never>
7
9
  & React.RefAttributes<USpinnerElement>
8
10
  & {
9
11
  }
@@ -2,9 +2,11 @@ import React from 'react';
2
2
  import { USplitPanel as USplitPanelElement } from '@iyulab/components/dist/components/split-panel/USplitPanel.js';
3
3
  import { type ShiftEventDetail } from '@iyulab/components/dist/events/ShiftEvent.js';
4
4
 
5
+ type USplitPanelOwnProps = Omit<USplitPanelElement, keyof HTMLElement>;
6
+
5
7
  export declare const USplitPanel: React.ForwardRefExoticComponent<
6
- Omit<Partial<USplitPanelElement>, keyof React.HTMLAttributes<USplitPanelElement>>
7
- & Omit<React.HTMLAttributes<USplitPanelElement>, 'onShiftStart' | 'onShift' | 'onShiftEnd'>
8
+ Partial<Omit<USplitPanelElement, Exclude<keyof React.HTMLAttributes<USplitPanelElement>, keyof USplitPanelOwnProps>>>
9
+ & Omit<React.HTMLAttributes<USplitPanelElement>, keyof USplitPanelOwnProps | 'onShiftStart' | 'onShift' | 'onShiftEnd'>
8
10
  & React.RefAttributes<USplitPanelElement>
9
11
  & {
10
12
  onShiftStart?: (event: CustomEvent<ShiftEventDetail>) => void;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { USteps as UStepsElement } from '@iyulab/components/dist/components/steps/USteps.js';
3
+
4
+ type UStepsOwnProps = Omit<UStepsElement, keyof HTMLElement>;
5
+
6
+ export declare const USteps: React.ForwardRefExoticComponent<
7
+ Partial<Omit<UStepsElement, Exclude<keyof React.HTMLAttributes<UStepsElement>, keyof UStepsOwnProps>>>
8
+ & Omit<React.HTMLAttributes<UStepsElement>, keyof UStepsOwnProps | never>
9
+ & React.RefAttributes<UStepsElement>
10
+ & {
11
+ }
12
+ >;
13
+
14
+ export type UStepsProps = React.ComponentProps<typeof USteps>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { USteps as UStepsElement } from '@iyulab/components/dist/components/steps/USteps.js';
4
+
5
+ export const USteps = createComponent({
6
+ react: React,
7
+ tagName: 'u-steps',
8
+ elementClass: UStepsElement,
9
+ events: {},
10
+ });
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { USwitch as USwitchElement } from '@iyulab/components/dist/components/switch/USwitch.js';
3
3
 
4
+ type USwitchOwnProps = Omit<USwitchElement, keyof HTMLElement>;
5
+
4
6
  export declare const USwitch: React.ForwardRefExoticComponent<
5
- Omit<Partial<USwitchElement>, keyof React.HTMLAttributes<USwitchElement>>
6
- & Omit<React.HTMLAttributes<USwitchElement>, 'onChange'>
7
+ Partial<Omit<USwitchElement, Exclude<keyof React.HTMLAttributes<USwitchElement>, keyof USwitchOwnProps>>>
8
+ & Omit<React.HTMLAttributes<USwitchElement>, keyof USwitchOwnProps | 'onChange'>
7
9
  & React.RefAttributes<USwitchElement>
8
10
  & {
9
11
  onChange?: (event: CustomEvent) => void;
@@ -2,9 +2,11 @@ import React from 'react';
2
2
  import { UTab as UTabElement } from '@iyulab/components/dist/components/tab/UTab.js';
3
3
  import { type RemoveEventDetail } from '@iyulab/components/dist/events/RemoveEvent.js';
4
4
 
5
+ type UTabOwnProps = Omit<UTabElement, keyof HTMLElement>;
6
+
5
7
  export declare const UTab: React.ForwardRefExoticComponent<
6
- Omit<Partial<UTabElement>, keyof React.HTMLAttributes<UTabElement>>
7
- & Omit<React.HTMLAttributes<UTabElement>, 'onRemove'>
8
+ Partial<Omit<UTabElement, Exclude<keyof React.HTMLAttributes<UTabElement>, keyof UTabOwnProps>>>
9
+ & Omit<React.HTMLAttributes<UTabElement>, keyof UTabOwnProps | 'onRemove'>
8
10
  & React.RefAttributes<UTabElement>
9
11
  & {
10
12
  onRemove?: (event: CustomEvent<RemoveEventDetail>) => void;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { UTabPanel as UTabPanelElement } from '@iyulab/components/dist/components/tab-panel/UTabPanel.js';
3
3
 
4
+ type UTabPanelOwnProps = Omit<UTabPanelElement, keyof HTMLElement>;
5
+
4
6
  export declare const UTabPanel: React.ForwardRefExoticComponent<
5
- Omit<Partial<UTabPanelElement>, keyof React.HTMLAttributes<UTabPanelElement>>
6
- & Omit<React.HTMLAttributes<UTabPanelElement>, 'onChange'>
7
+ Partial<Omit<UTabPanelElement, Exclude<keyof React.HTMLAttributes<UTabPanelElement>, keyof UTabPanelOwnProps>>>
8
+ & Omit<React.HTMLAttributes<UTabPanelElement>, keyof UTabPanelOwnProps | 'onChange'>
7
9
  & React.RefAttributes<UTabPanelElement>
8
10
  & {
9
11
  onChange?: (event: CustomEvent) => void;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { UTag as UTagElement } from '@iyulab/components/dist/components/tag/UTag.js';
3
3
 
4
+ type UTagOwnProps = Omit<UTagElement, keyof HTMLElement>;
5
+
4
6
  export declare const UTag: React.ForwardRefExoticComponent<
5
- Omit<Partial<UTagElement>, keyof React.HTMLAttributes<UTagElement>>
6
- & Omit<React.HTMLAttributes<UTagElement>, never>
7
+ Partial<Omit<UTagElement, Exclude<keyof React.HTMLAttributes<UTagElement>, keyof UTagOwnProps>>>
8
+ & Omit<React.HTMLAttributes<UTagElement>, keyof UTagOwnProps | never>
7
9
  & React.RefAttributes<UTagElement>
8
10
  & {
9
11
  }
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { UText as UTextElement } from '@iyulab/components/dist/components/text/UText.js';
3
3
 
4
+ type UTextOwnProps = Omit<UTextElement, keyof HTMLElement>;
5
+
4
6
  export declare const UText: React.ForwardRefExoticComponent<
5
- Omit<Partial<UTextElement>, keyof React.HTMLAttributes<UTextElement>>
6
- & Omit<React.HTMLAttributes<UTextElement>, never>
7
+ Partial<Omit<UTextElement, Exclude<keyof React.HTMLAttributes<UTextElement>, keyof UTextOwnProps>>>
8
+ & Omit<React.HTMLAttributes<UTextElement>, keyof UTextOwnProps | never>
7
9
  & React.RefAttributes<UTextElement>
8
10
  & {
9
11
  }
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { UTextarea as UTextareaElement } from '@iyulab/components/dist/components/textarea/UTextarea.js';
3
3
 
4
+ type UTextareaOwnProps = Omit<UTextareaElement, keyof HTMLElement>;
5
+
4
6
  export declare const UTextarea: React.ForwardRefExoticComponent<
5
- Omit<Partial<UTextareaElement>, keyof React.HTMLAttributes<UTextareaElement>>
6
- & Omit<React.HTMLAttributes<UTextareaElement>, 'onInput' | 'onChange'>
7
+ Partial<Omit<UTextareaElement, Exclude<keyof React.HTMLAttributes<UTextareaElement>, keyof UTextareaOwnProps>>>
8
+ & Omit<React.HTMLAttributes<UTextareaElement>, keyof UTextareaOwnProps | 'onInput' | 'onChange'>
7
9
  & React.RefAttributes<UTextareaElement>
8
10
  & {
9
11
  onInput?: (event: CustomEvent) => void;
@@ -3,9 +3,11 @@ import { UTooltip as UTooltipElement } from '@iyulab/components/dist/components/
3
3
  import { type ShowEventDetail } from '@iyulab/components/dist/events/ShowEvent.js';
4
4
  import { type HideEventDetail } from '@iyulab/components/dist/events/HideEvent.js';
5
5
 
6
+ type UTooltipOwnProps = Omit<UTooltipElement, keyof HTMLElement>;
7
+
6
8
  export declare const UTooltip: React.ForwardRefExoticComponent<
7
- Omit<Partial<UTooltipElement>, keyof React.HTMLAttributes<UTooltipElement>>
8
- & Omit<React.HTMLAttributes<UTooltipElement>, 'onShow' | 'onHide'>
9
+ Partial<Omit<UTooltipElement, Exclude<keyof React.HTMLAttributes<UTooltipElement>, keyof UTooltipOwnProps>>>
10
+ & Omit<React.HTMLAttributes<UTooltipElement>, keyof UTooltipOwnProps | 'onShow' | 'onHide'>
9
11
  & React.RefAttributes<UTooltipElement>
10
12
  & {
11
13
  onShow?: (event: CustomEvent<ShowEventDetail>) => void;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { UTree as UTreeElement } from '@iyulab/components/dist/components/tree/UTree.js';
3
3
 
4
+ type UTreeOwnProps = Omit<UTreeElement, keyof HTMLElement>;
5
+
4
6
  export declare const UTree: React.ForwardRefExoticComponent<
5
- Omit<Partial<UTreeElement>, keyof React.HTMLAttributes<UTreeElement>>
6
- & Omit<React.HTMLAttributes<UTreeElement>, 'onChange'>
7
+ Partial<Omit<UTreeElement, Exclude<keyof React.HTMLAttributes<UTreeElement>, keyof UTreeOwnProps>>>
8
+ & Omit<React.HTMLAttributes<UTreeElement>, keyof UTreeOwnProps | 'onChange'>
7
9
  & React.RefAttributes<UTreeElement>
8
10
  & {
9
11
  onChange?: (event: CustomEvent) => void;
@@ -5,9 +5,11 @@ import { type CollapseEventDetail } from '@iyulab/components/dist/events/Collaps
5
5
  import { type PickEventDetail } from '@iyulab/components/dist/events/PickEvent.js';
6
6
  import { type CheckEventDetail } from '@iyulab/components/dist/events/CheckEvent.js';
7
7
 
8
+ type UTreeItemOwnProps = Omit<UTreeItemElement, keyof HTMLElement>;
9
+
8
10
  export declare const UTreeItem: React.ForwardRefExoticComponent<
9
- Omit<Partial<UTreeItemElement>, keyof React.HTMLAttributes<UTreeItemElement>>
10
- & Omit<React.HTMLAttributes<UTreeItemElement>, 'onExpand' | 'onCollapse' | 'onPick' | 'onCheck'>
11
+ Partial<Omit<UTreeItemElement, Exclude<keyof React.HTMLAttributes<UTreeItemElement>, keyof UTreeItemOwnProps>>>
12
+ & Omit<React.HTMLAttributes<UTreeItemElement>, keyof UTreeItemOwnProps | 'onExpand' | 'onCollapse' | 'onPick' | 'onCheck'>
11
13
  & React.RefAttributes<UTreeItemElement>
12
14
  & {
13
15
  onExpand?: (event: CustomEvent<ExpandEventDetail>) => void;
@@ -7,6 +7,7 @@ export { UTag, UTagProps } from './UTag';
7
7
  export { UTabPanel, UTabPanelProps } from './UTabPanel';
8
8
  export { UTab, UTabProps } from './UTab';
9
9
  export { USwitch, USwitchProps } from './USwitch';
10
+ export { USteps, UStepsProps } from './USteps';
10
11
  export { USplitPanel, USplitPanelProps } from './USplitPanel';
11
12
  export { USpinner, USpinnerProps } from './USpinner';
12
13
  export { USlider, USliderProps } from './USlider';
@@ -7,6 +7,7 @@ export { UTag } from './UTag.js';
7
7
  export { UTabPanel } from './UTabPanel.js';
8
8
  export { UTab } from './UTab.js';
9
9
  export { USwitch } from './USwitch.js';
10
+ export { USteps } from './USteps.js';
10
11
  export { USplitPanel } from './USplitPanel.js';
11
12
  export { USpinner } from './USpinner.js';
12
13
  export { USlider } from './USlider.js';
@@ -1,3 +1,22 @@
1
+ /*
2
+ * ๐Ÿ”ดCascade layers โ€” `@layer iyu.base, iyu.house;`
3
+ *
4
+ * iyu.base this sheet (neutral defaults every component can render with)
5
+ * iyu.house a house theme such as `@iyulab/house-style`
6
+ * (none) the application's own CSS โ€” unlayered, so it always wins
7
+ *
8
+ * Unlayered styles beat every layer regardless of specificity or source order, so an
9
+ * application overrides a token with a plain `:root { --u-โ€ฆ }` โ€” no `:root:root` or
10
+ * `:not([theme])` tricks, and no dependence on when `Theme.init()` injects this sheet.
11
+ * โš That includes dark mode: an unlayered `:root` override applies in both themes. Scope it
12
+ * with `:root[theme="dark"]` (or `:root:not([theme="dark"])`) when the value is mode-specific.
13
+ *
14
+ * The order statement is repeated by every sheet that joins a layer, so whichever loads
15
+ * first fixes the same order.
16
+ */
17
+ @layer iyu.base, iyu.house;
18
+
19
+ @layer iyu.base {
1
20
  :root[theme="dark"] {
2
21
  color-scheme: dark;
3
22
 
@@ -205,6 +224,10 @@
205
224
  ์˜ฌ๋ฆผ๋ฉด(neutral-300) 4.16 ยท active ๋ฉด(neutral-400) 3.15 ๋กœ ๋ฏธ๋‹ฌ์ด์—ˆ๋‹ค.
206
225
  neutral-800(#B0B0B0) = 8.64 ยท 6.62 ยท 5.01. ๋ณธ๋ฌธ(neutral-900)๊ณผ์˜ ๋Œ€๋น„๋น„ 1.46. */
207
226
  --u-txt-color-weak: var(--u-neutral-800);
227
+ /* โ˜…Third text step โ€” metadata, units, secondary columns, an empty value's dash: text that
228
+ must stay readable (5.0 on the surface) but should recede behind -weak. Not a placeholder or a
229
+ disabled colour (those are -disabled). */
230
+ --u-txt-color-weaker: var(--u-neutral-700);
208
231
  --u-txt-color-strong: var(--u-neutral-1000);
209
232
 
210
233
  --u-link-txt-color: var(--u-primary-color-strong);
@@ -236,6 +259,11 @@
236
259
  --u-input-border-color-focus: var(--u-primary-color-strong);
237
260
  --u-input-border-color-invalid: var(--u-danger-color-strong);
238
261
 
262
+ /* Focus ring โ€” a graphic drawn over the background, so it must clear 3:1 against it
263
+ (WCAG 1.4.11). Defaults to the primary text step; a theme whose primary is a neutral
264
+ ink can point it at an interaction hue instead. */
265
+ --u-focus-ring-color: var(--u-primary-color-strong);
266
+
239
267
  /* Background Colors */
240
268
  --u-bg-color: var(--u-neutral-100);
241
269
  --u-bg-color-inverse: var(--u-neutral-0);
@@ -243,6 +271,13 @@
243
271
  --u-bg-color-active: var(--u-neutral-400);
244
272
  --u-bg-color-disabled: var(--u-neutral-100);
245
273
 
274
+ /* โ˜…Canvas โ€” the application background **behind** surfaces (page body, shell side
275
+ panels). `--u-bg-color` is the surface: components paint their own face with it
276
+ (buttons, menu items, options, tags, table bodies, sheets), so tinting it to make a
277
+ page background greys every control inside a white card. Paint the page with this
278
+ token instead and keep `--u-bg-color` as the surface. */
279
+ --u-canvas-bg-color: var(--u-neutral-50);
280
+
246
281
  /* ๋ฉด ๋†’์ด โ€” ์ƒ์„ธ๋Š” light.css ์ฐธ์กฐ. ๋‹คํฌ๋Š” **๋ฐ”ํƒ•๋ณด๋‹ค ๋ฐ์€ ์ชฝ**์ด ์œ„๋‹ค.
247
282
  neutral-300(#2A2A2A)์€ ๋ฐ”ํƒ•(#121212) ๋Œ€๋น„ 1.42 ๋กœ, ์†Œ๋น„ ์ธก์ด ์˜ค๋ฒ„๋ผ์ด๋“œ๋กœ ์“ฐ๋˜
248
283
  neutral-200(1.15)๋ณด๋‹ค ์‹ค์ œ๋กœ ๋” ์ž˜ ๊ตฌ๋ถ„๋œ๋‹ค โ€” ๊ทธ ์˜ค๋ฒ„๋ผ์ด๋“œ๊ฐ€ ํ•ด๊ฒฐํ•˜๋ ค๋˜ ์ฆ์ƒ์ด
@@ -329,6 +364,11 @@
329
364
  ์ด ํ† ํฐ๋“ค์„ ์—ฌ๊ธฐ์„œ ๋ฐ›๋Š”๋‹ค. ๋‘ ์‹œํŠธ๋ฅผ ํ•จ๊ป˜ ์“ธ ๋•Œ๋Š” ๊ฐ’์ด ๊ฐ™์œผ๋ฏ€๋กœ ์–ด๋А ์ชฝ์ด ์ด๊ฒจ๋„ ๊ฐ™๋‹ค.
330
365
  ========================================================================== */
331
366
  :root:where([theme="dark"]) {
367
+ /* Field box โ€” mode-independent (same as light.css). */
368
+ --u-field-padding-block: 0.3em;
369
+ --u-field-padding-inline: 0.6em;
370
+ --u-field-radius: 0.25em;
371
+
332
372
  /* ==========================================================================
333
373
  Radius Scale โ€” ๋ชจ์„œ๋ฆฌ ๋ฐ˜๊ฒฝ
334
374
  ๋ฆฌํ„ฐ๋Ÿด์„ ํฉ๋ฟŒ๋ฆฌ๋ฉด ๊ฐ’์ด ๊ฐˆ๋ฆฐ๋‹ค(์‹ค์ œ๋กœ pill ์ด 999px/9999px ๋‘ ํ‘œ๊ธฐ๋กœ ๋‚˜๋‰˜์–ด ์žˆ์—ˆ๋‹ค).
@@ -480,3 +520,5 @@
480
520
  --u-duration-slow: 0ms;
481
521
  }
482
522
  }
523
+
524
+ } /* @layer iyu.base */
@@ -1,3 +1,22 @@
1
+ /*
2
+ * ๐Ÿ”ดCascade layers โ€” `@layer iyu.base, iyu.house;`
3
+ *
4
+ * iyu.base this sheet (neutral defaults every component can render with)
5
+ * iyu.house a house theme such as `@iyulab/house-style`
6
+ * (none) the application's own CSS โ€” unlayered, so it always wins
7
+ *
8
+ * Unlayered styles beat every layer regardless of specificity or source order, so an
9
+ * application overrides a token with a plain `:root { --u-โ€ฆ }` โ€” no `:root:root` or
10
+ * `:not([theme])` tricks, and no dependence on when `Theme.init()` injects this sheet.
11
+ * โš That includes dark mode: an unlayered `:root` override applies in both themes. Scope it
12
+ * with `:root[theme="dark"]` (or `:root:not([theme="dark"])`) when the value is mode-specific.
13
+ *
14
+ * The order statement is repeated by every sheet that joins a layer, so whichever loads
15
+ * first fixes the same order.
16
+ */
17
+ @layer iyu.base, iyu.house;
18
+
19
+ @layer iyu.base {
1
20
  :root {
2
21
  color-scheme: light;
3
22
 
@@ -271,6 +290,10 @@
271
290
  ๋ณธ๋ฌธ(neutral-900)๊ณผ์˜ ๋Œ€๋น„๋น„๋Š” 2.60 ์œผ๋กœ, ๋ณด์กฐ ํ…์ŠคํŠธ๋ฅผ ๋ชจ๋“  ํ‘œ๋ฉด ์œ„์—์„œ
272
291
  ์ฝํžˆ๊ฒŒ ๋ณด์žฅํ•˜๋Š” ํ”ํ•œ ๋””์ž์ธ ์‹œ์Šคํ…œ ๊ธฐ์ค€(๋ณธ๋ฌธ ๋Œ€๋น„ ์•ฝ 1.3~1.8)๋ณด๋‹ค ์œ„๊ณ„๊ฐ€ ๋„“๋‹ค. */
273
292
  --u-txt-color-weak: var(--u-neutral-700);
293
+ /* โ˜…Third text step โ€” metadata, units, secondary columns, an empty value's dash: text that
294
+ must stay readable (4.6 on the surface) but should recede behind -weak. Not a placeholder or a
295
+ disabled colour (those are -disabled). */
296
+ --u-txt-color-weaker: var(--u-neutral-600);
274
297
  --u-txt-color-strong: var(--u-neutral-1000);
275
298
 
276
299
  --u-link-txt-color: var(--u-primary-color-strong);
@@ -298,6 +321,18 @@
298
321
  --u-input-border-color-focus: var(--u-primary-color-strong);
299
322
  --u-input-border-color-invalid: var(--u-danger-color-strong);
300
323
 
324
+ /* โ˜…Field box โ€” the text-entry controls (input, select, textarea, date pickers)
325
+ share one box so a theme sets form density in one place. Defaults are em-relative: the
326
+ box scales with the control's font size. Height = 1.5em line + 2 ร— block padding + 2px. */
327
+ --u-field-padding-block: 0.3em;
328
+ --u-field-padding-inline: 0.6em;
329
+ --u-field-radius: 0.25em;
330
+
331
+ /* Focus ring โ€” a graphic drawn over the background, so it must clear 3:1 against it
332
+ (WCAG 1.4.11). Defaults to the primary text step; a theme whose primary is a neutral
333
+ ink can point it at an interaction hue instead. */
334
+ --u-focus-ring-color: var(--u-primary-color-strong);
335
+
301
336
  /* Background Colors */
302
337
  --u-bg-color: var(--u-neutral-0);
303
338
  --u-bg-color-inverse: var(--u-neutral-900);
@@ -305,6 +340,13 @@
305
340
  --u-bg-color-active: var(--u-neutral-200);
306
341
  --u-bg-color-disabled: var(--u-neutral-50);
307
342
 
343
+ /* โ˜…Canvas โ€” the application background **behind** surfaces (page body, shell side
344
+ panels). `--u-bg-color` is the surface: components paint their own face with it
345
+ (buttons, menu items, options, tags, table bodies, sheets), so tinting it to make a
346
+ page background greys every control inside a white card. Paint the page with this
347
+ token instead and keep `--u-bg-color` as the surface. */
348
+ --u-canvas-bg-color: var(--u-neutral-100); /* one step below raised chrome (50) and surfaces (0) */
349
+
308
350
  /* โ˜…๋ฉด ๋†’์ด โ€” ๋ฐ”ํƒ•์— ์ธ์ ‘ํ•ด ์žˆ์œผ๋ฉด์„œ ํ•œ ๋‹จ ๊ตฌ๋ถ„๋˜๋Š” ํฌ๋กฌ ๋ฉด(ํˆด๋ฐ”ยทํ‘œ ํ—ค๋”ยทํ‘ธํ„ฐ).
309
351
  ์ƒํ˜ธ์ž‘์šฉ ์ƒํƒœ(-hover/-active/-disabled)์™€ **๋‹ค๋ฅธ ์ถ•**์ด๋‹ค. ์ƒํƒœ ์ด๋ฆ„์— ๋†’์ด๋ฅผ
310
352
  ์–น์œผ๋ฉด ์˜๋ฏธ๊ฐ€ ์–ด๊ธ‹๋‚œ๋‹ค.
@@ -505,3 +547,5 @@
505
547
  --u-duration-slow: 0ms;
506
548
  }
507
549
  }
550
+
551
+ } /* @layer iyu.base */
@@ -1,6 +1,6 @@
1
1
  import { TemplateResult } from 'lit';
2
2
  import { DialogPlacement } from '../components/dialog/UDialog.js';
3
- import { ButtonColor, ButtonVariant } from '../components/button/UButton.js';
3
+ import { ButtonColor, ButtonAppearance } from '../components/button/UButton.js';
4
4
  /** ๊ณตํ†ต Dialog ์˜ต์…˜ */
5
5
  export interface DialogOptions {
6
6
  /** ๋‹ค์ด์–ผ๋กœ๊ทธ๋ฅผ ํ‘œ์‹œํ•  ๋Œ€์ƒ ์—˜๋ฆฌ๋จผํŠธ, ์ง€์ • ์‹œ contained ๋ชจ๋“œ๋กœ ๋™์ž‘ */
@@ -55,7 +55,7 @@ export interface DialogAction {
55
55
  /** ๋ฐ˜ํ™˜๋  ๊ฐ’ */
56
56
  value: string;
57
57
  /** ๋ฒ„ํŠผ ์Šคํƒ€์ผ */
58
- variant?: ButtonVariant;
58
+ appearance?: ButtonAppearance;
59
59
  /** ๋ฒ„ํŠผ ์ƒ‰ (๊ธฐ๋ณธ: ๋ฒ„ํŠผ์˜ ๊ธฐ๋ณธ์ƒ‰) */
60
60
  color?: ButtonColor;
61
61
  }
@@ -34,7 +34,7 @@ var Dialog = class {
34
34
  actions: [{
35
35
  label: options?.cancelLabel || Locale.getValue("cancel"),
36
36
  value: "cancel",
37
- variant: "outlined"
37
+ appearance: "outlined"
38
38
  }, {
39
39
  label: options?.confirmLabel || Locale.getValue("confirm"),
40
40
  value: "confirm",
@@ -74,7 +74,7 @@ var Dialog = class {
74
74
  actions: [{
75
75
  label: options?.cancelLabel || Locale.getValue("cancel"),
76
76
  value: "cancel",
77
- variant: "outlined"
77
+ appearance: "outlined"
78
78
  }, {
79
79
  label: options?.confirmLabel || Locale.getValue("confirm"),
80
80
  value: "confirm"
@@ -97,7 +97,7 @@ var Dialog = class {
97
97
  <div style="display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px;">
98
98
  ${actions.map((action) => html`
99
99
  <u-button
100
- variant=${action.variant || "solid"}
100
+ appearance=${action.appearance || "solid"}
101
101
  color=${ifDefined(action.color)}
102
102
  @click=${() => {
103
103
  closeValue = action.value;
@@ -12,7 +12,7 @@ export type SupportedLocale = 'en' | 'ko' | 'ja' | 'zh-CN' | 'zh-TW' | 'es' | 'f
12
12
  /** ๋‚ด์žฅ ๋กœ์ผ€์ผ์€ ์ž๋™์™„์„ฑ๋˜์ง€๋งŒ, ์ž„์˜์˜ BCP47 ํƒœ๊ทธ๋„ ๊ทธ๋Œ€๋กœ ๋ฐ›๋Š”๋‹ค. */
13
13
  export type LocaleTag = SupportedLocale | (string & {});
14
14
  /** ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์ œ๊ณตํ•˜๋Š” chrome ๋ฌธ์ž์—ด ํ‚ค. ์ง€๊ธˆ์€ ๊ฒ€์ฆ ๋ฉ”์‹œ์ง€๋ฟ์ด์ง€๋งŒ ์ดํ›„ ๋‹ค๋ฅธ UI ๋ฌธ๊ตฌ๋„ ์ถ”๊ฐ€๋  ์ˆ˜ ์žˆ๋‹ค. */
15
- export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'breadcrumb' | 'search' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm';
15
+ export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'breadcrumb' | 'search' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'stepComplete' | 'stepOnHold' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm';
16
16
  type LocaleTable = Record<LocaleMessageKey, string>;
17
17
  /**
18
18
  * ํ•œ ํŒจํ‚ค์ง€(๋˜๋Š” ์•ฑ ์˜์—ญ)์˜ ๋ฌธ์ž์—ด ๋ฌถ์Œ.
@@ -1,4 +1,4 @@
1
- import { AlertVariant, AlertStatus } from '../components/alert/UAlert.js';
1
+ import { AlertAppearance, AlertStatus } from '../components/alert/UAlert.js';
2
2
  /** ํ† ์ŠคํŠธ ์•Œ๋ฆผ์˜ ํ™”๋ฉด ์œ„์น˜ ํƒ€์ž… */
3
3
  export type ToastPosition = "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
4
4
  /** ํ† ์ŠคํŠธ ์•Œ๋ฆผ ์˜ต์…˜ */
@@ -6,7 +6,7 @@ export interface ToastOptions {
6
6
  /** ํ† ์ŠคํŠธ๋ฅผ ํ‘œ์‹œํ•  ๋Œ€์ƒ ์—˜๋ฆฌ๋จผํŠธ (๊ธฐ๋ณธ: document.body) */
7
7
  target?: HTMLElement;
8
8
  /** ํ˜•ํƒœ ์Šคํƒ€์ผ */
9
- variant?: AlertVariant;
9
+ appearance?: AlertAppearance;
10
10
  /** ์•Œ๋ฆผ ์ œ๋ชฉ */
11
11
  title?: string;
12
12
  /** ํ‘œ์‹œ ํ™”๋ฉด ์œ„์น˜ */
@@ -46,7 +46,7 @@ var Toast = class {
46
46
  const el = new UAlert();
47
47
  el.status = status;
48
48
  el.innerHTML = content || "";
49
- el.variant = merged.variant || "solid";
49
+ el.appearance = merged.appearance || "soft";
50
50
  el.title = merged.title || "";
51
51
  el.closable = merged.closable ?? true;
52
52
  el.duration = merged.duration ?? 4e3;
@@ -56,6 +56,11 @@ declare class IconRegistry {
56
56
  private static libs;
57
57
  /** ๋™์ผ (lib, name)์˜ ๋™์‹œ ๋ฆฌ์กธ๋ธŒ๋ฅผ ํ•˜๋‚˜์˜ ์š”์ฒญ์œผ๋กœ ํ•ฉ์น˜๋Š” in-flight ๋งต์ž…๋‹ˆ๋‹ค. */
58
58
  private static pending;
59
+ /**
60
+ * ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ณ„ ์„ธ๋Œ€ โ€” ๊ต์ฒดยทํ•ด์ œ ๋•Œ ์˜ฌ๋ผ๊ฐ„๋‹ค. ๊ทธ ์ „์— ์ถœ๋ฐœํ•œ ๋ฆฌ์กธ๋ธŒ๋Š” ๋๋‚˜๋„ ์บ์‹œ์— ์“ฐ์ง€ ์•Š๋Š”๋‹ค
61
+ * (์˜› ๋ฆฌ์กธ๋ฒ„์˜ ๊ฒฐ๊ณผ๊ฐ€ ์ƒˆ ๋ฆฌ์กธ๋ฒ„์˜ ์ž๋ฆฌ๋ฅผ ์ฐจ์ง€ํ•˜์ง€ ์•Š๊ฒŒ).
62
+ */
63
+ private static generation;
59
64
  /** ํด๋ž˜์Šค ์ƒ์„ฑ ๋ฐฉ์ง€ */
60
65
  private constructor();
61
66
  /**
@@ -64,15 +69,19 @@ declare class IconRegistry {
64
69
  static has(lib: string): boolean;
65
70
  /**
66
71
  * ์ง€์ •๋œ ์•„์ด์ฝ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋“ฑ๋กํ•ฉ๋‹ˆ๋‹ค.
67
- * ์ด๋ฏธ ๋“ฑ๋ก๋œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ด๋ฆ„์ธ ๊ฒฝ์šฐ, ๊ธฐ์กด ๋“ฑ๋ก์„ ๋ฎ์–ด์“ฐ์ง€ ์•Š๊ณ  ๋ฌด์‹œํ•ฉ๋‹ˆ๋‹ค.
72
+ *
73
+ * ๊ฐ™์€ ์ด๋ฆ„์ด ์ด๋ฏธ ์žˆ์œผ๋ฉด **๊ต์ฒด**ํ•ฉ๋‹ˆ๋‹ค โ€” ๋‚ด์žฅ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ(`bootstrap` ๋“ฑ)๋ฅผ ๋กœ์ปฌ ๋ฆฌ์กธ๋ฒ„๋กœ
74
+ * ๋ฐ”๊พธ๋Š” ๊ฒƒ(ํ์‡„๋ง)์ด ํ•œ ํ˜ธ์ถœ์ž…๋‹ˆ๋‹ค. ๊ต์ฒดํ•˜๋ฉด ๊ทธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์บ์‹œ์™€ ์ง„ํ–‰ ์ค‘์ธ ๋ฆฌ์กธ๋ธŒ๊ฐ€
75
+ * ๋ฌดํšจ๊ฐ€ ๋˜์–ด ์˜› ๋ฆฌ์กธ๋ฒ„์˜ ๊ฒฐ๊ณผ๊ฐ€ ๋‚จ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๊ฐ™์€ ๋ฆฌ์กธ๋ฒ„๋ฅผ ๋‹ค์‹œ ๋„˜๊ธฐ๋ฉด ์•„๋ฌด ์ผ๋„ ์—†์Šต๋‹ˆ๋‹ค.
68
76
  */
69
77
  static register(lib: string, resolver: IconResolver): void;
70
78
  /**
71
79
  * ์ง€์ •๋œ ์•„์ด์ฝ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋“ฑ๋ก ํ•ด์ œํ•ฉ๋‹ˆ๋‹ค.
72
- * ํ•ด๋‹น ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์บ์‹œ ํ•ญ๋ชฉ๋„ ํ•จ๊ป˜ ๋น„์›๋‹ˆ๋‹ค โ€”
73
- * `unregister` ํ›„ ๋‹ค๋ฅธ ๋ฆฌ์กธ๋ฒ„๋ฅผ ์žฌ๋“ฑ๋กํ•  ๋•Œ ์ด์ „ ๊ฒฐ๊ณผ๊ฐ€ ๋‚จ์ง€ ์•Š๋„๋ก ํ•˜๊ธฐ ์œ„ํ•จ์ž…๋‹ˆ๋‹ค.
80
+ * ํ•ด๋‹น ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์บ์‹œ ํ•ญ๋ชฉ๊ณผ ์ง„ํ–‰ ์ค‘์ธ ๋ฆฌ์กธ๋ธŒ๋„ ํ•จ๊ป˜ ๋ฌดํšจ๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.
74
81
  */
75
82
  static unregister(lib: string): void;
83
+ /** ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์บ์‹œ๋ฅผ ๋น„์šฐ๊ณ  ์„ธ๋Œ€๋ฅผ ์˜ฌ๋ ค ์ง„ํ–‰ ์ค‘์ธ ๋ฆฌ์กธ๋ธŒ๊ฐ€ ๊ฒฐ๊ณผ๋ฅผ ์“ฐ์ง€ ๋ชปํ•˜๊ฒŒ ํ•œ๋‹ค. */
84
+ private static invalidate;
76
85
  /**
77
86
  * ์ง€์ •๋œ ์•„์ด์ฝ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ svg ์•„์ด์ฝ˜ ์†Œ์Šค๋ฅผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.
78
87
  *
@@ -128,6 +128,9 @@ var IconRegistry = class {
128
128
  static {
129
129
  this.pending = /* @__PURE__ */ new Map();
130
130
  }
131
+ static {
132
+ this.generation = /* @__PURE__ */ new Map();
133
+ }
131
134
  /** ํด๋ž˜์Šค ์ƒ์„ฑ ๋ฐฉ์ง€ */
132
135
  constructor() {}
133
136
  /**
@@ -138,19 +141,31 @@ var IconRegistry = class {
138
141
  }
139
142
  /**
140
143
  * ์ง€์ •๋œ ์•„์ด์ฝ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋“ฑ๋กํ•ฉ๋‹ˆ๋‹ค.
141
- * ์ด๋ฏธ ๋“ฑ๋ก๋œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ด๋ฆ„์ธ ๊ฒฝ์šฐ, ๊ธฐ์กด ๋“ฑ๋ก์„ ๋ฎ์–ด์“ฐ์ง€ ์•Š๊ณ  ๋ฌด์‹œํ•ฉ๋‹ˆ๋‹ค.
144
+ *
145
+ * ๊ฐ™์€ ์ด๋ฆ„์ด ์ด๋ฏธ ์žˆ์œผ๋ฉด **๊ต์ฒด**ํ•ฉ๋‹ˆ๋‹ค โ€” ๋‚ด์žฅ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ(`bootstrap` ๋“ฑ)๋ฅผ ๋กœ์ปฌ ๋ฆฌ์กธ๋ฒ„๋กœ
146
+ * ๋ฐ”๊พธ๋Š” ๊ฒƒ(ํ์‡„๋ง)์ด ํ•œ ํ˜ธ์ถœ์ž…๋‹ˆ๋‹ค. ๊ต์ฒดํ•˜๋ฉด ๊ทธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์บ์‹œ์™€ ์ง„ํ–‰ ์ค‘์ธ ๋ฆฌ์กธ๋ธŒ๊ฐ€
147
+ * ๋ฌดํšจ๊ฐ€ ๋˜์–ด ์˜› ๋ฆฌ์กธ๋ฒ„์˜ ๊ฒฐ๊ณผ๊ฐ€ ๋‚จ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๊ฐ™์€ ๋ฆฌ์กธ๋ฒ„๋ฅผ ๋‹ค์‹œ ๋„˜๊ธฐ๋ฉด ์•„๋ฌด ์ผ๋„ ์—†์Šต๋‹ˆ๋‹ค.
142
148
  */
143
149
  static register(lib, resolver) {
144
- if (!this.libs.has(lib)) this.libs.set(lib, resolver);
150
+ const current = this.libs.get(lib);
151
+ if (current === resolver) return;
152
+ this.libs.set(lib, resolver);
153
+ if (current) this.invalidate(lib);
145
154
  }
146
155
  /**
147
156
  * ์ง€์ •๋œ ์•„์ด์ฝ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋“ฑ๋ก ํ•ด์ œํ•ฉ๋‹ˆ๋‹ค.
148
- * ํ•ด๋‹น ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์บ์‹œ ํ•ญ๋ชฉ๋„ ํ•จ๊ป˜ ๋น„์›๋‹ˆ๋‹ค โ€”
149
- * `unregister` ํ›„ ๋‹ค๋ฅธ ๋ฆฌ์กธ๋ฒ„๋ฅผ ์žฌ๋“ฑ๋กํ•  ๋•Œ ์ด์ „ ๊ฒฐ๊ณผ๊ฐ€ ๋‚จ์ง€ ์•Š๋„๋ก ํ•˜๊ธฐ ์œ„ํ•จ์ž…๋‹ˆ๋‹ค.
157
+ * ํ•ด๋‹น ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์บ์‹œ ํ•ญ๋ชฉ๊ณผ ์ง„ํ–‰ ์ค‘์ธ ๋ฆฌ์กธ๋ธŒ๋„ ํ•จ๊ป˜ ๋ฌดํšจ๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.
150
158
  */
151
159
  static unregister(lib) {
152
160
  this.libs.delete(lib);
161
+ this.invalidate(lib);
162
+ }
163
+ /** ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์บ์‹œ๋ฅผ ๋น„์šฐ๊ณ  ์„ธ๋Œ€๋ฅผ ์˜ฌ๋ ค ์ง„ํ–‰ ์ค‘์ธ ๋ฆฌ์กธ๋ธŒ๊ฐ€ ๊ฒฐ๊ณผ๋ฅผ ์“ฐ์ง€ ๋ชปํ•˜๊ฒŒ ํ•œ๋‹ค. */
164
+ static invalidate(lib) {
153
165
  IconCache.clear(lib);
166
+ this.generation.set(lib, (this.generation.get(lib) ?? 0) + 1);
167
+ const prefix = `${lib}:`;
168
+ for (const key of this.pending.keys()) if (key.startsWith(prefix)) this.pending.delete(key);
154
169
  }
155
170
  /**
156
171
  * ์ง€์ •๋œ ์•„์ด์ฝ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ svg ์•„์ด์ฝ˜ ์†Œ์Šค๋ฅผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.
@@ -191,10 +206,11 @@ var IconRegistry = class {
191
206
  const key = `${lib}:${name}`;
192
207
  const inflight = this.pending.get(key);
193
208
  if (inflight) return inflight;
209
+ const generation = this.generation.get(lib) ?? 0;
194
210
  const task = (async () => {
195
211
  try {
196
212
  const svg = (await fn())?.trim();
197
- IconCache.set(lib, name, svg);
213
+ if ((this.generation.get(lib) ?? 0) === generation) IconCache.set(lib, name, svg);
198
214
  return svg;
199
215
  } catch (error) {
200
216
  console.error(`[IconRegistry] Failed to resolve icon '${key}' (will retry):`, error);
@@ -202,7 +218,9 @@ var IconRegistry = class {
202
218
  }
203
219
  })();
204
220
  this.pending.set(key, task);
205
- task.finally(() => this.pending.delete(key));
221
+ task.finally(() => {
222
+ if (this.pending.get(key) === task) this.pending.delete(key);
223
+ });
206
224
  return task;
207
225
  }
208
226
  };
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.58.0",
4
+ "version": "2.0.0",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "components",
@@ -4,7 +4,6 @@ description: Web component library built on Lit. Covers all u-* custom elements
4
4
  license: MIT
5
5
  metadata:
6
6
  author: iyulab
7
- version: "1.4.0"
8
7
  ---
9
8
 
10
9
  # @iyulab/components
@@ -57,10 +56,10 @@ import { UButton, UInput } from '@iyulab/components/react';
57
56
 
58
57
  ### Buttons & Actions
59
58
 
60
- - [`u-button`](./references/components/button.md) โ€” Versatile button with multiple variants; renders as `<a>` when `href` is set
59
+ - [`u-button`](./references/components/button.md) โ€” Versatile button with multiple appearances; renders as `<a>` when `href` is set
61
60
  - [`u-icon-button`](./references/components/icon-button.md) โ€” Square icon-only button with built-in tooltip
62
61
  - [`u-copy-button`](./references/components/copy-button.md) โ€” Copies text to the clipboard with a transient confirmation
63
- - [`u-button-group`](./references/components/button-group.md) โ€” Groups buttons with shared variant and disabled state
62
+ - [`u-button-group`](./references/components/button-group.md) โ€” Groups buttons with shared appearance and disabled state
64
63
 
65
64
  ### Form Controls
66
65
 
@@ -121,6 +120,7 @@ carries the control's role, not on the host element. Native nodes use native `di
121
120
  - [`u-tag`](./references/components/tag.md) โ€” Non-interactive label tag
122
121
  - [`u-icon`](./references/components/icon.md) โ€” SVG icon from built-in or external icon library
123
122
  - [`u-text`](./references/components/text.md) โ€” Semantic typography step; optional heading level
123
+ - [`u-steps`](./references/components/steps.md) โ€” Display-only progress line: complete, current, on-hold and upcoming steps
124
124
 
125
125
  ---
126
126
 
@@ -13,9 +13,9 @@ Closable message banner with status icons, auto-dismiss timer, and open/hide tra
13
13
  Your changes have been saved.
14
14
  </u-alert>
15
15
 
16
- <u-alert status="error" variant="outlined" open>
16
+ <u-alert status="error" appearance="outlined" open>
17
17
  Failed to load data.
18
- <u-button slot="footer" variant="solid">Retry</u-button>
18
+ <u-button slot="footer" appearance="solid">Retry</u-button>
19
19
  </u-alert>
20
20
  ```
21
21
 
@@ -34,7 +34,7 @@ Closable message banner with status icons, auto-dismiss timer, and open/hide tra
34
34
  |----------|------|---------|---------|-------------|
35
35
  | `open` | `boolean` | `false` | โœ“ | Show/hide the alert |
36
36
  | `closable` | `boolean` | `false` | โœ“ | Show close button |
37
- | `variant` | `'solid'\|'filled'\|'outlined'\|'glass'` | `'solid'` | โœ“ | Visual style |
37
+ | `appearance` | `'soft'\|'outlined'` | `'soft'` | โœ“ | `soft` status-colour tint, no outline ยท `outlined` status-colour border on a transparent face |
38
38
  | `status` | `'error'\|'warning'\|'success'\|'info'\|'notice'` | โ€” | โœ“ | Status type; controls icon and color |
39
39
  | `title` | `string` | `''` | โ€” | Title label. Left empty, the status name in the current locale is shown (`Locale.set('ko')` โ†’ ใ€Œ์˜ค๋ฅ˜ใ€), not the raw status value |
40
40
  | `duration` | `number` | `0` | โ€” | Auto-dismiss delay in ms; `0` disables |
@@ -69,6 +69,6 @@ Closable message banner with status icons, auto-dismiss timer, and open/hide tra
69
69
 
70
70
  | Property | Description |
71
71
  |----------|-------------|
72
- | `--alert-background-color` | Background color (auto-set by status) |
73
- | `--alert-border-color` | Border color (auto-set by status) |
72
+ | `--alert-background-color` | Background color (auto-set by status; transparent for `appearance="outlined"`) |
73
+ | `--alert-border-color` | Border color (auto-set by status; transparent for `appearance="soft"`) |
74
74
  | `--alert-icon-color` | Icon color (auto-set by status) |