@italia/input 0.1.0-alpha.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.
@@ -0,0 +1,18 @@
1
+ import { type Suggestion } from '../types.js';
2
+ /**
3
+ * Returns a value between -1 and 100 to score
4
+ * the user's password.
5
+ *
6
+ * @param string password The password to be checked.
7
+ * @return int
8
+ */
9
+ declare const calculateScore: (password: string, lmin: number) => number;
10
+ declare const scoreColor: (score: number) => "danger" | "warning" | "success";
11
+ declare const scoreText: (score: number, messages: any) => any;
12
+ declare const suggestionsConfig: Array<Suggestion>;
13
+ declare const calcCompletedSuggestions: (_suggestions: Array<Suggestion>, password: string, config: Record<string, any>) => {
14
+ completedCount: number;
15
+ totalCount: number;
16
+ };
17
+ export { calculateScore, scoreColor, scoreText, suggestionsConfig, calcCompletedSuggestions };
18
+ //# sourceMappingURL=password.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../src/helpers/password.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AA2B9C;;;;;;GAMG;AACH,QAAA,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,MAAM,MAAM,WAgErD,CAAC;AAEF,QAAA,MAAM,UAAU,GAAI,OAAO,MAAM,qCAWhC,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,OAAO,MAAM,EAAE,UAAU,GAAG,QAiB9C,CAAC;AAEF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,UAAU,CA0BxC,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAAI,cAAc,KAAK,CAAC,UAAU,CAAC,EAAE,UAAU,MAAM,EAAE,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;CAS/G,CAAC;AACF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ItInput } from './it-input.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { ItInput } from './it-input.js';
2
+ import 'lit/directive.js';
3
+ import 'lit';
4
+ import 'lit/decorators.js';
5
+ import 'lit/directives/if-defined.js';
6
+ import 'lit/directives/when.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}