@rpg-engine/long-bow 0.5.84 → 0.5.86
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/CheckItem.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +22 -0
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +22 -1
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CheckItem.tsx +34 -0
- package/src/index.tsx +1 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -13243,6 +13243,27 @@ var CheckButton = function CheckButton(_ref) {
|
|
|
13243
13243
|
}));
|
|
13244
13244
|
};
|
|
13245
13245
|
|
|
13246
|
+
var CheckItem = function CheckItem(_ref) {
|
|
13247
|
+
var label = _ref.label,
|
|
13248
|
+
_ref$defaultValue = _ref.defaultValue,
|
|
13249
|
+
defaultValue = _ref$defaultValue === void 0 ? false : _ref$defaultValue,
|
|
13250
|
+
onChange = _ref.onChange;
|
|
13251
|
+
var _useState = useState(defaultValue),
|
|
13252
|
+
checked = _useState[0],
|
|
13253
|
+
setChecked = _useState[1];
|
|
13254
|
+
var handleClick = function handleClick() {
|
|
13255
|
+
var newCheckedState = !checked;
|
|
13256
|
+
setChecked(newCheckedState);
|
|
13257
|
+
onChange(label, newCheckedState);
|
|
13258
|
+
};
|
|
13259
|
+
return React.createElement("div", null, React.createElement("input", {
|
|
13260
|
+
className: "rpgui-checkbox",
|
|
13261
|
+
type: "checkbox",
|
|
13262
|
+
checked: checked,
|
|
13263
|
+
onChange: handleClick
|
|
13264
|
+
}), React.createElement("label", null, label), React.createElement("br", null));
|
|
13265
|
+
};
|
|
13266
|
+
|
|
13246
13267
|
var SingleShortcut = /*#__PURE__*/styled.button.withConfig({
|
|
13247
13268
|
displayName: "SingleShortcut",
|
|
13248
13269
|
componentId: "sc-vz5ev8-0"
|
|
@@ -19348,5 +19369,5 @@ var ButtonWrapper$3 = /*#__PURE__*/styled.div.withConfig({
|
|
|
19348
19369
|
componentId: "sc-gptoxp-5"
|
|
19349
19370
|
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
|
|
19350
19371
|
|
|
19351
|
-
export { AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio$1 as InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, Leaderboard, ListMenu, Marketplace, MarketplaceRows, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, TextArea, TimeWidget, TradingMenu, Truncate, _RPGUI, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
19372
|
+
export { AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio$1 as InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, Leaderboard, ListMenu, Marketplace, MarketplaceRows, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, TextArea, TimeWidget, TradingMenu, Truncate, _RPGUI, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
19352
19373
|
//# sourceMappingURL=long-bow.esm.js.map
|