@nuralyui/divider 0.0.3 → 0.0.4
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/bundle.js +188 -0
- package/divider.component.d.ts +85 -9
- package/divider.component.js +142 -31
- package/divider.component.js.map +1 -1
- package/divider.style.js +114 -39
- package/divider.style.js.map +1 -1
- package/divider.types.d.ts +55 -0
- package/divider.types.js +6 -0
- package/divider.types.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +16 -2
- package/react.d.ts +2 -303
- package/react.js +4 -4
- package/react.js.map +1 -1
- package/divider.component.d.ts.map +0 -1
- package/divider.style.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/react.d.ts.map +0 -1
package/bundle.js
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const t=window,i=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),e=new WeakMap;class n{constructor(t,i,e){if(this._$cssResult$=!0,e!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const s=this.t;if(i&&void 0===t){const i=void 0!==s&&1===s.length;i&&(t=e.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&e.set(s,t))}return t}toString(){return this.cssText}}const r=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const s of t.cssRules)i+=s.cssText;return(t=>new n("string"==typeof t?t:t+"",void 0,s))(i)})(t):t
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/;var o;const h=window,l=h.trustedTypes,d=l?l.emptyScript:"",a=h.reactiveElementPolyfillSupport,v={toAttribute(t,i){switch(i){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},u=(t,i)=>i!==t&&(i==i||t==t),c={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:u},p="finalized";class f extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e))})),t}static createProperty(t,i=c){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(e){const n=this[t];this[i]=e,this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||c}static finalize(){if(this.hasOwnProperty(p))return!1;this[p]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)i.unshift(r(t))}else void 0!==t&&i.push(r(t));return i}static _$Ep(t,i){const s=i.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var s;const e=null!==(s=this.shadowRoot)&&void 0!==s?s:this.attachShadow(this.constructor.shadowRootOptions);return((s,e)=>{i?s.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((i=>{const e=document.createElement("style"),n=t.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,s.appendChild(e)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$EO(t,i,s=c){var e;const n=this.constructor._$Ep(t,s);if(void 0!==n&&!0===s.reflect){const r=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:v).toAttribute(i,s.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,i){var s;const e=this.constructor,n=e._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=e.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:v;this._$El=n,this[n]=r.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||u)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
12
|
+
/**
|
|
13
|
+
* @license
|
|
14
|
+
* Copyright 2017 Google LLC
|
|
15
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
+
*/
|
|
17
|
+
var g;f[p]=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},null==a||a({ReactiveElement:f}),(null!==(o=h.reactiveElementVersions)&&void 0!==o?o:h.reactiveElementVersions=[]).push("1.6.3");const y=window,m=y.trustedTypes,b=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,x="?"+$,S=`<${x}>`,A=document,_=()=>A.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,z="[ \t\n\f\r]",C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,j=/>/g,O=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),M=/'/g,U=/"/g,R=/^(?:script|style|textarea|title)$/i,N=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),P=new WeakMap,I=A.createTreeWalker(A,129,null,!1);function H(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==b?b.createHTML(i):i}class L{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let n=0,r=0;const o=t.length-1,h=this.parts,[l,d]=((t,i)=>{const s=t.length-1,e=[];let n,r=2===i?"<svg>":"",o=C;for(let i=0;i<s;i++){const s=t[i];let h,l,d=-1,a=0;for(;a<s.length&&(o.lastIndex=a,l=o.exec(s),null!==l);)a=o.lastIndex,o===C?"!--"===l[1]?o=T:void 0!==l[1]?o=j:void 0!==l[2]?(R.test(l[2])&&(n=RegExp("</"+l[2],"g")),o=O):void 0!==l[3]&&(o=O):o===O?">"===l[0]?(o=null!=n?n:C,d=-1):void 0===l[1]?d=-2:(d=o.lastIndex-l[2].length,h=l[1],o=void 0===l[3]?O:'"'===l[3]?U:M):o===U||o===M?o=O:o===T||o===j?o=C:(o=O,n=void 0);const v=o===O&&t[i+1].startsWith("/>")?" ":"";r+=o===C?s+S:d>=0?(e.push(h),s.slice(0,d)+w+s.slice(d)+$+v):s+$+(-2===d?(e.push(void 0),i):v)}return[H(t,r+(t[s]||"<?>")+(2===i?"</svg>":"")),e]})(t,i);if(this.el=L.createElement(l,s),I.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=I.nextNode())&&h.length<o;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith(w)||i.startsWith($)){const s=d[r++];if(t.push(i),void 0!==s){const t=e.getAttribute(s.toLowerCase()+w).split($),i=/([.?@])?(.*)/.exec(s);h.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Z:"?"===i[1]?F:"@"===i[1]?J:W})}else h.push({type:6,index:n})}for(const i of t)e.removeAttribute(i)}if(R.test(e.tagName)){const t=e.textContent.split($),i=t.length-1;if(i>0){e.textContent=m?m.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],_()),I.nextNode(),h.push({type:2,index:++n});e.append(t[i],_())}}}else if(8===e.nodeType)if(e.data===x)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=e.data.indexOf($,t+1));)h.push({type:7,index:n}),t+=$.length-1}n++}}static createElement(t,i){const s=A.createElement("template");return s.innerHTML=t,s}}function V(t,i,s=t,e){var n,r,o,h;if(i===N)return i;let l=void 0!==e?null===(n=s._$Co)||void 0===n?void 0:n[e]:s._$Cl;const d=E(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,s,e)),void 0!==e?(null!==(o=(h=s)._$Co)&&void 0!==o?o:h._$Co=[])[e]=l:s._$Cl=l),void 0!==l&&(i=V(t,l._$AS(t,i.values),l,e)),i}class K{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:A).importNode(s,!0);I.currentNode=n;let r=I.nextNode(),o=0,h=0,l=e[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new q(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new Y(r,this,t)),this._$AV.push(i),l=e[++h]}o!==(null==l?void 0:l.index)&&(r=I.nextNode(),o++)}return I.currentNode=A,n}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class q{constructor(t,i,s,e){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(n=null==e?void 0:e.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=V(this,t,i),E(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==N&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==D&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var i;const{values:s,_$litType$:e}=t,n="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=L.createElement(H(e.h,e.h[0]),this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(s);else{const t=new K(n,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t}}_$AC(t){let i=P.get(t.strings);return void 0===i&&P.set(t.strings,i=new L(t)),i}T(t){k(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const n of t)e===i.length?i.push(s=new q(this.k(_()),this.k(_()),this,this.options)):s=i[e],s._$AI(n),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,s,e,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const n=this.strings;let r=!1;if(void 0===n)t=V(this,t,i,0),r=!E(t)||t!==this._$AH&&t!==N,r&&(this._$AH=t);else{const e=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=V(this,e[s+o],i,o),h===N&&(h=this._$AH[o]),r||(r=!E(h)||h!==this._$AH[o]),h===D?t=D:t!==D&&(t+=(null!=h?h:"")+n[o+1]),this._$AH[o]=h}r&&!e&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Z extends W{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const B=m?m.emptyScript:"";class F extends W{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,B):this.element.removeAttribute(this.name)}}class J extends W{constructor(t,i,s,e,n){super(t,i,s,e,n),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=V(this,t,i,0))&&void 0!==s?s:D)===N)return;const e=this._$AH,n=t===D&&e!==D||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==D&&(e===D||n);n&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class Y{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const G=y.litHtmlPolyfillSupport;
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/
|
|
23
|
+
var Q;null==G||G(L,q),(null!==(g=y.litHtmlVersions)&&void 0!==g?g:y.litHtmlVersions=[]).push("2.8.0");const X=window,tt=X.trustedTypes,it=tt?tt.createPolicy("lit-html",{createHTML:t=>t}):void 0,st="$lit$",et=`lit$${(Math.random()+"").slice(9)}$`,nt="?"+et,rt=`<${nt}>`,ot=document,ht=()=>ot.createComment(""),lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,dt=Array.isArray,at="[ \t\n\f\r]",vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ut=/-->/g,ct=/>/g,pt=RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ft=/'/g,gt=/"/g,yt=/^(?:script|style|textarea|title)$/i,mt=(t=>(i,...s)=>({_$litType$:t,strings:i,values:s}))(1),bt=Symbol.for("lit-noChange"),wt=Symbol.for("lit-nothing"),$t=new WeakMap,xt=ot.createTreeWalker(ot,129,null,!1);function St(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==it?it.createHTML(i):i}const At=(t,i)=>{const s=t.length-1,e=[];let n,r=2===i?"<svg>":"",o=vt;for(let i=0;i<s;i++){const s=t[i];let h,l,d=-1,a=0;for(;a<s.length&&(o.lastIndex=a,l=o.exec(s),null!==l);)a=o.lastIndex,o===vt?"!--"===l[1]?o=ut:void 0!==l[1]?o=ct:void 0!==l[2]?(yt.test(l[2])&&(n=RegExp("</"+l[2],"g")),o=pt):void 0!==l[3]&&(o=pt):o===pt?">"===l[0]?(o=null!=n?n:vt,d=-1):void 0===l[1]?d=-2:(d=o.lastIndex-l[2].length,h=l[1],o=void 0===l[3]?pt:'"'===l[3]?gt:ft):o===gt||o===ft?o=pt:o===ut||o===ct?o=vt:(o=pt,n=void 0);const v=o===pt&&t[i+1].startsWith("/>")?" ":"";r+=o===vt?s+rt:d>=0?(e.push(h),s.slice(0,d)+st+s.slice(d)+et+v):s+et+(-2===d?(e.push(void 0),i):v)}return[St(t,r+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class _t{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let n=0,r=0;const o=t.length-1,h=this.parts,[l,d]=At(t,i);if(this.el=_t.createElement(l,s),xt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=xt.nextNode())&&h.length<o;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith(st)||i.startsWith(et)){const s=d[r++];if(t.push(i),void 0!==s){const t=e.getAttribute(s.toLowerCase()+st).split(et),i=/([.?@])?(.*)/.exec(s);h.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Tt:"?"===i[1]?Ot:"@"===i[1]?Mt:Ct})}else h.push({type:6,index:n})}for(const i of t)e.removeAttribute(i)}if(yt.test(e.tagName)){const t=e.textContent.split(et),i=t.length-1;if(i>0){e.textContent=tt?tt.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],ht()),xt.nextNode(),h.push({type:2,index:++n});e.append(t[i],ht())}}}else if(8===e.nodeType)if(e.data===nt)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=e.data.indexOf(et,t+1));)h.push({type:7,index:n}),t+=et.length-1}n++}}static createElement(t,i){const s=ot.createElement("template");return s.innerHTML=t,s}}function Et(t,i,s=t,e){var n,r,o,h;if(i===bt)return i;let l=void 0!==e?null===(n=s._$Co)||void 0===n?void 0:n[e]:s._$Cl;const d=lt(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,s,e)),void 0!==e?(null!==(o=(h=s)._$Co)&&void 0!==o?o:h._$Co=[])[e]=l:s._$Cl=l),void 0!==l&&(i=Et(t,l._$AS(t,i.values),l,e)),i}class kt{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:ot).importNode(s,!0);xt.currentNode=n;let r=xt.nextNode(),o=0,h=0,l=e[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new zt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new Ut(r,this,t)),this._$AV.push(i),l=e[++h]}o!==(null==l?void 0:l.index)&&(r=xt.nextNode(),o++)}return xt.currentNode=ot,n}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class zt{constructor(t,i,s,e){var n;this.type=2,this._$AH=wt,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(n=null==e?void 0:e.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Et(this,t,i),lt(t)?t===wt||null==t||""===t?(this._$AH!==wt&&this._$AR(),this._$AH=wt):t!==this._$AH&&t!==bt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>dt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==wt&<(this._$AH)?this._$AA.nextSibling.data=t:this.$(ot.createTextNode(t)),this._$AH=t}g(t){var i;const{values:s,_$litType$:e}=t,n="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=_t.createElement(St(e.h,e.h[0]),this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(s);else{const t=new kt(n,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t}}_$AC(t){let i=$t.get(t.strings);return void 0===i&&$t.set(t.strings,i=new _t(t)),i}T(t){dt(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const n of t)e===i.length?i.push(s=new zt(this.k(ht()),this.k(ht()),this,this.options)):s=i[e],s._$AI(n),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Ct{constructor(t,i,s,e,n){this.type=1,this._$AH=wt,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=wt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const n=this.strings;let r=!1;if(void 0===n)t=Et(this,t,i,0),r=!lt(t)||t!==this._$AH&&t!==bt,r&&(this._$AH=t);else{const e=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=Et(this,e[s+o],i,o),h===bt&&(h=this._$AH[o]),r||(r=!lt(h)||h!==this._$AH[o]),h===wt?t=wt:t!==wt&&(t+=(null!=h?h:"")+n[o+1]),this._$AH[o]=h}r&&!e&&this.j(t)}j(t){t===wt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Tt extends Ct{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===wt?void 0:t}}const jt=tt?tt.emptyScript:"";class Ot extends Ct{constructor(){super(...arguments),this.type=4}j(t){t&&t!==wt?this.element.setAttribute(this.name,jt):this.element.removeAttribute(this.name)}}class Mt extends Ct{constructor(t,i,s,e,n){super(t,i,s,e,n),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=Et(this,t,i,0))&&void 0!==s?s:wt)===bt)return;const e=this._$AH,n=t===wt&&e!==wt||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==wt&&(e===wt||n);n&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class Ut{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Et(this,t)}}const Rt=X.litHtmlPolyfillSupport;null==Rt||Rt(_t,zt),(null!==(Q=X.litHtmlVersions)&&void 0!==Q?Q:X.litHtmlVersions=[]).push("2.8.0");
|
|
24
|
+
/**
|
|
25
|
+
* @license
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
+
*/
|
|
29
|
+
var Nt,Dt;class Pt extends f{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const s=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=s.firstChild),s}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,s)=>{var e,n;const r=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let o=r._$litPart$;if(void 0===o){const t=null!==(n=null==s?void 0:s.renderBefore)&&void 0!==n?n:null;r._$litPart$=o=new zt(i.insertBefore(ht(),t),t,void 0,null!=s?s:{})}return o._$AI(t),o})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return bt}}Pt.finalized=!0,Pt._$litElement$=!0,null===(Nt=globalThis.litElementHydrateSupport)||void 0===Nt||Nt.call(globalThis,{LitElement:Pt});const It=globalThis.litElementPolyfillSupport;null==It||It({LitElement:Pt}),(null!==(Dt=globalThis.litElementVersions)&&void 0!==Dt?Dt:globalThis.litElementVersions=[]).push("3.3.3");
|
|
30
|
+
/**
|
|
31
|
+
* @license
|
|
32
|
+
* Copyright 2017 Google LLC
|
|
33
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
+
*/
|
|
35
|
+
const Ht=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(s){s.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(s){s.createProperty(i.key,t)}};
|
|
36
|
+
/**
|
|
37
|
+
* @license
|
|
38
|
+
* Copyright 2017 Google LLC
|
|
39
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
+
*/function Lt(t){return(i,s)=>void 0!==s?((t,i,s)=>{i.constructor.createProperty(s,t)})(t,i,s):Ht(t,i)
|
|
41
|
+
/**
|
|
42
|
+
* @license
|
|
43
|
+
* Copyright 2021 Google LLC
|
|
44
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
+
*/}var Vt;null===(Vt=window.HTMLSlotElement)||void 0===Vt||Vt.prototype.assignedElements;
|
|
46
|
+
/**
|
|
47
|
+
* @license
|
|
48
|
+
* Copyright 2017 Google LLC
|
|
49
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
+
*/
|
|
51
|
+
const Kt=1,qt=t=>(...i)=>({_$litDirective$:t,values:i});class Wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,s){this._$Ct=t,this._$AM=i,this._$Ci=s}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
|
|
52
|
+
/**
|
|
53
|
+
* @license
|
|
54
|
+
* Copyright 2018 Google LLC
|
|
55
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
+
*/const Zt=qt(class extends Wt{constructor(t){var i;if(super(t),t.type!==Kt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var s,e;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(s=this.nt)||void 0===s?void 0:s.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const s=!!i[t];s===this.it.has(t)||(null===(e=this.nt)||void 0===e?void 0:e.has(t))||(s?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return N}}),Bt="important",Ft=" !"+Bt,Jt=qt(class extends Wt{constructor(t){var i;if(super(t),t.type!==Kt||"style"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((i,s)=>{const e=t[s];return null==e?i:i+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`}),"")}update(t,[i]){const{style:s}=t.element;if(void 0===this.ht){this.ht=new Set;for(const t in i)this.ht.add(t);return this.render(i)}this.ht.forEach((t=>{null==i[t]&&(this.ht.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in i){const e=i[t];if(null!=e){this.ht.add(t);const i="string"==typeof e&&e.endsWith(Ft);t.includes("-")||i?s.setProperty(t,i?e.slice(0,-11):e,i?Bt:""):s[t]=e}}return N}}),Yt=t=>class extends t{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupDesignSystemObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var t,i,s;super.disconnectedCallback(),null===(t=this.themeObserver)||void 0===t||t.disconnect(),null===(i=this.designSystemObserver)||void 0===i||i.disconnect(),null===(s=this.mediaQuery)||void 0===s||s.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var t,i;const s=(null===(t=this.closest("[data-theme]"))||void 0===t?void 0:t.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme");return s||((null===(i=window.matchMedia)||void 0===i?void 0:i.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light")}get currentDesignSystem(){var t;const i=(null===(t=this.closest("[design-system]"))||void 0===t?void 0:t.getAttribute("design-system"))||document.documentElement.getAttribute("design-system");return"carbon"===i?i:"default"}setupThemeObserver(){this.themeObserver=new MutationObserver((()=>{this.requestUpdate()})),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupDesignSystemObserver(){this.designSystemObserver=new MutationObserver((()=>{this.requestUpdate()})),this.designSystemObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["design-system"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}},Gt=()=>{var t;return void 0!==globalThis.litElementVersions||"undefined"!=typeof process&&"development"===(null===(t=process.env)||void 0===t?void 0:t.NODE_ENV)||"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)},Qt=t=>class extends t{constructor(){super(...arguments),this.requiredComponents=[]}validateDependencies(){if(Gt())for(const t of this.requiredComponents)if(!this.isComponentAvailable(t))throw new Error(`Required component "${t}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}. Example: import '@nuralyui/${t}';`)}validateDependenciesWithHandler(t){if(!Gt())return!0;let i=!0;for(const s of this.requiredComponents)if(!this.isComponentAvailable(s)){i=!1;const e=new Error(`Required component "${s}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}.`);t?t(s,e):console.error(e.message)}return i}isComponentAvailable(t){return!!customElements.get(t)}getMissingDependencies(){return this.requiredComponents.filter((t=>!this.isComponentAvailable(t)))}areDependenciesAvailable(){return this.requiredComponents.every((t=>this.isComponentAvailable(t)))}addRequiredComponent(t){this.requiredComponents.includes(t)||this.requiredComponents.push(t)}removeRequiredComponent(t){const i=this.requiredComponents.indexOf(t);i>-1&&this.requiredComponents.splice(i,1)}},Xt=t=>class extends t{dispatchCustomEvent(t,i){this.dispatchEvent(new CustomEvent(t,{detail:i,bubbles:!0,composed:!0}))}dispatchEventWithMetadata(t,i){var s;const e=Object.assign(Object.assign({},i),{timestamp:Date.now(),componentName:(null===(s=this.tagName)||void 0===s?void 0:s.toLowerCase())||"unknown"});this.dispatchCustomEvent(t,e)}dispatchInputEvent(t,i){const s=Object.assign({target:i.target||this,value:i.value,originalEvent:i.originalEvent},i);this.dispatchCustomEvent(t,s)}dispatchFocusEvent(t,i){const s=Object.assign({target:i.target||this,value:i.value,focused:i.focused,cursorPosition:i.cursorPosition,selectedText:i.selectedText},i);this.dispatchCustomEvent(t,s)}dispatchValidationEvent(t,i){var s;const e=Object.assign({target:i.target||this,value:i.value,isValid:null!==(s=i.isValid)&&void 0!==s&&s,error:i.error},i);this.dispatchCustomEvent(t,e)}dispatchActionEvent(t,i){const s=Object.assign({target:i.target||this,action:i.action,previousValue:i.previousValue,newValue:i.newValue},i);this.dispatchCustomEvent(t,s)}isReadonlyKeyAllowed(t){if(t.ctrlKey||t.metaKey){return["KeyA","KeyC"].includes(t.code)}return["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(t.key)}isActivationKey(t){return"Enter"===t.key||" "===t.key}};
|
|
57
|
+
/**
|
|
58
|
+
* @license
|
|
59
|
+
* Copyright 2018 Google LLC
|
|
60
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
+
*/var ti=((t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,s,e)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[e+1]),t[0]);return new n(e,t,s)})`
|
|
62
|
+
:host {
|
|
63
|
+
display: block;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([type="vertical"]) {
|
|
68
|
+
display: inline-block;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.divider {
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
color: var(--nuraly-divider-text-color);
|
|
76
|
+
font-size: var(--nuraly-divider-font-size);
|
|
77
|
+
line-height: 1.5715;
|
|
78
|
+
list-style: none;
|
|
79
|
+
font-family: inherit;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Horizontal Divider */
|
|
83
|
+
.divider--horizontal {
|
|
84
|
+
display: flex;
|
|
85
|
+
clear: both;
|
|
86
|
+
width: 100%;
|
|
87
|
+
min-width: 100%;
|
|
88
|
+
margin: var(--nuraly-divider-margin-vertical, 24px) 0;
|
|
89
|
+
border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.12));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Horizontal with text */
|
|
93
|
+
.divider--horizontal.divider--with-text {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
margin: var(--nuraly-divider-margin-vertical) 0;
|
|
97
|
+
color: var(--nuraly-divider-text-color);
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
font-size: var(--nuraly-divider-font-size);
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
text-align: center;
|
|
102
|
+
border-block-start: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.divider--horizontal.divider--with-text::before,
|
|
106
|
+
.divider--horizontal.divider--with-text::after {
|
|
107
|
+
position: relative;
|
|
108
|
+
width: 50%;
|
|
109
|
+
border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.12));
|
|
110
|
+
border-block-end: 0;
|
|
111
|
+
transform: translateY(50%);
|
|
112
|
+
content: '';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Text positioning */
|
|
116
|
+
.divider--start::before {
|
|
117
|
+
width: var(--nuraly-divider-orientation-margin-left, 5%);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.divider--start::after {
|
|
121
|
+
width: 95%;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.divider--end::before {
|
|
125
|
+
width: 95%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.divider--end::after {
|
|
129
|
+
width: var(--nuraly-divider-orientation-margin-right, 5%);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Text wrapper */
|
|
133
|
+
.divider__text {
|
|
134
|
+
display: inline-block;
|
|
135
|
+
padding: 0 var(--nuraly-divider-text-padding, 1em);
|
|
136
|
+
color: var(--nuraly-divider-text-color, rgba(0, 0, 0, 0.88));
|
|
137
|
+
font-size: var(--nuraly-divider-font-size, 1rem);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Plain text style */
|
|
141
|
+
.divider--plain .divider__text {
|
|
142
|
+
font-weight: normal;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Vertical Divider */
|
|
146
|
+
.divider--vertical {
|
|
147
|
+
position: relative;
|
|
148
|
+
top: -0.06em;
|
|
149
|
+
display: inline-block;
|
|
150
|
+
height: 0.9em;
|
|
151
|
+
margin: 0 var(--nuraly-divider-margin-horizontal, 8px);
|
|
152
|
+
vertical-align: middle;
|
|
153
|
+
border-top: 0;
|
|
154
|
+
border-inline-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.12));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* Variant styles */
|
|
158
|
+
.divider--solid {
|
|
159
|
+
--nuraly-divider-variant-style: solid;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.divider--dashed {
|
|
163
|
+
--nuraly-divider-variant-style: dashed;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.divider--dotted {
|
|
167
|
+
--nuraly-divider-variant-style: dotted;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Size variations (horizontal only) */
|
|
171
|
+
.divider--horizontal.divider--small {
|
|
172
|
+
margin: var(--nuraly-divider-margin-vertical-small) 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.divider--horizontal.divider--middle {
|
|
176
|
+
margin: var(--nuraly-divider-margin-vertical-middle) 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.divider--horizontal.divider--large {
|
|
180
|
+
margin: var(--nuraly-divider-margin-vertical-large) 0;
|
|
181
|
+
}
|
|
182
|
+
`,ii=function(t,i,s,e){for(var n,r=arguments.length,o=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e,h=t.length-1;h>=0;h--)(n=t[h])&&(o=(r<3?n(o):r>3?n(i,s,o):n(i,s))||o);return r>3&&o&&Object.defineProperty(i,s,o),o};let si=class extends((t=>Qt(Yt(Xt(t))))(Pt)){constructor(){super(...arguments),this.type="horizontal",this.dashed=!1,this.variant="solid",this.orientation="center",this.plain=!0}get hasText(){var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot");return((null==i?void 0:i.assignedNodes({flatten:!0}))||[]).some((t=>{var i;return t.nodeType===Node.TEXT_NODE&&(null===(i=t.textContent)||void 0===i?void 0:i.trim())||t.nodeType===Node.ELEMENT_NODE}))}render(){const t=this.dashed?"dashed":this.variant,i="horizontal"===this.type,s="vertical"===this.type,e={divider:!0,"divider--horizontal":i,"divider--vertical":s,"divider--with-text":i&&this.hasText,"divider--plain":this.plain,[`divider--${t}`]:!0,[`divider--${this.orientation}`]:i&&this.hasText,[`divider--${this.size}`]:i&&!!this.size},n={};if(void 0!==this.orientationMargin&&i&&this.hasText){const t="number"==typeof this.orientationMargin?`${this.orientationMargin}px`:this.orientationMargin;"start"===this.orientation?n["--nuraly-divider-orientation-margin-left"]=t:"end"===this.orientation&&(n["--nuraly-divider-orientation-margin-right"]=t)}return s?mt`<div class=${Zt(e)}></div>`:this.hasText?mt`
|
|
183
|
+
<div class=${Zt(e)} style=${Jt(n)}>
|
|
184
|
+
<span class="divider__text">
|
|
185
|
+
<slot></slot>
|
|
186
|
+
</span>
|
|
187
|
+
</div>
|
|
188
|
+
`:mt`<div class=${Zt(e)}></div>`}};si.styles=ti,ii([Lt({type:String})],si.prototype,"type",void 0),ii([Lt({type:Boolean})],si.prototype,"dashed",void 0),ii([Lt({type:String})],si.prototype,"variant",void 0),ii([Lt({type:String})],si.prototype,"orientation",void 0),ii([Lt({type:String,attribute:"orientation-margin"})],si.prototype,"orientationMargin",void 0),ii([Lt({type:Boolean})],si.prototype,"plain",void 0),ii([Lt({type:String})],si.prototype,"size",void 0),si=ii([(t=>i=>"function"==typeof i?((t,i)=>(customElements.define(t,i),i))(t,i):((t,i)=>{const{kind:s,elements:e}=i;return{kind:s,elements:e,finisher(i){customElements.define(t,i)}}})(t,i))("nr-divider")],si);export{si as NrDividerElement};
|
package/divider.component.d.ts
CHANGED
|
@@ -1,14 +1,90 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
|
|
2
|
+
import { DividerType, DividerOrientation, DividerVariant, DividerSize } from "./divider.types.js";
|
|
3
|
+
declare const NrDividerElement_base: (new (...args: any[]) => import("../../shared/dependency-mixin.js").DependencyAware) & (new (...args: any[]) => import("../../shared/theme-mixin.js").ThemeAware) & (new (...args: any[]) => import("../../shared/event-handler-mixin.js").EventHandlerCapable) & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* @element nr-divider
|
|
6
|
+
*
|
|
7
|
+
* @summary A divider line separates different content.
|
|
8
|
+
*
|
|
9
|
+
* @description
|
|
10
|
+
* The Divider component is used to divide sections of content or inline text.
|
|
11
|
+
* Based on Ant Design Divider component.
|
|
12
|
+
*
|
|
13
|
+
* @prop {DividerType} type - The direction type of divider (horizontal or vertical)
|
|
14
|
+
* @prop {boolean} dashed - Whether line is dashed (deprecated, use variant instead)
|
|
15
|
+
* @prop {DividerVariant} variant - Line style variant (solid, dashed, dotted)
|
|
16
|
+
* @prop {DividerOrientation} orientation - Position of title inside divider (start, center, end)
|
|
17
|
+
* @prop {string | number} orientationMargin - Margin between title and closest border
|
|
18
|
+
* @prop {boolean} plain - Divider text show as plain style
|
|
19
|
+
* @prop {DividerSize} size - Size of divider (only for horizontal: small, middle, large)
|
|
20
|
+
*
|
|
21
|
+
* @slot - The title/text content to display in the divider
|
|
22
|
+
*
|
|
23
|
+
* @cssprop --nuraly-divider-color - Border color
|
|
24
|
+
* @cssprop --nuraly-divider-text-color - Text color
|
|
25
|
+
* @cssprop --nuraly-divider-font-size - Font size for title
|
|
26
|
+
* @cssprop --nuraly-divider-margin - Vertical margin for horizontal divider
|
|
27
|
+
* @cssprop --nuraly-divider-orientation-margin - Margin between text and edge
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <!-- Basic horizontal divider -->
|
|
32
|
+
* <nr-divider></nr-divider>
|
|
33
|
+
*
|
|
34
|
+
* <!-- Divider with text -->
|
|
35
|
+
* <nr-divider>Text</nr-divider>
|
|
36
|
+
*
|
|
37
|
+
* <!-- Vertical divider -->
|
|
38
|
+
* <nr-divider type="vertical"></nr-divider>
|
|
39
|
+
*
|
|
40
|
+
* <!-- Dashed divider with text -->
|
|
41
|
+
* <nr-divider variant="dashed" orientation="start">Left Text</nr-divider>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare class NrDividerElement extends NrDividerElement_base {
|
|
3
45
|
static styles: import("lit").CSSResult;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
46
|
+
/**
|
|
47
|
+
* The direction type of divider
|
|
48
|
+
* @type {DividerType}
|
|
49
|
+
*/
|
|
50
|
+
type: DividerType;
|
|
51
|
+
/**
|
|
52
|
+
* Whether line is dashed (deprecated, use variant instead)
|
|
53
|
+
* @deprecated Use variant="dashed" instead
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
*/
|
|
56
|
+
dashed: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Line style variant
|
|
59
|
+
* @type {DividerVariant}
|
|
60
|
+
*/
|
|
61
|
+
variant: DividerVariant;
|
|
62
|
+
/**
|
|
63
|
+
* Position of title inside divider
|
|
64
|
+
* @type {DividerOrientation}
|
|
65
|
+
*/
|
|
66
|
+
orientation: DividerOrientation;
|
|
67
|
+
/**
|
|
68
|
+
* Margin between title and closest border
|
|
69
|
+
* Accepts string with units or number (defaults to px)
|
|
70
|
+
* @type {string | number}
|
|
71
|
+
*/
|
|
72
|
+
orientationMargin?: string | number;
|
|
73
|
+
/**
|
|
74
|
+
* Divider text show as plain style
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
*/
|
|
77
|
+
plain: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Size of divider (only for horizontal)
|
|
80
|
+
* @type {DividerSize}
|
|
81
|
+
*/
|
|
82
|
+
size?: DividerSize;
|
|
83
|
+
/**
|
|
84
|
+
* Check if divider has text content
|
|
85
|
+
*/
|
|
86
|
+
private get hasText();
|
|
12
87
|
render(): import("lit").TemplateResult<1>;
|
|
13
88
|
}
|
|
89
|
+
export {};
|
|
14
90
|
//# sourceMappingURL=divider.component.d.ts.map
|
package/divider.component.js
CHANGED
|
@@ -6,52 +6,163 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
10
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
11
|
+
import { NuralyUIBaseMixin } from "../../shared/base-mixin.js";
|
|
9
12
|
import styles from "./divider.style.js";
|
|
10
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @element nr-divider
|
|
15
|
+
*
|
|
16
|
+
* @summary A divider line separates different content.
|
|
17
|
+
*
|
|
18
|
+
* @description
|
|
19
|
+
* The Divider component is used to divide sections of content or inline text.
|
|
20
|
+
* Based on Ant Design Divider component.
|
|
21
|
+
*
|
|
22
|
+
* @prop {DividerType} type - The direction type of divider (horizontal or vertical)
|
|
23
|
+
* @prop {boolean} dashed - Whether line is dashed (deprecated, use variant instead)
|
|
24
|
+
* @prop {DividerVariant} variant - Line style variant (solid, dashed, dotted)
|
|
25
|
+
* @prop {DividerOrientation} orientation - Position of title inside divider (start, center, end)
|
|
26
|
+
* @prop {string | number} orientationMargin - Margin between title and closest border
|
|
27
|
+
* @prop {boolean} plain - Divider text show as plain style
|
|
28
|
+
* @prop {DividerSize} size - Size of divider (only for horizontal: small, middle, large)
|
|
29
|
+
*
|
|
30
|
+
* @slot - The title/text content to display in the divider
|
|
31
|
+
*
|
|
32
|
+
* @cssprop --nuraly-divider-color - Border color
|
|
33
|
+
* @cssprop --nuraly-divider-text-color - Text color
|
|
34
|
+
* @cssprop --nuraly-divider-font-size - Font size for title
|
|
35
|
+
* @cssprop --nuraly-divider-margin - Vertical margin for horizontal divider
|
|
36
|
+
* @cssprop --nuraly-divider-orientation-margin - Margin between text and edge
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```html
|
|
40
|
+
* <!-- Basic horizontal divider -->
|
|
41
|
+
* <nr-divider></nr-divider>
|
|
42
|
+
*
|
|
43
|
+
* <!-- Divider with text -->
|
|
44
|
+
* <nr-divider>Text</nr-divider>
|
|
45
|
+
*
|
|
46
|
+
* <!-- Vertical divider -->
|
|
47
|
+
* <nr-divider type="vertical"></nr-divider>
|
|
48
|
+
*
|
|
49
|
+
* <!-- Dashed divider with text -->
|
|
50
|
+
* <nr-divider variant="dashed" orientation="start">Left Text</nr-divider>
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
let NrDividerElement = class NrDividerElement extends NuralyUIBaseMixin(LitElement) {
|
|
11
54
|
constructor() {
|
|
12
55
|
super(...arguments);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
this.
|
|
56
|
+
/**
|
|
57
|
+
* The direction type of divider
|
|
58
|
+
* @type {DividerType}
|
|
59
|
+
*/
|
|
60
|
+
this.type = "horizontal" /* DividerType.Horizontal */;
|
|
61
|
+
/**
|
|
62
|
+
* Whether line is dashed (deprecated, use variant instead)
|
|
63
|
+
* @deprecated Use variant="dashed" instead
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
*/
|
|
66
|
+
this.dashed = false;
|
|
67
|
+
/**
|
|
68
|
+
* Line style variant
|
|
69
|
+
* @type {DividerVariant}
|
|
70
|
+
*/
|
|
71
|
+
this.variant = "solid" /* DividerVariant.Solid */;
|
|
72
|
+
/**
|
|
73
|
+
* Position of title inside divider
|
|
74
|
+
* @type {DividerOrientation}
|
|
75
|
+
*/
|
|
76
|
+
this.orientation = "center" /* DividerOrientation.Center */;
|
|
77
|
+
/**
|
|
78
|
+
* Divider text show as plain style
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
*/
|
|
81
|
+
this.plain = true;
|
|
18
82
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Check if divider has text content
|
|
85
|
+
*/
|
|
86
|
+
get hasText() {
|
|
87
|
+
var _a;
|
|
88
|
+
const slot = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
89
|
+
const nodes = (slot === null || slot === void 0 ? void 0 : slot.assignedNodes({ flatten: true })) || [];
|
|
90
|
+
return nodes.some(node => {
|
|
91
|
+
var _a;
|
|
92
|
+
return node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) ||
|
|
93
|
+
node.nodeType === Node.ELEMENT_NODE;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
render() {
|
|
97
|
+
// Support deprecated dashed prop
|
|
98
|
+
const effectiveVariant = this.dashed ? "dashed" /* DividerVariant.Dashed */ : this.variant;
|
|
99
|
+
const isHorizontal = this.type === "horizontal" /* DividerType.Horizontal */;
|
|
100
|
+
const isVertical = this.type === "vertical" /* DividerType.Vertical */;
|
|
101
|
+
const classes = {
|
|
102
|
+
'divider': true,
|
|
103
|
+
'divider--horizontal': isHorizontal,
|
|
104
|
+
'divider--vertical': isVertical,
|
|
105
|
+
'divider--with-text': isHorizontal && this.hasText,
|
|
106
|
+
'divider--plain': this.plain,
|
|
107
|
+
[`divider--${effectiveVariant}`]: true,
|
|
108
|
+
[`divider--${this.orientation}`]: isHorizontal && this.hasText,
|
|
109
|
+
[`divider--${this.size}`]: isHorizontal && !!this.size
|
|
110
|
+
};
|
|
111
|
+
// Calculate orientation margin style
|
|
112
|
+
const orientationMarginStyle = {};
|
|
113
|
+
if (this.orientationMargin !== undefined && isHorizontal && this.hasText) {
|
|
114
|
+
const marginValue = typeof this.orientationMargin === 'number'
|
|
115
|
+
? `${this.orientationMargin}px`
|
|
116
|
+
: this.orientationMargin;
|
|
117
|
+
if (this.orientation === "start" /* DividerOrientation.Start */) {
|
|
118
|
+
orientationMarginStyle['--nuraly-divider-orientation-margin-left'] = marginValue;
|
|
119
|
+
}
|
|
120
|
+
else if (this.orientation === "end" /* DividerOrientation.End */) {
|
|
121
|
+
orientationMarginStyle['--nuraly-divider-orientation-margin-right'] = marginValue;
|
|
122
|
+
}
|
|
25
123
|
}
|
|
26
|
-
|
|
27
|
-
|
|
124
|
+
// Vertical divider (no text support)
|
|
125
|
+
if (isVertical) {
|
|
126
|
+
return html `<div class=${classMap(classes)}></div>`;
|
|
28
127
|
}
|
|
29
|
-
|
|
30
|
-
|
|
128
|
+
// Horizontal divider without text
|
|
129
|
+
if (!this.hasText) {
|
|
130
|
+
return html `<div class=${classMap(classes)}></div>`;
|
|
31
131
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
132
|
+
// Horizontal divider with text
|
|
133
|
+
return html `
|
|
134
|
+
<div class=${classMap(classes)} style=${styleMap(orientationMarginStyle)}>
|
|
135
|
+
<span class="divider__text">
|
|
136
|
+
<slot></slot>
|
|
137
|
+
</span>
|
|
138
|
+
</div>
|
|
139
|
+
`;
|
|
35
140
|
}
|
|
36
141
|
};
|
|
37
|
-
|
|
142
|
+
NrDividerElement.styles = styles;
|
|
38
143
|
__decorate([
|
|
39
144
|
property({ type: String })
|
|
40
|
-
],
|
|
145
|
+
], NrDividerElement.prototype, "type", void 0);
|
|
41
146
|
__decorate([
|
|
42
|
-
property({ type:
|
|
43
|
-
],
|
|
147
|
+
property({ type: Boolean })
|
|
148
|
+
], NrDividerElement.prototype, "dashed", void 0);
|
|
44
149
|
__decorate([
|
|
45
150
|
property({ type: String })
|
|
46
|
-
],
|
|
151
|
+
], NrDividerElement.prototype, "variant", void 0);
|
|
47
152
|
__decorate([
|
|
48
153
|
property({ type: String })
|
|
49
|
-
],
|
|
154
|
+
], NrDividerElement.prototype, "orientation", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
property({ type: String, attribute: 'orientation-margin' })
|
|
157
|
+
], NrDividerElement.prototype, "orientationMargin", void 0);
|
|
50
158
|
__decorate([
|
|
51
|
-
property({ type:
|
|
52
|
-
],
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
],
|
|
56
|
-
|
|
159
|
+
property({ type: Boolean })
|
|
160
|
+
], NrDividerElement.prototype, "plain", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
property({ type: String })
|
|
163
|
+
], NrDividerElement.prototype, "size", void 0);
|
|
164
|
+
NrDividerElement = __decorate([
|
|
165
|
+
customElement('nr-divider')
|
|
166
|
+
], NrDividerElement);
|
|
167
|
+
export { NrDividerElement };
|
|
57
168
|
//# sourceMappingURL=divider.component.js.map
|
package/divider.component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.component.js","sourceRoot":"","sources":["../../../src/components/divider/divider.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,MAAM,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"divider.component.js","sourceRoot":"","sources":["../../../src/components/divider/divider.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAQxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,iBAAiB,CAAC,UAAU,CAAC;IAAnE;;QAGE;;;WAGG;QAEH,SAAI,6CAAuC;QAE3C;;;;WAIG;QAEH,WAAM,GAAG,KAAK,CAAC;QAEf;;;WAGG;QAEH,YAAO,sCAAwC;QAE/C;;;WAGG;QAEH,gBAAW,4CAAiD;QAU5D;;;WAGG;QAEH,UAAK,GAAG,IAAI,CAAC;IAwEf,CAAC;IA/DC;;OAEG;IACH,IAAY,OAAO;;QACjB,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QACpD,MAAM,KAAK,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,KAAI,EAAE,CAAC;QAC3D,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;;YACvB,OAAA,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,KAAI,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,EAAE,CAAA;gBAC5D,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,CAAA;SAAA,CACpC,CAAC;IACJ,CAAC;IAEQ,MAAM;QACb,iCAAiC;QACjC,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,sCAAuB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAE5E,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,8CAA2B,CAAC;QAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,0CAAyB,CAAC;QAEtD,MAAM,OAAO,GAAG;YACd,SAAS,EAAE,IAAI;YACf,qBAAqB,EAAE,YAAY;YACnC,mBAAmB,EAAE,UAAU;YAC/B,oBAAoB,EAAE,YAAY,IAAI,IAAI,CAAC,OAAO;YAClD,gBAAgB,EAAE,IAAI,CAAC,KAAK;YAC5B,CAAC,YAAY,gBAAgB,EAAE,CAAC,EAAE,IAAI;YACtC,CAAC,YAAY,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,YAAY,IAAI,IAAI,CAAC,OAAO;YAC9D,CAAC,YAAY,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,YAAY,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI;SACvD,CAAC;QAEF,qCAAqC;QACrC,MAAM,sBAAsB,GAA2B,EAAE,CAAC;QAC1D,IAAI,IAAI,CAAC,iBAAiB,KAAK,SAAS,IAAI,YAAY,IAAI,IAAI,CAAC,OAAO,EAAE;YACxE,MAAM,WAAW,GAAG,OAAO,IAAI,CAAC,iBAAiB,KAAK,QAAQ;gBAC5D,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,IAAI;gBAC/B,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAE3B,IAAI,IAAI,CAAC,WAAW,2CAA6B,EAAE;gBACjD,sBAAsB,CAAC,0CAA0C,CAAC,GAAG,WAAW,CAAC;aAClF;iBAAM,IAAI,IAAI,CAAC,WAAW,uCAA2B,EAAE;gBACtD,sBAAsB,CAAC,2CAA2C,CAAC,GAAG,WAAW,CAAC;aACnF;SACF;QAED,qCAAqC;QACrC,IAAI,UAAU,EAAE;YACd,OAAO,IAAI,CAAA,cAAc,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC;SACrD;QAED,kCAAkC;QAClC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,OAAO,IAAI,CAAA,cAAc,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC;SACrD;QAED,+BAA+B;QAC/B,OAAO,IAAI,CAAA;mBACI,QAAQ,CAAC,OAAO,CAAC,UAAU,QAAQ,CAAC,sBAAsB,CAAC;;;;;KAKzE,CAAC;IACJ,CAAC;CACF,CAAA;AApHiB,uBAAM,GAAG,MAAO,CAAA;AAOhC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CACgB;AAQ3C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gDACb;AAOf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDACoB;AAO/C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDACiC;AAQ5D;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;2DACxB;AAOpC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;+CACf;AAOb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CACR;AApDR,gBAAgB;IAD5B,aAAa,CAAC,YAAY,CAAC;GACf,gBAAgB,CAqH5B;SArHY,gBAAgB","sourcesContent":["import { html, LitElement } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { NuralyUIBaseMixin } from \"../../shared/base-mixin.js\";\nimport styles from \"./divider.style.js\";\nimport {\n DividerType,\n DividerOrientation,\n DividerVariant,\n DividerSize\n} from \"./divider.types.js\";\n\n/**\n * @element nr-divider\n * \n * @summary A divider line separates different content.\n * \n * @description\n * The Divider component is used to divide sections of content or inline text.\n * Based on Ant Design Divider component.\n * \n * @prop {DividerType} type - The direction type of divider (horizontal or vertical)\n * @prop {boolean} dashed - Whether line is dashed (deprecated, use variant instead)\n * @prop {DividerVariant} variant - Line style variant (solid, dashed, dotted)\n * @prop {DividerOrientation} orientation - Position of title inside divider (start, center, end)\n * @prop {string | number} orientationMargin - Margin between title and closest border\n * @prop {boolean} plain - Divider text show as plain style\n * @prop {DividerSize} size - Size of divider (only for horizontal: small, middle, large)\n * \n * @slot - The title/text content to display in the divider\n * \n * @cssprop --nuraly-divider-color - Border color\n * @cssprop --nuraly-divider-text-color - Text color\n * @cssprop --nuraly-divider-font-size - Font size for title\n * @cssprop --nuraly-divider-margin - Vertical margin for horizontal divider\n * @cssprop --nuraly-divider-orientation-margin - Margin between text and edge\n * \n * @example\n * ```html\n * <!-- Basic horizontal divider -->\n * <nr-divider></nr-divider>\n * \n * <!-- Divider with text -->\n * <nr-divider>Text</nr-divider>\n * \n * <!-- Vertical divider -->\n * <nr-divider type=\"vertical\"></nr-divider>\n * \n * <!-- Dashed divider with text -->\n * <nr-divider variant=\"dashed\" orientation=\"start\">Left Text</nr-divider>\n * ```\n */\n@customElement('nr-divider')\nexport class NrDividerElement extends NuralyUIBaseMixin(LitElement) {\n static override styles = styles;\n\n /**\n * The direction type of divider\n * @type {DividerType}\n */\n @property({ type: String })\n type: DividerType = DividerType.Horizontal;\n\n /**\n * Whether line is dashed (deprecated, use variant instead)\n * @deprecated Use variant=\"dashed\" instead\n * @type {boolean}\n */\n @property({ type: Boolean })\n dashed = false;\n\n /**\n * Line style variant\n * @type {DividerVariant}\n */\n @property({ type: String })\n variant: DividerVariant = DividerVariant.Solid;\n\n /**\n * Position of title inside divider\n * @type {DividerOrientation}\n */\n @property({ type: String })\n orientation: DividerOrientation = DividerOrientation.Center;\n\n /**\n * Margin between title and closest border\n * Accepts string with units or number (defaults to px)\n * @type {string | number}\n */\n @property({ type: String, attribute: 'orientation-margin' })\n orientationMargin?: string | number;\n\n /**\n * Divider text show as plain style\n * @type {boolean}\n */\n @property({ type: Boolean })\n plain = true;\n\n /**\n * Size of divider (only for horizontal)\n * @type {DividerSize}\n */\n @property({ type: String })\n size?: DividerSize;\n\n /**\n * Check if divider has text content\n */\n private get hasText(): boolean {\n const slot = this.shadowRoot?.querySelector('slot');\n const nodes = slot?.assignedNodes({ flatten: true }) || [];\n return nodes.some(node => \n node.nodeType === Node.TEXT_NODE && node.textContent?.trim() ||\n node.nodeType === Node.ELEMENT_NODE\n );\n }\n\n override render() {\n // Support deprecated dashed prop\n const effectiveVariant = this.dashed ? DividerVariant.Dashed : this.variant;\n \n const isHorizontal = this.type === DividerType.Horizontal;\n const isVertical = this.type === DividerType.Vertical;\n\n const classes = {\n 'divider': true,\n 'divider--horizontal': isHorizontal,\n 'divider--vertical': isVertical,\n 'divider--with-text': isHorizontal && this.hasText,\n 'divider--plain': this.plain,\n [`divider--${effectiveVariant}`]: true,\n [`divider--${this.orientation}`]: isHorizontal && this.hasText,\n [`divider--${this.size}`]: isHorizontal && !!this.size\n };\n\n // Calculate orientation margin style\n const orientationMarginStyle: Record<string, string> = {};\n if (this.orientationMargin !== undefined && isHorizontal && this.hasText) {\n const marginValue = typeof this.orientationMargin === 'number' \n ? `${this.orientationMargin}px` \n : this.orientationMargin;\n \n if (this.orientation === DividerOrientation.Start) {\n orientationMarginStyle['--nuraly-divider-orientation-margin-left'] = marginValue;\n } else if (this.orientation === DividerOrientation.End) {\n orientationMarginStyle['--nuraly-divider-orientation-margin-right'] = marginValue;\n }\n }\n\n // Vertical divider (no text support)\n if (isVertical) {\n return html`<div class=${classMap(classes)}></div>`;\n }\n\n // Horizontal divider without text\n if (!this.hasText) {\n return html`<div class=${classMap(classes)}></div>`;\n }\n\n // Horizontal divider with text\n return html`\n <div class=${classMap(classes)} style=${styleMap(orientationMarginStyle)}>\n <span class=\"divider__text\">\n <slot></slot>\n </span>\n </div>\n `;\n }\n}"]}
|
package/divider.style.js
CHANGED
|
@@ -1,49 +1,124 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
export default css `
|
|
3
|
-
:host {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
--hy-divider-local-light-color: #e0e0e0; /* Light mode divider color */
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
:host([type="vertical"]) {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
.divider {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
color: var(--nuraly-divider-text-color);
|
|
17
|
+
font-size: var(--nuraly-divider-font-size);
|
|
18
|
+
line-height: 1.5715;
|
|
19
|
+
list-style: none;
|
|
20
|
+
font-family: inherit;
|
|
21
|
+
}
|
|
17
22
|
|
|
18
|
-
|
|
23
|
+
/* Horizontal Divider */
|
|
24
|
+
.divider--horizontal {
|
|
25
|
+
display: flex;
|
|
26
|
+
clear: both;
|
|
19
27
|
width: 100%;
|
|
20
|
-
|
|
28
|
+
min-width: 100%;
|
|
29
|
+
margin: var(--nuraly-divider-margin-vertical, 24px) 0;
|
|
30
|
+
border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.12));
|
|
31
|
+
}
|
|
21
32
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
/* Horizontal with text */
|
|
34
|
+
.divider--horizontal.divider--with-text {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
margin: var(--nuraly-divider-margin-vertical) 0;
|
|
38
|
+
color: var(--nuraly-divider-text-color);
|
|
39
|
+
font-weight: 500;
|
|
40
|
+
font-size: var(--nuraly-divider-font-size);
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
text-align: center;
|
|
43
|
+
border-block-start: 0;
|
|
44
|
+
}
|
|
26
45
|
|
|
27
|
-
.horizontal
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
.divider--horizontal.divider--with-text::before,
|
|
47
|
+
.divider--horizontal.divider--with-text::after {
|
|
48
|
+
position: relative;
|
|
49
|
+
width: 50%;
|
|
50
|
+
border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.12));
|
|
51
|
+
border-block-end: 0;
|
|
52
|
+
transform: translateY(50%);
|
|
53
|
+
content: '';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Text positioning */
|
|
57
|
+
.divider--start::before {
|
|
58
|
+
width: var(--nuraly-divider-orientation-margin-left, 5%);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.divider--start::after {
|
|
62
|
+
width: 95%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.divider--end::before {
|
|
66
|
+
width: 95%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.divider--end::after {
|
|
70
|
+
width: var(--nuraly-divider-orientation-margin-right, 5%);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Text wrapper */
|
|
74
|
+
.divider__text {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
padding: 0 var(--nuraly-divider-text-padding, 1em);
|
|
77
|
+
color: var(--nuraly-divider-text-color, rgba(0, 0, 0, 0.88));
|
|
78
|
+
font-size: var(--nuraly-divider-font-size, 1rem);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Plain text style */
|
|
82
|
+
.divider--plain .divider__text {
|
|
83
|
+
font-weight: normal;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Vertical Divider */
|
|
87
|
+
.divider--vertical {
|
|
88
|
+
position: relative;
|
|
89
|
+
top: -0.06em;
|
|
90
|
+
display: inline-block;
|
|
91
|
+
height: 0.9em;
|
|
92
|
+
margin: 0 var(--nuraly-divider-margin-horizontal, 8px);
|
|
93
|
+
vertical-align: middle;
|
|
94
|
+
border-top: 0;
|
|
95
|
+
border-inline-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.12));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Variant styles */
|
|
99
|
+
.divider--solid {
|
|
100
|
+
--nuraly-divider-variant-style: solid;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.divider--dashed {
|
|
104
|
+
--nuraly-divider-variant-style: dashed;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.divider--dotted {
|
|
108
|
+
--nuraly-divider-variant-style: dotted;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Size variations (horizontal only) */
|
|
112
|
+
.divider--horizontal.divider--small {
|
|
113
|
+
margin: var(--nuraly-divider-margin-vertical-small) 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.divider--horizontal.divider--middle {
|
|
117
|
+
margin: var(--nuraly-divider-margin-vertical-middle) 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.divider--horizontal.divider--large {
|
|
121
|
+
margin: var(--nuraly-divider-margin-vertical-large) 0;
|
|
122
|
+
}
|
|
48
123
|
`;
|
|
49
124
|
//# sourceMappingURL=divider.style.js.map
|
package/divider.style.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.style.js","sourceRoot":"","sources":["../../../src/components/divider/divider.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,eAAe,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"divider.style.js","sourceRoot":"","sources":["../../../src/components/divider/divider.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyHjB,CAAC","sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n :host {\n display: block;\n box-sizing: border-box;\n }\n\n :host([type=\"vertical\"]) {\n display: inline-block;\n }\n\n .divider {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: var(--nuraly-divider-text-color);\n font-size: var(--nuraly-divider-font-size);\n line-height: 1.5715;\n list-style: none;\n font-family: inherit;\n }\n\n /* Horizontal Divider */\n .divider--horizontal {\n display: flex;\n clear: both;\n width: 100%;\n min-width: 100%;\n margin: var(--nuraly-divider-margin-vertical, 24px) 0;\n border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.12));\n }\n\n /* Horizontal with text */\n .divider--horizontal.divider--with-text {\n display: flex;\n align-items: center;\n margin: var(--nuraly-divider-margin-vertical) 0;\n color: var(--nuraly-divider-text-color);\n font-weight: 500;\n font-size: var(--nuraly-divider-font-size);\n white-space: nowrap;\n text-align: center;\n border-block-start: 0;\n }\n\n .divider--horizontal.divider--with-text::before,\n .divider--horizontal.divider--with-text::after {\n position: relative;\n width: 50%;\n border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.12));\n border-block-end: 0;\n transform: translateY(50%);\n content: '';\n }\n\n /* Text positioning */\n .divider--start::before {\n width: var(--nuraly-divider-orientation-margin-left, 5%);\n }\n\n .divider--start::after {\n width: 95%;\n }\n\n .divider--end::before {\n width: 95%;\n }\n\n .divider--end::after {\n width: var(--nuraly-divider-orientation-margin-right, 5%);\n }\n\n /* Text wrapper */\n .divider__text {\n display: inline-block;\n padding: 0 var(--nuraly-divider-text-padding, 1em);\n color: var(--nuraly-divider-text-color, rgba(0, 0, 0, 0.88));\n font-size: var(--nuraly-divider-font-size, 1rem);\n }\n\n /* Plain text style */\n .divider--plain .divider__text {\n font-weight: normal;\n }\n\n /* Vertical Divider */\n .divider--vertical {\n position: relative;\n top: -0.06em;\n display: inline-block;\n height: 0.9em;\n margin: 0 var(--nuraly-divider-margin-horizontal, 8px);\n vertical-align: middle;\n border-top: 0;\n border-inline-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.12));\n }\n\n /* Variant styles */\n .divider--solid {\n --nuraly-divider-variant-style: solid;\n }\n\n .divider--dashed {\n --nuraly-divider-variant-style: dashed;\n }\n\n .divider--dotted {\n --nuraly-divider-variant-style: dotted;\n }\n\n /* Size variations (horizontal only) */\n .divider--horizontal.divider--small {\n margin: var(--nuraly-divider-margin-vertical-small) 0;\n }\n\n .divider--horizontal.divider--middle {\n margin: var(--nuraly-divider-margin-vertical-middle) 0;\n }\n\n .divider--horizontal.divider--large {\n margin: var(--nuraly-divider-margin-vertical-large) 0;\n }\n`;"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Divider Component Types
|
|
3
|
+
* Based on Ant Design Divider API
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Direction type of the divider
|
|
7
|
+
*/
|
|
8
|
+
export declare const enum DividerType {
|
|
9
|
+
Horizontal = "horizontal",
|
|
10
|
+
Vertical = "vertical"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Position of title inside horizontal divider
|
|
14
|
+
*/
|
|
15
|
+
export declare const enum DividerOrientation {
|
|
16
|
+
Start = "start",
|
|
17
|
+
Center = "center",
|
|
18
|
+
End = "end"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Line style variant of the divider
|
|
22
|
+
*/
|
|
23
|
+
export declare const enum DividerVariant {
|
|
24
|
+
Solid = "solid",
|
|
25
|
+
Dashed = "dashed",
|
|
26
|
+
Dotted = "dotted"
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Size of the divider (only for horizontal)
|
|
30
|
+
*/
|
|
31
|
+
export declare const enum DividerSize {
|
|
32
|
+
Small = "small",
|
|
33
|
+
Middle = "middle",
|
|
34
|
+
Large = "large"
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Configuration interface for Divider component
|
|
38
|
+
*/
|
|
39
|
+
export interface DividerConfig {
|
|
40
|
+
/** The direction type of divider */
|
|
41
|
+
type?: DividerType;
|
|
42
|
+
/** Whether line is dashed (deprecated, use variant instead) */
|
|
43
|
+
dashed?: boolean;
|
|
44
|
+
/** Line style variant */
|
|
45
|
+
variant?: DividerVariant;
|
|
46
|
+
/** Position of title inside divider */
|
|
47
|
+
orientation?: DividerOrientation;
|
|
48
|
+
/** Margin between title and closest border */
|
|
49
|
+
orientationMargin?: string | number;
|
|
50
|
+
/** Divider text show as plain style */
|
|
51
|
+
plain?: boolean;
|
|
52
|
+
/** Size of divider (only for horizontal) */
|
|
53
|
+
size?: DividerSize;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=divider.types.d.ts.map
|
package/divider.types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.types.js","sourceRoot":"","sources":["../../../src/components/divider/divider.types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * Divider Component Types\n * Based on Ant Design Divider API\n */\n\n/**\n * Direction type of the divider\n */\nexport const enum DividerType {\n Horizontal = 'horizontal',\n Vertical = 'vertical'\n}\n\n/**\n * Position of title inside horizontal divider\n */\nexport const enum DividerOrientation {\n Start = 'start',\n Center = 'center',\n End = 'end'\n}\n\n/**\n * Line style variant of the divider\n */\nexport const enum DividerVariant {\n Solid = 'solid',\n Dashed = 'dashed',\n Dotted = 'dotted'\n}\n\n/**\n * Size of the divider (only for horizontal)\n */\nexport const enum DividerSize {\n Small = 'small',\n Middle = 'middle',\n Large = 'large'\n}\n\n/**\n * Configuration interface for Divider component\n */\nexport interface DividerConfig {\n /** The direction type of divider */\n type?: DividerType;\n /** Whether line is dashed (deprecated, use variant instead) */\n dashed?: boolean;\n /** Line style variant */\n variant?: DividerVariant;\n /** Position of title inside divider */\n orientation?: DividerOrientation;\n /** Margin between title and closest border */\n orientationMargin?: string | number;\n /** Divider text show as plain style */\n plain?: boolean;\n /** Size of divider (only for horizontal) */\n size?: DividerSize;\n}\n"]}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/divider/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC","sourcesContent":["export * from './divider.component.js'
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/divider/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './divider.component.js';\nexport * from './divider.types.js';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuralyui/divider",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -8,5 +8,19 @@
|
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
9
|
},
|
|
10
10
|
"author": "Labidi Aymen",
|
|
11
|
-
"license": "ISC"
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./index.js"
|
|
15
|
+
},
|
|
16
|
+
"./bundle": {
|
|
17
|
+
"import": "./bundle.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"bundle.js",
|
|
22
|
+
"*.js",
|
|
23
|
+
"*.d.ts",
|
|
24
|
+
"*.js.map"
|
|
25
|
+
]
|
|
12
26
|
}
|
package/react.d.ts
CHANGED
|
@@ -1,304 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly accessKeyLabel: string;
|
|
4
|
-
autocapitalize: string;
|
|
5
|
-
dir: string;
|
|
6
|
-
draggable: boolean;
|
|
7
|
-
hidden: boolean;
|
|
8
|
-
innerText: string;
|
|
9
|
-
lang: string;
|
|
10
|
-
readonly offsetHeight: number;
|
|
11
|
-
readonly offsetLeft: number;
|
|
12
|
-
readonly offsetParent: Element | null;
|
|
13
|
-
readonly offsetTop: number;
|
|
14
|
-
readonly offsetWidth: number;
|
|
15
|
-
outerText: string;
|
|
16
|
-
spellcheck: boolean;
|
|
17
|
-
title: string;
|
|
18
|
-
translate: boolean;
|
|
19
|
-
attachInternals(): ElementInternals;
|
|
20
|
-
click(): void;
|
|
21
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
22
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
23
|
-
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
24
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
25
|
-
readonly attributes: NamedNodeMap;
|
|
26
|
-
readonly classList: DOMTokenList;
|
|
27
|
-
className: string;
|
|
28
|
-
readonly clientHeight: number;
|
|
29
|
-
readonly clientLeft: number;
|
|
30
|
-
readonly clientTop: number;
|
|
31
|
-
readonly clientWidth: number;
|
|
32
|
-
id: string;
|
|
33
|
-
readonly localName: string;
|
|
34
|
-
readonly namespaceURI: string | null;
|
|
35
|
-
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
36
|
-
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
37
|
-
outerHTML: string;
|
|
38
|
-
readonly ownerDocument: Document;
|
|
39
|
-
readonly part: DOMTokenList;
|
|
40
|
-
readonly prefix: string | null;
|
|
41
|
-
readonly scrollHeight: number;
|
|
42
|
-
scrollLeft: number;
|
|
43
|
-
scrollTop: number;
|
|
44
|
-
readonly scrollWidth: number;
|
|
45
|
-
readonly shadowRoot: ShadowRoot | null;
|
|
46
|
-
slot: string;
|
|
47
|
-
readonly tagName: string;
|
|
48
|
-
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
49
|
-
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
50
|
-
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
51
|
-
closest<E extends Element = Element>(selectors: string): E | null;
|
|
52
|
-
getAttribute(qualifiedName: string): string | null;
|
|
53
|
-
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
54
|
-
getAttributeNames(): string[];
|
|
55
|
-
getAttributeNode(qualifiedName: string): Attr | null;
|
|
56
|
-
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
57
|
-
getBoundingClientRect(): DOMRect;
|
|
58
|
-
getClientRects(): DOMRectList;
|
|
59
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
60
|
-
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
61
|
-
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
62
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
63
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
64
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
65
|
-
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
66
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
67
|
-
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
68
|
-
hasAttributes(): boolean;
|
|
69
|
-
hasPointerCapture(pointerId: number): boolean;
|
|
70
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
71
|
-
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
72
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
73
|
-
matches(selectors: string): boolean;
|
|
74
|
-
releasePointerCapture(pointerId: number): void;
|
|
75
|
-
removeAttribute(qualifiedName: string): void;
|
|
76
|
-
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
77
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
78
|
-
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
79
|
-
requestPointerLock(): void;
|
|
80
|
-
scroll(options?: ScrollToOptions | undefined): void;
|
|
81
|
-
scroll(x: number, y: number): void;
|
|
82
|
-
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
83
|
-
scrollBy(x: number, y: number): void;
|
|
84
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
85
|
-
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
86
|
-
scrollTo(x: number, y: number): void;
|
|
87
|
-
setAttribute(qualifiedName: string, value: string): void;
|
|
88
|
-
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
89
|
-
setAttributeNode(attr: Attr): Attr | null;
|
|
90
|
-
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
91
|
-
setPointerCapture(pointerId: number): void;
|
|
92
|
-
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
93
|
-
webkitMatchesSelector(selectors: string): boolean;
|
|
94
|
-
readonly baseURI: string;
|
|
95
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
96
|
-
readonly firstChild: ChildNode | null;
|
|
97
|
-
readonly isConnected: boolean;
|
|
98
|
-
readonly lastChild: ChildNode | null;
|
|
99
|
-
readonly nextSibling: ChildNode | null;
|
|
100
|
-
readonly nodeName: string;
|
|
101
|
-
readonly nodeType: number;
|
|
102
|
-
nodeValue: string | null;
|
|
103
|
-
readonly parentElement: HTMLElement | null;
|
|
104
|
-
readonly parentNode: ParentNode | null;
|
|
105
|
-
readonly previousSibling: ChildNode | null;
|
|
106
|
-
textContent: string | null;
|
|
107
|
-
appendChild<T extends Node>(node: T): T;
|
|
108
|
-
cloneNode(deep?: boolean | undefined): Node;
|
|
109
|
-
compareDocumentPosition(other: Node): number;
|
|
110
|
-
contains(other: Node | null): boolean;
|
|
111
|
-
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
112
|
-
hasChildNodes(): boolean;
|
|
113
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
114
|
-
isDefaultNamespace(namespace: string | null): boolean;
|
|
115
|
-
isEqualNode(otherNode: Node | null): boolean;
|
|
116
|
-
isSameNode(otherNode: Node | null): boolean;
|
|
117
|
-
lookupNamespaceURI(prefix: string | null): string | null;
|
|
118
|
-
lookupPrefix(namespace: string | null): string | null;
|
|
119
|
-
normalize(): void;
|
|
120
|
-
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
121
|
-
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
122
|
-
readonly ATTRIBUTE_NODE: number;
|
|
123
|
-
readonly CDATA_SECTION_NODE: number;
|
|
124
|
-
readonly COMMENT_NODE: number;
|
|
125
|
-
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
126
|
-
readonly DOCUMENT_NODE: number;
|
|
127
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
128
|
-
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
129
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
130
|
-
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
131
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
132
|
-
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
133
|
-
readonly DOCUMENT_TYPE_NODE: number;
|
|
134
|
-
readonly ELEMENT_NODE: number;
|
|
135
|
-
readonly ENTITY_NODE: number;
|
|
136
|
-
readonly ENTITY_REFERENCE_NODE: number;
|
|
137
|
-
readonly NOTATION_NODE: number;
|
|
138
|
-
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
139
|
-
readonly TEXT_NODE: number;
|
|
140
|
-
dispatchEvent(event: Event): boolean;
|
|
141
|
-
ariaAtomic: string | null;
|
|
142
|
-
ariaAutoComplete: string | null;
|
|
143
|
-
ariaBusy: string | null;
|
|
144
|
-
ariaChecked: string | null;
|
|
145
|
-
ariaColCount: string | null;
|
|
146
|
-
ariaColIndex: string | null;
|
|
147
|
-
ariaColSpan: string | null;
|
|
148
|
-
ariaCurrent: string | null;
|
|
149
|
-
ariaDisabled: string | null;
|
|
150
|
-
ariaExpanded: string | null;
|
|
151
|
-
ariaHasPopup: string | null;
|
|
152
|
-
ariaHidden: string | null;
|
|
153
|
-
ariaKeyShortcuts: string | null;
|
|
154
|
-
ariaLabel: string | null;
|
|
155
|
-
ariaLevel: string | null;
|
|
156
|
-
ariaLive: string | null;
|
|
157
|
-
ariaModal: string | null;
|
|
158
|
-
ariaMultiLine: string | null;
|
|
159
|
-
ariaMultiSelectable: string | null;
|
|
160
|
-
ariaOrientation: string | null;
|
|
161
|
-
ariaPlaceholder: string | null;
|
|
162
|
-
ariaPosInSet: string | null;
|
|
163
|
-
ariaPressed: string | null;
|
|
164
|
-
ariaReadOnly: string | null;
|
|
165
|
-
ariaRequired: string | null;
|
|
166
|
-
ariaRoleDescription: string | null;
|
|
167
|
-
ariaRowCount: string | null;
|
|
168
|
-
ariaRowIndex: string | null;
|
|
169
|
-
ariaRowSpan: string | null;
|
|
170
|
-
ariaSelected: string | null;
|
|
171
|
-
ariaSetSize: string | null;
|
|
172
|
-
ariaSort: string | null;
|
|
173
|
-
ariaValueMax: string | null;
|
|
174
|
-
ariaValueMin: string | null;
|
|
175
|
-
ariaValueNow: string | null;
|
|
176
|
-
ariaValueText: string | null;
|
|
177
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
178
|
-
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
179
|
-
after(...nodes: (string | Node)[]): void;
|
|
180
|
-
before(...nodes: (string | Node)[]): void;
|
|
181
|
-
remove(): void;
|
|
182
|
-
replaceWith(...nodes: (string | Node)[]): void;
|
|
183
|
-
innerHTML: string;
|
|
184
|
-
readonly nextElementSibling: Element | null;
|
|
185
|
-
readonly previousElementSibling: Element | null;
|
|
186
|
-
readonly childElementCount: number;
|
|
187
|
-
readonly children: HTMLCollection;
|
|
188
|
-
readonly firstElementChild: Element | null;
|
|
189
|
-
readonly lastElementChild: Element | null;
|
|
190
|
-
append(...nodes: (string | Node)[]): void;
|
|
191
|
-
prepend(...nodes: (string | Node)[]): void;
|
|
192
|
-
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
|
|
193
|
-
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
|
|
194
|
-
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
195
|
-
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
196
|
-
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
|
197
|
-
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
198
|
-
replaceChildren(...nodes: (string | Node)[]): void;
|
|
199
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
200
|
-
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
201
|
-
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
202
|
-
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
203
|
-
readonly style: CSSStyleDeclaration;
|
|
204
|
-
contentEditable: string;
|
|
205
|
-
enterKeyHint: string;
|
|
206
|
-
inputMode: string;
|
|
207
|
-
readonly isContentEditable: boolean;
|
|
208
|
-
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
209
|
-
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
210
|
-
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
211
|
-
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
212
|
-
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
213
|
-
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
214
|
-
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
215
|
-
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
216
|
-
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
217
|
-
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
218
|
-
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
219
|
-
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
220
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
221
|
-
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
222
|
-
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
223
|
-
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
224
|
-
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
225
|
-
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
226
|
-
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
227
|
-
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
228
|
-
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
229
|
-
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
230
|
-
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
231
|
-
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
232
|
-
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
233
|
-
onerror: OnErrorEventHandler;
|
|
234
|
-
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
235
|
-
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
236
|
-
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
237
|
-
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
238
|
-
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
239
|
-
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
240
|
-
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
241
|
-
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
242
|
-
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
243
|
-
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
244
|
-
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
245
|
-
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
246
|
-
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
247
|
-
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
248
|
-
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
249
|
-
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
250
|
-
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
251
|
-
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
252
|
-
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
253
|
-
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
254
|
-
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
255
|
-
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
256
|
-
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
257
|
-
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
258
|
-
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
259
|
-
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
260
|
-
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
261
|
-
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
262
|
-
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
263
|
-
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
264
|
-
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
265
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
266
|
-
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
|
-
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
268
|
-
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
269
|
-
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
270
|
-
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
271
|
-
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
272
|
-
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
273
|
-
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
274
|
-
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
275
|
-
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
276
|
-
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
277
|
-
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
278
|
-
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
279
|
-
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
280
|
-
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
281
|
-
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
282
|
-
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
283
|
-
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
284
|
-
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
285
|
-
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
286
|
-
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
287
|
-
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
288
|
-
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
289
|
-
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
290
|
-
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
291
|
-
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
292
|
-
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
293
|
-
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
294
|
-
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
295
|
-
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
296
|
-
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
297
|
-
autofocus: boolean;
|
|
298
|
-
readonly dataset: DOMStringMap;
|
|
299
|
-
nonce?: string | undefined;
|
|
300
|
-
tabIndex: number;
|
|
301
|
-
blur(): void;
|
|
302
|
-
focus(options?: FocusOptions | undefined): void;
|
|
303
|
-
}, {}>;
|
|
1
|
+
import { NrDividerElement } from './divider.component.js';
|
|
2
|
+
export declare const NrDivider: import("@lit-labs/react").ReactWebComponent<NrDividerElement, {}>;
|
|
304
3
|
//# sourceMappingURL=react.d.ts.map
|
package/react.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createComponent } from '@lit-labs/react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { NrDividerElement } from './divider.component.js';
|
|
4
|
+
export const NrDivider = createComponent({
|
|
5
|
+
tagName: 'nr-divider',
|
|
6
|
+
elementClass: NrDividerElement,
|
|
7
7
|
react: React,
|
|
8
8
|
events: {},
|
|
9
9
|
});
|
package/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../src/components/divider/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../src/components/divider/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;IACvC,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE,gBAAgB;IAC9B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,EAAE;CACX,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit-labs/react';\nimport * as React from 'react';\nimport { NrDividerElement } from './divider.component.js';\nexport const NrDivider = createComponent({\n tagName: 'nr-divider',\n elementClass: NrDividerElement,\n react: React,\n events: {},\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"divider.component.d.ts","sourceRoot":"","sources":["../../../src/components/divider/divider.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,qBACa,SAAU,SAAQ,UAAU;IACvC,OAAgB,MAAM,0BAAU;IAGhC,KAAK,SAAM;IAGX,SAAS,SAAM;IAGf,UAAU,SAAM;IAGhB,WAAW,EAAE,YAAY,GAAG,UAAU,CAAgB;IAGtD,SAAS,SAAK;IAEL,UAAU,CAAC,iBAAiB,EAAE;QAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAA;KAAC;IAe1D,MAAM;CAGhB"}
|
package/divider.style.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"divider.style.d.ts","sourceRoot":"","sources":["../../../src/components/divider/divider.style.ts"],"names":[],"mappings":";AAEA,wBA8CE"}
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/divider/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
package/react.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/components/divider/react.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKpB,CAAC"}
|