@warp-ds/elements 2.3.0-next.17 → 2.3.0-next.19

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.
@@ -6213,7 +6213,7 @@
6213
6213
  {
6214
6214
  "kind": "class",
6215
6215
  "description": "Steps are used to show progress through a process or to guide users through a multi-step task.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)",
6216
- "name": "WarpSteps",
6216
+ "name": "WarpStepIndicator",
6217
6217
  "members": [
6218
6218
  {
6219
6219
  "kind": "field",
@@ -6265,7 +6265,7 @@
6265
6265
  "name": "LitElement",
6266
6266
  "package": "lit"
6267
6267
  },
6268
- "tagName": "w-steps",
6268
+ "tagName": "w-step-indicator",
6269
6269
  "customElement": true,
6270
6270
  "modulePath": "packages/steps/index.ts",
6271
6271
  "definitionPath": "packages/steps/index.ts"
@@ -6358,9 +6358,9 @@
6358
6358
  "exports": [
6359
6359
  {
6360
6360
  "kind": "custom-element-definition",
6361
- "name": "w-steps",
6361
+ "name": "w-step-indicator",
6362
6362
  "declaration": {
6363
- "name": "WarpSteps",
6363
+ "name": "WarpStepIndicator",
6364
6364
  "module": "packages/steps/index.ts"
6365
6365
  }
6366
6366
  },
@@ -6374,9 +6374,9 @@
6374
6374
  },
6375
6375
  {
6376
6376
  "kind": "js",
6377
- "name": "WarpSteps",
6377
+ "name": "WarpStepIndicator",
6378
6378
  "declaration": {
6379
- "name": "WarpSteps",
6379
+ "name": "WarpStepIndicator",
6380
6380
  "module": "packages/steps/index.ts"
6381
6381
  }
6382
6382
  },
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ import type { WarpPagination } from "./packages/pagination/index.ts";
24
24
  import type { WCheckboxGroup } from "./packages/rip-and-tear-checkbox/checkbox-group.ts";
25
25
  import type { WarpSliderThumb } from "./packages/slider/slider-thumb.ts";
26
26
  import type { WarpSlider } from "./packages/slider/slider.ts";
27
- import type { WarpSteps, WarpStep } from "./packages/steps/index.ts";
27
+ import type { WarpStepIndicator, WarpStep } from "./packages/steps/index.ts";
28
28
  import type { WarpSwitch } from "./packages/switch/index.ts";
29
29
  import type { WarpTab } from "./packages/tabs/tab.ts";
30
30
  import type { WarpTabs } from "./packages/tabs/tabs.ts";
@@ -775,11 +775,11 @@ If you need to display HTML, use the `label` slot instead. */
775
775
  }
776
776
 
777
777
 
778
- export type WarpStepsProps = {
778
+ export type WarpStepIndicatorProps = {
779
779
  /** */
780
- "horizontal"?: WarpSteps['horizontal'];
780
+ "horizontal"?: WarpStepIndicator['horizontal'];
781
781
  /** */
782
- "right"?: WarpSteps['right'];
782
+ "right"?: WarpStepIndicator['right'];
783
783
 
784
784
 
785
785
  }
@@ -1554,7 +1554,7 @@ export type WarpTextareaProps = {
1554
1554
  *
1555
1555
  * - `updateStepsContext() => void`: undefined
1556
1556
  */
1557
- "w-steps": Partial<WarpStepsProps & BaseProps<WarpSteps> & BaseEvents>;
1557
+ "w-step-indicator": Partial<WarpStepIndicatorProps & BaseProps<WarpStepIndicator> & BaseEvents>;
1558
1558
 
1559
1559
 
1560
1560
  /**
@@ -1704,7 +1704,7 @@ declare module '@stencil/core' {
1704
1704
  export interface CSSProperties extends CustomCssProperties {}
1705
1705
  }
1706
1706
 
1707
- declare module 'hono' {
1707
+ declare module 'hono/jsx' {
1708
1708
  namespace JSX {
1709
1709
  interface IntrinsicElements extends CustomElements {}
1710
1710
  }
@@ -2726,5 +2726,5 @@ var ce=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var K=s=>{th
2726
2726
  >${this.ariaDescription}</span
2727
2727
  >
2728
2728
  </div>
2729
- `}};l=new WeakSet,O=function(){this._showTooltip=!0,this.shadowRoot.querySelector("w-attention").handleDone()},X=function(){this._showTooltip=!1},q=function(){this.range&&(this.value===""?this.range.value=this.boundaryValue:this.value&&(this.range.value=this.value))},H=async function(e,r){let a=Number.parseInt(e);if(this.allowValuesOutsideRange&&!r&&this.step&&!(this.slot==="to"&&a>=Number(this.max)-1||this.slot==="from"&&a<=Number(this.min)+1)){let x=1/this.step;a=Math.round(a*x)/x,e=a.toString()}let c=Number.parseInt(this.max),m=Number.parseInt(this.min);if(!this.allowValuesOutsideRange&&(a>c||a<m))return this.invalid=!0,{shouldCancel:!0};if(e==="")return this.required&&(this.invalid=!0),{shouldCancel:!0};this.invalid&&(this.invalid=!1),this.value=e;let w=e===this.max||e===this.min,M=!1;if(this.slot){let f=getComputedStyle(this),x=f.getPropertyValue("--to"),F=f.getPropertyValue("--from");if(this.slot==="from"){let k=Math.min(Number.parseInt(x),this.allowValuesOutsideRange?c-1:c);a>k&&(M=!0,this.allowValuesOutsideRange&&w?this.value=String(k):this.value=x,r&&(this.invalid=!0,await this.updateComplete,this.textfield.value=e))}else{let k=Math.max(Number.parseInt(F),this.allowValuesOutsideRange?m+1:m);a<k&&(M=!0,this.allowValuesOutsideRange&&w?this.value=String(k):this.value=F,r&&(this.invalid=!0,await this.updateComplete,this.textfield.value=e))}}return M?{shouldCancel:!0}:(this.range.value=Math.min(Math.max(Number(e),Number(this.min)),Number(this.max)).toString(),this.value=this.allowValuesOutsideRange&&!r&&w?"":e,this.shadowRoot.querySelector("w-attention").handleDone(),{shouldCancel:!1})},B=async function(e){let r=e.currentTarget.tagName==="W-TEXTFIELD";if(e instanceof CustomEvent)return;let a=e.currentTarget.value;return(await g(this,l,H).call(this,a,r)).shouldCancel?(e.preventDefault(),!1):!0},ne=async function(e){if(e.key!=="ArrowLeft"&&e.key!=="ArrowRight")return;let r=Number(this.range.value),a=this.step||1,c;e.key==="ArrowLeft"?c=r-a:c=r+a,c=Math.min(Math.max(c,Number(this.min)),Number(this.max)),(await g(this,l,H).call(this,c.toString(),!1)).shouldCancel&&e.preventDefault()},se=function(e){e instanceof CustomEvent&&e.type==="focus"&&(this._inputHasFocus=!0)},le=function(e){e instanceof CustomEvent&&e.type==="blur"&&(console.log(e),this._inputHasFocus=!1)},d.shadowRootOptions={...te.shadowRootOptions,delegatesFocus:!0},d.styles=[ee,oe,re],h([V({attribute:"aria-label",reflect:!0})],d.prototype,"ariaLabel",2),h([V({attribute:"aria-description",reflect:!0})],d.prototype,"ariaDescription",2),h([V({reflect:!0})],d.prototype,"label",2),h([V({reflect:!0})],d.prototype,"name",2),h([V({reflect:!0})],d.prototype,"value",2),h([V({type:Boolean,reflect:!0})],d.prototype,"disabled",2),h([V({type:Boolean,reflect:!0})],d.prototype,"invalid",2),h([V({attribute:!1,reflect:!1})],d.prototype,"allowValuesOutsideRange",2),h([z()],d.prototype,"markers",2),h([z()],d.prototype,"required",2),h([z()],d.prototype,"step",2),h([z()],d.prototype,"min",2),h([z()],d.prototype,"max",2),h([z()],d.prototype,"suffix",2),h([z()],d.prototype,"formatter",2),h([ae('input[type="range"]')],d.prototype,"range",2),h([ae("w-textfield")],d.prototype,"textfield",2),h([z()],d.prototype,"_showTooltip",2),h([z()],d.prototype,"_inputHasFocus",2);customElements.get("w-slider-thumb")||customElements.define("w-slider-thumb",d);export{d as WarpSliderThumb};
2729
+ `}};l=new WeakSet,O=function(){this._showTooltip=!0,this.shadowRoot.querySelector("w-attention").handleDone()},X=function(){this._showTooltip=!1},q=function(){this.range&&(this.value===""?this.range.value=this.boundaryValue:this.value&&(this.range.value=this.value))},H=async function(e,r){let a=Number.parseInt(e);if(this.allowValuesOutsideRange&&!r&&this.step&&!(this.slot==="to"&&a>=Number(this.max)-1||this.slot==="from"&&a<=Number(this.min)+1)){let x=1/this.step;a=Math.round(a*x)/x,e=a.toString()}let c=Number.parseInt(this.max),m=Number.parseInt(this.min);if(!this.allowValuesOutsideRange&&(a>c||a<m))return this.invalid=!0,{shouldCancel:!0};if(e==="")return this.required&&(this.invalid=!0),{shouldCancel:!0};this.invalid&&(this.invalid=!1),this.value=e;let w=e===this.max||e===this.min,M=!1;if(this.slot){let f=getComputedStyle(this),x=f.getPropertyValue("--to"),F=f.getPropertyValue("--from");if(this.slot==="from"){let k=Math.min(Number.parseInt(x),this.allowValuesOutsideRange?c-1:c);a>k&&(M=!0,this.allowValuesOutsideRange&&w?this.value=String(k):this.value=x,r&&(this.invalid=!0,await this.updateComplete,this.textfield.value=e))}else{let k=Math.max(Number.parseInt(F),this.allowValuesOutsideRange?m+1:m);a<k&&(M=!0,this.allowValuesOutsideRange&&w?this.value=String(k):this.value=F,r&&(this.invalid=!0,await this.updateComplete,this.textfield.value=e))}}return M?{shouldCancel:!0}:(this.range.value=Math.min(Math.max(Number(e),Number(this.min)),Number(this.max)).toString(),this.value=this.allowValuesOutsideRange&&!r&&w?"":e,this.shadowRoot.querySelector("w-attention").handleDone(),{shouldCancel:!1})},B=async function(e){let r=e.currentTarget.tagName==="W-TEXTFIELD";if(e instanceof CustomEvent)return;let a=e.currentTarget.value;return(await g(this,l,H).call(this,a,r)).shouldCancel?(e.preventDefault(),!1):!0},ne=async function(e){if(e.key!=="ArrowLeft"&&e.key!=="ArrowRight")return;let r=Number(this.range.value),a=this.step||1,c;e.key==="ArrowLeft"?c=r-a:c=r+a,c=Math.min(Math.max(c,Number(this.min)),Number(this.max)),(await g(this,l,H).call(this,c.toString(),!1)).shouldCancel&&e.preventDefault()},se=function(e){e instanceof CustomEvent&&e.type==="focus"&&(this._inputHasFocus=!0)},le=function(e){e instanceof CustomEvent&&e.type==="blur"&&(this._inputHasFocus=!1)},d.shadowRootOptions={...te.shadowRootOptions,delegatesFocus:!0},d.styles=[ee,oe,re],h([V({attribute:"aria-label",reflect:!0})],d.prototype,"ariaLabel",2),h([V({attribute:"aria-description",reflect:!0})],d.prototype,"ariaDescription",2),h([V({reflect:!0})],d.prototype,"label",2),h([V({reflect:!0})],d.prototype,"name",2),h([V({reflect:!0})],d.prototype,"value",2),h([V({type:Boolean,reflect:!0})],d.prototype,"disabled",2),h([V({type:Boolean,reflect:!0})],d.prototype,"invalid",2),h([V({attribute:!1,reflect:!1})],d.prototype,"allowValuesOutsideRange",2),h([z()],d.prototype,"markers",2),h([z()],d.prototype,"required",2),h([z()],d.prototype,"step",2),h([z()],d.prototype,"min",2),h([z()],d.prototype,"max",2),h([z()],d.prototype,"suffix",2),h([z()],d.prototype,"formatter",2),h([ae('input[type="range"]')],d.prototype,"range",2),h([ae("w-textfield")],d.prototype,"textfield",2),h([z()],d.prototype,"_showTooltip",2),h([z()],d.prototype,"_inputHasFocus",2);customElements.get("w-slider-thumb")||customElements.define("w-slider-thumb",d);export{d as WarpSliderThumb};
2730
2730
  //# sourceMappingURL=slider-thumb.js.map