@synergy-design-system/components 0.1.0 → 1.0.0-main.10

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 (114) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +150 -1
  3. package/dist/chunks/{chunk.Y5USHY74.js → chunk.5FQRRIZP.js} +4 -3
  4. package/dist/chunks/chunk.5FQRRIZP.js.map +7 -0
  5. package/dist/chunks/{chunk.2DA7CIOQ.js → chunk.5OIEI73E.js} +3 -2
  6. package/dist/chunks/chunk.5OIEI73E.js.map +7 -0
  7. package/dist/chunks/{chunk.7XI5LKCC.js → chunk.6C4JXZZN.js} +2 -1
  8. package/dist/chunks/chunk.6C4JXZZN.js.map +7 -0
  9. package/dist/chunks/{chunk.MAS2SHYD.js → chunk.A3SKDWCT.js} +1 -0
  10. package/dist/chunks/chunk.A3SKDWCT.js.map +7 -0
  11. package/dist/chunks/{chunk.SVIWEI6P.js → chunk.BREU4ILT.js} +2 -1
  12. package/dist/chunks/chunk.BREU4ILT.js.map +7 -0
  13. package/dist/chunks/{chunk.2CFEYJLE.js → chunk.C7624ITA.js} +1 -0
  14. package/dist/chunks/chunk.C7624ITA.js.map +7 -0
  15. package/dist/chunks/{chunk.PM7NIY3M.js → chunk.DJOAQ4JU.js} +1 -0
  16. package/dist/chunks/chunk.DJOAQ4JU.js.map +7 -0
  17. package/dist/chunks/{chunk.Q5SD5LHE.js → chunk.GHPQ7ZMD.js} +11 -242
  18. package/dist/chunks/chunk.GHPQ7ZMD.js.map +7 -0
  19. package/dist/chunks/chunk.IFBY43YE.js +138 -0
  20. package/dist/chunks/chunk.IFBY43YE.js.map +7 -0
  21. package/dist/chunks/{chunk.HQUF2ZAX.js → chunk.LE4ARJTE.js} +3 -2
  22. package/dist/chunks/chunk.LE4ARJTE.js.map +7 -0
  23. package/dist/chunks/{chunk.QPNUJNT5.js → chunk.N2I6HVX3.js} +2 -1
  24. package/dist/chunks/chunk.N2I6HVX3.js.map +7 -0
  25. package/dist/chunks/{chunk.KHU4AFPL.js → chunk.N7UUNTQC.js} +2 -1
  26. package/dist/chunks/chunk.N7UUNTQC.js.map +7 -0
  27. package/dist/chunks/{chunk.4NMNW5OM.js → chunk.O7USYXBT.js} +1 -0
  28. package/dist/chunks/chunk.O7USYXBT.js.map +7 -0
  29. package/dist/chunks/{chunk.NBKDLFEY.js → chunk.OEWBEV4Z.js} +7 -6
  30. package/dist/chunks/chunk.OEWBEV4Z.js.map +7 -0
  31. package/dist/chunks/{chunk.HSF5YXAS.js → chunk.OLZ3GIFL.js} +19 -35
  32. package/dist/chunks/chunk.OLZ3GIFL.js.map +7 -0
  33. package/dist/chunks/chunk.R55DOPNK.js +12 -0
  34. package/dist/chunks/chunk.R55DOPNK.js.map +7 -0
  35. package/dist/chunks/{chunk.2A3352EO.js → chunk.R6VNLE6N.js} +1 -0
  36. package/dist/chunks/chunk.R6VNLE6N.js.map +7 -0
  37. package/dist/chunks/{chunk.XVEDHRRP.js → chunk.RLGMLXIP.js} +20 -22
  38. package/dist/chunks/chunk.RLGMLXIP.js.map +7 -0
  39. package/dist/chunks/{chunk.VRTJZYIC.js → chunk.U7ZJ22QM.js} +1 -0
  40. package/dist/chunks/chunk.U7ZJ22QM.js.map +7 -0
  41. package/dist/chunks/chunk.W46CFM2R.js +90 -0
  42. package/dist/chunks/chunk.W46CFM2R.js.map +7 -0
  43. package/dist/chunks/{chunk.Z6AW3P62.js → chunk.WDCAHRYG.js} +4 -48
  44. package/dist/chunks/chunk.WDCAHRYG.js.map +7 -0
  45. package/dist/chunks/chunk.WTCUSH7V.js +42 -0
  46. package/dist/chunks/chunk.WTCUSH7V.js.map +7 -0
  47. package/dist/chunks/chunk.XGXFE6IF.js +49 -0
  48. package/dist/chunks/chunk.XGXFE6IF.js.map +7 -0
  49. package/dist/chunks/{chunk.O3LUPMYG.js → chunk.Y7DVVKVJ.js} +82 -18
  50. package/dist/chunks/chunk.Y7DVVKVJ.js.map +7 -0
  51. package/dist/components/button/button.component.d.ts +1 -10
  52. package/dist/components/button/button.component.js +19 -16
  53. package/dist/components/button/button.component.js.map +7 -0
  54. package/dist/components/button/button.custom.styles.d.ts +2 -0
  55. package/dist/components/button/button.custom.styles.js +8 -0
  56. package/dist/components/button/button.custom.styles.js.map +7 -0
  57. package/dist/components/button/button.js +21 -21
  58. package/dist/components/button/button.js.map +7 -0
  59. package/dist/components/button/button.styles.js +5 -3
  60. package/dist/components/button/button.styles.js.map +7 -0
  61. package/dist/components/checkbox/checkbox.custom.styles.d.ts +2 -0
  62. package/dist/components/checkbox/checkbox.custom.styles.js +11 -0
  63. package/dist/components/checkbox/checkbox.custom.styles.js.map +7 -0
  64. package/dist/components/icon/icon.component.js +10 -9
  65. package/dist/components/icon/icon.component.js.map +7 -0
  66. package/dist/components/icon/icon.js +10 -9
  67. package/dist/components/icon/icon.js.map +7 -0
  68. package/dist/components/icon/icon.styles.js +4 -3
  69. package/dist/components/icon/icon.styles.js.map +7 -0
  70. package/dist/components/icon/library.default.js +4 -3
  71. package/dist/components/icon/library.default.js.map +7 -0
  72. package/dist/components/icon/library.js +6 -5
  73. package/dist/components/icon/library.js.map +7 -0
  74. package/dist/components/icon/library.system.js +3 -2
  75. package/dist/components/icon/library.system.js.map +7 -0
  76. package/dist/components/input/input.component.d.ts +0 -4
  77. package/dist/components/input/input.component.js +17 -14
  78. package/dist/components/input/input.component.js.map +7 -0
  79. package/dist/components/input/input.custom.styles.d.ts +2 -0
  80. package/dist/components/input/input.custom.styles.js +8 -0
  81. package/dist/components/input/input.custom.styles.js.map +7 -0
  82. package/dist/components/input/input.js +18 -15
  83. package/dist/components/input/input.js.map +7 -0
  84. package/dist/components/input/input.styles.js +5 -3
  85. package/dist/components/input/input.styles.js.map +7 -0
  86. package/dist/components/spinner/spinner.component.js +8 -7
  87. package/dist/components/spinner/spinner.component.js.map +7 -0
  88. package/dist/components/spinner/spinner.styles.js +4 -3
  89. package/dist/components/spinner/spinner.styles.js.map +7 -0
  90. package/dist/components/textarea/textarea.custom.styles.d.ts +2 -0
  91. package/dist/components/textarea/textarea.custom.styles.js +11 -0
  92. package/dist/components/textarea/textarea.custom.styles.js.map +7 -0
  93. package/dist/custom-elements.json +11 -108
  94. package/dist/events/events.d.ts +8 -8
  95. package/dist/styles/form-control.custom.styles.d.ts +2 -0
  96. package/dist/synergy-autoloader.js +3 -2
  97. package/dist/synergy-autoloader.js.map +7 -0
  98. package/dist/synergy.d.ts +2 -0
  99. package/dist/synergy.js +34 -16
  100. package/dist/synergy.js.map +7 -0
  101. package/dist/translations/de.js +4 -3
  102. package/dist/translations/de.js.map +7 -0
  103. package/dist/translations/en.js +3 -2
  104. package/dist/translations/en.js.map +7 -0
  105. package/dist/utilities/base-path.js +3 -2
  106. package/dist/utilities/base-path.js.map +7 -0
  107. package/dist/utilities/form.d.ts +11 -0
  108. package/dist/utilities/form.js +11 -0
  109. package/dist/utilities/form.js.map +7 -0
  110. package/dist/utilities/localize.js +4 -3
  111. package/dist/utilities/localize.js.map +7 -0
  112. package/dist/vscode.html-custom-data.json +2 -31
  113. package/dist/web-types.json +4 -56
  114. package/package.json +73 -34
@@ -11,12 +11,8 @@
11
11
  "name": "variant",
12
12
  "description": "The button's theme variant.",
13
13
  "values": [
14
- { "name": "default" },
15
- { "name": "primary" },
16
- { "name": "success" },
17
- { "name": "neutral" },
18
- { "name": "warning" },
19
- { "name": "danger" },
14
+ { "name": "filled" },
15
+ { "name": "outline" },
20
16
  { "name": "text" }
21
17
  ]
22
18
  },
@@ -44,21 +40,6 @@
44
40
  "description": "Draws the button in a loading state.",
45
41
  "values": []
46
42
  },
47
- {
48
- "name": "outline",
49
- "description": "Draws an outlined button.",
50
- "values": []
51
- },
52
- {
53
- "name": "pill",
54
- "description": "Draws a pill-style button with rounded edges.",
55
- "values": []
56
- },
57
- {
58
- "name": "circle",
59
- "description": "Draws a circular icon button. When this attribute is present, the button expects a single `<syn-icon>` in the\ndefault slot.",
60
- "values": []
61
- },
62
43
  {
63
44
  "name": "type",
64
45
  "description": "The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n`<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.",
@@ -223,16 +204,6 @@
223
204
  { "name": "large" }
224
205
  ]
225
206
  },
226
- {
227
- "name": "filled",
228
- "description": "Draws a filled input.",
229
- "values": []
230
- },
231
- {
232
- "name": "pill",
233
- "description": "Draws a pill-style input with rounded edges.",
234
- "values": []
235
- },
236
207
  {
237
208
  "name": "label",
238
209
  "description": "The input's label. If you need to display HTML, use the `label` slot instead.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@synergy-design-system/components",
4
- "version": "0.1.0",
4
+ "version": "1.0.0-main.10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -16,8 +16,8 @@
16
16
  "name": "variant",
17
17
  "description": "The button's theme variant.",
18
18
  "value": {
19
- "type": "'default' | 'primary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text'",
20
- "default": "'default'"
19
+ "type": "'filled' | 'outline' | 'text'",
20
+ "default": "'filled'"
21
21
  }
22
22
  },
23
23
  {
@@ -43,21 +43,6 @@
43
43
  "description": "Draws the button in a loading state.",
44
44
  "value": { "type": "boolean", "default": "false" }
45
45
  },
46
- {
47
- "name": "outline",
48
- "description": "Draws an outlined button.",
49
- "value": { "type": "boolean", "default": "false" }
50
- },
51
- {
52
- "name": "pill",
53
- "description": "Draws a pill-style button with rounded edges.",
54
- "value": { "type": "boolean", "default": "false" }
55
- },
56
- {
57
- "name": "circle",
58
- "description": "Draws a circular icon button. When this attribute is present, the button expects a single `<syn-icon>` in the\ndefault slot.",
59
- "value": { "type": "boolean", "default": "false" }
60
- },
61
46
  {
62
47
  "name": "type",
63
48
  "description": "The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n`<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.",
@@ -162,9 +147,7 @@
162
147
  {
163
148
  "name": "variant",
164
149
  "description": "The button's theme variant.",
165
- "value": {
166
- "type": "'default' | 'primary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text'"
167
- }
150
+ "value": { "type": "'filled' | 'outline' | 'text'" }
168
151
  },
169
152
  {
170
153
  "name": "size",
@@ -186,21 +169,6 @@
186
169
  "description": "Draws the button in a loading state.",
187
170
  "value": { "type": "boolean" }
188
171
  },
189
- {
190
- "name": "outline",
191
- "description": "Draws an outlined button.",
192
- "value": { "type": "boolean" }
193
- },
194
- {
195
- "name": "pill",
196
- "description": "Draws a pill-style button with rounded edges.",
197
- "value": { "type": "boolean" }
198
- },
199
- {
200
- "name": "circle",
201
- "description": "Draws a circular icon button. When this attribute is present, the button expects a single `<syn-icon>` in the\ndefault slot.",
202
- "value": { "type": "boolean" }
203
- },
204
172
  {
205
173
  "name": "type",
206
174
  "description": "The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n`<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.",
@@ -390,16 +358,6 @@
390
358
  "default": "'medium'"
391
359
  }
392
360
  },
393
- {
394
- "name": "filled",
395
- "description": "Draws a filled input.",
396
- "value": { "type": "boolean", "default": "false" }
397
- },
398
- {
399
- "name": "pill",
400
- "description": "Draws a pill-style input with rounded edges.",
401
- "value": { "type": "boolean", "default": "false" }
402
- },
403
361
  {
404
362
  "name": "label",
405
363
  "description": "The input's label. If you need to display HTML, use the `label` slot instead.",
@@ -608,16 +566,6 @@
608
566
  "description": "The input's size.",
609
567
  "value": { "type": "'small' | 'medium' | 'large'" }
610
568
  },
611
- {
612
- "name": "filled",
613
- "description": "Draws a filled input.",
614
- "value": { "type": "boolean" }
615
- },
616
- {
617
- "name": "pill",
618
- "description": "Draws a pill-style input with rounded edges.",
619
- "value": { "type": "boolean" }
620
- },
621
569
  {
622
570
  "name": "label",
623
571
  "description": "The input's label. If you need to display HTML, use the `label` slot instead.",
package/package.json CHANGED
@@ -1,51 +1,55 @@
1
1
  {
2
+ "author": {
3
+ "name": "SICK Global UX Foundation",
4
+ "url": "https://www.sick.com"
5
+ },
2
6
  "name": "@synergy-design-system/components",
3
- "version": "0.1.0",
7
+ "version": "1.0.0-main.10",
4
8
  "description": "",
5
9
  "repository": {
6
10
  "type": "git",
7
- "url": "https://github.com/mariohamann/custom-shoelace"
11
+ "url": "https://github.com/SickDesignSystem/synergy.git",
12
+ "directory": "packages/components"
8
13
  },
9
14
  "exports": {
10
15
  ".": {
11
16
  "types": "./dist/synergy.d.ts",
12
17
  "import": "./dist/synergy.js"
13
18
  },
14
- "./dist/custom-elements.json": "./dist/custom-elements.json",
15
- "./dist/synergy.js": "./dist/synergy.js",
16
- "./dist/synergy-autoloader.js": "./dist/synergy-autoloader.js",
17
- "./dist/components/*": "./dist/components/*",
18
- "./dist/utilities/*": "./dist/utilities/*",
19
- "./dist/translations/*": "./dist/translations/*"
19
+ "./custom-elements.json": "./dist/custom-elements.json",
20
+ "./synergy.js": "./dist/synergy.js",
21
+ "./synergy-autoloader.js": "./dist/synergy-autoloader.js",
22
+ "./components/*": "./dist/components/*",
23
+ "./utilities/*": "./dist/utilities/*",
24
+ "./translations/*": "./dist/translations/*"
20
25
  },
21
- "files": ["dist"],
22
- "scripts": {
23
- "build": "node scripts/build.js",
24
- "test": "web-test-runner --group default",
25
- "vendor": "node scripts/vendorism.js",
26
- "vendor.get": "node scripts/vendorism.js -g",
27
- "vendor.set": "node scripts/vendorism.js -s",
28
- "vendor.eject": "node scripts/vendorism.js -e",
29
- "lint:css": "stylelint \"src/**/*.{css,js,ts}\"",
30
- "lint:js": "eslint src",
31
- "lint": "pnpm run /^lint:.*/"
32
- },
33
- "author": "",
26
+ "files": [
27
+ "dist"
28
+ ],
34
29
  "type": "module",
35
- "homepage": "",
36
- "keywords": [],
30
+ "types": "./dist/synergy.d.ts",
31
+ "homepage": "https://github.com/SickDesignSystem/synergy/tree/main/packages/components",
32
+ "keywords": [
33
+ "Web Components",
34
+ "LIT Components",
35
+ "Design System",
36
+ "SDS",
37
+ "Synergy Design System",
38
+ "SICK",
39
+ "SICK Design System"
40
+ ],
37
41
  "license": "ISC",
38
42
  "devDependencies": {
39
43
  "@custom-elements-manifest/analyzer": "^0.8.4",
44
+ "@lit/react": "^1.0.0",
40
45
  "@open-wc/testing": "^3.2.0",
41
46
  "@playwright/test": "^1.39.0",
42
47
  "@semantic-release/changelog": "^6.0.3",
48
+ "@semantic-release/exec": "^6.0.3",
43
49
  "@semantic-release/git": "^10.0.1",
44
- "@shoelace-style/animations": "^1.1.0",
45
- "@shoelace-style/localize": "^3.1.2",
46
- "@synergy-design-system/eslint-config-syn": "workspace:0.1",
47
- "@synergy-design-system/stylelint-config-syn": "workspace:0.1",
48
50
  "@types/mocha": "^10.0.2",
51
+ "@typescript-eslint/eslint-plugin": "^6.9.0",
52
+ "@typescript-eslint/parser": "^6.9.0",
49
53
  "@web/dev-server-esbuild": "^0.4.1",
50
54
  "@web/test-runner": "^0.17.2",
51
55
  "@web/test-runner-commands": "^0.8.1",
@@ -59,16 +63,20 @@
59
63
  "esbuild": "^0.19.4",
60
64
  "esbuild-plugin-replace": "^1.4.0",
61
65
  "eslint": "^8.47.0",
66
+ "eslint-config-airbnb": "^19.0.4",
67
+ "eslint-config-airbnb-typescript": "^17.1.0",
68
+ "eslint-plugin-import": "^2.28.1",
62
69
  "eslint-plugin-lit": "^1.9.1",
63
70
  "eslint-plugin-lit-a11y": "^4.1.0",
64
71
  "eslint-plugin-wc": "^2.0.4",
65
72
  "globby": "^13.2.2",
66
73
  "jsdom": "^22.1.0",
74
+ "ng-packagr": "^17.0.0",
67
75
  "ora": "^7.0.1",
68
76
  "pascal-case": "^4.0.0",
69
77
  "prettier": "^3.0.3",
70
78
  "remark-parse": "^11.0.0",
71
- "semantic-release": "^22.0.5",
79
+ "semantic-release": "^19.0.5",
72
80
  "semantic-release-monorepo": "^7.0.5",
73
81
  "sinon": "^16.1.0",
74
82
  "stylelint": "^15.10.3",
@@ -76,7 +84,10 @@
76
84
  "unified": "^11.0.3",
77
85
  "unist-util-visit": "^5.0.0",
78
86
  "user-agent-data-types": "^0.4.2",
79
- "vendorism": "github:mariohamann/vendorism"
87
+ "vendorism": "github:mariohamann/vendorism",
88
+ "@synergy-design-system/eslint-config-syn": "0.1.0",
89
+ "@synergy-design-system/stylelint-config-syn": "0.1.0",
90
+ "@synergy-design-system/tokens": "1.0.0-main.8"
80
91
  },
81
92
  "release": {
82
93
  "branches": [
@@ -92,7 +103,8 @@
92
103
  {
93
104
  "name": "alpha",
94
105
  "prerelease": true
95
- }
106
+ },
107
+ "release-fallback"
96
108
  ],
97
109
  "plugins": [
98
110
  "@semantic-release/commit-analyzer",
@@ -106,14 +118,23 @@
106
118
  [
107
119
  "@semantic-release/npm",
108
120
  {
109
- "npmPublish": true
121
+ "npmPublish": false
122
+ }
123
+ ],
124
+ [
125
+ "@semantic-release/exec",
126
+ {
127
+ "prepareCmd": "pnpm build && pnpm release.angular && pnpm release.react"
110
128
  }
111
129
  ],
112
130
  [
113
131
  "@semantic-release/git",
114
132
  {
115
133
  "message": "chore(release/components): ${nextRelease.version} [skip actions]\n\n${nextRelease.notes}",
116
- "assets": ["CHANGELOG.md", "package.json"]
134
+ "assets": [
135
+ "CHANGELOG.md",
136
+ "package.json"
137
+ ]
117
138
  }
118
139
  ],
119
140
  [
@@ -125,7 +146,25 @@
125
146
  ]
126
147
  },
127
148
  "dependencies": {
149
+ "@floating-ui/dom": "^1.5.3",
150
+ "@shoelace-style/animations": "^1.1.0",
151
+ "@shoelace-style/localize": "^3.1.2",
152
+ "composed-offset-position": "^0.0.4",
128
153
  "lit": "^3.0.0"
129
154
  },
130
- "web-types": "./dist/web-types.json"
131
- }
155
+ "web-types": "./dist/web-types.json",
156
+ "scripts": {
157
+ "build": "node scripts/build.js",
158
+ "test": "web-test-runner --group default",
159
+ "vendor": "node scripts/vendorism.js",
160
+ "vendor.get": "node scripts/vendorism.js -g",
161
+ "vendor.set": "node scripts/vendorism.js -s",
162
+ "vendor.eject": "node scripts/vendorism.js -e",
163
+ "lint:css": "stylelint \"src/**/*.{css,js,ts}\"",
164
+ "lint:js": "eslint src",
165
+ "lint": "pnpm run /^lint:.*/",
166
+ "release": "semantic-release --tagFormat 'components/${version}' -e semantic-release-monorepo",
167
+ "release.angular": "git add ../angular && git commit -m \"chore(release/angular) via component release [skip actions]\"",
168
+ "release.react": "git add ../react && git commit -m \"chore(release/react) via component release [skip actions]\""
169
+ }
170
+ }