@julseb-lib/react 0.1.70 → 0.1.71

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.d.cts CHANGED
@@ -2005,9 +2005,23 @@ declare const ListGroupTitle: FC$1<ILibListGroupTitle>;
2005
2005
  declare const ListGroupItem: FC$1<ILibListGroupItem>;
2006
2006
 
2007
2007
  /**
2008
- * Breadcrumbs component for displaying navigational breadcrumb trails with customizable separators and flexible content.
2008
+ * Breadcrumbs component for displaying navigational breadcrumb trails.
2009
+ *
2010
+ * Renders a customizable container (default: div) with children as breadcrumb items,
2011
+ * separated by a customizable separator (string or React node).
2012
+ * Supports accent and text color theming, and additional class names.
2009
2013
  *
2010
2014
  * @component
2015
+ * @param {ILibBreadcrumbs} props - Breadcrumbs props.
2016
+ * @param {string} [props.className] - Additional CSS classes for the container.
2017
+ * @param {React.ElementType} [props.element="div"] - Container element type.
2018
+ * @param {React.Ref<HTMLDivElement>} [props.ref] - Ref to the container element.
2019
+ * @param {React.ReactNode} [props.children] - Breadcrumb items.
2020
+ * @param {string|React.ReactNode} [props.separator="/"] - Separator between items.
2021
+ * @param {"primary"|"secondary"|"success"|"danger"|"warning"|"gray"|"white"} [props.accentColor="primary"] - Accent color.
2022
+ * @param {Any color from the library} [props.textColor="font"] - Text color.
2023
+ * @param {any} [props.rest] - Additional props for the container.
2024
+ * @returns {JSX.Element} Breadcrumbs component.
2011
2025
  *
2012
2026
  * @example
2013
2027
  * <Breadcrumbs separator=">">
@@ -2016,17 +2030,6 @@ declare const ListGroupItem: FC$1<ILibListGroupItem>;
2016
2030
  * <Text>Current Page</Text>
2017
2031
  * </Breadcrumbs>
2018
2032
  *
2019
- * @extends HTMLDivElement
2020
- *
2021
- * @prop {string} [props.className] - Additional CSS classes to apply to the breadcrumbs container.
2022
- * @prop {React.ElementType} [props.element="div"] - HTML element type to render as the container.
2023
- * @prop {React.Ref<HTMLDivElement>} [props.ref] - Ref to the breadcrumbs container element.
2024
- * @prop {React.ReactNode} [props.children] - Navigation items to display in the breadcrumb trail.
2025
- * @prop {string | React.ReactNode} [props.separator="/"] - Separator to display between breadcrumb items.
2026
- * @prop {any} [props.rest] - Additional props spread to the container element.
2027
- *
2028
- * @returns {JSX.Element} The rendered Breadcrumbs component.
2029
- *
2030
2033
  * @see https://doc-julseb-lib-react.vercel.app/components/breadcrumbs
2031
2034
  */
2032
2035
  declare const Breadcrumbs: FC$1<ILibBreadcrumbs>;
package/dist/index.d.ts CHANGED
@@ -2005,9 +2005,23 @@ declare const ListGroupTitle: FC$1<ILibListGroupTitle>;
2005
2005
  declare const ListGroupItem: FC$1<ILibListGroupItem>;
2006
2006
 
2007
2007
  /**
2008
- * Breadcrumbs component for displaying navigational breadcrumb trails with customizable separators and flexible content.
2008
+ * Breadcrumbs component for displaying navigational breadcrumb trails.
2009
+ *
2010
+ * Renders a customizable container (default: div) with children as breadcrumb items,
2011
+ * separated by a customizable separator (string or React node).
2012
+ * Supports accent and text color theming, and additional class names.
2009
2013
  *
2010
2014
  * @component
2015
+ * @param {ILibBreadcrumbs} props - Breadcrumbs props.
2016
+ * @param {string} [props.className] - Additional CSS classes for the container.
2017
+ * @param {React.ElementType} [props.element="div"] - Container element type.
2018
+ * @param {React.Ref<HTMLDivElement>} [props.ref] - Ref to the container element.
2019
+ * @param {React.ReactNode} [props.children] - Breadcrumb items.
2020
+ * @param {string|React.ReactNode} [props.separator="/"] - Separator between items.
2021
+ * @param {"primary"|"secondary"|"success"|"danger"|"warning"|"gray"|"white"} [props.accentColor="primary"] - Accent color.
2022
+ * @param {Any color from the library} [props.textColor="font"] - Text color.
2023
+ * @param {any} [props.rest] - Additional props for the container.
2024
+ * @returns {JSX.Element} Breadcrumbs component.
2011
2025
  *
2012
2026
  * @example
2013
2027
  * <Breadcrumbs separator=">">
@@ -2016,17 +2030,6 @@ declare const ListGroupItem: FC$1<ILibListGroupItem>;
2016
2030
  * <Text>Current Page</Text>
2017
2031
  * </Breadcrumbs>
2018
2032
  *
2019
- * @extends HTMLDivElement
2020
- *
2021
- * @prop {string} [props.className] - Additional CSS classes to apply to the breadcrumbs container.
2022
- * @prop {React.ElementType} [props.element="div"] - HTML element type to render as the container.
2023
- * @prop {React.Ref<HTMLDivElement>} [props.ref] - Ref to the breadcrumbs container element.
2024
- * @prop {React.ReactNode} [props.children] - Navigation items to display in the breadcrumb trail.
2025
- * @prop {string | React.ReactNode} [props.separator="/"] - Separator to display between breadcrumb items.
2026
- * @prop {any} [props.rest] - Additional props spread to the container element.
2027
- *
2028
- * @returns {JSX.Element} The rendered Breadcrumbs component.
2029
- *
2030
2033
  * @see https://doc-julseb-lib-react.vercel.app/components/breadcrumbs
2031
2034
  */
2032
2035
  declare const Breadcrumbs: FC$1<ILibBreadcrumbs>;
package/dist/index.js CHANGED
@@ -66717,6 +66717,8 @@ var Breadcrumbs = ({
66717
66717
  ref,
66718
66718
  children,
66719
66719
  separator = "/",
66720
+ accentColor = "primary",
66721
+ textColor = "font",
66720
66722
  ...rest
66721
66723
  }) => {
66722
66724
  const Element = element;
@@ -66727,6 +66729,8 @@ var Breadcrumbs = ({
66727
66729
  ref,
66728
66730
  className: clsx(
66729
66731
  "flex flex-wrap items-center gap-2",
66732
+ genLinkColor[accentColor],
66733
+ genTextAllColor[textColor],
66730
66734
  "breadcrumbs",
66731
66735
  className
66732
66736
  ),