@ayseaistudio/ui-components 1.0.2 → 2.0.0

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 (59) hide show
  1. package/dist/Activity/Activity.d.ts +15 -0
  2. package/dist/Activity/Activity.js +10 -0
  3. package/dist/Activity/index.d.ts +1 -0
  4. package/dist/Activity/index.js +1 -0
  5. package/dist/Activity/style.css +84 -0
  6. package/dist/Avatar/Avatar.d.ts +21 -0
  7. package/dist/Avatar/Avatar.js +23 -0
  8. package/dist/Avatar/index.d.ts +1 -0
  9. package/dist/Avatar/index.js +1 -0
  10. package/dist/Avatar/style.css +324 -0
  11. package/dist/Dot/Dot.d.ts +15 -0
  12. package/dist/Dot/Dot.js +10 -0
  13. package/dist/Dot/index.d.ts +1 -0
  14. package/dist/Dot/index.js +1 -0
  15. package/dist/Dot/style.css +24 -0
  16. package/dist/InputField/InputField.d.ts +56 -0
  17. package/dist/InputField/InputField.js +81 -0
  18. package/dist/InputField/index.d.ts +1 -0
  19. package/dist/InputField/index.js +1 -0
  20. package/dist/InputField/style.css +239 -0
  21. package/dist/Label/style.css +2 -0
  22. package/dist/Loader/Loader.d.ts +8 -0
  23. package/dist/Loader/Loader.js +8 -0
  24. package/dist/Loader/index.d.ts +1 -0
  25. package/dist/Loader/index.js +1 -0
  26. package/dist/Loader/style.css +21 -0
  27. package/dist/LoginInput/LoginInput.d.ts +33 -0
  28. package/dist/LoginInput/LoginInput.js +97 -0
  29. package/dist/LoginInput/index.d.ts +1 -0
  30. package/dist/LoginInput/index.js +1 -0
  31. package/dist/LoginInput/style.css +109 -0
  32. package/dist/Page/Page.d.ts +20 -0
  33. package/dist/Page/Page.js +16 -0
  34. package/dist/Page/index.d.ts +1 -0
  35. package/dist/Page/index.js +1 -0
  36. package/dist/Page/style.css +65 -0
  37. package/dist/PlatformSelector/PlatformSelector.d.ts +16 -0
  38. package/dist/PlatformSelector/PlatformSelector.js +11 -0
  39. package/dist/PlatformSelector/index.d.ts +1 -0
  40. package/dist/PlatformSelector/index.js +1 -0
  41. package/dist/PlatformSelector/style.css +61 -0
  42. package/dist/PlatformsButton/PlatformsButton.d.ts +20 -0
  43. package/dist/PlatformsButton/PlatformsButton.js +35 -0
  44. package/dist/PlatformsButton/index.d.ts +1 -0
  45. package/dist/PlatformsButton/index.js +1 -0
  46. package/dist/PlatformsButton/style.css +88 -0
  47. package/dist/SingleSlider/SingleSlider.d.ts +23 -0
  48. package/dist/SingleSlider/SingleSlider.js +17 -0
  49. package/dist/SingleSlider/index.d.ts +1 -0
  50. package/dist/SingleSlider/index.js +1 -0
  51. package/dist/SingleSlider/style.css +54 -0
  52. package/dist/Tags/Tags.d.ts +25 -0
  53. package/dist/Tags/Tags.js +47 -0
  54. package/dist/Tags/index.d.ts +1 -0
  55. package/dist/Tags/index.js +1 -0
  56. package/dist/Tags/style.css +173 -0
  57. package/dist/index.d.ts +11 -0
  58. package/dist/index.js +11 -0
  59. package/package.json +2 -1
@@ -0,0 +1,239 @@
1
+ .input-field {
2
+ align-items: flex-start;
3
+ flex-direction: column;
4
+ gap: 4px;
5
+ position: relative;
6
+ margin:4px;
7
+ }
8
+
9
+ .input-field .frame {
10
+ align-items: center;
11
+ display: flex;
12
+ flex: 0 0 auto;
13
+ gap: 10px;
14
+ justify-content: center;
15
+ padding: 0px 8px;
16
+ position: relative;
17
+ }
18
+
19
+ .input-field .label-2 {
20
+ flex: 1;
21
+ font-family: var(--b2-medium-font-family);
22
+ font-size: var(--b2-medium-font-size);
23
+ font-style: var(--b2-medium-font-style);
24
+ font-weight: var(--b2-medium-font-weight);
25
+ letter-spacing: var(--b2-medium-letter-spacing);
26
+ line-height: var(--b2-medium-line-height);
27
+ margin-top: -1.00px;
28
+ position: relative;
29
+ }
30
+
31
+ .input-field .input-fields {
32
+ align-items: center;
33
+ border-radius: 12px;
34
+ display: flex;
35
+ gap: 10px;
36
+ justify-content: center;
37
+ position: relative;
38
+ }
39
+
40
+ .input-field .class-5 {
41
+ height: 16px !important;
42
+ position: relative !important;
43
+ width: 16px !important;
44
+ }
45
+
46
+ .input-field .class-6 {
47
+ height: 20px !important;
48
+ position: relative !important;
49
+ width: 20px !important;
50
+ }
51
+
52
+ .input-field .placeholder {
53
+ -webkit-box-orient: vertical;
54
+ -webkit-line-clamp: 0;
55
+ display: -webkit-box;
56
+ flex: 1;
57
+ font-family: var(--h6-medium-font-family);
58
+ font-size: var(--h6-medium-font-size);
59
+ font-style: var(--h6-medium-font-style);
60
+ font-weight: var(--h6-medium-font-weight);
61
+ letter-spacing: var(--h6-medium-letter-spacing);
62
+ line-height: var(--h6-medium-line-height);
63
+ overflow: hidden;
64
+ position: relative;
65
+ text-overflow: ellipsis;
66
+ }
67
+
68
+ .input-field .button-password-eye {
69
+ height: 28px !important;
70
+ position: relative !important;
71
+ width: 28px !important;
72
+ }
73
+
74
+ .input-field .button-clear {
75
+ height: 20px !important;
76
+ position: relative !important;
77
+ width: 20px !important;
78
+ cursor: pointer;
79
+ }
80
+
81
+ .input-field .frame-2 {
82
+ align-items: center;
83
+ display: inline-flex;
84
+ flex: 0 0 auto;
85
+ gap: 4px;
86
+ position: relative;
87
+ }
88
+
89
+ .input-field .icons-1019 {
90
+ height: 12px !important;
91
+ position: relative !important;
92
+ width: 12px !important;
93
+ }
94
+
95
+ .input-field .doldurulmas-zorunlu {
96
+ color: #ff6983;
97
+ font-family: var(--b3-bold-font-family);
98
+ font-size: var(--b3-bold-font-size);
99
+ font-style: var(--b3-bold-font-style);
100
+ font-weight: var(--b3-bold-font-weight);
101
+ letter-spacing: var(--b3-bold-letter-spacing);
102
+ line-height: var(--b3-bold-line-height);
103
+ margin-top: -1.00px;
104
+ position: relative;
105
+ white-space: nowrap;
106
+ width: fit-content;
107
+ }
108
+
109
+ .input-field.size-2-with-password-eye {
110
+ display: inline-flex;
111
+ }
112
+
113
+ .input-field.size-2-large {
114
+ display: flex;
115
+ }
116
+
117
+ .input-field.size-2-medium {
118
+ display: flex;
119
+ }
120
+
121
+ .input-field.size-2-small {
122
+ display: flex;
123
+ }
124
+
125
+ .input-field .default {
126
+ color: #5d5d5d;
127
+ }
128
+
129
+ .input-field .disabled {
130
+ color: #b0b0b0;
131
+ }
132
+
133
+ .input-field .active {
134
+ color: #454545;
135
+ }
136
+
137
+ .input-field .hover {
138
+ color: #454545;
139
+ }
140
+
141
+ .input-field .alert {
142
+ color: #ff6983;
143
+ }
144
+
145
+ .input-field .size-4-large {
146
+ align-self: stretch;
147
+ height: 48px;
148
+ padding: 12px;
149
+ width: 100%;
150
+ }
151
+
152
+ .input-field .status-0-alert {
153
+ background-color: #f8f8f833;
154
+ border: 1px solid;
155
+ border-color: #ed114733;
156
+ }
157
+
158
+ .input-field .size-4-small {
159
+ align-self: stretch;
160
+ height: 32px;
161
+ padding: 6px;
162
+ width: 100%;
163
+ }
164
+
165
+ .input-field .status-0-default {
166
+ background-color: #f8f8f833;
167
+ border: 1px solid;
168
+ border-color: #2424241a;
169
+ }
170
+
171
+ .input-field .status-0-disabled {
172
+ background-color: #e7e7e7;
173
+ border-color: #2424241a;
174
+ }
175
+
176
+ .input-field .status-0-active {
177
+ background-color: #2424240d;
178
+ border: 1px solid;
179
+ border-color: #2424244c;
180
+ }
181
+
182
+ .input-field .size-4-medium {
183
+ align-self: stretch;
184
+ height: 36px;
185
+ padding: 8px;
186
+ width: 100%;
187
+ border-radius: 8px;
188
+ }
189
+
190
+ .input-field .size-4-with-password-eye {
191
+ height: 48px;
192
+ padding: 8px;
193
+ width: 241px;
194
+ }
195
+
196
+ .input-field .status-0-hover {
197
+ background-color: #2424240d;
198
+ border: 1px solid;
199
+ border-color: #2424241a;
200
+ }
201
+
202
+ .input-field.size-2-with-password-eye .frame {
203
+ width: 241px;
204
+ }
205
+
206
+ .input-field.size-2-large .frame {
207
+ align-self: stretch;
208
+ width: 100%;
209
+ }
210
+
211
+ .input-field.size-2-medium .frame {
212
+ align-self: stretch;
213
+ width: 100%;
214
+ }
215
+
216
+ .input-field.size-2-small .frame {
217
+ align-self: stretch;
218
+ width: 100%;
219
+ }
220
+
221
+ .input-field .input-fields.status-0-default .placeholder {
222
+ color: #b0b0b0;
223
+ }
224
+
225
+ .input-field .input-fields.status-0-disabled .placeholder {
226
+ color: #b0b0b0;
227
+ }
228
+
229
+ .input-field .input-fields.status-0-active .placeholder {
230
+ color: #d1d1d1;
231
+ }
232
+
233
+ .input-field .input-fields.status-0-hover .placeholder {
234
+ color: #888888;
235
+ }
236
+
237
+ .input-field .input-fields.status-0-alert .placeholder {
238
+ color: #ff6983;
239
+ }
@@ -3,6 +3,7 @@
3
3
  display: inline-flex;
4
4
  justify-content: center;
5
5
  position: relative;
6
+ cursor: default;
6
7
  }
7
8
 
8
9
  .label .class {
@@ -38,6 +39,7 @@
38
39
  text-overflow: ellipsis;
39
40
  white-space: nowrap;
40
41
  width: fit-content;
42
+ cursor: default;
41
43
  }
42
44
 
43
45
  .label.large {
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './style.css';
3
+ interface LoaderProps {
4
+ size?: number;
5
+ className?: string;
6
+ }
7
+ export declare const Loader: React.FC<LoaderProps>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import './style.css';
3
+ export const Loader = ({ size = 40, className = '' }) => {
4
+ return (_jsx("div", { className: `loader ${className}`, style: {
5
+ width: `${size}px`,
6
+ height: `${size}px`
7
+ }, children: _jsx("div", { className: "loader-spinner" }) }));
8
+ };
@@ -0,0 +1 @@
1
+ export { Loader } from './Loader';
@@ -0,0 +1 @@
1
+ export { Loader } from './Loader';
@@ -0,0 +1,21 @@
1
+ .loader {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ width: 40px;
6
+ height: 40px;
7
+ }
8
+
9
+ .loader-spinner {
10
+ width: 100%;
11
+ height: 100%;
12
+ border: 3px solid #f3f3f3;
13
+ border-top: 3px solid rgba(177, 230, 53, 1);
14
+ border-radius: 50%;
15
+ animation: spin 1s linear infinite;
16
+ }
17
+
18
+ @keyframes spin {
19
+ 0% { transform: rotate(0deg); }
20
+ 100% { transform: rotate(360deg); }
21
+ }
@@ -0,0 +1,33 @@
1
+ import PropTypes from "prop-types";
2
+ import React from "react";
3
+ import "./style.css";
4
+ interface Props {
5
+ withIcon?: boolean;
6
+ placeholder?: string;
7
+ status?: "alert" | "hover" | "active" | "default" | "selected";
8
+ className?: string;
9
+ icon?: React.JSX.Element;
10
+ value?: string;
11
+ inputType?: string;
12
+ version?: "username" | "password";
13
+ onChange?: (value: string) => void;
14
+ singleChar?: boolean;
15
+ inputRef?: React.Ref<HTMLInputElement>;
16
+ onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
17
+ }
18
+ export declare const LoginInput: {
19
+ ({ withIcon, placeholder, status, className, icon, value, onChange, inputType, version, singleChar, inputRef, onKeyDown, }: Props): React.JSX.Element;
20
+ propTypes: {
21
+ withIcon: PropTypes.Requireable<boolean>;
22
+ placeholder: PropTypes.Requireable<string>;
23
+ status: PropTypes.Requireable<string>;
24
+ className: PropTypes.Requireable<string>;
25
+ icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
26
+ value: PropTypes.Requireable<string>;
27
+ inputType: PropTypes.Requireable<string>;
28
+ version: PropTypes.Requireable<string>;
29
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
30
+ singleChar: PropTypes.Requireable<boolean>;
31
+ };
32
+ };
33
+ export {};
@@ -0,0 +1,97 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import PropTypes from "prop-types";
3
+ import { useEffect, useReducer, useState } from "react";
4
+ import "./style.css";
5
+ import { IconLayoutDashboard, IconUser, IconPassword } from "@tabler/icons-react";
6
+ export const LoginInput = ({ withIcon = true, placeholder = "Enter text", status = "default", className = "", icon = _jsx(IconLayoutDashboard, { size: 20, color: "#B0B0B0" }), value = "", onChange, inputType = "text", version, singleChar = false, inputRef, onKeyDown, }) => {
7
+ let finalIcon = icon;
8
+ let finalPlaceholder = placeholder;
9
+ let finalInputType = inputType;
10
+ if (version === "username") {
11
+ finalIcon = _jsx(IconUser, { size: 20, color: "#B0B0B0" });
12
+ finalPlaceholder = "Kullanıcı Adı";
13
+ finalInputType = "text";
14
+ }
15
+ else if (version === "password") {
16
+ finalIcon = _jsx(IconPassword, { size: 20, color: "#B0B0B0" });
17
+ finalPlaceholder = "Şifre";
18
+ finalInputType = "password";
19
+ }
20
+ const [state, dispatch] = useReducer(reducer, { status });
21
+ const [isFocused, setIsFocused] = useState(false);
22
+ const [inputValue, setInputValue] = useState(value);
23
+ const [actualType, setActualType] = useState("text");
24
+ useEffect(() => {
25
+ if (version === "password") {
26
+ const timer = setTimeout(() => {
27
+ setActualType("password");
28
+ }, 100); // DOM renderlandıktan kısa süre sonra değiştir
29
+ return () => clearTimeout(timer);
30
+ }
31
+ }, [version]);
32
+ useEffect(() => {
33
+ // Sync internal state when external value changes
34
+ setInputValue(value || "");
35
+ }, [value]);
36
+ const handleInputChange = (e) => {
37
+ const rawValue = e.target.value;
38
+ const nextValue = singleChar ? rawValue.slice(0, 1) : rawValue;
39
+ setInputValue(nextValue);
40
+ if (onChange)
41
+ onChange(nextValue);
42
+ if (nextValue) {
43
+ dispatch("input");
44
+ }
45
+ else if (!isFocused) {
46
+ dispatch("blur");
47
+ }
48
+ };
49
+ const handleFocus = () => {
50
+ setIsFocused(true);
51
+ dispatch("focus");
52
+ };
53
+ const handleBlur = () => {
54
+ setIsFocused(false);
55
+ if (!inputValue)
56
+ dispatch("blur");
57
+ };
58
+ return (_jsxs("div", { className: `login-input ${state.status} ${className}`, onMouseLeave: () => {
59
+ if (state.status !== "selected")
60
+ dispatch("mouse_leave");
61
+ }, onMouseEnter: () => {
62
+ if (state.status !== "selected")
63
+ dispatch("mouse_enter");
64
+ }, children: [_jsxs("div", { className: `placeholder-container ${isFocused || inputValue ? "active" : ""}`, children: [withIcon && _jsx("span", { className: "icon-container", children: finalIcon }), _jsx("label", { className: "placeholder", htmlFor: "login-input", children: finalPlaceholder })] }), _jsx("input", { id: `login-input-${version}`, className: "input-field", type: version === "password" ? actualType : finalInputType, value: inputValue, onChange: handleInputChange, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: onKeyDown, autoComplete: "off", autoCorrect: "off", autoCapitalize: "off", spellCheck: "false", name: `input-${version}-${Math.random().toString(36).substring(2, 15)}`, maxLength: singleChar ? 1 : undefined, ref: inputRef })] }));
65
+ };
66
+ function reducer(state, action) {
67
+ switch (action) {
68
+ case "mouse_enter":
69
+ if (state.status === "selected")
70
+ return state;
71
+ return { ...state, status: "hover" };
72
+ case "mouse_leave":
73
+ if (state.status === "selected")
74
+ return state;
75
+ return { ...state, status: "default" };
76
+ case "focus":
77
+ return { ...state, status: "selected" };
78
+ case "blur":
79
+ return { ...state, status: "default" };
80
+ case "input":
81
+ return { ...state, status: "selected" };
82
+ default:
83
+ return state;
84
+ }
85
+ }
86
+ LoginInput.propTypes = {
87
+ withIcon: PropTypes.bool,
88
+ placeholder: PropTypes.string,
89
+ status: PropTypes.oneOf(["alert", "hover", "active", "default", "selected"]),
90
+ className: PropTypes.string,
91
+ icon: PropTypes.element,
92
+ value: PropTypes.string,
93
+ inputType: PropTypes.string,
94
+ version: PropTypes.oneOf(["username", "password"]),
95
+ onChange: PropTypes.func,
96
+ singleChar: PropTypes.bool,
97
+ };
@@ -0,0 +1 @@
1
+ export { LoginInput } from "./LoginInput";
@@ -0,0 +1 @@
1
+ export { LoginInput } from "./LoginInput";
@@ -0,0 +1,109 @@
1
+ .login-input {
2
+ font-family: 'Inter', sans-serif;
3
+ border: 1px solid rgba(36, 36, 36, 0.1);
4
+ border-radius: 12px;
5
+ display: flex;
6
+ align-items: center;
7
+ padding: 12px;
8
+ position: relative;
9
+ width: 100%;
10
+ background-color: #f8f8f8;
11
+ transition: border-color 0.3s ease, background-color 0.3s ease;
12
+ height: 60px;
13
+ caret-color: rgba(136, 136, 136, 1); /* Cursor rengi mavi olarak değiştirildi */
14
+
15
+ }
16
+
17
+ .login-input:hover {
18
+ border-color: rgba(36, 36, 36, 0.3);
19
+ background-color: rgba(36, 36, 36, 0.05);
20
+ }
21
+
22
+ .placeholder-container {
23
+ display: flex;
24
+ align-items: center;
25
+ gap: 4px;
26
+ position: absolute;
27
+ top: 50%;
28
+ left: 16px; /* Placeholder biraz sağdan başlat */
29
+ transform: translateY(-50%);
30
+ transition: all 0.3s ease;
31
+ pointer-events: none;
32
+ }
33
+
34
+ .placeholder-container.active {
35
+ top: -0.5px; /* Placeholder yukarı kaydırıldı */
36
+ left: 8px;
37
+ transform: translateY(0);
38
+ }
39
+
40
+ .placeholder-container .icons {
41
+ font-size: 16px;
42
+ transition: all 0.3s ease;
43
+ }
44
+
45
+ .placeholder-container.active .icons {
46
+ font-size: 6px; /* İkon boyutu küçültüldü */
47
+ }
48
+
49
+ .placeholder {
50
+ font-size: 16px;
51
+ color: #b0b0b0;
52
+ transition: all 0.3s ease;
53
+ }
54
+
55
+ .placeholder-container.active .placeholder {
56
+ font-size: 12px; /* Placeholder yazı boyutu küçültüldü */
57
+ color: #888888;
58
+ }
59
+
60
+ .input-field {
61
+ font-family: 'Inter', sans-serif;
62
+ border: none;
63
+ outline: none;
64
+ font-size: 16px;
65
+ width: 100%;
66
+ background-color: transparent;
67
+ color: #242424;
68
+ margin: 0; /* Varsayılan margin'i kaldır */
69
+ }
70
+
71
+ .input-field::placeholder {
72
+ color: rgba(136, 136, 136, 1);
73
+ }
74
+
75
+ .input-field:focus {
76
+ caret-color: rgba(136, 136, 136, 1);
77
+ }
78
+
79
+ .login-input.active {
80
+ border-color: #242424;
81
+ }
82
+
83
+ .login-input.selected {
84
+ border-color: rgba(36, 36, 36, 0.3); /* Hover durumunda aynı kal */
85
+ background-color: rgba(36, 36, 36, 0.05);
86
+ caret-color: rgba(36, 36, 36, 0.3);
87
+ }
88
+
89
+ .login-input.selected:hover {
90
+ border-color: rgba(36, 36, 36, 0.3); /* Hover durumunda aynı kal */
91
+ background-color: rgba(36, 36, 36, 0.05);
92
+ caret-color: rgba(36, 36, 36, 1);
93
+ }
94
+
95
+
96
+ .input-field:focus {
97
+ caret-color: rgba(36, 36, 36, 1);
98
+ }
99
+
100
+ .icon-container {
101
+ display: flex;
102
+ align-items: center;
103
+ transition: all 0.3s ease;
104
+ transform: scale(1); /* Başlangıç ölçeği */
105
+ }
106
+
107
+ .placeholder-container.active .icon-container {
108
+ transform: scale(0.7) translateY(-1px); /* Küçültüp yukarı taşı */
109
+ }
@@ -0,0 +1,20 @@
1
+ import PropTypes from "prop-types";
2
+ import "./style.css";
3
+ interface Props {
4
+ page?: string;
5
+ type?: "default" | "current";
6
+ current?: boolean;
7
+ dateClassName?: string;
8
+ icon?: React.JSX.Element;
9
+ notClickable?: boolean;
10
+ onClick?: () => void;
11
+ }
12
+ export declare const Page: {
13
+ ({ page, type, current, dateClassName, icon, notClickable, onClick, }: Props): React.JSX.Element;
14
+ propTypes: {
15
+ page: PropTypes.Requireable<string>;
16
+ type: PropTypes.Requireable<string>;
17
+ current: PropTypes.Requireable<boolean>;
18
+ };
19
+ };
20
+ export {};
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import PropTypes from "prop-types";
3
+ import "./style.css";
4
+ export const Page = ({ page = "0", type, current = false, dateClassName, icon, notClickable = false, onClick, }) => {
5
+ const handleClick = () => {
6
+ if (!notClickable && onClick) {
7
+ onClick();
8
+ }
9
+ };
10
+ return (_jsx("div", { className: `page ${current ? 'current' : ''} ${notClickable ? 'not-clickable' : ''}`, onClick: handleClick, children: icon ? (_jsx("div", { className: "page-icon", children: icon })) : (_jsx("div", { className: `date ${dateClassName}`, children: page })) }));
11
+ };
12
+ Page.propTypes = {
13
+ page: PropTypes.string,
14
+ type: PropTypes.oneOf(["default", "current"]),
15
+ current: PropTypes.bool,
16
+ };
@@ -0,0 +1 @@
1
+ export { Page } from "./Page";
@@ -0,0 +1 @@
1
+ export { Page } from "./Page";
@@ -0,0 +1,65 @@
1
+ .page {
2
+ align-items: center;
3
+ background-color: #ffffff;
4
+ border: 1px solid;
5
+ border-color: #f1f1f1;
6
+ border-radius: 8px;
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 10px;
10
+ height: 32px;
11
+ justify-content: center;
12
+ position: relative;
13
+ width: 32px;
14
+ transition: all 0.2s ease-in-out;
15
+ cursor: pointer;
16
+ }
17
+
18
+ .page.not-clickable {
19
+ cursor: default;
20
+ }
21
+
22
+ .page .date {
23
+ color: #5d5d5d;
24
+ font-family: var(--b1-medium-font-family);
25
+ font-size: var(--b1-medium-font-size);
26
+ font-style: var(--b1-medium-font-style);
27
+ font-weight: var(--b1-medium-font-weight);
28
+ letter-spacing: var(--b1-medium-letter-spacing);
29
+ line-height: var(--b1-medium-line-height);
30
+ margin-bottom: -3.00px;
31
+ margin-top: -5.00px;
32
+ position: relative;
33
+ white-space: nowrap;
34
+ width: fit-content;
35
+ }
36
+
37
+ .page:hover {
38
+ background-color: #f1f1f1;
39
+ }
40
+
41
+ .page.current {
42
+ background-color: rgba(177, 230, 53, 1);
43
+ }
44
+
45
+ .date {
46
+ font-size: 14px;
47
+ color: #333;
48
+ }
49
+
50
+ .date.current {
51
+ color: rgba(177, 230, 53, 1);
52
+ font-weight: 600;
53
+ }
54
+
55
+ .page img {
56
+ width: 16px;
57
+ height: 16px;
58
+ }
59
+
60
+ .page-icon {
61
+ width: 16px;
62
+ height: 16px;
63
+ display: block;
64
+ margin: auto;
65
+ }
@@ -0,0 +1,16 @@
1
+ import PropTypes from "prop-types";
2
+ import "./style.css";
3
+ interface Props {
4
+ icon: React.JSX.Element;
5
+ text: string;
6
+ className: any;
7
+ onClick?: () => void;
8
+ }
9
+ export declare const PlatformSelector: {
10
+ ({ icon, text, className, onClick, }: Props): React.JSX.Element;
11
+ propTypes: {
12
+ property1: PropTypes.Requireable<string>;
13
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
14
+ };
15
+ };
16
+ export {};
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import PropTypes from "prop-types";
3
+ import "./style.css";
4
+ import { IconSelector } from '@tabler/icons-react';
5
+ export const PlatformSelector = ({ icon, text, className, onClick, }) => {
6
+ return (_jsxs("div", { className: `platform-selector ${className}`, onClick: onClick, style: { cursor: 'pointer' }, children: [_jsxs("div", { className: "frame-platform-selector", children: [_jsx("div", { className: "icon-agent", children: icon }), _jsx("div", { className: "text-wrapper", children: text })] }), _jsx(IconSelector, { className: "icons" })] }));
7
+ };
8
+ PlatformSelector.propTypes = {
9
+ property1: PropTypes.oneOf(["agentmaker"]),
10
+ onClick: PropTypes.func,
11
+ };
@@ -0,0 +1 @@
1
+ export { PlatformSelector } from "./PlatformSelector";
@@ -0,0 +1 @@
1
+ export { PlatformSelector } from "./PlatformSelector";