Skip to content

Commit

Permalink
Href change
Browse files Browse the repository at this point in the history
  • Loading branch information
ianvexler committed Feb 13, 2024
1 parent 249f97a commit 22df739
Show file tree
Hide file tree
Showing 13 changed files with 170 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/components/breadcrumb/Breadcrumb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface BreadcrumbProps extends React.HTMLProps<HTMLHeadingElement> {
}
declare const Breadcrumb: {
({ children, ...rest }: BreadcrumbProps): React.JSX.Element;
Item: ({ text, active, href, className, ...rest }: BreadcrumbItemProps) => React.JSX.Element;
Item: ({ text, active, route, className, ...rest }: BreadcrumbItemProps) => React.JSX.Element;
};
export default Breadcrumb;
//# sourceMappingURL=Breadcrumb.d.ts.map
4 changes: 2 additions & 2 deletions dist/components/breadcrumb/components/BreadcrumbItem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
export interface BreadcrumbItemProps extends React.HTMLProps<HTMLSpanElement> {
text: string;
active: boolean;
href: string;
route: string;
}
declare const BreadcrumbItem: ({ text, active, href, className, ...rest }: BreadcrumbItemProps) => React.JSX.Element;
declare const BreadcrumbItem: ({ text, active, route, className, ...rest }: BreadcrumbItemProps) => React.JSX.Element;
export default BreadcrumbItem;
//# sourceMappingURL=BreadcrumbItem.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 50 additions & 1 deletion dist/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@
@import 'bootstrap-icons/font/bootstrap-icons.css';
body {
color: var(--texmo-text-color);
font-family: var(--texmo-font);
font-family: var(--texmo-font) !important;
font-weight: 400;
font-style: normal;
}
Expand Down Expand Up @@ -1008,6 +1008,55 @@ h1, .h1 {
border-left: 0 !important;
}

.form-control.is-valid,
.was-validated .form-control:valid {
background-image: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
background-image: none;
}

a.card-link {
color: inherit;
text-decoration: none;
}

.card.card-hover-effect {
transition: transform 0.3s ease-in-out;
text-decoration: none;
}

.card-hover-effect:hover {
transform: translateY(5px);
}

.gray-text {
color: #9fa8b3;
}

.page-header {
width: 100%;
}

.page-header-column {
flex: 1;
}

.right-page-header-column {
justify-content: flex-end;
}

a.breadcrumb-item {
text-decoration: none;
color: var(--texmo-text-color);
}

a.breadcrumb-item:hover {
text-decoration: underline;
}

:root {
--texmo-primary-color: #6A955B;
--texmo-text-color: #424244;
Expand Down
51 changes: 50 additions & 1 deletion dist/index.es.css
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@
@import 'bootstrap-icons/font/bootstrap-icons.css';
body {
color: var(--texmo-text-color);
font-family: var(--texmo-font);
font-family: var(--texmo-font) !important;
font-weight: 400;
font-style: normal;
}
Expand Down Expand Up @@ -1008,6 +1008,55 @@ h1, .h1 {
border-left: 0 !important;
}

.form-control.is-valid,
.was-validated .form-control:valid {
background-image: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
background-image: none;
}

a.card-link {
color: inherit;
text-decoration: none;
}

.card.card-hover-effect {
transition: transform 0.3s ease-in-out;
text-decoration: none;
}

.card-hover-effect:hover {
transform: translateY(5px);
}

.gray-text {
color: #9fa8b3;
}

.page-header {
width: 100%;
}

.page-header-column {
flex: 1;
}

.right-page-header-column {
justify-content: flex-end;
}

a.breadcrumb-item {
text-decoration: none;
color: var(--texmo-text-color);
}

a.breadcrumb-item:hover {
text-decoration: underline;
}

:root {
--texmo-primary-color: #6A955B;
--texmo-text-color: #424244;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.es.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24391,12 +24391,13 @@ SearchBar.Input = SearchBarInput;
SearchBar.Button = SearchBarButton;

var BreadcrumbItem = function (_a) {
var text = _a.text, active = _a.active, href = _a.href, className = _a.className, rest = __rest(_a, ["text", "active", "href", "className"]);
var text = _a.text, active = _a.active, route = _a.route, className = _a.className, rest = __rest(_a, ["text", "active", "route", "className"]);
if (active) {
return (React.createElement("span", __assign$1({ className: "gray-text ".concat(className) }, rest), text));
}
var baseUrl = window.location.origin;
return (React.createElement("span", __assign$1({ className: className }, rest),
React.createElement("a", { className: "breadcrumb-item", href: href }, text)));
React.createElement("a", { className: "breadcrumb-item", href: "".concat(baseUrl).concat(route) }, text)));
};

var Breadcrumb = function (_a) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

51 changes: 50 additions & 1 deletion dist/index.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@
@import 'bootstrap-icons/font/bootstrap-icons.css';
body {
color: var(--texmo-text-color);
font-family: var(--texmo-font);
font-family: var(--texmo-font) !important;
font-weight: 400;
font-style: normal;
}
Expand Down Expand Up @@ -1008,6 +1008,55 @@ h1, .h1 {
border-left: 0 !important;
}

.form-control.is-valid,
.was-validated .form-control:valid {
background-image: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
background-image: none;
}

a.card-link {
color: inherit;
text-decoration: none;
}

.card.card-hover-effect {
transition: transform 0.3s ease-in-out;
text-decoration: none;
}

.card-hover-effect:hover {
transform: translateY(5px);
}

.gray-text {
color: #9fa8b3;
}

.page-header {
width: 100%;
}

.page-header-column {
flex: 1;
}

.right-page-header-column {
justify-content: flex-end;
}

a.breadcrumb-item {
text-decoration: none;
color: var(--texmo-text-color);
}

a.breadcrumb-item:hover {
text-decoration: underline;
}

:root {
--texmo-primary-color: #6A955B;
--texmo-text-color: #424244;
Expand Down
8 changes: 4 additions & 4 deletions dist/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions src/components/breadcrumb/components/BreadcrumbItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import React from 'react';
export interface BreadcrumbItemProps extends React.HTMLProps<HTMLSpanElement> {
text: string;
active: boolean;
href: string;
route: string;
}

const BreadcrumbItem = ({
text,
active,
href,
route,
className,
...rest
}: BreadcrumbItemProps) => {
Expand All @@ -21,9 +21,11 @@ const BreadcrumbItem = ({
);
}

const baseUrl = window.location.origin;

return (
<span className={className} {...rest}>
<a className="breadcrumb-item" href={href}>
<a className="breadcrumb-item" href={`${baseUrl}${route}`}>
{text}
</a>
</span>
Expand Down

0 comments on commit 22df739

Please sign in to comment.