@crowdstrike/glide-core 0.24.3 → 0.24.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/dist/checkbox-group.d.ts +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/dropdown.d.ts +1 -1
- package/dist/form-controls-layout.d.ts +3 -3
- package/dist/icon-button.styles.js +1 -1
- package/dist/input.d.ts +1 -1
- package/dist/label.d.ts +2 -2
- package/dist/label.js +1 -1
- package/dist/label.styles.js +7 -2
- package/dist/library/form-control.d.ts +1 -1
- package/dist/radio-group.d.ts +1 -1
- package/dist/textarea.d.ts +1 -1
- package/dist/toggle.d.ts +1 -1
- package/package.json +1 -1
package/dist/checkbox-group.d.ts
CHANGED
@@ -63,7 +63,7 @@ export default class GlideCoreCheckboxGroup extends LitElement implements FormCo
|
|
63
63
|
label?: string;
|
64
64
|
name: string;
|
65
65
|
orientation: "horizontal";
|
66
|
-
privateSplit?: 'left' | 'middle';
|
66
|
+
privateSplit?: 'left' | 'middle' | 'right';
|
67
67
|
/**
|
68
68
|
* @default false
|
69
69
|
*/
|
package/dist/checkbox.d.ts
CHANGED
@@ -82,7 +82,7 @@ export default class GlideCoreCheckbox extends LitElement implements FormControl
|
|
82
82
|
privateShowLabelTooltip: boolean;
|
83
83
|
privateDisableLabelTooltip: boolean;
|
84
84
|
privateSize: 'large' | 'small';
|
85
|
-
privateSplit?: 'left' | 'middle';
|
85
|
+
privateSplit?: 'left' | 'middle' | 'right';
|
86
86
|
privateVariant?: 'minimal';
|
87
87
|
required: boolean;
|
88
88
|
summary?: string;
|
package/dist/dropdown.d.ts
CHANGED
@@ -96,7 +96,7 @@ export default class GlideCoreDropdown extends LitElement implements FormControl
|
|
96
96
|
set open(isOpen: boolean);
|
97
97
|
orientation: 'horizontal' | 'vertical';
|
98
98
|
placeholder?: string;
|
99
|
-
privateSplit?: 'left' | 'middle';
|
99
|
+
privateSplit?: 'left' | 'middle' | 'right';
|
100
100
|
readonly: boolean;
|
101
101
|
selectAll: boolean;
|
102
102
|
required: boolean;
|
@@ -5,7 +5,7 @@ declare global {
|
|
5
5
|
}
|
6
6
|
}
|
7
7
|
/**
|
8
|
-
* @attr {'left'|'middle'} [split='left']
|
8
|
+
* @attr {'left'|'middle'|'right'} [split='left']
|
9
9
|
*
|
10
10
|
* @readonly
|
11
11
|
* @attr {string} [version]
|
@@ -19,8 +19,8 @@ export default class GlideCoreFormControlsLayout extends LitElement {
|
|
19
19
|
/**
|
20
20
|
* @default 'left'
|
21
21
|
*/
|
22
|
-
get split(): 'left' | 'middle';
|
23
|
-
set split(split: 'left' | 'middle');
|
22
|
+
get split(): 'left' | 'middle' | 'right';
|
23
|
+
set split(split: 'left' | 'middle' | 'right');
|
24
24
|
readonly version: string;
|
25
25
|
render(): import("lit").TemplateResult<1>;
|
26
26
|
}
|
@@ -68,7 +68,7 @@ import{css}from"lit";import focusOutline from"./styles/focus-outline.js";export
|
|
68
68
|
}
|
69
69
|
|
70
70
|
&.secondary {
|
71
|
-
background-color:
|
71
|
+
background-color: transparent;
|
72
72
|
color: var(
|
73
73
|
--private-icon-color,
|
74
74
|
var(--glide-core-color-interactive-icon-default)
|
package/dist/input.d.ts
CHANGED
@@ -84,7 +84,7 @@ export default class GlideCoreInput extends LitElement implements FormControl {
|
|
84
84
|
required: boolean;
|
85
85
|
readonly: boolean;
|
86
86
|
disabled: boolean;
|
87
|
-
privateSplit?: 'left' | 'middle';
|
87
|
+
privateSplit?: 'left' | 'middle' | 'right';
|
88
88
|
maxlength?: number;
|
89
89
|
readonly version: string;
|
90
90
|
tooltip?: string;
|
package/dist/label.d.ts
CHANGED
@@ -12,7 +12,7 @@ declare global {
|
|
12
12
|
* @attr {string} [label]
|
13
13
|
* @attr {'horizontal'|'vertical'} [orientation='horizontal']
|
14
14
|
* @attr {boolean} [required=false]
|
15
|
-
* @attr {'left'|'middle'} [split]
|
15
|
+
* @attr {'left'|'middle'|'right'} [split]
|
16
16
|
* @attr {string} [tooltip]
|
17
17
|
*
|
18
18
|
* @slot {HTMLLabelElement}
|
@@ -29,7 +29,7 @@ export default class GlideCoreLabel extends LitElement {
|
|
29
29
|
hide: boolean;
|
30
30
|
orientation: 'horizontal' | 'vertical';
|
31
31
|
required: boolean;
|
32
|
-
split?: 'left' | 'middle';
|
32
|
+
split?: 'left' | 'middle' | 'right';
|
33
33
|
tooltip?: string;
|
34
34
|
label?: string;
|
35
35
|
render(): import("lit").TemplateResult<1>;
|
package/dist/label.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var __decorate=this&&this.__decorate||function(e,t,o,i){var l,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(l=e[a])&&(s=(r<3?l(s):r>3?l(t,o,s):l(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};import"./tooltip.js";import{html,LitElement}from"lit";import{classMap}from"lit/directives/class-map.js";import{createRef,ref}from"lit/directives/ref.js";import{customElement,property,state}from"lit/decorators.js";import{styleMap}from"lit/directives/style-map.js";import{ifDefined}from"lit/directives/if-defined.js";import{when}from"lit/directives/when.js";import styles from"./label.styles.js";import{LocalizeController}from"./library/localize.js";import assertSlot from"./library/assert-slot.js";import onResize from"./library/on-resize.js";import shadowRootMode from"./library/shadow-root-mode.js";import final from"./library/final.js";let GlideCoreLabel=class GlideCoreLabel extends LitElement{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.hide=!1,this.orientation="horizontal",this.required=!1,this.hasDescription=!1,this.hasSummarySlot=!1,this.isLabelTooltip=!1,this.#e=createRef(),this.#t=createRef(),this.#o=createRef(),this.#i=new LocalizeController(this),this.#l=createRef()}static{this.shadowRootOptions={...LitElement.shadowRootOptions,mode:shadowRootMode}}static{this.styles=styles}render(){return html`<div class="${classMap({component:!0,horizontal:"horizontal"===this.orientation,vertical:"vertical"===this.orientation,left:"left"===this.split,middle:"middle"===this.split,"hidden-label":this.hide})}"><div class="${classMap({tooltips:!0,hidden:this.hide,left:"left"===this.split,middle:"middle"===this.split})}" part="private-tooltips">${when(this.tooltip,(()=>html`<glide-core-tooltip class="${classMap({"optional-tooltip":!0,vertical:"vertical"===this.orientation,visible:!!this.tooltip})}" label="${ifDefined(this.tooltip)}" placement="${"vertical"===this.orientation?"right":"bottom"}"><button aria-label="${this.#i.term("tooltip")}" class="optional-tooltip-target" slot="target" type="button">${icons.information}</button></glide-core-tooltip>`))}<glide-core-tooltip class="label-tooltip" label="${this.label??""}" placement="right" ?disabled="${!this.isLabelTooltip}" screenreader-hidden><div class="${classMap({label:!0,disabled:this.disabled})}" data-test="label" slot="target" ${ref(this.#o)}><slot @slotchange="${this.#r}" ${assertSlot()} ${ref(this.#e)}></slot>${this.required?html`<span aria-hidden="true" class="required-symbol">*</span>`:""}</div></glide-core-tooltip></div><div class="control-and-summary" part="private-control-and-summary"><slot class="${classMap({control:!0,error:this.error,disabled:this.disabled,vertical:"vertical"===this.orientation,summaryless:!this.hasSummarySlot,"hidden-label":this.hide})}" name="control" ${assertSlot()}></slot><slot class="${classMap({summary:!0,error:this.error})}" name="summary" @slotchange="${this.#s}" ${ref(this.#l)}></slot></div><slot class="${classMap({description:!0,content:this.hasDescription,error:this.error,tooltip:!!this.tooltip})}" id="description" name="description" ${onResize(this.#a.bind(this))} ${ref(this.#t)}></slot></div>`}#e;#t;#o;#i;#l;#r(){const e=this.#e.value?.assignedElements().at(0),t=new ResizeObserver((()=>{e&&this.#o.value&&(this.isLabelTooltip=e.getBoundingClientRect().width>this.#o.value.getBoundingClientRect().width)}));this.#o.value&&t.observe(this.#o.value)}#a(){this.hasDescription=Boolean(this.#t.value&&this.#t.value.offsetHeight>0)}#s(){const e=this.#l.value?.assignedNodes({flatten:!0});this.hasSummarySlot=Boolean(e&&e.length>0)}};__decorate([property({reflect:!0,type:Boolean})],GlideCoreLabel.prototype,"disabled",void 0),__decorate([property({reflect:!0,type:Boolean})],GlideCoreLabel.prototype,"error",void 0),__decorate([property({reflect:!0,type:Boolean})],GlideCoreLabel.prototype,"hide",void 0),__decorate([property({reflect:!0})],GlideCoreLabel.prototype,"orientation",void 0),__decorate([property({reflect:!0,type:Boolean})],GlideCoreLabel.prototype,"required",void 0),__decorate([property()],GlideCoreLabel.prototype,"split",void 0),__decorate([property()],GlideCoreLabel.prototype,"tooltip",void 0),__decorate([property()],GlideCoreLabel.prototype,"label",void 0),__decorate([state()],GlideCoreLabel.prototype,"hasDescription",void 0),__decorate([state()],GlideCoreLabel.prototype,"hasSummarySlot",void 0),__decorate([state()],GlideCoreLabel.prototype,"isLabelTooltip",void 0),GlideCoreLabel=__decorate([customElement("glide-core-private-label"),final],GlideCoreLabel);export default GlideCoreLabel;const icons={information:html`<svg aria-hidden="true" style="${styleMap({height:"1rem",width:"1rem"})}" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2"/><path d="M12 16L12 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="12" cy="8" r="1" fill="currentColor"/></svg>`};
|
1
|
+
var __decorate=this&&this.__decorate||function(e,t,o,i){var l,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(l=e[a])&&(s=(r<3?l(s):r>3?l(t,o,s):l(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};import"./tooltip.js";import{html,LitElement}from"lit";import{classMap}from"lit/directives/class-map.js";import{createRef,ref}from"lit/directives/ref.js";import{customElement,property,state}from"lit/decorators.js";import{styleMap}from"lit/directives/style-map.js";import{ifDefined}from"lit/directives/if-defined.js";import{when}from"lit/directives/when.js";import styles from"./label.styles.js";import{LocalizeController}from"./library/localize.js";import assertSlot from"./library/assert-slot.js";import onResize from"./library/on-resize.js";import shadowRootMode from"./library/shadow-root-mode.js";import final from"./library/final.js";let GlideCoreLabel=class GlideCoreLabel extends LitElement{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.hide=!1,this.orientation="horizontal",this.required=!1,this.hasDescription=!1,this.hasSummarySlot=!1,this.isLabelTooltip=!1,this.#e=createRef(),this.#t=createRef(),this.#o=createRef(),this.#i=new LocalizeController(this),this.#l=createRef()}static{this.shadowRootOptions={...LitElement.shadowRootOptions,mode:shadowRootMode}}static{this.styles=styles}render(){return html`<div class="${classMap({component:!0,horizontal:"horizontal"===this.orientation,vertical:"vertical"===this.orientation,left:"left"===this.split,middle:"middle"===this.split,right:"right"===this.split,"hidden-label":this.hide})}"><div class="${classMap({tooltips:!0,hidden:this.hide,left:"left"===this.split,middle:"middle"===this.split,right:"right"===this.split})}" part="private-tooltips">${when(this.tooltip,(()=>html`<glide-core-tooltip class="${classMap({"optional-tooltip":!0,vertical:"vertical"===this.orientation,visible:!!this.tooltip})}" label="${ifDefined(this.tooltip)}" placement="${"vertical"===this.orientation?"right":"bottom"}"><button aria-label="${this.#i.term("tooltip")}" class="optional-tooltip-target" slot="target" type="button">${icons.information}</button></glide-core-tooltip>`))}<glide-core-tooltip class="label-tooltip" label="${this.label??""}" placement="right" ?disabled="${!this.isLabelTooltip}" screenreader-hidden><div class="${classMap({label:!0,disabled:this.disabled})}" data-test="label" slot="target" ${ref(this.#o)}><slot @slotchange="${this.#r}" ${assertSlot()} ${ref(this.#e)}></slot>${this.required?html`<span aria-hidden="true" class="required-symbol">*</span>`:""}</div></glide-core-tooltip></div><div class="control-and-summary" part="private-control-and-summary"><slot class="${classMap({control:!0,error:this.error,disabled:this.disabled,vertical:"vertical"===this.orientation,summaryless:!this.hasSummarySlot,"hidden-label":this.hide})}" name="control" ${assertSlot()}></slot><slot class="${classMap({summary:!0,error:this.error})}" name="summary" @slotchange="${this.#s}" ${ref(this.#l)}></slot></div><slot class="${classMap({description:!0,content:this.hasDescription,error:this.error,tooltip:!!this.tooltip})}" id="description" name="description" ${onResize(this.#a.bind(this))} ${ref(this.#t)}></slot></div>`}#e;#t;#o;#i;#l;#r(){const e=this.#e.value?.assignedElements().at(0),t=new ResizeObserver((()=>{e&&this.#o.value&&(this.isLabelTooltip=e.getBoundingClientRect().width>this.#o.value.getBoundingClientRect().width)}));this.#o.value&&t.observe(this.#o.value)}#a(){this.hasDescription=Boolean(this.#t.value&&this.#t.value.offsetHeight>0)}#s(){const e=this.#l.value?.assignedNodes({flatten:!0});this.hasSummarySlot=Boolean(e&&e.length>0)}};__decorate([property({reflect:!0,type:Boolean})],GlideCoreLabel.prototype,"disabled",void 0),__decorate([property({reflect:!0,type:Boolean})],GlideCoreLabel.prototype,"error",void 0),__decorate([property({reflect:!0,type:Boolean})],GlideCoreLabel.prototype,"hide",void 0),__decorate([property({reflect:!0})],GlideCoreLabel.prototype,"orientation",void 0),__decorate([property({reflect:!0,type:Boolean})],GlideCoreLabel.prototype,"required",void 0),__decorate([property()],GlideCoreLabel.prototype,"split",void 0),__decorate([property()],GlideCoreLabel.prototype,"tooltip",void 0),__decorate([property()],GlideCoreLabel.prototype,"label",void 0),__decorate([state()],GlideCoreLabel.prototype,"hasDescription",void 0),__decorate([state()],GlideCoreLabel.prototype,"hasSummarySlot",void 0),__decorate([state()],GlideCoreLabel.prototype,"isLabelTooltip",void 0),GlideCoreLabel=__decorate([customElement("glide-core-private-label"),final],GlideCoreLabel);export default GlideCoreLabel;const icons={information:html`<svg aria-hidden="true" style="${styleMap({height:"1rem",width:"1rem"})}" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2"/><path d="M12 16L12 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="12" cy="8" r="1" fill="currentColor"/></svg>`};
|
package/dist/label.styles.js
CHANGED
@@ -17,7 +17,7 @@ import{css}from"lit";import focusOutline from"./styles/focus-outline.js";import
|
|
17
17
|
}
|
18
18
|
|
19
19
|
&.left {
|
20
|
-
grid-template-columns:
|
20
|
+
grid-template-columns: 33.5% 1fr;
|
21
21
|
}
|
22
22
|
|
23
23
|
&.middle {
|
@@ -26,6 +26,10 @@ import{css}from"lit";import focusOutline from"./styles/focus-outline.js";import
|
|
26
26
|
);
|
27
27
|
}
|
28
28
|
|
29
|
+
&.right {
|
30
|
+
grid-template-columns: 66.5% 1fr;
|
31
|
+
}
|
32
|
+
|
29
33
|
&.hidden-label {
|
30
34
|
display: flex;
|
31
35
|
flex-direction: column;
|
@@ -47,7 +51,8 @@ import{css}from"lit";import focusOutline from"./styles/focus-outline.js";import
|
|
47
51
|
min-inline-size: 3ch;
|
48
52
|
|
49
53
|
&.middle,
|
50
|
-
&.left
|
54
|
+
&.left,
|
55
|
+
&.right {
|
51
56
|
justify-content: flex-end;
|
52
57
|
}
|
53
58
|
}
|
package/dist/radio-group.d.ts
CHANGED
@@ -63,7 +63,7 @@ export default class GlideCoreRadioGroup extends LitElement implements FormContr
|
|
63
63
|
label?: string;
|
64
64
|
name: string;
|
65
65
|
orientation: "horizontal";
|
66
|
-
privateSplit?: 'left' | 'middle';
|
66
|
+
privateSplit?: 'left' | 'middle' | 'right';
|
67
67
|
tooltip?: string;
|
68
68
|
/**
|
69
69
|
* @default false
|
package/dist/textarea.d.ts
CHANGED
@@ -72,7 +72,7 @@ export default class GlideCoreTextarea extends LitElement implements FormControl
|
|
72
72
|
spellcheck: boolean;
|
73
73
|
autocapitalize: 'on' | 'off' | 'none' | 'sentences' | 'words' | 'characters';
|
74
74
|
autocomplete: 'on' | 'off';
|
75
|
-
privateSplit?: 'left' | 'middle';
|
75
|
+
privateSplit?: 'left' | 'middle' | 'right';
|
76
76
|
tooltip?: string;
|
77
77
|
readonly version: string;
|
78
78
|
checkValidity(): boolean;
|
package/dist/toggle.d.ts
CHANGED
@@ -30,7 +30,7 @@ export default class GlideCoreToggle extends LitElement {
|
|
30
30
|
hideLabel: boolean;
|
31
31
|
label?: string;
|
32
32
|
orientation: 'horizontal' | 'vertical';
|
33
|
-
privateSplit?: 'left' | 'middle';
|
33
|
+
privateSplit?: 'left' | 'middle' | 'right';
|
34
34
|
summary?: string;
|
35
35
|
tooltip?: string;
|
36
36
|
readonly version: string;
|