@trops/dash-react 1.0.36 → 1.0.38

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.js CHANGED
@@ -1786,7 +1786,8 @@ function Heading(_ref) {
1786
1786
  _ref$className = _ref.className,
1787
1787
  className = _ref$className === void 0 ? "" : _ref$className,
1788
1788
  _ref$as = _ref.as,
1789
- as = _ref$as === void 0 ? null : _ref$as;
1789
+ as = _ref$as === void 0 ? null : _ref$as,
1790
+ children = _ref.children;
1790
1791
  var _useContext = useContext(ThemeContext),
1791
1792
  currentTheme = _useContext.currentTheme;
1792
1793
  var paddingStyles = padding === true ? "py-3 2xl:py-4" : "p-0";
@@ -1800,7 +1801,7 @@ function Heading(_ref) {
1800
1801
  return /*#__PURE__*/createElement(Tag, {
1801
1802
  className: "flex flex-row ".concat(className, " ").concat(paddingStyles, " ").concat(styles.textSize || "text-5xl", " ").concat(styles.fontWeight || "font-bold", " ").concat(styles.letterSpacing || "tracking-tight", " ").concat(styles.lineHeight || "leading-tight", " ").concat(styles.textColor || "", " ").concat(styles.backgroundColor || "", " ").concat(onClick !== null && "cursor-pointer"),
1802
1803
  onClick: onClick
1803
- }, title);
1804
+ }, children !== undefined ? children : title);
1804
1805
  }
1805
1806
  function Heading2(_ref2) {
1806
1807
  var title = _ref2.title,
@@ -1815,7 +1816,8 @@ function Heading2(_ref2) {
1815
1816
  _ref2$className = _ref2.className,
1816
1817
  className = _ref2$className === void 0 ? "" : _ref2$className,
1817
1818
  _ref2$as = _ref2.as,
1818
- as = _ref2$as === void 0 ? null : _ref2$as;
1819
+ as = _ref2$as === void 0 ? null : _ref2$as,
1820
+ children = _ref2.children;
1819
1821
  var _useContext2 = useContext(ThemeContext),
1820
1822
  currentTheme = _useContext2.currentTheme;
1821
1823
  var paddingStyles = padding === true ? "py-2.5 2xl:py-3" : "p-0";
@@ -1829,7 +1831,7 @@ function Heading2(_ref2) {
1829
1831
  return /*#__PURE__*/createElement(Tag, {
1830
1832
  className: "flex flex-row ".concat(className, " ").concat(paddingStyles, " ").concat(styles.textSize || "text-4xl", " ").concat(styles.fontWeight || "font-bold", " ").concat(styles.letterSpacing || "tracking-tight", " ").concat(styles.lineHeight || "leading-tight", " ").concat(styles.textColor || "", " ").concat(styles.backgroundColor || "", " ").concat(onClick !== null && "cursor-pointer"),
1831
1833
  onClick: onClick
1832
- }, title);
1834
+ }, children !== undefined ? children : title);
1833
1835
  }
1834
1836
  function Heading3(_ref3) {
1835
1837
  var title = _ref3.title,
@@ -1844,7 +1846,8 @@ function Heading3(_ref3) {
1844
1846
  _ref3$className = _ref3.className,
1845
1847
  className = _ref3$className === void 0 ? "" : _ref3$className,
1846
1848
  _ref3$as = _ref3.as,
1847
- as = _ref3$as === void 0 ? null : _ref3$as;
1849
+ as = _ref3$as === void 0 ? null : _ref3$as,
1850
+ children = _ref3.children;
1848
1851
  var _useContext3 = useContext(ThemeContext),
1849
1852
  currentTheme = _useContext3.currentTheme;
1850
1853
  var paddingStyles = padding === true ? "py-2 2xl:py-3" : "p-0";
@@ -1858,7 +1861,7 @@ function Heading3(_ref3) {
1858
1861
  return /*#__PURE__*/createElement(Tag, {
1859
1862
  className: "flex flex-row ".concat(className, " ").concat(paddingStyles, " ").concat(styles.textSize || "text-3xl", " ").concat(styles.fontWeight || "font-semibold", " ").concat(styles.letterSpacing || "tracking-tight", " ").concat(styles.lineHeight || "leading-tight", " ").concat(styles.textColor || "", " ").concat(styles.backgroundColor || "", " ").concat(onClick !== null && "cursor-pointer"),
1860
1863
  onClick: onClick
1861
- }, title);
1864
+ }, children !== undefined ? children : title);
1862
1865
  }
1863
1866
  function SubHeading(_ref4) {
1864
1867
  var title = _ref4.title,
@@ -1873,7 +1876,8 @@ function SubHeading(_ref4) {
1873
1876
  _ref4$className = _ref4.className,
1874
1877
  className = _ref4$className === void 0 ? "" : _ref4$className,
1875
1878
  _ref4$as = _ref4.as,
1876
- as = _ref4$as === void 0 ? null : _ref4$as;
1879
+ as = _ref4$as === void 0 ? null : _ref4$as,
1880
+ children = _ref4.children;
1877
1881
  var _useContext4 = useContext(ThemeContext),
1878
1882
  currentTheme = _useContext4.currentTheme;
1879
1883
  var paddingStyles = padding === true ? "py-2 2xl:py-3" : "p-0";
@@ -1887,7 +1891,7 @@ function SubHeading(_ref4) {
1887
1891
  return /*#__PURE__*/createElement(Tag, {
1888
1892
  className: "flex flex-row w-full ".concat(className, " ").concat(paddingStyles, " ").concat(styles.textSize || "text-2xl", " ").concat(styles.fontWeight || "font-semibold", " ").concat(styles.letterSpacing || "tracking-tight", " ").concat(styles.lineHeight || "leading-snug", " ").concat(styles.textColor || "", " ").concat(styles.backgroundColor || "", " ").concat(onClick !== null && "cursor-pointer"),
1889
1893
  onClick: onClick
1890
- }, title);
1894
+ }, children !== undefined ? children : title);
1891
1895
  }
1892
1896
  function SubHeading2(_ref5) {
1893
1897
  var title = _ref5.title,
@@ -1902,7 +1906,8 @@ function SubHeading2(_ref5) {
1902
1906
  _ref5$className = _ref5.className,
1903
1907
  className = _ref5$className === void 0 ? "" : _ref5$className,
1904
1908
  _ref5$as = _ref5.as,
1905
- as = _ref5$as === void 0 ? null : _ref5$as;
1909
+ as = _ref5$as === void 0 ? null : _ref5$as,
1910
+ children = _ref5.children;
1906
1911
  var _useContext5 = useContext(ThemeContext),
1907
1912
  currentTheme = _useContext5.currentTheme;
1908
1913
  var paddingStyles = padding === true ? "py-1.5 2xl:py-2" : "p-0";
@@ -1916,7 +1921,7 @@ function SubHeading2(_ref5) {
1916
1921
  return /*#__PURE__*/createElement(Tag, {
1917
1922
  className: "flex flex-row w-full ".concat(className, " ").concat(paddingStyles, " ").concat(styles.textSize || "text-xl", " ").concat(styles.fontWeight || "font-medium", " ").concat(styles.letterSpacing || "tracking-tight", " ").concat(styles.lineHeight || "leading-snug", " ").concat(styles.textColor || "", " ").concat(styles.backgroundColor || "", " ").concat(onClick !== null && "cursor-pointer"),
1918
1923
  onClick: onClick
1919
- }, title);
1924
+ }, children !== undefined ? children : title);
1920
1925
  }
1921
1926
  function SubHeading3(_ref6) {
1922
1927
  var title = _ref6.title,
@@ -1931,7 +1936,8 @@ function SubHeading3(_ref6) {
1931
1936
  _ref6$className = _ref6.className,
1932
1937
  className = _ref6$className === void 0 ? "" : _ref6$className,
1933
1938
  _ref6$as = _ref6.as,
1934
- as = _ref6$as === void 0 ? null : _ref6$as;
1939
+ as = _ref6$as === void 0 ? null : _ref6$as,
1940
+ children = _ref6.children;
1935
1941
  var _useContext6 = useContext(ThemeContext),
1936
1942
  currentTheme = _useContext6.currentTheme;
1937
1943
  var paddingStyles = padding === true ? "py-1 2xl:py-2" : "p-0";
@@ -1945,13 +1951,13 @@ function SubHeading3(_ref6) {
1945
1951
  return /*#__PURE__*/createElement(Tag, {
1946
1952
  className: "flex flex-row w-full ".concat(className, " ").concat(paddingStyles, " ").concat(styles.textSize || "text-lg", " ").concat(styles.fontWeight || "font-medium", " ").concat(styles.letterSpacing || "tracking-normal", " ").concat(styles.lineHeight || "leading-snug", " ").concat(styles.textColor || "", " ").concat(styles.backgroundColor || "", " ").concat(onClick !== null && "cursor-pointer"),
1947
1953
  onClick: onClick
1948
- }, title);
1954
+ }, children !== undefined ? children : title);
1949
1955
  }
1950
1956
 
1951
1957
  function _typeof$D(o) { "@babel/helpers - typeof"; return _typeof$D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$D(o); }
1952
- var _excluded$w = ["title", "onClick", "disabled", "padding", "textSize", "block", "size", "className"],
1953
- _excluded2$a = ["title", "onClick", "disabled", "textSize", "padding", "block", "size", "className"],
1954
- _excluded3$a = ["title", "onClick", "disabled", "textSize", "padding", "block", "size", "className"];
1958
+ var _excluded$w = ["title", "onClick", "disabled", "padding", "textSize", "block", "size", "className", "children"],
1959
+ _excluded2$a = ["title", "onClick", "disabled", "textSize", "padding", "block", "size", "className", "children"],
1960
+ _excluded3$a = ["title", "onClick", "disabled", "textSize", "padding", "block", "size", "className", "children"];
1955
1961
  function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1956
1962
  function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty$z(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1957
1963
  function _defineProperty$z(e, r, t) { return (r = _toPropertyKey$D(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -1974,6 +1980,7 @@ var Button = function Button(_ref) {
1974
1980
  size = _ref$size === void 0 ? "md" : _ref$size,
1975
1981
  _ref$className = _ref.className,
1976
1982
  className = _ref$className === void 0 ? "" : _ref$className,
1983
+ children = _ref.children,
1977
1984
  props = _objectWithoutProperties$w(_ref, _excluded$w);
1978
1985
  var _useContext = useContext(ThemeContext),
1979
1986
  currentTheme = _useContext.currentTheme;
@@ -1990,7 +1997,7 @@ var Button = function Button(_ref) {
1990
1997
  onClick: onClick,
1991
1998
  disabled: disabled,
1992
1999
  className: "flex flex-nowrap whitespace-nowrap flex-row justify-center items-center ".concat(styles.string, " ").concat(width, " focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 ").concat(styles.focusRingColor || "", " ").concat(className),
1993
- children: title
2000
+ children: children !== undefined ? children : title
1994
2001
  });
1995
2002
  };
1996
2003
  var Button2 = function Button2(_ref2) {
@@ -2008,6 +2015,7 @@ var Button2 = function Button2(_ref2) {
2008
2015
  size = _ref2$size === void 0 ? "md" : _ref2$size,
2009
2016
  _ref2$className = _ref2.className,
2010
2017
  className = _ref2$className === void 0 ? "" : _ref2$className,
2018
+ children = _ref2.children,
2011
2019
  props = _objectWithoutProperties$w(_ref2, _excluded2$a);
2012
2020
  var _useContext2 = useContext(ThemeContext),
2013
2021
  currentTheme = _useContext2.currentTheme;
@@ -2023,7 +2031,7 @@ var Button2 = function Button2(_ref2) {
2023
2031
  onClick: onClick,
2024
2032
  disabled: disabled,
2025
2033
  className: "flex flex-row flex-shrink justify-center items-center ".concat(styles.string, " ").concat(width, " focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 ").concat(className),
2026
- children: title
2034
+ children: children !== undefined ? children : title
2027
2035
  });
2028
2036
  };
2029
2037
  var Button3 = function Button3(_ref3) {
@@ -2041,6 +2049,7 @@ var Button3 = function Button3(_ref3) {
2041
2049
  size = _ref3$size === void 0 ? "md" : _ref3$size,
2042
2050
  _ref3$className = _ref3.className,
2043
2051
  className = _ref3$className === void 0 ? "" : _ref3$className,
2052
+ children = _ref3.children,
2044
2053
  props = _objectWithoutProperties$w(_ref3, _excluded3$a);
2045
2054
  var _useContext3 = useContext(ThemeContext),
2046
2055
  currentTheme = _useContext3.currentTheme;
@@ -2055,14 +2064,14 @@ var Button3 = function Button3(_ref3) {
2055
2064
  onClick: onClick,
2056
2065
  disabled: disabled,
2057
2066
  className: "flex flex-row justify-center items-center ".concat(styles.string, " ").concat(width, " focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 ").concat(className),
2058
- children: title
2067
+ children: children !== undefined ? children : title
2059
2068
  });
2060
2069
  };
2061
2070
 
2062
2071
  function _typeof$C(o) { "@babel/helpers - typeof"; return _typeof$C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$C(o); }
2063
- var _excluded$v = ["onClick", "icon", "text", "block", "textSize", "textColor", "iconSize", "backgroundColor", "selected", "selectedBackgroundColor", "selectedTextColor", "disabled", "className", "size", "ariaLabel"],
2064
- _excluded2$9 = ["onClick", "icon", "text", "block", "textSize", "iconSize", "backgroundColor", "selected", "selectedBackgroundColor", "selectedTextColor", "disabled", "className", "size", "ariaLabel"],
2065
- _excluded3$9 = ["onClick", "icon", "text", "block", "textSize", "iconSize", "backgroundColor", "selected", "selectedBackgroundColor", "selectedTextColor", "disabled", "className", "size", "ariaLabel"];
2072
+ var _excluded$v = ["onClick", "icon", "text", "block", "textSize", "textColor", "iconSize", "backgroundColor", "selected", "selectedBackgroundColor", "selectedTextColor", "disabled", "className", "size", "ariaLabel", "children"],
2073
+ _excluded2$9 = ["onClick", "icon", "text", "block", "textSize", "iconSize", "backgroundColor", "selected", "selectedBackgroundColor", "selectedTextColor", "disabled", "className", "size", "ariaLabel", "children"],
2074
+ _excluded3$9 = ["onClick", "icon", "text", "block", "textSize", "iconSize", "backgroundColor", "selected", "selectedBackgroundColor", "selectedTextColor", "disabled", "className", "size", "ariaLabel", "children"];
2066
2075
  function ownKeys$x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2067
2076
  function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty$y(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2068
2077
  function _defineProperty$y(e, r, t) { return (r = _toPropertyKey$C(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -2100,6 +2109,7 @@ var ButtonIcon = function ButtonIcon(_ref) {
2100
2109
  size = _ref$size === void 0 ? "md" : _ref$size,
2101
2110
  _ref$ariaLabel = _ref.ariaLabel,
2102
2111
  ariaLabel = _ref$ariaLabel === void 0 ? null : _ref$ariaLabel,
2112
+ children = _ref.children,
2103
2113
  props = _objectWithoutProperties$v(_ref, _excluded$v);
2104
2114
  var _useContext = useContext(ThemeContext),
2105
2115
  currentTheme = _useContext.currentTheme;
@@ -2114,7 +2124,10 @@ var ButtonIcon = function ButtonIcon(_ref) {
2114
2124
  var uuid = getUUID$1("", "button-icon");
2115
2125
  var computedIconSize = iconSize || styles.iconSize || "h-5 w-5";
2116
2126
  var hasIcon = icon !== "";
2117
- var hasText = text !== "" && text !== null;
2127
+ // Accept the button label via `text` prop (canonical) OR children
2128
+ // (LLM-friendly shorthand). Prop wins when both are provided.
2129
+ var effectiveText = text !== "" && text !== null ? text : children;
2130
+ var hasText = effectiveText !== undefined && effectiveText !== null && effectiveText !== "";
2118
2131
  var bgColor = selected ? styles.selectedBackgroundColor || styles.backgroundColor || "" : styles.backgroundColor || "";
2119
2132
  var txtColor = selected ? styles.selectedTextColor || styles.textColor || "" : styles.textColor || "";
2120
2133
  return /*#__PURE__*/jsxs("button", {
@@ -2128,7 +2141,7 @@ var ButtonIcon = function ButtonIcon(_ref) {
2128
2141
  icon: icon,
2129
2142
  className: computedIconSize
2130
2143
  }), hasText && /*#__PURE__*/jsx("span", {
2131
- children: text
2144
+ children: effectiveText
2132
2145
  })]
2133
2146
  });
2134
2147
  };
@@ -2160,6 +2173,7 @@ var ButtonIcon2 = function ButtonIcon2(_ref2) {
2160
2173
  size = _ref2$size === void 0 ? "md" : _ref2$size,
2161
2174
  _ref2$ariaLabel = _ref2.ariaLabel,
2162
2175
  ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
2176
+ children = _ref2.children,
2163
2177
  props = _objectWithoutProperties$v(_ref2, _excluded2$9);
2164
2178
  var _useContext2 = useContext(ThemeContext),
2165
2179
  currentTheme = _useContext2.currentTheme;
@@ -2173,7 +2187,10 @@ var ButtonIcon2 = function ButtonIcon2(_ref2) {
2173
2187
  var uuid = getUUID$1("", "button-icon-2");
2174
2188
  var computedIconSize = iconSize || styles.iconSize || "h-4 w-4";
2175
2189
  var hasIcon = icon !== "";
2176
- var hasText = text !== "" && text !== null;
2190
+ // Accept the button label via `text` prop (canonical) OR children
2191
+ // (LLM-friendly shorthand). Prop wins when both are provided.
2192
+ var effectiveText = text !== "" && text !== null ? text : children;
2193
+ var hasText = effectiveText !== undefined && effectiveText !== null && effectiveText !== "";
2177
2194
  var bgColor = selected ? styles.selectedBackgroundColor || styles.backgroundColor || "" : styles.backgroundColor || "";
2178
2195
  var txtColor = selected ? styles.selectedTextColor || styles.textColor || "" : styles.textColor || "";
2179
2196
  return /*#__PURE__*/jsxs("button", {
@@ -2187,7 +2204,7 @@ var ButtonIcon2 = function ButtonIcon2(_ref2) {
2187
2204
  icon: icon,
2188
2205
  className: computedIconSize
2189
2206
  }), hasText && /*#__PURE__*/jsx("span", {
2190
- children: text
2207
+ children: effectiveText
2191
2208
  })]
2192
2209
  });
2193
2210
  };
@@ -2219,6 +2236,7 @@ var ButtonIcon3 = function ButtonIcon3(_ref3) {
2219
2236
  size = _ref3$size === void 0 ? "md" : _ref3$size,
2220
2237
  _ref3$ariaLabel = _ref3.ariaLabel,
2221
2238
  ariaLabel = _ref3$ariaLabel === void 0 ? null : _ref3$ariaLabel,
2239
+ children = _ref3.children,
2222
2240
  props = _objectWithoutProperties$v(_ref3, _excluded3$9);
2223
2241
  var _useContext3 = useContext(ThemeContext),
2224
2242
  currentTheme = _useContext3.currentTheme;
@@ -2232,7 +2250,10 @@ var ButtonIcon3 = function ButtonIcon3(_ref3) {
2232
2250
  var uuid = getUUID$1("", "button-icon-3");
2233
2251
  var computedIconSize = iconSize || styles.iconSize || "h-3 w-3";
2234
2252
  var hasIcon = icon !== "";
2235
- var hasText = text !== "" && text !== null;
2253
+ // Accept the button label via `text` prop (canonical) OR children
2254
+ // (LLM-friendly shorthand). Prop wins when both are provided.
2255
+ var effectiveText = text !== "" && text !== null ? text : children;
2256
+ var hasText = effectiveText !== undefined && effectiveText !== null && effectiveText !== "";
2236
2257
  var bgColor = selected ? styles.selectedBackgroundColor || styles.backgroundColor || "" : styles.backgroundColor || "";
2237
2258
  var txtColor = selected ? styles.selectedTextColor || styles.textColor || "" : styles.textColor || "";
2238
2259
  return /*#__PURE__*/jsxs("button", {
@@ -2246,7 +2267,7 @@ var ButtonIcon3 = function ButtonIcon3(_ref3) {
2246
2267
  icon: icon,
2247
2268
  className: computedIconSize
2248
2269
  }), hasText && /*#__PURE__*/jsx("span", {
2249
- children: text
2270
+ children: effectiveText
2250
2271
  })]
2251
2272
  });
2252
2273
  };
@@ -2881,7 +2902,7 @@ var ProgressBar3 = function ProgressBar3(props) {
2881
2902
  };
2882
2903
 
2883
2904
  function _typeof$w(o) { "@babel/helpers - typeof"; return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$w(o); }
2884
- var _excluded$p = ["title", "message", "duration", "onClose", "className", "children"];
2905
+ var _excluded$p = ["title", "message", "duration", "onClose", "className", "children", "type"];
2885
2906
  function ownKeys$r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2886
2907
  function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty$s(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2887
2908
  function _defineProperty$s(e, r, t) { return (r = _toPropertyKey$w(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -2889,6 +2910,32 @@ function _toPropertyKey$w(t) { var i = _toPrimitive$w(t, "string"); return "symb
2889
2910
  function _toPrimitive$w(t, r) { if ("object" != _typeof$w(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$w(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2890
2911
  function _objectWithoutProperties$p(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$p(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
2891
2912
  function _objectWithoutPropertiesLoose$p(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
2913
+ var TOAST_TYPE_STYLES = {
2914
+ success: {
2915
+ bg: "bg-emerald-950/95",
2916
+ border: "border-emerald-500",
2917
+ accent: "text-emerald-400",
2918
+ icon: "circle-check"
2919
+ },
2920
+ error: {
2921
+ bg: "bg-rose-950/95",
2922
+ border: "border-rose-500",
2923
+ accent: "text-rose-400",
2924
+ icon: "circle-xmark"
2925
+ },
2926
+ warning: {
2927
+ bg: "bg-amber-950/95",
2928
+ border: "border-amber-500",
2929
+ accent: "text-amber-400",
2930
+ icon: "triangle-exclamation"
2931
+ },
2932
+ info: {
2933
+ bg: "bg-sky-950/95",
2934
+ border: "border-sky-500",
2935
+ accent: "text-sky-400",
2936
+ icon: "circle-info"
2937
+ }
2938
+ };
2892
2939
  var Toast = function Toast(_ref) {
2893
2940
  var _ref$title = _ref.title,
2894
2941
  title = _ref$title === void 0 ? "" : _ref$title,
@@ -2902,6 +2949,8 @@ var Toast = function Toast(_ref) {
2902
2949
  className = _ref$className === void 0 ? "" : _ref$className,
2903
2950
  _ref$children = _ref.children,
2904
2951
  children = _ref$children === void 0 ? null : _ref$children,
2952
+ _ref$type = _ref.type,
2953
+ type = _ref$type === void 0 ? null : _ref$type,
2905
2954
  props = _objectWithoutProperties$p(_ref, _excluded$p);
2906
2955
  var _useContext = useContext(ThemeContext),
2907
2956
  currentTheme = _useContext.currentTheme;
@@ -2919,6 +2968,40 @@ var Toast = function Toast(_ref) {
2919
2968
  return clearTimeout(timer);
2920
2969
  };
2921
2970
  }, [duration, onClose]);
2971
+
2972
+ // Type-specific rendering: colored border, icon, and accent text
2973
+ if (type && TOAST_TYPE_STYLES[type]) {
2974
+ var t = TOAST_TYPE_STYLES[type];
2975
+ return /*#__PURE__*/jsx("div", {
2976
+ id: uuid,
2977
+ className: "rounded-md border-l-4 ".concat(t.border, " ").concat(t.bg, " shadow-lg p-3 text-white ").concat(className),
2978
+ role: "status",
2979
+ children: /*#__PURE__*/jsxs("div", {
2980
+ className: "flex items-start gap-3",
2981
+ children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
2982
+ icon: t.icon,
2983
+ className: "h-4 w-4 mt-0.5 flex-shrink-0 ".concat(t.accent)
2984
+ }), /*#__PURE__*/jsxs("div", {
2985
+ className: "flex-1 min-w-0",
2986
+ children: [title && /*#__PURE__*/jsx("div", {
2987
+ className: "font-semibold text-sm ".concat(t.accent),
2988
+ children: title
2989
+ }), message && /*#__PURE__*/jsx("div", {
2990
+ className: "text-sm text-white/90 break-words",
2991
+ children: message
2992
+ }), children]
2993
+ }), onClose && /*#__PURE__*/jsx("button", {
2994
+ type: "button",
2995
+ onClick: onClose,
2996
+ className: "text-white/60 hover:text-white text-lg leading-none flex-shrink-0",
2997
+ "aria-label": "Close toast",
2998
+ children: "\xD7"
2999
+ })]
3000
+ })
3001
+ });
3002
+ }
3003
+
3004
+ // Default theme-driven rendering (backward compatible)
2922
3005
  return /*#__PURE__*/jsx("div", {
2923
3006
  id: uuid,
2924
3007
  className: "border ".concat(styles.backgroundColor, " ").concat(styles.borderColor, " ").concat(styles.textColor, " rounded-md p-4 shadow-lg ").concat(className),
@@ -3750,9 +3833,9 @@ var SearchInput = function SearchInput(_ref) {
3750
3833
  };
3751
3834
 
3752
3835
  function _typeof$m(o) { "@babel/helpers - typeof"; return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$m(o); }
3753
- var _excluded$f = ["text", "enabled", "setEnabled", "disabled", "className"],
3754
- _excluded2$7 = ["text", "enabled", "setEnabled", "disabled", "className"],
3755
- _excluded3$7 = ["text", "enabled", "setEnabled", "disabled", "className"];
3836
+ var _excluded$f = ["text", "enabled", "setEnabled", "disabled", "className", "children"],
3837
+ _excluded2$7 = ["text", "enabled", "setEnabled", "disabled", "className", "children"],
3838
+ _excluded3$7 = ["text", "enabled", "setEnabled", "disabled", "className", "children"];
3756
3839
  function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3757
3840
  function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty$i(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3758
3841
  function _defineProperty$i(e, r, t) { return (r = _toPropertyKey$m(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -3771,6 +3854,7 @@ function Toggle(_ref) {
3771
3854
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
3772
3855
  _ref$className = _ref.className,
3773
3856
  className = _ref$className === void 0 ? "" : _ref$className,
3857
+ children = _ref.children,
3774
3858
  props = _objectWithoutProperties$f(_ref, _excluded$f);
3775
3859
  var _useContext = useContext(ThemeContext),
3776
3860
  currentTheme = _useContext.currentTheme;
@@ -3795,10 +3879,10 @@ function Toggle(_ref) {
3795
3879
  style: (_styles$inlineStyle3 = styles.inlineStyle) === null || _styles$inlineStyle3 === void 0 ? void 0 : _styles$inlineStyle3.activeBackgroundColor,
3796
3880
  className: "".concat(enabled ? "translate-x-5" : "translate-x-0", " pointer-events-none inline-block h-5 w-5 transform rounded-full ").concat((_styles$inlineStyle4 = styles.inlineStyle) !== null && _styles$inlineStyle4 !== void 0 && _styles$inlineStyle4.activeBackgroundColor ? "" : styles.activeBackgroundColor || "bg-white", " shadow-lg ring-0 transition duration-200 ease-in-out")
3797
3881
  })
3798
- }), text && /*#__PURE__*/jsx("span", {
3882
+ }), (text || children !== undefined) && /*#__PURE__*/jsx("span", {
3799
3883
  style: (_styles$inlineStyle5 = styles.inlineStyle) === null || _styles$inlineStyle5 === void 0 ? void 0 : _styles$inlineStyle5.textColor,
3800
3884
  className: "text-sm ".concat(styles.textColor || ""),
3801
- children: text
3885
+ children: children !== undefined ? children : text
3802
3886
  })]
3803
3887
  });
3804
3888
  }
@@ -3813,6 +3897,7 @@ function Toggle2(_ref2) {
3813
3897
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
3814
3898
  _ref2$className = _ref2.className,
3815
3899
  className = _ref2$className === void 0 ? "" : _ref2$className,
3900
+ children = _ref2.children,
3816
3901
  props = _objectWithoutProperties$f(_ref2, _excluded2$7);
3817
3902
  var _useContext2 = useContext(ThemeContext),
3818
3903
  currentTheme = _useContext2.currentTheme;
@@ -3837,10 +3922,10 @@ function Toggle2(_ref2) {
3837
3922
  style: (_styles$inlineStyle8 = styles.inlineStyle) === null || _styles$inlineStyle8 === void 0 ? void 0 : _styles$inlineStyle8.activeBackgroundColor,
3838
3923
  className: "".concat(enabled ? "translate-x-4" : "translate-x-0", " pointer-events-none inline-block h-4 w-4 transform rounded-full ").concat((_styles$inlineStyle9 = styles.inlineStyle) !== null && _styles$inlineStyle9 !== void 0 && _styles$inlineStyle9.activeBackgroundColor ? "" : styles.activeBackgroundColor || "bg-white", " shadow-lg ring-0 transition duration-200 ease-in-out")
3839
3924
  })
3840
- }), text && /*#__PURE__*/jsx("span", {
3925
+ }), (text || children !== undefined) && /*#__PURE__*/jsx("span", {
3841
3926
  style: (_styles$inlineStyle0 = styles.inlineStyle) === null || _styles$inlineStyle0 === void 0 ? void 0 : _styles$inlineStyle0.textColor,
3842
3927
  className: "text-sm ".concat(styles.textColor || ""),
3843
- children: text
3928
+ children: children !== undefined ? children : text
3844
3929
  })]
3845
3930
  });
3846
3931
  }
@@ -3855,6 +3940,7 @@ function Toggle3(_ref3) {
3855
3940
  disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
3856
3941
  _ref3$className = _ref3.className,
3857
3942
  className = _ref3$className === void 0 ? "" : _ref3$className,
3943
+ children = _ref3.children,
3858
3944
  props = _objectWithoutProperties$f(_ref3, _excluded3$7);
3859
3945
  var _useContext3 = useContext(ThemeContext),
3860
3946
  currentTheme = _useContext3.currentTheme;
@@ -3879,10 +3965,10 @@ function Toggle3(_ref3) {
3879
3965
  style: (_styles$inlineStyle11 = styles.inlineStyle) === null || _styles$inlineStyle11 === void 0 ? void 0 : _styles$inlineStyle11.activeBackgroundColor,
3880
3966
  className: "".concat(enabled ? "translate-x-3" : "translate-x-0", " pointer-events-none inline-block h-3 w-3 transform rounded-full ").concat((_styles$inlineStyle12 = styles.inlineStyle) !== null && _styles$inlineStyle12 !== void 0 && _styles$inlineStyle12.activeBackgroundColor ? "" : styles.activeBackgroundColor || "bg-white", " shadow-lg ring-0 transition duration-200 ease-in-out")
3881
3967
  })
3882
- }), text && /*#__PURE__*/jsx("span", {
3968
+ }), (text || children !== undefined) && /*#__PURE__*/jsx("span", {
3883
3969
  style: (_styles$inlineStyle13 = styles.inlineStyle) === null || _styles$inlineStyle13 === void 0 ? void 0 : _styles$inlineStyle13.textColor,
3884
3970
  className: "text-xs ".concat(styles.textColor || ""),
3885
- children: text
3971
+ children: children !== undefined ? children : text
3886
3972
  })]
3887
3973
  });
3888
3974
  }
@@ -4500,9 +4586,9 @@ var CodeRenderer = function CodeRenderer(_ref) {
4500
4586
  };
4501
4587
 
4502
4588
  function _typeof$h(o) { "@babel/helpers - typeof"; return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$h(o); }
4503
- var _excluded$b = ["text", "textSize", "onClick", "className"],
4504
- _excluded2$5 = ["text", "textSize", "onClick", "className", "active"],
4505
- _excluded3$5 = ["text", "textSize", "onClick", "className"];
4589
+ var _excluded$b = ["text", "textSize", "onClick", "className", "children"],
4590
+ _excluded2$5 = ["text", "textSize", "onClick", "className", "active", "children"],
4591
+ _excluded3$5 = ["text", "textSize", "onClick", "className", "children"];
4506
4592
  function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4507
4593
  function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty$e(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4508
4594
  function _defineProperty$e(e, r, t) { return (r = _toPropertyKey$h(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -4518,6 +4604,7 @@ var Tag = function Tag(_ref) {
4518
4604
  onClick = _ref$onClick === void 0 ? null : _ref$onClick,
4519
4605
  _ref$className = _ref.className,
4520
4606
  className = _ref$className === void 0 ? "" : _ref$className,
4607
+ children = _ref.children,
4521
4608
  props = _objectWithoutProperties$b(_ref, _excluded$b);
4522
4609
  var _useContext = useContext(ThemeContext),
4523
4610
  currentTheme = _useContext.currentTheme;
@@ -4530,7 +4617,7 @@ var Tag = function Tag(_ref) {
4530
4617
  id: uuid,
4531
4618
  onClick: onClick,
4532
4619
  className: "flex flex-row w-fit ".concat(stylesCalculated, " px-3 py-1.5 whitespace-nowrap items-center justify-center transition-colors duration-150"),
4533
- children: text
4620
+ children: children !== undefined ? children : text
4534
4621
  });
4535
4622
  };
4536
4623
  var Tag2 = function Tag2(_ref2) {
@@ -4543,6 +4630,7 @@ var Tag2 = function Tag2(_ref2) {
4543
4630
  className = _ref2$className === void 0 ? "" : _ref2$className,
4544
4631
  _ref2$active = _ref2.active,
4545
4632
  active = _ref2$active === void 0 ? false : _ref2$active,
4633
+ children = _ref2.children,
4546
4634
  props = _objectWithoutProperties$b(_ref2, _excluded2$5);
4547
4635
  var _useContext2 = useContext(ThemeContext),
4548
4636
  currentTheme = _useContext2.currentTheme;
@@ -4556,7 +4644,7 @@ var Tag2 = function Tag2(_ref2) {
4556
4644
  id: uuid,
4557
4645
  onClick: onClick,
4558
4646
  className: "flex flex-row w-fit ".concat(stylesCalculated, " px-2 py-1 whitespace-nowrap items-center justify-center transition-colors duration-150"),
4559
- children: text
4647
+ children: children !== undefined ? children : text
4560
4648
  });
4561
4649
  };
4562
4650
  var Tag3 = function Tag3(_ref3) {
@@ -4567,6 +4655,7 @@ var Tag3 = function Tag3(_ref3) {
4567
4655
  onClick = _ref3$onClick === void 0 ? null : _ref3$onClick,
4568
4656
  _ref3$className = _ref3.className,
4569
4657
  className = _ref3$className === void 0 ? "" : _ref3$className,
4658
+ children = _ref3.children,
4570
4659
  props = _objectWithoutProperties$b(_ref3, _excluded3$5);
4571
4660
  var _useContext3 = useContext(ThemeContext),
4572
4661
  currentTheme = _useContext3.currentTheme;
@@ -4579,7 +4668,7 @@ var Tag3 = function Tag3(_ref3) {
4579
4668
  id: uuid,
4580
4669
  onClick: onClick,
4581
4670
  className: "flex flex-row w-fit ".concat(stylesCalculated, " px-1.5 py-0.5 whitespace-nowrap items-center justify-center transition-colors duration-150"),
4582
- children: text
4671
+ children: children !== undefined ? children : text
4583
4672
  });
4584
4673
  };
4585
4674