dirk-cfx-react 1.0.50 → 1.0.52

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/index.cjs CHANGED
@@ -1870,6 +1870,53 @@ function Modal() {
1870
1870
  }
1871
1871
  ) });
1872
1872
  }
1873
+ function PromptModal(props) {
1874
+ const theme2 = core.useMantineTheme();
1875
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1876
+ MotionFlex,
1877
+ {
1878
+ gap: "sm",
1879
+ direction: "column",
1880
+ flex: 1,
1881
+ children: [
1882
+ /* @__PURE__ */ jsxRuntime.jsx(
1883
+ core.Text,
1884
+ {
1885
+ size: "xs",
1886
+ c: "rgba(255, 255, 255, 0.8)",
1887
+ children: props.message
1888
+ }
1889
+ ),
1890
+ /* @__PURE__ */ jsxRuntime.jsx(
1891
+ core.Flex,
1892
+ {
1893
+ gap: "sm",
1894
+ children: props.buttons.map((button, index) => /* @__PURE__ */ jsxRuntime.jsx(
1895
+ core.Button,
1896
+ {
1897
+ variant: button.variant,
1898
+ color: button.color,
1899
+ flex: 0.5,
1900
+ onClick: button.onClick,
1901
+ leftSection: button.icon ? /* @__PURE__ */ jsxRuntime.jsx(
1902
+ reactFontawesome.FontAwesomeIcon,
1903
+ {
1904
+ icon: button.icon,
1905
+ style: {
1906
+ fontSize: theme2.fontSizes.xs
1907
+ }
1908
+ }
1909
+ ) : void 0,
1910
+ children: button.text
1911
+ },
1912
+ index
1913
+ ))
1914
+ }
1915
+ )
1916
+ ]
1917
+ }
1918
+ );
1919
+ }
1873
1920
  var useNuiEvent = (action, handler) => {
1874
1921
  const savedHandler = react.useRef(noop);
1875
1922
  react.useEffect(() => {
@@ -2355,6 +2402,7 @@ exports.MotionText = MotionText;
2355
2402
  exports.NavBar = NavBar;
2356
2403
  exports.NavigationContext = NavigationContext;
2357
2404
  exports.NavigationProvider = NavigationProvider;
2405
+ exports.PromptModal = PromptModal;
2358
2406
  exports.SegmentedControl = SegmentedControl;
2359
2407
  exports.SegmentedProgress = SegmentedProgress;
2360
2408
  exports.Title = Title;