@florid-kit/components 3.1.3 → 3.1.5
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/aria.d.ts +1 -1
- package/components/icon.d.ts +51 -0
- package/components/side-panel.d.ts +2 -0
- package/components/side-panel.mjs +323 -313
- package/icon-CAvOSN1L.mjs +276 -0
- package/index.mjs +1 -0
- package/loader.mjs +1 -0
- package/package.json +1 -1
package/aria.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type ARIAAttribute = ARIAPropertyToAttribute<ARIAProperty>;
|
|
|
15
15
|
/**
|
|
16
16
|
* Accessibility Object Model aria attributes.
|
|
17
17
|
*/
|
|
18
|
-
export declare const ARIA_ATTRIBUTES: ("aria-label" | "aria-modal" | "aria-pressed" | "aria-expanded" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-haspopup" | "aria-
|
|
18
|
+
export declare const ARIA_ATTRIBUTES: ("aria-label" | "aria-modal" | "aria-pressed" | "aria-hidden" | "aria-expanded" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-placeholder" | "aria-posinset" | "aria-readonly" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext")[];
|
|
19
19
|
/**
|
|
20
20
|
* Checks if an attribute is one of the AOM aria attributes.
|
|
21
21
|
*
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import { IconBgStyle, IconLogicalSize, IconName } from '../assets/icons/icons';
|
|
3
|
+
|
|
4
|
+
type bgstyle = IconBgStyle;
|
|
5
|
+
type size = IconLogicalSize;
|
|
6
|
+
type status = "empty" | "filled";
|
|
7
|
+
declare const OccitaneIcon_base: import('../behaviors/mixin.js').MixinReturn<typeof LitElement>;
|
|
8
|
+
/**
|
|
9
|
+
* `<o-icon>` renders an icon from the central registry as a non-interactive,
|
|
10
|
+
* decorative-or-labelled graphic. It shares the visual language of
|
|
11
|
+
* `<o-icon-button>` (sizes, bgStyles, status, OCC lazy-loading) but carries no
|
|
12
|
+
* button semantics — no `<button>`, no cursor, no hover/active/disabled states.
|
|
13
|
+
*
|
|
14
|
+
* Accessibility:
|
|
15
|
+
* - Decorative by default — when no `label` is set the host is `aria-hidden`
|
|
16
|
+
* so assistive tech skips it (the inner SVG is also `aria-hidden`).
|
|
17
|
+
* - Meaningful when `label` is set — the host becomes `role="img"` with the
|
|
18
|
+
* given `aria-label`, so screen readers announce it as a single image.
|
|
19
|
+
*
|
|
20
|
+
* Use this to replace markup like
|
|
21
|
+
* `<span class="m-icon-colored-rounded"><i class="a-icon-reward-card"/></span>`
|
|
22
|
+
* with `<o-icon icon="occ-reward-card" bgstyle="background-light"></o-icon>`.
|
|
23
|
+
*/
|
|
24
|
+
export declare class OccitaneIcon extends OccitaneIcon_base {
|
|
25
|
+
static styles: import('lit').CSSResult;
|
|
26
|
+
bgstyle: bgstyle;
|
|
27
|
+
size: size;
|
|
28
|
+
status: status;
|
|
29
|
+
strokewidth: string;
|
|
30
|
+
icon: IconName | "";
|
|
31
|
+
/**
|
|
32
|
+
* Accessible name. When set, the icon is announced as an image with this
|
|
33
|
+
* label. When empty (default), the icon is treated as decorative and hidden
|
|
34
|
+
* from assistive technology.
|
|
35
|
+
*/
|
|
36
|
+
label: string;
|
|
37
|
+
private _unsubOcc?;
|
|
38
|
+
private _clearOccSubscription;
|
|
39
|
+
private _syncOccSubscription;
|
|
40
|
+
private _syncHostA11y;
|
|
41
|
+
connectedCallback(): void;
|
|
42
|
+
disconnectedCallback(): void;
|
|
43
|
+
protected updated(changedProperties: Map<string, unknown>): void;
|
|
44
|
+
protected render(): typeof nothing | import('lit').TemplateResult<1>;
|
|
45
|
+
}
|
|
46
|
+
declare global {
|
|
47
|
+
interface HTMLElementTagNameMap {
|
|
48
|
+
"o-icon": OccitaneIcon;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -57,7 +57,9 @@ export declare class OccitaneSidePanel extends OccitaneSidePanel_base {
|
|
|
57
57
|
private _restoreFocusToOrigin;
|
|
58
58
|
private handleKeyDown;
|
|
59
59
|
private getDeepActiveElement;
|
|
60
|
+
private wrapFocus;
|
|
60
61
|
private trapFocus;
|
|
62
|
+
private isUnavailableElement;
|
|
61
63
|
private getFocusableElements;
|
|
62
64
|
openPanel(): void;
|
|
63
65
|
closePanel(): void;
|