@pine-ds/core 4.7.0 → 4.7.2
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/components/pds-box2.js +1 -1
- package/components/pds-checkbox2.js +1 -1
- package/components/pds-chip2.js +1 -1
- package/components/pds-combobox.js +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-drawer.js +1 -1
- package/components/pds-dropdown-menu-item.js +1 -1
- package/components/pds-modal2.js +1 -1
- package/components/pds-multiselect.js +1 -1
- package/components/pds-radio.js +1 -1
- package/components/pds-row.js +1 -1
- package/components/pds-switch.js +1 -1
- package/components/pds-table-cell2.js +1 -1
- package/components/pds-text2.js +1 -1
- package/components/truncation-tooltip.js +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +96 -96
- package/dist/cjs/pds-checkbox.cjs.entry.js +16 -4
- package/dist/cjs/pds-chip.cjs.entry.js +34 -9
- package/dist/cjs/pds-combobox.cjs.entry.js +16 -3
- package/dist/cjs/pds-copytext.cjs.entry.js +7 -2
- package/dist/cjs/pds-drawer.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal.cjs.entry.js +62 -21
- package/dist/cjs/pds-multiselect.cjs.entry.js +37 -7
- package/dist/cjs/pds-radio.cjs.entry.js +1 -1
- package/dist/cjs/pds-row.cjs.entry.js +7 -7
- package/dist/cjs/pds-switch.cjs.entry.js +15 -3
- package/dist/cjs/pds-table-cell.cjs.entry.js +24 -4
- package/dist/cjs/pds-text.cjs.entry.js +17 -9
- package/dist/cjs/{truncation-tooltip-CYgQfBLt.js → truncation-tooltip-DO9xli2e.js} +7 -7
- package/dist/collection/components/pds-box/pds-box.js +96 -96
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +4 -0
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +15 -3
- package/dist/collection/components/pds-chip/pds-chip.js +33 -8
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +17 -0
- package/dist/collection/components/pds-combobox/pds-combobox.js +17 -4
- package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +1 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js +6 -1
- package/dist/collection/components/pds-drawer/pds-drawer.css +4 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +2 -2
- package/dist/collection/components/pds-modal/pds-modal.js +66 -21
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +4 -0
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +37 -7
- package/dist/collection/components/pds-radio/pds-radio.css +6 -0
- package/dist/collection/components/pds-row/pds-row.js +7 -7
- package/dist/collection/components/pds-switch/pds-switch.js +15 -3
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +23 -3
- package/dist/collection/components/pds-text/pds-text.js +16 -8
- package/dist/collection/utils/truncation-tooltip.js +7 -7
- package/dist/docs.json +7 -3
- package/dist/esm/pds-box.entry.js +96 -96
- package/dist/esm/pds-checkbox.entry.js +16 -4
- package/dist/esm/pds-chip.entry.js +34 -9
- package/dist/esm/pds-combobox.entry.js +16 -3
- package/dist/esm/pds-copytext.entry.js +7 -2
- package/dist/esm/pds-drawer.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu-item.entry.js +2 -2
- package/dist/esm/pds-modal.entry.js +62 -21
- package/dist/esm/pds-multiselect.entry.js +37 -7
- package/dist/esm/pds-radio.entry.js +1 -1
- package/dist/esm/pds-row.entry.js +7 -7
- package/dist/esm/pds-switch.entry.js +15 -3
- package/dist/esm/pds-table-cell.entry.js +24 -4
- package/dist/esm/pds-text.entry.js +17 -9
- package/dist/esm/{truncation-tooltip-_902ENWC.js → truncation-tooltip-DRXsdKk1.js} +7 -7
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-combobox.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-drawer.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-multiselect.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-text.entry.js +1 -1
- package/dist/esm-es5/truncation-tooltip-DRXsdKk1.js +1 -0
- package/dist/pine-core/{p-9af131d6.system.entry.js → p-11d98408.system.entry.js} +1 -1
- package/dist/pine-core/p-1dc5a7e0.system.entry.js +1 -0
- package/dist/pine-core/p-355e4cf9.entry.js +1 -0
- package/dist/pine-core/p-4435fff6.system.entry.js +1 -0
- package/dist/pine-core/p-576cf904.system.entry.js +1 -0
- package/dist/pine-core/{p-4f94b4f1.system.entry.js → p-645a482b.system.entry.js} +1 -1
- package/dist/pine-core/{p-4fa63723.system.entry.js → p-6d603d16.system.entry.js} +1 -1
- package/dist/pine-core/p-7fa66cad.entry.js +1 -0
- package/dist/pine-core/p-80a698ae.entry.js +1 -0
- package/dist/pine-core/{p-bf7ee3b7.system.entry.js → p-80e6f3a0.system.entry.js} +1 -1
- package/dist/pine-core/p-88ff1604.entry.js +1 -0
- package/dist/pine-core/p-9713fb36.entry.js +1 -0
- package/dist/pine-core/{p-6eec23a7.system.entry.js → p-97d0b89e.system.entry.js} +1 -1
- package/dist/pine-core/p-993d1043.entry.js +1 -0
- package/dist/pine-core/p-CuSNnuFu.system.js +1 -1
- package/dist/pine-core/p-JtdHT_W5.js +1 -0
- package/dist/pine-core/p-a939b471.entry.js +1 -0
- package/dist/pine-core/p-aa032a5e.system.entry.js +1 -0
- package/dist/pine-core/p-bb73ad66.entry.js +2 -0
- package/dist/pine-core/p-bd26a5e8.entry.js +1 -0
- package/dist/pine-core/p-c36b490e.entry.js +1 -0
- package/dist/pine-core/p-c81d8ac8.entry.js +1 -0
- package/dist/pine-core/p-ca0a8f5c.entry.js +1 -0
- package/dist/pine-core/p-ca0d48e8.entry.js +1 -0
- package/dist/pine-core/p-cfc52b95.system.entry.js +1 -0
- package/dist/pine-core/{p-ba1f65c2.system.entry.js → p-d8570b4b.system.entry.js} +1 -1
- package/dist/pine-core/{p-9e0f920a.system.entry.js → p-e7a95a49.system.entry.js} +1 -1
- package/dist/pine-core/p-e803f629.system.entry.js +1 -0
- package/dist/pine-core/{p-5a10784e.system.entry.js → p-e836f3ec.system.entry.js} +2 -2
- package/dist/pine-core/{p-b8e8a4ce.entry.js → p-f474d7de.entry.js} +1 -1
- package/dist/pine-core/{p-CBu9UrXr.system.js → p-qhdoK1Jp.system.js} +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +4 -0
- package/dist/types/components/pds-combobox/pds-combobox.d.ts +6 -1
- package/dist/types/components/pds-modal/pds-modal.d.ts +6 -0
- package/dist/types/components/pds-multiselect/pds-multiselect.d.ts +8 -2
- package/dist/types/components/pds-switch/pds-switch.d.ts +4 -0
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +3 -0
- package/dist/types/components/pds-text/pds-text.d.ts +1 -0
- package/dist/types/components.d.ts +2 -2
- package/dist/types/utils/truncation-tooltip.d.ts +15 -2
- package/hydrate/index.js +338 -172
- package/hydrate/index.mjs +338 -172
- package/package.json +2 -2
- package/dist/esm-es5/truncation-tooltip-_902ENWC.js +0 -1
- package/dist/pine-core/p-21fe6ee1.system.entry.js +0 -1
- package/dist/pine-core/p-24fbbb74.system.entry.js +0 -1
- package/dist/pine-core/p-258d5e83.entry.js +0 -1
- package/dist/pine-core/p-4849fda7.entry.js +0 -1
- package/dist/pine-core/p-4de8f333.entry.js +0 -1
- package/dist/pine-core/p-550c2fd3.entry.js +0 -1
- package/dist/pine-core/p-6bf853c9.entry.js +0 -1
- package/dist/pine-core/p-6d3610f9.entry.js +0 -1
- package/dist/pine-core/p-74a05bcc.entry.js +0 -1
- package/dist/pine-core/p-84e9b7da.entry.js +0 -1
- package/dist/pine-core/p-945fb0b1.entry.js +0 -1
- package/dist/pine-core/p-CnM3cCof.js +0 -1
- package/dist/pine-core/p-a0344e30.entry.js +0 -2
- package/dist/pine-core/p-a85a6ab9.system.entry.js +0 -1
- package/dist/pine-core/p-bf5887e8.system.entry.js +0 -1
- package/dist/pine-core/p-cf08a6dd.system.entry.js +0 -1
- package/dist/pine-core/p-e21ff692.entry.js +0 -1
- package/dist/pine-core/p-e800a2b1.entry.js +0 -1
- package/dist/pine-core/p-eb5465ce.entry.js +0 -1
- package/dist/pine-core/p-f25e4731.system.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,o as e,f as t,s as i}from"./floating-ui.dom.js";const o="pds-truncation-tooltip";function a(n){return n.scrollWidth>n.clientWidth}function c(c){const{hostEl:
|
|
1
|
+
import{c as n,o as e,f as t,s as i}from"./floating-ui.dom.js";const o="pds-truncation-tooltip";function a(n){return n.scrollWidth>n.clientWidth}function c(c){const{hostEl:r,contentEl:s,getTooltipText:u,placement:l="top",reference:d=r,manageTabIndex:f=!0,focusEl:p=r}=c;!function(){if(document.querySelector("[data-pds-truncation-tooltip]"))return;const n=document.createElement("style");n.setAttribute("data-pds-truncation-tooltip",""),n.textContent=`\n .${o} {\n position: fixed;\n z-index: var(--pine-z-index-nuclear, 9999);\n }\n .${o}__content {\n background-color: var(--pine-color-primary, #1a1a2e);\n border-radius: calc(var(--pine-dimension-xs, 4px) * 1.25);\n box-shadow: var(--pine-box-shadow, 0 2px 8px rgba(0,0,0,0.15));\n color: var(--pine-color-text-primary, #fff);\n cursor: text;\n font-family: var(--pine-font-family-body, sans-serif);\n font-size: var(--pine-font-size-body-sm, 0.875rem);\n letter-spacing: var(--pine-letter-spacing, normal);\n line-height: var(--pine-line-height-body, 1.5);\n max-width: 320px;\n opacity: 0;\n padding: var(--pine-dimension-xs, 4px) calc(var(--pine-dimension-md, 12px) / 2);\n transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;\n user-select: text;\n visibility: hidden;\n width: max-content;\n word-break: break-word;\n }\n .${o}--visible .${o}__content {\n opacity: 1;\n visibility: visible;\n }\n `,document.head.appendChild(n)}();let m=null,x=!1,v=!1,b=!1,y=null,h=null,g=null,w=!1,$=!1;function T(){if(f)if(a(s)){if(!w&&s.hasAttribute("tabindex"))return;w=!0,s.setAttribute("tabindex","0")}else w&&(w=!1,s.removeAttribute("tabindex"))}function z(){if(m){if(m.removeEventListener("mouseenter",R),m.removeEventListener("mouseleave",I),m.classList.remove(`${o}--visible`),m.parentNode&&m.isConnected)try{m.parentNode.removeChild(m)}catch(n){}m=null}}function _(){null!==y&&(clearTimeout(y),y=null)}function k(){_(),a(s)&&function(){if(m)return;const a=u();if(!a||""===a.trim())return;m=document.createElement("div"),m.className=o,m.setAttribute("role","tooltip"),m.setAttribute("aria-hidden","false");const c=document.createElement("div");c.className=`${o}__content`,c.textContent=a.trim(),m.appendChild(c),document.body.appendChild(m),m.addEventListener("mouseenter",R),m.addEventListener("mouseleave",I),async function(){if(m)try{const{x:o,y:a}=await n(d,m,{placement:l,strategy:"fixed",middleware:[e(4),t(),i({padding:5})]});Object.assign(m.style,{left:`${o}px`,top:`${a}px`})}catch(n){if(m){const n=d.getBoundingClientRect(),e=m.getBoundingClientRect(),t=5,i=Math.max(t,Math.min(n.left,window.innerWidth-e.width-t)),o=Math.max(t,n.top-e.height-8);m.style.left=`${i}px`,m.style.top=`${o}px`}}}().then((()=>{m&&m.classList.add(`${o}--visible`)}))}()}function E(){x||v||b||z()}function M(){_(),y=setTimeout((()=>{y=null,E()}),100)}function O(){x=!0,k()}function j(){x=!1,M()}function R(){v=!0,_()}function I(){v=!1,M()}function q(){b=!0,k()}function A(){b=!1,M()}return"undefined"!=typeof ResizeObserver&&(h=new ResizeObserver((()=>{g&&clearTimeout(g),g=setTimeout((()=>{g=null,T(),m&&m.isConnected&&!a(s)&&E()}),100)})),h.observe(s)),T(),"undefined"!=typeof document&&void 0!==document.fonts&&document.fonts.ready.then((()=>{$||T()})),r.addEventListener("mouseenter",O),r.addEventListener("mouseleave",j),p.addEventListener("focusin",q),p.addEventListener("focusout",A),()=>{$=!0,_(),g&&(clearTimeout(g),g=null),h&&h.disconnect(),w&&(w=!1,s.removeAttribute("tabindex")),r.removeEventListener("mouseenter",O),r.removeEventListener("mouseleave",j),p.removeEventListener("focusin",q),p.removeEventListener("focusout",A),z()}}export{c as s}
|
|
@@ -24,18 +24,18 @@ const PdsBox = class {
|
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
26
|
const boxClasses = `
|
|
27
|
-
${this.alignItems
|
|
28
|
-
${this.alignItemsXs
|
|
29
|
-
${this.alignItemsSm
|
|
30
|
-
${this.alignItemsMd
|
|
31
|
-
${this.alignItemsLg
|
|
32
|
-
${this.alignItemsXl
|
|
33
|
-
${this.alignSelf
|
|
34
|
-
${this.alignSelfXs
|
|
35
|
-
${this.alignSelfSm
|
|
36
|
-
${this.alignSelfMd
|
|
37
|
-
${this.alignSelfLg
|
|
38
|
-
${this.alignSelfXl
|
|
27
|
+
${this.alignItems != null && this.alignItems.trim() !== '' ? `pds-align-items-${this.alignItems}` : ''}
|
|
28
|
+
${this.alignItemsXs != null && this.alignItemsXs.trim() !== '' ? `pds-align-items-xs-${this.alignItemsXs}` : ''}
|
|
29
|
+
${this.alignItemsSm != null && this.alignItemsSm.trim() !== '' ? `pds-align-items-sm-${this.alignItemsSm}` : ''}
|
|
30
|
+
${this.alignItemsMd != null && this.alignItemsMd.trim() !== '' ? `pds-align-items-md-${this.alignItemsMd}` : ''}
|
|
31
|
+
${this.alignItemsLg != null && this.alignItemsLg.trim() !== '' ? `pds-align-items-lg-${this.alignItemsLg}` : ''}
|
|
32
|
+
${this.alignItemsXl != null && this.alignItemsXl.trim() !== '' ? `pds-align-items-xl-${this.alignItemsXl}` : ''}
|
|
33
|
+
${this.alignSelf != null && this.alignSelf.trim() !== '' ? `pds-align-self-${this.alignSelf}` : ''}
|
|
34
|
+
${this.alignSelfXs != null && this.alignSelfXs.trim() !== '' ? `pds-align-self-xs-${this.alignSelfXs}` : ''}
|
|
35
|
+
${this.alignSelfSm != null && this.alignSelfSm.trim() !== '' ? `pds-align-self-sm-${this.alignSelfSm}` : ''}
|
|
36
|
+
${this.alignSelfMd != null && this.alignSelfMd.trim() !== '' ? `pds-align-self-md-${this.alignSelfMd}` : ''}
|
|
37
|
+
${this.alignSelfLg != null && this.alignSelfLg.trim() !== '' ? `pds-align-self-lg-${this.alignSelfLg}` : ''}
|
|
38
|
+
${this.alignSelfXl != null && this.alignSelfXl.trim() !== '' ? `pds-align-self-xl-${this.alignSelfXl}` : ''}
|
|
39
39
|
${this.auto ? 'pds-box--auto' : ''}
|
|
40
40
|
${this.autoXs ? 'pds-box--auto-xs' : ''}
|
|
41
41
|
${this.autoSm ? 'pds-box--auto-sm' : ''}
|
|
@@ -51,101 +51,101 @@ const PdsBox = class {
|
|
|
51
51
|
${this.borderInlineStart === false ? 'pds-box--border-inline-start-none' : ''}
|
|
52
52
|
${this.borderInlineEnd === true ? 'pds-box--border-inline-end' : ''}
|
|
53
53
|
${this.borderInlineEnd === false ? 'pds-box--border-inline-end-none' : ''}
|
|
54
|
-
${this.borderRadius
|
|
55
|
-
${this.direction
|
|
56
|
-
${this.display
|
|
54
|
+
${this.borderRadius != null && this.borderRadius.trim() !== '' ? `pds-border-radius-${this.borderRadius}` : ''}
|
|
55
|
+
${this.direction != null && this.direction.trim() !== '' ? `pds-box-direction-${this.direction}` : ''}
|
|
56
|
+
${this.display != null && this.display.trim() !== '' ? `pds-box--display-${this.display}` : ''}
|
|
57
57
|
${this.fit ? 'pds-box--fit' : ''}
|
|
58
58
|
${this.fitXs ? 'pds-box--fit-xs' : ''}
|
|
59
59
|
${this.fitSm ? 'pds-box--fit-sm' : ''}
|
|
60
60
|
${this.fitMd ? 'pds-box--fit-md' : ''}
|
|
61
61
|
${this.fitLg ? 'pds-box--fit-lg' : ''}
|
|
62
62
|
${this.fitXl ? 'pds-box--fit-xl' : ''}
|
|
63
|
-
${this.gap
|
|
64
|
-
${this.gapXs
|
|
65
|
-
${this.gapSm
|
|
66
|
-
${this.gapMd
|
|
67
|
-
${this.gapLg
|
|
68
|
-
${this.gapXl
|
|
63
|
+
${this.gap != null && this.gap.trim() !== '' ? `pds-box-gap-${this.gap}` : ''}
|
|
64
|
+
${this.gapXs != null && this.gapXs.trim() !== '' ? `pds-box-gap-xs-${this.gapXs}` : ''}
|
|
65
|
+
${this.gapSm != null && this.gapSm.trim() !== '' ? `pds-box-gap-sm-${this.gapSm}` : ''}
|
|
66
|
+
${this.gapMd != null && this.gapMd.trim() !== '' ? `pds-box-gap-md-${this.gapMd}` : ''}
|
|
67
|
+
${this.gapLg != null && this.gapLg.trim() !== '' ? `pds-box-gap-lg-${this.gapLg}` : ''}
|
|
68
|
+
${this.gapXl != null && this.gapXl.trim() !== '' ? `pds-box-gap-xl-${this.gapXl}` : ''}
|
|
69
69
|
${this.wrap ? 'pds-box--wrap' : ''}
|
|
70
70
|
${this.wrapXs ? 'pds-box--wrap-xs' : ''}
|
|
71
71
|
${this.wrapSm ? 'pds-box--wrap-sm' : ''}
|
|
72
72
|
${this.wrapMd ? 'pds-box--wrap-md' : ''}
|
|
73
73
|
${this.wrapLg ? 'pds-box--wrap-lg' : ''}
|
|
74
74
|
${this.wrapXl ? 'pds-box--wrap-xl' : ''}
|
|
75
|
-
${this.flex
|
|
76
|
-
${this.justifyContent
|
|
77
|
-
${this.justifyContentXs
|
|
78
|
-
${this.justifyContentSm
|
|
79
|
-
${this.justifyContentMd
|
|
80
|
-
${this.justifyContentLg
|
|
81
|
-
${this.justifyContentXl
|
|
82
|
-
${this.marginBlockStart
|
|
83
|
-
${this.marginBlockStartXs
|
|
84
|
-
${this.marginBlockStartSm
|
|
85
|
-
${this.marginBlockStartMd
|
|
86
|
-
${this.marginBlockStartLg
|
|
87
|
-
${this.marginBlockStartXl
|
|
88
|
-
${this.marginInlineStart
|
|
89
|
-
${this.marginInlineStartXs
|
|
90
|
-
${this.marginInlineStartSm
|
|
91
|
-
${this.marginInlineStartMd
|
|
92
|
-
${this.marginInlineStartLg
|
|
93
|
-
${this.marginInlineStartXl
|
|
94
|
-
${this.marginInlineEnd
|
|
95
|
-
${this.marginInlineEndXs
|
|
96
|
-
${this.marginInlineEndSm
|
|
97
|
-
${this.marginInlineEndMd
|
|
98
|
-
${this.marginInlineEndLg
|
|
99
|
-
${this.marginInlineEndXl
|
|
100
|
-
${this.marginBlockEnd
|
|
101
|
-
${this.marginBlockEndXs
|
|
102
|
-
${this.marginBlockEndSm
|
|
103
|
-
${this.marginBlockEndMd
|
|
104
|
-
${this.marginBlockEndLg
|
|
105
|
-
${this.marginBlockEndXl
|
|
106
|
-
${this.offset
|
|
107
|
-
${this.offsetXs
|
|
108
|
-
${this.offsetSm
|
|
109
|
-
${this.offsetMd
|
|
110
|
-
${this.offsetLg
|
|
111
|
-
${this.offsetXl
|
|
112
|
-
${this.padding
|
|
113
|
-
${this.paddingXs
|
|
114
|
-
${this.paddingSm
|
|
115
|
-
${this.paddingMd
|
|
116
|
-
${this.paddingLg
|
|
117
|
-
${this.paddingXl
|
|
118
|
-
${this.paddingBlockStart
|
|
119
|
-
${this.paddingBlockStartXs
|
|
120
|
-
${this.paddingBlockStartSm
|
|
121
|
-
${this.paddingBlockStartMd
|
|
122
|
-
${this.paddingBlockStartLg
|
|
123
|
-
${this.paddingBlockStartXl
|
|
124
|
-
${this.paddingBlockEnd
|
|
125
|
-
${this.paddingBlockEndXs
|
|
126
|
-
${this.paddingBlockEndSm
|
|
127
|
-
${this.paddingBlockEndMd
|
|
128
|
-
${this.paddingBlockEndLg
|
|
129
|
-
${this.paddingBlockEndXl
|
|
130
|
-
${this.paddingInlineStart
|
|
131
|
-
${this.paddingInlineStartXs
|
|
132
|
-
${this.paddingInlineStartSm
|
|
133
|
-
${this.paddingInlineStartMd
|
|
134
|
-
${this.paddingInlineStartLg
|
|
135
|
-
${this.paddingInlineStartXl
|
|
136
|
-
${this.paddingInlineEnd
|
|
137
|
-
${this.paddingInlineEndXs
|
|
138
|
-
${this.paddingInlineEndSm
|
|
139
|
-
${this.paddingInlineEndMd
|
|
140
|
-
${this.paddingInlineEndLg
|
|
141
|
-
${this.paddingInlineEndXl
|
|
142
|
-
${this.shadow
|
|
143
|
-
${this.size
|
|
144
|
-
${this.sizeXs
|
|
145
|
-
${this.sizeSm
|
|
146
|
-
${this.sizeMd
|
|
147
|
-
${this.sizeLg
|
|
148
|
-
${this.sizeXl
|
|
75
|
+
${this.flex != null && this.flex.trim() !== '' && ['none', 'grow', 'shrink'].includes(this.flex) ? `pds-box--flex-${this.flex}` : ''}
|
|
76
|
+
${this.justifyContent != null && this.justifyContent.trim() !== '' ? `pds-justify-content-${this.justifyContent}` : ''}
|
|
77
|
+
${this.justifyContentXs != null && this.justifyContentXs.trim() !== '' ? `pds-justify-content-xs-${this.justifyContentXs}` : ''}
|
|
78
|
+
${this.justifyContentSm != null && this.justifyContentSm.trim() !== '' ? `pds-justify-content-sm-${this.justifyContentSm}` : ''}
|
|
79
|
+
${this.justifyContentMd != null && this.justifyContentMd.trim() !== '' ? `pds-justify-content-md-${this.justifyContentMd}` : ''}
|
|
80
|
+
${this.justifyContentLg != null && this.justifyContentLg.trim() !== '' ? `pds-justify-content-lg-${this.justifyContentLg}` : ''}
|
|
81
|
+
${this.justifyContentXl != null && this.justifyContentXl.trim() !== '' ? `pds-justify-content-xl-${this.justifyContentXl}` : ''}
|
|
82
|
+
${this.marginBlockStart != null && this.marginBlockStart.trim() !== '' ? `pds-margin-block-start-${this.marginBlockStart}` : ''}
|
|
83
|
+
${this.marginBlockStartXs != null && this.marginBlockStartXs.trim() !== '' ? `pds-margin-block-start-xs-${this.marginBlockStartXs}` : ''}
|
|
84
|
+
${this.marginBlockStartSm != null && this.marginBlockStartSm.trim() !== '' ? `pds-margin-block-start-sm-${this.marginBlockStartSm}` : ''}
|
|
85
|
+
${this.marginBlockStartMd != null && this.marginBlockStartMd.trim() !== '' ? `pds-margin-block-start-md-${this.marginBlockStartMd}` : ''}
|
|
86
|
+
${this.marginBlockStartLg != null && this.marginBlockStartLg.trim() !== '' ? `pds-margin-block-start-lg-${this.marginBlockStartLg}` : ''}
|
|
87
|
+
${this.marginBlockStartXl != null && this.marginBlockStartXl.trim() !== '' ? `pds-margin-block-start-xl-${this.marginBlockStartXl}` : ''}
|
|
88
|
+
${this.marginInlineStart != null && this.marginInlineStart.trim() !== '' ? `pds-margin-inline-start-${this.marginInlineStart}` : ''}
|
|
89
|
+
${this.marginInlineStartXs != null && this.marginInlineStartXs.trim() !== '' ? `pds-margin-inline-start-xs-${this.marginInlineStartXs}` : ''}
|
|
90
|
+
${this.marginInlineStartSm != null && this.marginInlineStartSm.trim() !== '' ? `pds-margin-inline-start-sm-${this.marginInlineStartSm}` : ''}
|
|
91
|
+
${this.marginInlineStartMd != null && this.marginInlineStartMd.trim() !== '' ? `pds-margin-inline-start-md-${this.marginInlineStartMd}` : ''}
|
|
92
|
+
${this.marginInlineStartLg != null && this.marginInlineStartLg.trim() !== '' ? `pds-margin-inline-start-lg-${this.marginInlineStartLg}` : ''}
|
|
93
|
+
${this.marginInlineStartXl != null && this.marginInlineStartXl.trim() !== '' ? `pds-margin-inline-start-xl-${this.marginInlineStartXl}` : ''}
|
|
94
|
+
${this.marginInlineEnd != null && this.marginInlineEnd.trim() !== '' ? `pds-margin-inline-end-${this.marginInlineEnd}` : ''}
|
|
95
|
+
${this.marginInlineEndXs != null && this.marginInlineEndXs.trim() !== '' ? `pds-margin-inline-end-xs-${this.marginInlineEndXs}` : ''}
|
|
96
|
+
${this.marginInlineEndSm != null && this.marginInlineEndSm.trim() !== '' ? `pds-margin-inline-end-sm-${this.marginInlineEndSm}` : ''}
|
|
97
|
+
${this.marginInlineEndMd != null && this.marginInlineEndMd.trim() !== '' ? `pds-margin-inline-end-md-${this.marginInlineEndMd}` : ''}
|
|
98
|
+
${this.marginInlineEndLg != null && this.marginInlineEndLg.trim() !== '' ? `pds-margin-inline-end-lg-${this.marginInlineEndLg}` : ''}
|
|
99
|
+
${this.marginInlineEndXl != null && this.marginInlineEndXl.trim() !== '' ? `pds-margin-inline-end-xl-${this.marginInlineEndXl}` : ''}
|
|
100
|
+
${this.marginBlockEnd != null && this.marginBlockEnd.trim() !== '' ? `pds-margin-block-end-${this.marginBlockEnd}` : ''}
|
|
101
|
+
${this.marginBlockEndXs != null && this.marginBlockEndXs.trim() !== '' ? `pds-margin-block-end-xs-${this.marginBlockEndXs}` : ''}
|
|
102
|
+
${this.marginBlockEndSm != null && this.marginBlockEndSm.trim() !== '' ? `pds-margin-block-end-sm-${this.marginBlockEndSm}` : ''}
|
|
103
|
+
${this.marginBlockEndMd != null && this.marginBlockEndMd.trim() !== '' ? `pds-margin-block-end-md-${this.marginBlockEndMd}` : ''}
|
|
104
|
+
${this.marginBlockEndLg != null && this.marginBlockEndLg.trim() !== '' ? `pds-margin-block-end-lg-${this.marginBlockEndLg}` : ''}
|
|
105
|
+
${this.marginBlockEndXl != null && this.marginBlockEndXl.trim() !== '' ? `pds-margin-block-end-xl-${this.marginBlockEndXl}` : ''}
|
|
106
|
+
${this.offset != null && this.offset.trim() !== '' ? `pds-box-offset-${this.offset}` : ''}
|
|
107
|
+
${this.offsetXs != null && this.offsetXs.trim() !== '' ? `pds-box-offset-xs-${this.offsetXs}` : ''}
|
|
108
|
+
${this.offsetSm != null && this.offsetSm.trim() !== '' ? `pds-box-offset-sm-${this.offsetSm}` : ''}
|
|
109
|
+
${this.offsetMd != null && this.offsetMd.trim() !== '' ? `pds-box-offset-md-${this.offsetMd}` : ''}
|
|
110
|
+
${this.offsetLg != null && this.offsetLg.trim() !== '' ? `pds-box-offset-lg-${this.offsetLg}` : ''}
|
|
111
|
+
${this.offsetXl != null && this.offsetXl.trim() !== '' ? `pds-box-offset-xl-${this.offsetXl}` : ''}
|
|
112
|
+
${this.padding != null && this.padding.trim() !== '' ? `pds-padding-${this.padding}` : ''}
|
|
113
|
+
${this.paddingXs != null && this.paddingXs.trim() !== '' ? `pds-padding-xs-${this.paddingXs}` : ''}
|
|
114
|
+
${this.paddingSm != null && this.paddingSm.trim() !== '' ? `pds-padding-sm-${this.paddingSm}` : ''}
|
|
115
|
+
${this.paddingMd != null && this.paddingMd.trim() !== '' ? `pds-padding-md-${this.paddingMd}` : ''}
|
|
116
|
+
${this.paddingLg != null && this.paddingLg.trim() !== '' ? `pds-padding-lg-${this.paddingLg}` : ''}
|
|
117
|
+
${this.paddingXl != null && this.paddingXl.trim() !== '' ? `pds-padding-xl-${this.paddingXl}` : ''}
|
|
118
|
+
${this.paddingBlockStart != null && this.paddingBlockStart.trim() !== '' ? `pds-padding-block-start-${this.paddingBlockStart}` : ''}
|
|
119
|
+
${this.paddingBlockStartXs != null && this.paddingBlockStartXs.trim() !== '' ? `pds-padding-block-start-xs-${this.paddingBlockStartXs}` : ''}
|
|
120
|
+
${this.paddingBlockStartSm != null && this.paddingBlockStartSm.trim() !== '' ? `pds-padding-block-start-sm-${this.paddingBlockStartSm}` : ''}
|
|
121
|
+
${this.paddingBlockStartMd != null && this.paddingBlockStartMd.trim() !== '' ? `pds-padding-block-start-md-${this.paddingBlockStartMd}` : ''}
|
|
122
|
+
${this.paddingBlockStartLg != null && this.paddingBlockStartLg.trim() !== '' ? `pds-padding-block-start-lg-${this.paddingBlockStartLg}` : ''}
|
|
123
|
+
${this.paddingBlockStartXl != null && this.paddingBlockStartXl.trim() !== '' ? `pds-padding-block-start-xl-${this.paddingBlockStartXl}` : ''}
|
|
124
|
+
${this.paddingBlockEnd != null && this.paddingBlockEnd.trim() !== '' ? `pds-padding-block-end-${this.paddingBlockEnd}` : ''}
|
|
125
|
+
${this.paddingBlockEndXs != null && this.paddingBlockEndXs.trim() !== '' ? `pds-padding-block-end-xs-${this.paddingBlockEndXs}` : ''}
|
|
126
|
+
${this.paddingBlockEndSm != null && this.paddingBlockEndSm.trim() !== '' ? `pds-padding-block-end-sm-${this.paddingBlockEndSm}` : ''}
|
|
127
|
+
${this.paddingBlockEndMd != null && this.paddingBlockEndMd.trim() !== '' ? `pds-padding-block-end-md-${this.paddingBlockEndMd}` : ''}
|
|
128
|
+
${this.paddingBlockEndLg != null && this.paddingBlockEndLg.trim() !== '' ? `pds-padding-block-end-lg-${this.paddingBlockEndLg}` : ''}
|
|
129
|
+
${this.paddingBlockEndXl != null && this.paddingBlockEndXl.trim() !== '' ? `pds-padding-block-end-xl-${this.paddingBlockEndXl}` : ''}
|
|
130
|
+
${this.paddingInlineStart != null && this.paddingInlineStart.trim() !== '' ? `pds-padding-inline-start-${this.paddingInlineStart}` : ''}
|
|
131
|
+
${this.paddingInlineStartXs != null && this.paddingInlineStartXs.trim() !== '' ? `pds-padding-inline-start-xs-${this.paddingInlineStartXs}` : ''}
|
|
132
|
+
${this.paddingInlineStartSm != null && this.paddingInlineStartSm.trim() !== '' ? `pds-padding-inline-start-sm-${this.paddingInlineStartSm}` : ''}
|
|
133
|
+
${this.paddingInlineStartMd != null && this.paddingInlineStartMd.trim() !== '' ? `pds-padding-inline-start-md-${this.paddingInlineStartMd}` : ''}
|
|
134
|
+
${this.paddingInlineStartLg != null && this.paddingInlineStartLg.trim() !== '' ? `pds-padding-inline-start-lg-${this.paddingInlineStartLg}` : ''}
|
|
135
|
+
${this.paddingInlineStartXl != null && this.paddingInlineStartXl.trim() !== '' ? `pds-padding-inline-start-xl-${this.paddingInlineStartXl}` : ''}
|
|
136
|
+
${this.paddingInlineEnd != null && this.paddingInlineEnd.trim() !== '' ? `pds-padding-inline-end-${this.paddingInlineEnd}` : ''}
|
|
137
|
+
${this.paddingInlineEndXs != null && this.paddingInlineEndXs.trim() !== '' ? `pds-padding-inline-end-xs-${this.paddingInlineEndXs}` : ''}
|
|
138
|
+
${this.paddingInlineEndSm != null && this.paddingInlineEndSm.trim() !== '' ? `pds-padding-inline-end-sm-${this.paddingInlineEndSm}` : ''}
|
|
139
|
+
${this.paddingInlineEndMd != null && this.paddingInlineEndMd.trim() !== '' ? `pds-padding-inline-end-md-${this.paddingInlineEndMd}` : ''}
|
|
140
|
+
${this.paddingInlineEndLg != null && this.paddingInlineEndLg.trim() !== '' ? `pds-padding-inline-end-lg-${this.paddingInlineEndLg}` : ''}
|
|
141
|
+
${this.paddingInlineEndXl != null && this.paddingInlineEndXl.trim() !== '' ? `pds-padding-inline-end-xl-${this.paddingInlineEndXl}` : ''}
|
|
142
|
+
${this.shadow != null && this.shadow.trim() !== '' ? `pds-shadow-${this.shadow}` : ''}
|
|
143
|
+
${this.size != null && this.size.trim() !== '' ? `pds-box pds-box-${this.size}` : ''}
|
|
144
|
+
${this.sizeXs != null && this.sizeXs.trim() !== '' ? `pds-box-xs-${this.sizeXs}` : ''}
|
|
145
|
+
${this.sizeSm != null && this.sizeSm.trim() !== '' ? `pds-box-sm-${this.sizeSm}` : ''}
|
|
146
|
+
${this.sizeMd != null && this.sizeMd.trim() !== '' ? `pds-box-md-${this.sizeMd}` : ''}
|
|
147
|
+
${this.sizeLg != null && this.sizeLg.trim() !== '' ? `pds-box-lg-${this.sizeLg}` : ''}
|
|
148
|
+
${this.sizeXl != null && this.sizeXl.trim() !== '' ? `pds-box-xl-${this.sizeXl}` : ''}
|
|
149
149
|
${this.size == undefined &&
|
|
150
150
|
this.sizeSm == undefined &&
|
|
151
151
|
this.sizeMd == undefined &&
|
|
@@ -157,7 +157,7 @@ const PdsBox = class {
|
|
|
157
157
|
const normalizedBorder = utils.normalizeColorValue(this.borderColor);
|
|
158
158
|
const boxInlineStyles = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (normalizedBackground && { '--color-background-box': normalizedBackground })), (normalizedBorder && { '--color-border-box': normalizedBorder })), (this.minHeight && { '--sizing-min-height-box': this.minHeight })), (this.minWidth && { '--sizing-min-width-box': this.minWidth })), (this.flex && !['none', 'grow', 'shrink'].includes(this.flex) && { 'flex': this.flex }));
|
|
159
159
|
this.hostKeeper.record(boxClasses, boxInlineStyles);
|
|
160
|
-
return (index.h(index.Host, { key: '
|
|
160
|
+
return (index.h(index.Host, { key: '8a1348247b5a4c546759232f0f155721798797e5', class: boxClasses, style: boxInlineStyles }));
|
|
161
161
|
}
|
|
162
162
|
get el() { return index.getElement(this); }
|
|
163
163
|
};
|
|
@@ -8,7 +8,7 @@ require('./keep-hydrated-CiXgkEYd.js');
|
|
|
8
8
|
|
|
9
9
|
const labelCss = () => `:host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}`;
|
|
10
10
|
|
|
11
|
-
const pdsCheckboxCss = () => `:host{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}:host(.is-invalid) input{border-color:var(--pine-color-border-danger)}:host(.is-invalid) input:checked{background:var(--pine-color-danger)}:host(.is-invalid) input:checked::after{border-color:var(--pine-color-white)}:host(.is-invalid) input:checked:hover{background:var(--pine-color-danger-hover);border-color:var(--pine-color-border-danger-hover)}:host(.is-invalid) input:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}:host(.is-invalid) label,:host(.is-invalid) .pds-checkbox__message--error{color:var(--pine-color-text-message-danger)}:host(.is-indeterminate) input{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}:host(.is-indeterminate) input:hover{background:var(--pine-color-accent);border-color:var(--pine-color-accent-hover)}:host(.is-indeterminate) input::after{border:1px solid var(--pine-color-text-primary);-webkit-border-after:var(--pine-border-width-none);border-block-end:var(--pine-border-width-none);-webkit-border-before:var(--pine-border-width-none);border-block-start:var(--pine-border-width-none);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);content:"";display:block;height:7px;inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg);width:4px}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-2xs);-ms-flex:none;flex:none;height:var(--pine-dimension-sm);margin:0;-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025);position:relative;width:var(--pine-dimension-sm)}input:hover{background:var(--pine-color-background-container-hover);border:var(--pine-border-hover)}input:checked{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}input:checked:hover{background:var(--pine-color-accent-hover);border-color:var(--pine-color-accent-hover)}input:checked::after{border:1px solid var(--pine-color-text-primary);-webkit-border-before:var(--pine-border-width-none);border-block-start:var(--pine-border-width-none);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);content:"";display:block;height:7px;inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate(-50%, -60%) rotate(43deg);transform:translate(-50%, -60%) rotate(43deg);width:4px}input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}input:disabled:checked{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled)}input:disabled:checked::after{border-color:var(--pine-color-border)}input:disabled+label{cursor:not-allowed}input:disabled~.pds-checkbox__message{color:var(--pine-color-text-disabled)}input:focus-visible{outline:var(--pine-outline-focus)}:host-context([dir=rtl]) input:checked::after{-webkit-transform:translate(-50%, -60%) rotate(-43deg);transform:translate(-50%, -60%) rotate(-43deg)}label{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs)}:host(.has-label-slot) label{-ms-flex-align:center;align-items:center}:host(.has-label-slot) input{-webkit-margin-before:0;margin-block-start:0}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-checkbox__message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:6px;margin-block-start:6px;-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);width:100%}.pds-checkbox__message--error{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-checkbox__message--error pds-icon{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}`;
|
|
11
|
+
const pdsCheckboxCss = () => `:host{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}:host(.is-invalid) input{border-color:var(--pine-color-border-danger)}:host(.is-invalid) input:checked{background:var(--pine-color-danger)}:host(.is-invalid) input:checked::after{border-color:var(--pine-color-white)}:host(.is-invalid) input:checked:hover{background:var(--pine-color-danger-hover);border-color:var(--pine-color-border-danger-hover)}:host(.is-invalid) input:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}:host(.is-invalid) label,:host(.is-invalid) .pds-checkbox__message--error{color:var(--pine-color-text-message-danger)}:host(.is-indeterminate) input{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}:host(.is-indeterminate) input:hover{background:var(--pine-color-accent);border-color:var(--pine-color-accent-hover)}:host(.is-indeterminate) input::after{border:1px solid var(--pine-color-text-primary);-webkit-border-after:var(--pine-border-width-none);border-block-end:var(--pine-border-width-none);-webkit-border-before:var(--pine-border-width-none);border-block-start:var(--pine-border-width-none);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);content:"";display:block;height:7px;inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg);width:4px}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-2xs);-ms-flex:none;flex:none;height:var(--pine-dimension-sm);margin:0;-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025);position:relative;width:var(--pine-dimension-sm)}input:hover{background:var(--pine-color-background-container-hover);border:var(--pine-border-hover)}input:checked{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}input:checked:hover{background:var(--pine-color-accent-hover);border-color:var(--pine-color-accent-hover)}input:checked::after{border:1px solid var(--pine-color-text-primary);-webkit-border-before:var(--pine-border-width-none);border-block-start:var(--pine-border-width-none);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);content:"";display:block;height:7px;inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate(-50%, -60%) rotate(43deg);transform:translate(-50%, -60%) rotate(43deg);width:4px}input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}input:disabled:checked{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled)}input:disabled:checked::after{border-color:var(--pine-color-border)}input:disabled+label{cursor:not-allowed}input:disabled~.pds-checkbox__message{color:var(--pine-color-text-disabled)}input:focus-visible{outline:var(--pine-outline-focus)}:host-context([dir=rtl]) input:checked::after{-webkit-transform:translate(-50%, -60%) rotate(-43deg);transform:translate(-50%, -60%) rotate(-43deg)}label{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs)}:host(.has-label-slot) label{-ms-flex-align:center;align-items:center}:host(.has-label-slot) label,:host(.has-label-slot) label>span{min-width:0}:host(.has-label-slot) input{-webkit-margin-before:0;margin-block-start:0}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-checkbox__message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:6px;margin-block-start:6px;-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);width:100%}.pds-checkbox__message--error{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-checkbox__message--error pds-icon{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}`;
|
|
12
12
|
|
|
13
13
|
const PdsCheckbox = class {
|
|
14
14
|
constructor(hostRef) {
|
|
@@ -105,6 +105,18 @@ const PdsCheckbox = class {
|
|
|
105
105
|
this.checked = state === (this.value || 'on');
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* Form Associated Custom Elements API: Called when the form is disabled
|
|
110
|
+
*/
|
|
111
|
+
formDisabledCallback(disabled) {
|
|
112
|
+
// Also fires when this element's own `disabled` attribute is merely present, even as the
|
|
113
|
+
// literal string "false" (a consumer's or React's attribute serialization can write that) —
|
|
114
|
+
// the platform treats any value as disabled, independent of fieldset state. A real disabled
|
|
115
|
+
// fieldset ancestor confirms this is genuinely that, not this element's own attribute.
|
|
116
|
+
if (disabled && !this.el.closest('fieldset[disabled]'))
|
|
117
|
+
return;
|
|
118
|
+
this.disabled = disabled;
|
|
119
|
+
}
|
|
108
120
|
componentWillLoad() {
|
|
109
121
|
this.inheritedAttributes = Object.assign({}, attributes.inheritAriaAttributes(this.el));
|
|
110
122
|
this.updateHasLabelSlot();
|
|
@@ -112,9 +124,9 @@ const PdsCheckbox = class {
|
|
|
112
124
|
render() {
|
|
113
125
|
const hostClass = this.classNames();
|
|
114
126
|
this.hostKeeper.record(hostClass);
|
|
115
|
-
return (index.h(index.Host, { key: '
|
|
116
|
-
index.h("div", { key: '
|
|
117
|
-
index.h("div", { key: '
|
|
127
|
+
return (index.h(index.Host, { key: 'bbe09a5e9eb55f62b2921b09a04ddc9476a871ae', class: hostClass }, index.h("label", { key: 'fa1856d9306eb8c0c19618ea5e2619ea20c3c51d', htmlFor: this.componentId }, index.h("input", Object.assign({ key: '8537d97a8e69a17d0d563306dac179e393885dda', type: "checkbox", "aria-describedby": form.assignDescription(this.componentId, this.invalid, this.helperMessage, this.errorMessage), "aria-invalid": this.invalid ? "true" : undefined, id: this.componentId, indeterminate: this.indeterminate, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleCheckboxChange, onInput: this.handleInput }, this.inheritedAttributes)), index.h("span", { key: 'e523922889c80a2d18243cb560cd855bab95803d', class: this.hideLabel ? 'visually-hidden' : '' }, index.h("slot", { key: 'b6ff34ecbc346d254a0211bfa610823feedb486b', name: "label", onSlotchange: this.updateHasLabelSlot }), !this.hasLabelSlot && this.label)), this.helperMessage &&
|
|
128
|
+
index.h("div", { key: '55dcca850dff0aa93d9ba63d6827d9155ac35dab', class: 'pds-checkbox__message', id: form.messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
129
|
+
index.h("div", { key: '5af843679994d29f084d41e90e41e0939c951063', class: `pds-checkbox__message pds-checkbox__message--error`, id: form.messageId(this.componentId, 'error'), "aria-live": "assertive" }, index.h("pds-icon", { key: '10f7efe5d4b252d9dea6f398eff973ba32506898', icon: index$1.danger, size: "small" }), this.errorMessage)));
|
|
118
130
|
}
|
|
119
131
|
static get formAssociated() { return true; }
|
|
120
132
|
get el() { return index.getElement(this); }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-jl_Q819j.js');
|
|
4
4
|
var index$1 = require('./index-5Azb8EQG.js');
|
|
5
5
|
var attributes = require('./attributes-BJ7KBHql.js');
|
|
6
|
-
var truncationTooltip = require('./truncation-tooltip-
|
|
6
|
+
var truncationTooltip = require('./truncation-tooltip-DO9xli2e.js');
|
|
7
7
|
var utils = require('./utils-BhRmyxT8.js');
|
|
8
8
|
require('./keep-hydrated-CiXgkEYd.js');
|
|
9
9
|
require('./floating-ui.dom-Dc8Anyel.js');
|
|
@@ -22,6 +22,26 @@ const SENTIMENT_DOT_COLORS = {
|
|
|
22
22
|
success: 'var(--pine-chip-color-success-dot)',
|
|
23
23
|
warning: 'var(--pine-chip-color-warning-dot)',
|
|
24
24
|
};
|
|
25
|
+
// Controls a chip can sit inside that already take focus, so a clipped label adds no tab stop of its own.
|
|
26
|
+
// Not any `[tabindex]`: a focusable scroll region full of chips would show every chip's tooltip at once.
|
|
27
|
+
const FOCUSABLE_WRAPPER = 'a[href], button, summary, pds-button, pds-link, pds-tab, pds-dropdown-menu-item, [role="option"]';
|
|
28
|
+
// Beside the listbox and level with the option, so the tooltip never covers the other options.
|
|
29
|
+
function besideListbox(wrapper) {
|
|
30
|
+
const option = (wrapper === null || wrapper === void 0 ? void 0 : wrapper.matches('[role="option"]')) ? wrapper : null;
|
|
31
|
+
const listbox = option === null || option === void 0 ? void 0 : option.closest('[role="listbox"]');
|
|
32
|
+
if (!option || !listbox)
|
|
33
|
+
return {};
|
|
34
|
+
return {
|
|
35
|
+
placement: 'right',
|
|
36
|
+
reference: {
|
|
37
|
+
getBoundingClientRect: () => {
|
|
38
|
+
const { top, bottom, height } = option.getBoundingClientRect();
|
|
39
|
+
const { left, right, width } = listbox.getBoundingClientRect();
|
|
40
|
+
return { x: left, y: top, top, left, bottom, right, width, height };
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
25
45
|
const PdsChip = class {
|
|
26
46
|
constructor(hostRef) {
|
|
27
47
|
index.registerInstance(this, hostRef);
|
|
@@ -56,6 +76,11 @@ const PdsChip = class {
|
|
|
56
76
|
}
|
|
57
77
|
connectedCallback() {
|
|
58
78
|
this.hostKeeper.connect(this.el);
|
|
79
|
+
// A moved chip reconnects without re-rendering, so componentDidRender won't re-bind what
|
|
80
|
+
// disconnectedCallback tore down. Before the first render there's no label, and it binds there.
|
|
81
|
+
if (this.maxWidth && this.labelTextEl) {
|
|
82
|
+
this.initTruncationTooltip();
|
|
83
|
+
}
|
|
59
84
|
}
|
|
60
85
|
// Bind (and re-bind) here, not just on load: changing variant/size remounts
|
|
61
86
|
// the label span, so the tooltip has to re-attach to the current node or it
|
|
@@ -80,16 +105,15 @@ const PdsChip = class {
|
|
|
80
105
|
initTruncationTooltip() {
|
|
81
106
|
this.destroyTruncationTooltip();
|
|
82
107
|
if (this.labelTextEl) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
contentEl: this.labelTextEl,
|
|
86
|
-
getTooltipText: () => this.el.textContent || '',
|
|
108
|
+
const wrapper = this.el.closest(FOCUSABLE_WRAPPER);
|
|
109
|
+
this.truncationCleanup = truncationTooltip.setupTruncationTooltip(Object.assign({ hostEl: this.el, contentEl: this.labelTextEl, getTooltipText: () => this.el.textContent || '',
|
|
87
110
|
// The dropdown variant's label span already sits inside
|
|
88
111
|
// `<button class="pds-chip__button">`, which is already focusable and
|
|
89
112
|
// bubbles focusin to the host — a tabindex on the span too would nest
|
|
90
113
|
// a second tab stop inside the button.
|
|
91
|
-
manageTabIndex: this.effectiveVariant !== 'dropdown',
|
|
92
|
-
|
|
114
|
+
manageTabIndex: this.effectiveVariant !== 'dropdown' && !wrapper,
|
|
115
|
+
// A wrapping control sits outside the host, so its focus never reaches the host's listener.
|
|
116
|
+
focusEl: wrapper !== null && wrapper !== void 0 ? wrapper : this.el }, besideListbox(wrapper)));
|
|
93
117
|
this.tooltipBoundEl = this.labelTextEl;
|
|
94
118
|
}
|
|
95
119
|
}
|
|
@@ -146,7 +170,8 @@ const PdsChip = class {
|
|
|
146
170
|
// label span already sits inside `<button class="pds-chip__button">`,
|
|
147
171
|
// which is already focusable and bubbles focusin to the host, so
|
|
148
172
|
// initTruncationTooltip passes `manageTabIndex: false` there to avoid
|
|
149
|
-
// nesting a second tab stop inside the button.
|
|
173
|
+
// nesting a second tab stop inside the button. The same goes for a chip
|
|
174
|
+
// inside a consumer's own focusable control (FOCUSABLE_WRAPPER).
|
|
150
175
|
const chipContent = isDropdown ? (index.h("button", { class: "pds-chip__button", type: "button", part: "button" }, this.icon && index.h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && index.h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), index.h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, index.h("slot", null)), index.h("pds-icon", { icon: index$1.downSmall, size: this.iconSize, "aria-hidden": "true" }))) : (index.h("span", { class: "pds-chip__label" }, this.icon && index.h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && index.h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), index.h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, index.h("slot", null))));
|
|
151
176
|
return chipContent;
|
|
152
177
|
}
|
|
@@ -220,7 +245,7 @@ const PdsChip = class {
|
|
|
220
245
|
const hostClass = this.classNames();
|
|
221
246
|
const hostStyles = this.hostStyles;
|
|
222
247
|
this.hostKeeper.record(hostClass, hostStyles);
|
|
223
|
-
return (index.h(index.Host, { key: '
|
|
248
|
+
return (index.h(index.Host, { key: 'f82d84a7f0a4f1c980d47bf75cd4ffeef042607d', class: hostClass, id: this.componentId, style: hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
224
249
|
}
|
|
225
250
|
get el() { return index.getElement(this); }
|
|
226
251
|
};
|
|
@@ -2317,6 +2317,18 @@ const PdsCombobox = class {
|
|
|
2317
2317
|
this.internals = this.el.attachInternals();
|
|
2318
2318
|
}
|
|
2319
2319
|
}
|
|
2320
|
+
/**
|
|
2321
|
+
* Form Associated Custom Elements API: Called when the form is disabled
|
|
2322
|
+
*/
|
|
2323
|
+
formDisabledCallback(disabled) {
|
|
2324
|
+
// Also fires when this element's own `disabled` attribute is merely present, even as the
|
|
2325
|
+
// literal string "false" (a consumer's or React's attribute serialization can write that) —
|
|
2326
|
+
// the platform treats any value as disabled, independent of fieldset state. A real disabled
|
|
2327
|
+
// fieldset ancestor confirms this is genuinely that, not this element's own attribute.
|
|
2328
|
+
if (disabled && !this.el.closest('fieldset[disabled]'))
|
|
2329
|
+
return;
|
|
2330
|
+
this.disabled = disabled;
|
|
2331
|
+
}
|
|
2320
2332
|
componentWillLoad() {
|
|
2321
2333
|
this.originalSearchEmitter = this.pdsComboboxSearch;
|
|
2322
2334
|
this.updateOptions();
|
|
@@ -3604,7 +3616,8 @@ const PdsCombobox = class {
|
|
|
3604
3616
|
return this.selectedOption ? this.selectedOption.value : null;
|
|
3605
3617
|
}
|
|
3606
3618
|
/**
|
|
3607
|
-
* Clears the selected value and resets the component.
|
|
3619
|
+
* Clears the selected value and resets the component. Works while disabled too, as setting a
|
|
3620
|
+
* native control's value from script does.
|
|
3608
3621
|
*/
|
|
3609
3622
|
async clear() {
|
|
3610
3623
|
const hadValue = this.value !== '' || this.displayText !== '';
|
|
@@ -4181,13 +4194,13 @@ const PdsCombobox = class {
|
|
|
4181
4194
|
]
|
|
4182
4195
|
.filter(Boolean)
|
|
4183
4196
|
.join(' ');
|
|
4184
|
-
return (index.h(index.Host, { key: '
|
|
4197
|
+
return (index.h(index.Host, { key: 'ead770a3b7ba531a1cfdc6b02aef6d7159481ed0', "aria-disabled": this.disabled ? 'true' : null }, index.h("div", { key: '3ca6fd299acd1db8a0e476eee5f7606bc6153625', class: "pds-combobox", tabIndex: -1, onFocusout: this.onComboboxFocusOut, part: "combobox" }, this.hasVisibleLabel && (index.h("label", { key: '44c72d099c5ccddce18400b9d3c66158f485de05', htmlFor: this.trigger === 'input' ? this.componentId : undefined, id: this.labelId, class: "pds-combobox__label", onClick: this.onLabelClick }, this.label)), this.trigger === 'input' ? (index.h("div", { class: "pds-combobox__input-wrapper", style: { width: this.triggerWidth } }, index.h("input", { ref: el => {
|
|
4185
4198
|
this.inputEl = el;
|
|
4186
4199
|
this.triggerEl = el;
|
|
4187
4200
|
}, class: {
|
|
4188
4201
|
'pds-combobox__input': true,
|
|
4189
4202
|
'pds-combobox__input--invalid': this.isInvalid(),
|
|
4190
|
-
}, type: "text", role: "combobox", "aria-autocomplete": "list", "aria-haspopup": this.inputPopupRole === 'tree' ? 'tree' : undefined, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), index.h("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (index.h("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.triggerAriaLabel, "aria-labelledby": this.triggerLabelledBy, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (index.h("div", { class: triggerClass, style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.triggerAriaLabel, "aria-labelledby": this.triggerLabelledBy, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), this.renderMessages(), index.h("div", { key: '
|
|
4203
|
+
}, type: "text", role: "combobox", "aria-autocomplete": "list", "aria-haspopup": this.inputPopupRole === 'tree' ? 'tree' : undefined, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.hideLabel ? this.label : undefined, id: this.componentId, value: this.displayText, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onClick: this.handleInputClick, onKeyDown: this.handleKeyDown, autocomplete: "off", part: "input" }), index.h("pds-icon", { icon: "enlarge", "aria-hidden": "true", class: "pds-combobox__input-icon" }))) : this.trigger === 'chip' ? (index.h("div", { class: this.getChipTriggerClass(), style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.triggerAriaLabel, "aria-labelledby": this.triggerLabelledBy, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "chip-trigger" }, this.renderChipTriggerContent())) : (index.h("div", { class: triggerClass, style: { width: this.triggerWidth }, role: this.usesPanelSearch ? 'button' : 'combobox', "aria-haspopup": this.triggerPopupRole, "aria-controls": this.listboxId, "aria-describedby": form.assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-activedescendant": this.usesPanelSearch ? undefined : this.activeDescendantId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.triggerAriaLabel, "aria-labelledby": this.triggerLabelledBy, id: this.componentId, tabIndex: this.disabled ? -1 : 0, onClick: this.onButtonTriggerClick, "data-layout": this.customTriggerContent, onKeyDown: this.onButtonTriggerKeyDown, onKeyUp: this.onButtonTriggerKeyUp, ref: el => (this.triggerEl = el), part: "button-trigger" }, this.renderButtonTriggerContent())), this.renderMessages(), index.h("div", { key: '349af9dc6fdae018d4443b178e21b1627fcc85ca', style: { display: 'none' } }, index.h("slot", { key: '9af42db6d08f148b7d7b5e4b3199f7c9af7699a4', onSlotchange: () => this.updateOptions() })), this.renderDropdown(), this.groupDisplay !== 'inline' && [
|
|
4191
4204
|
index.h("span", { key: "drill-status", class: "visually-hidden", role: "status", "aria-live": "polite" }, this.isOpen && this.effectiveGroupDisplay === 'drill-in' && this.openGroup !== null ? this.openGroup.label : ''),
|
|
4192
4205
|
// Its own region: sharing one, revealing a row then opening it would leave the text the
|
|
4193
4206
|
// same, and opening the group would go unannounced.
|
|
@@ -4,7 +4,7 @@ var index = require('./index-jl_Q819j.js');
|
|
|
4
4
|
var attributes = require('./attributes-BJ7KBHql.js');
|
|
5
5
|
var index$1 = require('./index-5Azb8EQG.js');
|
|
6
6
|
var reflectedAttributeDefault = require('./reflected-attribute-default-DVYHG6O1.js');
|
|
7
|
-
var truncationTooltip = require('./truncation-tooltip-
|
|
7
|
+
var truncationTooltip = require('./truncation-tooltip-DO9xli2e.js');
|
|
8
8
|
require('./keep-hydrated-CiXgkEYd.js');
|
|
9
9
|
require('./floating-ui.dom-Dc8Anyel.js');
|
|
10
10
|
|
|
@@ -49,6 +49,11 @@ const PdsCopytext = class {
|
|
|
49
49
|
}
|
|
50
50
|
connectedCallback() {
|
|
51
51
|
this.hostKeeper.connect(this.el);
|
|
52
|
+
// componentDidLoad runs once, so a moved element re-binds here what disconnectedCallback tore
|
|
53
|
+
// down. Before the first render there's no valueSpanEl yet, and componentDidLoad binds it.
|
|
54
|
+
if (this.truncate && this.valueSpanEl) {
|
|
55
|
+
this.initTruncationTooltip();
|
|
56
|
+
}
|
|
52
57
|
}
|
|
53
58
|
restoreBorderDefault(newValue) {
|
|
54
59
|
this.border = reflectedAttributeDefault.restoreReflectedDefault(this.el, 'border', newValue, true);
|
|
@@ -111,7 +116,7 @@ const PdsCopytext = class {
|
|
|
111
116
|
render() {
|
|
112
117
|
const hostClass = this.classNames();
|
|
113
118
|
this.hostKeeper.record(hostClass);
|
|
114
|
-
return (index.h(index.Host, { key: '
|
|
119
|
+
return (index.h(index.Host, { key: 'a3517b135fc3e3677e30b6ad5811c1170a819b65', class: hostClass, id: this.componentId }, index.h("pds-button", { key: '02f56bed02ed3963a3d80a92148d6619a845224a', type: "button", variant: "unstyled", onClick: this.handleClick }, index.h("span", { key: '95fd1284e3d227b74dab613eb71f5385c3a0be29', ref: (el) => this.valueSpanEl = el }, this.value), index.h("pds-icon", { key: '21af67a8c9165e56d2d2b0cf19df7c7e3f290c72', "aria-hidden": "true", icon: index$1.copy, size: "16px" }))));
|
|
115
120
|
}
|
|
116
121
|
get el() { return index.getElement(this); }
|
|
117
122
|
static get watchers() { return {
|
|
@@ -5,7 +5,7 @@ var closest = require('./closest-D0qyYtJ3.js');
|
|
|
5
5
|
var reconnectedContent = require('./reconnected-content-CpnEQcTp.js');
|
|
6
6
|
require('./keep-hydrated-CiXgkEYd.js');
|
|
7
7
|
|
|
8
|
-
const pdsDrawerCss = () => `.pds-drawer__modal>.pds-modal__backdrop{-ms-flex-align:stretch;align-items:stretch}.pds-drawer__modal:not(.pds-drawer__modal--modal)>.pds-modal__backdrop{background-color:transparent;pointer-events:none}@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))){.pds-drawer__modal:not(.pds-drawer__modal--modal)>.pds-modal__backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}.pds-drawer__modal>.pds-modal__backdrop[aria-modal]::before{content:none}.pds-drawer__modal>.pds-modal__backdrop>.pds-modal{border-radius:0;height:100%;margin:0;max-height:100%;max-width:100%;pointer-events:auto;width:var(--pds-drawer-width, 500px)}.pds-drawer{display:contents}.pds-drawer.pds-drawer--end .pds-drawer__modal>.pds-modal__backdrop{-ms-flex-pack:end;justify-content:flex-end}.pds-drawer.pds-drawer--start .pds-drawer__modal>.pds-modal__backdrop{-ms-flex-pack:start;justify-content:flex-start}.pds-drawer.pds-drawer--sm{--pds-drawer-width:360px}.pds-drawer.pds-drawer--md{--pds-drawer-width:500px}`;
|
|
8
|
+
const pdsDrawerCss = () => `.pds-drawer__modal>.pds-modal__backdrop{-ms-flex-align:stretch;align-items:stretch}.pds-drawer__modal:not(.pds-drawer__modal--modal)>.pds-modal__backdrop{background-color:transparent;pointer-events:none}@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))){.pds-drawer__modal:not(.pds-drawer__modal--modal)>.pds-modal__backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}.pds-drawer__modal:not(.pds-drawer__modal--modal)>.pds-modal__backdrop>*{pointer-events:auto}.pds-drawer__modal>.pds-modal__backdrop[aria-modal]::before{content:none}.pds-drawer__modal>.pds-modal__backdrop>.pds-modal{border-radius:0;height:100%;margin:0;max-height:100%;max-width:100%;pointer-events:auto;width:var(--pds-drawer-width, 500px)}.pds-drawer{display:contents}.pds-drawer.pds-drawer--end .pds-drawer__modal>.pds-modal__backdrop{-ms-flex-pack:end;justify-content:flex-end}.pds-drawer.pds-drawer--start .pds-drawer__modal>.pds-modal__backdrop{-ms-flex-pack:start;justify-content:flex-start}.pds-drawer.pds-drawer--sm{--pds-drawer-width:360px}.pds-drawer.pds-drawer--md{--pds-drawer-width:500px}`;
|
|
9
9
|
|
|
10
10
|
// Known selectors for content Pine components portal out of place rather than
|
|
11
11
|
// rendering where they are — pds-tooltip and pds-combobox's dropdown in
|
|
@@ -65,7 +65,7 @@ const PdsDropdownMenuItem = class {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
renderElement() {
|
|
68
|
-
if (this.href
|
|
68
|
+
if (this.href != null) {
|
|
69
69
|
return (index.h("pds-link", { download: this.download, href: this.disabled ? null : this.href, external: this.external, target: this.target, class: {
|
|
70
70
|
'pds-dropdown-menu-item__content': true,
|
|
71
71
|
'has-focus': this.hasFocus
|
|
@@ -77,7 +77,7 @@ const PdsDropdownMenuItem = class {
|
|
|
77
77
|
}, tabIndex: this.disabled ? -1 : 0, type: "button", part: "button", onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null }, index.h("slot", null)));
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (index.h(index.Host, { key: '
|
|
80
|
+
return (index.h(index.Host, { key: '2d499a06768bdc4b9a34774d16c1f1e10804b3d5', id: this.componentId, class: { 'is-disabled': this.disabled, 'destructive': !this.disabled && this.destructive }, onClick: () => !this.disabled && this.handleClick(), role: "none", tabIndex: -1, "aria-disabled": this.disabled ? 'true' : null }, this.renderElement()));
|
|
81
81
|
}
|
|
82
82
|
get host() { return index.getElement(this); }
|
|
83
83
|
};
|