@maggioli-design-system/mds-input-tip-item 1.5.0 → 1.5.1
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/collection/common/floating-controller.js +7 -4
- package/dist/collection/dictionary/button.js +2 -0
- package/dist/documentation.json +1 -1
- package/dist/stats.json +1 -1
- package/dist/types/type/button.d.ts +1 -1
- package/documentation.json +25 -10
- package/package.json +3 -3
- package/src/common/floating-controller.ts +6 -3
- package/src/dictionary/button.ts +2 -0
- package/src/fixtures/icons.json +6 -0
- package/src/type/button.ts +2 -0
|
@@ -117,6 +117,7 @@ export class FloatingController {
|
|
|
117
117
|
left: `${x}px`,
|
|
118
118
|
top: `${y}px`,
|
|
119
119
|
transformOrigin: this.convertToTransformOrigin(placement),
|
|
120
|
+
position: this._host.strategy,
|
|
120
121
|
});
|
|
121
122
|
const arrowStyle = {};
|
|
122
123
|
const arrowPosition = {
|
|
@@ -151,12 +152,14 @@ export class FloatingController {
|
|
|
151
152
|
return caller;
|
|
152
153
|
}
|
|
153
154
|
updatePosition() {
|
|
154
|
-
if (this.
|
|
155
|
-
this.
|
|
156
|
-
|
|
155
|
+
if (this._host.visible) {
|
|
156
|
+
this.dismiss(); // to clean the old update function before update function
|
|
157
|
+
this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition);
|
|
158
|
+
}
|
|
157
159
|
}
|
|
158
160
|
dismiss() {
|
|
159
|
-
this.cleanupAutoUpdate
|
|
161
|
+
if (this.cleanupAutoUpdate)
|
|
162
|
+
this.cleanupAutoUpdate();
|
|
160
163
|
}
|
|
161
164
|
}
|
|
162
165
|
export class Backdrop {
|
package/dist/documentation.json
CHANGED
package/dist/stats.json
CHANGED
|
@@ -2,4 +2,4 @@ export type ButtonType = 'a' | 'button' | 'reset' | 'submit';
|
|
|
2
2
|
export type ButtonTargetType = 'self' | 'blank';
|
|
3
3
|
export type ButtonSizeType = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export type ButtonIconPositionType = 'left' | 'right';
|
|
5
|
-
export type ButtonVariantType = 'primary' | 'secondary' | 'dark' | 'light' | 'error' | 'info' | 'success' | 'warning';
|
|
5
|
+
export type ButtonVariantType = 'primary' | 'secondary' | 'dark' | 'light' | 'error' | 'info' | 'success' | 'warning' | 'google' | 'apple';
|
package/documentation.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
2
|
+
"timestamp": "2025-04-02T08:30:40",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.27.2",
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"path": "src/type/button.ts"
|
|
285
285
|
},
|
|
286
286
|
"src/type/button.ts::ButtonVariantType": {
|
|
287
|
-
"declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
|
|
287
|
+
"declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'\n | 'google'\n | 'apple'",
|
|
288
288
|
"docstring": "",
|
|
289
289
|
"path": "src/type/button.ts"
|
|
290
290
|
},
|
|
@@ -383,6 +383,11 @@
|
|
|
383
383
|
"docstring": "",
|
|
384
384
|
"path": "src/components/mds-horizontal-scroll/meta/types.ts"
|
|
385
385
|
},
|
|
386
|
+
"src/components/mds-horizontal-scroll/meta/types.ts::NavigationType": {
|
|
387
|
+
"declaration": "export type NavigationType =\n | 'none'\n | 'scrollbar'\n | 'position'",
|
|
388
|
+
"docstring": "",
|
|
389
|
+
"path": "src/components/mds-horizontal-scroll/meta/types.ts"
|
|
390
|
+
},
|
|
386
391
|
"src/components/mds-horizontal-scroll/meta/types.ts::SnapType": {
|
|
387
392
|
"declaration": "export type SnapType =\n | 'center'\n | 'end'\n | 'none'\n | 'start'",
|
|
388
393
|
"docstring": "",
|
|
@@ -523,6 +528,11 @@
|
|
|
523
528
|
"docstring": "",
|
|
524
529
|
"path": "src/components/mds-modal/meta/types.ts"
|
|
525
530
|
},
|
|
531
|
+
"src/components/mds-modal/meta/types.ts::ModalAnimationStyleType": {
|
|
532
|
+
"declaration": "export type ModalAnimationStyleType =\n | 'slide'\n | 'custom'\n | '3d'",
|
|
533
|
+
"docstring": "",
|
|
534
|
+
"path": "src/components/mds-modal/meta/types.ts"
|
|
535
|
+
},
|
|
526
536
|
"src/components/mds-modal/meta/types.ts::ModalOverflowType": {
|
|
527
537
|
"declaration": "export type ModalOverflowType =\n | 'auto'\n | 'manual'",
|
|
528
538
|
"docstring": "",
|
|
@@ -588,20 +598,25 @@
|
|
|
588
598
|
"docstring": "",
|
|
589
599
|
"path": "src/components/mds-progress/meta/types.ts"
|
|
590
600
|
},
|
|
591
|
-
"src/components/mds-push-notification/meta/
|
|
601
|
+
"src/components/mds-push-notification/meta/event-detail.ts::MdsPushNotificationEventDetail": {
|
|
602
|
+
"declaration": "export interface MdsPushNotificationEventDetail {\n visible: boolean\n}",
|
|
603
|
+
"docstring": "",
|
|
604
|
+
"path": "src/components/mds-push-notification/meta/event-detail.ts"
|
|
605
|
+
},
|
|
606
|
+
"src/components/mds-push-notification-item/meta/types.ts::NotificationItemDateFormatType": {
|
|
592
607
|
"declaration": "string",
|
|
593
608
|
"docstring": "",
|
|
594
|
-
"path": "src/components/mds-push-notification/meta/types.ts"
|
|
609
|
+
"path": "src/components/mds-push-notification-item/meta/types.ts"
|
|
595
610
|
},
|
|
596
|
-
"src/components/mds-push-notification/meta/types.ts::
|
|
597
|
-
"declaration": "export type
|
|
611
|
+
"src/components/mds-push-notification-item/meta/types.ts::NotificationItemPreviewType": {
|
|
612
|
+
"declaration": "export type NotificationItemPreviewType =\n | 'avatar'\n | 'image'",
|
|
598
613
|
"docstring": "",
|
|
599
|
-
"path": "src/components/mds-push-notification/meta/types.ts"
|
|
614
|
+
"path": "src/components/mds-push-notification-item/meta/types.ts"
|
|
600
615
|
},
|
|
601
|
-
"src/components/mds-push-notification/meta/event-detail.ts::
|
|
602
|
-
"declaration": "export interface
|
|
616
|
+
"src/components/mds-push-notification-item/meta/event-detail.ts::MdsPushNotificationItemEventDetail": {
|
|
617
|
+
"declaration": "export interface MdsPushNotificationItemEventDetail {\n id: string;\n}",
|
|
603
618
|
"docstring": "",
|
|
604
|
-
"path": "src/components/mds-push-notification/meta/event-detail.ts"
|
|
619
|
+
"path": "src/components/mds-push-notification-item/meta/event-detail.ts"
|
|
605
620
|
},
|
|
606
621
|
"src/type/text.ts::TypographyHeadingTagType": {
|
|
607
622
|
"declaration": "export type TypographyHeadingTagType =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-input-tip-item",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "mds-input-tip-item is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"test": "stencil test --spec --e2e"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@maggioli-design-system/mds-text": "4.7.
|
|
28
|
-
"@maggioli-design-system/styles": "15.9.
|
|
27
|
+
"@maggioli-design-system/mds-text": "4.7.2",
|
|
28
|
+
"@maggioli-design-system/styles": "15.9.1",
|
|
29
29
|
"@stencil/core": "4.27.2"
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
@@ -201,6 +201,7 @@ export class FloatingController {
|
|
|
201
201
|
left: `${x}px`,
|
|
202
202
|
top: `${y}px`,
|
|
203
203
|
transformOrigin: this.convertToTransformOrigin(placement),
|
|
204
|
+
position: this._host.strategy,
|
|
204
205
|
})
|
|
205
206
|
|
|
206
207
|
const arrowStyle = {}
|
|
@@ -224,12 +225,14 @@ export class FloatingController {
|
|
|
224
225
|
}
|
|
225
226
|
|
|
226
227
|
updatePosition (): void {
|
|
227
|
-
if (this.
|
|
228
|
-
|
|
228
|
+
if (this._host.visible) {
|
|
229
|
+
this.dismiss() // to clean the old update function before update function
|
|
230
|
+
this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition)
|
|
231
|
+
}
|
|
229
232
|
}
|
|
230
233
|
|
|
231
234
|
dismiss (): void {
|
|
232
|
-
this.cleanupAutoUpdate()
|
|
235
|
+
if (this.cleanupAutoUpdate) this.cleanupAutoUpdate()
|
|
233
236
|
}
|
|
234
237
|
}
|
|
235
238
|
|
package/src/dictionary/button.ts
CHANGED
package/src/fixtures/icons.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[
|
|
2
2
|
"mdi/alien",
|
|
3
|
+
"mdi/apple",
|
|
3
4
|
"mdi/apple-keyboard-shift",
|
|
4
5
|
"mdi/barley",
|
|
5
6
|
"mdi/baseball",
|
|
@@ -7,6 +8,7 @@
|
|
|
7
8
|
"mdi/delete",
|
|
8
9
|
"mdi/dots-vertical",
|
|
9
10
|
"mdi/email",
|
|
11
|
+
"mdi/eye-off-outline",
|
|
10
12
|
"mdi/file-document-remove-outline",
|
|
11
13
|
"mdi/file-download-outline",
|
|
12
14
|
"mdi/file-upload-outline",
|
|
@@ -337,12 +339,14 @@
|
|
|
337
339
|
"mi/baseline/audiotrack",
|
|
338
340
|
"mi/baseline/auto-awesome",
|
|
339
341
|
"mi/baseline/badge",
|
|
342
|
+
"mi/baseline/block",
|
|
340
343
|
"mi/baseline/book",
|
|
341
344
|
"mi/baseline/border-all",
|
|
342
345
|
"mi/baseline/broken-image",
|
|
343
346
|
"mi/baseline/call",
|
|
344
347
|
"mi/baseline/cancel",
|
|
345
348
|
"mi/baseline/category",
|
|
349
|
+
"mi/baseline/check",
|
|
346
350
|
"mi/baseline/check-box",
|
|
347
351
|
"mi/baseline/check-box-outline-blank",
|
|
348
352
|
"mi/baseline/check-circle",
|
|
@@ -400,6 +404,7 @@
|
|
|
400
404
|
"mi/baseline/radio-button-unchecked",
|
|
401
405
|
"mi/baseline/remove",
|
|
402
406
|
"mi/baseline/remove-circle",
|
|
407
|
+
"mi/baseline/remove-red-eye",
|
|
403
408
|
"mi/baseline/route",
|
|
404
409
|
"mi/baseline/send",
|
|
405
410
|
"mi/baseline/settings",
|
|
@@ -410,6 +415,7 @@
|
|
|
410
415
|
"mi/baseline/terminal",
|
|
411
416
|
"mi/baseline/timer",
|
|
412
417
|
"mi/baseline/tv",
|
|
418
|
+
"mi/baseline/undo",
|
|
413
419
|
"mi/baseline/unfold-less",
|
|
414
420
|
"mi/baseline/unfold-more",
|
|
415
421
|
"mi/baseline/vertical-align-bottom",
|