@companix/uikit 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.
- package/.eslintrc +54 -0
- package/declaration.d.ts +4 -0
- package/index.html +12 -0
- package/package.json +66 -0
- package/playground/App.tsx +166 -0
- package/playground/Example.tsx +14 -0
- package/playground/Test.tsx +44 -0
- package/playground/animation-test-1/index.scss +20 -0
- package/playground/animation-test-1/index.tsx +17 -0
- package/playground/animation-test-2/index.scss +62 -0
- package/playground/animation-test-2/index.tsx +32 -0
- package/playground/bootstrap.tsx +19 -0
- package/playground/buttons/index.tsx +132 -0
- package/playground/checkbox/index.tsx +64 -0
- package/playground/date-input/index.tsx +45 -0
- package/playground/date-picker/index.tsx +41 -0
- package/playground/dialog/index.tsx +92 -0
- package/playground/dialog-alert/index.tsx +47 -0
- package/playground/drawer/index.tsx +55 -0
- package/playground/index.css +33 -0
- package/playground/index.scss +270 -0
- package/playground/input/index.tsx +112 -0
- package/playground/number-inputs/index.tsx +50 -0
- package/playground/popovers/index.tsx +70 -0
- package/playground/radio-group/index.tsx +69 -0
- package/playground/select/index.tsx +72 -0
- package/playground/select-tags/index.tsx +36 -0
- package/playground/styles.scss +2 -0
- package/playground/switch/index.tsx +44 -0
- package/playground/tabs/index.tsx +16 -0
- package/playground/test.scss +0 -0
- package/playground/text-area/index.tsx +17 -0
- package/playground/text-input/index.tsx +12 -0
- package/playground/toaster/index.tsx +156 -0
- package/playground/tooltip/index.tsx +26 -0
- package/src/Button/Button.scss +128 -0
- package/src/Button/index.tsx +72 -0
- package/src/ButtonGroup/ButtonGroup.scss +18 -0
- package/src/ButtonGroup/index.tsx +20 -0
- package/src/Checkbox/Checkbox.scss +115 -0
- package/src/Checkbox/index.tsx +46 -0
- package/src/Countdown/index.tsx +54 -0
- package/src/DateInput/DateInput.scss +11 -0
- package/src/DateInput/index.tsx +96 -0
- package/src/DatePicker/Calendar.scss +125 -0
- package/src/DatePicker/Calendar.tsx +157 -0
- package/src/DatePicker/CalendarHeader.tsx +139 -0
- package/src/DatePicker/DatePicker.scss +0 -0
- package/src/DatePicker/index.tsx +177 -0
- package/src/Dialog/Dialog.scss +25 -0
- package/src/Dialog/Popup.scss +55 -0
- package/src/Dialog/index.tsx +31 -0
- package/src/DialogAlert/Alert.scss +52 -0
- package/src/DialogAlert/Alert.tsx +78 -0
- package/src/DialogAlert/Viewport.tsx +52 -0
- package/src/DialogAlert/index.tsx +37 -0
- package/src/Drawer/Drawer.scss +112 -0
- package/src/Drawer/index.tsx +46 -0
- package/src/File/index.tsx +60 -0
- package/src/Form/Form.scss +70 -0
- package/src/Form/Input.scss +24 -0
- package/src/Form/index.tsx +131 -0
- package/src/Icon/icon.scss +18 -0
- package/src/Icon/index.tsx +43 -0
- package/src/LoadButton/index.tsx +17 -0
- package/src/NumberInput/index.tsx +74 -0
- package/src/OptionItem/Option.scss +89 -0
- package/src/OptionItem/OptionItem.tsx +49 -0
- package/src/OptionItem/OptionsList.tsx +26 -0
- package/src/Popover/Popover.scss +80 -0
- package/src/Popover/index.tsx +117 -0
- package/src/Radio/Radio.scss +148 -0
- package/src/Radio/index.tsx +68 -0
- package/src/Scrollable/ImitateScroll.tsx +141 -0
- package/src/Scrollable/Scrollable.scss +50 -0
- package/src/Scrollable/index.tsx +141 -0
- package/src/Select/Select.scss +80 -0
- package/src/Select/SelectInput.tsx +131 -0
- package/src/Select/index.tsx +134 -0
- package/src/SelectTags/SelectTags.scss +66 -0
- package/src/SelectTags/index.tsx +192 -0
- package/src/Spinner/Spinner.scss +14 -0
- package/src/Spinner/index.tsx +19 -0
- package/src/Stepper/StepperInput.scss +35 -0
- package/src/Stepper/index.tsx +76 -0
- package/src/Switch/Switch.scss +102 -0
- package/src/Switch/index.tsx +49 -0
- package/src/Tabs/Tabs.scss +58 -0
- package/src/Tabs/index.tsx +89 -0
- package/src/TextArea/TextArea.scss +34 -0
- package/src/TextArea/index.tsx +51 -0
- package/src/Toaster/RemoveListener.tsx +11 -0
- package/src/Toaster/Toast.tsx +69 -0
- package/src/Toaster/Toaster.scss +151 -0
- package/src/Toaster/Viewport.tsx +117 -0
- package/src/Toaster/index.tsx +52 -0
- package/src/Tooltip/Tooltip.scss +28 -0
- package/src/Tooltip/index.tsx +33 -0
- package/src/__hooks/use-frooze-closing.ts +51 -0
- package/src/__hooks/use-loading.ts +34 -0
- package/src/__hooks/use-local-storage.ts +19 -0
- package/src/__hooks/use-popover-position.ts +24 -0
- package/src/__hooks/use-previos.ts +25 -0
- package/src/__hooks/use-resize.ts +41 -0
- package/src/__hooks/use-scrollbox.ts +45 -0
- package/src/__hooks/use-stepper-input.ts +82 -0
- package/src/__hooks/use-update.ts +19 -0
- package/src/__hooks/useCalendar.ts +104 -0
- package/src/__hooks/useCalendarOptions-copy.ts +87 -0
- package/src/__hooks/useCalendarOptions.ts +68 -0
- package/src/__libs/calendar.ts +175 -0
- package/src/__utils/utils.ts +137 -0
- package/src/css.scss +120 -0
- package/src/index.scss +22 -0
- package/src/index.ts +36 -0
- package/src/mixins.scss +99 -0
- package/src/theme.scss +103 -0
- package/src/types.ts +14 -0
- package/tailwind.config.js +91 -0
- package/themes/classic/animations.scss +179 -0
- package/themes/classic/classic.scss +493 -0
- package/tsconfig.json +27 -0
- package/vite.build.ts +35 -0
- package/vite.config.ts +33 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
content: ['./index.html', './playground/*.{js,jsx,ts,tsx}', './playground/**/*.{js,jsx,ts,tsx}'],
|
|
3
|
+
corePlugins: {
|
|
4
|
+
preflight: false
|
|
5
|
+
},
|
|
6
|
+
theme: {
|
|
7
|
+
borderRadius: {
|
|
8
|
+
none: '0px',
|
|
9
|
+
sm: '3px',
|
|
10
|
+
DEFAULT: '4px',
|
|
11
|
+
md: '6px',
|
|
12
|
+
lg: '8px',
|
|
13
|
+
xl: '12px',
|
|
14
|
+
full: '9999px'
|
|
15
|
+
},
|
|
16
|
+
zIndex: {
|
|
17
|
+
auto: 'auto',
|
|
18
|
+
1: '1',
|
|
19
|
+
2: '2',
|
|
20
|
+
3: '3',
|
|
21
|
+
4: '4',
|
|
22
|
+
0: '0',
|
|
23
|
+
10: '10',
|
|
24
|
+
20: '20',
|
|
25
|
+
30: '30',
|
|
26
|
+
40: '40'
|
|
27
|
+
},
|
|
28
|
+
fontSize: {
|
|
29
|
+
xs: ['12px', { lineHeight: '14px' }],
|
|
30
|
+
sm: ['14px', { lineHeight: '16.5px' }],
|
|
31
|
+
base: ['16px', { lineHeight: '19px' }],
|
|
32
|
+
lg: ['18px', { lineHeight: '21.5px' }],
|
|
33
|
+
xl: ['20px', { lineHeight: '23.5px' }],
|
|
34
|
+
'2xl': ['22px', { lineHeight: '26px' }],
|
|
35
|
+
'3xl': ['24px', { lineHeight: '28px' }]
|
|
36
|
+
},
|
|
37
|
+
spacing: {
|
|
38
|
+
0: '0px',
|
|
39
|
+
1: '1px',
|
|
40
|
+
2: '2px',
|
|
41
|
+
3: '3px',
|
|
42
|
+
4: '4px',
|
|
43
|
+
5: '5px',
|
|
44
|
+
6: '6px',
|
|
45
|
+
7: '7px',
|
|
46
|
+
8: '8px',
|
|
47
|
+
9: '9px',
|
|
48
|
+
10: '10px',
|
|
49
|
+
11: '11px',
|
|
50
|
+
12: '12px',
|
|
51
|
+
13: '13px',
|
|
52
|
+
14: '14px',
|
|
53
|
+
15: '15px',
|
|
54
|
+
16: '16px',
|
|
55
|
+
17: '17px',
|
|
56
|
+
18: '18px',
|
|
57
|
+
19: '19px',
|
|
58
|
+
20: '20px',
|
|
59
|
+
21: '21px',
|
|
60
|
+
22: '22px',
|
|
61
|
+
23: '23px',
|
|
62
|
+
24: '24px',
|
|
63
|
+
25: '25px',
|
|
64
|
+
26: '26px',
|
|
65
|
+
27: '27px',
|
|
66
|
+
28: '28px',
|
|
67
|
+
29: '29px',
|
|
68
|
+
30: '30px',
|
|
69
|
+
31: '31px',
|
|
70
|
+
32: '32px',
|
|
71
|
+
33: '33px',
|
|
72
|
+
34: '34px',
|
|
73
|
+
35: '35px',
|
|
74
|
+
36: '36px',
|
|
75
|
+
37: '37px',
|
|
76
|
+
38: '38px',
|
|
77
|
+
39: '39px',
|
|
78
|
+
40: '40px',
|
|
79
|
+
44: '44px',
|
|
80
|
+
48: '48px',
|
|
81
|
+
52: '52px',
|
|
82
|
+
56: '56px',
|
|
83
|
+
60: '60px',
|
|
84
|
+
64: '64px',
|
|
85
|
+
72: '72px',
|
|
86
|
+
80: '80px',
|
|
87
|
+
96: '96px'
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
plugins: []
|
|
91
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@keyframes popoverScaleIn {
|
|
2
|
+
from {
|
|
3
|
+
transform: scale(0.3);
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: scale(1);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@keyframes fadeIn {
|
|
11
|
+
from {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// out
|
|
20
|
+
|
|
21
|
+
@keyframes popoverScaleOut {
|
|
22
|
+
from {
|
|
23
|
+
transform: scale(1);
|
|
24
|
+
}
|
|
25
|
+
to {
|
|
26
|
+
transform: scale(0.3);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes fadeOut {
|
|
31
|
+
from {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
to {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes checkboxIn {
|
|
40
|
+
from {
|
|
41
|
+
transform: translateY(-5px);
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
transform: translateY(0);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes checkboxOut {
|
|
49
|
+
from {
|
|
50
|
+
transform: translateY(0);
|
|
51
|
+
}
|
|
52
|
+
to {
|
|
53
|
+
transform: translateY(-5px);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@keyframes checkboxInColor {
|
|
58
|
+
from {
|
|
59
|
+
color: transparent;
|
|
60
|
+
}
|
|
61
|
+
to {
|
|
62
|
+
color: #242429;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes checkboxOutColor {
|
|
67
|
+
from {
|
|
68
|
+
color: #242429;
|
|
69
|
+
}
|
|
70
|
+
to {
|
|
71
|
+
color: transparent;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// radio-mark
|
|
76
|
+
|
|
77
|
+
@keyframes markScaleIn {
|
|
78
|
+
from {
|
|
79
|
+
transform: scale(0.1);
|
|
80
|
+
}
|
|
81
|
+
to {
|
|
82
|
+
transform: scale(1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@keyframes markScaleOut {
|
|
87
|
+
from {
|
|
88
|
+
transform: scale(1);
|
|
89
|
+
}
|
|
90
|
+
to {
|
|
91
|
+
transform: scale(0.1);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// dialog
|
|
96
|
+
|
|
97
|
+
@keyframes dialogIn {
|
|
98
|
+
0% {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
transform: scale(0.5);
|
|
101
|
+
}
|
|
102
|
+
100% {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
transform: scale(1);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes dialogOut {
|
|
109
|
+
from {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
transform: scale(1);
|
|
112
|
+
}
|
|
113
|
+
to {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
transform: scale(0.5);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// drawer
|
|
120
|
+
|
|
121
|
+
@keyframes slideFromBottom {
|
|
122
|
+
from {
|
|
123
|
+
transform: translate3d(0, 100%, 0);
|
|
124
|
+
}
|
|
125
|
+
to {
|
|
126
|
+
transform: translate3d(0, 0, 0);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@keyframes slideToBottom {
|
|
131
|
+
to {
|
|
132
|
+
transform: translate3d(0, 100%, 0);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@keyframes slideFromTop {
|
|
137
|
+
from {
|
|
138
|
+
transform: translate3d(0, -100%, 0);
|
|
139
|
+
}
|
|
140
|
+
to {
|
|
141
|
+
transform: translate3d(0, 0, 0);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@keyframes slideToTop {
|
|
146
|
+
to {
|
|
147
|
+
transform: translate3d(0, -100%, 0);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@keyframes slideFromLeft {
|
|
152
|
+
from {
|
|
153
|
+
transform: translate3d(-100%, 0, 0);
|
|
154
|
+
}
|
|
155
|
+
to {
|
|
156
|
+
transform: translate3d(0, 0, 0);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@keyframes slideToLeft {
|
|
161
|
+
to {
|
|
162
|
+
transform: translate3d(-100%, 0, 0);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@keyframes slideFromRight {
|
|
167
|
+
from {
|
|
168
|
+
transform: translate3d(100%, 0, 0);
|
|
169
|
+
}
|
|
170
|
+
to {
|
|
171
|
+
transform: translate3d(0, 0, 0);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@keyframes slideToRight {
|
|
176
|
+
to {
|
|
177
|
+
transform: translate3d(100%, 0, 0);
|
|
178
|
+
}
|
|
179
|
+
}
|