@progressive-development/pd-contact 0.1.68 → 0.5.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.
- package/dist/index.js +10 -0
- package/dist/locales/be.js +20 -0
- package/dist/locales/de.js +20 -0
- package/dist/locales/en.js +20 -0
- package/dist/node_modules/@progressive-development/pd-forms/pd-checkbox.js +2 -0
- package/dist/node_modules/@progressive-development/pd-forms/pd-form-container.js +2 -0
- package/dist/node_modules/@progressive-development/pd-forms/pd-form-row.js +2 -0
- package/dist/node_modules/@progressive-development/pd-forms/pd-hover-box.js +2 -0
- package/dist/node_modules/@progressive-development/pd-forms/pd-input.js +2 -0
- package/dist/node_modules/@progressive-development/pd-forms/pd-radio-group.js +2 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/PdBaseInputElement.js +86 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/PdBaseUi.js +33 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/PdBaseUiInput.js +229 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/PdCheckbox.js +230 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/PdFormContainer.js +167 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/PdFormRow.js +92 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/PdHoverBox.js +108 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/PdInput.js +79 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/PdRadioGroup.js +72 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/shared-input-field-styles.js +152 -0
- package/dist/node_modules/@progressive-development/pd-forms/src/shared-input-styles.js +64 -0
- package/dist/node_modules/@progressive-development/pd-icon/pd-icon.js +4 -0
- package/dist/node_modules/@progressive-development/pd-icon/src/PdIcon.js +595 -0
- package/dist/node_modules/lit-html/directive.js +27 -0
- package/dist/node_modules/lit-html/directives/class-map.js +36 -0
- package/dist/node_modules/lit-html/lit-html.js +242 -0
- package/dist/pd-contact.js +2 -0
- package/dist/src/PdContact.js +616 -0
- package/package.json +46 -22
- package/.editorconfig +0 -29
- package/.storybook/main.js +0 -3
- package/.storybook/server.mjs +0 -8
- package/demo/index.html +0 -29
- package/index.js +0 -1
- package/pd-contact.js +0 -3
- package/src/PdContact.js +0 -618
- package/stories/index.stories.js +0 -78
- package/test/pd-contact.test.js +0 -32
- package/web-dev-server.config.mjs +0 -27
- package/web-test-runner.config.mjs +0 -41
package/package.json
CHANGED
|
@@ -1,45 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progressive-development/pd-contact",
|
|
3
|
-
"description": "Progressive Development Contact component",
|
|
4
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
3
|
+
"description": "Progressive Development Contact component",
|
|
5
4
|
"author": "PD Progressive Development",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"version": "0.5.0",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./dist/index.js",
|
|
11
|
+
"./pd-contact": "./dist/pd-contact.js",
|
|
12
|
+
"./locales/be": "./dist/locales/be.js",
|
|
13
|
+
"./locales/de": "./dist/locales/de.js",
|
|
14
|
+
"./locales/en": "./dist/locales/en.js"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/",
|
|
18
|
+
"package.json",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
9
22
|
"scripts": {
|
|
10
23
|
"analyze": "cem analyze --litelement",
|
|
11
|
-
"start": "
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
24
|
+
"start": "vite",
|
|
25
|
+
"build": "vite build",
|
|
26
|
+
"preview": "vite preview",
|
|
27
|
+
"lint": "eslint --ext .js,.html . --ignore-path .gitignore && prettier \"**/*.{js,html}\" --check --ignore-path .gitignore",
|
|
28
|
+
"format": "eslint --ext .js,.html . --fix --ignore-path .gitignore && prettier \"**/*.{js,html}\" --write --ignore-path .gitignore",
|
|
29
|
+
"test": "vitest run --coverage",
|
|
30
|
+
"test:watch": "vitest --watch",
|
|
31
|
+
"localizeExtract": "lit-localize extract",
|
|
32
|
+
"localizeBuild": "lit-localize build",
|
|
33
|
+
"storybook": "storybook dev -p 6006",
|
|
34
|
+
"build-storybook": "storybook build"
|
|
18
35
|
},
|
|
19
36
|
"dependencies": {
|
|
20
37
|
"@progressive-development/pd-forms": "^0.2.16",
|
|
21
|
-
"@progressive-development/pd-icon": "^0.1.
|
|
38
|
+
"@progressive-development/pd-icon": "^0.1.23",
|
|
22
39
|
"@progressive-development/pd-shared-styles": "^0.1.1",
|
|
23
|
-
"lit": "^2.
|
|
40
|
+
"lit": "^2.8.0",
|
|
41
|
+
"@lit/localize": "^0.11.4"
|
|
24
42
|
},
|
|
25
43
|
"devDependencies": {
|
|
26
44
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@web
|
|
45
|
+
"@lit/localize-tools": "^0.7.2",
|
|
46
|
+
"@storybook/addon-essentials": "^7.6.20",
|
|
47
|
+
"@storybook/addon-links": "^7.6.20",
|
|
48
|
+
"@storybook/blocks": "^7.5.3",
|
|
49
|
+
"@storybook/web-components": "^7.5.3",
|
|
50
|
+
"@storybook/web-components-vite": "^7.6.20",
|
|
32
51
|
"eslint": "^7.32.0",
|
|
33
|
-
"eslint-config-prettier": "^8.
|
|
52
|
+
"eslint-config-prettier": "^8.10.0",
|
|
53
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
34
54
|
"husky": "^4.3.8",
|
|
35
55
|
"lint-staged": "^10.5.4",
|
|
36
|
-
"prettier": "^2.
|
|
56
|
+
"prettier": "^2.8.8",
|
|
57
|
+
"storybook": "^7.6.20",
|
|
58
|
+
"vite": "^5.4.11",
|
|
59
|
+
"vitest": "^2.1.8"
|
|
37
60
|
},
|
|
38
61
|
"customElements": "custom-elements.json",
|
|
39
62
|
"eslintConfig": {
|
|
40
63
|
"extends": [
|
|
41
64
|
"@open-wc",
|
|
42
|
-
"prettier"
|
|
65
|
+
"prettier",
|
|
66
|
+
"plugin:storybook/recommended"
|
|
43
67
|
]
|
|
44
68
|
},
|
|
45
69
|
"prettier": {
|
package/.editorconfig
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# EditorConfig helps developers define and maintain consistent
|
|
2
|
-
# coding styles between different editors and IDEs
|
|
3
|
-
# editorconfig.org
|
|
4
|
-
|
|
5
|
-
root = true
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
[*]
|
|
9
|
-
|
|
10
|
-
# Change these settings to your own preference
|
|
11
|
-
indent_style = space
|
|
12
|
-
indent_size = 2
|
|
13
|
-
|
|
14
|
-
# We recommend you to keep these unchanged
|
|
15
|
-
end_of_line = lf
|
|
16
|
-
charset = utf-8
|
|
17
|
-
trim_trailing_whitespace = true
|
|
18
|
-
insert_final_newline = true
|
|
19
|
-
|
|
20
|
-
[*.md]
|
|
21
|
-
trim_trailing_whitespace = false
|
|
22
|
-
|
|
23
|
-
[*.json]
|
|
24
|
-
indent_size = 2
|
|
25
|
-
|
|
26
|
-
[*.{html,js,md}]
|
|
27
|
-
block_comment_start = /**
|
|
28
|
-
block_comment = *
|
|
29
|
-
block_comment_end = */
|
package/.storybook/main.js
DELETED
package/.storybook/server.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { storybookPlugin } from '@web/dev-server-storybook';
|
|
2
|
-
import baseConfig from '../web-dev-server.config.mjs';
|
|
3
|
-
|
|
4
|
-
export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
|
|
5
|
-
...baseConfig,
|
|
6
|
-
open: '/',
|
|
7
|
-
plugins: [storybookPlugin({ type: 'web-components' }), ...baseConfig.plugins],
|
|
8
|
-
});
|
package/demo/index.html
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en-GB">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<style>
|
|
6
|
-
body {
|
|
7
|
-
background: #fafafa;
|
|
8
|
-
}
|
|
9
|
-
</style>
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<div id="demo"></div>
|
|
13
|
-
|
|
14
|
-
<script type="module">
|
|
15
|
-
import { html, render } from 'lit';
|
|
16
|
-
import '../pd-contact.js';
|
|
17
|
-
|
|
18
|
-
const title = 'Hello owc World!';
|
|
19
|
-
render(
|
|
20
|
-
html`
|
|
21
|
-
<pd-contact .title=${title}>
|
|
22
|
-
some light-dom
|
|
23
|
-
</pd-contact>
|
|
24
|
-
`,
|
|
25
|
-
document.querySelector('#demo')
|
|
26
|
-
);
|
|
27
|
-
</script>
|
|
28
|
-
</body>
|
|
29
|
-
</html>
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PdContact } from './src/PdContact.js';
|
package/pd-contact.js
DELETED