@limetech/lime-elements 39.7.1 → 39.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +2 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +23 -3
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/image/node.js +1 -0
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/image/view.js +1 -0
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-icon-button.entry.js +2 -2
- package/dist/esm/limel-prosemirror-adapter.entry.js +2 -0
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-0fa2add8.entry.js → p-64f664b0.entry.js} +1 -1
- package/dist/lime-elements/p-7afe6c3e.entry.js +1 -0
- package/dist/lime-elements/scss/mixins.scss +722 -0
- package/dist/types/components/icon-button/icon-button.d.ts +9 -0
- package/dist/types/components.d.ts +15 -2
- package/package.json +1 -1
- package/dist/lime-elements/p-26bc957e.entry.js +0 -1
- /package/dist/{scss → collection/scss}/mixins.scss +0 -0
|
@@ -5,6 +5,7 @@ import { Icon } from '../../global/shared-types/icon.types';
|
|
|
5
5
|
* @exampleComponent limel-example-icon-button-elevated
|
|
6
6
|
* @exampleComponent limel-example-icon-button-toggle-state
|
|
7
7
|
* @exampleComponent limel-example-icon-button-icon
|
|
8
|
+
* @exampleComponent limel-example-icon-button-helper-label
|
|
8
9
|
* @exampleComponent limel-example-icon-button-composite
|
|
9
10
|
*/
|
|
10
11
|
export declare class IconButton {
|
|
@@ -19,8 +20,16 @@ export declare class IconButton {
|
|
|
19
20
|
elevated: boolean;
|
|
20
21
|
/**
|
|
21
22
|
* The text to show to screenreaders and other assistive tech.
|
|
23
|
+
* It is also displayed as a tooltip when the user hovers
|
|
24
|
+
* or focuses the button.
|
|
22
25
|
*/
|
|
23
26
|
label: string;
|
|
27
|
+
/**
|
|
28
|
+
* Additional helper text for the tooltip.
|
|
29
|
+
* Example usage can be a keyboard shortcut to activate
|
|
30
|
+
* the function of the button.
|
|
31
|
+
*/
|
|
32
|
+
helperLabel?: string;
|
|
24
33
|
/**
|
|
25
34
|
* Set to `true` to disable the button.
|
|
26
35
|
*/
|
|
@@ -2042,6 +2042,7 @@ export namespace Components {
|
|
|
2042
2042
|
* @exampleComponent limel-example-icon-button-elevated
|
|
2043
2043
|
* @exampleComponent limel-example-icon-button-toggle-state
|
|
2044
2044
|
* @exampleComponent limel-example-icon-button-icon
|
|
2045
|
+
* @exampleComponent limel-example-icon-button-helper-label
|
|
2045
2046
|
* @exampleComponent limel-example-icon-button-composite
|
|
2046
2047
|
*/
|
|
2047
2048
|
interface LimelIconButton {
|
|
@@ -2055,12 +2056,16 @@ export namespace Components {
|
|
|
2055
2056
|
* @default false
|
|
2056
2057
|
*/
|
|
2057
2058
|
"elevated": boolean;
|
|
2059
|
+
/**
|
|
2060
|
+
* Additional helper text for the tooltip. Example usage can be a keyboard shortcut to activate the function of the button.
|
|
2061
|
+
*/
|
|
2062
|
+
"helperLabel"?: string;
|
|
2058
2063
|
/**
|
|
2059
2064
|
* The icon to display.
|
|
2060
2065
|
*/
|
|
2061
2066
|
"icon": string | Icon;
|
|
2062
2067
|
/**
|
|
2063
|
-
* The text to show to screenreaders and other assistive tech.
|
|
2068
|
+
* The text to show to screenreaders and other assistive tech. It is also displayed as a tooltip when the user hovers or focuses the button.
|
|
2064
2069
|
*/
|
|
2065
2070
|
"label": string;
|
|
2066
2071
|
}
|
|
@@ -5258,6 +5263,7 @@ declare global {
|
|
|
5258
5263
|
* @exampleComponent limel-example-icon-button-elevated
|
|
5259
5264
|
* @exampleComponent limel-example-icon-button-toggle-state
|
|
5260
5265
|
* @exampleComponent limel-example-icon-button-icon
|
|
5266
|
+
* @exampleComponent limel-example-icon-button-helper-label
|
|
5261
5267
|
* @exampleComponent limel-example-icon-button-composite
|
|
5262
5268
|
*/
|
|
5263
5269
|
interface HTMLLimelIconButtonElement extends Components.LimelIconButton, HTMLStencilElement {
|
|
@@ -8450,6 +8456,7 @@ declare namespace LocalJSX {
|
|
|
8450
8456
|
* @exampleComponent limel-example-icon-button-elevated
|
|
8451
8457
|
* @exampleComponent limel-example-icon-button-toggle-state
|
|
8452
8458
|
* @exampleComponent limel-example-icon-button-icon
|
|
8459
|
+
* @exampleComponent limel-example-icon-button-helper-label
|
|
8453
8460
|
* @exampleComponent limel-example-icon-button-composite
|
|
8454
8461
|
*/
|
|
8455
8462
|
interface LimelIconButton {
|
|
@@ -8463,12 +8470,16 @@ declare namespace LocalJSX {
|
|
|
8463
8470
|
* @default false
|
|
8464
8471
|
*/
|
|
8465
8472
|
"elevated"?: boolean;
|
|
8473
|
+
/**
|
|
8474
|
+
* Additional helper text for the tooltip. Example usage can be a keyboard shortcut to activate the function of the button.
|
|
8475
|
+
*/
|
|
8476
|
+
"helperLabel"?: string;
|
|
8466
8477
|
/**
|
|
8467
8478
|
* The icon to display.
|
|
8468
8479
|
*/
|
|
8469
8480
|
"icon"?: string | Icon;
|
|
8470
8481
|
/**
|
|
8471
|
-
* The text to show to screenreaders and other assistive tech.
|
|
8482
|
+
* The text to show to screenreaders and other assistive tech. It is also displayed as a tooltip when the user hovers or focuses the button.
|
|
8472
8483
|
*/
|
|
8473
8484
|
"label"?: string;
|
|
8474
8485
|
}
|
|
@@ -10736,6 +10747,7 @@ declare namespace LocalJSX {
|
|
|
10736
10747
|
"icon": string | Icon;
|
|
10737
10748
|
"elevated": boolean;
|
|
10738
10749
|
"label": string;
|
|
10750
|
+
"helperLabel": string;
|
|
10739
10751
|
"disabled": boolean;
|
|
10740
10752
|
}
|
|
10741
10753
|
interface LimelInfoTileAttributes {
|
|
@@ -11821,6 +11833,7 @@ declare module "@stencil/core" {
|
|
|
11821
11833
|
* @exampleComponent limel-example-icon-button-elevated
|
|
11822
11834
|
* @exampleComponent limel-example-icon-button-toggle-state
|
|
11823
11835
|
* @exampleComponent limel-example-icon-button-icon
|
|
11836
|
+
* @exampleComponent limel-example-icon-button-helper-label
|
|
11824
11837
|
* @exampleComponent limel-example-icon-button-composite
|
|
11825
11838
|
*/
|
|
11826
11839
|
"limel-icon-button": LocalJSX.IntrinsicElements["limel-icon-button"] & JSXBase.HTMLAttributes<HTMLLimelIconButtonElement>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as t,H as e,a}from"./p-DBTJNfo7.js";import{m as s,r as i}from"./p-BgTwPGeH.js";import{c as n}from"./p-JbKhhoXs.js";import{d as r,g as l}from"./p-CgNJbSP4.js";const d=class{constructor(t){o(this,t),this.elevated=!1,this.disabled=!1,this.tooltipId=n(),this.filterClickWhenDisabled=o=>{this.disabled&&o.preventDefault()}}connectedCallback(){this.initialize()}componentWillLoad(){s(this.host)}disconnectedCallback(){i(this.host)}componentDidLoad(){this.initialize()}initialize(){this.host.shadowRoot.querySelector(".mdc-icon-button")}render(){const o={};return this.host.hasAttribute("tabindex")&&(o.tabindex=this.host.getAttribute("tabindex")),t(e,{key:"eb93a508920a2a1124a5002faf24cbe837c5ff48",onClick:this.filterClickWhenDisabled},t("button",Object.assign({key:"b4ef2d7c4f260a88be131e072e9db8f560ed136b",disabled:this.disabled,id:this.tooltipId},o),this.renderIcon(),this.renderTooltip(this.tooltipId)))}renderIcon(){var o,e;const a=l(this.icon),s=r(this.icon);return t("limel-icon",{name:a,"aria-label":s,"aria-hidden":s?null:"true",style:{color:`${null===(o=this.icon)||void 0===o?void 0:o.color}`,"--icon-background-color":`${null===(e=this.icon)||void 0===e?void 0:e.backgroundColor}`}})}renderTooltip(o){if(this.label)return t("limel-tooltip",{elementId:o,label:this.label})}static get delegatesFocus(){return!0}get host(){return a(this)}};d.style='@charset "UTF-8";:host([hidden]){display:none}:host([aria-expanded=true]) button,:host([aria-expanded]:not([aria-expanded=false])) button{box-shadow:var(--button-shadow-inset-pressed) !important}button{all:unset}button:not(:disabled){transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:var(--icon-background-color, transparent)}button:not(:disabled):hover,button:not(:disabled):focus,button:not(:disabled):focus-visible{will-change:color, background-color, box-shadow, transform}button:not(:disabled):hover,button:not(:disabled):focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}button:not(:disabled):hover{box-shadow:var(--button-shadow-hovered)}button:not(:disabled):active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}button:not(:disabled):hover,button:not(:disabled):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}button:not(:disabled):focus{outline:none}button:not(:disabled):focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}button{display:inline-flex;align-items:center;justify-content:center;height:2.25rem;width:2.25rem;border-radius:50%}button:disabled{cursor:not-allowed;color:var(--limel-theme-text-disabled-on-background-color)}:host([elevated]) button:not(:hover):not(:active):not(:disabled):not(:focus-visible){box-shadow:var(--button-shadow-normal)}:host([elevated]) button:disabled{box-shadow:var(--button-shadow-normal)}limel-icon{padding:0.25rem;width:1.75rem}';export{d as limel_icon_button}
|
|
File without changes
|