@rpg-engine/long-bow 0.5.84 → 0.5.85
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 +24 -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 +24 -1
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CheckItem.tsx +33 -0
- package/src/index.tsx +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './components/Chat/Chat';
|
|
|
5
5
|
export * from './components/ChatRevamp/ChatRevamp';
|
|
6
6
|
export * from './components/Chatdeprecated/ChatDeprecated';
|
|
7
7
|
export * from './components/CheckButton';
|
|
8
|
+
export * from './components/CheckItem';
|
|
8
9
|
export * from './components/CircularController/CircularController';
|
|
9
10
|
export * from './components/CraftBook/CraftBook';
|
|
10
11
|
export * from './components/DraggableContainer';
|
|
@@ -13249,6 +13249,29 @@ var CheckButton = function CheckButton(_ref) {
|
|
|
13249
13249
|
}));
|
|
13250
13250
|
};
|
|
13251
13251
|
|
|
13252
|
+
var CheckItem = function CheckItem(_ref) {
|
|
13253
|
+
var label = _ref.label,
|
|
13254
|
+
value = _ref.value,
|
|
13255
|
+
onChange = _ref.onChange;
|
|
13256
|
+
var _useState = React.useState(false),
|
|
13257
|
+
selected = _useState[0],
|
|
13258
|
+
setSelected = _useState[1];
|
|
13259
|
+
var handleClick = function handleClick() {
|
|
13260
|
+
setSelected(!selected);
|
|
13261
|
+
onChange(label, !selected);
|
|
13262
|
+
};
|
|
13263
|
+
return React__default.createElement("div", {
|
|
13264
|
+
key: value
|
|
13265
|
+
}, React__default.createElement("input", {
|
|
13266
|
+
className: "rpgui-checkbox",
|
|
13267
|
+
type: "checkbox",
|
|
13268
|
+
checked: selected,
|
|
13269
|
+
onChange: function onChange() {}
|
|
13270
|
+
}), React__default.createElement("label", {
|
|
13271
|
+
onPointerDown: handleClick
|
|
13272
|
+
}, label), React__default.createElement("br", null));
|
|
13273
|
+
};
|
|
13274
|
+
|
|
13252
13275
|
var SingleShortcut = /*#__PURE__*/styled__default.button.withConfig({
|
|
13253
13276
|
displayName: "SingleShortcut",
|
|
13254
13277
|
componentId: "sc-vz5ev8-0"
|
|
@@ -19358,6 +19381,7 @@ exports.Chat = Chat;
|
|
|
19358
19381
|
exports.ChatDeprecated = ChatDeprecated;
|
|
19359
19382
|
exports.ChatRevamp = ChatRevamp;
|
|
19360
19383
|
exports.CheckButton = CheckButton;
|
|
19384
|
+
exports.CheckItem = CheckItem;
|
|
19361
19385
|
exports.CircularController = CircularController;
|
|
19362
19386
|
exports.CraftBook = CraftBook;
|
|
19363
19387
|
exports.DraggableContainer = DraggableContainer;
|