svelte-tel-input 0.2.0 → 0.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/LICENSE.md +21 -0
  3. package/README.md +13 -9
  4. package/assets/countries.d.ts +2 -0
  5. package/{src/lib/assets/countries.ts → assets/countries.js} +0 -2
  6. package/assets/regions.d.ts +2 -0
  7. package/{src/lib/assets/regions.ts → assets/regions.js} +0 -2
  8. package/components/Input/SvelteTelInput.svelte +23 -0
  9. package/components/Input/SvelteTelInput.svelte.d.ts +14 -0
  10. package/{src/lib/components → components}/Select/CountrySelect.svelte +2 -3
  11. package/components/Select/CountrySelect.svelte.d.ts +14 -0
  12. package/{src/lib/components → components}/Select/RegionSelect.svelte +2 -3
  13. package/components/Select/RegionSelect.svelte.d.ts +14 -0
  14. package/{src/lib/index.ts → index.d.ts} +0 -0
  15. package/index.js +2 -0
  16. package/models/enums/PhoneType.enum.d.ts +4 -0
  17. package/models/enums/PhoneType.enum.js +5 -0
  18. package/{src/lib/models/enums/index.ts → models/enums/index.d.ts} +0 -0
  19. package/models/enums/index.js +1 -0
  20. package/{src/lib/models/index.ts → models/index.d.ts} +0 -0
  21. package/models/index.js +1 -0
  22. package/{src/lib/models/interfaces/Select.interface.ts → models/interfaces/Select.interface.d.ts} +0 -0
  23. package/models/interfaces/Select.interface.js +1 -0
  24. package/models/types/DynamicSvelteComponent.type.d.ts +8 -0
  25. package/models/types/DynamicSvelteComponent.type.js +16 -0
  26. package/{src/lib/models/types/Select.type.ts → models/types/Select.type.d.ts} +1 -2
  27. package/models/types/Select.type.js +1 -0
  28. package/package.json +159 -152
  29. package/stores/index.d.ts +11 -0
  30. package/{src/lib/stores/index.ts → stores/index.js} +6 -10
  31. package/utils/directives/clickOutsideAction.d.ts +3 -0
  32. package/utils/directives/clickOutsideAction.js +9 -0
  33. package/utils/simulator.d.ts +1 -0
  34. package/utils/simulator.js +5 -0
  35. package/utils/typeCheck.d.ts +4 -0
  36. package/utils/typeCheck.js +11 -0
  37. package/.changeset/config.json +0 -9
  38. package/.editorconfig +0 -13
  39. package/.eslintignore +0 -10
  40. package/.eslintrc.cjs +0 -30
  41. package/.github/workflows/lint.yml +0 -12
  42. package/.github/workflows/release.yml +0 -49
  43. package/.husky/pre-commit +0 -4
  44. package/.prettierignore +0 -10
  45. package/.prettierrc.cjs +0 -6
  46. package/babel.config.cjs +0 -12
  47. package/docker-compose.yml +0 -16
  48. package/docs/_index.md +0 -1
  49. package/jest.config.cjs +0 -21
  50. package/postcss.config.cjs +0 -21
  51. package/scripts/changelog-github-custom.cjs +0 -104
  52. package/scripts/changelog-github-custom.test.ts +0 -136
  53. package/scripts/changelog-github-custom.ts +0 -127
  54. package/src/app.css +0 -4
  55. package/src/app.html +0 -13
  56. package/src/global.d.ts +0 -1
  57. package/src/hooks.ts +0 -9
  58. package/src/lib/components/Input/SvelteTelInput.svelte +0 -29
  59. package/src/lib/components/LazyLoad/LazyLoad.svelte +0 -23
  60. package/src/lib/models/enums/PhoneType.enum.ts +0 -4
  61. package/src/lib/models/types/DynamicSvelteComponent.type.ts +0 -9
  62. package/src/lib/utils/directives/clickOutsideAction.ts +0 -13
  63. package/src/lib/utils/simulator.ts +0 -5
  64. package/src/lib/utils/typeCheck.ts +0 -17
  65. package/src/routes/__layout.svelte +0 -11
  66. package/src/routes/index.svelte +0 -22
  67. package/static/favicon.ico +0 -0
  68. package/static/robots.txt +0 -3
  69. package/svelte.config.js +0 -28
  70. package/tailwind.config.cjs +0 -10
  71. package/tsconfig.json +0 -32
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # svelte-tel-input
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: readme fix ([#39](https://github.com/gyurielf/svelte-tel-input/pull/39))
8
+
9
+ ## 0.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - fix: rework ci
14
+
15
+ ### Patch Changes
16
+
17
+ - fix: minor ci fix ([#34](https://github.com/gyurielf/svelte-tel-input/pull/34))
18
+
19
+ * fix: fix ci again ([#35](https://github.com/gyurielf/svelte-tel-input/pull/35))
20
+
21
+ - fix: last ci fix for today ([#36](https://github.com/gyurielf/svelte-tel-input/pull/36))
22
+
23
+ * fix: ci fixxx ([#33](https://github.com/gyurielf/svelte-tel-input/pull/33))
24
+
25
+ - something 1 ([#37](https://github.com/gyurielf/svelte-tel-input/pull/37))
26
+
27
+ * fix: ci extend 321 ([#32](https://github.com/gyurielf/svelte-tel-input/pull/32))
28
+
29
+ ## 0.3.2
30
+
31
+ ### Patch Changes
32
+
33
+ - feat: add MIT license ([#29](https://github.com/gyurielf/svelte-tel-input/pull/29))
34
+
35
+ * fix: fix readme deps ([#29](https://github.com/gyurielf/svelte-tel-input/pull/29))
36
+
37
+ ## 0.3.1
38
+
39
+ ### Patch Changes
40
+
41
+ - fix: lets check with different folder structure ([#25](https://github.com/gyurielf/svelte-tel-input/pull/25))
42
+
43
+ ## 0.3.0
44
+
45
+ ### Minor Changes
46
+
47
+ - fix: ci modifications ([#22](https://github.com/gyurielf/svelte-tel-input/pull/22))
48
+
3
49
  ## 0.2.0
4
50
 
5
51
  ### Minor Changes
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 - Present Gyorgy Kallai, Budapest, Hungary.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,19 +1,23 @@
1
1
  # Svelte Tel Input
2
2
 
3
- Under development!
4
-
5
- ## Requirements
6
-
7
- ```
8
- $ npm install --save libphonenumber-js
9
- ```
3
+ <ins>## Under heavy development!</ins>
10
4
 
11
5
  ## Installation
12
6
 
7
+ ---
8
+
13
9
  Svelte Tel Input is distributed via [npm](https://www.npmjs.com/package/svelte-tel-input).
14
10
 
15
11
  ```sh
16
- $ yarn add svelte-tel-input
12
+ yarn add svelte-tel-input
13
+
17
14
  # or
18
- $ npm install --save svelte-tel-input
15
+
16
+ npm install --save svelte-tel-input
19
17
  ```
18
+
19
+ ---
20
+
21
+ ## Dependencies
22
+
23
+ [libphonenumber-js](https://gitlab.com/catamphetamine/libphonenumber-js)
@@ -0,0 +1,2 @@
1
+ declare const rawCountries: (string | number | string[])[][];
2
+ export default rawCountries;
@@ -15,7 +15,6 @@
15
15
  // Sub-regions:
16
16
  // ['north-america', 'south-america', 'central-america', 'carribean',
17
17
  // 'eu-union', 'ex-ussr', 'ex-yugos', 'baltic', 'middle-east', 'north-africa']
18
-
19
18
  const rawCountries = [
20
19
  ['Afghanistan', ['asia'], 'af', '93'],
21
20
  ['Albania', ['europe'], 'al', '355'],
@@ -601,5 +600,4 @@ const rawCountries = [
601
600
  ['Zambia', ['africa'], 'zm', '260'],
602
601
  ['Zimbabwe', ['africa'], 'zw', '263']
603
602
  ];
604
-
605
603
  export default rawCountries;
@@ -0,0 +1,2 @@
1
+ declare const rawTerritories: (string | number | string[])[][];
2
+ export default rawTerritories;
@@ -15,7 +15,6 @@
15
15
  // Sub-regions:
16
16
  // ['north-america', 'south-america', 'central-america', 'carribean',
17
17
  // 'eu-union', 'ex-ussr', 'ex-yugos', 'baltic', 'middle-east', 'north-africa']
18
-
19
18
  const rawTerritories = [
20
19
  ['American Samoa', ['oceania'], 'as', '1684'],
21
20
  ['Anguilla', ['america', 'carribean'], 'ai', '1264'],
@@ -42,5 +41,4 @@ const rawTerritories = [
42
41
  ['U.S. Virgin Islands', ['america', 'carribean'], 'vi', '1340'],
43
42
  ['Wallis and Futuna', ['oceania'], 'wf', '681']
44
43
  ];
45
-
46
44
  export default rawTerritories;
@@ -0,0 +1,23 @@
1
+ <script >import { parsePhoneNumberFromString } from 'libphonenumber-js';
2
+ let telInputNumber;
3
+ // const phoneNumber = parsePhoneNumber(' 8 (800) 555-35-35 ', 'RU');
4
+ // if (phoneNumber) {
5
+ // phoneNumber.country === 'RU';
6
+ // phoneNumber.number === '+78005553535';
7
+ // phoneNumber.isValid() === true;
8
+ // // Note: `.getType()` requires `/max` metadata: see below for an explanation.
9
+ // phoneNumber.getType() === 'TOLL_FREE';
10
+ // }
11
+ // const parse = parsePhoneNumber(telInputNumber);
12
+ const handleInput = (event) => {
13
+ let inputVal = event.target.value;
14
+ console.log(parsePhoneNumberFromString(inputVal));
15
+ };
16
+ $: console.log(telInputNumber);
17
+ </script>
18
+
19
+ <input
20
+ class="px-4 py-1 text-gray-900 rounded-full focus:outline-none"
21
+ type="tel"
22
+ on:input={handleInput}
23
+ />
@@ -0,0 +1,14 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {};
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {};
8
+ };
9
+ export declare type SvelteTelInputProps = typeof __propDef.props;
10
+ export declare type SvelteTelInputEvents = typeof __propDef.events;
11
+ export declare type SvelteTelInputSlots = typeof __propDef.slots;
12
+ export default class SvelteTelInput extends SvelteComponentTyped<SvelteTelInputProps, SvelteTelInputEvents, SvelteTelInputSlots> {
13
+ }
14
+ export {};
@@ -1,6 +1,5 @@
1
- <script lang="ts">
2
- import rawCountries from '$lib/assets/countries';
3
- let selectedCountry: string;
1
+ <script >import rawCountries from '../../assets/countries';
2
+ let selectedCountry;
4
3
  </script>
5
4
 
6
5
  <select
@@ -0,0 +1,14 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {};
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {};
8
+ };
9
+ export declare type CountrySelectProps = typeof __propDef.props;
10
+ export declare type CountrySelectEvents = typeof __propDef.events;
11
+ export declare type CountrySelectSlots = typeof __propDef.slots;
12
+ export default class CountrySelect extends SvelteComponentTyped<CountrySelectProps, CountrySelectEvents, CountrySelectSlots> {
13
+ }
14
+ export {};
@@ -1,6 +1,5 @@
1
- <script lang="ts">
2
- import rawRegions from '$lib/assets/regions';
3
- let selectedRegion: string;
1
+ <script >import rawRegions from '../../assets/regions';
2
+ let selectedRegion;
4
3
  </script>
5
4
 
6
5
  <select
@@ -0,0 +1,14 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {};
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {};
8
+ };
9
+ export declare type RegionSelectProps = typeof __propDef.props;
10
+ export declare type RegionSelectEvents = typeof __propDef.events;
11
+ export declare type RegionSelectSlots = typeof __propDef.slots;
12
+ export default class RegionSelect extends SvelteComponentTyped<RegionSelectProps, RegionSelectEvents, RegionSelectSlots> {
13
+ }
14
+ export {};
File without changes
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default as LazyLoad } from './components/LazyLoad/LazyLoad.svelte';
2
+ export { default as PhoneInput } from './components/Input/SvelteTelInput.svelte';
@@ -0,0 +1,4 @@
1
+ export declare enum PhoneType {
2
+ FIXED_LINE = "FIXED_LINE",
3
+ MOBILE = "MOBILE"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var PhoneType;
2
+ (function (PhoneType) {
3
+ PhoneType["FIXED_LINE"] = "FIXED_LINE";
4
+ PhoneType["MOBILE"] = "MOBILE";
5
+ })(PhoneType || (PhoneType = {}));
@@ -0,0 +1 @@
1
+ export * from './PhoneType.enum';
File without changes
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { SvelteComponentTyped } from 'svelte';
2
+ export declare type DynamicSvelteComponent = {
3
+ component: typeof SvelteComponentTyped;
4
+ props?: Record<string, any>;
5
+ slot?: any;
6
+ click?: any;
7
+ input?: any;
8
+ };
@@ -0,0 +1,16 @@
1
+ export {};
2
+ // declare const __propDef: {
3
+ // props: {};
4
+ // slots: {};
5
+ // events: {
6
+ // [evt: string]: CustomEvent<any>;
7
+ // };
8
+ // };
9
+ // export declare type DynamicSvelteComponentProps = typeof __propDef.props;
10
+ // export declare type DynamicSvelteComponentEvents = typeof __propDef.events;
11
+ // export declare type DynamicSvelteComponentSlots = typeof __propDef.slots;
12
+ // export default class DynamicSvelteComponent extends SvelteComponentTyped<
13
+ // DynamicSvelteComponentProps,
14
+ // DynamicSvelteComponentEvents,
15
+ // DynamicSvelteComponentSlots
16
+ // > {}
@@ -1,3 +1,2 @@
1
1
  import type { SelectObject } from '../interfaces/Select.interface';
2
-
3
- export type SelectType = SelectObject | (string | number);
2
+ export declare type SelectType = SelectObject | (string | number);
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,154 +1,161 @@
1
1
  {
2
- "name": "svelte-tel-input",
3
- "description": "svelte-tel-input",
4
- "version": "0.2.0",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/gyurielf/svelte-tel-input.git"
2
+ "name": "svelte-tel-input",
3
+ "description": "svelte-tel-input",
4
+ "version": "0.4.1",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/gyurielf/svelte-tel-input.git"
8
+ },
9
+ "homepage": "https://github.com/gyurielf/svelte-tel-input#readme",
10
+ "keywords": [
11
+ "svelte",
12
+ "tel input",
13
+ "phone",
14
+ "phone input",
15
+ "intl",
16
+ "intl tel input"
17
+ ],
18
+ "engines": {
19
+ "npm": ">= 7",
20
+ "yarn": "please-use-npm",
21
+ "node": ">= 16"
22
+ },
23
+ "dependencies": {
24
+ "libphonenumber-js": "^1.9.44"
25
+ },
26
+ "devDependencies": {
27
+ "@babel/core": "^7.16.10",
28
+ "@babel/preset-env": "^7.16.10",
29
+ "@changesets/cli": "^2.19.0",
30
+ "@changesets/get-github-info": "^0.5.0",
31
+ "@changesets/types": "^4.0.2",
32
+ "@sveltejs/adapter-static": "^1.0.0-next.26",
33
+ "@sveltejs/kit": "^1.0.0-next.234",
34
+ "@testing-library/jest-dom": "^5.16.1",
35
+ "@testing-library/svelte": "^3.0.3",
36
+ "@types/jest": "^27.4.0",
37
+ "@typescript-eslint/eslint-plugin": "^5.10.0",
38
+ "@typescript-eslint/parser": "^5.10.0",
39
+ "autoprefixer": "^10.4.2",
40
+ "babel-jest": "^27.4.6",
41
+ "babel-loader": "^8.2.3",
42
+ "commitizen": "^4.2.4",
43
+ "cssnano": "^5.0.15",
44
+ "dotenv": "^14.2.0",
45
+ "eslint": "^8.7.0",
46
+ "eslint-config-prettier": "^8.3.0",
47
+ "eslint-plugin-jest": "^25.7.0",
48
+ "eslint-plugin-svelte3": "^3.4.0",
49
+ "husky": "^7.0.4",
50
+ "jest": "^27.4.7",
51
+ "jest-matchmedia-mock": "^1.1.0",
52
+ "micromatch": "^4.0.4",
53
+ "postcss": "^8.4.5",
54
+ "postcss-load-config": "^3.1.1",
55
+ "prettier": "^2.5.1",
56
+ "prettier-plugin-svelte": "^2.6.0",
57
+ "standard-changelog": "^2.0.27",
58
+ "standard-version": "^9.3.2",
59
+ "svelte": "^3.46.2",
60
+ "svelte-check": "^2.3.0",
61
+ "svelte-inview": "^2.1.1",
62
+ "svelte-jester": "^2.1.5",
63
+ "svelte-loader": "^3.1.2",
64
+ "svelte-preprocess": "^4.10.2",
65
+ "svelte2tsx": "^0.4.14",
66
+ "tailwindcss": "^3.0.15",
67
+ "ts-jest": "^27.1.3",
68
+ "tsconfig-paths-webpack-plugin": "^3.5.2",
69
+ "tslib": "^2.3.1",
70
+ "typescript": "^4.5.4"
71
+ },
72
+ "standard-version": {
73
+ "skip": {
74
+ "tag": true
8
75
  },
9
- "homepage": "https://github.com/gyurielf/svelte-tel-input#readme",
10
- "engines": {
11
- "npm": ">= 7",
12
- "yarn": "please-use-npm",
13
- "node": ">= 16"
14
- },
15
- "scripts": {
16
- "build": "svelte-kit build",
17
- "dev": "svelte-kit dev",
18
- "eslint": "eslint --ext .js,.ts,.svelte .",
19
- "eslint:fix": "eslint --fix",
20
- "lint": "npm run prettier:check && npm run eslint && npm run ts && npm run svelte-check",
21
- "lint:fix": "npm run eslint:fix && npm run prettier:fix",
22
- "package": "svelte-kit package",
23
- "prettier": "prettier",
24
- "prettier:check": "prettier --check --plugin-search-dir=. .",
25
- "prettier:fix": "prettier --write --plugin-search-dir=. .",
26
- "prepare": "husky install",
27
- "preview": "svelte-kit preview",
28
- "release": "npm publish",
29
- "svelte-check": "svelte-check --ignore 'dist,build,coverage,.svelte-kit,package' --threshold warning --fail-on-warnings",
30
- "test": "jest",
31
- "test:watch": "jest --watch",
32
- "ts": "tsc --noEmit",
33
- "changeset:version": "changeset version && npm i --lockfile-only"
34
- },
35
- "dependencies": {
36
- "libphonenumber-js": "^1.9.44"
37
- },
38
- "devDependencies": {
39
- "@babel/core": "^7.16.7",
40
- "@babel/preset-env": "^7.16.8",
41
- "@changesets/cli": "^2.19.0",
42
- "@changesets/get-github-info": "^0.5.0",
43
- "@changesets/types": "^4.0.2",
44
- "@sveltejs/adapter-static": "^1.0.0-next.26",
45
- "@sveltejs/kit": "^1.0.0-next.229",
46
- "@testing-library/jest-dom": "^5.16.1",
47
- "@testing-library/svelte": "^3.0.3",
48
- "@types/jest": "^27.4.0",
49
- "@typescript-eslint/eslint-plugin": "^5.9.1",
50
- "@typescript-eslint/parser": "^5.9.1",
51
- "autoprefixer": "^10.4.2",
52
- "babel-jest": "^27.4.6",
53
- "babel-loader": "^8.2.3",
54
- "commitizen": "^4.2.4",
55
- "cssnano": "^5.0.15",
56
- "dotenv": "^12.0.3",
57
- "eslint": "^8.6.0",
58
- "eslint-config-prettier": "^8.3.0",
59
- "eslint-plugin-jest": "^25.7.0",
60
- "eslint-plugin-svelte3": "^3.4.0",
61
- "husky": "^7.0.4",
62
- "jest": "^27.4.7",
63
- "jest-matchmedia-mock": "^1.1.0",
64
- "micromatch": "^4.0.4",
65
- "postcss": "^8.4.5",
66
- "postcss-load-config": "^3.1.1",
67
- "prettier": "^2.5.1",
68
- "prettier-plugin-svelte": "^2.6.0",
69
- "standard-changelog": "^2.0.27",
70
- "standard-version": "^9.3.2",
71
- "svelte": "^3.46.2",
72
- "svelte-check": "^2.3.0",
73
- "svelte-inview": "^2.1.1",
74
- "svelte-jester": "^2.1.5",
75
- "svelte-loader": "^3.1.2",
76
- "svelte-preprocess": "^4.10.1",
77
- "svelte2tsx": "^0.4.14",
78
- "tailwindcss": "^3.0.15",
79
- "ts-jest": "^27.1.3",
80
- "tsconfig-paths-webpack-plugin": "^3.5.2",
81
- "tslib": "^2.3.1",
82
- "typescript": "^4.5.4"
83
- },
84
- "standard-version": {
85
- "skip": {
86
- "tag": true
87
- },
88
- "types": [
89
- {
90
- "type": "chore",
91
- "section": "Others (chore)",
92
- "hidden": false
93
- },
94
- {
95
- "type": "revert",
96
- "section": "Reverts",
97
- "hidden": false
98
- },
99
- {
100
- "type": "feat",
101
- "section": "Features",
102
- "hidden": false
103
- },
104
- {
105
- "type": "fix",
106
- "section": "Bug Fixes",
107
- "hidden": false
108
- },
109
- {
110
- "type": "improvement",
111
- "section": "Feature Improvements",
112
- "hidden": false
113
- },
114
- {
115
- "type": "docs",
116
- "section": "Docs",
117
- "hidden": false
118
- },
119
- {
120
- "type": "style",
121
- "section": "Styling",
122
- "hidden": false
123
- },
124
- {
125
- "type": "refactor",
126
- "section": "Code Refactoring",
127
- "hidden": false
128
- },
129
- {
130
- "type": "perf",
131
- "section": "Performance Improvements",
132
- "hidden": false
133
- },
134
- {
135
- "type": "test",
136
- "section": "Tests",
137
- "hidden": false
138
- },
139
- {
140
- "type": "build",
141
- "section": "Build System",
142
- "hidden": false
143
- },
144
- {
145
- "type": "ci",
146
- "section": "CI",
147
- "hidden": false
148
- }
149
- ]
150
- },
151
- "svelte": ".",
152
- "type": "module",
153
- "license": "UNLICENSED"
154
- }
76
+ "types": [
77
+ {
78
+ "type": "chore",
79
+ "section": "Others (chore)",
80
+ "hidden": false
81
+ },
82
+ {
83
+ "type": "revert",
84
+ "section": "Reverts",
85
+ "hidden": false
86
+ },
87
+ {
88
+ "type": "feat",
89
+ "section": "Features",
90
+ "hidden": false
91
+ },
92
+ {
93
+ "type": "fix",
94
+ "section": "Bug Fixes",
95
+ "hidden": false
96
+ },
97
+ {
98
+ "type": "improvement",
99
+ "section": "Feature Improvements",
100
+ "hidden": false
101
+ },
102
+ {
103
+ "type": "docs",
104
+ "section": "Docs",
105
+ "hidden": false
106
+ },
107
+ {
108
+ "type": "style",
109
+ "section": "Styling",
110
+ "hidden": false
111
+ },
112
+ {
113
+ "type": "refactor",
114
+ "section": "Code Refactoring",
115
+ "hidden": false
116
+ },
117
+ {
118
+ "type": "perf",
119
+ "section": "Performance Improvements",
120
+ "hidden": false
121
+ },
122
+ {
123
+ "type": "test",
124
+ "section": "Tests",
125
+ "hidden": false
126
+ },
127
+ {
128
+ "type": "build",
129
+ "section": "Build System",
130
+ "hidden": false
131
+ },
132
+ {
133
+ "type": "ci",
134
+ "section": "CI",
135
+ "hidden": false
136
+ }
137
+ ]
138
+ },
139
+ "svelte": ".",
140
+ "type": "module",
141
+ "license": "UNLICENSED",
142
+ "exports": {
143
+ "./package.json": "./package.json",
144
+ "./assets/countries": "./assets/countries.js",
145
+ "./assets/regions": "./assets/regions.js",
146
+ "./components/Input/SvelteTelInput.svelte": "./components/Input/SvelteTelInput.svelte",
147
+ "./components/Select/CountrySelect.svelte": "./components/Select/CountrySelect.svelte",
148
+ "./components/Select/RegionSelect.svelte": "./components/Select/RegionSelect.svelte",
149
+ ".": "./index.js",
150
+ "./models/enums/PhoneType.enum": "./models/enums/PhoneType.enum.js",
151
+ "./models/enums": "./models/enums/index.js",
152
+ "./models": "./models/index.js",
153
+ "./models/interfaces/Select.interface": "./models/interfaces/Select.interface.js",
154
+ "./models/types/DynamicSvelteComponent.type": "./models/types/DynamicSvelteComponent.type.js",
155
+ "./models/types/Select.type": "./models/types/Select.type.js",
156
+ "./stores": "./stores/index.js",
157
+ "./utils/directives/clickOutsideAction": "./utils/directives/clickOutsideAction.js",
158
+ "./utils/simulator": "./utils/simulator.js",
159
+ "./utils/typeCheck": "./utils/typeCheck.js"
160
+ }
161
+ }
@@ -0,0 +1,11 @@
1
+ export declare const booleanStore: (initial: boolean) => {
2
+ isOpen: import("svelte/store").Writable<boolean>;
3
+ open: () => void;
4
+ close: () => void;
5
+ toggle: () => void;
6
+ };
7
+ export declare const statefulSwap: (initialState: boolean | null) => {
8
+ transitionState: import("svelte/store").Writable<boolean | null>;
9
+ transitionTo: (newState: boolean | null) => void;
10
+ onOutro: () => void;
11
+ };