@iyulab/components 0.1.7 → 0.1.9
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 +49 -19
- package/LICENSE +20 -20
- package/README.md +26 -33
- package/dist/assets/icons/arrow-clockwise.svg.js +1 -1
- package/dist/assets/icons/arrow-down.svg.js +1 -1
- package/dist/assets/icons/arrow-up.svg.js +1 -1
- package/dist/assets/icons/ban.svg.js +1 -1
- package/dist/assets/icons/bell-fill.svg.js +1 -1
- package/dist/assets/icons/check-circle-fill.svg.js +1 -1
- package/dist/assets/icons/check-lg.svg.js +1 -1
- package/dist/assets/icons/chevron-down.svg.js +1 -1
- package/dist/assets/icons/chevron-left.svg.js +1 -1
- package/dist/assets/icons/chevron-right.svg.js +1 -1
- package/dist/assets/icons/chevron-up.svg.js +1 -1
- package/dist/assets/icons/copy.svg.js +1 -1
- package/dist/assets/icons/dash-lg.svg.js +1 -1
- package/dist/assets/icons/exclamation-circle-fill.svg.js +1 -1
- package/dist/assets/icons/exclamation-triangle-fill.svg.js +1 -1
- package/dist/assets/icons/eye-slash.svg.js +1 -1
- package/dist/assets/icons/eye.svg.js +1 -1
- package/dist/assets/icons/info-circle-fill.svg.js +1 -1
- package/dist/assets/icons/layout-sidebar.svg.js +1 -1
- package/dist/assets/icons/lightbulb-fill.svg.js +1 -1
- package/dist/assets/icons/lightbulb-off.svg.js +1 -1
- package/dist/assets/icons/lightbulb.svg.js +1 -1
- package/dist/assets/icons/mic-fill.svg.js +1 -1
- package/dist/assets/icons/mic-mute-fill.svg.js +1 -1
- package/dist/assets/icons/paperclip.svg.js +1 -1
- package/dist/assets/icons/pencil-square.svg.js +1 -1
- package/dist/assets/icons/plus-lg.svg.js +1 -1
- package/dist/assets/icons/search.svg.js +1 -1
- package/dist/assets/icons/speedometer.svg.js +1 -1
- package/dist/assets/icons/x-lg.svg.js +1 -1
- package/dist/assets/styles/dark.css +129 -129
- package/dist/assets/styles/dark.css.js +1 -1
- package/dist/assets/styles/light.css +129 -129
- package/dist/assets/styles/light.css.js +1 -1
- package/dist/components/BaseElement.styles.js +1 -1
- package/dist/components/FloatingElement.d.ts +31 -19
- package/dist/components/FloatingElement.js +46 -34
- package/dist/components/FloatingElement.styles.js +5 -4
- package/dist/components/ModalElement.d.ts +70 -0
- package/dist/components/ModalElement.js +144 -0
- package/dist/components/ModalElement.styles.js +29 -0
- package/dist/components/alert/{Alert.d.ts → UAlert.component.d.ts} +1 -1
- package/dist/components/alert/{Alert.js → UAlert.component.js} +20 -18
- package/dist/components/alert/UAlert.d.ts +8 -0
- package/dist/components/alert/UAlert.js +5 -0
- package/dist/components/alert/{Alert.styles.js → UAlert.styles.js} +1 -3
- package/dist/components/button/{Button.d.ts → UButton.component.d.ts} +1 -1
- package/dist/components/button/{Button.js → UButton.component.js} +7 -7
- package/dist/components/button/UButton.d.ts +7 -0
- package/dist/components/button/UButton.js +5 -0
- package/dist/components/dialog/UDialog.component.d.ts +15 -0
- package/dist/components/dialog/UDialog.component.js +65 -0
- package/dist/components/dialog/UDialog.d.ts +7 -0
- package/dist/components/dialog/UDialog.js +5 -0
- package/dist/components/dialog/{Dialog.styles.js → UDialog.styles.js} +14 -29
- package/dist/components/divider/{Divider.d.ts → UDivider.component.d.ts} +1 -1
- package/dist/components/divider/{Divider.js → UDivider.component.js} +6 -6
- package/dist/components/divider/UDivider.d.ts +7 -0
- package/dist/components/divider/UDivider.js +5 -0
- package/dist/components/drawer/UDrawer.component.d.ts +16 -0
- package/dist/components/drawer/UDrawer.component.js +59 -0
- package/dist/components/drawer/UDrawer.d.ts +8 -0
- package/dist/components/drawer/UDrawer.js +5 -0
- package/dist/components/drawer/UDrawer.styles.js +82 -0
- package/dist/components/form/{Form.d.ts → UForm.component.d.ts} +2 -2
- package/dist/components/form/{Form.js → UForm.component.js} +14 -12
- package/dist/components/form/UForm.d.ts +7 -0
- package/dist/components/form/UForm.js +5 -0
- package/dist/components/icon/{Icon.d.ts → UIcon.component.d.ts} +5 -4
- package/dist/components/icon/{Icon.js → UIcon.component.js} +9 -10
- package/dist/components/icon/UIcon.d.ts +8 -0
- package/dist/components/icon/UIcon.js +5 -0
- package/dist/components/icon-button/{IconButton.d.ts → UIconButton.component.d.ts} +3 -2
- package/dist/components/icon-button/{IconButton.js → UIconButton.component.js} +15 -15
- package/dist/components/icon-button/UIconButton.d.ts +7 -0
- package/dist/components/icon-button/UIconButton.js +5 -0
- package/dist/components/input/{Input.d.ts → UInput.component.d.ts} +14 -10
- package/dist/components/input/{Input.js → UInput.component.js} +71 -76
- package/dist/components/input/UInput.d.ts +7 -0
- package/dist/components/input/UInput.js +5 -0
- package/dist/components/input/{Input.styles.js → UInput.styles.js} +27 -24
- package/dist/components/menu/UMenu.component.d.ts +70 -0
- package/dist/components/menu/UMenu.component.js +327 -0
- package/dist/components/menu/UMenu.d.ts +8 -0
- package/dist/components/menu/UMenu.js +5 -0
- package/dist/components/menu/UMenu.styles.js +39 -0
- package/dist/components/menu-item/UMenuItem.component.d.ts +19 -0
- package/dist/components/menu-item/UMenuItem.component.js +96 -0
- package/dist/components/menu-item/UMenuItem.d.ts +7 -0
- package/dist/components/menu-item/UMenuItem.js +5 -0
- package/dist/components/menu-item/UMenuItem.styles.js +65 -0
- package/dist/components/progress-bar/{ProgressBar.d.ts → UProgressBar.component.d.ts} +1 -1
- package/dist/components/progress-bar/{ProgressBar.js → UProgressBar.component.js} +10 -10
- package/dist/components/progress-bar/UProgressBar.d.ts +7 -0
- package/dist/components/progress-bar/UProgressBar.js +5 -0
- package/dist/components/progress-ring/{ProgressRing.d.ts → UProgressRing.component.d.ts} +1 -1
- package/dist/components/progress-ring/{ProgressRing.js → UProgressRing.component.js} +9 -9
- package/dist/components/progress-ring/UProgressRing.d.ts +8 -0
- package/dist/components/progress-ring/UProgressRing.js +5 -0
- package/dist/components/skeleton/USkeleton.component.d.ts +22 -0
- package/dist/components/skeleton/USkeleton.component.js +58 -0
- package/dist/components/skeleton/USkeleton.d.ts +8 -0
- package/dist/components/skeleton/USkeleton.js +5 -0
- package/dist/components/skeleton/USkeleton.styles.js +74 -0
- package/dist/components/spinner/{Spinner.d.ts → USpinner.component.d.ts} +1 -1
- package/dist/components/spinner/{Spinner.js → USpinner.component.js} +3 -3
- package/dist/components/spinner/USpinner.d.ts +7 -0
- package/dist/components/spinner/USpinner.js +5 -0
- package/dist/components/split-panel/{SplitPanel.d.ts → USplitPanel.component.d.ts} +1 -1
- package/dist/components/split-panel/{SplitPanel.js → USplitPanel.component.js} +13 -13
- package/dist/components/split-panel/USplitPanel.d.ts +7 -0
- package/dist/components/split-panel/USplitPanel.js +5 -0
- package/dist/components/tooltip/{Tooltip.d.ts → UTooltip.component.d.ts} +6 -7
- package/dist/components/tooltip/{Tooltip.js → UTooltip.component.js} +12 -16
- package/dist/components/tooltip/UTooltip.d.ts +7 -0
- package/dist/components/tooltip/UTooltip.js +5 -0
- package/dist/components/tooltip/{Tooltip.styles.js → UTooltip.styles.js} +1 -0
- package/dist/components/tree/{Tree.d.ts → UTree.component.d.ts} +4 -4
- package/dist/components/tree/{Tree.js → UTree.component.js} +12 -23
- package/dist/components/tree/UTree.d.ts +7 -0
- package/dist/components/tree/UTree.js +5 -0
- package/dist/components/tree/{Tree.styles.js → UTree.styles.js} +0 -1
- package/dist/components/tree-item/{TreeItem.d.ts → UTreeItem.component.d.ts} +2 -2
- package/dist/components/tree-item/{TreeItem.js → UTreeItem.component.js} +16 -24
- package/dist/components/tree-item/UTreeItem.d.ts +7 -0
- package/dist/components/tree-item/UTreeItem.js +5 -0
- package/dist/index.d.ts +28 -2
- package/dist/index.js +38 -42
- package/dist/internals/attribute-converters.d.ts +5 -3
- package/dist/internals/node-helpers.d.ts +9 -9
- package/dist/internals/node-helpers.js +2 -2
- package/dist/{integrations/react → react-components}/UAlert.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UAlert.js +2 -2
- package/dist/{integrations/react → react-components}/UButton.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UButton.js +2 -2
- package/dist/{integrations/react → react-components}/UDialog.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UDialog.js +2 -2
- package/dist/{integrations/react → react-components}/UDivider.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UDivider.js +2 -2
- package/dist/react-components/UDrawer.d.ts +8 -0
- package/dist/react-components/UDrawer.js +10 -0
- package/dist/{integrations/react → react-components}/UForm.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UForm.js +2 -2
- package/dist/{integrations/react → react-components}/UIcon.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UIcon.js +2 -2
- package/dist/{integrations/react → react-components}/UIconButton.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UIconButton.js +2 -2
- package/dist/{integrations/react → react-components}/UInput.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UInput.js +2 -2
- package/dist/{integrations/react → react-components}/UMenu.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UMenu.js +2 -2
- package/dist/{integrations/react → react-components}/UMenuItem.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UMenuItem.js +2 -2
- package/dist/{integrations/react → react-components}/UProgressBar.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UProgressBar.js +2 -2
- package/dist/{integrations/react → react-components}/UProgressRing.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UProgressRing.js +2 -2
- package/dist/react-components/USkeleton.d.ts +8 -0
- package/dist/react-components/USkeleton.js +10 -0
- package/dist/{integrations/react → react-components}/USpinner.d.ts +2 -2
- package/dist/{integrations/react → react-components}/USpinner.js +2 -2
- package/dist/{integrations/react → react-components}/USplitPanel.d.ts +2 -2
- package/dist/{integrations/react → react-components}/USplitPanel.js +2 -2
- package/dist/{integrations/react → react-components}/UTooltip.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UTooltip.js +2 -2
- package/dist/{integrations/react → react-components}/UTree.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UTree.js +2 -2
- package/dist/{integrations/react → react-components}/UTreeItem.d.ts +2 -2
- package/dist/{integrations/react → react-components}/UTreeItem.js +2 -2
- package/dist/{integrations/react → react-components}/index.d.ts +2 -3
- package/dist/{integrations/react → react-components}/index.js +2 -3
- package/dist/utilities/icons.js +1 -4
- package/dist/utilities/notifier.d.ts +1 -1
- package/dist/utilities/notifier.js +3 -3
- package/package.json +60 -59
- package/dist/components/alert/index.d.ts +0 -7
- package/dist/components/alert/index.js +0 -5
- package/dist/components/button/index.d.ts +0 -7
- package/dist/components/button/index.js +0 -5
- package/dist/components/context-menu/ContextMenu.d.ts +0 -29
- package/dist/components/context-menu/ContextMenu.js +0 -148
- package/dist/components/context-menu/ContextMenu.styles.js +0 -15
- package/dist/components/context-menu/index.d.ts +0 -7
- package/dist/components/context-menu/index.js +0 -5
- package/dist/components/copy-button/CopyButton.d.ts +0 -19
- package/dist/components/copy-button/CopyButton.js +0 -69
- package/dist/components/copy-button/CopyButton.styles.js +0 -17
- package/dist/components/copy-button/index.d.ts +0 -7
- package/dist/components/copy-button/index.js +0 -5
- package/dist/components/dialog/Dialog.d.ts +0 -37
- package/dist/components/dialog/Dialog.js +0 -160
- package/dist/components/dialog/index.d.ts +0 -7
- package/dist/components/dialog/index.js +0 -5
- package/dist/components/divider/index.d.ts +0 -7
- package/dist/components/divider/index.js +0 -5
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +0 -27
- package/dist/components/dropdown-menu/DropdownMenu.js +0 -135
- package/dist/components/dropdown-menu/DropdownMenu.styles.js +0 -15
- package/dist/components/dropdown-menu/index.d.ts +0 -7
- package/dist/components/dropdown-menu/index.js +0 -5
- package/dist/components/form/index.d.ts +0 -7
- package/dist/components/form/index.js +0 -5
- package/dist/components/icon/index.d.ts +0 -7
- package/dist/components/icon/index.js +0 -5
- package/dist/components/icon-button/index.d.ts +0 -7
- package/dist/components/icon-button/index.js +0 -5
- package/dist/components/index.d.ts +0 -20
- package/dist/components/input/index.d.ts +0 -7
- package/dist/components/input/index.js +0 -5
- package/dist/components/menu/Menu.d.ts +0 -25
- package/dist/components/menu/Menu.js +0 -168
- package/dist/components/menu/Menu.styles.js +0 -21
- package/dist/components/menu/index.d.ts +0 -7
- package/dist/components/menu/index.js +0 -5
- package/dist/components/menu-item/MenuItem.d.ts +0 -36
- package/dist/components/menu-item/MenuItem.js +0 -267
- package/dist/components/menu-item/MenuItem.styles.js +0 -70
- package/dist/components/menu-item/index.d.ts +0 -7
- package/dist/components/menu-item/index.js +0 -5
- package/dist/components/progress-bar/index.d.ts +0 -7
- package/dist/components/progress-bar/index.js +0 -5
- package/dist/components/progress-ring/index.d.ts +0 -7
- package/dist/components/progress-ring/index.js +0 -5
- package/dist/components/spinner/index.d.ts +0 -7
- package/dist/components/spinner/index.js +0 -5
- package/dist/components/split-panel/index.d.ts +0 -7
- package/dist/components/split-panel/index.js +0 -5
- package/dist/components/tooltip/index.d.ts +0 -7
- package/dist/components/tooltip/index.js +0 -5
- package/dist/components/tree/index.d.ts +0 -3
- package/dist/components/tree/index.js +0 -5
- package/dist/components/tree-item/index.d.ts +0 -3
- package/dist/components/tree-item/index.js +0 -5
- package/dist/events/index.d.ts +0 -6
- package/dist/integrations/react/UContextMenu.d.ts +0 -8
- package/dist/integrations/react/UContextMenu.js +0 -10
- package/dist/integrations/react/UCopyButton.d.ts +0 -8
- package/dist/integrations/react/UCopyButton.js +0 -10
- package/dist/integrations/react/UDropdownMenu.d.ts +0 -8
- package/dist/integrations/react/UDropdownMenu.js +0 -10
- package/dist/internals/index.d.ts +0 -3
- package/dist/utilities/decorators.js +0 -28
- package/dist/utilities/index.d.ts +0 -5
- /package/dist/components/{alert/Alert.styles.d.ts → ModalElement.styles.d.ts} +0 -0
- /package/dist/components/{button/Button.styles.d.ts → alert/UAlert.styles.d.ts} +0 -0
- /package/dist/components/{context-menu/ContextMenu.styles.d.ts → button/UButton.styles.d.ts} +0 -0
- /package/dist/components/button/{Button.styles.js → UButton.styles.js} +0 -0
- /package/dist/components/{copy-button/CopyButton.styles.d.ts → dialog/UDialog.styles.d.ts} +0 -0
- /package/dist/components/{dialog/Dialog.styles.d.ts → divider/UDivider.styles.d.ts} +0 -0
- /package/dist/components/divider/{Divider.styles.js → UDivider.styles.js} +0 -0
- /package/dist/components/{divider/Divider.styles.d.ts → drawer/UDrawer.styles.d.ts} +0 -0
- /package/dist/components/{dropdown-menu/DropdownMenu.styles.d.ts → form/UForm.styles.d.ts} +0 -0
- /package/dist/components/form/{Form.styles.js → UForm.styles.js} +0 -0
- /package/dist/components/{icon-button/IconButton.styles.d.ts → icon/UIcon.styles.d.ts} +0 -0
- /package/dist/components/icon/{Icon.styles.js → UIcon.styles.js} +0 -0
- /package/dist/components/{form/Form.styles.d.ts → icon-button/UIconButton.styles.d.ts} +0 -0
- /package/dist/components/icon-button/{IconButton.styles.js → UIconButton.styles.js} +0 -0
- /package/dist/components/{icon/Icon.styles.d.ts → input/UInput.styles.d.ts} +0 -0
- /package/dist/components/{menu-item/MenuItem.styles.d.ts → menu/UMenu.styles.d.ts} +0 -0
- /package/dist/components/{input/Input.styles.d.ts → menu-item/UMenuItem.styles.d.ts} +0 -0
- /package/dist/components/{menu/Menu.styles.d.ts → progress-bar/UProgressBar.styles.d.ts} +0 -0
- /package/dist/components/progress-bar/{ProgressBar.styles.js → UProgressBar.styles.js} +0 -0
- /package/dist/components/{progress-bar/ProgressBar.styles.d.ts → progress-ring/UProgressRing.styles.d.ts} +0 -0
- /package/dist/components/progress-ring/{ProgressRing.styles.js → UProgressRing.styles.js} +0 -0
- /package/dist/components/{progress-ring/ProgressRing.styles.d.ts → skeleton/USkeleton.styles.d.ts} +0 -0
- /package/dist/components/spinner/{Spinner.styles.d.ts → USpinner.styles.d.ts} +0 -0
- /package/dist/components/spinner/{Spinner.styles.js → USpinner.styles.js} +0 -0
- /package/dist/components/split-panel/{SplitPanel.styles.d.ts → USplitPanel.styles.d.ts} +0 -0
- /package/dist/components/split-panel/{SplitPanel.styles.js → USplitPanel.styles.js} +0 -0
- /package/dist/components/tooltip/{Tooltip.styles.d.ts → UTooltip.styles.d.ts} +0 -0
- /package/dist/components/tree/{Tree.styles.d.ts → UTree.styles.d.ts} +0 -0
- /package/dist/components/tree-item/{TreeItem.styles.d.ts → UTreeItem.styles.d.ts} +0 -0
- /package/dist/components/tree-item/{TreeItem.styles.js → UTreeItem.styles.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import {
|
|
3
|
+
import { UProgressRing } from '../components/progress-ring/UProgressRing';
|
|
4
4
|
|
|
5
5
|
export const UProgressRing = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-progress-ring',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UProgressRing,
|
|
9
9
|
events: {}
|
|
10
10
|
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { USkeleton } from '../components/skeleton/USkeleton';
|
|
3
|
+
|
|
4
|
+
export declare const USkeleton: React.ForwardRefExoticComponent<
|
|
5
|
+
Partial<USkeleton> & React.HTMLAttributes<USkeleton>
|
|
6
|
+
>;
|
|
7
|
+
|
|
8
|
+
export type USkeletonProps = React.ComponentProps<typeof USkeleton>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { USkeleton } from '../components/skeleton/USkeleton';
|
|
4
|
+
|
|
5
|
+
export const USkeleton = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: 'u-skeleton',
|
|
8
|
+
elementClass: USkeleton,
|
|
9
|
+
events: {}
|
|
10
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { USpinner } from '../components/spinner/USpinner';
|
|
3
3
|
|
|
4
4
|
export declare const USpinner: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<
|
|
5
|
+
Partial<USpinner> & React.HTMLAttributes<USpinner>
|
|
6
6
|
>;
|
|
7
7
|
|
|
8
8
|
export type USpinnerProps = React.ComponentProps<typeof USpinner>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import {
|
|
3
|
+
import { USpinner } from '../components/spinner/USpinner';
|
|
4
4
|
|
|
5
5
|
export const USpinner = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-spinner',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: USpinner,
|
|
9
9
|
events: {}
|
|
10
10
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { USplitPanel } from '../components/split-panel/USplitPanel';
|
|
3
3
|
|
|
4
4
|
export declare const USplitPanel: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<
|
|
5
|
+
Partial<USplitPanel> & React.HTMLAttributes<USplitPanel>
|
|
6
6
|
>;
|
|
7
7
|
|
|
8
8
|
export type USplitPanelProps = React.ComponentProps<typeof USplitPanel>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import {
|
|
3
|
+
import { USplitPanel } from '../components/split-panel/USplitPanel';
|
|
4
4
|
|
|
5
5
|
export const USplitPanel = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-split-panel',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: USplitPanel,
|
|
9
9
|
events: {}
|
|
10
10
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { UTooltip } from '../components/tooltip/UTooltip';
|
|
3
3
|
|
|
4
4
|
export declare const UTooltip: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<
|
|
5
|
+
Partial<UTooltip> & React.HTMLAttributes<UTooltip>
|
|
6
6
|
>;
|
|
7
7
|
|
|
8
8
|
export type UTooltipProps = React.ComponentProps<typeof UTooltip>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import {
|
|
3
|
+
import { UTooltip } from '../components/tooltip/UTooltip';
|
|
4
4
|
|
|
5
5
|
export const UTooltip = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-tooltip',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTooltip,
|
|
9
9
|
events: {}
|
|
10
10
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { UTree } from '../components/tree/UTree';
|
|
3
3
|
|
|
4
4
|
export declare const UTree: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<
|
|
5
|
+
Partial<UTree> & React.HTMLAttributes<UTree>
|
|
6
6
|
>;
|
|
7
7
|
|
|
8
8
|
export type UTreeProps = React.ComponentProps<typeof UTree>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import {
|
|
3
|
+
import { UTree } from '../components/tree/UTree';
|
|
4
4
|
|
|
5
5
|
export const UTree = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-tree',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTree,
|
|
9
9
|
events: {}
|
|
10
10
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { UTreeItem } from '../components/tree-item/UTreeItem';
|
|
3
3
|
|
|
4
4
|
export declare const UTreeItem: React.ForwardRefExoticComponent<
|
|
5
|
-
Partial<
|
|
5
|
+
Partial<UTreeItem> & React.HTMLAttributes<UTreeItem>
|
|
6
6
|
>;
|
|
7
7
|
|
|
8
8
|
export type UTreeItemProps = React.ComponentProps<typeof UTreeItem>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import {
|
|
3
|
+
import { UTreeItem } from '../components/tree-item/UTreeItem';
|
|
4
4
|
|
|
5
5
|
export const UTreeItem = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-tree-item',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTreeItem,
|
|
9
9
|
events: {}
|
|
10
10
|
});
|
|
@@ -7,11 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
export { UAlert, UAlertProps } from './UAlert';
|
|
9
9
|
export { UButton, UButtonProps } from './UButton';
|
|
10
|
-
export { UContextMenu, UContextMenuProps } from './UContextMenu';
|
|
11
|
-
export { UCopyButton, UCopyButtonProps } from './UCopyButton';
|
|
12
10
|
export { UDialog, UDialogProps } from './UDialog';
|
|
13
11
|
export { UDivider, UDividerProps } from './UDivider';
|
|
14
|
-
export {
|
|
12
|
+
export { UDrawer, UDrawerProps } from './UDrawer';
|
|
15
13
|
export { UForm, UFormProps } from './UForm';
|
|
16
14
|
export { UIcon, UIconProps } from './UIcon';
|
|
17
15
|
export { UIconButton, UIconButtonProps } from './UIconButton';
|
|
@@ -20,6 +18,7 @@ export { UMenu, UMenuProps } from './UMenu';
|
|
|
20
18
|
export { UMenuItem, UMenuItemProps } from './UMenuItem';
|
|
21
19
|
export { UProgressBar, UProgressBarProps } from './UProgressBar';
|
|
22
20
|
export { UProgressRing, UProgressRingProps } from './UProgressRing';
|
|
21
|
+
export { USkeleton, USkeletonProps } from './USkeleton';
|
|
23
22
|
export { USpinner, USpinnerProps } from './USpinner';
|
|
24
23
|
export { USplitPanel, USplitPanelProps } from './USplitPanel';
|
|
25
24
|
export { UTooltip, UTooltipProps } from './UTooltip';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export { UAlert } from './UAlert.js';
|
|
2
2
|
export { UButton } from './UButton.js';
|
|
3
|
-
export { UContextMenu } from './UContextMenu.js';
|
|
4
|
-
export { UCopyButton } from './UCopyButton.js';
|
|
5
3
|
export { UDialog } from './UDialog.js';
|
|
6
4
|
export { UDivider } from './UDivider.js';
|
|
7
|
-
export {
|
|
5
|
+
export { UDrawer } from './UDrawer.js';
|
|
8
6
|
export { UForm } from './UForm.js';
|
|
9
7
|
export { UIcon } from './UIcon.js';
|
|
10
8
|
export { UIconButton } from './UIconButton.js';
|
|
@@ -13,6 +11,7 @@ export { UMenu } from './UMenu.js';
|
|
|
13
11
|
export { UMenuItem } from './UMenuItem.js';
|
|
14
12
|
export { UProgressBar } from './UProgressBar.js';
|
|
15
13
|
export { UProgressRing } from './UProgressRing.js';
|
|
14
|
+
export { USkeleton } from './USkeleton.js';
|
|
16
15
|
export { USpinner } from './USpinner.js';
|
|
17
16
|
export { USplitPanel } from './USplitPanel.js';
|
|
18
17
|
export { UTooltip } from './UTooltip.js';
|
package/dist/utilities/icons.js
CHANGED
|
@@ -107,8 +107,5 @@ const icons = IconRegistry.instance;
|
|
|
107
107
|
function getDefaultBaseUrl() {
|
|
108
108
|
return defaultIconBaseUrl;
|
|
109
109
|
}
|
|
110
|
-
function setDefaultBaseUrl(url) {
|
|
111
|
-
defaultIconBaseUrl = url;
|
|
112
|
-
}
|
|
113
110
|
|
|
114
|
-
export { getDefaultBaseUrl, icons
|
|
111
|
+
export { getDefaultBaseUrl, icons };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlertType } from '../components/alert/
|
|
1
|
+
import { AlertType } from '../components/alert/UAlert.component.js';
|
|
2
2
|
export type ScreenPosition = "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
3
3
|
/** 토스트 알림 옵션 */
|
|
4
4
|
export interface ToastOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UAlert } from '../components/alert/UAlert.component.js';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
UAlert.define("u-alert");
|
|
4
4
|
class Notifier {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.containers = /* @__PURE__ */ new Map();
|
|
@@ -16,7 +16,7 @@ class Notifier {
|
|
|
16
16
|
* 토스트 알림을 생성합니다.
|
|
17
17
|
*/
|
|
18
18
|
async toast(options) {
|
|
19
|
-
const el = new
|
|
19
|
+
const el = new UAlert();
|
|
20
20
|
el.type = options.type;
|
|
21
21
|
el.heading = options.heading;
|
|
22
22
|
el.content = options.content;
|
package/package.json
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@iyulab/components",
|
|
3
|
-
"description": "web-components library based on lit-element made by iyulab",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"keywords": [
|
|
6
|
-
"iyulab",
|
|
7
|
-
"components",
|
|
8
|
-
"web-components",
|
|
9
|
-
"lit
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"
|
|
51
|
-
"eslint
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"typescript
|
|
55
|
-
"
|
|
56
|
-
"vite
|
|
57
|
-
"vite-plugin-
|
|
58
|
-
|
|
59
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@iyulab/components",
|
|
3
|
+
"description": "web-components library based on lit-element made by iyulab",
|
|
4
|
+
"version": "0.1.9",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"iyulab",
|
|
7
|
+
"components",
|
|
8
|
+
"web-components",
|
|
9
|
+
"lit",
|
|
10
|
+
"lit-element"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "iyulab",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/iyulab/node-components.git"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"README.md",
|
|
22
|
+
"CHANGELOG.md",
|
|
23
|
+
"package.json"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./dist/*": {
|
|
33
|
+
"types": "./dist/*.d.ts",
|
|
34
|
+
"import": "./dist/*"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"start": "vite --force",
|
|
39
|
+
"build": "eslint && vite build"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@floating-ui/dom": "^1.7.4",
|
|
43
|
+
"lit": "^3.3.1",
|
|
44
|
+
"react": "^19.2.3",
|
|
45
|
+
"reflect-metadata": "^0.2.2"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@lit/react": "^1.0.8",
|
|
49
|
+
"@eslint/js": "^9.39.2",
|
|
50
|
+
"@types/node": "^25.0.3",
|
|
51
|
+
"eslint": "^9.39.2",
|
|
52
|
+
"eslint-plugin-lit": "^2.1.1",
|
|
53
|
+
"globals": "^16.5.0",
|
|
54
|
+
"typescript": "^5.9.3",
|
|
55
|
+
"typescript-eslint": "^8.50.0",
|
|
56
|
+
"vite": "^7.3.0",
|
|
57
|
+
"vite-plugin-dts": "^4.5.4",
|
|
58
|
+
"vite-plugin-static-copy": "^3.1.4"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import { BaseElement } from '../BaseElement.js';
|
|
3
|
-
import { FloatingElement } from '../FloatingElement.js';
|
|
4
|
-
export declare class ContextMenu extends FloatingElement {
|
|
5
|
-
static styles: import('lit').CSSResultGroup[];
|
|
6
|
-
static dependencies: Record<string, typeof BaseElement>;
|
|
7
|
-
preventNative: boolean;
|
|
8
|
-
closeOnSelect: boolean;
|
|
9
|
-
closeOnCheck: boolean;
|
|
10
|
-
private get menu();
|
|
11
|
-
connectedCallback(): void;
|
|
12
|
-
disconnectedCallback(): void;
|
|
13
|
-
protected updated(changed: PropertyValues): void;
|
|
14
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
-
/** 컨텍스트 메뉴는 Virtual anchor를 쓰므로 autoUpdate는 꺼버림 */
|
|
16
|
-
protected autoPosition(_enable: boolean): void;
|
|
17
|
-
private attachAnchor;
|
|
18
|
-
private detachAnchor;
|
|
19
|
-
private onContextMenu;
|
|
20
|
-
hide: () => Promise<void>;
|
|
21
|
-
private onDocPointerDown;
|
|
22
|
-
private onWindowBlur;
|
|
23
|
-
private onWindowScrollOrResize;
|
|
24
|
-
private attachDismiss;
|
|
25
|
-
private detachDismiss;
|
|
26
|
-
private onSelect;
|
|
27
|
-
private onCheck;
|
|
28
|
-
private onRequestClose;
|
|
29
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import { FloatingElement } from '../FloatingElement.js';
|
|
4
|
-
import { Menu } from '../menu/Menu.js';
|
|
5
|
-
import { MenuItem } from '../menu-item/MenuItem.js';
|
|
6
|
-
import { styles } from './ContextMenu.styles.js';
|
|
7
|
-
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
-
var result = void 0 ;
|
|
11
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
-
if (decorator = decorators[i])
|
|
13
|
-
result = (decorator(target, key, result) ) || result;
|
|
14
|
-
if (result) __defProp(target, key, result);
|
|
15
|
-
return result;
|
|
16
|
-
};
|
|
17
|
-
class ContextMenu extends FloatingElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.preventNative = true;
|
|
21
|
-
this.closeOnSelect = true;
|
|
22
|
-
this.closeOnCheck = false;
|
|
23
|
-
this.onContextMenu = async (e) => {
|
|
24
|
-
if (this.preventNative) e.preventDefault();
|
|
25
|
-
this.menu && (this.menu.open = true);
|
|
26
|
-
const virtual = {
|
|
27
|
-
getBoundingClientRect: () => ({
|
|
28
|
-
x: e.clientX,
|
|
29
|
-
y: e.clientY,
|
|
30
|
-
top: e.clientY,
|
|
31
|
-
left: e.clientX,
|
|
32
|
-
right: e.clientX,
|
|
33
|
-
bottom: e.clientY,
|
|
34
|
-
width: 0,
|
|
35
|
-
height: 0,
|
|
36
|
-
toJSON() {
|
|
37
|
-
return {};
|
|
38
|
-
}
|
|
39
|
-
})
|
|
40
|
-
};
|
|
41
|
-
await super.show(virtual);
|
|
42
|
-
await this.menu?.focusFirstItem?.();
|
|
43
|
-
};
|
|
44
|
-
this.hide = async () => {
|
|
45
|
-
await super.hide();
|
|
46
|
-
this.menu && (this.menu.open = false);
|
|
47
|
-
this.querySelectorAll("u-menu-item").forEach((i) => i.closeSubmenu?.());
|
|
48
|
-
};
|
|
49
|
-
this.onDocPointerDown = (e) => {
|
|
50
|
-
if (!this.visible) return;
|
|
51
|
-
const path = e.composedPath();
|
|
52
|
-
if (path.includes(this)) return;
|
|
53
|
-
this.hide();
|
|
54
|
-
};
|
|
55
|
-
this.onWindowBlur = () => {
|
|
56
|
-
if (this.visible) this.hide();
|
|
57
|
-
};
|
|
58
|
-
this.onWindowScrollOrResize = () => {
|
|
59
|
-
if (this.visible) this.hide();
|
|
60
|
-
};
|
|
61
|
-
this.onSelect = async () => {
|
|
62
|
-
if (this.closeOnSelect) await this.hide();
|
|
63
|
-
};
|
|
64
|
-
this.onCheck = async () => {
|
|
65
|
-
if (this.closeOnCheck) await this.hide();
|
|
66
|
-
};
|
|
67
|
-
this.onRequestClose = async () => {
|
|
68
|
-
await this.hide();
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
static {
|
|
72
|
-
this.styles = [super.styles, styles];
|
|
73
|
-
}
|
|
74
|
-
static {
|
|
75
|
-
this.dependencies = {
|
|
76
|
-
"u-menu": Menu,
|
|
77
|
-
"u-menu-item": MenuItem
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
get menu() {
|
|
81
|
-
return this.querySelector("u-menu");
|
|
82
|
-
}
|
|
83
|
-
connectedCallback() {
|
|
84
|
-
super.connectedCallback();
|
|
85
|
-
this.strategy = "fixed";
|
|
86
|
-
this.placement ||= "bottom-start";
|
|
87
|
-
this.distance ||= 4;
|
|
88
|
-
this.addEventListener("u-select", this.onSelect);
|
|
89
|
-
this.addEventListener("u-check", this.onCheck);
|
|
90
|
-
this.addEventListener("u-request-close", this.onRequestClose);
|
|
91
|
-
}
|
|
92
|
-
disconnectedCallback() {
|
|
93
|
-
this.detachAnchor(this.anchor);
|
|
94
|
-
this.detachDismiss();
|
|
95
|
-
this.removeEventListener("u-select", this.onSelect);
|
|
96
|
-
this.removeEventListener("u-check", this.onCheck);
|
|
97
|
-
this.removeEventListener("u-request-close", this.onRequestClose);
|
|
98
|
-
super.disconnectedCallback();
|
|
99
|
-
}
|
|
100
|
-
updated(changed) {
|
|
101
|
-
super.updated(changed);
|
|
102
|
-
if (changed.has("anchor")) {
|
|
103
|
-
this.detachAnchor(changed.get("anchor"));
|
|
104
|
-
this.attachAnchor(this.anchor);
|
|
105
|
-
}
|
|
106
|
-
if (changed.has("visible")) {
|
|
107
|
-
if (this.visible) this.attachDismiss();
|
|
108
|
-
else this.detachDismiss();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
render() {
|
|
112
|
-
return html`<slot></slot>`;
|
|
113
|
-
}
|
|
114
|
-
/** 컨텍스트 메뉴는 Virtual anchor를 쓰므로 autoUpdate는 꺼버림 */
|
|
115
|
-
autoPosition(_enable) {
|
|
116
|
-
}
|
|
117
|
-
attachAnchor(target) {
|
|
118
|
-
if (!target) return;
|
|
119
|
-
target.addEventListener("contextmenu", this.onContextMenu);
|
|
120
|
-
}
|
|
121
|
-
detachAnchor(target) {
|
|
122
|
-
if (!target) return;
|
|
123
|
-
target.removeEventListener("contextmenu", this.onContextMenu);
|
|
124
|
-
}
|
|
125
|
-
attachDismiss() {
|
|
126
|
-
document.addEventListener("pointerdown", this.onDocPointerDown, true);
|
|
127
|
-
window.addEventListener("blur", this.onWindowBlur);
|
|
128
|
-
window.addEventListener("scroll", this.onWindowScrollOrResize, true);
|
|
129
|
-
window.addEventListener("resize", this.onWindowScrollOrResize);
|
|
130
|
-
}
|
|
131
|
-
detachDismiss() {
|
|
132
|
-
document.removeEventListener("pointerdown", this.onDocPointerDown, true);
|
|
133
|
-
window.removeEventListener("blur", this.onWindowBlur);
|
|
134
|
-
window.removeEventListener("scroll", this.onWindowScrollOrResize, true);
|
|
135
|
-
window.removeEventListener("resize", this.onWindowScrollOrResize);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
__decorateClass([
|
|
139
|
-
property({ type: Boolean })
|
|
140
|
-
], ContextMenu.prototype, "preventNative");
|
|
141
|
-
__decorateClass([
|
|
142
|
-
property({ type: Boolean })
|
|
143
|
-
], ContextMenu.prototype, "closeOnSelect");
|
|
144
|
-
__decorateClass([
|
|
145
|
-
property({ type: Boolean })
|
|
146
|
-
], ContextMenu.prototype, "closeOnCheck");
|
|
147
|
-
|
|
148
|
-
export { ContextMenu };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
const styles = css`
|
|
4
|
-
:host {
|
|
5
|
-
opacity: 0;
|
|
6
|
-
transform: scale(0.98);
|
|
7
|
-
transition: opacity 0.12s ease, transform 0.12s ease;
|
|
8
|
-
}
|
|
9
|
-
:host([visible]) {
|
|
10
|
-
opacity: 1;
|
|
11
|
-
transform: scale(1);
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
|
|
15
|
-
export { styles };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseElement } from '../BaseElement.js';
|
|
2
|
-
/**
|
|
3
|
-
* 복사 버튼 컴포넌트입니다.
|
|
4
|
-
*/
|
|
5
|
-
export declare class CopyButton extends BaseElement {
|
|
6
|
-
static styles: import('lit').CSSResultGroup[];
|
|
7
|
-
static dependencies: Record<string, typeof BaseElement>;
|
|
8
|
-
/** 버튼의 복사 상태를 설정합니다. 복사가 완료되면 true로 변경됩니다. */
|
|
9
|
-
copied: boolean;
|
|
10
|
-
/** 버튼의 테두리 유무를 설정합니다. 기본값은 false입니다. */
|
|
11
|
-
borderless: boolean;
|
|
12
|
-
/** 버튼이 비활성화 상태인지 여부를 설정합니다. 비활성화된 버튼은 클릭할 수 없습니다. */
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
/** 복사할 텍스트를 설정합니다. */
|
|
15
|
-
value: string;
|
|
16
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
17
|
-
/** 복사 버튼 클릭 핸들러 */
|
|
18
|
-
private handleButtonClick;
|
|
19
|
-
}
|