@fluid-topics/ft-resizer 2.0.3 → 2.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.
@@ -631,6 +631,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
631
631
 
632
632
  .ft-resizer {
633
633
  display: flex;
634
+ overflow: hidden;
634
635
  }
635
636
 
636
637
  ft-icon {
@@ -640,7 +641,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
640
641
 
641
642
  .ft-resizer--dragging ft-icon,
642
643
  .ft-resizer:hover ft-icon,
643
- [role="button"][aria-pressed="true"] ft-icon{
644
+ [role="button"][aria-pressed="true"] ft-icon {
644
645
  color: ${g3.colorOnSurfaceMedium};
645
646
  }
646
647
  `;var k=function(e,a,c,r){var t=arguments.length,i=t<3?a:r===null?r=Object.getOwnPropertyDescriptor(a,c):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,a,c,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(t<3?o(i):t>3?o(a,c,i):o(a,c))||i);return t>3&&i&&Object.defineProperty(a,c,i),i},G2=class extends CustomEvent{constructor(a,c){super("resize",{detail:{width:a,height:c}})}},C=class extends w2.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=b.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=a=>this.doDrag(a.clientX,a.clientY),this.doDragFromTouch=a=>this.doDrag(a.touches[0].clientX,a.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return D2.html`
@@ -715,6 +715,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
715
715
 
716
716
  .ft-resizer {
717
717
  display: flex;
718
+ overflow: hidden;
718
719
  }
719
720
 
720
721
  ft-icon {
@@ -724,7 +725,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
724
725
 
725
726
  .ft-resizer--dragging ft-icon,
726
727
  .ft-resizer:hover ft-icon,
727
- [role="button"][aria-pressed="true"] ft-icon{
728
+ [role="button"][aria-pressed="true"] ft-icon {
728
729
  color: ${K2.colorOnSurfaceMedium};
729
730
  }
730
731
  `;var _e=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,r,i):c(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},wo=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},te=class extends Z{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ce.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return le`
@@ -1,5 +1,5 @@
1
1
  import { css } from "lit";
2
- import { designSystemVariables, FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
2
+ import { designSystemVariables, FtCssVariableFactory, } from "@fluid-topics/ft-wc-utils";
3
3
  export const FtResizerCssVariables = {
4
4
  colorOutline: FtCssVariableFactory.external(designSystemVariables.colorOutline, "Design system"),
5
5
  colorOnSurfaceMedium: FtCssVariableFactory.external(designSystemVariables.colorOnSurfaceMedium, "Design system"),
@@ -12,6 +12,7 @@ export const styles = css `
12
12
 
13
13
  .ft-resizer {
14
14
  display: flex;
15
+ overflow: hidden;
15
16
  }
16
17
 
17
18
  ft-icon {
@@ -21,7 +22,7 @@ export const styles = css `
21
22
 
22
23
  .ft-resizer--dragging ft-icon,
23
24
  .ft-resizer:hover ft-icon,
24
- [role="button"][aria-pressed="true"] ft-icon{
25
+ [role="button"][aria-pressed="true"] ft-icon {
25
26
  color: ${FtResizerCssVariables.colorOnSurfaceMedium};
26
27
  }
27
28
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-resizer",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "small",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "2.0.3",
23
- "@fluid-topics/ft-wc-utils": "2.0.3",
22
+ "@fluid-topics/ft-icon": "2.0.4",
23
+ "@fluid-topics/ft-wc-utils": "2.0.4",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "0f2fb13480a71c2957ef7c69492140ea685ba87e"
26
+ "gitHead": "bc275bc44bc77b2e5802f2da9e92a0aca4479155"
27
27
  }