@getflip/swirl-ai 0.497.0 → 0.498.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/dist/agent/components/swirl-tree-navigation-item.md +1 -1
- package/dist/custom-elements.manifest.json +6 -0
- package/dist/types/components/swirl-tree-navigation-item/swirl-tree-navigation-item.d.ts +4 -0
- package/dist/types/components/swirl-tree-navigation-item/swirl-tree-navigation-item.stories.d.ts +1 -0
- package/package.json +2 -2
|
@@ -62747,6 +62747,12 @@
|
|
|
62747
62747
|
}
|
|
62748
62748
|
}
|
|
62749
62749
|
],
|
|
62750
|
+
"slots": [
|
|
62751
|
+
{
|
|
62752
|
+
"name": "custom-icon",
|
|
62753
|
+
"description": "Custom icon element that takes precedence over the icon prop."
|
|
62754
|
+
}
|
|
62755
|
+
],
|
|
62750
62756
|
"description": "The SwirlTreeNavigationItem component is used to for the main navigation of the Flip Admin tools.\n\nAccessibility\n\n### ARIA\n\nThe component follows the\n[WAI-ARIA Tree View Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/).\n\n| ARIA | Usage |\n| ----------------- | ---------------------------------------------------------------------- |\n| `role=\"treeitem\"` | Set on the list item. |\n| `aria-expanded` | Set when the item has children; indicates expanded or collapsed state. |\n| `aria-level` | Indicates the nesting level. |\n| `aria-controls` | When the item has children, references the ID of the child group. |\n| `aria-current` | Set to `\"page\"` when the item is active. |\n| `role=\"group\"` | Set on the child list when the item has children. |\n| `aria-label` | Used on icons (e.g. expand, external link) for screen readers. |\n\n### Keyboard\n\n| Key | Action |\n| ---------------------- | -------------------------------------------------------------------- |\n| <kbd>Enter</kbd> | Activates the link or button (navigate or toggle). |\n| <kbd>Space</kbd> | Toggles expanded state when the item has children and is expandable. |\n| <kbd>Arrow Right</kbd> | Expands the item when it has children and is collapsed. |\n| <kbd>Arrow Left</kbd> | Collapses the item when it is expanded. |"
|
|
62751
62757
|
}
|
|
62752
62758
|
],
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @slot custom-icon - Custom icon element that takes precedence over the icon prop.
|
|
4
|
+
*/
|
|
2
5
|
export declare class SwirlTreeNavigationItem {
|
|
3
6
|
el: HTMLSwirlTreeNavigationItemElement;
|
|
4
7
|
active?: boolean;
|
|
@@ -15,6 +18,7 @@ export declare class SwirlTreeNavigationItem {
|
|
|
15
18
|
expansionChange: EventEmitter<boolean>;
|
|
16
19
|
expanded: boolean;
|
|
17
20
|
hasChildren: boolean;
|
|
21
|
+
hasCustomIcon: boolean;
|
|
18
22
|
childrenHeight: string;
|
|
19
23
|
private buttonId;
|
|
20
24
|
private childrenId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.498.0",
|
|
4
4
|
"description": "Swirl Design System AI package with artifacts for AI agents",
|
|
5
5
|
"author": "Flip GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lint": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@getflip/swirl-components": "0.
|
|
29
|
+
"@getflip/swirl-components": "0.498.0",
|
|
30
30
|
"@getflip/swirl-tokens": "2.14.3",
|
|
31
31
|
"@types/node": "25.3.0",
|
|
32
32
|
"tsx": "^4.7.0",
|