@digdir/designsystemet-web 1.20.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/cjs/_vendors/invokers-polyfill/invoker.cjs +1 -1
- package/dist/cjs/_vendors/invokers-polyfill/invoker.cjs.map +1 -1
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/cjs/field/field.cjs +1 -1
- package/dist/cjs/field/field.cjs.map +1 -1
- package/dist/cjs/packages/web/package.cjs +1 -1
- package/dist/cjs/popover/popover.cjs.map +1 -1
- package/dist/cjs/tooltip/tooltip.cjs +1 -1
- package/dist/cjs/tooltip/tooltip.cjs.map +1 -1
- package/dist/custom-elements.json +2 -2
- package/dist/esm/_vendors/invokers-polyfill/invoker.js +1 -1
- package/dist/esm/_vendors/invokers-polyfill/invoker.js.map +1 -1
- package/dist/esm/field/field.js +1 -1
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/packages/web/package.js +1 -1
- package/dist/esm/tooltip/tooltip.js +1 -1
- package/dist/esm/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +102 -108
- package/dist/index.js +4 -10
- package/dist/umd/index.js +4 -4
- package/dist/umd/index.js.map +1 -1
- package/package.json +9 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","names":[],"sources":["../../../src/tooltip/tooltip.ts"],"sourcesContent":["import '../popover/popover'; // Ensure popover is imported when using individual imports, since tooltip relies on it\nimport {\n ARIA_DESC,\n ARIA_LABEL,\n announce,\n attr,\n attrOrCSS,\n getComposedTarget,\n getRoot,\n isBrowser,\n on,\n onHotReload,\n onMutation,\n QUICK_EVENT,\n tag,\n warn,\n} from '../utils/utils';\n\nlet TIP: HTMLElement | undefined;\nlet TIMER: ReturnType<typeof setTimeout> | undefined;\nlet TARGET: Element | undefined; // Used to speed up mousemove handling\nlet OPEN: Element | undefined;\nlet LAST_HIDE = 0;\nconst ATTR_COLOR = 'data-color';\nconst ATTR_SCHEME = 'data-color-scheme';\nconst ATTR_SIZE = 'data-size';\nconst ATTR_TOOLTIP = 'data-tooltip';\nconst DELAY_HOVER = 300;\nconst DELAY_SKIP = 300;\nconst IS_IOS = isBrowser() && /iPad|iPhone|iPod/.test(navigator.userAgent); // Needed to omit DELAY_HOVER since iOS triggers mousemove before click\nconst SELECTOR_COLOR = `[${ATTR_COLOR}]`;\nconst SELECTOR_SCHEME = `[${ATTR_SCHEME}]`;\nconst SELECTOR_SIZE = `[${ATTR_SIZE}]`;\nconst SELECTOR_TOOLTIP = `[${ATTR_TOOLTIP}]`;\n\n/**\n * setTooltipElement\n * @description Allows setting a custom tooltip element. It does not need to, and should not, be injected to document.body, as we inject on hover to ensure React hydration works as expected.\n * @param el The HTMLElement to use as tooltip\n */\nexport const setTooltipElement = (el?: HTMLElement | null) => {\n if (el && !(el instanceof HTMLElement))\n warn('setTooltipElement expects an HTMLElement, got: ', el);\n hide(); // Reset when changing source\n LAST_HIDE = 0; // Reset last hide time to re-enable delay\n TIP = el || undefined;\n};\n\nexport const initTooltips = (\n scope: Element | ShadowRoot | Document | null = document,\n) => {\n for (const el of scope?.querySelectorAll(SELECTOR_TOOLTIP) || [])\n setupText(el);\n};\n\n// Initial run has no MutationRecords, so we set records to [null] to ensure we run the querySelectorAll for any existing elements with data-tooltip\nconst handleMutations = (_: Document, records?: MutationRecord[]) => {\n if (!records) return initTooltips();\n for (const r of records) {\n if (r.target === TIP) continue; // Ignore mutations on tooltip itself\n if (r.attributeName === ATTR_TOOLTIP) setupText(r.target as Element);\n else\n for (const el of r.addedNodes as NodeListOf<Element>) {\n if (el.nodeType !== 1) continue;\n if (el.hasAttribute(ATTR_TOOLTIP)) setupText(el);\n else initTooltips(el); // Check for any child elements with data-tooltip\n }\n }\n};\n\nconst setupText = (el: Element, canAnnounce = true) => {\n let text = attrOrCSS(el, ATTR_TOOLTIP) || '';\n\n // Allow using another element as source.\n // Note: Only checks on initial mutation, as we do not want to keep checking if the source element is removed or changed,\n // since this would be a performance issue. If the source element is removed, the tooltip will be empty and not shown.\n if (text[0] === '#')\n text = getRoot(el).getElementById(text.slice(1))?.textContent?.trim() || '';\n\n if (text !== (el.getAttribute(ARIA_LABEL) || el.getAttribute(ARIA_DESC))) {\n const hasText = attr(el, 'role') !== 'img' && el.textContent?.trim(); // If role=\"img\", ignore text\n attr(el, ATTR_TOOLTIP, text); // Set data-tooltip attribute to speed up future mutations\n attr(el, ARIA_LABEL, hasText ? null : text); // Set aria-label if element does not have text\n attr(el, ARIA_DESC, hasText ? text : null); // Set aria-description if element has text\n if ((el as HTMLElement).tabIndex === -1)\n warn('Missing tabindex=\"0\" attribute on: ', el);\n }\n if (el === OPEN && TIP?.textContent !== text) {\n if (TIP) TIP.textContent = text; // Update tooltip text if it is already open\n if (text && canAnnounce && document.activeElement === el) announce(text); // Only announce if focus is on the source\n }\n};\n\nconst handleInterest = (e: Event) => {\n const target = getComposedTarget(e);\n if (!target || TARGET === target || TIP?.contains(target as Node)) return; // Same target, or allow tooltip to be hovered (following https://www.w3.org/TR/WCAG21/#content-on-hover-or-focus)\n TARGET = target;\n\n const source = TARGET?.closest?.(SELECTOR_TOOLTIP) || undefined;\n if (OPEN === source) return; // Same source, no need to update\n if (OPEN) hide(); // Reset previous tooltip, since we are moving to a new source\n OPEN = source;\n\n if (!source) return; // No source, no need to show tooltip\n if (e.type === 'focus' || IS_IOS || DELAY_SKIP > Date.now() - LAST_HIDE)\n return show(); // Instantly show if focus or if we just closed a tooltip\n if (e.type === 'mousemove') TIMER = setTimeout(show, DELAY_HOVER); // Delay mouse showing tooltip if not already shown\n};\n\nconst show = () => {\n if (!OPEN) return hide(); // If no new anchor, cleanup previous autoUpdate\n if (!TIP) TIP = tag('div', { class: 'ds-tooltip' });\n if (!TIP.isConnected) document.body.appendChild(TIP);\n\n const color = OPEN.closest(SELECTOR_COLOR); // Match source color of source element\n const scheme = OPEN.closest(SELECTOR_SCHEME); // Match source color-scheme of source element\n const size = OPEN.closest(SELECTOR_SIZE); // Match source size of source element\n const isReset = color !== scheme && color?.contains(scheme as Node); // If data-scheme is closer to target, it will reset data-color\n\n attr(TIP, 'popover', 'manual'); // Ensure popover behavior\n attr(TIP, ATTR_SCHEME, scheme?.getAttribute(ATTR_SCHEME) || null); // Fallback to null to reset if not scheme found\n attr(TIP, ATTR_COLOR, (isReset && color?.getAttribute(ATTR_COLOR)) || null); // Fallback to null to reset if not scheme found\n attr(TIP, ATTR_SIZE, size?.getAttribute(ATTR_SIZE) || null); // Fallback to null to reset if not size found\n setupText(OPEN, false); // If mutation observer is not triggered, ensure tooltip text is updated\n TIP.showPopover();\n TIP.dispatchEvent(\n new CustomEvent('ds-toggle-source', {\n bubbles: true,\n composed: true, // Enable bubbling out of shadow DOM boundaries\n detail: OPEN, // Since showPopover({ source }) is not supported in all browsers yet\n }),\n );\n};\n\nconst hide = (event?: Partial<KeyboardEvent>) => {\n if (event?.type === 'keydown' && event?.key !== 'Escape') return;\n if (OPEN && TIP?.isConnected && TIP.popover) TIP.hidePopover(); // Only hide if connected and activated\n if (!event) LAST_HIDE = Date.now(); // If closing with keyboard, do not show next tooltip instantly\n clearTimeout(TIMER);\n OPEN = undefined;\n};\n\nonHotReload('tooltip', () => [\n on(document, 'focus mousemove', handleInterest, QUICK_EVENT),\n on(document, 'keydown', hide, QUICK_EVENT),\n onMutation(document, handleMutations, {\n attributeFilter: [ATTR_TOOLTIP],\n attributes: true,\n childList: true,\n subtree: true,\n }),\n]);\n"],"mappings":"mQAkBA,IAAI,EACA,EACA,EACA,EACA,EAAY,EAChB,MAAM,EAAa,aACb,EAAc,oBACd,EAAY,YACZ,EAAe,eAGf,EAAS,EAAU,GAAK,mBAAmB,KAAK,UAAU,SAAS,EACnE,EAAiB,IAAI,EAAW,GAChC,EAAkB,IAAI,EAAY,GAClC,EAAgB,IAAI,EAAU,GAC9B,EAAmB,IAAI,EAAa,GAO7B,EAAqB,GAA4B,CACxD,GAAM,EAAE,aAAc,cACxB,EAAK,kDAAmD,CAAE,EAC5D,EAAK,EACL,EAAY,EACZ,EAAM,GAAM,IAAA,EACd,EAEa,GACX,EAAgD,WAC7C,CACH,IAAK,IAAM,KAAM,GAAO,iBAAiB,CAAgB,GAAK,CAAC,EAC7D,EAAU,CAAE,CAChB,EAGM,GAAmB,EAAa,IAA+B,CACnE,GAAI,CAAC,EAAS,OAAO,EAAa,EAClC,IAAK,IAAM,KAAK,EACV,KAAE,SAAW,EACjB,
|
|
1
|
+
{"version":3,"file":"tooltip.js","names":[],"sources":["../../../src/tooltip/tooltip.ts"],"sourcesContent":["import '../popover/popover'; // Ensure popover is imported when using individual imports, since tooltip relies on it\nimport {\n ARIA_DESC,\n ARIA_LABEL,\n announce,\n attr,\n attrOrCSS,\n getComposedTarget,\n getRoot,\n isBrowser,\n on,\n onHotReload,\n onMutation,\n QUICK_EVENT,\n tag,\n warn,\n} from '../utils/utils';\n\nlet TIP: HTMLElement | undefined;\nlet TIMER: ReturnType<typeof setTimeout> | undefined;\nlet TARGET: Element | undefined; // Used to speed up mousemove handling\nlet OPEN: Element | undefined;\nlet LAST_HIDE = 0;\nconst ATTR_COLOR = 'data-color';\nconst ATTR_SCHEME = 'data-color-scheme';\nconst ATTR_SIZE = 'data-size';\nconst ATTR_TOOLTIP = 'data-tooltip';\nconst DELAY_HOVER = 300;\nconst DELAY_SKIP = 300;\nconst IS_IOS = isBrowser() && /iPad|iPhone|iPod/.test(navigator.userAgent); // Needed to omit DELAY_HOVER since iOS triggers mousemove before click\nconst SELECTOR_COLOR = `[${ATTR_COLOR}]`;\nconst SELECTOR_SCHEME = `[${ATTR_SCHEME}]`;\nconst SELECTOR_SIZE = `[${ATTR_SIZE}]`;\nconst SELECTOR_TOOLTIP = `[${ATTR_TOOLTIP}]`;\n\n/**\n * setTooltipElement\n * @description Allows setting a custom tooltip element. It does not need to, and should not, be injected to document.body, as we inject on hover to ensure React hydration works as expected.\n * @param el The HTMLElement to use as tooltip\n */\nexport const setTooltipElement = (el?: HTMLElement | null) => {\n if (el && !(el instanceof HTMLElement))\n warn('setTooltipElement expects an HTMLElement, got: ', el);\n hide(); // Reset when changing source\n LAST_HIDE = 0; // Reset last hide time to re-enable delay\n TIP = el || undefined;\n};\n\nexport const initTooltips = (\n scope: Element | ShadowRoot | Document | null = document,\n) => {\n for (const el of scope?.querySelectorAll(SELECTOR_TOOLTIP) || [])\n setupText(el);\n};\n\n// Initial run has no MutationRecords, so we set records to [null] to ensure we run the querySelectorAll for any existing elements with data-tooltip\nconst handleMutations = (_: Document, records?: MutationRecord[]) => {\n if (!records) return initTooltips();\n for (const r of records) {\n if (r.target === TIP) continue; // Ignore mutations on tooltip itself\n if (r.attributeName === ATTR_TOOLTIP) setupText(r.target as Element);\n else\n for (const el of r.addedNodes as NodeListOf<Element>) {\n if (el.nodeType !== 1) continue;\n if (el.hasAttribute(ATTR_TOOLTIP)) setupText(el);\n else initTooltips(el); // Check for any child elements with data-tooltip\n }\n }\n};\n\nconst setupText = (el: Element, canAnnounce = true) => {\n let text = attrOrCSS(el, ATTR_TOOLTIP) || '';\n\n // Allow using another element as source.\n // Note: Only checks on initial mutation, as we do not want to keep checking if the source element is removed or changed,\n // since this would be a performance issue. If the source element is removed, the tooltip will be empty and not shown.\n if (text[0] === '#')\n text = getRoot(el).getElementById(text.slice(1))?.textContent?.trim() || '';\n\n if (text !== (el.getAttribute(ARIA_LABEL) || el.getAttribute(ARIA_DESC))) {\n const hasText = attr(el, 'role') !== 'img' && el.textContent?.trim(); // If role=\"img\", ignore text\n attr(el, ATTR_TOOLTIP, text); // Set data-tooltip attribute to speed up future mutations\n attr(el, ARIA_LABEL, hasText ? null : text); // Set aria-label if element does not have text\n attr(el, ARIA_DESC, hasText ? text : null); // Set aria-description if element has text\n if ((el as HTMLElement).tabIndex === -1)\n warn('Missing tabindex=\"0\" attribute on: ', el);\n }\n if (el === OPEN && TIP?.textContent !== text) {\n if (TIP) TIP.textContent = text; // Update tooltip text if it is already open\n if (text && canAnnounce && document.activeElement === el) announce(text); // Only announce if focus is on the source\n }\n};\n\nconst handleInterest = (e: Event) => {\n const target = getComposedTarget(e);\n if (!target || TARGET === target || TIP?.contains(target as Node)) return; // Same target, or allow tooltip to be hovered (following https://www.w3.org/TR/WCAG21/#content-on-hover-or-focus)\n TARGET = target;\n\n const source = TARGET?.closest?.(SELECTOR_TOOLTIP) || undefined;\n if (OPEN === source) return; // Same source, no need to update\n if (OPEN) hide(); // Reset previous tooltip, since we are moving to a new source\n OPEN = source;\n\n if (!source) return; // No source, no need to show tooltip\n if (e.type === 'focus' || IS_IOS || DELAY_SKIP > Date.now() - LAST_HIDE)\n return show(); // Instantly show if focus or if we just closed a tooltip\n if (e.type === 'mousemove') TIMER = setTimeout(show, DELAY_HOVER); // Delay mouse showing tooltip if not already shown\n};\n\nconst show = () => {\n if (!OPEN) return hide(); // If no new anchor, cleanup previous autoUpdate\n if (!TIP) TIP = tag('div', { class: 'ds-tooltip' });\n if (!TIP.isConnected) document.body.appendChild(TIP);\n\n const color = OPEN.closest(SELECTOR_COLOR); // Match source color of source element\n const scheme = OPEN.closest(SELECTOR_SCHEME); // Match source color-scheme of source element\n const size = OPEN.closest(SELECTOR_SIZE); // Match source size of source element\n const isReset = color !== scheme && color?.contains(scheme as Node); // If data-scheme is closer to target, it will reset data-color\n\n attr(TIP, 'popover', 'manual'); // Ensure popover behavior\n attr(TIP, ATTR_SCHEME, scheme?.getAttribute(ATTR_SCHEME) || null); // Fallback to null to reset if not scheme found\n attr(TIP, ATTR_COLOR, (isReset && color?.getAttribute(ATTR_COLOR)) || null); // Fallback to null to reset if not scheme found\n attr(TIP, ATTR_SIZE, size?.getAttribute(ATTR_SIZE) || null); // Fallback to null to reset if not size found\n setupText(OPEN, false); // If mutation observer is not triggered, ensure tooltip text is updated\n TIP.showPopover();\n TIP.dispatchEvent(\n new CustomEvent('ds-toggle-source', {\n bubbles: true,\n composed: true, // Enable bubbling out of shadow DOM boundaries\n detail: OPEN, // Since showPopover({ source }) is not supported in all browsers yet\n }),\n );\n};\n\nconst hide = (event?: Partial<KeyboardEvent>) => {\n if (event?.type === 'keydown' && event?.key !== 'Escape') return;\n if (OPEN && TIP?.isConnected && TIP.popover) TIP.hidePopover(); // Only hide if connected and activated\n if (!event) LAST_HIDE = Date.now(); // If closing with keyboard, do not show next tooltip instantly\n clearTimeout(TIMER);\n OPEN = undefined;\n};\n\nonHotReload('tooltip', () => [\n on(document, 'focus mousemove', handleInterest, QUICK_EVENT),\n on(document, 'keydown', hide, QUICK_EVENT),\n onMutation(document, handleMutations, {\n attributeFilter: [ATTR_TOOLTIP],\n attributes: true,\n childList: true,\n subtree: true,\n }),\n]);\n"],"mappings":"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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -156,93 +156,81 @@ declare class DSTabElement extends UTabs.UHTMLTabElement {}
|
|
|
156
156
|
declare class DSTabPanelElement extends UTabs.UHTMLTabPanelElement {}
|
|
157
157
|
//#endregion
|
|
158
158
|
export { DSBreadcrumbsElement, DSErrorSummaryElement, DSFieldElement, DSPaginationElement, DSSuggestionElement, DSTabElement, DSTabListElement, DSTabPanelElement, DSTabsElement, initTooltips, pagination, setTooltipElement };
|
|
159
|
-
import type * as PreactTypes from 'preact'
|
|
160
|
-
import type * as ReactTypes from 'react'
|
|
161
|
-
import type * as SvelteTypes from 'svelte/elements'
|
|
162
|
-
import type * as VueJSX from '@vue/runtime-dom'
|
|
163
|
-
import type { JSX as QwikJSX } from '@builder.io/qwik/jsx-runtime'
|
|
164
|
-
import type { JSX as SolidJSX } from 'solid-js'
|
|
165
159
|
|
|
166
160
|
|
|
167
|
-
export type
|
|
168
|
-
export type
|
|
169
|
-
export type
|
|
170
|
-
export type
|
|
171
|
-
export type
|
|
172
|
-
export type
|
|
161
|
+
export type PreactDstabs = PreactTypes.JSX.HTMLAttributes<DSTabsElement> & { }
|
|
162
|
+
export type ReactDstabs = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSTabsElement>, DSTabsElement> & { class?: string }
|
|
163
|
+
export type QwikDstabs = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
164
|
+
export type VueDstabs = VueJSX.HTMLAttributes
|
|
165
|
+
export type SvelteDstabs = SvelteTypes.HTMLAttributes<DSTabsElement> & { }
|
|
166
|
+
export type SolidDstabs = SolidJSX.HTMLAttributes<DSTabsElement>
|
|
173
167
|
|
|
174
|
-
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-
|
|
175
|
-
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-
|
|
176
|
-
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-
|
|
168
|
+
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-tabs': ReactDstabs } } }
|
|
169
|
+
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-tabs': PreactDstabs } } }
|
|
170
|
+
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-tabs': QwikDstabs } } }
|
|
177
171
|
// Augmenting @vue/runtime-dom instead of vue directly to avoid interfering with React JSX
|
|
178
|
-
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-
|
|
179
|
-
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-
|
|
172
|
+
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-tabs': VueDstabs } }
|
|
173
|
+
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-tabs': SvelteDstabs } }
|
|
180
174
|
declare module 'solid-js' {
|
|
181
175
|
namespace JSX {
|
|
182
|
-
interface IntrinsicElements { 'ds-
|
|
176
|
+
interface IntrinsicElements { 'ds-tabs': SolidDstabs }
|
|
183
177
|
interface CustomEvents { }
|
|
184
178
|
}
|
|
185
179
|
}
|
|
180
|
+
export type PreactDstablist = PreactTypes.JSX.HTMLAttributes<DSTabListElement> & { }
|
|
181
|
+
export type ReactDstablist = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSTabListElement>, DSTabListElement> & { class?: string }
|
|
182
|
+
export type QwikDstablist = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
183
|
+
export type VueDstablist = VueJSX.HTMLAttributes
|
|
184
|
+
export type SvelteDstablist = SvelteTypes.HTMLAttributes<DSTabListElement> & { }
|
|
185
|
+
export type SolidDstablist = SolidJSX.HTMLAttributes<DSTabListElement>
|
|
186
186
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
export
|
|
190
|
-
export type QwikDserrorsummary = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
191
|
-
export type VueDserrorsummary = VueJSX.HTMLAttributes
|
|
192
|
-
export type SvelteDserrorsummary = SvelteTypes.HTMLAttributes<DSErrorSummaryElement> & { }
|
|
193
|
-
export type SolidDserrorsummary = SolidJSX.HTMLAttributes<DSErrorSummaryElement>
|
|
194
|
-
|
|
195
|
-
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-error-summary': ReactDserrorsummary } } }
|
|
196
|
-
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-error-summary': PreactDserrorsummary } } }
|
|
197
|
-
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-error-summary': QwikDserrorsummary } } }
|
|
187
|
+
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-tablist': ReactDstablist } } }
|
|
188
|
+
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-tablist': PreactDstablist } } }
|
|
189
|
+
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-tablist': QwikDstablist } } }
|
|
198
190
|
// Augmenting @vue/runtime-dom instead of vue directly to avoid interfering with React JSX
|
|
199
|
-
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-
|
|
200
|
-
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-
|
|
191
|
+
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-tablist': VueDstablist } }
|
|
192
|
+
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-tablist': SvelteDstablist } }
|
|
201
193
|
declare module 'solid-js' {
|
|
202
194
|
namespace JSX {
|
|
203
|
-
interface IntrinsicElements { 'ds-
|
|
195
|
+
interface IntrinsicElements { 'ds-tablist': SolidDstablist }
|
|
204
196
|
interface CustomEvents { }
|
|
205
197
|
}
|
|
206
198
|
}
|
|
199
|
+
export type PreactDstab = PreactTypes.JSX.HTMLAttributes<DSTabElement> & { }
|
|
200
|
+
export type ReactDstab = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSTabElement>, DSTabElement> & { class?: string }
|
|
201
|
+
export type QwikDstab = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
202
|
+
export type VueDstab = VueJSX.HTMLAttributes
|
|
203
|
+
export type SvelteDstab = SvelteTypes.HTMLAttributes<DSTabElement> & { }
|
|
204
|
+
export type SolidDstab = SolidJSX.HTMLAttributes<DSTabElement>
|
|
207
205
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
export
|
|
211
|
-
export type QwikDsfield = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
212
|
-
export type VueDsfield = VueJSX.HTMLAttributes
|
|
213
|
-
export type SvelteDsfield = SvelteTypes.HTMLAttributes<DSFieldElement> & { }
|
|
214
|
-
export type SolidDsfield = SolidJSX.HTMLAttributes<DSFieldElement>
|
|
215
|
-
|
|
216
|
-
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-field': ReactDsfield } } }
|
|
217
|
-
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-field': PreactDsfield } } }
|
|
218
|
-
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-field': QwikDsfield } } }
|
|
206
|
+
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-tab': ReactDstab } } }
|
|
207
|
+
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-tab': PreactDstab } } }
|
|
208
|
+
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-tab': QwikDstab } } }
|
|
219
209
|
// Augmenting @vue/runtime-dom instead of vue directly to avoid interfering with React JSX
|
|
220
|
-
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-
|
|
221
|
-
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-
|
|
210
|
+
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-tab': VueDstab } }
|
|
211
|
+
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-tab': SvelteDstab } }
|
|
222
212
|
declare module 'solid-js' {
|
|
223
213
|
namespace JSX {
|
|
224
|
-
interface IntrinsicElements { 'ds-
|
|
214
|
+
interface IntrinsicElements { 'ds-tab': SolidDstab }
|
|
225
215
|
interface CustomEvents { }
|
|
226
216
|
}
|
|
227
217
|
}
|
|
218
|
+
export type PreactDstabpanel = PreactTypes.JSX.HTMLAttributes<DSTabPanelElement> & { }
|
|
219
|
+
export type ReactDstabpanel = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSTabPanelElement>, DSTabPanelElement> & { class?: string }
|
|
220
|
+
export type QwikDstabpanel = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
221
|
+
export type VueDstabpanel = VueJSX.HTMLAttributes
|
|
222
|
+
export type SvelteDstabpanel = SvelteTypes.HTMLAttributes<DSTabPanelElement> & { }
|
|
223
|
+
export type SolidDstabpanel = SolidJSX.HTMLAttributes<DSTabPanelElement>
|
|
228
224
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
export
|
|
232
|
-
export type QwikDspagination = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
233
|
-
export type VueDspagination = VueJSX.HTMLAttributes
|
|
234
|
-
export type SvelteDspagination = SvelteTypes.HTMLAttributes<DSPaginationElement> & { }
|
|
235
|
-
export type SolidDspagination = SolidJSX.HTMLAttributes<DSPaginationElement>
|
|
236
|
-
|
|
237
|
-
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-pagination': ReactDspagination } } }
|
|
238
|
-
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-pagination': PreactDspagination } } }
|
|
239
|
-
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-pagination': QwikDspagination } } }
|
|
225
|
+
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-tabpanel': ReactDstabpanel } } }
|
|
226
|
+
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-tabpanel': PreactDstabpanel } } }
|
|
227
|
+
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-tabpanel': QwikDstabpanel } } }
|
|
240
228
|
// Augmenting @vue/runtime-dom instead of vue directly to avoid interfering with React JSX
|
|
241
|
-
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-
|
|
242
|
-
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-
|
|
229
|
+
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-tabpanel': VueDstabpanel } }
|
|
230
|
+
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-tabpanel': SvelteDstabpanel } }
|
|
243
231
|
declare module 'solid-js' {
|
|
244
232
|
namespace JSX {
|
|
245
|
-
interface IntrinsicElements { 'ds-
|
|
233
|
+
interface IntrinsicElements { 'ds-tabpanel': SolidDstabpanel }
|
|
246
234
|
interface CustomEvents { }
|
|
247
235
|
}
|
|
248
236
|
}
|
|
@@ -269,79 +257,85 @@ declare module 'solid-js' {
|
|
|
269
257
|
}
|
|
270
258
|
|
|
271
259
|
|
|
272
|
-
export type
|
|
273
|
-
export type
|
|
274
|
-
export type
|
|
275
|
-
export type
|
|
276
|
-
export type
|
|
277
|
-
export type
|
|
260
|
+
export type PreactDspagination = PreactTypes.JSX.HTMLAttributes<DSPaginationElement> & { }
|
|
261
|
+
export type ReactDspagination = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSPaginationElement>, DSPaginationElement> & { class?: string }
|
|
262
|
+
export type QwikDspagination = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
263
|
+
export type VueDspagination = VueJSX.HTMLAttributes
|
|
264
|
+
export type SvelteDspagination = SvelteTypes.HTMLAttributes<DSPaginationElement> & { }
|
|
265
|
+
export type SolidDspagination = SolidJSX.HTMLAttributes<DSPaginationElement>
|
|
278
266
|
|
|
279
|
-
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-
|
|
280
|
-
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-
|
|
281
|
-
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-
|
|
267
|
+
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-pagination': ReactDspagination } } }
|
|
268
|
+
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-pagination': PreactDspagination } } }
|
|
269
|
+
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-pagination': QwikDspagination } } }
|
|
282
270
|
// Augmenting @vue/runtime-dom instead of vue directly to avoid interfering with React JSX
|
|
283
|
-
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-
|
|
284
|
-
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-
|
|
271
|
+
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-pagination': VueDspagination } }
|
|
272
|
+
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-pagination': SvelteDspagination } }
|
|
285
273
|
declare module 'solid-js' {
|
|
286
274
|
namespace JSX {
|
|
287
|
-
interface IntrinsicElements { 'ds-
|
|
275
|
+
interface IntrinsicElements { 'ds-pagination': SolidDspagination }
|
|
288
276
|
interface CustomEvents { }
|
|
289
277
|
}
|
|
290
278
|
}
|
|
291
|
-
export type PreactDstablist = PreactTypes.JSX.HTMLAttributes<DSTabListElement> & { }
|
|
292
|
-
export type ReactDstablist = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSTabListElement>, DSTabListElement> & { class?: string }
|
|
293
|
-
export type QwikDstablist = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
294
|
-
export type VueDstablist = VueJSX.HTMLAttributes
|
|
295
|
-
export type SvelteDstablist = SvelteTypes.HTMLAttributes<DSTabListElement> & { }
|
|
296
|
-
export type SolidDstablist = SolidJSX.HTMLAttributes<DSTabListElement>
|
|
297
279
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
280
|
+
|
|
281
|
+
export type PreactDsfield = PreactTypes.JSX.HTMLAttributes<DSFieldElement> & { }
|
|
282
|
+
export type ReactDsfield = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSFieldElement>, DSFieldElement> & { class?: string }
|
|
283
|
+
export type QwikDsfield = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
284
|
+
export type VueDsfield = VueJSX.HTMLAttributes
|
|
285
|
+
export type SvelteDsfield = SvelteTypes.HTMLAttributes<DSFieldElement> & { }
|
|
286
|
+
export type SolidDsfield = SolidJSX.HTMLAttributes<DSFieldElement>
|
|
287
|
+
|
|
288
|
+
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-field': ReactDsfield } } }
|
|
289
|
+
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-field': PreactDsfield } } }
|
|
290
|
+
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-field': QwikDsfield } } }
|
|
301
291
|
// Augmenting @vue/runtime-dom instead of vue directly to avoid interfering with React JSX
|
|
302
|
-
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-
|
|
303
|
-
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-
|
|
292
|
+
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-field': VueDsfield } }
|
|
293
|
+
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-field': SvelteDsfield } }
|
|
304
294
|
declare module 'solid-js' {
|
|
305
295
|
namespace JSX {
|
|
306
|
-
interface IntrinsicElements { 'ds-
|
|
296
|
+
interface IntrinsicElements { 'ds-field': SolidDsfield }
|
|
307
297
|
interface CustomEvents { }
|
|
308
298
|
}
|
|
309
299
|
}
|
|
310
|
-
export type PreactDstab = PreactTypes.JSX.HTMLAttributes<DSTabElement> & { }
|
|
311
|
-
export type ReactDstab = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSTabElement>, DSTabElement> & { class?: string }
|
|
312
|
-
export type QwikDstab = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
313
|
-
export type VueDstab = VueJSX.HTMLAttributes
|
|
314
|
-
export type SvelteDstab = SvelteTypes.HTMLAttributes<DSTabElement> & { }
|
|
315
|
-
export type SolidDstab = SolidJSX.HTMLAttributes<DSTabElement>
|
|
316
300
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
301
|
+
|
|
302
|
+
export type PreactDserrorsummary = PreactTypes.JSX.HTMLAttributes<DSErrorSummaryElement> & { }
|
|
303
|
+
export type ReactDserrorsummary = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSErrorSummaryElement>, DSErrorSummaryElement> & { class?: string }
|
|
304
|
+
export type QwikDserrorsummary = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
305
|
+
export type VueDserrorsummary = VueJSX.HTMLAttributes
|
|
306
|
+
export type SvelteDserrorsummary = SvelteTypes.HTMLAttributes<DSErrorSummaryElement> & { }
|
|
307
|
+
export type SolidDserrorsummary = SolidJSX.HTMLAttributes<DSErrorSummaryElement>
|
|
308
|
+
|
|
309
|
+
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-error-summary': ReactDserrorsummary } } }
|
|
310
|
+
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-error-summary': PreactDserrorsummary } } }
|
|
311
|
+
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-error-summary': QwikDserrorsummary } } }
|
|
320
312
|
// Augmenting @vue/runtime-dom instead of vue directly to avoid interfering with React JSX
|
|
321
|
-
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-
|
|
322
|
-
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-
|
|
313
|
+
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-error-summary': VueDserrorsummary } }
|
|
314
|
+
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-error-summary': SvelteDserrorsummary } }
|
|
323
315
|
declare module 'solid-js' {
|
|
324
316
|
namespace JSX {
|
|
325
|
-
interface IntrinsicElements { 'ds-
|
|
317
|
+
interface IntrinsicElements { 'ds-error-summary': SolidDserrorsummary }
|
|
326
318
|
interface CustomEvents { }
|
|
327
319
|
}
|
|
328
320
|
}
|
|
329
|
-
export type PreactDstabpanel = PreactTypes.JSX.HTMLAttributes<DSTabPanelElement> & { }
|
|
330
|
-
export type ReactDstabpanel = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSTabPanelElement>, DSTabPanelElement> & { class?: string }
|
|
331
|
-
export type QwikDstabpanel = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
332
|
-
export type VueDstabpanel = VueJSX.HTMLAttributes
|
|
333
|
-
export type SvelteDstabpanel = SvelteTypes.HTMLAttributes<DSTabPanelElement> & { }
|
|
334
|
-
export type SolidDstabpanel = SolidJSX.HTMLAttributes<DSTabPanelElement>
|
|
335
321
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
322
|
+
|
|
323
|
+
export type PreactDsbreadcrumbs = PreactTypes.JSX.HTMLAttributes<DSBreadcrumbsElement> & { }
|
|
324
|
+
export type ReactDsbreadcrumbs = ReactTypes.DetailedHTMLProps<ReactTypes.HTMLAttributes<DSBreadcrumbsElement>, DSBreadcrumbsElement> & { class?: string }
|
|
325
|
+
export type QwikDsbreadcrumbs = QwikJSX.IntrinsicElements['div'] & { class?: string }
|
|
326
|
+
export type VueDsbreadcrumbs = VueJSX.HTMLAttributes
|
|
327
|
+
export type SvelteDsbreadcrumbs = SvelteTypes.HTMLAttributes<DSBreadcrumbsElement> & { }
|
|
328
|
+
export type SolidDsbreadcrumbs = SolidJSX.HTMLAttributes<DSBreadcrumbsElement>
|
|
329
|
+
|
|
330
|
+
declare global { namespace React.JSX { interface IntrinsicElements { 'ds-breadcrumbs': ReactDsbreadcrumbs } } }
|
|
331
|
+
declare global { namespace preact.JSX { interface IntrinsicElements { 'ds-breadcrumbs': PreactDsbreadcrumbs } } }
|
|
332
|
+
declare module '@builder.io/qwik/jsx-runtime' { export namespace JSX { export interface IntrinsicElements { 'ds-breadcrumbs': QwikDsbreadcrumbs } } }
|
|
339
333
|
// Augmenting @vue/runtime-dom instead of vue directly to avoid interfering with React JSX
|
|
340
|
-
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-
|
|
341
|
-
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-
|
|
334
|
+
declare module '@vue/runtime-dom' { export interface GlobalComponents { 'ds-breadcrumbs': VueDsbreadcrumbs } }
|
|
335
|
+
declare module 'svelte/elements' { interface SvelteHTMLElements { 'ds-breadcrumbs': SvelteDsbreadcrumbs } }
|
|
342
336
|
declare module 'solid-js' {
|
|
343
337
|
namespace JSX {
|
|
344
|
-
interface IntrinsicElements { 'ds-
|
|
338
|
+
interface IntrinsicElements { 'ds-breadcrumbs': SolidDsbreadcrumbs }
|
|
345
339
|
interface CustomEvents { }
|
|
346
340
|
}
|
|
347
341
|
}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { UHTMLComboboxElement } from "@u-elements/u-combobox";
|
|
|
4
4
|
import * as UTabs from "@u-elements/u-tabs";
|
|
5
5
|
export * from "@u-elements/u-datalist";
|
|
6
6
|
//#region package.json
|
|
7
|
-
var version = "1.
|
|
7
|
+
var version = "1.21.0";
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/utils/utils.ts
|
|
10
10
|
const ARIA_DESC = "aria-description";
|
|
@@ -477,17 +477,11 @@ if (!IS_SUPPORTED) onHotReload(ATTR_GROUP, () => [
|
|
|
477
477
|
}
|
|
478
478
|
]);
|
|
479
479
|
//#endregion
|
|
480
|
-
//#region ../../node_modules/.pnpm/invokers-polyfill@1.0.
|
|
480
|
+
//#region ../../node_modules/.pnpm/invokers-polyfill@1.0.4/node_modules/invokers-polyfill/invoker.js
|
|
481
481
|
function isSupported$1() {
|
|
482
482
|
return typeof HTMLButtonElement !== "undefined" && "command" in HTMLButtonElement.prototype && "source" in ((globalThis.CommandEvent || {}).prototype || {});
|
|
483
483
|
}
|
|
484
484
|
function apply$1() {
|
|
485
|
-
document.addEventListener("invoke", (e) => {
|
|
486
|
-
if (e.type == "invoke" && e.isTrusted) {
|
|
487
|
-
e.stopImmediatePropagation();
|
|
488
|
-
e.preventDefault();
|
|
489
|
-
}
|
|
490
|
-
}, true);
|
|
491
485
|
document.addEventListener("command", (e) => {
|
|
492
486
|
if (e.type == "command" && e.isTrusted) {
|
|
493
487
|
e.stopImmediatePropagation();
|
|
@@ -658,7 +652,7 @@ function apply$1() {
|
|
|
658
652
|
if (invokee.popover) {
|
|
659
653
|
const canShow = !invokee.matches(":popover-open");
|
|
660
654
|
const shouldShow = canShow && (command === "toggle-popover" || command === "show-popover");
|
|
661
|
-
const shouldHide = !canShow && command === "hide-popover";
|
|
655
|
+
const shouldHide = !canShow && (command === "toggle-popover" || command === "hide-popover");
|
|
662
656
|
if (shouldShow) invokee.showPopover({ source });
|
|
663
657
|
else if (shouldHide) invokee.hidePopover();
|
|
664
658
|
} else if (invokee.localName === "dialog") {
|
|
@@ -1786,7 +1780,7 @@ const TEXTS = {
|
|
|
1786
1780
|
under: "%d tegn igjen"
|
|
1787
1781
|
};
|
|
1788
1782
|
const debouncedCounterLiveRegion = debounce((input, text) => {
|
|
1789
|
-
if (document
|
|
1783
|
+
if (isBrowser() && document.activeElement === input) announce(text);
|
|
1790
1784
|
}, COUNTER_DEBOUNCE);
|
|
1791
1785
|
const isInvalidColor = (el) => {
|
|
1792
1786
|
const color = el.getAttribute("data-color");
|