@rpg-engine/long-bow 0.5.65 → 0.5.67
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/AsyncDropdown.d.ts +13 -0
- package/dist/components/Dropdown.d.ts +0 -2
- package/dist/components/ImageCarousel/SimpleImageCarousel.d.ts +2 -3
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +222 -142
- 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 +223 -144
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/assets/images/backpack.png +0 -0
- package/src/assets/images/depot.png +0 -0
- package/src/components/AsyncDropdown.tsx +127 -0
- package/src/components/Dropdown.tsx +2 -18
- package/src/components/ImageCarousel/SimpleImageCarousel.tsx +33 -40
- package/src/index.tsx +1 -0
- package/src/stories/Dropdown.stories.tsx +2 -2
- package/src/stories/SimpleImageCarousel.stories.tsx +3 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IAsyncDropdownOptionsProps {
|
|
3
|
+
id: number;
|
|
4
|
+
value: string;
|
|
5
|
+
option: string | JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
export interface IAsyncDropdownProps {
|
|
8
|
+
options: IAsyncDropdownOptionsProps[];
|
|
9
|
+
width?: string;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const AsyncDropdown: React.FC<IAsyncDropdownProps>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface ISimpleImageCarousel {
|
|
3
|
-
|
|
4
|
-
imagesSrc: string[];
|
|
3
|
+
images: string[];
|
|
5
4
|
styles?: React.CSSProperties;
|
|
6
5
|
autoCycle?: boolean;
|
|
7
6
|
autoCycleDelay?: number;
|
|
8
7
|
stopAutoCyclingOnInteraction?: boolean;
|
|
9
8
|
}
|
|
10
|
-
export declare const SimpleImageCarousel:
|
|
9
|
+
export declare const SimpleImageCarousel: React.FC<ISimpleImageCarousel>;
|
package/dist/index.d.ts
CHANGED