@rpg-engine/long-bow 0.2.19 → 0.2.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,6 +1,5 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import { v4 as uuidv4 } from 'uuid';
3
- import { RPGUIForceRenderStart } from './RPGUIForceRenderStart';
4
3
  import { _RPGUI } from './RPGUIRoot';
5
4
 
6
5
  export interface IOptionsProps {
@@ -41,24 +40,18 @@ export const Dropdown: React.FC<IDropdownProps> = ({
41
40
  }, [selectedValue]);
42
41
 
43
42
  return (
44
- <RPGUIForceRenderStart
45
- elementDOMId={`rpgui-dropdown-${dropdownId}`}
46
- elementRenderedDOMKey='[data-rpguitype="dropdown"]'
47
- RPGUICreateFunction="dropdown"
43
+ <select
44
+ id={`rpgui-dropdown-${dropdownId}`}
45
+ style={{ width: width }}
46
+ className="rpgui-dropdown"
48
47
  >
49
- <select
50
- id={`rpgui-dropdown-${dropdownId}`}
51
- style={{ width: width }}
52
- className="rpgui-dropdown"
53
- >
54
- {options.map(option => {
55
- return (
56
- <option key={option.id} value={option.value}>
57
- {option.option}
58
- </option>
59
- );
60
- })}
61
- </select>
62
- </RPGUIForceRenderStart>
48
+ {options.map(option => {
49
+ return (
50
+ <option key={option.id} value={option.value}>
51
+ {option.option}
52
+ </option>
53
+ );
54
+ })}
55
+ </select>
63
56
  );
64
57
  };
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
3
  import { v4 as uuidv4 } from 'uuid';
4
- import { RPGUIForceRenderStart } from './RPGUIForceRenderStart';
5
4
  import { _RPGUI } from './RPGUIRoot';
6
5
 
7
6
  export enum RangeSliderType {
@@ -34,26 +33,20 @@ export const RangeSlider: React.FC<IRangeSliderProps> = ({
34
33
  };
35
34
 
36
35
  return (
37
- <RPGUIForceRenderStart
38
- elementDOMId={`rpgui-slider-${sliderId}`}
39
- elementRenderedDOMKey="[data-rpguitype='slider']"
40
- RPGUICreateFunction="slider"
41
- >
42
- <div onMouseUp={onHandleMouseUp}>
43
- <Input
44
- className={
45
- type === RangeSliderType.Slider
46
- ? RangeSliderType.Slider
47
- : RangeSliderType.GoldSlider
48
- }
49
- type="range"
50
- style={{ width: width }}
51
- min={valueMin}
52
- max={valueMax}
53
- id={`rpgui-slider-${sliderId}`}
54
- />
55
- </div>
56
- </RPGUIForceRenderStart>
36
+ <div onMouseUp={onHandleMouseUp}>
37
+ <Input
38
+ className={
39
+ type === RangeSliderType.Slider
40
+ ? RangeSliderType.Slider
41
+ : RangeSliderType.GoldSlider
42
+ }
43
+ type="range"
44
+ style={{ width: width }}
45
+ min={valueMin}
46
+ max={valueMax}
47
+ id={`rpgui-slider-${sliderId}`}
48
+ />
49
+ </div>
57
50
  );
58
51
  };
59
52