@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.
- package/CHANGELOG.md +156 -0
- package/README.md +3 -1
- package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +1 -1
- package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +1 -1
- package/dist/assets/locales/ar.json.js +5 -1
- package/dist/assets/locales/de.json.js +5 -1
- package/dist/assets/locales/en.json.js +5 -1
- package/dist/assets/locales/es.json.js +5 -1
- package/dist/assets/locales/fr.json.js +5 -1
- package/dist/assets/locales/id.json.js +5 -1
- package/dist/assets/locales/ja.json.js +5 -1
- package/dist/assets/locales/ko.json.js +5 -1
- package/dist/assets/locales/pt-BR.json.js +5 -1
- package/dist/assets/locales/ru.json.js +5 -1
- package/dist/assets/locales/th.json.js +5 -1
- package/dist/assets/locales/vi.json.js +5 -1
- package/dist/assets/locales/zh-CN.json.js +5 -1
- package/dist/assets/locales/zh-TW.json.js +5 -1
- package/dist/components/UElement.styles.js +2 -2
- package/dist/components/alert/UAlert.d.ts +12 -7
- package/dist/components/alert/UAlert.js +3 -3
- package/dist/components/alert/UAlert.styles.js +6 -23
- package/dist/components/badge/UBadge.d.ts +5 -5
- package/dist/components/badge/UBadge.js +3 -3
- package/dist/components/badge/UBadge.styles.js +4 -4
- package/dist/components/breadcrumb-item/UBreadcrumbItem.styles.js +1 -1
- package/dist/components/button/UButton.d.ts +32 -16
- package/dist/components/button/UButton.js +38 -5
- package/dist/components/button/UButton.styles.js +67 -50
- package/dist/components/button/forwarded-aria.d.ts +6 -0
- package/dist/components/button/forwarded-aria.js +15 -0
- package/dist/components/button-group/UButtonGroup.d.ts +4 -4
- package/dist/components/button-group/UButtonGroup.js +8 -8
- package/dist/components/button-group/UButtonGroup.styles.js +2 -2
- package/dist/components/calendar/UCalendar.styles.js +4 -3
- package/dist/components/calendar/picker.styles.js +7 -2
- package/dist/components/card/UCard.d.ts +4 -3
- package/dist/components/card/UCard.js +3 -3
- package/dist/components/card/UCard.styles.js +2 -1
- package/dist/components/carousel/UCarousel.js +2 -2
- package/dist/components/carousel/UCarousel.styles.js +17 -6
- package/dist/components/checkbox/UCheckbox.d.ts +8 -9
- package/dist/components/checkbox/UCheckbox.js +3 -3
- package/dist/components/checkbox/UCheckbox.styles.js +22 -18
- package/dist/components/chip/UChip.d.ts +2 -2
- package/dist/components/chip/UChip.js +4 -4
- package/dist/components/copy-button/UCopyButton.d.ts +2 -2
- package/dist/components/copy-button/UCopyButton.js +4 -4
- package/dist/components/date-picker/UDatePicker.d.ts +3 -0
- package/dist/components/date-picker/UDatePicker.js +8 -3
- package/dist/components/date-picker/UDatePicker.styles.js +13 -2
- package/dist/components/date-range-picker/UDateRangePicker.d.ts +3 -0
- package/dist/components/date-range-picker/UDateRangePicker.js +7 -2
- package/dist/components/date-range-picker/UDateRangePicker.styles.js +13 -3
- package/dist/components/dialog/UDialog.js +1 -1
- package/dist/components/divider/UDivider.d.ts +3 -3
- package/dist/components/divider/UDivider.js +2 -2
- package/dist/components/divider/UDivider.styles.js +5 -5
- package/dist/components/drawer/UDrawer.js +1 -1
- package/dist/components/expander/UExpander.styles.js +2 -2
- package/dist/components/file-input/UFileInput.styles.js +5 -2
- package/dist/components/icon-button/UIconButton.d.ts +4 -3
- package/dist/components/icon-button/UIconButton.js +16 -6
- package/dist/components/icon-button/UIconButton.styles.js +2 -2
- package/dist/components/input/UInput.d.ts +12 -5
- package/dist/components/input/UInput.js +7 -4
- package/dist/components/input/UInput.styles.js +60 -30
- package/dist/components/menu/UMenu.d.ts +5 -4
- package/dist/components/menu/UMenu.js +3 -3
- package/dist/components/menu/UMenu.styles.js +1 -1
- package/dist/components/menu-item/UMenuItem.styles.js +1 -1
- package/dist/components/option/UOption.d.ts +1 -0
- package/dist/components/option/UOption.js +6 -3
- package/dist/components/option/UOption.styles.js +1 -1
- package/dist/components/progress-bar/UProgressBar.styles.js +11 -0
- package/dist/components/radio/URadio.d.ts +27 -6
- package/dist/components/radio/URadio.js +48 -12
- package/dist/components/radio/URadio.styles.js +47 -13
- package/dist/components/rating/URating.styles.js +5 -1
- package/dist/components/select/USelect.d.ts +9 -2
- package/dist/components/select/USelect.js +7 -2
- package/dist/components/select/USelect.styles.js +55 -26
- package/dist/components/slider/USlider.styles.js +4 -4
- package/dist/components/spinner/USpinner.styles.js +2 -0
- package/dist/components/split-panel/USplitPanel.styles.js +2 -1
- package/dist/components/steps/USteps.d.ts +57 -0
- package/dist/components/steps/USteps.js +58 -0
- package/dist/components/steps/USteps.styles.d.ts +1 -0
- package/dist/components/steps/USteps.styles.js +110 -0
- package/dist/components/switch/USwitch.styles.js +5 -3
- package/dist/components/tab/UTab.js +2 -2
- package/dist/components/tab/UTab.styles.js +1 -1
- package/dist/components/tab-panel/UTabPanel.d.ts +11 -2
- package/dist/components/tab-panel/UTabPanel.js +33 -5
- package/dist/components/tab-panel/UTabPanel.styles.js +29 -29
- package/dist/components/tag/UTag.d.ts +14 -6
- package/dist/components/tag/UTag.js +8 -3
- package/dist/components/tag/UTag.styles.js +33 -26
- package/dist/components/textarea/UTextarea.d.ts +9 -3
- package/dist/components/textarea/UTextarea.js +7 -2
- package/dist/components/textarea/UTextarea.styles.js +41 -22
- package/dist/components/tree-item/UTreeItem.styles.js +7 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/plugins/vite-plugin-react-wrapper.js +14 -5
- package/dist/react/UAlert.d.ts +4 -2
- package/dist/react/UAvatar.d.ts +4 -2
- package/dist/react/UBadge.d.ts +4 -2
- package/dist/react/UBreadcrumb.d.ts +4 -2
- package/dist/react/UBreadcrumbItem.d.ts +4 -2
- package/dist/react/UButton.d.ts +4 -2
- package/dist/react/UButtonGroup.d.ts +4 -2
- package/dist/react/UCard.d.ts +4 -2
- package/dist/react/UCarousel.d.ts +4 -2
- package/dist/react/UCheckbox.d.ts +4 -2
- package/dist/react/UChip.d.ts +4 -2
- package/dist/react/UCopyButton.d.ts +4 -2
- package/dist/react/UDatePicker.d.ts +4 -2
- package/dist/react/UDateRangePicker.d.ts +4 -2
- package/dist/react/UDialog.d.ts +4 -2
- package/dist/react/UDivider.d.ts +4 -2
- package/dist/react/UDrawer.d.ts +4 -2
- package/dist/react/UExpander.d.ts +4 -2
- package/dist/react/UField.d.ts +4 -2
- package/dist/react/UFileInput.d.ts +4 -2
- package/dist/react/UForm.d.ts +4 -2
- package/dist/react/UIcon.d.ts +4 -2
- package/dist/react/UIconButton.d.ts +4 -2
- package/dist/react/UInput.d.ts +4 -2
- package/dist/react/UMenu.d.ts +4 -2
- package/dist/react/UMenuItem.d.ts +4 -2
- package/dist/react/UOption.d.ts +4 -2
- package/dist/react/UPanel.d.ts +4 -2
- package/dist/react/UPopover.d.ts +4 -2
- package/dist/react/UProgressBar.d.ts +4 -2
- package/dist/react/UProgressRing.d.ts +4 -2
- package/dist/react/URadio.d.ts +4 -2
- package/dist/react/URating.d.ts +4 -2
- package/dist/react/USelect.d.ts +4 -2
- package/dist/react/USkeleton.d.ts +4 -2
- package/dist/react/USlider.d.ts +4 -2
- package/dist/react/USpinner.d.ts +4 -2
- package/dist/react/USplitPanel.d.ts +4 -2
- package/dist/react/USteps.d.ts +14 -0
- package/dist/react/USteps.js +10 -0
- package/dist/react/USwitch.d.ts +4 -2
- package/dist/react/UTab.d.ts +4 -2
- package/dist/react/UTabPanel.d.ts +4 -2
- package/dist/react/UTag.d.ts +4 -2
- package/dist/react/UText.d.ts +4 -2
- package/dist/react/UTextarea.d.ts +4 -2
- package/dist/react/UTooltip.d.ts +4 -2
- package/dist/react/UTree.d.ts +4 -2
- package/dist/react/UTreeItem.d.ts +4 -2
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/styles/dark.css +42 -0
- package/dist/styles/light.css +44 -0
- package/dist/utilities/Dialog.d.ts +2 -2
- package/dist/utilities/Dialog.js +3 -3
- package/dist/utilities/Locale.d.ts +1 -1
- package/dist/utilities/Toast.d.ts +2 -2
- package/dist/utilities/Toast.js +1 -1
- package/dist/utilities/icons.d.ts +12 -3
- package/dist/utilities/icons.js +24 -6
- package/package.json +1 -1
- package/skills/iyulab-components/SKILL.md +3 -3
- package/skills/iyulab-components/references/components/alert.md +5 -5
- package/skills/iyulab-components/references/components/badge.md +3 -3
- package/skills/iyulab-components/references/components/button-group.md +3 -3
- package/skills/iyulab-components/references/components/button.md +34 -19
- package/skills/iyulab-components/references/components/card.md +3 -3
- package/skills/iyulab-components/references/components/checkbox.md +5 -5
- package/skills/iyulab-components/references/components/chip.md +2 -2
- package/skills/iyulab-components/references/components/copy-button.md +1 -1
- package/skills/iyulab-components/references/components/date-picker.md +1 -0
- package/skills/iyulab-components/references/components/date-range-picker.md +1 -0
- package/skills/iyulab-components/references/components/dialog.md +2 -2
- package/skills/iyulab-components/references/components/divider.md +2 -2
- package/skills/iyulab-components/references/components/drawer.md +1 -1
- package/skills/iyulab-components/references/components/field.md +1 -1
- package/skills/iyulab-components/references/components/icon-button.md +8 -2
- package/skills/iyulab-components/references/components/input.md +4 -2
- package/skills/iyulab-components/references/components/menu.md +1 -1
- package/skills/iyulab-components/references/components/radio.md +16 -4
- package/skills/iyulab-components/references/components/select.md +2 -1
- package/skills/iyulab-components/references/components/steps.md +66 -0
- package/skills/iyulab-components/references/components/tab-panel.md +10 -3
- package/skills/iyulab-components/references/components/tag.md +11 -7
- package/skills/iyulab-components/references/components/textarea.md +2 -1
- package/skills/iyulab-components/references/usage.md +1 -1
- package/skills/iyulab-components/references/utilities/dialog.md +2 -2
- package/skills/iyulab-components/references/utilities/icons.md +2 -2
- package/skills/iyulab-components/references/utilities/theme.md +9 -5
- package/skills/iyulab-components/references/utilities/toast.md +2 -2
package/dist/react/USlider.d.ts
CHANGED
|
@@ -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<
|
|
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;
|
package/dist/react/USpinner.d.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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
|
+
});
|
package/dist/react/USwitch.d.ts
CHANGED
|
@@ -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<
|
|
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;
|
package/dist/react/UTab.d.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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;
|
package/dist/react/UTag.d.ts
CHANGED
|
@@ -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<
|
|
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
|
}
|
package/dist/react/UText.d.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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;
|
package/dist/react/UTooltip.d.ts
CHANGED
|
@@ -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<
|
|
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;
|
package/dist/react/UTree.d.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/react/index.js
CHANGED
|
@@ -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';
|
package/dist/styles/dark.css
CHANGED
|
@@ -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 */
|
package/dist/styles/light.css
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
58
|
+
appearance?: ButtonAppearance;
|
|
59
59
|
/** ๋ฒํผ ์ (๊ธฐ๋ณธ: ๋ฒํผ์ ๊ธฐ๋ณธ์) */
|
|
60
60
|
color?: ButtonColor;
|
|
61
61
|
}
|
package/dist/utilities/Dialog.js
CHANGED
|
@@ -34,7 +34,7 @@ var Dialog = class {
|
|
|
34
34
|
actions: [{
|
|
35
35
|
label: options?.cancelLabel || Locale.getValue("cancel"),
|
|
36
36
|
value: "cancel",
|
|
37
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
9
|
+
appearance?: AlertAppearance;
|
|
10
10
|
/** ์๋ฆผ ์ ๋ชฉ */
|
|
11
11
|
title?: string;
|
|
12
12
|
/** ํ์ ํ๋ฉด ์์น */
|
package/dist/utilities/Toast.js
CHANGED
|
@@ -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.
|
|
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
|
*
|
package/dist/utilities/icons.js
CHANGED
|
@@ -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
|
-
|
|
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(() =>
|
|
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
|
@@ -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
|
|
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
|
|
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"
|
|
16
|
+
<u-alert status="error" appearance="outlined" open>
|
|
17
17
|
Failed to load data.
|
|
18
|
-
<u-button slot="footer"
|
|
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
|
-
| `
|
|
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) |
|