@maggioli-design-system/mds-input-tip 1.4.0 → 1.4.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.
@@ -0,0 +1,7 @@
1
+ const isSafari = () => {
2
+ if (navigator) {
3
+ return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
4
+ }
5
+ return false;
6
+ };
7
+ export { isSafari, };
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-03-05T17:39:52",
2
+ "timestamp": "2025-03-10T13:11:16",
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-05T17:39:53",
2
+ "timestamp": "2025-03-10T13:11:16",
3
3
  "compiler": {
4
4
  "name": "node",
5
5
  "version": "22.11.0"
@@ -9,13 +9,14 @@
9
9
  "fsNamespace": "mds-input-tip",
10
10
  "components": 1,
11
11
  "entries": 1,
12
- "bundles": 103,
12
+ "bundles": 104,
13
13
  "outputs": [
14
14
  {
15
15
  "name": "dist-collection",
16
- "files": 55,
16
+ "files": 56,
17
17
  "generatedFiles": [
18
18
  "./dist/collection/common/aria.js",
19
+ "./dist/collection/common/browser.js",
19
20
  "./dist/collection/common/date.js",
20
21
  "./dist/collection/common/device.js",
21
22
  "./dist/collection/common/file.js",
@@ -478,6 +479,7 @@
478
479
  },
479
480
  "sourceGraph": {
480
481
  "./src/common/aria.ts": [],
482
+ "./src/common/browser.ts": [],
481
483
  "./src/common/date.ts": [],
482
484
  "./src/common/device.ts": [],
483
485
  "./src/common/file.ts": [],
@@ -0,0 +1,2 @@
1
+ declare const isSafari: () => boolean;
2
+ export { isSafari, };
@@ -15,6 +15,6 @@ export declare class Locale {
15
15
  lang: (el: HTMLElement) => string;
16
16
  update: (doc?: Document | ShadowRoot) => void;
17
17
  private pluralize;
18
- get: (tag: string | string[], context?: Record<string, string | number>) => string;
18
+ get: (tag: string | string[], context?: Record<string, string | number | boolean>) => string;
19
19
  }
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-03-05T16:16:01",
2
+ "timestamp": "2025-03-10T10:32:58",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-input-tip",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
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,7 +24,7 @@
24
24
  "test": "stencil test --spec --e2e"
25
25
  },
26
26
  "dependencies": {
27
- "@maggioli-design-system/mds-input-tip-item": "1.4.0",
27
+ "@maggioli-design-system/mds-input-tip-item": "1.4.1",
28
28
  "@maggioli-design-system/styles": "15.9.0",
29
29
  "@stencil/core": "4.27.2"
30
30
  },
@@ -0,0 +1,10 @@
1
+ const isSafari = (): boolean => {
2
+ if (navigator) {
3
+ return /^((?!chrome|android).)*safari/i.test(navigator.userAgent)
4
+ }
5
+ return false
6
+ }
7
+
8
+ export {
9
+ isSafari,
10
+ }
@@ -52,7 +52,7 @@ export class Locale {
52
52
  })
53
53
  }
54
54
 
55
- private pluralize = (tag: string | string[], context: Record<string, string | number>): string => {
55
+ private pluralize = (tag: string | string[], context: Record<string, string | number | boolean>): string => {
56
56
 
57
57
  const languagePhrase: string | string[] = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag]
58
58
  const phrases: string[] = []
@@ -81,7 +81,7 @@ export class Locale {
81
81
  return render(translatePhrase, context)
82
82
  }
83
83
 
84
- get = (tag: string | string[], context?: Record<string, string | number>): string => {
84
+ get = (tag: string | string[], context?: Record<string, string | number | boolean>): string => {
85
85
  if (context) {
86
86
  return this.pluralize(tag, context)
87
87
  }
@@ -52,6 +52,7 @@
52
52
  "mgg/ai-status-suspended",
53
53
  "mgg/alerts-pagopa",
54
54
  "mgg/anagrafe-nazionale",
55
+ "mgg/anist",
55
56
  "mgg/anpr",
56
57
  "mgg/ansc",
57
58
  "mgg/area-edificabile",
@@ -361,6 +362,7 @@
361
362
  "mi/baseline/eco",
362
363
  "mi/baseline/email",
363
364
  "mi/baseline/error",
365
+ "mi/baseline/expand-more",
364
366
  "mi/baseline/explore",
365
367
  "mi/baseline/favorite",
366
368
  "mi/baseline/favorite-border",
@@ -32,6 +32,7 @@
32
32
  "mgg/ai-status-suspended",
33
33
  "mgg/alerts-pagopa",
34
34
  "mgg/anagrafe-nazionale",
35
+ "mgg/anist",
35
36
  "mgg/anpr",
36
37
  "mgg/ansc",
37
38
  "mgg/area-edificabile",