microboard-ui-temp 0.1.128 → 0.1.130
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 +9 -0
- package/dist/index.js +17 -6
- package/dist/spa.css +9 -0
- package/dist/spa.js +17 -6
- package/dist/types/shared/Lang/index.d.ts +2 -0
- package/package.json +1 -1
- /package/dist/types/features/ContextPanel/Buttons/CardGame/Deck/{SpreadCards.d.ts → SpreadCards/SpreadCards.d.ts} +0 -0
package/dist/index.css
CHANGED
|
@@ -8274,6 +8274,15 @@ td.currentTariff_0VfwRg {
|
|
|
8274
8274
|
min-height: 100%;
|
|
8275
8275
|
}
|
|
8276
8276
|
|
|
8277
|
+
/* src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards/SpreadCards.module.css */
|
|
8278
|
+
.picker_G_GjkQ {
|
|
8279
|
+
display: flex;
|
|
8280
|
+
overflow: hidden;
|
|
8281
|
+
flex-direction: column;
|
|
8282
|
+
align-items: stretch;
|
|
8283
|
+
min-width: 52px;
|
|
8284
|
+
}
|
|
8285
|
+
|
|
8277
8286
|
/* src/features/ExportPanel/ExportPanel.module.css */
|
|
8278
8287
|
.container_SkEmQQ {
|
|
8279
8288
|
display: flex;
|
package/dist/index.js
CHANGED
|
@@ -334974,6 +334974,7 @@ var en_default = {
|
|
|
334974
334974
|
deck: {
|
|
334975
334975
|
create: "Create deck",
|
|
334976
334976
|
shuffle: "Shuffle",
|
|
334977
|
+
spread: "Spread",
|
|
334977
334978
|
getCard: {
|
|
334978
334979
|
top: "Get top item",
|
|
334979
334980
|
bottom: "Get bottom item",
|
|
@@ -336224,6 +336225,7 @@ var ru_default = {
|
|
|
336224
336225
|
deck: {
|
|
336225
336226
|
create: "Создать колоду",
|
|
336226
336227
|
shuffle: "Перемешать",
|
|
336228
|
+
spread: "Разложить",
|
|
336227
336229
|
getCard: {
|
|
336228
336230
|
top: "Взять верхний предмет",
|
|
336229
336231
|
bottom: "Взять нижний предмет",
|
|
@@ -375239,8 +375241,14 @@ var LockResize = ({
|
|
|
375239
375241
|
}));
|
|
375240
375242
|
};
|
|
375241
375243
|
|
|
375242
|
-
// src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards.tsx
|
|
375244
|
+
// src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards/SpreadCards.tsx
|
|
375243
375245
|
var import_react292 = __toESM(require_react(), 1);
|
|
375246
|
+
|
|
375247
|
+
// src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards/SpreadCards.module.css
|
|
375248
|
+
var SpreadCards_module_default = {
|
|
375249
|
+
picker: "picker_G_GjkQ"
|
|
375250
|
+
};
|
|
375251
|
+
// src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards/SpreadCards.tsx
|
|
375244
375252
|
var MENU_NAME20 = "SpreadCards";
|
|
375245
375253
|
function SpreadCards({ rounded = "none" }) {
|
|
375246
375254
|
const { board } = useAppContext();
|
|
@@ -375268,6 +375276,8 @@ function SpreadCards({ rounded = "none" }) {
|
|
|
375268
375276
|
card.transformation.translateTo(right + 5 + width2 * index4, top);
|
|
375269
375277
|
});
|
|
375270
375278
|
}
|
|
375279
|
+
board.selection.items.removeAll();
|
|
375280
|
+
board.selection.add(cards);
|
|
375271
375281
|
if (deck.getDeck().length === 0) {
|
|
375272
375282
|
board.remove(deck);
|
|
375273
375283
|
}
|
|
@@ -375288,7 +375298,7 @@ function SpreadCards({ rounded = "none" }) {
|
|
|
375288
375298
|
button: (verticalAlign) => /* @__PURE__ */ import_react292.default.createElement(UiButton, {
|
|
375289
375299
|
className: ContextPanelButton_module_default.contextPanelButton,
|
|
375290
375300
|
id: `spread-cards`,
|
|
375291
|
-
tooltip: t10(`contextPanel.gameItems.deck.
|
|
375301
|
+
tooltip: t10(`contextPanel.gameItems.deck.spread`),
|
|
375292
375302
|
tooltipPosition: "top",
|
|
375293
375303
|
onClick: handleClick,
|
|
375294
375304
|
variant: "secondary",
|
|
@@ -375299,15 +375309,14 @@ function SpreadCards({ rounded = "none" }) {
|
|
|
375299
375309
|
}, (verticalAlign) => /* @__PURE__ */ import_react292.default.createElement(UiPanel, {
|
|
375300
375310
|
padding: 0,
|
|
375301
375311
|
vertical: true,
|
|
375302
|
-
className: clsx_default(
|
|
375312
|
+
className: clsx_default(SpreadCards_module_default.picker),
|
|
375303
375313
|
rounded: verticalAlign === "bottom" ? "bottom" : "full"
|
|
375304
375314
|
}, /* @__PURE__ */ import_react292.default.createElement(FontSizePicker, {
|
|
375305
375315
|
id: "cards-count-picker",
|
|
375306
375316
|
currentFontSize: 5,
|
|
375307
375317
|
fontSizes: values3,
|
|
375308
375318
|
showAuto: false,
|
|
375309
|
-
onPick: handlePick
|
|
375310
|
-
max: board.selection.getAutosize() ? board.selection.getFontSize(false) : undefined
|
|
375319
|
+
onPick: handlePick
|
|
375311
375320
|
})));
|
|
375312
375321
|
}
|
|
375313
375322
|
|
|
@@ -375501,7 +375510,9 @@ function ContextPanel() {
|
|
|
375501
375510
|
rounded: "left"
|
|
375502
375511
|
}), /* @__PURE__ */ import_react293.default.createElement(ShuffleDeck, null), isSingle && /* @__PURE__ */ import_react293.default.createElement(UiSeparator, {
|
|
375503
375512
|
vertical: true
|
|
375504
|
-
}), /* @__PURE__ */ import_react293.default.createElement(SpreadCards, null), /* @__PURE__ */ import_react293.default.createElement(
|
|
375513
|
+
}), /* @__PURE__ */ import_react293.default.createElement(SpreadCards, null), isSingle && /* @__PURE__ */ import_react293.default.createElement(UiSeparator, {
|
|
375514
|
+
vertical: true
|
|
375515
|
+
}), /* @__PURE__ */ import_react293.default.createElement(GetCard, {
|
|
375505
375516
|
cardPosition: "random"
|
|
375506
375517
|
}), /* @__PURE__ */ import_react293.default.createElement(GetCard, {
|
|
375507
375518
|
cardPosition: "top"
|
package/dist/spa.css
CHANGED
|
@@ -8274,6 +8274,15 @@ td.currentTariff_0VfwRg {
|
|
|
8274
8274
|
min-height: 100%;
|
|
8275
8275
|
}
|
|
8276
8276
|
|
|
8277
|
+
/* src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards/SpreadCards.module.css */
|
|
8278
|
+
.picker_G_GjkQ {
|
|
8279
|
+
display: flex;
|
|
8280
|
+
overflow: hidden;
|
|
8281
|
+
flex-direction: column;
|
|
8282
|
+
align-items: stretch;
|
|
8283
|
+
min-width: 52px;
|
|
8284
|
+
}
|
|
8285
|
+
|
|
8277
8286
|
/* src/features/ExportPanel/ExportPanel.module.css */
|
|
8278
8287
|
.container_SkEmQQ {
|
|
8279
8288
|
display: flex;
|
package/dist/spa.js
CHANGED
|
@@ -334974,6 +334974,7 @@ var en_default = {
|
|
|
334974
334974
|
deck: {
|
|
334975
334975
|
create: "Create deck",
|
|
334976
334976
|
shuffle: "Shuffle",
|
|
334977
|
+
spread: "Spread",
|
|
334977
334978
|
getCard: {
|
|
334978
334979
|
top: "Get top item",
|
|
334979
334980
|
bottom: "Get bottom item",
|
|
@@ -336224,6 +336225,7 @@ var ru_default = {
|
|
|
336224
336225
|
deck: {
|
|
336225
336226
|
create: "Создать колоду",
|
|
336226
336227
|
shuffle: "Перемешать",
|
|
336228
|
+
spread: "Разложить",
|
|
336227
336229
|
getCard: {
|
|
336228
336230
|
top: "Взять верхний предмет",
|
|
336229
336231
|
bottom: "Взять нижний предмет",
|
|
@@ -375239,8 +375241,14 @@ var LockResize = ({
|
|
|
375239
375241
|
}));
|
|
375240
375242
|
};
|
|
375241
375243
|
|
|
375242
|
-
// src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards.tsx
|
|
375244
|
+
// src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards/SpreadCards.tsx
|
|
375243
375245
|
var import_react292 = __toESM(require_react(), 1);
|
|
375246
|
+
|
|
375247
|
+
// src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards/SpreadCards.module.css
|
|
375248
|
+
var SpreadCards_module_default = {
|
|
375249
|
+
picker: "picker_G_GjkQ"
|
|
375250
|
+
};
|
|
375251
|
+
// src/features/ContextPanel/Buttons/CardGame/Deck/SpreadCards/SpreadCards.tsx
|
|
375244
375252
|
var MENU_NAME20 = "SpreadCards";
|
|
375245
375253
|
function SpreadCards({ rounded = "none" }) {
|
|
375246
375254
|
const { board } = useAppContext();
|
|
@@ -375268,6 +375276,8 @@ function SpreadCards({ rounded = "none" }) {
|
|
|
375268
375276
|
card.transformation.translateTo(right + 5 + width2 * index4, top);
|
|
375269
375277
|
});
|
|
375270
375278
|
}
|
|
375279
|
+
board.selection.items.removeAll();
|
|
375280
|
+
board.selection.add(cards);
|
|
375271
375281
|
if (deck.getDeck().length === 0) {
|
|
375272
375282
|
board.remove(deck);
|
|
375273
375283
|
}
|
|
@@ -375288,7 +375298,7 @@ function SpreadCards({ rounded = "none" }) {
|
|
|
375288
375298
|
button: (verticalAlign) => /* @__PURE__ */ import_react292.default.createElement(UiButton, {
|
|
375289
375299
|
className: ContextPanelButton_module_default.contextPanelButton,
|
|
375290
375300
|
id: `spread-cards`,
|
|
375291
|
-
tooltip: t10(`contextPanel.gameItems.deck.
|
|
375301
|
+
tooltip: t10(`contextPanel.gameItems.deck.spread`),
|
|
375292
375302
|
tooltipPosition: "top",
|
|
375293
375303
|
onClick: handleClick,
|
|
375294
375304
|
variant: "secondary",
|
|
@@ -375299,15 +375309,14 @@ function SpreadCards({ rounded = "none" }) {
|
|
|
375299
375309
|
}, (verticalAlign) => /* @__PURE__ */ import_react292.default.createElement(UiPanel, {
|
|
375300
375310
|
padding: 0,
|
|
375301
375311
|
vertical: true,
|
|
375302
|
-
className: clsx_default(
|
|
375312
|
+
className: clsx_default(SpreadCards_module_default.picker),
|
|
375303
375313
|
rounded: verticalAlign === "bottom" ? "bottom" : "full"
|
|
375304
375314
|
}, /* @__PURE__ */ import_react292.default.createElement(FontSizePicker, {
|
|
375305
375315
|
id: "cards-count-picker",
|
|
375306
375316
|
currentFontSize: 5,
|
|
375307
375317
|
fontSizes: values3,
|
|
375308
375318
|
showAuto: false,
|
|
375309
|
-
onPick: handlePick
|
|
375310
|
-
max: board.selection.getAutosize() ? board.selection.getFontSize(false) : undefined
|
|
375319
|
+
onPick: handlePick
|
|
375311
375320
|
})));
|
|
375312
375321
|
}
|
|
375313
375322
|
|
|
@@ -375501,7 +375510,9 @@ function ContextPanel() {
|
|
|
375501
375510
|
rounded: "left"
|
|
375502
375511
|
}), /* @__PURE__ */ import_react293.default.createElement(ShuffleDeck, null), isSingle && /* @__PURE__ */ import_react293.default.createElement(UiSeparator, {
|
|
375503
375512
|
vertical: true
|
|
375504
|
-
}), /* @__PURE__ */ import_react293.default.createElement(SpreadCards, null), /* @__PURE__ */ import_react293.default.createElement(
|
|
375513
|
+
}), /* @__PURE__ */ import_react293.default.createElement(SpreadCards, null), isSingle && /* @__PURE__ */ import_react293.default.createElement(UiSeparator, {
|
|
375514
|
+
vertical: true
|
|
375515
|
+
}), /* @__PURE__ */ import_react293.default.createElement(GetCard, {
|
|
375505
375516
|
cardPosition: "random"
|
|
375506
375517
|
}), /* @__PURE__ */ import_react293.default.createElement(GetCard, {
|
|
375507
375518
|
cardPosition: "top"
|
|
@@ -183,6 +183,7 @@ export declare const resources: {
|
|
|
183
183
|
deck: {
|
|
184
184
|
create: string;
|
|
185
185
|
shuffle: string;
|
|
186
|
+
spread: string;
|
|
186
187
|
getCard: {
|
|
187
188
|
top: string;
|
|
188
189
|
bottom: string;
|
|
@@ -1406,6 +1407,7 @@ export declare const resources: {
|
|
|
1406
1407
|
deck: {
|
|
1407
1408
|
create: string;
|
|
1408
1409
|
shuffle: string;
|
|
1410
|
+
spread: string;
|
|
1409
1411
|
getCard: {
|
|
1410
1412
|
top: string;
|
|
1411
1413
|
bottom: string;
|
package/package.json
CHANGED
|
File without changes
|