@italia/popover 1.0.0-alpha.8 → 1.0.0-beta.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/custom-elements.json +20 -1
- package/dist/src/it-popover.d.ts +2 -0
- package/dist/src/it-popover.d.ts.map +1 -1
- package/dist/src/it-popover.js +195 -185
- package/dist/src/it-popover.js.map +1 -1
- package/package.json +8 -8
- package/styles/globals.scss +2 -1
package/custom-elements.json
CHANGED
|
@@ -72,6 +72,16 @@
|
|
|
72
72
|
"default": "false",
|
|
73
73
|
"attribute": "no-flip"
|
|
74
74
|
},
|
|
75
|
+
{
|
|
76
|
+
"kind": "field",
|
|
77
|
+
"name": "centerArrow",
|
|
78
|
+
"type": {
|
|
79
|
+
"text": "boolean"
|
|
80
|
+
},
|
|
81
|
+
"default": "false",
|
|
82
|
+
"description": "Centre the arrow on the trigger instead of the fixed notch position. Used by avatar dropdowns.",
|
|
83
|
+
"attribute": "center-arrow"
|
|
84
|
+
},
|
|
75
85
|
{
|
|
76
86
|
"kind": "field",
|
|
77
87
|
"name": "_triggerSlot",
|
|
@@ -221,6 +231,15 @@
|
|
|
221
231
|
},
|
|
222
232
|
"default": "false",
|
|
223
233
|
"fieldName": "noFlip"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "center-arrow",
|
|
237
|
+
"type": {
|
|
238
|
+
"text": "boolean"
|
|
239
|
+
},
|
|
240
|
+
"default": "false",
|
|
241
|
+
"description": "Centre the arrow on the trigger instead of the fixed notch position. Used by avatar dropdowns.",
|
|
242
|
+
"fieldName": "centerArrow"
|
|
224
243
|
}
|
|
225
244
|
],
|
|
226
245
|
"superclass": {
|
|
@@ -257,7 +276,7 @@
|
|
|
257
276
|
{
|
|
258
277
|
"kind": "variable",
|
|
259
278
|
"name": "meta",
|
|
260
|
-
"default": "{ title: 'Componenti/Popover', component: 'it-popover', tags: ['
|
|
279
|
+
"default": "{ title: 'Componenti/Popover', component: 'it-popover', tags: ['web-component', 'a11y-ok'], args: { placement: 'right', }, argTypes: { placement: { control: 'select', options: [ 'top', 'right', 'bottom', 'left', 'top-start', 'top-end', 'right-start', 'right-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', ], description: 'Posizione del Popover rispetto al suo elemento trigger', table: { defaultValue: { summary: 'bottom-start' }, }, }, }, parameters: { layout: 'padded', }, } satisfies Meta<PopoverProps>"
|
|
261
280
|
},
|
|
262
281
|
{
|
|
263
282
|
"kind": "variable",
|
package/dist/src/it-popover.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare class ItPopover extends BaseComponent {
|
|
|
9
9
|
placement: PopoverPlacement;
|
|
10
10
|
offset: number;
|
|
11
11
|
noFlip: boolean;
|
|
12
|
+
/** Centre the arrow on the trigger instead of the fixed notch position. Used by avatar dropdowns. */
|
|
13
|
+
centerArrow: boolean;
|
|
12
14
|
private _triggerSlot;
|
|
13
15
|
private _contentSlot;
|
|
14
16
|
private get _triggerElement();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it-popover.d.ts","sourceRoot":"","sources":["../../src/it-popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,EAA2D,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"it-popover.d.ts","sourceRoot":"","sources":["../../src/it-popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,EAA2D,KAAK,SAAS,EAAe,MAAM,kBAAkB,CAAC;AAGxH,KAAK,gBAAgB,GAAG,SAAS,CAAC;AAElC,qBACa,SAAU,SAAQ,aAAa;IAC1C,MAAM,CAAC,MAAM,+BAAU;IAEqB,IAAI,UAAS;IAE5B,UAAU,UAAS;IA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