@ayu-sh-kr/dota-ui 0.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.
Files changed (74) hide show
  1. package/dist/app.config.d.ts +2 -0
  2. package/dist/components/accordian/accordion.component.d.ts +16 -0
  3. package/dist/components/accordian/accordion.config.d.ts +21 -0
  4. package/dist/components/avatar/avatar.component.d.ts +25 -0
  5. package/dist/components/badge/badge.component.d.ts +14 -0
  6. package/dist/components/badge/badge.config.d.ts +75 -0
  7. package/dist/components/button/button.component.d.ts +23 -0
  8. package/dist/components/button/button.config.d.ts +9 -0
  9. package/dist/components/card/card.component.d.ts +33 -0
  10. package/dist/components/chip/chip.component.d.ts +11 -0
  11. package/dist/components/chip/chip.config.d.ts +30 -0
  12. package/dist/components/icon/icons.component.d.ts +15 -0
  13. package/dist/components/icon/icons.config.d.ts +19 -0
  14. package/dist/components/index.d.ts +11 -0
  15. package/dist/components/modal/modal.component.d.ts +16 -0
  16. package/dist/components/modal/modal.config.d.ts +56 -0
  17. package/dist/components/placeholder/placeholder.component.d.ts +6 -0
  18. package/dist/components/popover/popover.component.d.ts +25 -0
  19. package/dist/components/test/count-button.component.d.ts +9 -0
  20. package/dist/components/test/counter.component.d.ts +7 -0
  21. package/dist/components/utils/scaffold.component.d.ts +7 -0
  22. package/dist/dota-ui.d.ts +2 -0
  23. package/dist/index.d.ts +2 -0
  24. package/dist/index.mjs +3272 -0
  25. package/dist/main.d.ts +1 -0
  26. package/dist/style-BbqE44zC.css +222 -0
  27. package/dist/utils/debounce.d.ts +25 -0
  28. package/dist/utils/index.d.ts +3 -0
  29. package/dist/utils/position-calculator.utils.d.ts +69 -0
  30. package/dist/utils/position.utils.d.ts +106 -0
  31. package/dist/vite.svg +1 -0
  32. package/index.html +13 -0
  33. package/package.json +34 -0
  34. package/postcss.config.js +6 -0
  35. package/public/vite.svg +1 -0
  36. package/src/app.config.ts +136 -0
  37. package/src/app.d.ts +28 -0
  38. package/src/components/accordian/accordion.component.ts +79 -0
  39. package/src/components/accordian/accordion.config.ts +27 -0
  40. package/src/components/accordian/accordion.css +19 -0
  41. package/src/components/avatar/avatar.component.ts +195 -0
  42. package/src/components/badge/badge.component.ts +49 -0
  43. package/src/components/badge/badge.config.ts +85 -0
  44. package/src/components/button/button.component.ts +118 -0
  45. package/src/components/button/button.config.ts +66 -0
  46. package/src/components/button/button.css +96 -0
  47. package/src/components/card/card.component.ts +145 -0
  48. package/src/components/chip/chip.component.ts +44 -0
  49. package/src/components/chip/chip.config.ts +33 -0
  50. package/src/components/icon/icons.component.ts +83 -0
  51. package/src/components/icon/icons.config.ts +24 -0
  52. package/src/components/index.ts +11 -0
  53. package/src/components/modal/modal.component.ts +67 -0
  54. package/src/components/modal/modal.config.ts +69 -0
  55. package/src/components/modal/modal.css +50 -0
  56. package/src/components/placeholder/placeholder.component.ts +25 -0
  57. package/src/components/placeholder/placeholder.css +3 -0
  58. package/src/components/popover/popover.component.ts +127 -0
  59. package/src/components/popover/popover.css +7 -0
  60. package/src/components/test/count-button.component.ts +48 -0
  61. package/src/components/test/counter.component.ts +37 -0
  62. package/src/components/utils/scaffold.component.ts +27 -0
  63. package/src/index.ts +2 -0
  64. package/src/main.ts +2 -0
  65. package/src/style.css +7 -0
  66. package/src/typescript.svg +1 -0
  67. package/src/utils/debounce.ts +37 -0
  68. package/src/utils/index.ts +4 -0
  69. package/src/utils/position-calculator.utils.ts +122 -0
  70. package/src/utils/position.utils.ts +243 -0
  71. package/src/vite-env.d.ts +1 -0
  72. package/tailwind.config.ts +13 -0
  73. package/tsconfig.json +41 -0
  74. package/vite.config.ts +46 -0
@@ -0,0 +1,2 @@
1
+ export declare const UIConfig: Partial<UIConfig>;
2
+ export type UIColor = keyof typeof UIConfig.color;
@@ -0,0 +1,16 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ import { AccordionStyle, AccordionColor, AccordionSize, AccordionVariant } from './accordion.config.ts';
3
+ declare class AccordionComponent extends BaseElement {
4
+ className: string;
5
+ header: string;
6
+ description: string;
7
+ icon: string;
8
+ color: AccordionColor;
9
+ variant: AccordionVariant;
10
+ size: AccordionSize;
11
+ constructor();
12
+ handleAccordion(): void;
13
+ processIcon: (icon: string) => string;
14
+ render(): string;
15
+ }
16
+ export { AccordionComponent, AccordionStyle as AccordionConfig, type AccordionColor, type AccordionSize, type AccordionVariant };
@@ -0,0 +1,21 @@
1
+ export declare const AccordionStyle: {
2
+ button: {
3
+ base: string;
4
+ size: {
5
+ '2xs': string;
6
+ xs: string;
7
+ sm: string;
8
+ md: string;
9
+ lg: string;
10
+ xl: string;
11
+ };
12
+ color: {
13
+ [x: string]: ColorVariants;
14
+ };
15
+ };
16
+ paragraph: string;
17
+ };
18
+ type AccordionColor = keyof typeof AccordionStyle.button.color;
19
+ type AccordionSize = keyof typeof AccordionStyle.button.size;
20
+ type AccordionVariant = keyof ColorVariants;
21
+ export type { AccordionSize, AccordionColor, AccordionVariant };
@@ -0,0 +1,25 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ import { IconColor, IconSize, IconVariant } from '..';
3
+ export declare class AvatarComponent extends BaseElement {
4
+ img: string;
5
+ imgAlt: string;
6
+ label: string;
7
+ icon: string;
8
+ isChip: boolean;
9
+ chipText: string;
10
+ chipColor: string;
11
+ chipPosition: string;
12
+ variant: string;
13
+ size: string;
14
+ constructor();
15
+ template: () => string;
16
+ render(): string;
17
+ }
18
+ export declare class AvatarWrapper extends BaseElement {
19
+ content: string;
20
+ color: IconColor;
21
+ variant: IconVariant;
22
+ size: IconSize;
23
+ constructor();
24
+ render(): string;
25
+ }
@@ -0,0 +1,14 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ import { BadgeStyle, BadgeColor, BadgeRounded, BadgeSize, BadgeVariants } from './badge.config.ts';
3
+ declare class BadgeComponent extends BaseElement {
4
+ className: string;
5
+ color: BadgeColor;
6
+ variant: BadgeVariants;
7
+ size: BadgeSize;
8
+ rounded: BadgeRounded;
9
+ label: string;
10
+ content: string;
11
+ constructor();
12
+ render(): string;
13
+ }
14
+ export { BadgeComponent, BadgeStyle as BadgeConfig };
@@ -0,0 +1,75 @@
1
+ declare const BadgeStyle: {
2
+ base: string;
3
+ rounded: {
4
+ none: string;
5
+ sm: string;
6
+ md: string;
7
+ lg: string;
8
+ xl: string;
9
+ };
10
+ size: {
11
+ xs: string;
12
+ sm: string;
13
+ lg: string;
14
+ xl: string;
15
+ '2xl': string;
16
+ '3xl': string;
17
+ '4xl': string;
18
+ };
19
+ color: {
20
+ red: {
21
+ solid: string;
22
+ outline: string;
23
+ soft: string;
24
+ subtle: string;
25
+ };
26
+ yellow: {
27
+ solid: string;
28
+ outline: string;
29
+ soft: string;
30
+ subtle: string;
31
+ };
32
+ pink: {
33
+ solid: string;
34
+ outline: string;
35
+ soft: string;
36
+ subtle: string;
37
+ };
38
+ purple: {
39
+ solid: string;
40
+ outline: string;
41
+ soft: string;
42
+ subtle: string;
43
+ };
44
+ blue: {
45
+ solid: string;
46
+ outline: string;
47
+ soft: string;
48
+ subtle: string;
49
+ };
50
+ cyan: {
51
+ solid: string;
52
+ outline: string;
53
+ soft: string;
54
+ subtle: string;
55
+ };
56
+ green: {
57
+ solid: string;
58
+ outline: string;
59
+ soft: string;
60
+ subtle: string;
61
+ };
62
+ emerald: {
63
+ solid: string;
64
+ outline: string;
65
+ soft: string;
66
+ subtle: string;
67
+ };
68
+ };
69
+ };
70
+ type BadgeVariants = keyof typeof BadgeStyle.color.red;
71
+ type BadgeColor = keyof typeof BadgeStyle.color;
72
+ type BadgeSize = keyof typeof BadgeStyle.size;
73
+ type BadgeRounded = keyof typeof BadgeStyle.rounded;
74
+ export { BadgeStyle };
75
+ export type { BadgeVariants, BadgeRounded, BadgeSize, BadgeColor };
@@ -0,0 +1,23 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ import { ButtonAnimation, ButtonAnimationColor, ButtonRound, ButtonSize, ButtonStyle, ButtonVariants, IconPosition } from './button.config.ts';
3
+ import { UIColor } from '../../app.config.ts';
4
+ declare class ButtonComponent extends BaseElement {
5
+ content: string;
6
+ animation: ButtonAnimation;
7
+ className: string;
8
+ label: string;
9
+ color: UIColor;
10
+ variant: ButtonVariants;
11
+ icon: string;
12
+ loading: boolean;
13
+ iconPosition: IconPosition;
14
+ animationColor: ButtonAnimationColor;
15
+ type: string;
16
+ size: ButtonSize;
17
+ rounded: ButtonRound;
18
+ constructor();
19
+ template: () => string;
20
+ render(): string;
21
+ }
22
+ export { ButtonComponent, ButtonStyle as ButtonConfig };
23
+ export type { ButtonVariants, ButtonRound, ButtonAnimation, ButtonSize, ButtonAnimationColor, IconPosition };
@@ -0,0 +1,9 @@
1
+ declare const ButtonStyle: Partial<UIConfig>;
2
+ type ButtonVariants = keyof ColorVariants;
3
+ export { ButtonStyle };
4
+ export type { ButtonVariants };
5
+ export type IconPosition = 'leading' | 'forward';
6
+ export type ButtonAnimation = keyof typeof ButtonStyle.animation;
7
+ export type ButtonAnimationColor = keyof typeof ButtonStyle.animation.fill.color;
8
+ export type ButtonSize = keyof typeof ButtonStyle.size;
9
+ export type ButtonRound = keyof typeof ButtonStyle.rounded;
@@ -0,0 +1,33 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ export declare class CardComponent extends BaseElement {
3
+ content: string;
4
+ className: string;
5
+ constructor();
6
+ render(): string;
7
+ }
8
+ export declare class CardTitleComponent extends BaseElement {
9
+ title: string;
10
+ className: string;
11
+ constructor();
12
+ template: (title: string) => string;
13
+ render(): string;
14
+ }
15
+ export declare class CardHeaderComponent extends BaseElement {
16
+ header: string;
17
+ constructor();
18
+ template: (header: string) => string;
19
+ render(): string;
20
+ }
21
+ export declare class CardDescriptionComponent extends BaseElement {
22
+ description: string;
23
+ className: string;
24
+ constructor();
25
+ template: (description: string) => string;
26
+ render(): string;
27
+ }
28
+ export declare class CardFooterComponent extends BaseElement {
29
+ content: string;
30
+ className: string;
31
+ constructor();
32
+ render(): string;
33
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ import { ChipColor, ChipPosition, ChipStyle } from './chip.config.ts';
3
+ declare class ChipComponent extends BaseElement {
4
+ text: string;
5
+ position: ChipPosition;
6
+ color: ChipColor;
7
+ content: string;
8
+ constructor();
9
+ render(): string;
10
+ }
11
+ export { ChipComponent, ChipStyle, type ChipColor, type ChipPosition };
@@ -0,0 +1,30 @@
1
+ export declare const ChipStyle: {
2
+ base: {
3
+ parent: string;
4
+ chip: string;
5
+ };
6
+ position: {
7
+ 'top-left': string;
8
+ 'top-right': string;
9
+ 'bottom-right': string;
10
+ 'bottom-left': string;
11
+ };
12
+ color: {
13
+ red: string;
14
+ yellow: string;
15
+ rose: string;
16
+ emerald: string;
17
+ green: string;
18
+ blue: string;
19
+ cyan: string;
20
+ teal: string;
21
+ gray: string;
22
+ orange: string;
23
+ sky: string;
24
+ purple: string;
25
+ violet: string;
26
+ pink: string;
27
+ };
28
+ };
29
+ export type ChipPosition = keyof typeof ChipStyle.position;
30
+ export type ChipColor = keyof typeof ChipStyle.color;
@@ -0,0 +1,15 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ import { IconSize, IconVariant, IconColor, IconStyle } from './icons.config.ts';
3
+ declare class IconsComponent extends BaseElement {
4
+ name: string;
5
+ className: string;
6
+ size: IconSize;
7
+ color: IconColor;
8
+ variant: IconVariant;
9
+ constructor();
10
+ afterViewInit(): void;
11
+ getSvg(): Promise<void>;
12
+ render(): string;
13
+ }
14
+ export { IconsComponent, IconStyle };
15
+ export type { IconVariant, IconColor, IconSize };
@@ -0,0 +1,19 @@
1
+ export declare const IconStyle: {
2
+ shadow: string;
3
+ base: string;
4
+ color: {
5
+ [x: string]: ColorVariants;
6
+ };
7
+ size: {
8
+ sm: string;
9
+ md: string;
10
+ lg: string;
11
+ xl: string;
12
+ '2xl': string;
13
+ '3xl': string;
14
+ };
15
+ };
16
+ type IconSize = keyof typeof IconStyle.size;
17
+ type IconColor = keyof typeof IconStyle.color;
18
+ type IconVariant = keyof ColorVariants;
19
+ export type { IconSize, IconVariant, IconColor };
@@ -0,0 +1,11 @@
1
+ export * from './modal/modal.component.ts';
2
+ export * from './card/card.component.ts';
3
+ export * from './badge/badge.component.ts';
4
+ export * from './utils/scaffold.component.ts';
5
+ export * from './icon/icons.component.ts';
6
+ export * from './accordian/accordion.component.ts';
7
+ export * from './chip/chip.component.ts';
8
+ export * from './avatar/avatar.component.ts';
9
+ export * from './button/button.component.ts';
10
+ export * from './popover/popover.component.ts';
11
+ export * from './placeholder/placeholder.component.ts';
@@ -0,0 +1,16 @@
1
+ import { BaseElement, EventEmitter } from '@ayu-sh-kr/dota-core/dist';
2
+ import { ModalDirection, ModalDuration, ModalRounded, ModalStyle } from './modal.config.ts';
3
+ declare class ModalComponent extends BaseElement {
4
+ isOpen: boolean;
5
+ content: string;
6
+ className: string;
7
+ rounded: ModalRounded;
8
+ duration: ModalDuration;
9
+ direction: ModalDirection;
10
+ modalChange: EventEmitter<boolean>;
11
+ constructor();
12
+ handleClose(): void;
13
+ template: (open: boolean) => string;
14
+ render(): string;
15
+ }
16
+ export { ModalComponent, ModalStyle as ModalConfig };
@@ -0,0 +1,56 @@
1
+ export declare const ModalStyle: {
2
+ base: string;
3
+ duration: {
4
+ "0": string;
5
+ "100": string;
6
+ "150": string;
7
+ "200": string;
8
+ "300": string;
9
+ "500": string;
10
+ "700": string;
11
+ "1000": string;
12
+ "1200": string;
13
+ "1300": string;
14
+ "2000": string;
15
+ };
16
+ rounded: {
17
+ none: string;
18
+ sm: string;
19
+ md: string;
20
+ lg: string;
21
+ xl: string;
22
+ '2xl': string;
23
+ '3xl': string;
24
+ full: string;
25
+ };
26
+ direction: {
27
+ up: {
28
+ startX: string;
29
+ endX: string;
30
+ startY: string;
31
+ endY: string;
32
+ };
33
+ down: {
34
+ startX: string;
35
+ endX: string;
36
+ startY: string;
37
+ endY: string;
38
+ };
39
+ left: {
40
+ startX: string;
41
+ endX: string;
42
+ startY: string;
43
+ endY: string;
44
+ };
45
+ right: {
46
+ startX: string;
47
+ endX: string;
48
+ startY: string;
49
+ endY: string;
50
+ };
51
+ };
52
+ };
53
+ type ModalRounded = keyof typeof ModalStyle.rounded;
54
+ type ModalDuration = keyof typeof ModalStyle.duration;
55
+ type ModalDirection = keyof typeof ModalStyle.direction;
56
+ export type { ModalRounded, ModalDuration, ModalDirection };
@@ -0,0 +1,6 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ export declare class PlaceholderComponent extends BaseElement {
3
+ className: string;
4
+ constructor();
5
+ render(): string;
6
+ }
@@ -0,0 +1,25 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core';
2
+ import { Placement } from '../../utils/position-calculator.utils.ts';
3
+ declare class PopoverComponent extends BaseElement {
4
+ isOpen: boolean;
5
+ placement: Placement;
6
+ offset: string;
7
+ label: string;
8
+ content: string;
9
+ posX: number;
10
+ posY: number;
11
+ constructor();
12
+ private extractResource;
13
+ afterViewInit(): Promise<void>;
14
+ handlePopover(): void;
15
+ updatePosition(): void;
16
+ handleWindowClick(event: Event): void;
17
+ render(): string;
18
+ }
19
+ type PopoverPosition = {
20
+ top: number;
21
+ right: number;
22
+ bottom: number;
23
+ left: number;
24
+ };
25
+ export { PopoverComponent, type PopoverPosition };
@@ -0,0 +1,9 @@
1
+ import { BaseElement, EventEmitter } from '@ayu-sh-kr/dota-core/dist';
2
+ export declare class CountButtonComponent extends BaseElement {
3
+ count: number;
4
+ constructor();
5
+ valueChange: EventEmitter<number>;
6
+ increment(): void;
7
+ decrement(): void;
8
+ render(): string;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ export declare class CounterComponent extends BaseElement {
3
+ count: number;
4
+ constructor();
5
+ handleCountChange(event: any): void;
6
+ render(): string;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseElement } from '@ayu-sh-kr/dota-core/dist';
2
+ export declare class ScaffoldComponent extends BaseElement {
3
+ className: string;
4
+ content: string;
5
+ constructor();
6
+ render(): string;
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from './index'
2
+ export {}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './utils';