@maggioli-design-system/mds-input-tip 1.5.1 → 1.5.2

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.
@@ -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.cleanupAutoUpdate)
155
- this.cleanupAutoUpdate();
156
- this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition);
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 {
@@ -7,6 +7,8 @@ const buttonVariantDictionary = [
7
7
  'secondary',
8
8
  'success',
9
9
  'warning',
10
+ 'google',
11
+ 'apple',
10
12
  ];
11
13
  const buttonToneVariantDictionary = [
12
14
  'strong',
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-03-18T08:29:49",
2
+ "timestamp": "2025-04-02T10:25:25",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",
package/dist/stats.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-03-18T08:29:49",
2
+ "timestamp": "2025-04-02T10:25:25",
3
3
  "compiler": {
4
4
  "name": "node",
5
5
  "version": "22.11.0"
@@ -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';
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-03-18T08:12:04",
2
+ "timestamp": "2025-04-02T08:30:40",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",
@@ -215,7 +215,7 @@
215
215
  "path": "src/type/button.ts"
216
216
  },
217
217
  "src/type/button.ts::ButtonVariantType": {
218
- "declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
218
+ "declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'\n | 'google'\n | 'apple'",
219
219
  "docstring": "",
220
220
  "path": "src/type/button.ts"
221
221
  },
@@ -314,6 +314,11 @@
314
314
  "docstring": "",
315
315
  "path": "src/components/mds-horizontal-scroll/meta/types.ts"
316
316
  },
317
+ "src/components/mds-horizontal-scroll/meta/types.ts::NavigationType": {
318
+ "declaration": "export type NavigationType =\n | 'none'\n | 'scrollbar'\n | 'position'",
319
+ "docstring": "",
320
+ "path": "src/components/mds-horizontal-scroll/meta/types.ts"
321
+ },
317
322
  "src/components/mds-horizontal-scroll/meta/types.ts::SnapType": {
318
323
  "declaration": "export type SnapType =\n | 'center'\n | 'end'\n | 'none'\n | 'start'",
319
324
  "docstring": "",
@@ -454,6 +459,11 @@
454
459
  "docstring": "",
455
460
  "path": "src/components/mds-modal/meta/types.ts"
456
461
  },
462
+ "src/components/mds-modal/meta/types.ts::ModalAnimationStyleType": {
463
+ "declaration": "export type ModalAnimationStyleType =\n | 'slide'\n | 'custom'\n | '3d'",
464
+ "docstring": "",
465
+ "path": "src/components/mds-modal/meta/types.ts"
466
+ },
457
467
  "src/components/mds-modal/meta/types.ts::ModalOverflowType": {
458
468
  "declaration": "export type ModalOverflowType =\n | 'auto'\n | 'manual'",
459
469
  "docstring": "",
@@ -519,20 +529,25 @@
519
529
  "docstring": "",
520
530
  "path": "src/components/mds-progress/meta/types.ts"
521
531
  },
522
- "src/components/mds-push-notification/meta/types.ts::NotificationDateFormatType": {
532
+ "src/components/mds-push-notification/meta/event-detail.ts::MdsPushNotificationEventDetail": {
533
+ "declaration": "export interface MdsPushNotificationEventDetail {\n visible: boolean\n}",
534
+ "docstring": "",
535
+ "path": "src/components/mds-push-notification/meta/event-detail.ts"
536
+ },
537
+ "src/components/mds-push-notification-item/meta/types.ts::NotificationItemDateFormatType": {
523
538
  "declaration": "string",
524
539
  "docstring": "",
525
- "path": "src/components/mds-push-notification/meta/types.ts"
540
+ "path": "src/components/mds-push-notification-item/meta/types.ts"
526
541
  },
527
- "src/components/mds-push-notification/meta/types.ts::NotificationPreviewType": {
528
- "declaration": "export type NotificationPreviewType =\n | 'avatar'\n | 'image'",
542
+ "src/components/mds-push-notification-item/meta/types.ts::NotificationItemPreviewType": {
543
+ "declaration": "export type NotificationItemPreviewType =\n | 'avatar'\n | 'image'",
529
544
  "docstring": "",
530
- "path": "src/components/mds-push-notification/meta/types.ts"
545
+ "path": "src/components/mds-push-notification-item/meta/types.ts"
531
546
  },
532
- "src/components/mds-push-notification/meta/event-detail.ts::MdsPushNotificationEventDetail": {
533
- "declaration": "export interface MdsPushNotificationEventDetail {\n id: string;\n}",
547
+ "src/components/mds-push-notification-item/meta/event-detail.ts::MdsPushNotificationItemEventDetail": {
548
+ "declaration": "export interface MdsPushNotificationItemEventDetail {\n id: string;\n}",
534
549
  "docstring": "",
535
- "path": "src/components/mds-push-notification/meta/event-detail.ts"
550
+ "path": "src/components/mds-push-notification-item/meta/event-detail.ts"
536
551
  },
537
552
  "src/type/text.ts::TypographyHeadingTagType": {
538
553
  "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",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "mds-input-tip 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-input-tip-item": "1.5.0",
28
- "@maggioli-design-system/styles": "15.9.0",
27
+ "@maggioli-design-system/mds-input-tip-item": "1.5.1",
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.cleanupAutoUpdate) this.cleanupAutoUpdate()
228
- this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition)
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
 
@@ -7,6 +7,8 @@ const buttonVariantDictionary = [
7
7
  'secondary',
8
8
  'success',
9
9
  'warning',
10
+ 'google',
11
+ 'apple',
10
12
  ]
11
13
 
12
14
  const buttonToneVariantDictionary = [
@@ -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",
@@ -27,3 +27,5 @@ export type ButtonVariantType =
27
27
  | 'info'
28
28
  | 'success'
29
29
  | 'warning'
30
+ | 'google'
31
+ | 'apple'