@fluid-topics/ftds-checkbox 2.2.8 → 2.2.10

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.
@@ -2121,11 +2121,15 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
2121
2121
  <ftds-button @focusin=${this.close}
2122
2122
  secondary
2123
2123
  part="opening-button"
2124
- icon="${this.openButtonIcon}"
2125
- variant="${this.openButtonIconVariant}"
2126
- size="${this.openButtonSize}" family="${this.openButtonFamily}"
2127
- label="${this.openButtonLabel}" tooltipposition="${this.openButtonTooltipPosition}"
2128
- aria-haspopup="true" aria-expanded="${this.opened}" aria-controls="${this.wrapperId}"
2124
+ .icon=${this.openButtonIcon}
2125
+ .iconVariant=${this.openButtonIconVariant}
2126
+ .family=${this.openButtonFamily}
2127
+ .label=${this.openButtonLabel}
2128
+ .tooltipPosition=${this.openButtonTooltipPosition}
2129
+ size="${this.openButtonSize}"
2130
+ aria-haspopup="true"
2131
+ aria-expanded="${this.opened}"
2132
+ aria-controls="${this.wrapperId}"
2129
2133
  @click=${this.open}>
2130
2134
  </ftds-button>
2131
2135
  `}renderClosingButton(){return Te.html`
@@ -2160,7 +2164,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
2160
2164
  <div part="popover-sections">
2161
2165
  <slot name="sections" part="popover-sections-slot"></slot>
2162
2166
  </div>
2163
- `}hideUnusedSlots(){var t,o,n;(t=this.popoverLinkTypography)===null||t===void 0||t.classList.toggle("hidden",this.hasEmptySlot(this.slottedLinkContent)),(o=this.popoverContentDiv)===null||o===void 0||o.classList.toggle("hidden",this.hasEmptySlot(this.popoverContentSlot)),(n=this.popoverSectionsDiv)===null||n===void 0||n.classList.toggle("hidden",this.hasEmptySlot(this.popoverSectionsSlot))}hasEmptySlot(t){return(0,Lr.unslotText)(t).trim().length===0}updated(t){super.updated(t),t.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}closeAndFocusOpeningButton(){var t;this.close(),(t=this.openingElement)===null||t===void 0||t.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&this.openingElement instanceof $&&this.openingElement.showTooltip()}async positionWrapper(){var t,o;if(this.popoverWrapper){if(this.popoverWrapper.classList.remove("positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="",this.openingElement){let i={placement:"bottom-start",allowedPlacements:["bottom-start","right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],maxWidthCssVariable:this.maxWidth},{x:s,y:l}=await(0,Lr.computeOffsetAutoPosition)(this.openingElement,this.popoverWrapper,i);this.popoverWrapper.style.left=`${s}px`,this.popoverWrapper.style.top=`${l}px`}this.popoverWrapper.classList.add("positioned")}this.hideUnusedSlots(),(t=this.closingButton)===null||t===void 0||t.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&((o=this.closingButton)===null||o===void 0||o.showTooltip())}};F.styles=U0;F.elementDefinitions={"ftds-typography":de,"ftds-button":$};ee([(0,Y.property)()],F.prototype,"closeButtonLabel",void 0);ee([(0,Y.property)()],F.prototype,"openButtonIcon",void 0);ee([(0,Y.property)()],F.prototype,"openButtonIconVariant",void 0);ee([(0,Y.property)()],F.prototype,"openButtonLabel",void 0);ee([(0,Y.property)()],F.prototype,"openButtonTooltipPosition",void 0);ee([(0,Y.property)({type:Boolean})],F.prototype,"opened",void 0);ee([(0,Y.property)({type:Boolean})],F.prototype,"hidden",void 0);ee([(0,Y.property)({type:We})],F.prototype,"openButtonFamily",void 0);ee([(0,Y.state)()],F.prototype,"isTriggerSlotAssigned",void 0);ee([(0,Y.property)()],F.prototype,"heading",void 0);ee([(0,Y.property)()],F.prototype,"margins",void 0);ee([(0,Y.query)('[part="wrapper"]')],F.prototype,"popoverWrapper",void 0);ee([(0,Y.query)('slot[name="trigger"]')],F.prototype,"triggerSlot",void 0);ee([(0,Y.query)('[part="opening-button"]')],F.prototype,"openingButton",void 0);ee([(0,Y.query)('[part="closing-button"]')],F.prototype,"closingButton",void 0);ee([(0,Y.query)('[part="content"]')],F.prototype,"popoverContentDiv",void 0);ee([(0,Y.query)('[part="popover-content-slot"]')],F.prototype,"popoverContentSlot",void 0);ee([(0,Y.query)('[part="popover-link"]')],F.prototype,"slottedLinkContent",void 0);ee([(0,Y.query)('[part="popover-link-typography"]')],F.prototype,"popoverLinkTypography",void 0);ee([(0,Y.query)('[part="popover-sections"]')],F.prototype,"popoverSectionsDiv",void 0);ee([(0,Y.query)('[part="popover-sections-slot"]')],F.prototype,"popoverSectionsSlot",void 0);var mo=v(H()),go=v(ie()),Pn=v(P());var $0=v(H());var F0=$0.css`
2167
+ `}hideUnusedSlots(){var t,o,n;(t=this.popoverLinkTypography)===null||t===void 0||t.classList.toggle("hidden",this.hasEmptySlot(this.slottedLinkContent)),(o=this.popoverContentDiv)===null||o===void 0||o.classList.toggle("hidden",this.hasEmptySlot(this.popoverContentSlot)),(n=this.popoverSectionsDiv)===null||n===void 0||n.classList.toggle("hidden",this.hasEmptySlot(this.popoverSectionsSlot))}hasEmptySlot(t){return(0,Lr.unslotText)(t).trim().length===0}updated(t){super.updated(t),t.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}closeAndFocusOpeningButton(){var t;this.close(),(t=this.openingElement)===null||t===void 0||t.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&this.openingElement instanceof $&&this.openingElement.showTooltip()}async positionWrapper(){var t,o;if(this.popoverWrapper){if(this.popoverWrapper.classList.remove("positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="",this.openingElement){let i={placement:"bottom-start",allowedPlacements:["bottom-start","right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],maxWidthCssVariable:this.maxWidth},{x:s,y:l}=await(0,Lr.computeOffsetAutoPosition)(this.openingElement,this.popoverWrapper,i);this.popoverWrapper.style.left=`${s}px`,this.popoverWrapper.style.top=`${l}px`}this.popoverWrapper.classList.add("positioned")}this.hideUnusedSlots(),(t=this.closingButton)===null||t===void 0||t.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&((o=this.closingButton)===null||o===void 0||o.showTooltip())}};F.styles=U0;F.elementDefinitions={"ftds-typography":de,"ftds-button":$};ee([(0,Y.property)()],F.prototype,"closeButtonLabel",void 0);ee([(0,Y.property)({type:p})],F.prototype,"openButtonIcon",void 0);ee([(0,Y.property)({type:u})],F.prototype,"openButtonIconVariant",void 0);ee([(0,Y.property)()],F.prototype,"openButtonLabel",void 0);ee([(0,Y.property)()],F.prototype,"openButtonTooltipPosition",void 0);ee([(0,Y.property)({type:Boolean})],F.prototype,"opened",void 0);ee([(0,Y.property)({type:Boolean})],F.prototype,"hidden",void 0);ee([(0,Y.property)({type:We})],F.prototype,"openButtonFamily",void 0);ee([(0,Y.state)()],F.prototype,"isTriggerSlotAssigned",void 0);ee([(0,Y.property)()],F.prototype,"heading",void 0);ee([(0,Y.property)()],F.prototype,"margins",void 0);ee([(0,Y.query)('[part="wrapper"]')],F.prototype,"popoverWrapper",void 0);ee([(0,Y.query)('slot[name="trigger"]')],F.prototype,"triggerSlot",void 0);ee([(0,Y.query)('[part="opening-button"]')],F.prototype,"openingButton",void 0);ee([(0,Y.query)('[part="closing-button"]')],F.prototype,"closingButton",void 0);ee([(0,Y.query)('[part="content"]')],F.prototype,"popoverContentDiv",void 0);ee([(0,Y.query)('[part="popover-content-slot"]')],F.prototype,"popoverContentSlot",void 0);ee([(0,Y.query)('[part="popover-link"]')],F.prototype,"slottedLinkContent",void 0);ee([(0,Y.query)('[part="popover-link-typography"]')],F.prototype,"popoverLinkTypography",void 0);ee([(0,Y.query)('[part="popover-sections"]')],F.prototype,"popoverSectionsDiv",void 0);ee([(0,Y.query)('[part="popover-sections-slot"]')],F.prototype,"popoverSectionsSlot",void 0);var mo=v(H()),go=v(ie()),Pn=v(P());var $0=v(H());var F0=$0.css`
2164
2168
  .ftds-popover-section--heading ftds-typography {
2165
2169
  flex-grow: 1;
2166
2170
  flex-shrink: 1;
@@ -2201,11 +2201,15 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
2201
2201
  <ftds-button @focusin=${this.close}
2202
2202
  secondary
2203
2203
  part="opening-button"
2204
- icon="${this.openButtonIcon}"
2205
- variant="${this.openButtonIconVariant}"
2206
- size="${this.openButtonSize}" family="${this.openButtonFamily}"
2207
- label="${this.openButtonLabel}" tooltipposition="${this.openButtonTooltipPosition}"
2208
- aria-haspopup="true" aria-expanded="${this.opened}" aria-controls="${this.wrapperId}"
2204
+ .icon=${this.openButtonIcon}
2205
+ .iconVariant=${this.openButtonIconVariant}
2206
+ .family=${this.openButtonFamily}
2207
+ .label=${this.openButtonLabel}
2208
+ .tooltipPosition=${this.openButtonTooltipPosition}
2209
+ size="${this.openButtonSize}"
2210
+ aria-haspopup="true"
2211
+ aria-expanded="${this.opened}"
2212
+ aria-controls="${this.wrapperId}"
2209
2213
  @click=${this.open}>
2210
2214
  </ftds-button>
2211
2215
  `}renderClosingButton(){return B`
@@ -2240,7 +2244,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
2240
2244
  <div part="popover-sections">
2241
2245
  <slot name="sections" part="popover-sections-slot"></slot>
2242
2246
  </div>
2243
- `}hideUnusedSlots(){var e,r,o;(e=this.popoverLinkTypography)===null||e===void 0||e.classList.toggle("hidden",this.hasEmptySlot(this.slottedLinkContent)),(r=this.popoverContentDiv)===null||r===void 0||r.classList.toggle("hidden",this.hasEmptySlot(this.popoverContentSlot)),(o=this.popoverSectionsDiv)===null||o===void 0||o.classList.toggle("hidden",this.hasEmptySlot(this.popoverSectionsSlot))}hasEmptySlot(e){return Et(e).trim().length===0}updated(e){super.updated(e),e.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}closeAndFocusOpeningButton(){var e;this.close(),(e=this.openingElement)===null||e===void 0||e.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&this.openingElement instanceof Z&&this.openingElement.showTooltip()}async positionWrapper(){var e,r;if(this.popoverWrapper){if(this.popoverWrapper.classList.remove("positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="",this.openingElement){let i={placement:"bottom-start",allowedPlacements:["bottom-start","right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],maxWidthCssVariable:this.maxWidth},{x:s,y:c}=await Ni(this.openingElement,this.popoverWrapper,i);this.popoverWrapper.style.left=`${s}px`,this.popoverWrapper.style.top=`${c}px`}this.popoverWrapper.classList.add("positioned")}this.hideUnusedSlots(),(e=this.closingButton)===null||e===void 0||e.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&((r=this.closingButton)===null||r===void 0||r.showTooltip())}};X.styles=a4;X.elementDefinitions={"ftds-typography":ve,"ftds-button":Z};le([S()],X.prototype,"closeButtonLabel",void 0);le([S()],X.prototype,"openButtonIcon",void 0);le([S()],X.prototype,"openButtonIconVariant",void 0);le([S()],X.prototype,"openButtonLabel",void 0);le([S()],X.prototype,"openButtonTooltipPosition",void 0);le([S({type:Boolean})],X.prototype,"opened",void 0);le([S({type:Boolean})],X.prototype,"hidden",void 0);le([S({type:ke})],X.prototype,"openButtonFamily",void 0);le([J()],X.prototype,"isTriggerSlotAssigned",void 0);le([S()],X.prototype,"heading",void 0);le([S()],X.prototype,"margins",void 0);le([Y('[part="wrapper"]')],X.prototype,"popoverWrapper",void 0);le([Y('slot[name="trigger"]')],X.prototype,"triggerSlot",void 0);le([Y('[part="opening-button"]')],X.prototype,"openingButton",void 0);le([Y('[part="closing-button"]')],X.prototype,"closingButton",void 0);le([Y('[part="content"]')],X.prototype,"popoverContentDiv",void 0);le([Y('[part="popover-content-slot"]')],X.prototype,"popoverContentSlot",void 0);le([Y('[part="popover-link"]')],X.prototype,"slottedLinkContent",void 0);le([Y('[part="popover-link-typography"]')],X.prototype,"popoverLinkTypography",void 0);le([Y('[part="popover-sections"]')],X.prototype,"popoverSectionsDiv",void 0);le([Y('[part="popover-sections-slot"]')],X.prototype,"popoverSectionsSlot",void 0);var i4=z`
2247
+ `}hideUnusedSlots(){var e,r,o;(e=this.popoverLinkTypography)===null||e===void 0||e.classList.toggle("hidden",this.hasEmptySlot(this.slottedLinkContent)),(r=this.popoverContentDiv)===null||r===void 0||r.classList.toggle("hidden",this.hasEmptySlot(this.popoverContentSlot)),(o=this.popoverSectionsDiv)===null||o===void 0||o.classList.toggle("hidden",this.hasEmptySlot(this.popoverSectionsSlot))}hasEmptySlot(e){return Et(e).trim().length===0}updated(e){super.updated(e),e.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}closeAndFocusOpeningButton(){var e;this.close(),(e=this.openingElement)===null||e===void 0||e.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&this.openingElement instanceof Z&&this.openingElement.showTooltip()}async positionWrapper(){var e,r;if(this.popoverWrapper){if(this.popoverWrapper.classList.remove("positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="",this.openingElement){let i={placement:"bottom-start",allowedPlacements:["bottom-start","right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],maxWidthCssVariable:this.maxWidth},{x:s,y:c}=await Ni(this.openingElement,this.popoverWrapper,i);this.popoverWrapper.style.left=`${s}px`,this.popoverWrapper.style.top=`${c}px`}this.popoverWrapper.classList.add("positioned")}this.hideUnusedSlots(),(e=this.closingButton)===null||e===void 0||e.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation&&((r=this.closingButton)===null||r===void 0||r.showTooltip())}};X.styles=a4;X.elementDefinitions={"ftds-typography":ve,"ftds-button":Z};le([S()],X.prototype,"closeButtonLabel",void 0);le([S({type:h})],X.prototype,"openButtonIcon",void 0);le([S({type:p})],X.prototype,"openButtonIconVariant",void 0);le([S()],X.prototype,"openButtonLabel",void 0);le([S()],X.prototype,"openButtonTooltipPosition",void 0);le([S({type:Boolean})],X.prototype,"opened",void 0);le([S({type:Boolean})],X.prototype,"hidden",void 0);le([S({type:ke})],X.prototype,"openButtonFamily",void 0);le([J()],X.prototype,"isTriggerSlotAssigned",void 0);le([S()],X.prototype,"heading",void 0);le([S()],X.prototype,"margins",void 0);le([Y('[part="wrapper"]')],X.prototype,"popoverWrapper",void 0);le([Y('slot[name="trigger"]')],X.prototype,"triggerSlot",void 0);le([Y('[part="opening-button"]')],X.prototype,"openingButton",void 0);le([Y('[part="closing-button"]')],X.prototype,"closingButton",void 0);le([Y('[part="content"]')],X.prototype,"popoverContentDiv",void 0);le([Y('[part="popover-content-slot"]')],X.prototype,"popoverContentSlot",void 0);le([Y('[part="popover-link"]')],X.prototype,"slottedLinkContent",void 0);le([Y('[part="popover-link-typography"]')],X.prototype,"popoverLinkTypography",void 0);le([Y('[part="popover-sections"]')],X.prototype,"popoverSectionsDiv",void 0);le([Y('[part="popover-sections-slot"]')],X.prototype,"popoverSectionsSlot",void 0);var i4=z`
2244
2248
  .ftds-popover-section--heading ftds-typography {
2245
2249
  flex-grow: 1;
2246
2250
  flex-shrink: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ftds-checkbox",
3
- "version": "2.2.8",
3
+ "version": "2.2.10",
4
4
  "description": "The design system checkbox component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -20,16 +20,16 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@fluid-topics/design-system-variables": "3.8.0",
23
- "@fluid-topics/ft-ripple": "2.2.8",
24
- "@fluid-topics/ft-wc-utils": "2.2.8",
25
- "@fluid-topics/ftds-icon": "2.2.8",
26
- "@fluid-topics/ftds-link": "2.2.8",
27
- "@fluid-topics/ftds-popover": "2.2.8",
28
- "@fluid-topics/ftds-typography": "2.2.8",
23
+ "@fluid-topics/ft-ripple": "2.2.10",
24
+ "@fluid-topics/ft-wc-utils": "2.2.10",
25
+ "@fluid-topics/ftds-icon": "2.2.10",
26
+ "@fluid-topics/ftds-link": "2.2.10",
27
+ "@fluid-topics/ftds-popover": "2.2.10",
28
+ "@fluid-topics/ftds-typography": "2.2.10",
29
29
  "lit": "3.3.3"
30
30
  },
31
31
  "devDependencies": {
32
- "@fluid-topics/ft-wc-test-utils": "2.2.8"
32
+ "@fluid-topics/ft-wc-test-utils": "2.2.10"
33
33
  },
34
- "gitHead": "ab4f238ee886c127d570b5c97eaff3c945ad2561"
34
+ "gitHead": "6d512a5adc05ec93a10f0c7cafd20a6ebb5adfee"
35
35
  }