@iyulab/components 1.58.0 → 2.0.1
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 +171 -0
- package/README.md +6 -4
- 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/date-text-controller.d.ts +5 -0
- package/dist/components/calendar/date-text-controller.js +7 -0
- 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 +9 -4
- 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 +8 -3
- 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
|
@@ -2,9 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { UMenuItem as UMenuItemElement } from '@iyulab/components/dist/components/menu-item/UMenuItem.js';
|
|
3
3
|
import { type PickEventDetail } from '@iyulab/components/dist/events/PickEvent.js';
|
|
4
4
|
|
|
5
|
+
type UMenuItemOwnProps = Omit<UMenuItemElement, keyof HTMLElement>;
|
|
6
|
+
|
|
5
7
|
export declare const UMenuItem: React.ForwardRefExoticComponent<
|
|
6
|
-
Omit<
|
|
7
|
-
& Omit<React.HTMLAttributes<UMenuItemElement>, 'onPick'>
|
|
8
|
+
Partial<Omit<UMenuItemElement, Exclude<keyof React.HTMLAttributes<UMenuItemElement>, keyof UMenuItemOwnProps>>>
|
|
9
|
+
& Omit<React.HTMLAttributes<UMenuItemElement>, keyof UMenuItemOwnProps | 'onPick'>
|
|
8
10
|
& React.RefAttributes<UMenuItemElement>
|
|
9
11
|
& {
|
|
10
12
|
onPick?: (event: CustomEvent<PickEventDetail>) => void;
|
package/dist/react/UOption.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UOption as UOptionElement } from '@iyulab/components/dist/components/option/UOption.js';
|
|
3
3
|
|
|
4
|
+
type UOptionOwnProps = Omit<UOptionElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UOption: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UOptionElement>, never>
|
|
7
|
+
Partial<Omit<UOptionElement, Exclude<keyof React.HTMLAttributes<UOptionElement>, keyof UOptionOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UOptionElement>, keyof UOptionOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UOptionElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
package/dist/react/UPanel.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UPanel as UPanelElement } from '@iyulab/components/dist/components/panel/UPanel.js';
|
|
3
3
|
|
|
4
|
+
type UPanelOwnProps = Omit<UPanelElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UPanel: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UPanelElement>, never>
|
|
7
|
+
Partial<Omit<UPanelElement, Exclude<keyof React.HTMLAttributes<UPanelElement>, keyof UPanelOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UPanelElement>, keyof UPanelOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UPanelElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
package/dist/react/UPopover.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { UPopover as UPopoverElement } 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 UPopoverOwnProps = Omit<UPopoverElement, keyof HTMLElement>;
|
|
7
|
+
|
|
6
8
|
export declare const UPopover: React.ForwardRefExoticComponent<
|
|
7
|
-
Omit<
|
|
8
|
-
& Omit<React.HTMLAttributes<UPopoverElement>, 'onShow' | 'onHide'>
|
|
9
|
+
Partial<Omit<UPopoverElement, Exclude<keyof React.HTMLAttributes<UPopoverElement>, keyof UPopoverOwnProps>>>
|
|
10
|
+
& Omit<React.HTMLAttributes<UPopoverElement>, keyof UPopoverOwnProps | 'onShow' | 'onHide'>
|
|
9
11
|
& React.RefAttributes<UPopoverElement>
|
|
10
12
|
& {
|
|
11
13
|
onShow?: (event: CustomEvent<ShowEventDetail>) => void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UProgressBar as UProgressBarElement } from '@iyulab/components/dist/components/progress-bar/UProgressBar.js';
|
|
3
3
|
|
|
4
|
+
type UProgressBarOwnProps = Omit<UProgressBarElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UProgressBar: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UProgressBarElement>, never>
|
|
7
|
+
Partial<Omit<UProgressBarElement, Exclude<keyof React.HTMLAttributes<UProgressBarElement>, keyof UProgressBarOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UProgressBarElement>, keyof UProgressBarOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UProgressBarElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UProgressRing as UProgressRingElement } from '@iyulab/components/dist/components/progress-ring/UProgressRing.js';
|
|
3
3
|
|
|
4
|
+
type UProgressRingOwnProps = Omit<UProgressRingElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const UProgressRing: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<UProgressRingElement>, never>
|
|
7
|
+
Partial<Omit<UProgressRingElement, Exclude<keyof React.HTMLAttributes<UProgressRingElement>, keyof UProgressRingOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UProgressRingElement>, keyof UProgressRingOwnProps | never>
|
|
7
9
|
& React.RefAttributes<UProgressRingElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
package/dist/react/URadio.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { URadio as URadioElement } from '@iyulab/components/dist/components/radio/URadio.js';
|
|
3
3
|
|
|
4
|
+
type URadioOwnProps = Omit<URadioElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const URadio: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<URadioElement>, 'onChange'>
|
|
7
|
+
Partial<Omit<URadioElement, Exclude<keyof React.HTMLAttributes<URadioElement>, keyof URadioOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<URadioElement>, keyof URadioOwnProps | 'onChange'>
|
|
7
9
|
& React.RefAttributes<URadioElement>
|
|
8
10
|
& {
|
|
9
11
|
onChange?: (event: CustomEvent) => void;
|
package/dist/react/URating.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { URating as URatingElement } from '@iyulab/components/dist/components/rating/URating.js';
|
|
3
3
|
|
|
4
|
+
type URatingOwnProps = Omit<URatingElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const URating: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<URatingElement>, 'onChange'>
|
|
7
|
+
Partial<Omit<URatingElement, Exclude<keyof React.HTMLAttributes<URatingElement>, keyof URatingOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<URatingElement>, keyof URatingOwnProps | 'onChange'>
|
|
7
9
|
& React.RefAttributes<URatingElement>
|
|
8
10
|
& {
|
|
9
11
|
onChange?: (event: CustomEvent) => void;
|
package/dist/react/USelect.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { USelect as USelectElement } from '@iyulab/components/dist/components/select/USelect.js';
|
|
3
3
|
|
|
4
|
+
type USelectOwnProps = Omit<USelectElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const USelect: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<USelectElement>, 'onChange' | 'onSearch'>
|
|
7
|
+
Partial<Omit<USelectElement, Exclude<keyof React.HTMLAttributes<USelectElement>, keyof USelectOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<USelectElement>, keyof USelectOwnProps | 'onChange' | 'onSearch'>
|
|
7
9
|
& React.RefAttributes<USelectElement>
|
|
8
10
|
& {
|
|
9
11
|
onChange?: (event: CustomEvent) => void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { USkeleton as USkeletonElement } from '@iyulab/components/dist/components/skeleton/USkeleton.js';
|
|
3
3
|
|
|
4
|
+
type USkeletonOwnProps = Omit<USkeletonElement, keyof HTMLElement>;
|
|
5
|
+
|
|
4
6
|
export declare const USkeleton: React.ForwardRefExoticComponent<
|
|
5
|
-
Omit<
|
|
6
|
-
& Omit<React.HTMLAttributes<USkeletonElement>, never>
|
|
7
|
+
Partial<Omit<USkeletonElement, Exclude<keyof React.HTMLAttributes<USkeletonElement>, keyof USkeletonOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<USkeletonElement>, keyof USkeletonOwnProps | never>
|
|
7
9
|
& React.RefAttributes<USkeletonElement>
|
|
8
10
|
& {
|
|
9
11
|
}
|
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;
|