@getflip/swirl-ai 0.483.0 → 0.484.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-thumbnail.md +14 -3
- package/dist/custom-elements.manifest.json +119 -1
- package/dist/types/components/swirl-button/swirl-button.d.ts +2 -1
- package/dist/types/components/swirl-image-grid-item/swirl-image-grid-item.d.ts +1 -0
- package/dist/types/components/swirl-thumbnail/swirl-thumbnail.d.ts +18 -0
- package/dist/types/components/swirl-thumbnail/swirl-thumbnail.stories.d.ts +23 -7
- package/dist/types/components.d.ts +50 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/body-scroll-lock.d.ts +11 -0
- package/dist/types/utils.d.ts +1 -0
- package/package.json +2 -2
|
@@ -11,12 +11,18 @@ The SwirlThumbnail component is used to visually represent an object via a small
|
|
|
11
11
|
|
|
12
12
|
## Optional props
|
|
13
13
|
|
|
14
|
+
- `cursor` ("alias" | "all-scroll" | "auto" | "cell" | "col-resize" | "context-menu" | "copy" | "crosshair" | "default" | "e-resize" | "ew-resize" | "grab" | "grabbing" | "help" | "move" | "n-resize" | "ne-resize" | "nesw-resize" | "no-drop" | "none" | "not-allowed" | "ns-resize" | "nw-resize" | "nwse-resize" | "pointer" | "progress" | "row-resize" | "s-resize" | "se-resize" | "sw-resize" | "text" | "vertical-text" | "w-resize" | "wait" | "zoom-in" | "zoom-out" | undefined) –
|
|
14
15
|
- `editButtonIcon` (string | undefined) –
|
|
15
16
|
- `editButtonLabel` (string | undefined) –
|
|
17
|
+
- `error` (boolean | undefined) –
|
|
16
18
|
- `format` ("landscape" | "portrait" | "square" | undefined) –
|
|
17
19
|
- `interactive` (boolean | undefined) –
|
|
20
|
+
- `menuButtonLabel` (string | undefined) –
|
|
21
|
+
- `openButtonIcon` (string | undefined) –
|
|
22
|
+
- `openButtonLabel` (string | undefined) –
|
|
18
23
|
- `progress` (number | undefined) –
|
|
19
24
|
- `progressLabel` (string | undefined) –
|
|
25
|
+
- `removeButtonIcon` (string | undefined) –
|
|
20
26
|
- `removeButtonLabel` (string | undefined) –
|
|
21
27
|
- `showEditButton` (boolean | undefined) –
|
|
22
28
|
- `showRemoveButton` (boolean | undefined) –
|
|
@@ -44,12 +50,17 @@ No related components.
|
|
|
44
50
|
## Accessibility
|
|
45
51
|
|
|
46
52
|
SwirlThumbnail is a presentational image wrapper with no ARIA attributes or
|
|
47
|
-
keyboard-specific behavior.
|
|
48
|
-
|
|
53
|
+
keyboard-specific behavior by default. When `interactive` is enabled, the image
|
|
54
|
+
becomes a focusable `<button>`. Action buttons rendered by `show-edit-button`
|
|
55
|
+
and `show-remove-button` expose accessible names via the `edit-button-label`
|
|
56
|
+
and `remove-button-label` props. On compact sizes, actions are grouped behind a
|
|
57
|
+
menu button whose label is set via the `menu-button-label` prop.
|
|
49
58
|
|
|
50
59
|
### Keyboard
|
|
51
60
|
|
|
52
|
-
|
|
61
|
+
When action buttons or the compact menu button receive keyboard focus, they
|
|
62
|
+
become visible. The compact menu button opens a popover that can be navigated
|
|
63
|
+
with standard keyboard controls.
|
|
53
64
|
|
|
54
65
|
## Minimal example
|
|
55
66
|
|
|
@@ -59470,6 +59470,20 @@
|
|
|
59470
59470
|
},
|
|
59471
59471
|
"fieldName": "alt"
|
|
59472
59472
|
},
|
|
59473
|
+
{
|
|
59474
|
+
"name": "cursor",
|
|
59475
|
+
"type": {
|
|
59476
|
+
"text": "\"alias\" | \"all-scroll\" | \"auto\" | \"cell\" | \"col-resize\" | \"context-menu\" | \"copy\" | \"crosshair\" | \"default\" | \"e-resize\" | \"ew-resize\" | \"grab\" | \"grabbing\" | \"help\" | \"move\" | \"n-resize\" | \"ne-resize\" | \"nesw-resize\" | \"no-drop\" | \"none\" | \"not-allowed\" | \"ns-resize\" | \"nw-resize\" | \"nwse-resize\" | \"pointer\" | \"progress\" | \"row-resize\" | \"s-resize\" | \"se-resize\" | \"sw-resize\" | \"text\" | \"vertical-text\" | \"w-resize\" | \"wait\" | \"zoom-in\" | \"zoom-out\" | undefined",
|
|
59477
|
+
"references": [
|
|
59478
|
+
{
|
|
59479
|
+
"name": "SwirlCursor",
|
|
59480
|
+
"module": "../../utils"
|
|
59481
|
+
}
|
|
59482
|
+
]
|
|
59483
|
+
},
|
|
59484
|
+
"default": "\"pointer\"",
|
|
59485
|
+
"fieldName": "cursor"
|
|
59486
|
+
},
|
|
59473
59487
|
{
|
|
59474
59488
|
"name": "edit-button-icon",
|
|
59475
59489
|
"type": {
|
|
@@ -59486,6 +59500,13 @@
|
|
|
59486
59500
|
"default": "\"Edit\"",
|
|
59487
59501
|
"fieldName": "editButtonLabel"
|
|
59488
59502
|
},
|
|
59503
|
+
{
|
|
59504
|
+
"name": "error",
|
|
59505
|
+
"type": {
|
|
59506
|
+
"text": "boolean | undefined"
|
|
59507
|
+
},
|
|
59508
|
+
"fieldName": "error"
|
|
59509
|
+
},
|
|
59489
59510
|
{
|
|
59490
59511
|
"name": "format",
|
|
59491
59512
|
"type": {
|
|
@@ -59506,6 +59527,30 @@
|
|
|
59506
59527
|
},
|
|
59507
59528
|
"fieldName": "interactive"
|
|
59508
59529
|
},
|
|
59530
|
+
{
|
|
59531
|
+
"name": "menu-button-label",
|
|
59532
|
+
"type": {
|
|
59533
|
+
"text": "string | undefined"
|
|
59534
|
+
},
|
|
59535
|
+
"default": "\"More actions\"",
|
|
59536
|
+
"fieldName": "menuButtonLabel"
|
|
59537
|
+
},
|
|
59538
|
+
{
|
|
59539
|
+
"name": "open-button-icon",
|
|
59540
|
+
"type": {
|
|
59541
|
+
"text": "string | undefined"
|
|
59542
|
+
},
|
|
59543
|
+
"default": "\"<swirl-icon-visibility></swirl-icon-visibility>\"",
|
|
59544
|
+
"fieldName": "openButtonIcon"
|
|
59545
|
+
},
|
|
59546
|
+
{
|
|
59547
|
+
"name": "open-button-label",
|
|
59548
|
+
"type": {
|
|
59549
|
+
"text": "string | undefined"
|
|
59550
|
+
},
|
|
59551
|
+
"default": "\"Open\"",
|
|
59552
|
+
"fieldName": "openButtonLabel"
|
|
59553
|
+
},
|
|
59509
59554
|
{
|
|
59510
59555
|
"name": "progress",
|
|
59511
59556
|
"type": {
|
|
@@ -59521,6 +59566,14 @@
|
|
|
59521
59566
|
"default": "\"Loading progress\"",
|
|
59522
59567
|
"fieldName": "progressLabel"
|
|
59523
59568
|
},
|
|
59569
|
+
{
|
|
59570
|
+
"name": "remove-button-icon",
|
|
59571
|
+
"type": {
|
|
59572
|
+
"text": "string | undefined"
|
|
59573
|
+
},
|
|
59574
|
+
"default": "\"<swirl-icon-delete></swirl-icon-delete>\"",
|
|
59575
|
+
"fieldName": "removeButtonIcon"
|
|
59576
|
+
},
|
|
59524
59577
|
{
|
|
59525
59578
|
"name": "remove-button-label",
|
|
59526
59579
|
"type": {
|
|
@@ -59581,6 +59634,22 @@
|
|
|
59581
59634
|
"readonly": true,
|
|
59582
59635
|
"attribute": "alt"
|
|
59583
59636
|
},
|
|
59637
|
+
{
|
|
59638
|
+
"kind": "field",
|
|
59639
|
+
"name": "cursor",
|
|
59640
|
+
"type": {
|
|
59641
|
+
"text": "\"alias\" | \"all-scroll\" | \"auto\" | \"cell\" | \"col-resize\" | \"context-menu\" | \"copy\" | \"crosshair\" | \"default\" | \"e-resize\" | \"ew-resize\" | \"grab\" | \"grabbing\" | \"help\" | \"move\" | \"n-resize\" | \"ne-resize\" | \"nesw-resize\" | \"no-drop\" | \"none\" | \"not-allowed\" | \"ns-resize\" | \"nw-resize\" | \"nwse-resize\" | \"pointer\" | \"progress\" | \"row-resize\" | \"s-resize\" | \"se-resize\" | \"sw-resize\" | \"text\" | \"vertical-text\" | \"w-resize\" | \"wait\" | \"zoom-in\" | \"zoom-out\" | undefined",
|
|
59642
|
+
"references": [
|
|
59643
|
+
{
|
|
59644
|
+
"name": "SwirlCursor",
|
|
59645
|
+
"module": "../../utils"
|
|
59646
|
+
}
|
|
59647
|
+
]
|
|
59648
|
+
},
|
|
59649
|
+
"default": "\"pointer\"",
|
|
59650
|
+
"readonly": true,
|
|
59651
|
+
"attribute": "cursor"
|
|
59652
|
+
},
|
|
59584
59653
|
{
|
|
59585
59654
|
"kind": "field",
|
|
59586
59655
|
"name": "editButtonIcon",
|
|
@@ -59601,6 +59670,15 @@
|
|
|
59601
59670
|
"readonly": true,
|
|
59602
59671
|
"attribute": "edit-button-label"
|
|
59603
59672
|
},
|
|
59673
|
+
{
|
|
59674
|
+
"kind": "field",
|
|
59675
|
+
"name": "error",
|
|
59676
|
+
"type": {
|
|
59677
|
+
"text": "boolean | undefined"
|
|
59678
|
+
},
|
|
59679
|
+
"readonly": true,
|
|
59680
|
+
"attribute": "error"
|
|
59681
|
+
},
|
|
59604
59682
|
{
|
|
59605
59683
|
"kind": "field",
|
|
59606
59684
|
"name": "format",
|
|
@@ -59625,6 +59703,36 @@
|
|
|
59625
59703
|
"readonly": true,
|
|
59626
59704
|
"attribute": "interactive"
|
|
59627
59705
|
},
|
|
59706
|
+
{
|
|
59707
|
+
"kind": "field",
|
|
59708
|
+
"name": "menuButtonLabel",
|
|
59709
|
+
"type": {
|
|
59710
|
+
"text": "string | undefined"
|
|
59711
|
+
},
|
|
59712
|
+
"default": "\"More actions\"",
|
|
59713
|
+
"readonly": true,
|
|
59714
|
+
"attribute": "menu-button-label"
|
|
59715
|
+
},
|
|
59716
|
+
{
|
|
59717
|
+
"kind": "field",
|
|
59718
|
+
"name": "openButtonIcon",
|
|
59719
|
+
"type": {
|
|
59720
|
+
"text": "string | undefined"
|
|
59721
|
+
},
|
|
59722
|
+
"default": "\"<swirl-icon-visibility></swirl-icon-visibility>\"",
|
|
59723
|
+
"readonly": true,
|
|
59724
|
+
"attribute": "open-button-icon"
|
|
59725
|
+
},
|
|
59726
|
+
{
|
|
59727
|
+
"kind": "field",
|
|
59728
|
+
"name": "openButtonLabel",
|
|
59729
|
+
"type": {
|
|
59730
|
+
"text": "string | undefined"
|
|
59731
|
+
},
|
|
59732
|
+
"default": "\"Open\"",
|
|
59733
|
+
"readonly": true,
|
|
59734
|
+
"attribute": "open-button-label"
|
|
59735
|
+
},
|
|
59628
59736
|
{
|
|
59629
59737
|
"kind": "field",
|
|
59630
59738
|
"name": "progress",
|
|
@@ -59644,6 +59752,16 @@
|
|
|
59644
59752
|
"readonly": true,
|
|
59645
59753
|
"attribute": "progress-label"
|
|
59646
59754
|
},
|
|
59755
|
+
{
|
|
59756
|
+
"kind": "field",
|
|
59757
|
+
"name": "removeButtonIcon",
|
|
59758
|
+
"type": {
|
|
59759
|
+
"text": "string | undefined"
|
|
59760
|
+
},
|
|
59761
|
+
"default": "\"<swirl-icon-delete></swirl-icon-delete>\"",
|
|
59762
|
+
"readonly": true,
|
|
59763
|
+
"attribute": "remove-button-icon"
|
|
59764
|
+
},
|
|
59647
59765
|
{
|
|
59648
59766
|
"kind": "field",
|
|
59649
59767
|
"name": "removeButtonLabel",
|
|
@@ -59744,7 +59862,7 @@
|
|
|
59744
59862
|
}
|
|
59745
59863
|
}
|
|
59746
59864
|
],
|
|
59747
|
-
"description": "The SwirlThumbnail component is used to visually represent an object via a small image.\n\nAccessibility\n\nSwirlThumbnail is a presentational image wrapper with no ARIA attributes or\nkeyboard-specific behavior.
|
|
59865
|
+
"description": "The SwirlThumbnail component is used to visually represent an object via a small image.\n\nAccessibility\n\nSwirlThumbnail is a presentational image wrapper with no ARIA attributes or\nkeyboard-specific behavior by default. When `interactive` is enabled, the image\nbecomes a focusable `<button>`. Action buttons rendered by `show-edit-button`\nand `show-remove-button` expose accessible names via the `edit-button-label`\nand `remove-button-label` props. On compact sizes, actions are grouped behind a\nmenu button whose label is set via the `menu-button-label` prop.\n\n### Keyboard\n\nWhen action buttons or the compact menu button receive keyboard focus, they\nbecome visible. The compact menu button opens a popover that can be navigated\nwith standard keyboard controls."
|
|
59748
59866
|
}
|
|
59749
59867
|
],
|
|
59750
59868
|
"exports": [
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { SwirlCursor } from "../../utils";
|
|
1
2
|
export type SwirlButtonIconPosition = "start" | "end";
|
|
2
3
|
export type SwirlButtonIntent = "default" | "primary" | "critical" | "strong";
|
|
3
4
|
export type SwirlButtonSize = "m" | "l";
|
|
4
5
|
export type SwirlButtonTextAlign = "start" | "center" | "end";
|
|
5
6
|
export type SwirlButtonType = "button" | "submit";
|
|
6
7
|
export type SwirlButtonVariant = "flat" | "ghost" | "plain" | "floating" | "on-image" | "outline" | "translucent";
|
|
7
|
-
export type SwirlButtonCursor =
|
|
8
|
+
export type SwirlButtonCursor = SwirlCursor;
|
|
8
9
|
/**
|
|
9
10
|
* @slot icon - Icon to be displayed inside the button.
|
|
10
11
|
* @slot tag - Tag to be displayed inside the button.
|
|
@@ -39,6 +39,7 @@ export declare class SwirlImageGridItem {
|
|
|
39
39
|
componentWillLoad(): void;
|
|
40
40
|
componentDidLoad(): void;
|
|
41
41
|
componentDidRender(): void;
|
|
42
|
+
connectedCallback(): void;
|
|
42
43
|
disconnectedCallback(): void;
|
|
43
44
|
private setupIntersectionObserver;
|
|
44
45
|
private handleIntersectionEntries;
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { SwirlCursor } from "../../utils";
|
|
2
3
|
export type SwirlThumbnailFormat = "portrait" | "landscape" | "square";
|
|
3
4
|
export type SwirlThumbnailSize = "s" | "m" | "l" | "xl" | "2xl";
|
|
4
5
|
export declare class SwirlThumbnail {
|
|
5
6
|
alt: string;
|
|
7
|
+
cursor?: SwirlCursor;
|
|
6
8
|
editButtonIcon?: string;
|
|
7
9
|
editButtonLabel?: string;
|
|
10
|
+
error?: boolean;
|
|
8
11
|
format?: SwirlThumbnailFormat;
|
|
9
12
|
interactive?: boolean;
|
|
13
|
+
menuButtonLabel?: string;
|
|
14
|
+
openButtonIcon?: string;
|
|
15
|
+
openButtonLabel?: string;
|
|
10
16
|
progress?: number;
|
|
11
17
|
progressLabel?: string;
|
|
18
|
+
removeButtonIcon?: string;
|
|
12
19
|
removeButtonLabel?: string;
|
|
13
20
|
showEditButton?: boolean;
|
|
14
21
|
showRemoveButton?: boolean;
|
|
@@ -18,5 +25,16 @@ export declare class SwirlThumbnail {
|
|
|
18
25
|
edit: EventEmitter<MouseEvent>;
|
|
19
26
|
remove: EventEmitter<MouseEvent>;
|
|
20
27
|
thumbnailClick: EventEmitter<MouseEvent>;
|
|
28
|
+
hasHover: boolean;
|
|
29
|
+
private hoverMediaQuery?;
|
|
30
|
+
private popoverEl?;
|
|
31
|
+
private popoverTriggerEl?;
|
|
32
|
+
connectedCallback(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
componentDidRender(): void;
|
|
35
|
+
private onEditClick;
|
|
36
|
+
private onOpenClick;
|
|
37
|
+
private onRemoveClick;
|
|
38
|
+
private onHoverChange;
|
|
21
39
|
render(): any;
|
|
22
40
|
}
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import Docs from "./swirl-thumbnail.mdx";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
argTypes: {
|
|
4
|
+
editButtonIcon: {
|
|
5
|
+
table: {
|
|
6
|
+
type: {
|
|
7
|
+
summary: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
removeButtonIcon: {
|
|
12
|
+
table: {
|
|
13
|
+
type: {
|
|
14
|
+
summary: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
openButtonIcon: {
|
|
19
|
+
table: {
|
|
20
|
+
type: {
|
|
21
|
+
summary: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
4
25
|
showEditButton: {
|
|
5
26
|
description: string;
|
|
6
27
|
};
|
|
@@ -10,13 +31,8 @@ declare const _default: {
|
|
|
10
31
|
timestamp: {
|
|
11
32
|
description: string;
|
|
12
33
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type: {
|
|
16
|
-
detail: string;
|
|
17
|
-
summary: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
34
|
+
progress: {
|
|
35
|
+
description: string;
|
|
20
36
|
};
|
|
21
37
|
};
|
|
22
38
|
component: string;
|
|
@@ -28,7 +28,7 @@ import { SwirlColumnsSpacing } from "./components/swirl-columns/swirl-columns";
|
|
|
28
28
|
import { SwirlDataCellIntent } from "./components/swirl-data-cell/swirl-data-cell";
|
|
29
29
|
import { WCDatepickerLabels } from "wc-datepicker/dist/types/components/wc-datepicker/wc-datepicker";
|
|
30
30
|
import { SwirlDialogIntent } from "./components/swirl-dialog/swirl-dialog";
|
|
31
|
-
import { SwirlDialogToggleEvent } from "./utils";
|
|
31
|
+
import { SwirlCursor, SwirlDialogToggleEvent } from "./utils";
|
|
32
32
|
import { SwirlEmojiSize } from "./components/swirl-emoji/swirl-emoji.types";
|
|
33
33
|
import { SwirlButtonVariant as SwirlButtonVariant1 } from "./components/swirl-button/swirl-button";
|
|
34
34
|
import { SwirlFileViewerPdfViewMode, SwirlFileViewerPdfZoom } from "./components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf";
|
|
@@ -110,7 +110,7 @@ export { SwirlColumnsSpacing } from "./components/swirl-columns/swirl-columns";
|
|
|
110
110
|
export { SwirlDataCellIntent } from "./components/swirl-data-cell/swirl-data-cell";
|
|
111
111
|
export { WCDatepickerLabels } from "wc-datepicker/dist/types/components/wc-datepicker/wc-datepicker";
|
|
112
112
|
export { SwirlDialogIntent } from "./components/swirl-dialog/swirl-dialog";
|
|
113
|
-
export { SwirlDialogToggleEvent } from "./utils";
|
|
113
|
+
export { SwirlCursor, SwirlDialogToggleEvent } from "./utils";
|
|
114
114
|
export { SwirlEmojiSize } from "./components/swirl-emoji/swirl-emoji.types";
|
|
115
115
|
export { SwirlButtonVariant as SwirlButtonVariant1 } from "./components/swirl-button/swirl-button";
|
|
116
116
|
export { SwirlFileViewerPdfViewMode, SwirlFileViewerPdfZoom } from "./components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf";
|
|
@@ -5337,6 +5337,10 @@ export namespace Components {
|
|
|
5337
5337
|
}
|
|
5338
5338
|
interface SwirlThumbnail {
|
|
5339
5339
|
"alt": string;
|
|
5340
|
+
/**
|
|
5341
|
+
* @default "pointer"
|
|
5342
|
+
*/
|
|
5343
|
+
"cursor"?: SwirlCursor;
|
|
5340
5344
|
/**
|
|
5341
5345
|
* @default "<swirl-icon-crop></swirl-icon-crop>"
|
|
5342
5346
|
*/
|
|
@@ -5345,16 +5349,33 @@ export namespace Components {
|
|
|
5345
5349
|
* @default "Edit"
|
|
5346
5350
|
*/
|
|
5347
5351
|
"editButtonLabel"?: string;
|
|
5352
|
+
"error"?: boolean;
|
|
5348
5353
|
/**
|
|
5349
5354
|
* @default "landscape"
|
|
5350
5355
|
*/
|
|
5351
5356
|
"format"?: SwirlThumbnailFormat;
|
|
5352
5357
|
"interactive"?: boolean;
|
|
5358
|
+
/**
|
|
5359
|
+
* @default "More actions"
|
|
5360
|
+
*/
|
|
5361
|
+
"menuButtonLabel"?: string;
|
|
5362
|
+
/**
|
|
5363
|
+
* @default "<swirl-icon-visibility></swirl-icon-visibility>"
|
|
5364
|
+
*/
|
|
5365
|
+
"openButtonIcon"?: string;
|
|
5366
|
+
/**
|
|
5367
|
+
* @default "Open"
|
|
5368
|
+
*/
|
|
5369
|
+
"openButtonLabel"?: string;
|
|
5353
5370
|
"progress"?: number;
|
|
5354
5371
|
/**
|
|
5355
5372
|
* @default "Loading progress"
|
|
5356
5373
|
*/
|
|
5357
5374
|
"progressLabel"?: string;
|
|
5375
|
+
/**
|
|
5376
|
+
* @default "<swirl-icon-delete></swirl-icon-delete>"
|
|
5377
|
+
*/
|
|
5378
|
+
"removeButtonIcon"?: string;
|
|
5358
5379
|
/**
|
|
5359
5380
|
* @default "Remove"
|
|
5360
5381
|
*/
|
|
@@ -14994,6 +15015,10 @@ declare namespace LocalJSX {
|
|
|
14994
15015
|
}
|
|
14995
15016
|
interface SwirlThumbnail {
|
|
14996
15017
|
"alt": string;
|
|
15018
|
+
/**
|
|
15019
|
+
* @default "pointer"
|
|
15020
|
+
*/
|
|
15021
|
+
"cursor"?: SwirlCursor;
|
|
14997
15022
|
/**
|
|
14998
15023
|
* @default "<swirl-icon-crop></swirl-icon-crop>"
|
|
14999
15024
|
*/
|
|
@@ -15002,19 +15027,36 @@ declare namespace LocalJSX {
|
|
|
15002
15027
|
* @default "Edit"
|
|
15003
15028
|
*/
|
|
15004
15029
|
"editButtonLabel"?: string;
|
|
15030
|
+
"error"?: boolean;
|
|
15005
15031
|
/**
|
|
15006
15032
|
* @default "landscape"
|
|
15007
15033
|
*/
|
|
15008
15034
|
"format"?: SwirlThumbnailFormat;
|
|
15009
15035
|
"interactive"?: boolean;
|
|
15036
|
+
/**
|
|
15037
|
+
* @default "More actions"
|
|
15038
|
+
*/
|
|
15039
|
+
"menuButtonLabel"?: string;
|
|
15010
15040
|
"onEdit"?: (event: SwirlThumbnailCustomEvent<MouseEvent>) => void;
|
|
15011
15041
|
"onRemove"?: (event: SwirlThumbnailCustomEvent<MouseEvent>) => void;
|
|
15012
15042
|
"onThumbnailClick"?: (event: SwirlThumbnailCustomEvent<MouseEvent>) => void;
|
|
15043
|
+
/**
|
|
15044
|
+
* @default "<swirl-icon-visibility></swirl-icon-visibility>"
|
|
15045
|
+
*/
|
|
15046
|
+
"openButtonIcon"?: string;
|
|
15047
|
+
/**
|
|
15048
|
+
* @default "Open"
|
|
15049
|
+
*/
|
|
15050
|
+
"openButtonLabel"?: string;
|
|
15013
15051
|
"progress"?: number;
|
|
15014
15052
|
/**
|
|
15015
15053
|
* @default "Loading progress"
|
|
15016
15054
|
*/
|
|
15017
15055
|
"progressLabel"?: string;
|
|
15056
|
+
/**
|
|
15057
|
+
* @default "<swirl-icon-delete></swirl-icon-delete>"
|
|
15058
|
+
*/
|
|
15059
|
+
"removeButtonIcon"?: string;
|
|
15018
15060
|
/**
|
|
15019
15061
|
* @default "Remove"
|
|
15020
15062
|
*/
|
|
@@ -17896,12 +17938,18 @@ declare namespace LocalJSX {
|
|
|
17896
17938
|
}
|
|
17897
17939
|
interface SwirlThumbnailAttributes {
|
|
17898
17940
|
"alt": string;
|
|
17941
|
+
"cursor": SwirlCursor;
|
|
17899
17942
|
"editButtonIcon": string;
|
|
17900
17943
|
"editButtonLabel": string;
|
|
17944
|
+
"error": boolean;
|
|
17901
17945
|
"format": SwirlThumbnailFormat;
|
|
17902
17946
|
"interactive": boolean;
|
|
17947
|
+
"menuButtonLabel": string;
|
|
17948
|
+
"openButtonIcon": string;
|
|
17949
|
+
"openButtonLabel": string;
|
|
17903
17950
|
"progress": number;
|
|
17904
17951
|
"progressLabel": string;
|
|
17952
|
+
"removeButtonIcon": string;
|
|
17905
17953
|
"removeButtonLabel": string;
|
|
17906
17954
|
"showEditButton": boolean;
|
|
17907
17955
|
"showRemoveButton": boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export { SwirlTableDropRowEvent } from "./components/swirl-table/swirl-table";
|
|
|
8
8
|
export { SwirlOSTheme, SwirlOSThemeChangeEventData, SwirlThemeProviderConfig, SwirlThemeProviderStorage, SwirlTheme as Theme, SwirlThemeDesignToken as ThemeDesignToken, SwirlThemeIcon as ThemeIcon, SwirlThemeImage as ThemeImage, SwirlThemeRgbaColor as ThemeRgbaColor, SwirlThemes as Themes, } from "./components/swirl-theme-provider/swirl-theme-provider.types";
|
|
9
9
|
export { SwirlTreeViewItemKeyboardMoveEvent } from "./components/swirl-tree-view-item/swirl-tree-view-item";
|
|
10
10
|
export { SwirlTreeViewCanDropHandler, SwirlTreeViewDropItemEvent, } from "./components/swirl-tree-view/swirl-tree-view";
|
|
11
|
-
export { SwirlDialogToggleEvent } from "./utils";
|
|
11
|
+
export { SwirlCursor, SwirlDialogToggleEvent } from "./utils";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body scroll lock utility.
|
|
3
|
+
*
|
|
4
|
+
* - Non-iOS: sets `overflow: hidden` on body
|
|
5
|
+
* - iOS: uses `position: fixed` + scroll position preservation
|
|
6
|
+
* (iOS Safari ignores `overflow: hidden` on body)
|
|
7
|
+
*
|
|
8
|
+
* Uses reference counting so multiple simultaneous locks are safe.
|
|
9
|
+
*/
|
|
10
|
+
export declare function disableBodyScroll(targetElement: Element | null | undefined): void;
|
|
11
|
+
export declare function enableBodyScroll(targetElement: Element | null | undefined): void;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "./stencil-public-runtime";
|
|
2
|
+
export type SwirlCursor = "auto" | "default" | "none" | "context-menu" | "help" | "pointer" | "progress" | "wait" | "cell" | "crosshair" | "text" | "vertical-text" | "alias" | "copy" | "move" | "no-drop" | "not-allowed" | "grab" | "grabbing" | "e-resize" | "n-resize" | "ne-resize" | "nw-resize" | "s-resize" | "se-resize" | "sw-resize" | "w-resize" | "ew-resize" | "ns-resize" | "nesw-resize" | "nwse-resize" | "col-resize" | "row-resize" | "all-scroll" | "zoom-in" | "zoom-out";
|
|
2
3
|
export type SwirlDialogToggleEvent = {
|
|
3
4
|
newState: "open" | "closed";
|
|
4
5
|
dialog: HTMLDialogElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.484.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.484.0",
|
|
30
30
|
"@types/node": "25.3.0",
|
|
31
31
|
"tsx": "^4.7.0",
|
|
32
32
|
"typescript": "5.9.3"
|