New source found from dndbeyond.com

This commit is contained in:
2026-07-08 01:00:09 -07:00
parent 9a983a6d7b
commit dcefa0d2f2
2865 changed files with 222467 additions and 49053 deletions
@@ -2,9 +2,11 @@ import React from "react";
import { HtmlSelectOption } from "@dndbeyond/character-rules-engine/es";
import { Select } from "~/components/Select";
import { DataLoadingStatusEnum } from "../../../componentConstants";
import { Button } from "../../../legacy/Button";
import { Select } from "../../../legacy/Select";
import styles from "./styles.module.css";
export interface DiceRollActionNodeProps {
rollKey: string;
@@ -15,7 +17,7 @@ export interface DiceRollActionNodeProps {
rollButtonText?: string;
selectPlaceholderText?: string;
onRoll: () => void;
onChange?: (newValue: string | null) => void;
onChange?: (newValue: string | number) => void;
}
const DiceRollActionNode: React.FunctionComponent<DiceRollActionNodeProps> = ({
rollKey,
@@ -31,11 +33,13 @@ const DiceRollActionNode: React.FunctionComponent<DiceRollActionNodeProps> = ({
if (options?.length && rollTotal !== null) {
return (
<Select
className={styles.select}
id={rollKey}
value={assignedValue}
options={options}
placeholder={selectPlaceholderText}
onChange={onChange}
name={rollKey}
/>
);
}
@@ -0,0 +1,8 @@
import DiceRollActionNode from "./DiceRollActionNode";
//Props typings
export * from "./DiceRollActionNode";
export { DiceRollActionNode };
export default DiceRollActionNode;