ywana-core8 0.2.3 → 0.2.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.
- package/dist/index.css +279 -0
- package/dist/index.js +423 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +423 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +423 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/desktop/AppManager.js +270 -0
- package/src/desktop/ApplicationMenu.css +279 -0
- package/src/desktop/ApplicationMenu.js +214 -0
- package/src/desktop/Desktop.stories.jsx +262 -5
- package/src/desktop/desktop.js +124 -43
- package/src/desktop/index.js +5 -1
- package/src/examples/ApplicationMenuExample.js +361 -0
package/dist/index.css
CHANGED
@@ -16061,6 +16061,285 @@ li.selected,
|
|
16061
16061
|
.window--dragging * {
|
16062
16062
|
user-select: none !important;
|
16063
16063
|
}
|
16064
|
+
/* ApplicationMenu - Full-screen overlay styles */
|
16065
|
+
|
16066
|
+
.application-menu-overlay {
|
16067
|
+
position: fixed;
|
16068
|
+
top: 0;
|
16069
|
+
left: 0;
|
16070
|
+
right: 0;
|
16071
|
+
bottom: 0;
|
16072
|
+
background: rgba(0, 0, 0, 0.8);
|
16073
|
+
backdrop-filter: blur(8px);
|
16074
|
+
z-index: 10000;
|
16075
|
+
display: flex;
|
16076
|
+
align-items: center;
|
16077
|
+
justify-content: center;
|
16078
|
+
animation: fadeIn 0.2s ease-out;
|
16079
|
+
}
|
16080
|
+
|
16081
|
+
@keyframes fadeIn {
|
16082
|
+
from {
|
16083
|
+
opacity: 0;
|
16084
|
+
}
|
16085
|
+
to {
|
16086
|
+
opacity: 1;
|
16087
|
+
}
|
16088
|
+
}
|
16089
|
+
|
16090
|
+
.application-menu {
|
16091
|
+
background: #ffffff;
|
16092
|
+
border-radius: 12px;
|
16093
|
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
16094
|
+
width: 90%;
|
16095
|
+
max-width: 900px;
|
16096
|
+
height: 80%;
|
16097
|
+
max-height: 700px;
|
16098
|
+
display: flex;
|
16099
|
+
flex-direction: column;
|
16100
|
+
overflow: hidden;
|
16101
|
+
animation: slideIn 0.3s ease-out;
|
16102
|
+
}
|
16103
|
+
|
16104
|
+
@keyframes slideIn {
|
16105
|
+
from {
|
16106
|
+
transform: scale(0.9) translateY(20px);
|
16107
|
+
opacity: 0;
|
16108
|
+
}
|
16109
|
+
to {
|
16110
|
+
transform: scale(1) translateY(0);
|
16111
|
+
opacity: 1;
|
16112
|
+
}
|
16113
|
+
}
|
16114
|
+
|
16115
|
+
/* Header */
|
16116
|
+
.application-menu__header {
|
16117
|
+
display: flex;
|
16118
|
+
align-items: center;
|
16119
|
+
justify-content: space-between;
|
16120
|
+
padding: 20px 24px;
|
16121
|
+
border-bottom: 1px solid #e0e0e0;
|
16122
|
+
background: #f8f9fa;
|
16123
|
+
}
|
16124
|
+
|
16125
|
+
.application-menu__header h2 {
|
16126
|
+
margin: 0;
|
16127
|
+
color: #333;
|
16128
|
+
font-size: 24px;
|
16129
|
+
font-weight: 600;
|
16130
|
+
}
|
16131
|
+
|
16132
|
+
.application-menu__close {
|
16133
|
+
background: none;
|
16134
|
+
border: none;
|
16135
|
+
font-size: 24px;
|
16136
|
+
color: #666;
|
16137
|
+
cursor: pointer;
|
16138
|
+
padding: 4px 8px;
|
16139
|
+
border-radius: 4px;
|
16140
|
+
transition: all 0.2s ease;
|
16141
|
+
}
|
16142
|
+
|
16143
|
+
.application-menu__close:hover {
|
16144
|
+
background: #e0e0e0;
|
16145
|
+
color: #333;
|
16146
|
+
}
|
16147
|
+
|
16148
|
+
/* Search */
|
16149
|
+
.application-menu__search {
|
16150
|
+
padding: 16px 24px;
|
16151
|
+
border-bottom: 1px solid #e0e0e0;
|
16152
|
+
}
|
16153
|
+
|
16154
|
+
.application-menu__search-input {
|
16155
|
+
width: 100%;
|
16156
|
+
padding: 12px 16px;
|
16157
|
+
border: 2px solid #e0e0e0;
|
16158
|
+
border-radius: 8px;
|
16159
|
+
font-size: 16px;
|
16160
|
+
outline: none;
|
16161
|
+
transition: border-color 0.2s ease;
|
16162
|
+
}
|
16163
|
+
|
16164
|
+
.application-menu__search-input:focus {
|
16165
|
+
border-color: #1976d2;
|
16166
|
+
}
|
16167
|
+
|
16168
|
+
/* Categories */
|
16169
|
+
.application-menu__categories {
|
16170
|
+
display: flex;
|
16171
|
+
gap: 8px;
|
16172
|
+
padding: 16px 24px;
|
16173
|
+
border-bottom: 1px solid #e0e0e0;
|
16174
|
+
background: #f8f9fa;
|
16175
|
+
overflow-x: auto;
|
16176
|
+
}
|
16177
|
+
|
16178
|
+
.application-menu__category {
|
16179
|
+
display: flex;
|
16180
|
+
align-items: center;
|
16181
|
+
gap: 8px;
|
16182
|
+
padding: 8px 16px;
|
16183
|
+
background: #ffffff;
|
16184
|
+
border: 1px solid #e0e0e0;
|
16185
|
+
border-radius: 20px;
|
16186
|
+
cursor: pointer;
|
16187
|
+
font-size: 14px;
|
16188
|
+
white-space: nowrap;
|
16189
|
+
transition: all 0.2s ease;
|
16190
|
+
color: #666;
|
16191
|
+
}
|
16192
|
+
|
16193
|
+
.application-menu__category:hover {
|
16194
|
+
background: #f0f0f0;
|
16195
|
+
border-color: #ccc;
|
16196
|
+
}
|
16197
|
+
|
16198
|
+
.application-menu__category.active {
|
16199
|
+
background: #1976d2;
|
16200
|
+
border-color: #1976d2;
|
16201
|
+
color: white;
|
16202
|
+
}
|
16203
|
+
|
16204
|
+
.category-icon {
|
16205
|
+
font-size: 16px;
|
16206
|
+
}
|
16207
|
+
|
16208
|
+
/* Content */
|
16209
|
+
.application-menu__content {
|
16210
|
+
flex: 1;
|
16211
|
+
overflow-y: auto;
|
16212
|
+
padding: 24px;
|
16213
|
+
}
|
16214
|
+
|
16215
|
+
.application-menu__search-results h3,
|
16216
|
+
.category-title {
|
16217
|
+
margin: 0 0 16px 0;
|
16218
|
+
color: #333;
|
16219
|
+
font-size: 18px;
|
16220
|
+
font-weight: 600;
|
16221
|
+
}
|
16222
|
+
|
16223
|
+
.application-menu__category-section {
|
16224
|
+
margin-bottom: 32px;
|
16225
|
+
}
|
16226
|
+
|
16227
|
+
.application-menu__category-section:last-child {
|
16228
|
+
margin-bottom: 0;
|
16229
|
+
}
|
16230
|
+
|
16231
|
+
/* Apps Grid */
|
16232
|
+
.application-menu__apps-grid {
|
16233
|
+
display: grid;
|
16234
|
+
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
16235
|
+
gap: 16px;
|
16236
|
+
}
|
16237
|
+
|
16238
|
+
.application-menu__app {
|
16239
|
+
display: flex;
|
16240
|
+
flex-direction: column;
|
16241
|
+
align-items: center;
|
16242
|
+
padding: 16px 12px;
|
16243
|
+
border-radius: 12px;
|
16244
|
+
cursor: pointer;
|
16245
|
+
transition: all 0.2s ease;
|
16246
|
+
text-align: center;
|
16247
|
+
background: #ffffff;
|
16248
|
+
border: 1px solid transparent;
|
16249
|
+
}
|
16250
|
+
|
16251
|
+
.application-menu__app:hover {
|
16252
|
+
background: #f8f9fa;
|
16253
|
+
border-color: #e0e0e0;
|
16254
|
+
transform: translateY(-2px);
|
16255
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
16256
|
+
}
|
16257
|
+
|
16258
|
+
.app-icon {
|
16259
|
+
font-size: 48px;
|
16260
|
+
margin-bottom: 8px;
|
16261
|
+
line-height: 1;
|
16262
|
+
}
|
16263
|
+
|
16264
|
+
.app-name {
|
16265
|
+
font-size: 14px;
|
16266
|
+
font-weight: 500;
|
16267
|
+
color: #333;
|
16268
|
+
line-height: 1.2;
|
16269
|
+
word-break: break-word;
|
16270
|
+
}
|
16271
|
+
|
16272
|
+
/* No Results */
|
16273
|
+
.application-menu__no-results {
|
16274
|
+
text-align: center;
|
16275
|
+
padding: 60px 20px;
|
16276
|
+
color: #666;
|
16277
|
+
}
|
16278
|
+
|
16279
|
+
.application-menu__no-results h3 {
|
16280
|
+
margin: 0 0 8px 0;
|
16281
|
+
color: #333;
|
16282
|
+
font-size: 20px;
|
16283
|
+
}
|
16284
|
+
|
16285
|
+
.application-menu__no-results p {
|
16286
|
+
margin: 0;
|
16287
|
+
font-size: 16px;
|
16288
|
+
}
|
16289
|
+
|
16290
|
+
/* Responsive */
|
16291
|
+
@media (max-width: 768px) {
|
16292
|
+
.application-menu {
|
16293
|
+
width: 95%;
|
16294
|
+
height: 90%;
|
16295
|
+
margin: 20px;
|
16296
|
+
}
|
16297
|
+
|
16298
|
+
.application-menu__apps-grid {
|
16299
|
+
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
16300
|
+
gap: 12px;
|
16301
|
+
}
|
16302
|
+
|
16303
|
+
.application-menu__app {
|
16304
|
+
padding: 12px 8px;
|
16305
|
+
}
|
16306
|
+
|
16307
|
+
.app-icon {
|
16308
|
+
font-size: 40px;
|
16309
|
+
}
|
16310
|
+
|
16311
|
+
.app-name {
|
16312
|
+
font-size: 12px;
|
16313
|
+
}
|
16314
|
+
|
16315
|
+
.application-menu__categories {
|
16316
|
+
padding: 12px 16px;
|
16317
|
+
}
|
16318
|
+
|
16319
|
+
.application-menu__search,
|
16320
|
+
.application-menu__content {
|
16321
|
+
padding: 16px;
|
16322
|
+
}
|
16323
|
+
}
|
16324
|
+
|
16325
|
+
/* Scrollbar styling */
|
16326
|
+
.application-menu__content::-webkit-scrollbar {
|
16327
|
+
width: 8px;
|
16328
|
+
}
|
16329
|
+
|
16330
|
+
.application-menu__content::-webkit-scrollbar-track {
|
16331
|
+
background: #f1f1f1;
|
16332
|
+
border-radius: 4px;
|
16333
|
+
}
|
16334
|
+
|
16335
|
+
.application-menu__content::-webkit-scrollbar-thumb {
|
16336
|
+
background: #c1c1c1;
|
16337
|
+
border-radius: 4px;
|
16338
|
+
}
|
16339
|
+
|
16340
|
+
.application-menu__content::-webkit-scrollbar-thumb:hover {
|
16341
|
+
background: #a8a8a8;
|
16342
|
+
}
|
16064
16343
|
/* Desktop Component Styles */
|
16065
16344
|
|
16066
16345
|
.desktop {
|