@malilion/block-ui-react 0.2.0 → 0.3.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.
- package/dist/components/cards/ServerBrowser/ServerBrowser.d.ts +7 -0
- package/dist/components/cards/ServerBrowser/ServerBrowser.d.ts.map +1 -0
- package/dist/components/cards/ServerBrowser/ServerBrowser.js +106 -0
- package/dist/components/cards/ServerBrowser/ServerBrowser.js.map +1 -0
- package/dist/components/cards/ServerBrowser/ServerBrowser.types.d.ts +22 -0
- package/dist/components/cards/ServerBrowser/ServerBrowser.types.d.ts.map +1 -0
- package/dist/components/cards/ServerBrowser/ServerBrowser.utils.d.ts +8 -0
- package/dist/components/cards/ServerBrowser/ServerBrowser.utils.d.ts.map +1 -0
- package/dist/components/cards/ServerBrowser/ServerBrowser.utils.js +16 -0
- package/dist/components/cards/ServerBrowser/ServerBrowser.utils.js.map +1 -0
- package/dist/components/cards/ServerBrowser/index.d.ts +4 -0
- package/dist/components/cards/ServerBrowser/index.d.ts.map +1 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.d.ts +4 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.d.ts.map +1 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.js +101 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.js.map +1 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.types.d.ts +22 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.types.d.ts.map +1 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.utils.d.ts +10 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.utils.d.ts.map +1 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.utils.js +12 -0
- package/dist/components/cards/WorldBrowser/WorldBrowser.utils.js.map +1 -0
- package/dist/components/cards/WorldBrowser/index.d.ts +4 -0
- package/dist/components/cards/WorldBrowser/index.d.ts.map +1 -0
- package/dist/components/cards/browser.module.js +23 -0
- package/dist/components/cards/browser.module.js.map +1 -0
- package/dist/components/cards/index.d.ts +2 -0
- package/dist/components/cards/index.d.ts.map +1 -1
- package/dist/components/crafting/Anvil/Anvil.d.ts +7 -0
- package/dist/components/crafting/Anvil/Anvil.d.ts.map +1 -0
- package/dist/components/crafting/Anvil/Anvil.js +94 -0
- package/dist/components/crafting/Anvil/Anvil.js.map +1 -0
- package/dist/components/crafting/Anvil/Anvil.module.js +21 -0
- package/dist/components/crafting/Anvil/Anvil.module.js.map +1 -0
- package/dist/components/crafting/Anvil/Anvil.types.d.ts +25 -0
- package/dist/components/crafting/Anvil/Anvil.types.d.ts.map +1 -0
- package/dist/components/crafting/Anvil/Anvil.utils.d.ts +3 -0
- package/dist/components/crafting/Anvil/Anvil.utils.d.ts.map +1 -0
- package/dist/components/crafting/Anvil/Anvil.utils.js +11 -0
- package/dist/components/crafting/Anvil/Anvil.utils.js.map +1 -0
- package/dist/components/crafting/Anvil/index.d.ts +5 -0
- package/dist/components/crafting/Anvil/index.d.ts.map +1 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.d.ts +7 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.d.ts.map +1 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.js +116 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.js.map +1 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.module.js +29 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.module.js.map +1 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.types.d.ts +22 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.types.d.ts.map +1 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.types.js +11 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.types.js.map +1 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.utils.d.ts +6 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.utils.d.ts.map +1 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.utils.js +13 -0
- package/dist/components/crafting/BrewingStand/BrewingStand.utils.js.map +1 -0
- package/dist/components/crafting/BrewingStand/index.d.ts +5 -0
- package/dist/components/crafting/BrewingStand/index.d.ts.map +1 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.d.ts +7 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.d.ts.map +1 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.js +105 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.js.map +1 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.module.js +32 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.module.js.map +1 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.types.d.ts +29 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.types.d.ts.map +1 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.utils.d.ts +11 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.utils.d.ts.map +1 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.utils.js +14 -0
- package/dist/components/crafting/EnchantingTable/EnchantingTable.utils.js.map +1 -0
- package/dist/components/crafting/EnchantingTable/index.d.ts +3 -0
- package/dist/components/crafting/EnchantingTable/index.d.ts.map +1 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.d.ts +7 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.d.ts.map +1 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.js +149 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.js.map +1 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.module.js +39 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.module.js.map +1 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.types.d.ts +36 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.types.d.ts.map +1 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.utils.d.ts +9 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.utils.d.ts.map +1 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.utils.js +21 -0
- package/dist/components/crafting/RecipeBook/RecipeBook.utils.js.map +1 -0
- package/dist/components/crafting/RecipeBook/index.d.ts +4 -0
- package/dist/components/crafting/RecipeBook/index.d.ts.map +1 -0
- package/dist/components/crafting/TradingUI/TradingUI.d.ts +7 -0
- package/dist/components/crafting/TradingUI/TradingUI.d.ts.map +1 -0
- package/dist/components/crafting/TradingUI/TradingUI.js +181 -0
- package/dist/components/crafting/TradingUI/TradingUI.js.map +1 -0
- package/dist/components/crafting/TradingUI/TradingUI.module.js +39 -0
- package/dist/components/crafting/TradingUI/TradingUI.module.js.map +1 -0
- package/dist/components/crafting/TradingUI/TradingUI.types.d.ts +36 -0
- package/dist/components/crafting/TradingUI/TradingUI.types.d.ts.map +1 -0
- package/dist/components/crafting/TradingUI/TradingUI.types.js +12 -0
- package/dist/components/crafting/TradingUI/TradingUI.types.js.map +1 -0
- package/dist/components/crafting/TradingUI/TradingUI.utils.d.ts +3 -0
- package/dist/components/crafting/TradingUI/TradingUI.utils.d.ts.map +1 -0
- package/dist/components/crafting/TradingUI/TradingUI.utils.js +8 -0
- package/dist/components/crafting/TradingUI/TradingUI.utils.js.map +1 -0
- package/dist/components/crafting/TradingUI/index.d.ts +4 -0
- package/dist/components/crafting/TradingUI/index.d.ts.map +1 -0
- package/dist/components/crafting/index.d.ts +5 -0
- package/dist/components/crafting/index.d.ts.map +1 -1
- package/dist/components/display/SkillTree/SkillTree.d.ts +8 -0
- package/dist/components/display/SkillTree/SkillTree.d.ts.map +1 -0
- package/dist/components/display/SkillTree/SkillTree.js +138 -0
- package/dist/components/display/SkillTree/SkillTree.js.map +1 -0
- package/dist/components/display/SkillTree/SkillTree.module.js +33 -0
- package/dist/components/display/SkillTree/SkillTree.module.js.map +1 -0
- package/dist/components/display/SkillTree/SkillTree.types.d.ts +29 -0
- package/dist/components/display/SkillTree/SkillTree.types.d.ts.map +1 -0
- package/dist/components/display/SkillTree/SkillTree.utils.d.ts +8 -0
- package/dist/components/display/SkillTree/SkillTree.utils.d.ts.map +1 -0
- package/dist/components/display/SkillTree/SkillTree.utils.js +16 -0
- package/dist/components/display/SkillTree/SkillTree.utils.js.map +1 -0
- package/dist/components/display/SkillTree/index.d.ts +4 -0
- package/dist/components/display/SkillTree/index.d.ts.map +1 -0
- package/dist/components/display/index.d.ts +1 -0
- package/dist/components/display/index.d.ts.map +1 -1
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.d.ts +4 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.d.ts.map +1 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.js +39 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.js.map +1 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.module.js +11 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.module.js.map +1 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.types.d.ts +16 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.types.d.ts.map +1 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.types.js +18 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.types.js.map +1 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.utils.d.ts +8 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.utils.d.ts.map +1 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.utils.js +55 -0
- package/dist/components/hud/BiomeIndicator/BiomeIndicator.utils.js.map +1 -0
- package/dist/components/hud/BiomeIndicator/index.d.ts +4 -0
- package/dist/components/hud/BiomeIndicator/index.d.ts.map +1 -0
- package/dist/components/hud/BossBar/BossBar.d.ts +4 -0
- package/dist/components/hud/BossBar/BossBar.d.ts.map +1 -0
- package/dist/components/hud/BossBar/BossBar.js +56 -0
- package/dist/components/hud/BossBar/BossBar.js.map +1 -0
- package/dist/components/hud/BossBar/BossBar.module.js +19 -0
- package/dist/components/hud/BossBar/BossBar.module.js.map +1 -0
- package/dist/components/hud/BossBar/BossBar.types.d.ts +22 -0
- package/dist/components/hud/BossBar/BossBar.types.d.ts.map +1 -0
- package/dist/components/hud/BossBar/BossBar.types.js +21 -0
- package/dist/components/hud/BossBar/BossBar.types.js.map +1 -0
- package/dist/components/hud/BossBar/index.d.ts +4 -0
- package/dist/components/hud/BossBar/index.d.ts.map +1 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.d.ts +4 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.d.ts.map +1 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.js +96 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.js.map +1 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.module.js +17 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.module.js.map +1 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.types.d.ts +19 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.types.d.ts.map +1 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.types.js +11 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.types.js.map +1 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.utils.d.ts +7 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.utils.d.ts.map +1 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.utils.js +24 -0
- package/dist/components/hud/CoordinatesHUD/CoordinatesHUD.utils.js.map +1 -0
- package/dist/components/hud/CoordinatesHUD/index.d.ts +4 -0
- package/dist/components/hud/CoordinatesHUD/index.d.ts.map +1 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.d.ts +4 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.d.ts.map +1 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.js +70 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.js.map +1 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.module.js +19 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.module.js.map +1 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.types.d.ts +17 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.types.d.ts.map +1 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.utils.d.ts +15 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.utils.d.ts.map +1 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.utils.js +43 -0
- package/dist/components/hud/DayNightIndicator/DayNightIndicator.utils.js.map +1 -0
- package/dist/components/hud/DayNightIndicator/index.d.ts +4 -0
- package/dist/components/hud/DayNightIndicator/index.d.ts.map +1 -0
- package/dist/components/hud/MiniMap/MiniMap.d.ts +8 -0
- package/dist/components/hud/MiniMap/MiniMap.d.ts.map +1 -0
- package/dist/components/hud/MiniMap/MiniMap.js +76 -0
- package/dist/components/hud/MiniMap/MiniMap.js.map +1 -0
- package/dist/components/hud/MiniMap/MiniMap.module.js +17 -0
- package/dist/components/hud/MiniMap/MiniMap.module.js.map +1 -0
- package/dist/components/hud/MiniMap/MiniMap.types.d.ts +43 -0
- package/dist/components/hud/MiniMap/MiniMap.types.d.ts.map +1 -0
- package/dist/components/hud/MiniMap/MiniMap.types.js +26 -0
- package/dist/components/hud/MiniMap/MiniMap.types.js.map +1 -0
- package/dist/components/hud/MiniMap/MiniMap.utils.d.ts +14 -0
- package/dist/components/hud/MiniMap/MiniMap.utils.d.ts.map +1 -0
- package/dist/components/hud/MiniMap/MiniMap.utils.js +47 -0
- package/dist/components/hud/MiniMap/MiniMap.utils.js.map +1 -0
- package/dist/components/hud/MiniMap/index.d.ts +5 -0
- package/dist/components/hud/MiniMap/index.d.ts.map +1 -0
- package/dist/components/hud/Scoreboard/Scoreboard.d.ts +7 -0
- package/dist/components/hud/Scoreboard/Scoreboard.d.ts.map +1 -0
- package/dist/components/hud/Scoreboard/Scoreboard.js +89 -0
- package/dist/components/hud/Scoreboard/Scoreboard.js.map +1 -0
- package/dist/components/hud/Scoreboard/Scoreboard.module.js +25 -0
- package/dist/components/hud/Scoreboard/Scoreboard.module.js.map +1 -0
- package/dist/components/hud/Scoreboard/Scoreboard.types.d.ts +23 -0
- package/dist/components/hud/Scoreboard/Scoreboard.types.d.ts.map +1 -0
- package/dist/components/hud/Scoreboard/Scoreboard.utils.d.ts +5 -0
- package/dist/components/hud/Scoreboard/Scoreboard.utils.d.ts.map +1 -0
- package/dist/components/hud/Scoreboard/Scoreboard.utils.js +15 -0
- package/dist/components/hud/Scoreboard/Scoreboard.utils.js.map +1 -0
- package/dist/components/hud/Scoreboard/index.d.ts +3 -0
- package/dist/components/hud/Scoreboard/index.d.ts.map +1 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.d.ts +4 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.d.ts.map +1 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.js +52 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.js.map +1 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.module.js +15 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.module.js.map +1 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.types.d.ts +17 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.types.d.ts.map +1 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.types.js +12 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.types.js.map +1 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.utils.d.ts +5 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.utils.d.ts.map +1 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.utils.js +22 -0
- package/dist/components/hud/WeatherIndicator/WeatherIndicator.utils.js.map +1 -0
- package/dist/components/hud/WeatherIndicator/index.d.ts +4 -0
- package/dist/components/hud/WeatherIndicator/index.d.ts.map +1 -0
- package/dist/components/hud/hudChip.module.js +15 -0
- package/dist/components/hud/hudChip.module.js.map +1 -0
- package/dist/components/hud/index.d.ts +7 -0
- package/dist/components/hud/index.d.ts.map +1 -1
- package/dist/components/social/ChatWindow/ChatWindow.d.ts +8 -0
- package/dist/components/social/ChatWindow/ChatWindow.d.ts.map +1 -0
- package/dist/components/social/ChatWindow/ChatWindow.js +146 -0
- package/dist/components/social/ChatWindow/ChatWindow.js.map +1 -0
- package/dist/components/social/ChatWindow/ChatWindow.module.js +27 -0
- package/dist/components/social/ChatWindow/ChatWindow.module.js.map +1 -0
- package/dist/components/social/ChatWindow/ChatWindow.types.d.ts +29 -0
- package/dist/components/social/ChatWindow/ChatWindow.types.d.ts.map +1 -0
- package/dist/components/social/ChatWindow/ChatWindow.types.js +12 -0
- package/dist/components/social/ChatWindow/ChatWindow.types.js.map +1 -0
- package/dist/components/social/ChatWindow/index.d.ts +4 -0
- package/dist/components/social/ChatWindow/index.d.ts.map +1 -0
- package/dist/components/social/CommandConsole/CommandConsole.d.ts +7 -0
- package/dist/components/social/CommandConsole/CommandConsole.d.ts.map +1 -0
- package/dist/components/social/CommandConsole/CommandConsole.js +187 -0
- package/dist/components/social/CommandConsole/CommandConsole.js.map +1 -0
- package/dist/components/social/CommandConsole/CommandConsole.module.js +31 -0
- package/dist/components/social/CommandConsole/CommandConsole.module.js.map +1 -0
- package/dist/components/social/CommandConsole/CommandConsole.types.d.ts +28 -0
- package/dist/components/social/CommandConsole/CommandConsole.types.d.ts.map +1 -0
- package/dist/components/social/CommandConsole/CommandConsole.types.js +11 -0
- package/dist/components/social/CommandConsole/CommandConsole.types.js.map +1 -0
- package/dist/components/social/CommandConsole/CommandConsole.utils.d.ts +4 -0
- package/dist/components/social/CommandConsole/CommandConsole.utils.d.ts.map +1 -0
- package/dist/components/social/CommandConsole/CommandConsole.utils.js +11 -0
- package/dist/components/social/CommandConsole/CommandConsole.utils.js.map +1 -0
- package/dist/components/social/CommandConsole/index.d.ts +5 -0
- package/dist/components/social/CommandConsole/index.d.ts.map +1 -0
- package/dist/components/social/index.d.ts +3 -0
- package/dist/components/social/index.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -1
- package/dist/styles.css +2055 -486
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandConsole.module.js","names":[],"sources":["../../../../src/components/social/CommandConsole/CommandConsole.module.css"],"sourcesContent":[".console {\n --console-height: 240px;\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 640px;\n font-family: var(--block-font-mono);\n font-size: var(--block-font-size-sm);\n color: var(--block-text-primary);\n background-color: color-mix(in srgb, var(--block-black) 88%, transparent);\n border: var(--block-border-width-thin) solid var(--block-obsidian-light);\n}\n\n.console[data-size=\"sm\"] {\n --console-height: 160px;\n}\n\n.console[data-size=\"lg\"] {\n --console-height: 360px;\n}\n\n.log {\n display: flex;\n flex-direction: column;\n height: var(--console-height);\n padding: var(--block-space-2);\n overflow-y: auto;\n scrollbar-width: thin;\n}\n\n.log:focus-visible {\n outline: 3px solid var(--block-focus);\n outline-offset: -3px;\n}\n\n.list {\n display: flex;\n flex-direction: column;\n gap: 2px;\n margin: auto 0 0;\n padding: 0;\n list-style: none;\n}\n\n.entry {\n line-height: var(--block-line-height-normal);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.entry[data-kind=\"input\"] {\n color: var(--block-text-secondary);\n}\n\n.entry[data-kind=\"input\"]::before {\n content: \"> \";\n}\n\n.entry[data-kind=\"success\"] {\n color: var(--block-emerald-light);\n}\n\n.entry[data-kind=\"error\"] {\n color: var(--block-redstone-light);\n}\n\n.form {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--block-space-1);\n padding: var(--block-space-1) var(--block-space-2);\n border-top: var(--block-border-width-thin) solid var(--block-obsidian-light);\n}\n\n.prompt {\n color: var(--block-emerald-light);\n}\n\n.input {\n flex: 1;\n min-width: 0;\n min-height: 36px;\n padding: 0 var(--block-space-1);\n font: inherit;\n color: var(--block-text-primary);\n background: transparent;\n border: 0;\n}\n\n.input::placeholder {\n color: var(--block-text-secondary);\n}\n\n.input:focus-visible {\n outline: 3px solid var(--block-focus);\n outline-offset: 0;\n}\n\n.suggestions {\n position: absolute;\n bottom: 100%;\n left: 0;\n right: 0;\n z-index: var(--block-z-dropdown);\n max-height: 180px;\n margin: 0;\n padding: var(--block-space-1);\n overflow-y: auto;\n list-style: none;\n background-color: var(--block-obsidian-dark);\n border: var(--block-border-width-thin) solid var(--block-obsidian-light);\n}\n\n.suggestion {\n padding: 2px var(--block-space-1);\n cursor: pointer;\n overflow-wrap: anywhere;\n}\n\n.suggestion[aria-selected=\"true\"] {\n background-color: var(--block-obsidian-light);\n}\n\n.name {\n color: var(--block-gold-light);\n}\n\n.usage {\n color: var(--block-text-primary);\n}\n\n.description {\n color: var(--block-text-secondary);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export declare const consoleEntryKinds: readonly ["input", "output", "success", "error"];
|
|
3
|
+
export type ConsoleEntryKind = (typeof consoleEntryKinds)[number];
|
|
4
|
+
export interface ConsoleEntry {
|
|
5
|
+
id: string;
|
|
6
|
+
/** `input` echoes a command; the others are responses. @default "output" */
|
|
7
|
+
kind?: ConsoleEntryKind;
|
|
8
|
+
text: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface ConsoleCommand {
|
|
11
|
+
/** Command name without the slash, e.g. "gamemode". */
|
|
12
|
+
name: string;
|
|
13
|
+
/** Argument hint, e.g. "<mode> [player]". */
|
|
14
|
+
usage?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CommandConsoleProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
entries: ConsoleEntry[];
|
|
19
|
+
/** Commands offered as suggestions after typing "/". */
|
|
20
|
+
commands?: ConsoleCommand[];
|
|
21
|
+
/** Called with the trimmed command line (including the leading "/") on Enter. */
|
|
22
|
+
onRun?: (command: string) => void;
|
|
23
|
+
/** Log height. @default "md" */
|
|
24
|
+
size?: "sm" | "md" | "lg";
|
|
25
|
+
/** Accessible name. @default "Console" */
|
|
26
|
+
label?: string;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=CommandConsole.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandConsole.types.d.ts","sourceRoot":"","sources":["../../../../src/components/social/CommandConsole/CommandConsole.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,eAAO,MAAM,iBAAiB,kDAAmD,CAAC;AAElF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACzE,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,iFAAiF;IACjF,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gCAAgC;IAChC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandConsole.types.js","names":[],"sources":["../../../../src/components/social/CommandConsole/CommandConsole.types.ts"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from \"react\";\n\nexport const consoleEntryKinds = [\"input\", \"output\", \"success\", \"error\"] as const;\n\nexport type ConsoleEntryKind = (typeof consoleEntryKinds)[number];\n\nexport interface ConsoleEntry {\n id: string;\n /** `input` echoes a command; the others are responses. @default \"output\" */\n kind?: ConsoleEntryKind;\n text: ReactNode;\n}\n\nexport interface ConsoleCommand {\n /** Command name without the slash, e.g. \"gamemode\". */\n name: string;\n /** Argument hint, e.g. \"<mode> [player]\". */\n usage?: string;\n description?: string;\n}\n\nexport interface CommandConsoleProps extends HTMLAttributes<HTMLDivElement> {\n entries: ConsoleEntry[];\n /** Commands offered as suggestions after typing \"/\". */\n commands?: ConsoleCommand[];\n /** Called with the trimmed command line (including the leading \"/\") on Enter. */\n onRun?: (command: string) => void;\n /** Log height. @default \"md\" */\n size?: \"sm\" | \"md\" | \"lg\";\n /** Accessible name. @default \"Console\" */\n label?: string;\n}\n"],"mappings":";AAEA,IAAa,oBAAoB;CAAC;CAAS;CAAU;CAAW;AAAO"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ConsoleCommand } from "./CommandConsole.types";
|
|
2
|
+
/** Commands whose name starts with the typed word, while the user is still typing the name. */
|
|
3
|
+
export declare function suggestCommands(input: string, commands: ConsoleCommand[]): ConsoleCommand[];
|
|
4
|
+
//# sourceMappingURL=CommandConsole.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandConsole.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/social/CommandConsole/CommandConsole.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,+FAA+F;AAC/F,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAI3F"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/social/CommandConsole/CommandConsole.utils.ts
|
|
2
|
+
/** Commands whose name starts with the typed word, while the user is still typing the name. */
|
|
3
|
+
function suggestCommands(input, commands) {
|
|
4
|
+
if (!input.startsWith("/") || input.includes(" ")) return [];
|
|
5
|
+
const word = input.slice(1).toLowerCase();
|
|
6
|
+
return commands.filter((command) => command.name.toLowerCase().startsWith(word));
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { suggestCommands };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=CommandConsole.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandConsole.utils.js","names":[],"sources":["../../../../src/components/social/CommandConsole/CommandConsole.utils.ts"],"sourcesContent":["import type { ConsoleCommand } from \"./CommandConsole.types\";\n\n/** Commands whose name starts with the typed word, while the user is still typing the name. */\nexport function suggestCommands(input: string, commands: ConsoleCommand[]): ConsoleCommand[] {\n if (!input.startsWith(\"/\") || input.includes(\" \")) return [];\n const word = input.slice(1).toLowerCase();\n return commands.filter((command) => command.name.toLowerCase().startsWith(word));\n}\n"],"mappings":";;AAGA,SAAgB,gBAAgB,OAAe,UAA8C;CAC3F,IAAI,CAAC,MAAM,WAAW,GAAG,KAAK,MAAM,SAAS,GAAG,GAAG,OAAO,CAAC;CAC3D,MAAM,OAAO,MAAM,MAAM,CAAC,CAAC,CAAC,YAAY;CACxC,OAAO,SAAS,QAAQ,YAAY,QAAQ,KAAK,YAAY,CAAC,CAAC,WAAW,IAAI,CAAC;AACjF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { CommandConsole } from "./CommandConsole";
|
|
2
|
+
export { consoleEntryKinds } from "./CommandConsole.types";
|
|
3
|
+
export { suggestCommands } from "./CommandConsole.utils";
|
|
4
|
+
export type { CommandConsoleProps, ConsoleCommand, ConsoleEntry, ConsoleEntryKind, } from "./CommandConsole.types";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/social/CommandConsole/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,gBAAgB,GACjB,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/social/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./components/crafting";
|
|
|
7
7
|
export * from "./components/hud";
|
|
8
8
|
export * from "./components/cards";
|
|
9
9
|
export * from "./components/display";
|
|
10
|
+
export * from "./components/social";
|
|
10
11
|
export * from "./components/navigation";
|
|
11
12
|
export * from "./components/layout";
|
|
12
13
|
export * from "./components/feedback";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -39,11 +39,35 @@ import { CraftingTable } from "./components/crafting/CraftingTable/CraftingTable
|
|
|
39
39
|
import { getFurnaceState } from "./components/crafting/Furnace/Furnace.utils.js";
|
|
40
40
|
import { Furnace } from "./components/crafting/Furnace/Furnace.js";
|
|
41
41
|
import { furnaceStates } from "./components/crafting/Furnace/Furnace.types.js";
|
|
42
|
+
import { EnchantingTable } from "./components/crafting/EnchantingTable/EnchantingTable.js";
|
|
43
|
+
import { getBrewingState } from "./components/crafting/BrewingStand/BrewingStand.utils.js";
|
|
44
|
+
import { BrewingStand } from "./components/crafting/BrewingStand/BrewingStand.js";
|
|
45
|
+
import { brewingStates } from "./components/crafting/BrewingStand/BrewingStand.types.js";
|
|
46
|
+
import { anvilCostState } from "./components/crafting/Anvil/Anvil.utils.js";
|
|
47
|
+
import { Anvil } from "./components/crafting/Anvil/Anvil.js";
|
|
48
|
+
import { villagerLevels } from "./components/crafting/TradingUI/TradingUI.types.js";
|
|
49
|
+
import { TradingUI } from "./components/crafting/TradingUI/TradingUI.js";
|
|
50
|
+
import { filterRecipes } from "./components/crafting/RecipeBook/RecipeBook.utils.js";
|
|
51
|
+
import { RecipeBook } from "./components/crafting/RecipeBook/RecipeBook.js";
|
|
42
52
|
import { HealthBar } from "./components/hud/HealthBar/HealthBar.js";
|
|
43
53
|
import { ArmorBar } from "./components/hud/ArmorBar/ArmorBar.js";
|
|
44
54
|
import { HungerBar } from "./components/hud/HungerBar/HungerBar.js";
|
|
45
55
|
import { XPBar } from "./components/hud/XPBar/XPBar.js";
|
|
46
56
|
import { PlayerHUD } from "./components/hud/PlayerHUD/PlayerHUD.js";
|
|
57
|
+
import { BossBar } from "./components/hud/BossBar/BossBar.js";
|
|
58
|
+
import { bossBarColors, bossBarSegments } from "./components/hud/BossBar/BossBar.types.js";
|
|
59
|
+
import { Scoreboard } from "./components/hud/Scoreboard/Scoreboard.js";
|
|
60
|
+
import { CoordinatesHUD } from "./components/hud/CoordinatesHUD/CoordinatesHUD.js";
|
|
61
|
+
import { facings } from "./components/hud/CoordinatesHUD/CoordinatesHUD.types.js";
|
|
62
|
+
import { BiomeIndicator } from "./components/hud/BiomeIndicator/BiomeIndicator.js";
|
|
63
|
+
import { biomeTypes } from "./components/hud/BiomeIndicator/BiomeIndicator.types.js";
|
|
64
|
+
import { dayPhase, formatClock } from "./components/hud/DayNightIndicator/DayNightIndicator.utils.js";
|
|
65
|
+
import { DayNightIndicator } from "./components/hud/DayNightIndicator/DayNightIndicator.js";
|
|
66
|
+
import { WeatherIndicator } from "./components/hud/WeatherIndicator/WeatherIndicator.js";
|
|
67
|
+
import { weatherTypes } from "./components/hud/WeatherIndicator/WeatherIndicator.types.js";
|
|
68
|
+
import { miniMapMarkerKinds, miniMapTerrain } from "./components/hud/MiniMap/MiniMap.types.js";
|
|
69
|
+
import { compassName, describeMarker } from "./components/hud/MiniMap/MiniMap.utils.js";
|
|
70
|
+
import { MiniMap } from "./components/hud/MiniMap/MiniMap.js";
|
|
47
71
|
import { BlockCard } from "./components/cards/BlockCard/BlockCard.js";
|
|
48
72
|
import { cardMaterials } from "./components/cards/BlockCard/BlockCard.types.js";
|
|
49
73
|
import { BlockProgress } from "./components/feedback/Progress/BlockProgress.js";
|
|
@@ -54,10 +78,21 @@ import { PlayerCard } from "./components/cards/PlayerCard/PlayerCard.js";
|
|
|
54
78
|
import { pingQuality } from "./components/cards/ServerCard/ServerCard.utils.js";
|
|
55
79
|
import { ServerCard } from "./components/cards/ServerCard/ServerCard.js";
|
|
56
80
|
import { WorldCard } from "./components/cards/WorldCard/WorldCard.js";
|
|
81
|
+
import { browseServers } from "./components/cards/ServerBrowser/ServerBrowser.utils.js";
|
|
82
|
+
import { ServerBrowser } from "./components/cards/ServerBrowser/ServerBrowser.js";
|
|
83
|
+
import { browseWorlds } from "./components/cards/WorldBrowser/WorldBrowser.utils.js";
|
|
84
|
+
import { WorldBrowser } from "./components/cards/WorldBrowser/WorldBrowser.js";
|
|
57
85
|
import { badgeVariants } from "./components/display/BlockBadge/BlockBadge.types.js";
|
|
58
86
|
import { BlockTooltip } from "./components/display/BlockTooltip/BlockTooltip.js";
|
|
59
87
|
import { tooltipPlacements } from "./components/display/BlockTooltip/BlockTooltip.types.js";
|
|
60
88
|
import { BlockTable } from "./components/display/BlockTable/BlockTable.js";
|
|
89
|
+
import { skillState } from "./components/display/SkillTree/SkillTree.utils.js";
|
|
90
|
+
import { SkillTree } from "./components/display/SkillTree/SkillTree.js";
|
|
91
|
+
import { ChatWindow } from "./components/social/ChatWindow/ChatWindow.js";
|
|
92
|
+
import { chatMessageTypes } from "./components/social/ChatWindow/ChatWindow.types.js";
|
|
93
|
+
import { suggestCommands } from "./components/social/CommandConsole/CommandConsole.utils.js";
|
|
94
|
+
import { CommandConsole } from "./components/social/CommandConsole/CommandConsole.js";
|
|
95
|
+
import { consoleEntryKinds } from "./components/social/CommandConsole/CommandConsole.types.js";
|
|
61
96
|
import { useMediaQuery } from "./hooks/useMediaQuery.js";
|
|
62
97
|
import { BlockSidebar, SidebarItem } from "./components/navigation/BlockSidebar/BlockSidebar.js";
|
|
63
98
|
import { BlockTabs } from "./components/navigation/BlockTabs/BlockTabs.js";
|
|
@@ -75,4 +110,4 @@ import { BlockModal } from "./components/feedback/Modal/BlockModal.js";
|
|
|
75
110
|
import { ConfirmDialog } from "./components/feedback/ConfirmDialog/ConfirmDialog.js";
|
|
76
111
|
import { progressVariants } from "./components/feedback/Progress/BlockProgress.types.js";
|
|
77
112
|
import { BlockLoading } from "./components/feedback/Loading/BlockLoading.js";
|
|
78
|
-
export { AchievementCard, ArmorBar, BlockAlert, BlockBadge, BlockButton, BlockCard, BlockCheckbox, BlockDivider, BlockInput, BlockLoading, BlockMenu, BlockModal, BlockPagination, BlockPanel, BlockProgress, BlockRadio, BlockRadioGroup, BlockSelect, BlockSidebar, BlockSlider, BlockStack, BlockTable, BlockTabs, BlockTextarea, BlockToaster, BlockToggle, BlockTooltip, BlockUIProvider, Breadcrumb, ConfirmDialog, CraftingGrid, CraftingResult, CraftingSlot, CraftingTable, DEFAULT_TOAST_DURATION, DurabilityBar, Furnace, HealthBar, Hotbar, HotbarNavigation, HungerBar, IconButton, Inventory, InventoryGrid, InventorySection, InventorySlot, ItemStack, ItemTooltip, PlayerCard, PlayerHUD, QuestCard, ServerCard, SidebarItem, WorldCard, XPBar, alertVariants, badgeVariants, blockButtonVariants, cardMaterials, clamp, cx, describeItemStack, dividerVariants, durabilityLevel, formatNumber, furnaceStates, getFurnaceState, getPaginationRange, itemRarities, normalizeRarity, pingQuality, progressVariants, ratio, stackGaps, toast, tooltipPlacements, useBlockUI, useControllableState, useDigitHotkeys, useFocusTrap, useMediaQuery, usePortalContainer, useToasts };
|
|
113
|
+
export { AchievementCard, Anvil, ArmorBar, BiomeIndicator, BlockAlert, BlockBadge, BlockButton, BlockCard, BlockCheckbox, BlockDivider, BlockInput, BlockLoading, BlockMenu, BlockModal, BlockPagination, BlockPanel, BlockProgress, BlockRadio, BlockRadioGroup, BlockSelect, BlockSidebar, BlockSlider, BlockStack, BlockTable, BlockTabs, BlockTextarea, BlockToaster, BlockToggle, BlockTooltip, BlockUIProvider, BossBar, Breadcrumb, BrewingStand, ChatWindow, CommandConsole, ConfirmDialog, CoordinatesHUD, CraftingGrid, CraftingResult, CraftingSlot, CraftingTable, DEFAULT_TOAST_DURATION, DayNightIndicator, DurabilityBar, EnchantingTable, Furnace, HealthBar, Hotbar, HotbarNavigation, HungerBar, IconButton, Inventory, InventoryGrid, InventorySection, InventorySlot, ItemStack, ItemTooltip, MiniMap, PlayerCard, PlayerHUD, QuestCard, RecipeBook, Scoreboard, ServerBrowser, ServerCard, SidebarItem, SkillTree, TradingUI, WeatherIndicator, WorldBrowser, WorldCard, XPBar, alertVariants, anvilCostState, badgeVariants, biomeTypes, blockButtonVariants, bossBarColors, bossBarSegments, brewingStates, browseServers, browseWorlds, cardMaterials, chatMessageTypes, clamp, compassName, consoleEntryKinds, cx, dayPhase, describeItemStack, describeMarker, dividerVariants, durabilityLevel, facings, filterRecipes, formatClock, formatNumber, furnaceStates, getBrewingState, getFurnaceState, getPaginationRange, itemRarities, miniMapMarkerKinds, miniMapTerrain, normalizeRarity, pingQuality, progressVariants, ratio, skillState, stackGaps, suggestCommands, toast, tooltipPlacements, useBlockUI, useControllableState, useDigitHotkeys, useFocusTrap, useMediaQuery, usePortalContainer, useToasts, villagerLevels, weatherTypes };
|