wini-web-components 2.8.2 → 2.8.5

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 (66) hide show
  1. package/dist/index.js.js +10 -10
  2. package/dist/index.js.mjs +198 -185
  3. package/package.json +6 -2
  4. package/src/component/button/button.module.css +210 -0
  5. package/src/component/button/button.tsx +57 -0
  6. package/src/component/calendar/calendar.module.css +153 -0
  7. package/src/component/calendar/calendar.tsx +389 -0
  8. package/src/component/carousel/carousel.css +622 -0
  9. package/src/component/carousel/carousel.tsx +91 -0
  10. package/src/component/checkbox/checkbox.module.css +48 -0
  11. package/src/component/checkbox/checkbox.tsx +80 -0
  12. package/src/component/ck-editor/ck-editor.css +206 -0
  13. package/src/component/ck-editor/ckeditor.tsx +522 -0
  14. package/src/component/component-status.tsx +53 -0
  15. package/src/component/date-time-picker/date-time-picker.module.css +94 -0
  16. package/src/component/date-time-picker/date-time-picker.tsx +663 -0
  17. package/src/component/dialog/dialog.module.css +111 -0
  18. package/src/component/dialog/dialog.tsx +109 -0
  19. package/src/component/import-file/import-file.module.css +83 -0
  20. package/src/component/import-file/import-file.tsx +174 -0
  21. package/src/component/infinite-scroll/infinite-scroll.module.css +34 -0
  22. package/src/component/infinite-scroll/infinite-scroll.tsx +35 -0
  23. package/src/component/input-multi-select/input-multi-select.module.css +121 -0
  24. package/src/component/input-multi-select/input-multi-select.tsx +263 -0
  25. package/src/component/input-otp/input-otp.module.css +41 -0
  26. package/src/component/input-otp/input-otp.tsx +110 -0
  27. package/src/component/number-picker/number-picker.module.css +137 -0
  28. package/src/component/number-picker/number-picker.tsx +107 -0
  29. package/src/component/pagination/pagination.module.css +48 -0
  30. package/src/component/pagination/pagination.tsx +88 -0
  31. package/src/component/popup/popup.css +136 -0
  32. package/src/component/popup/popup.tsx +125 -0
  33. package/src/component/progress-bar/progress-bar.module.css +42 -0
  34. package/src/component/progress-bar/progress-bar.tsx +33 -0
  35. package/src/component/progress-circle/progress-circle.css +0 -0
  36. package/src/component/progress-circle/progress-circle.tsx +25 -0
  37. package/src/component/radio-button/radio-button.module.css +51 -0
  38. package/src/component/radio-button/radio-button.tsx +60 -0
  39. package/src/component/rating/rating.module.css +11 -0
  40. package/src/component/rating/rating.tsx +65 -0
  41. package/src/component/select1/select1.module.css +108 -0
  42. package/src/component/select1/select1.tsx +271 -0
  43. package/src/component/switch/switch.module.css +53 -0
  44. package/src/component/switch/switch.tsx +68 -0
  45. package/src/component/table/table.css +74 -0
  46. package/src/component/table/table.tsx +108 -0
  47. package/src/component/tag/tag.module.css +108 -0
  48. package/src/component/tag/tag.tsx +31 -0
  49. package/src/component/text/text.css +27 -0
  50. package/src/component/text/text.tsx +24 -0
  51. package/src/component/text-area/text-area.module.css +57 -0
  52. package/src/component/text-area/text-area.tsx +65 -0
  53. package/src/component/text-field/text-field.module.css +71 -0
  54. package/src/component/text-field/text-field.tsx +102 -0
  55. package/src/component/toast-noti/toast-noti.css +866 -0
  56. package/src/component/toast-noti/toast-noti.tsx +22 -0
  57. package/src/component/wini-icon/winicon.module.css +110 -0
  58. package/src/component/wini-icon/winicon.tsx +9424 -0
  59. package/src/form/login/view.module.css +80 -0
  60. package/src/form/login/view.tsx +138 -0
  61. package/src/index.tsx +66 -0
  62. package/src/language/i18n.tsx +143 -0
  63. package/src/skin/layout.css +649 -0
  64. package/src/skin/root.css +294 -0
  65. package/src/skin/typography.css +314 -0
  66. 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
+ }