@nanoporetech-digital/components 8.7.2 → 8.9.0
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/cjs/{fade-NeUskjyB.js → fade-DBKqk3wh.js} +1 -1
- package/dist/cjs/{fullscreen-D5cgtwoy.js → fullscreen-lcdCtrG6.js} +1 -1
- package/dist/cjs/index-DGttnXif.js +4 -0
- package/dist/cjs/{lazyload-Dm1NcTJ1.js → lazyload-BjSSEx9f.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-avatar_5.cjs.entry.js +7 -7
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-datalist_3.cjs.entry.js +4 -0
- package/dist/cjs/nano-icon-button_2.cjs.entry.js +2 -2
- package/dist/cjs/nano-input-otp.cjs.entry.js +710 -0
- package/dist/cjs/nano-intersection-observe.cjs.entry.js +1 -1
- package/dist/cjs/nano-masked-overflow.cjs.entry.js +3 -3
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +2 -2
- package/dist/cjs/nano-more-less.cjs.entry.js +2 -2
- package/dist/cjs/nano-rating.cjs.entry.js +4 -4
- package/dist/cjs/nano-resize-observe.cjs.entry.js +2 -2
- package/dist/cjs/nano-slide.cjs.entry.js +1 -1
- package/dist/cjs/{nano-slides-ycRcUf0g.js → nano-slides-CryCLfsK.js} +7 -7
- package/dist/cjs/nano-slides.cjs.entry.js +1 -1
- package/dist/cjs/nano-sortable.cjs.entry.js +1 -1
- package/dist/cjs/nano-step-accordion.cjs.entry.js +1 -1
- package/dist/cjs/nano-step-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/nano-sticker.cjs.entry.js +2 -2
- package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
- package/dist/cjs/nano-tab.cjs.entry.js +2 -2
- package/dist/cjs/nano-table.cjs.entry.js +2 -2
- package/dist/cjs/{page-dots--38yVfTZ.js → page-dots-DR1fLjRi.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/input-otp/input-otp-interface.js +1 -0
- package/dist/collection/components/input-otp/input-otp.css +184 -0
- package/dist/collection/components/input-otp/input-otp.js +1044 -0
- package/dist/collection/components/intersection-observe/intersection-observe.js +1 -1
- package/dist/collection/components/masked-overflow/masked-overflow.js +3 -3
- package/dist/collection/components/menu-drawer/menu-drawer.js +2 -2
- package/dist/collection/components/more-less/more-less.js +2 -2
- package/dist/collection/components/rating/rating.js +4 -4
- package/dist/collection/components/resize-observe/resize-observe.js +2 -2
- package/dist/collection/components/select/select.js +7 -7
- package/dist/collection/components/slides/slide.js +1 -1
- package/dist/collection/components/slides/slides.js +3 -3
- package/dist/collection/components/sortable/sortable.js +1 -1
- package/dist/collection/components/step-accordion/step-accordion.js +1 -1
- package/dist/collection/components/step-breadcrumb/step-breadcrumb.js +2 -2
- package/dist/collection/components/sticker/sticker.js +2 -2
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/tabs/tab-content.js +2 -2
- package/dist/collection/components/tabs/tab.js +2 -2
- package/dist/collection/components/tag/tag.js +24 -0
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/components/masked-overflow.js +3 -3
- package/dist/components/nano-input-otp.d.ts +11 -0
- package/dist/components/nano-input-otp.js +749 -0
- package/dist/components/nano-intersection-observe.js +1 -1
- package/dist/components/nano-menu-drawer.js +2 -2
- package/dist/components/nano-more-less.js +2 -2
- package/dist/components/nano-rating.js +4 -4
- package/dist/components/nano-slide.js +1 -1
- package/dist/components/nano-sortable.js +1 -1
- package/dist/components/nano-step-accordion.js +1 -1
- package/dist/components/nano-step-breadcrumb.js +2 -2
- package/dist/components/nano-tab-content.js +2 -2
- package/dist/components/nano-tab.js +2 -2
- package/dist/components/nano-table.js +2 -2
- package/dist/components/resize-observe.js +2 -2
- package/dist/components/select.js +7 -7
- package/dist/components/slides.js +3 -3
- package/dist/components/sticker.js +2 -2
- package/dist/components/tag.js +6 -1
- package/dist/components/tooltip.js +2 -2
- package/dist/esm/{fade-BA6b-Fk9.js → fade-D980mOvm.js} +1 -1
- package/dist/esm/{fullscreen-De_yN4cg.js → fullscreen-CjInlYb9.js} +1 -1
- package/dist/esm/index-BM3Om9WE.js +4 -0
- package/dist/esm/{lazyload-Cl8k3tPs.js → lazyload-B9B4e3ZI.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-avatar_5.entry.js +7 -7
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-datalist_3.entry.js +4 -0
- package/dist/esm/nano-icon-button_2.entry.js +2 -2
- package/dist/esm/nano-input-otp.entry.js +708 -0
- package/dist/esm/nano-intersection-observe.entry.js +1 -1
- package/dist/esm/nano-masked-overflow.entry.js +3 -3
- package/dist/esm/nano-menu-drawer.entry.js +2 -2
- package/dist/esm/nano-more-less.entry.js +2 -2
- package/dist/esm/nano-rating.entry.js +4 -4
- package/dist/esm/nano-resize-observe.entry.js +2 -2
- package/dist/esm/nano-slide.entry.js +1 -1
- package/dist/esm/{nano-slides-GrbOydfa.js → nano-slides-xbY6lXX9.js} +7 -7
- package/dist/esm/nano-slides.entry.js +1 -1
- package/dist/esm/nano-sortable.entry.js +1 -1
- package/dist/esm/nano-step-accordion.entry.js +1 -1
- package/dist/esm/nano-step-breadcrumb.entry.js +2 -2
- package/dist/esm/nano-sticker.entry.js +2 -2
- package/dist/esm/nano-tab-content.entry.js +2 -2
- package/dist/esm/nano-tab.entry.js +2 -2
- package/dist/esm/nano-table.entry.js +2 -2
- package/dist/esm/{page-dots-CSf81OuJ.js → page-dots-CCfERISy.js} +1 -1
- package/dist/nano-components/{fade-BA6b-Fk9.js → fade-D980mOvm.js} +1 -1
- package/dist/nano-components/{fullscreen-De_yN4cg.js → fullscreen-CjInlYb9.js} +1 -1
- package/dist/nano-components/lazyload-B9B4e3ZI.js +4 -0
- package/dist/nano-components/nano-avatar_5.entry.js +1 -1
- package/dist/nano-components/nano-components.css +1 -1
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-datalist_3.entry.js +1 -1
- package/dist/nano-components/nano-icon-button_2.entry.js +1 -1
- package/dist/nano-components/nano-input-otp.entry.js +4 -0
- package/dist/nano-components/nano-intersection-observe.entry.js +1 -1
- package/dist/nano-components/nano-masked-overflow.entry.js +1 -1
- package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
- package/dist/nano-components/nano-more-less.entry.js +1 -1
- package/dist/nano-components/nano-rating.entry.js +1 -1
- package/dist/nano-components/nano-resize-observe.entry.js +1 -1
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/{nano-slides-GrbOydfa.js → nano-slides-xbY6lXX9.js} +3 -3
- package/dist/nano-components/nano-slides.entry.js +1 -1
- package/dist/nano-components/nano-sortable.entry.js +1 -1
- package/dist/nano-components/nano-step-accordion.entry.js +1 -1
- package/dist/nano-components/nano-step-breadcrumb.entry.js +1 -1
- package/dist/nano-components/nano-sticker.entry.js +1 -1
- package/dist/nano-components/nano-tab-content.entry.js +1 -1
- package/dist/nano-components/nano-tab.entry.js +1 -1
- package/dist/nano-components/nano-table.entry.js +1 -1
- package/dist/nano-components/{page-dots-CSf81OuJ.js → page-dots-CCfERISy.js} +1 -1
- package/dist/style/components.css +1 -1
- package/dist/style/components.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/components/input-otp/input-otp-interface.d.ts +24 -0
- package/dist/types/components/input-otp/input-otp.d.ts +281 -0
- package/dist/types/components/tag/tag.d.ts +4 -0
- package/dist/types/components.d.ts +189 -0
- package/docs-json.json +824 -183
- package/docs-vscode.json +83 -0
- package/hydrate/index.js +786 -45
- package/hydrate/index.mjs +786 -45
- package/package.json +2 -2
- package/dist/nano-components/lazyload-Cl8k3tPs.js +0 -4
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
@@ -145,7 +145,7 @@ const IntersectionObserve = class {
|
|
145
145
|
this.removeIO();
|
146
146
|
}
|
147
147
|
render() {
|
148
|
-
return (renderer.h(index.Host, { key: '
|
148
|
+
return (renderer.h(index.Host, { key: 'c837369d760b533f7bbed5ade5994206923e6ffa', class: "nano-intersection-observe" }, renderer.h("slot", { key: 'c12806aaf721afbd10a14a3f6c23bd08217128b6', ref: (slot) => (this.defaultSlot = slot), onSlotchange: this.handleSlotChange })));
|
149
149
|
}
|
150
150
|
static get watchers() { return {
|
151
151
|
"root": ["handleRootChange"],
|
@@ -317,7 +317,7 @@ const MaskedOverflow = class {
|
|
317
317
|
}
|
318
318
|
}
|
319
319
|
render() {
|
320
|
-
return (renderer.h(index.Host, { key: '
|
320
|
+
return (renderer.h(index.Host, { key: 'cace0ef58ad901ea08d057420906d95ffa2600dd', dir: this.isRtl ? 'rtl' : null, class: "nano-masked-overflow", "has-scroll-controls": this.hasScrollControls }, renderer.h("div", { key: '6133235c4eb2be34c93cb681cd612ae7d227e8eb', part: "base", class: {
|
321
321
|
onav: true,
|
322
322
|
[`onav--${this.orientation}`]: true,
|
323
323
|
'onav--has-scroll-controls': this.hasScrollControls,
|
@@ -326,12 +326,12 @@ const MaskedOverflow = class {
|
|
326
326
|
'onav--no-transitions': this.instantReCalc,
|
327
327
|
'onnav--has-indicator': this.showIndicator,
|
328
328
|
'onnav--hide-scrollbars': this.hideScrollbars && this.hideScrollbars !== 'false',
|
329
|
-
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, renderer.h("div", { key: '
|
329
|
+
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, renderer.h("div", { key: '56f5264594f6963dddbdbad7ecd6c25ae4c0732a', class: "onav__nav" }, this.scrollControls && (renderer.h("nano-icon-button", { key: 'be07616305b1753d843f346420149055b59f8023', part: "scroll-button scroll-button-prev", class: {
|
330
330
|
'onav__scroll-button': true,
|
331
331
|
'onav__scroll-button--start': true,
|
332
332
|
}, ref: (btn) => (this.startBtn = btn), onClick: () => this.handleBtnClick(false), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
333
333
|
? 'light/chevron-left'
|
334
|
-
: 'light/chevron-up' })), renderer.h("div", { key: '
|
334
|
+
: 'light/chevron-up' })), renderer.h("div", { key: '33c5125be511e2ed550ea4a4130ada309d6d4884', part: "scroller", ref: (el) => (this.nav = el), class: "onav__scroller", onScroll: this.handleScroll, tabindex: this.hasScrollControls ? 0 : undefined, role: "region", "aria-label": this.label || undefined }, renderer.h("div", { key: 'c7e3fa9f1272bcd57694aa7dd433f2da1ca4d4cb', part: "items", ref: (el) => (this.itemContainer = el), class: "onav__items" }, this.showIndicator && (renderer.h("div", { key: '5029cad9fb763501e8e670f3347e55e7eafbcb87', part: "indicator", ref: (el) => (this.activeIndicator = el), class: "onav__active-indicator" })), renderer.h("slot", { key: '1438ac0d40a0ec2952cf9b66bc2f854d5b96c690', onSlotchange: this.slotChangeHandler }))), this.scrollControls && (renderer.h("nano-icon-button", { key: '05dea3796c9d9e758c229f76fcb4dde2bd90fa65', part: "scroll-button scroll-button-next", class: {
|
335
335
|
'onav__scroll-button': true,
|
336
336
|
'onav__scroll-button--end': true,
|
337
337
|
}, ref: (btn) => (this.endBtn = btn), onClick: () => this.handleBtnClick(true), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
@@ -144,14 +144,14 @@ const MenuDrawer = class {
|
|
144
144
|
}
|
145
145
|
}
|
146
146
|
render() {
|
147
|
-
return (renderer.h(index.Host, { key: '
|
147
|
+
return (renderer.h(index.Host, { key: '48267091ca0646f3a1717e2dc3ab21ab3d4b9b28', class: {
|
148
148
|
open: this.open,
|
149
149
|
'secondary-open': this.secondaryOpen,
|
150
150
|
hide: this.hide,
|
151
151
|
loading: this.isLoading,
|
152
152
|
'has-global-nav': !!this.globalNav,
|
153
153
|
'nano-menu-drawer': true,
|
154
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, renderer.h("div", { key: '
|
154
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, renderer.h("div", { key: 'f73a9c15c9760493b38ac5b199f2d374eb99ffd0', ref: (div) => (this.containerDiv = div), class: "container" }, renderer.h("div", { key: 'a2a254a08025a5d4f33ecd10fb25ee2bedddc657', class: `content-wrap ${this.secondaryOpen ? 'secondary-open' : ''}` }, renderer.h("nav", { key: '4c93989684795be81b332aa12638424493eda51f', ref: (div) => (this.contentDiv = div), class: "content" }, renderer.h("div", { key: 'fb7fdba72b7e211dd99020b9a78dde35c11f0c7e', class: "head" }, renderer.h("button", { key: '1829973a4d5bb9c4053bd5a5b8d7d24befc02599', onClick: this.toggle, class: "collapse-btn" }, renderer.h("nano-icon", { key: '614bca81c5086ed499a62d38540f6c107f5c779e', name: "light/arrow-right-to-line" }), renderer.h("span", { key: 'da6cbb5a0c0f0a908afac83b01322bc5bfede0b5', class: "visually-hidden" }, "collapse / expand menu"))), renderer.h("slot", { key: 'd3ddb04ad19784a71575ff50c2cbd4410b70dcb6' }), this.slotCtrl.has('foot') && (renderer.h("div", { key: '5282ecb332f91aaedf7996f1a86165656187f12a', class: "foot" }, renderer.h("slot", { key: 'c0c227384d0ec749a03c1fdfe5764923f08c2405', name: "foot" }))))))));
|
155
155
|
}
|
156
156
|
static get watchers() { return {
|
157
157
|
"open": ["openChange"]
|
@@ -54,8 +54,8 @@ const Rating = class {
|
|
54
54
|
this.handleShowHideElements();
|
55
55
|
}
|
56
56
|
render() {
|
57
|
-
return (renderer.h(index.Host, { key: '
|
58
|
-
renderer.h("div", { key: '
|
57
|
+
return (renderer.h(index.Host, { key: '85aea064a37e2a66a31e8bab208eba423aa32a4e', class: "nano-more-less" }, renderer.h("slot", { key: 'c7288c755fa9cb24abb335158fe9ae1e116a012e', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
|
58
|
+
renderer.h("div", { key: 'ff18caab62f14cdff9cc5953cda9d4980e6e4b6a', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, renderer.h("slot", { key: '8a7a856af8fca1221c308c2a0982e09b9c9da74f', name: "less" }, renderer.h("button", { key: '33578129514a86169e642f32fb9a66d257412719', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
|
59
59
|
!this.noHideBtn ? (renderer.h("div", { style: { display: this.show ? 'contents' : 'none' }, class: "button-wrapper", part: "button-wrapper button-wrapper--more", onClick: (e) => this.handleClick(e) }, renderer.h("slot", { name: "more" }, renderer.h("button", { part: "button button--more" }, "Show less (-", this.children.length - this.maxToShow, ")")))) : (''),
|
60
60
|
]));
|
61
61
|
}
|
@@ -195,20 +195,20 @@ const Rating = class {
|
|
195
195
|
else {
|
196
196
|
displayValue = this.isHovering ? this.hoverValue : this.value;
|
197
197
|
}
|
198
|
-
return (renderer.h(index.Host, { key: '
|
198
|
+
return (renderer.h(index.Host, { key: 'b28d1a7ff7743338ff5ae18c386e49ee20f8df8e', class: "nano-rating" }, renderer.h("label", { key: '6fda8cf5da0b9ed38776ec3a9b93ec4fc02598b0', class: `rating-label${this.hideLabel ? ' visually-hidden' : ''}`, part: "label", htmlFor: this.name }, renderer.h("slot", { key: 'e92e2482a6aefd90bd27b5831ec75f0fb12fcd8b', name: "label" }, this.label)), renderer.h("input", { key: 'ef40cee201942dc8f0851f2ee4d785d3b1d27936', class: "range-input visually-hidden", name: this.name, id: this.name, disabled: this.disabled || this.readonly, required: this.required, value: this.value, onFocus: () => {
|
199
199
|
this.setFocus();
|
200
|
-
} }), renderer.h("div", { key: '
|
200
|
+
} }), renderer.h("div", { key: '46c610322bc3b802d822cd22bfdcf3ad32f7e4d2', class: "rating-wrap" }, renderer.h("div", { key: 'fd509ff1f80a8172c00f2b320e6f5dbfd1252676', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
|
201
201
|
rating: true,
|
202
202
|
'rating--readonly': this.readonly,
|
203
203
|
'rating--disabled': this.disabled,
|
204
|
-
}, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, renderer.h("span", { key: '
|
204
|
+
}, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, renderer.h("span", { key: 'd03101004803060722fd234f3500a5f7ac6e0603', class: "rating__symbols rating__symbols--inactive" }, counter.map((index) => (renderer.h("span", { class: {
|
205
205
|
rating__symbol: true,
|
206
206
|
'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
|
207
207
|
},
|
208
208
|
// Users can click the current value to clear the rating. When this happens, we set this.isHovering to
|
209
209
|
// false to prevent the hover state from confusing them as they move the mouse out of the control. This
|
210
210
|
// extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol.
|
211
|
-
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), renderer.h("span", { key: '
|
211
|
+
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), renderer.h("span", { key: '2e5b35988ef0b699c515fd86a5ab14b3a98f9215', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
|
212
212
|
clip: this.clip(displayValue),
|
213
213
|
} }, counter.map((index) => (renderer.h("span", { class: {
|
214
214
|
rating__symbol: true,
|
@@ -228,13 +228,13 @@ const ResizeObserve = class {
|
|
228
228
|
}
|
229
229
|
}
|
230
230
|
render() {
|
231
|
-
return (renderer.h(index.Host, { key: '
|
231
|
+
return (renderer.h(index.Host, { key: '5db8e84066e7fd3d903f19e2256844331580947a', class: {
|
232
232
|
'nano-resize-observe': true,
|
233
233
|
'content-fit-x': this.contentFitX,
|
234
234
|
'content-fit-y': this.contentFitY,
|
235
235
|
'content-nofit-x': this.contentFitX === false,
|
236
236
|
'content-nofit-y': this.contentFitY === false,
|
237
|
-
} }, renderer.h("slot", { key: '
|
237
|
+
} }, renderer.h("slot", { key: 'ee5842c110b25f82eacbb4ba618d33dad345e732' }), !!this.notifyContentFit &&
|
238
238
|
(this.contentFitX !== null || this.contentFitY !== null) && [
|
239
239
|
this.contentFitX ? (renderer.h("slot", { name: "content-fit-x" })) : (renderer.h("slot", { name: "content-nofit-x" })),
|
240
240
|
this.contentFitY ? (renderer.h("slot", { name: "content-fit-y" })) : (renderer.h("slot", { name: "content-nofit-y" })),
|
@@ -39,7 +39,7 @@ const Slide = class {
|
|
39
39
|
});
|
40
40
|
}
|
41
41
|
render() {
|
42
|
-
return (renderer.h(index.Host, { key: '
|
42
|
+
return (renderer.h(index.Host, { key: '599510bff6daf72dca9b1de41767aea575eae98a', class: "nano-slide" }, renderer.h("slot", { key: '911f54eb0ad7ee91d7ea358f2e581d55793416ee' })));
|
43
43
|
}
|
44
44
|
static get watchers() { return {
|
45
45
|
"ready": ["readyChange"]
|
@@ -2813,19 +2813,19 @@ const Slides = class {
|
|
2813
2813
|
}
|
2814
2814
|
async loadFlickityModules(opts) {
|
2815
2815
|
if (!this.hasFullScreenModule && opts.fullscreen) {
|
2816
|
-
await Promise.resolve().then(function () { return require('./fullscreen-
|
2816
|
+
await Promise.resolve().then(function () { return require('./fullscreen-lcdCtrG6.js'); });
|
2817
2817
|
this.hasFullScreenModule = true;
|
2818
2818
|
}
|
2819
2819
|
if (!this.hasLazyLoadModule && opts.lazyLoad) {
|
2820
|
-
await Promise.resolve().then(function () { return require('./lazyload-
|
2820
|
+
await Promise.resolve().then(function () { return require('./lazyload-BjSSEx9f.js'); });
|
2821
2821
|
this.hasLazyLoadModule = true;
|
2822
2822
|
}
|
2823
2823
|
if (!this.hasDotsModule && opts.pageDots) {
|
2824
|
-
await Promise.resolve().then(function () { return require('./page-dots
|
2824
|
+
await Promise.resolve().then(function () { return require('./page-dots-DR1fLjRi.js'); });
|
2825
2825
|
this.hasDotsModule = true;
|
2826
2826
|
}
|
2827
2827
|
if (!this.hasFadeModule && opts.fade) {
|
2828
|
-
await Promise.resolve().then(function () { return require('./fade-
|
2828
|
+
await Promise.resolve().then(function () { return require('./fade-DBKqk3wh.js'); });
|
2829
2829
|
this.hasFadeModule = true;
|
2830
2830
|
}
|
2831
2831
|
}
|
@@ -2960,15 +2960,15 @@ const Slides = class {
|
|
2960
2960
|
this.destroyflickity();
|
2961
2961
|
}
|
2962
2962
|
render() {
|
2963
|
-
return (renderer.h(index.Host, { key: '
|
2963
|
+
return (renderer.h(index.Host, { key: 'e259a3a5de2c5dc025ab6dc61c3a41e1f812f077', class: "nano-slides" }, renderer.h("div", { key: '74abbe2dd44755ae5e5c5c766e6833c74c152aa8', class: {
|
2964
2964
|
slideshow: true,
|
2965
2965
|
ready: this.ready,
|
2966
2966
|
'not-ready': !this.ready,
|
2967
|
-
}, part: "base" }, renderer.h("div", { key: '
|
2967
|
+
}, part: "base" }, renderer.h("div", { key: '1a0a00d3ad6651a06fe46f1beff537f9cd483fc7', ref: (div) => (this.flickityEl = div), class: {
|
2968
2968
|
'flickity-container': true,
|
2969
2969
|
'slides-ready': this.slidesReady,
|
2970
2970
|
'slides-not-ready': !this.slidesReady,
|
2971
|
-
}, part: "slide-container" }, renderer.h("slot", { key: '
|
2971
|
+
}, part: "slide-container" }, renderer.h("slot", { key: '7a0edeee40901099cc455337acad6e798041f4f1' })), renderer.h("div", { key: 'bef46a7658a4ff89d02a2feb6dbcdd64d8e965f2', class: "ui-extras" }, renderer.h("slot", { key: '2f0603645945a8e77de9252036363e770e8e424d', name: "ui" })))));
|
2972
2972
|
}
|
2973
2973
|
static get watchers() { return {
|
2974
2974
|
"options": ["optionsChanged"],
|
@@ -728,7 +728,7 @@ const Sortable = class {
|
|
728
728
|
}
|
729
729
|
}
|
730
730
|
render() {
|
731
|
-
return (renderer.h(index.Host, { key: '
|
731
|
+
return (renderer.h(index.Host, { key: 'db8dbc8b62755164c30650a9485205f8ea2c6107', class: "nano-sortable" }, renderer.h("div", { key: '0c4646d0cf095e9970787ae4a5101765f0f5fe4f', class: "sortable__live-region", "aria-live": "polite", "aria-relevant": "additions", "aria-atomic": "true", role: "log", part: "announcements" }, this.ariaTextList.map((str) => (renderer.h("div", null, str)))), renderer.h("slot", { key: '41e538783cb246a7ada58353374228a833b4fc4a' })));
|
732
732
|
}
|
733
733
|
static get watchers() { return {
|
734
734
|
"itemSelector": ["handleItemSelectorChange"],
|
@@ -83,7 +83,7 @@ const NanoStepAccordion = class {
|
|
83
83
|
}
|
84
84
|
}
|
85
85
|
render() {
|
86
|
-
return (renderer.h("nano-accordion", { key: '
|
86
|
+
return (renderer.h("nano-accordion", { key: '1edc585b390f5dd6c1fe6edaf103e096b8d02d06', alwaysOpen: true, onNanoToggle: (event) => this.handleToggle(event) }, this.steps.map((step, index$1) => (renderer.h("nano-details", { open: index$1 === this.activeStep, disabled: !step.enabled, class: {
|
87
87
|
step: true,
|
88
88
|
'step--active': index$1 === this.activeStep,
|
89
89
|
'step--complete': step.complete,
|
@@ -106,10 +106,10 @@ const NanoStepBreadcrumb = class {
|
|
106
106
|
};
|
107
107
|
render() {
|
108
108
|
const Wrapper = this.steps.filter((step) => step.href).length > 0 ? 'nav' : 'div';
|
109
|
-
return (renderer.h(index.Host, { key: '
|
109
|
+
return (renderer.h(index.Host, { key: 'e54c227339a1e973cad1889abb1828cef81061a1' }, renderer.h(Wrapper, { key: '9a9ef044e63d1cebb713c0e9184ed58ed7865a32', class: "step-wrapper" }, renderer.h("ul", { key: 'cf3ef2fa474ae023be0059434fc03f1bfeade40c', class: `step-list desktop ${this.cacheKey}` }, this.steps.map((step, index) => (renderer.h("li", { class: "step-item-wrapper", key: index }, renderer.h(this.ControlTag, { step: step, index: index }))))), renderer.h("div", { key: '18a9e9e00597e8ef15df7134a29dabb5f51fad93', class: `step-list mobile ${this.cacheKey}` }, renderer.h("nano-dropdown", { key: '0e174964823bc2c6e1cc0bcd4e1d320bc3e74e11', dialogTitle: "Steps", class: "step-dropdown" }, renderer.h("button", { key: '75863494b5e948c53b91f15e083270ac142abe61', slot: "trigger", class: "step-trigger" }, renderer.h("div", { key: '093819821dc278086f12d5f8cb008649b43b3230', class: "step-progress-circle", role: "progressbar", "aria-valuenow": "2", "aria-valuemin": "0", "aria-valuemax": "5", style: {
|
110
110
|
'--value': '' + (this.activeStep + 1),
|
111
111
|
'--max': '' + this.steps.length,
|
112
|
-
} }, renderer.h("span", { key: '
|
112
|
+
} }, renderer.h("span", { key: 'da12da205c5e4942dc6b158ab4366a87b3d600c0', class: "step-progress-text" }, renderer.h("strong", { key: '15298a28fd78508485b54ed24df255087560e627' }, this.activeStep + 1), " of", ' ', this.steps.length)), renderer.h("div", { key: 'a67108bd294391381e5e9fa17e6132844eb510c4', class: "step-trigger-text" }, renderer.h("div", { key: '46906878f501008c8ceab76276d4f5b47469d9e3', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), renderer.h("div", { key: '898e4abb1800652352efe446e45c48d3673a656c', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), renderer.h("nano-icon", { key: 'f972d82aaed693d49536862f45c268646dd8742b', class: "step-trigger-icon", name: "light/chevron-down" })), renderer.h("nano-menu", { key: '2b6555a0ef2743486e940d75cb3486110f88cad1' }, this.steps.map((step, index) => (renderer.h("nano-nav-item", { class: {
|
113
113
|
'step-item-mobile': true,
|
114
114
|
'step-item-mobile step-item--active': index === this.activeStep,
|
115
115
|
'step-item-mobile step-item--complete': step.complete,
|
@@ -607,12 +607,12 @@ const Sticker = class {
|
|
607
607
|
this.hasBootstrapped = false;
|
608
608
|
}
|
609
609
|
render() {
|
610
|
-
return (renderer.h(index.Host, { key: '
|
610
|
+
return (renderer.h(index.Host, { key: '6626d945b580e7e23d940db522958250e89261ad', sticky: !this.isRootSticker && !this.stickToEle && this.isSticky, hide: this.hide && this.isStuck, siblings: this.stuckCounter, index: this.stickerIndex, stuck: this.isStuck && this.isSticky, "placed-bottom": this.positions.includes('bottom'), "placed-top": this.positions.includes('top'), "placed-end": this.positions.includes('end'), "placed-start": this.positions.includes('start'), class: "nano-sticker" }, renderer.h("div", { key: '1e4b7f859218a5ed2256f7f860dcffa4b1b8f5be', class: {
|
611
611
|
sticker: true,
|
612
612
|
sticky: this.isRootSticker && this.isSticky,
|
613
613
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
614
614
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
615
|
-
}, ref: (div) => (this.sticker = div) }, renderer.h("div", { key: '
|
615
|
+
}, ref: (div) => (this.sticker = div) }, renderer.h("div", { key: '4f7cd61f38b78433296a9708ddbd702d97cf2435', class: "sticker-content", ref: (div) => (this.content = div) }, renderer.h("slot", { key: 'a88a8500ee1ea99324f9b1b7390675486035496c' })))));
|
616
616
|
}
|
617
617
|
static get watchers() { return {
|
618
618
|
"trigger": ["updateTriggerOffset"],
|
@@ -24,10 +24,10 @@ const NanoTabContent = class {
|
|
24
24
|
requestAnimationFrame(() => (this.ready = true));
|
25
25
|
}
|
26
26
|
render() {
|
27
|
-
return (renderer.h(index.Host, { key: '
|
27
|
+
return (renderer.h(index.Host, { key: '3118031c009c947f2a7882a8dd65556b686d1c9d', id: this.host.id || this.tabContentId, style: { display: this.active ? 'block' : 'none' }, role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', class: {
|
28
28
|
ready: this.ready,
|
29
29
|
'nano-tab-content': true,
|
30
|
-
} }, renderer.h("div", { key: '
|
30
|
+
} }, renderer.h("div", { key: 'cab097ece6d3473e5fc425dbde951fcaf399c5ba', part: "base", class: "nano-tab-content" }, renderer.h("slot", { key: 'b4ce04af8ea780022c5a9e63a16f1d087432a931' }))));
|
31
31
|
}
|
32
32
|
};
|
33
33
|
NanoTabContent.style = tabContentCss;
|
@@ -46,12 +46,12 @@ const NanoTab = class {
|
|
46
46
|
}
|
47
47
|
};
|
48
48
|
render() {
|
49
|
-
return (renderer.h(index.Host, { key: '
|
49
|
+
return (renderer.h(index.Host, { key: 'ad80886d87f28ad3a2ae019f361662f21c6617b3', id: this.host.id || this.tabId, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', class: "nano-tab" }, renderer.h("div", { key: '445b8acdf4a87b4541f8bc1b9354c91bad6d77a4', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
|
50
50
|
tab: true,
|
51
51
|
'tab--active': this.active,
|
52
52
|
'tab--disabled': this.disabled,
|
53
53
|
'tab--closable': this.closable,
|
54
|
-
} }, renderer.h("slot", { key: '
|
54
|
+
} }, renderer.h("slot", { key: 'a72a156f0792fb7943c46d7edc6da51d222f4285', name: "start" }), renderer.h("div", { key: 'e7c654c4efe7bafaa41fdbafaae96976f4089f67', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active ? '-1' : '0', class: "tab__label" }, renderer.h("slot", { key: '65f9a3b5342dfca0a8e6ec9be289f3ad4bb5da4e' })), renderer.h("slot", { key: 'e044937dc98a2650b58f7a792e0e190de80e2d00', name: "end" }), this.closable && !this.disabled && (renderer.h("nano-icon-button", { key: 'c7809dea53cb6ca1660f58f06f3a861f18950cba', label: "Close this tab", iconName: "light/xmark", class: "tab__close-button", onClick: this.handleCloseClick, onKeyDown: this.handleCloseKeydown, part: "close-button" })))));
|
55
55
|
}
|
56
56
|
};
|
57
57
|
NanoTab.style = tabCss;
|
@@ -228,10 +228,10 @@ const NanoTable = class {
|
|
228
228
|
this.cleanUpObservers();
|
229
229
|
}
|
230
230
|
render() {
|
231
|
-
return (renderer.h(index.Host, { key: '
|
231
|
+
return (renderer.h(index.Host, { key: '75c4089a6d670a16eea3fca8d079ac9a827c4cfa', class: {
|
232
232
|
'nano-table': true,
|
233
233
|
'nano-table--props-ready': this.propsReady,
|
234
|
-
} }, this.scrollable && (renderer.h("nano-masked-overflow", { key: '
|
234
|
+
} }, this.scrollable && (renderer.h("nano-masked-overflow", { key: '90a1e07d2daa97047c3be1381717a8ae3b53b5e1', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, renderer.h("div", { key: 'badc595c9931fb6198ab38b4e09cdf4201fcc064', class: "nano-table__overflow" }))), renderer.h("slot", { key: 'd3fd5902fccc42b3412e9cb1950b054b5a69a525' })));
|
235
235
|
}
|
236
236
|
static get watchers() { return {
|
237
237
|
"compact": ["handleCompactChange"],
|
@@ -44,6 +44,7 @@
|
|
44
44
|
"components/img/img.js",
|
45
45
|
"components/in-page-nav/in-page-nav.js",
|
46
46
|
"components/increment/increment.js",
|
47
|
+
"components/input-otp/input-otp.js",
|
47
48
|
"components/intersection-observe/intersection-observe.js",
|
48
49
|
"components/masked-overflow/masked-overflow.js",
|
49
50
|
"components/menu-drawer/menu-drawer.js",
|
@@ -89,7 +89,7 @@ export class NanoBreadcrumb {
|
|
89
89
|
"references": {
|
90
90
|
"Breadcrumb": {
|
91
91
|
"location": "local",
|
92
|
-
"path": "/builds/
|
92
|
+
"path": "/builds/HitvqeWT/0/Digital/nano-components/packages/components/src/components/breadcrumb/breadcrumb.tsx",
|
93
93
|
"id": "src/components/breadcrumb/breadcrumb.tsx::Breadcrumb"
|
94
94
|
}
|
95
95
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,184 @@
|
|
1
|
+
:host,
|
2
|
+
*,
|
3
|
+
*::before,
|
4
|
+
*::after {
|
5
|
+
box-sizing: border-box;
|
6
|
+
}
|
7
|
+
[hidden] {
|
8
|
+
display: none !important;
|
9
|
+
}
|
10
|
+
@media (prefers-reduced-motion: reduce) {
|
11
|
+
:host,
|
12
|
+
*,
|
13
|
+
*::before,
|
14
|
+
*::after {
|
15
|
+
animation-duration: 0.01ms !important;
|
16
|
+
animation-iteration-count: 1 !important;
|
17
|
+
transition-duration: 0.01ms !important;
|
18
|
+
scroll-behavior: auto !important;
|
19
|
+
}
|
20
|
+
}:host,
|
21
|
+
*,
|
22
|
+
*::before,
|
23
|
+
*::after {
|
24
|
+
box-sizing: border-box;
|
25
|
+
}
|
26
|
+
[hidden] {
|
27
|
+
display: none !important;
|
28
|
+
}
|
29
|
+
@media (prefers-reduced-motion: reduce) {
|
30
|
+
:host,
|
31
|
+
*,
|
32
|
+
*::before,
|
33
|
+
*::after {
|
34
|
+
animation-duration: 0.01ms !important;
|
35
|
+
animation-iteration-count: 1 !important;
|
36
|
+
transition-duration: 0.01ms !important;
|
37
|
+
scroll-behavior: auto !important;
|
38
|
+
}
|
39
|
+
}:host {
|
40
|
+
/**
|
41
|
+
* @prop --background: Background color of the input boxes
|
42
|
+
*
|
43
|
+
* @prop --border-radius: Border radius of the input boxes
|
44
|
+
*
|
45
|
+
* @prop --border-width: Border width of the input boxes
|
46
|
+
* @prop --border-color: Border color of the input boxes
|
47
|
+
*
|
48
|
+
* @prop --color: Text color of the input
|
49
|
+
*
|
50
|
+
* @prop --margin-top: Top margin of the input group
|
51
|
+
* @prop --margin-end: Right margin if direction is left-to-right, and left margin if direction is right-to-left of the input group
|
52
|
+
* @prop --margin-bottom: Bottom margin of the input group
|
53
|
+
* @prop --margin-start: Left margin if direction is left-to-right, and right margin if direction is right-to-left of the input group
|
54
|
+
*
|
55
|
+
* @prop --padding-top: Top padding of the input group
|
56
|
+
* @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the input group
|
57
|
+
* @prop --padding-bottom: Bottom padding of the input group
|
58
|
+
* @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the input group
|
59
|
+
*
|
60
|
+
* @prop --min-width: Minimum width of input boxes
|
61
|
+
* @prop --height: Height of input boxes
|
62
|
+
* @prop --width: Width of input boxes
|
63
|
+
* @prop --gap: Gap between input boxes
|
64
|
+
*
|
65
|
+
* @prop --separator-color: Color of the separator between boxes
|
66
|
+
* @prop --separator-width: Width of the separator between boxes
|
67
|
+
* @prop --separator-height: Height of the separator between boxes
|
68
|
+
* @prop --separator-border-radius: Border radius of the separator between boxes
|
69
|
+
*
|
70
|
+
* @prop --highlight-color-valid: The color of the highlight on the input when valid
|
71
|
+
* @prop --highlight-color-invalid: The color of the highlight on the input when invalid
|
72
|
+
*/
|
73
|
+
--margin-top: 0;
|
74
|
+
--margin-end: 0;
|
75
|
+
--margin-bottom: 0;
|
76
|
+
--margin-start: 0;
|
77
|
+
--padding-top: var(--nano-spacing-md);
|
78
|
+
--padding-end: 0;
|
79
|
+
--padding-bottom: var(--nano-spacing-xl);
|
80
|
+
--padding-start: 0;
|
81
|
+
--color: initial;
|
82
|
+
--min-width: 40px;
|
83
|
+
--width: 40px;
|
84
|
+
--height: 50px;
|
85
|
+
--gap: 8px;
|
86
|
+
--separator-width: 7px;
|
87
|
+
--separator-height: 1px;
|
88
|
+
--separator-border-radius: 0;
|
89
|
+
--separator-color: var(--nano-color-primary-1000);
|
90
|
+
--highlight-color-valid: var(--nano-color-success-1100);
|
91
|
+
--highlight-color-invalid: var(--nano-color-warning-1100);
|
92
|
+
--border-radius: 8px;
|
93
|
+
--border-color: var(--nano-color-neutral-700);
|
94
|
+
--border-width: 1px;
|
95
|
+
display: block;
|
96
|
+
position: relative;
|
97
|
+
}
|
98
|
+
|
99
|
+
.input-otp-group {
|
100
|
+
margin: var(--margin-top) var(--margin-end) var(--margin-bottom) var(--margin-start);
|
101
|
+
padding: var(--padding-top) var(--padding-end) var(--padding-bottom) var(--padding-start);
|
102
|
+
display: flex;
|
103
|
+
align-items: center;
|
104
|
+
justify-content: center;
|
105
|
+
gap: var(--gap);
|
106
|
+
}
|
107
|
+
|
108
|
+
.native-wrapper {
|
109
|
+
display: flex;
|
110
|
+
align-items: center;
|
111
|
+
justify-content: center;
|
112
|
+
min-inline-size: var(--min-width);
|
113
|
+
}
|
114
|
+
|
115
|
+
.native-input {
|
116
|
+
border-radius: var(--border-radius);
|
117
|
+
inline-size: var(--width);
|
118
|
+
min-inline-size: inherit;
|
119
|
+
block-size: var(--height);
|
120
|
+
border-width: var(--border-width);
|
121
|
+
border-style: solid;
|
122
|
+
border-color: var(--border-color);
|
123
|
+
background: var(--background);
|
124
|
+
color: var(--color);
|
125
|
+
font-size: inherit;
|
126
|
+
text-align: center;
|
127
|
+
appearance: none;
|
128
|
+
}
|
129
|
+
|
130
|
+
.input-otp-description {
|
131
|
+
color: currentcolor;
|
132
|
+
font-size: var(--nano-font-size-xs);
|
133
|
+
line-height: var(--nano-line-height-normal);
|
134
|
+
text-align: center;
|
135
|
+
position: relative;
|
136
|
+
inset-inline-start: -24px;
|
137
|
+
}
|
138
|
+
|
139
|
+
.input-otp-description-hidden {
|
140
|
+
display: none;
|
141
|
+
}
|
142
|
+
|
143
|
+
.input-otp-separator {
|
144
|
+
border-radius: var(--separator-border-radius);
|
145
|
+
flex-shrink: 0;
|
146
|
+
inline-size: var(--separator-width);
|
147
|
+
block-size: var(--separator-height);
|
148
|
+
background: var(--separator-color);
|
149
|
+
}
|
150
|
+
|
151
|
+
:host(.input-otp-disabled) {
|
152
|
+
--color: var(--nano-color-neutral-700);
|
153
|
+
opacity: 0.5;
|
154
|
+
}
|
155
|
+
|
156
|
+
:host(.input-otp-disabled),
|
157
|
+
:host(.input-otp-disabled) .native-input:disabled {
|
158
|
+
cursor: not-allowed;
|
159
|
+
}
|
160
|
+
|
161
|
+
:host(.has-focus) .native-input:focus {
|
162
|
+
outline: var(--nano-focus-ring);
|
163
|
+
}
|
164
|
+
|
165
|
+
:host(.nano-invalid) .native-input {
|
166
|
+
border-color: var(--highlight-color-invalid);
|
167
|
+
}
|
168
|
+
|
169
|
+
:host(.nano-valid) .native-input {
|
170
|
+
border-color: var(--highlight-color-valid);
|
171
|
+
}
|
172
|
+
|
173
|
+
.input-otp-icon {
|
174
|
+
inline-size: 24px;
|
175
|
+
block-size: 24px;
|
176
|
+
display: flex;
|
177
|
+
align-items: center;
|
178
|
+
}
|
179
|
+
.input-otp-icon--valid {
|
180
|
+
color: var(--nano-color-success-1100);
|
181
|
+
}
|
182
|
+
.input-otp-icon--invalid {
|
183
|
+
color: var(--nano-color-warning-1100);
|
184
|
+
}
|