@ncino/web-components 8.0.0-preview.2 → 8.0.0-preview.3
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/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +3 -3
- package/dist/packages/web-components/src/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.scss.js +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
- package/dist/packages/web-components/src/components/breadcrumbs/gator/breadcrumbs.gator.tokens.scss.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as f}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{customElement as b}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as o}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import l from"../../../../packages/web-components/src/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.scss.js";import h from"../../../../packages/web-components/src/tokens/primitive-new.tokens.scss.js";import d from"../../../../packages/web-components/src/tokens/semantic-new.tokens.scss.js";import{createRef as g,ref as y}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/ref.js";import{TestableLitElement as n}from"../../../../utils/components/testable-lit-element/testable-lit-element.js";import{unsafeCSS as u}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var v=Object.defineProperty,O=Object.getOwnPropertyDescriptor,e=(c,s,m,a)=>{for(var t=a>1?void 0:a?O(s,m):s,p=c.length-1,i;p>=0;p--)(i=c[p])&&(t=(a?i(s,m,t):i(t))||t);return a&&t&&v(s,m,t),t};let r=class extends n{constructor(){super(...arguments),this.current=!1,this.first=!1,this.label="",this.href="",this.crumbRef=g()}updated(){this.current&&this.crumbRef.value?.setAttribute("aria-current","page")}render(){return f`
|
|
2
2
|
${this.breadcrumbSeparator}
|
|
3
|
-
<a ${
|
|
3
|
+
<a ${y(this.crumbRef)} class="${this.breadcrumbClass}" .href="${this.href}">
|
|
4
4
|
${this.label}
|
|
5
5
|
</a>
|
|
6
|
-
`}get breadcrumbClass(){return this.current?"gator-breadcrumb gator-breadcrumb-current":"gator-breadcrumb"}get breadcrumbSeparator(){return this.first?null:
|
|
6
|
+
`}get breadcrumbClass(){return this.current?"gator-breadcrumb gator-breadcrumb-current":"gator-breadcrumb"}get breadcrumbSeparator(){return this.first?null:f`<span class="gator-breadcrumb-separator">/</span>`}};r.shadowRootOptions={...n.shadowRootOptions,delegatesFocus:!0};r.styles=[u(l),u(h),u(d)];e([o({type:Boolean})],r.prototype,"current",2);e([o({type:Boolean})],r.prototype,"first",2);e([o()],r.prototype,"label",2);e([o()],r.prototype,"href",2);r=e([b("ngc-breadcrumb")],r);export{r as NgcBreadcrumb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r='.gator-breadcrumb{font-family:var(--ngc-font-family, "Open Sans"),sans-serif;display:inline-flex;padding:var(--ngc-breadcrumb-spacing, 2px) 0;color:var(--ngc-breadcrumb-link-color-default, --color-
|
|
1
|
+
const r='.gator-breadcrumb{font-family:var(--ngc-breadcrumb-font-family, var(--font-family-body, "Open Sans")),sans-serif;display:inline-flex;padding:var(--ngc-breadcrumb-spacing, 2px) 0;color:var(--ngc-breadcrumb-link-color-default, var(--color-text-secondary, #6D6D6D));text-underline-offset:var(--ngc-breadcrumb-underline-offset, .25rem)}.gator-breadcrumb:hover,.gator-breadcrumb:focus{color:var(--ngc-breadcrumb-link-color-hover, var(--color-text-brand, #103656))}.gator-breadcrumb:focus{outline:var(--ngc-breadcrumb-focus-outline, 2px solid var(--ngc-breadcrumb-focus-outline-color, var(--color-border-neutral, #1F1F1F)));outline-offset:2px}.gator-breadcrumb-separator{font-family:var(--ngc-breadcrumb-font-family, var(--font-family-body, "Open Sans")),sans-serif;display:inline-flex;margin:var(--ngc-breadcrumb-separator-margin, 0 .25rem 0 .5rem)}.gator-breadcrumb-current{color:var(--ngc-breadcrumb-link-color-current, var(--color-text-primary, #1F1F1F))}';export{r as default};
|
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@ncino/web-components",
|
|
4
|
-
"version": "8.0.0-preview.
|
|
4
|
+
"version": "8.0.0-preview.2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r=":root,:host{--ngc-breadcrumb-link-color-hover: var(--color-brand-30, #11395B);--ngc-breadcrumb-link-color-current: var(--color-text-primary-base, #1F1F1F);--ngc-breadcrumb-link-color-default: var(--color-neutral-50, #6D6D6D);--ngc-breadcrumb-focus-outline: 3px solid var(--color-brand-30, #11395B);--ngc-breadcrumb-spacing: 2px;--ngc-breadcrumb-separator-margin: 0 .25rem 0 .5rem;--ngc-breadcrumb-underline-offset: .25rem}";export{r as default};
|