wini-web-components 2.8.2 → 2.8.4
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/package.json +6 -2
- package/src/component/button/button.module.css +210 -0
- package/src/component/button/button.tsx +57 -0
- package/src/component/calendar/calendar.module.css +153 -0
- package/src/component/calendar/calendar.tsx +389 -0
- package/src/component/carousel/carousel.css +622 -0
- package/src/component/carousel/carousel.tsx +91 -0
- package/src/component/checkbox/checkbox.module.css +48 -0
- package/src/component/checkbox/checkbox.tsx +80 -0
- package/src/component/ck-editor/ck-editor.css +206 -0
- package/src/component/ck-editor/ckeditor.tsx +522 -0
- package/src/component/component-status.tsx +53 -0
- package/src/component/date-time-picker/date-time-picker.module.css +94 -0
- package/src/component/date-time-picker/date-time-picker.tsx +663 -0
- package/src/component/dialog/dialog.module.css +111 -0
- package/src/component/dialog/dialog.tsx +109 -0
- package/src/component/import-file/import-file.module.css +83 -0
- package/src/component/import-file/import-file.tsx +174 -0
- package/src/component/infinite-scroll/infinite-scroll.module.css +34 -0
- package/src/component/infinite-scroll/infinite-scroll.tsx +35 -0
- package/src/component/input-multi-select/input-multi-select.module.css +121 -0
- package/src/component/input-multi-select/input-multi-select.tsx +263 -0
- package/src/component/input-otp/input-otp.module.css +41 -0
- package/src/component/input-otp/input-otp.tsx +110 -0
- package/src/component/number-picker/number-picker.module.css +137 -0
- package/src/component/number-picker/number-picker.tsx +107 -0
- package/src/component/pagination/pagination.module.css +48 -0
- package/src/component/pagination/pagination.tsx +88 -0
- package/src/component/popup/popup.css +136 -0
- package/src/component/popup/popup.tsx +125 -0
- package/src/component/progress-bar/progress-bar.module.css +42 -0
- package/src/component/progress-bar/progress-bar.tsx +33 -0
- package/src/component/progress-circle/progress-circle.css +0 -0
- package/src/component/progress-circle/progress-circle.tsx +25 -0
- package/src/component/radio-button/radio-button.module.css +51 -0
- package/src/component/radio-button/radio-button.tsx +60 -0
- package/src/component/rating/rating.module.css +11 -0
- package/src/component/rating/rating.tsx +65 -0
- package/src/component/select1/select1.module.css +108 -0
- package/src/component/select1/select1.tsx +271 -0
- package/src/component/switch/switch.module.css +53 -0
- package/src/component/switch/switch.tsx +68 -0
- package/src/component/table/table.css +74 -0
- package/src/component/table/table.tsx +108 -0
- package/src/component/tag/tag.module.css +108 -0
- package/src/component/tag/tag.tsx +31 -0
- package/src/component/text/text.css +27 -0
- package/src/component/text/text.tsx +24 -0
- package/src/component/text-area/text-area.module.css +57 -0
- package/src/component/text-area/text-area.tsx +65 -0
- package/src/component/text-field/text-field.module.css +71 -0
- package/src/component/text-field/text-field.tsx +102 -0
- package/src/component/toast-noti/toast-noti.css +866 -0
- package/src/component/toast-noti/toast-noti.tsx +22 -0
- package/src/component/wini-icon/winicon.module.css +110 -0
- package/src/component/wini-icon/winicon.tsx +9424 -0
- package/src/form/login/view.module.css +80 -0
- package/src/form/login/view.tsx +138 -0
- package/src/global.d.ts +5 -0
- package/src/index.tsx +66 -0
- package/src/language/i18n.tsx +143 -0
- package/src/skin/layout.css +649 -0
- package/src/skin/root.css +294 -0
- package/src/skin/typography.css +314 -0
- package/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Slide, toast } from 'react-toastify';
|
|
2
|
+
import './toast-noti.css';
|
|
3
|
+
|
|
4
|
+
export class ToastMessage {
|
|
5
|
+
static success(message: string) {
|
|
6
|
+
toast.success(message, {
|
|
7
|
+
hideProgressBar: true,
|
|
8
|
+
transition: Slide,
|
|
9
|
+
autoClose: 800,
|
|
10
|
+
theme: "colored",
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
static errors(message: string) {
|
|
14
|
+
toast.error(message, {
|
|
15
|
+
theme: "colored",
|
|
16
|
+
pauseOnHover: false,
|
|
17
|
+
hideProgressBar: true,
|
|
18
|
+
transition: Slide,
|
|
19
|
+
autoClose: 800,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
.wini-icon {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
width: fit-content;
|
|
6
|
+
height: fit-content;
|
|
7
|
+
padding: 0.2rem;
|
|
8
|
+
--size: 1.6rem;
|
|
9
|
+
--color: var(--neutral-text-subtitle-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.wini-icon[class~="link-icon"] {
|
|
13
|
+
--size: 'undefined';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.wini-icon>svg {
|
|
17
|
+
width: var(--size, inherit) !important;
|
|
18
|
+
height: var(--size, inherit) !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.wini-icon[class*="fill-icon"]>svg>*[fill^="#"] {
|
|
22
|
+
fill: var(--color, "#61616B");
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.wini-icon[class*="outline-icon"]>svg>*[stroke^="#"] {
|
|
26
|
+
stroke: var(--color, "#61616B");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.wini-icon.clickable {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.wini-icon[class~="icon-button"] {
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
background-color: var(--neutral-main-background-color);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.wini-icon[class~="border"] {
|
|
39
|
+
border: var(--neutral-bolder-border);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.wini-icon[class~="dashed"] {
|
|
43
|
+
border-style: dashed;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.wini-icon[class~="size64"] {
|
|
47
|
+
width: 6.4rem;
|
|
48
|
+
height: 6.4rem;
|
|
49
|
+
--size: 1.6rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.wini-icon[class~="size56"] {
|
|
53
|
+
width: 5.6rem;
|
|
54
|
+
height: 5.6rem;
|
|
55
|
+
--size: 1.6rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.wini-icon[class~="size48"] {
|
|
59
|
+
width: 4.8rem;
|
|
60
|
+
height: 4.8rem;
|
|
61
|
+
--size: 1.6rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.wini-icon[class~="size40"] {
|
|
65
|
+
width: 4rem;
|
|
66
|
+
height: 4rem;
|
|
67
|
+
--size: 1.4rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.wini-icon[class~="size32"] {
|
|
71
|
+
width: 3.2rem;
|
|
72
|
+
height: 3.2rem;
|
|
73
|
+
--size: 1.4rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.wini-icon[class~="size24"] {
|
|
77
|
+
width: 2.4rem;
|
|
78
|
+
height: 2.4rem;
|
|
79
|
+
--size: 1rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes on-open-tooltip {
|
|
83
|
+
from {
|
|
84
|
+
opacity: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
to {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.tooltip-container {
|
|
93
|
+
position: fixed;
|
|
94
|
+
z-index: 999;
|
|
95
|
+
animation: on-open-tooltip 0.2s ease-in-out;
|
|
96
|
+
animation-fill-mode: forwards;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.tooltip-container>.tooltip-message {
|
|
100
|
+
color: var(--neutral-text-body-reverse-color);
|
|
101
|
+
background-color: var(--neutral-main-reverse-background-color);
|
|
102
|
+
padding: 0.4rem 1.2rem;
|
|
103
|
+
border-radius: 0.8rem;
|
|
104
|
+
max-width: 21.2rem;
|
|
105
|
+
text-align: center;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.wini-icon[class~="icon-button"]:hover {
|
|
109
|
+
background-color: var(--neutral-hover-background-color);
|
|
110
|
+
}
|