@fluentui/web-components 3.0.0-alpha.1 → 3.0.0-alpha.3

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 (109) hide show
  1. package/.eslintrc.json +62 -0
  2. package/CHANGELOG.json +208 -8
  3. package/CHANGELOG.md +155 -97
  4. package/build/{clean.js → clean.cjs} +0 -0
  5. package/dist/dts/badge/badge.d.ts +49 -0
  6. package/dist/dts/badge/badge.definition.d.ts +11 -0
  7. package/dist/dts/badge/badge.options.d.ts +73 -0
  8. package/dist/dts/badge/badge.stories.d.ts +12 -0
  9. package/dist/dts/badge/badge.styles.d.ts +4 -0
  10. package/dist/dts/badge/badge.template.d.ts +9 -0
  11. package/dist/dts/badge/define.d.ts +1 -0
  12. package/dist/dts/badge/index.d.ts +5 -0
  13. package/dist/dts/counter-badge/counter-badge.d.ts +90 -0
  14. package/dist/dts/counter-badge/counter-badge.definition.d.ts +11 -0
  15. package/dist/dts/counter-badge/counter-badge.options.d.ts +69 -0
  16. package/dist/dts/counter-badge/counter-badge.stories.d.ts +14 -0
  17. package/dist/dts/counter-badge/counter-badge.styles.d.ts +4 -0
  18. package/dist/dts/counter-badge/counter-badge.template.d.ts +7 -0
  19. package/dist/dts/counter-badge/define.d.ts +1 -0
  20. package/dist/dts/counter-badge/index.d.ts +5 -0
  21. package/dist/dts/fluent-design-system.d.ts +5 -0
  22. package/dist/dts/index-rollup.d.ts +1 -1
  23. package/dist/dts/index.d.ts +6 -1
  24. package/dist/dts/progress-bar/define.d.ts +1 -0
  25. package/dist/dts/progress-bar/index.d.ts +5 -0
  26. package/dist/dts/progress-bar/progress-bar.d.ts +30 -0
  27. package/dist/dts/progress-bar/progress-bar.definition.d.ts +10 -0
  28. package/dist/dts/progress-bar/progress-bar.options.d.ts +41 -0
  29. package/dist/dts/progress-bar/progress-bar.stories.d.ts +9 -0
  30. package/dist/dts/progress-bar/progress-bar.styles.d.ts +4 -0
  31. package/dist/dts/progress-bar/progress-bar.template.d.ts +3 -0
  32. package/dist/dts/spinner/define.d.ts +1 -0
  33. package/dist/dts/spinner/index.d.ts +5 -0
  34. package/dist/dts/spinner/spinner.d.ts +25 -0
  35. package/dist/dts/spinner/spinner.definition.d.ts +11 -0
  36. package/dist/dts/spinner/spinner.options.d.ts +32 -0
  37. package/dist/dts/spinner/spinner.stories.d.ts +8 -0
  38. package/dist/dts/spinner/spinner.styles.d.ts +1 -0
  39. package/dist/dts/spinner/spinner.template.d.ts +3 -0
  40. package/dist/dts/styles/index.d.ts +1 -0
  41. package/dist/dts/styles/partials/badge.partials.d.ts +28 -0
  42. package/dist/dts/styles/partials/index.d.ts +1 -0
  43. package/dist/dts/text/define.d.ts +1 -0
  44. package/dist/dts/text/index.d.ts +5 -0
  45. package/dist/dts/text/text.d.ts +91 -0
  46. package/dist/dts/text/text.definition.d.ts +10 -0
  47. package/dist/dts/text/text.options.d.ts +67 -0
  48. package/dist/dts/text/text.stories.d.ts +8 -0
  49. package/dist/dts/text/text.styles.d.ts +4 -0
  50. package/dist/dts/text/text.template.d.ts +6 -0
  51. package/dist/dts/theme/index.d.ts +2 -2
  52. package/dist/esm/badge/badge.definition.js +18 -0
  53. package/dist/esm/badge/badge.js +42 -0
  54. package/dist/esm/badge/badge.options.js +45 -0
  55. package/dist/esm/badge/badge.stories.js +108 -0
  56. package/dist/esm/badge/badge.styles.js +29 -0
  57. package/dist/esm/badge/badge.template.js +14 -0
  58. package/dist/esm/badge/define.js +3 -0
  59. package/dist/esm/badge/index.js +5 -0
  60. package/dist/esm/counter-badge/counter-badge.definition.js +18 -0
  61. package/dist/esm/counter-badge/counter-badge.js +89 -0
  62. package/dist/esm/counter-badge/counter-badge.options.js +42 -0
  63. package/dist/esm/counter-badge/counter-badge.stories.js +102 -0
  64. package/dist/esm/counter-badge/counter-badge.styles.js +30 -0
  65. package/dist/esm/counter-badge/counter-badge.template.js +12 -0
  66. package/dist/esm/counter-badge/define.js +3 -0
  67. package/dist/esm/counter-badge/index.js +5 -0
  68. package/dist/esm/fluent-design-system.js +5 -0
  69. package/dist/esm/index-rollup.js +1 -1
  70. package/dist/esm/index.js +6 -1
  71. package/dist/esm/progress-bar/define.js +3 -0
  72. package/dist/esm/progress-bar/index.js +5 -0
  73. package/dist/esm/progress-bar/progress-bar.definition.js +17 -0
  74. package/dist/esm/progress-bar/progress-bar.js +18 -0
  75. package/dist/esm/progress-bar/progress-bar.options.js +25 -0
  76. package/dist/esm/progress-bar/progress-bar.stories.js +60 -0
  77. package/dist/esm/progress-bar/progress-bar.styles.js +155 -0
  78. package/dist/esm/progress-bar/progress-bar.template.js +5 -0
  79. package/dist/esm/spinner/define.js +3 -0
  80. package/dist/esm/spinner/index.js +5 -0
  81. package/dist/esm/spinner/spinner.definition.js +18 -0
  82. package/dist/esm/spinner/spinner.js +15 -0
  83. package/dist/esm/spinner/spinner.options.js +21 -0
  84. package/dist/esm/spinner/spinner.stories.js +45 -0
  85. package/dist/esm/spinner/spinner.styles.js +95 -0
  86. package/dist/esm/spinner/spinner.template.js +21 -0
  87. package/dist/esm/styles/index.js +1 -0
  88. package/dist/esm/styles/partials/badge.partials.js +272 -0
  89. package/dist/esm/styles/partials/index.js +1 -0
  90. package/dist/esm/text/define.js +3 -0
  91. package/dist/esm/text/index.js +5 -0
  92. package/dist/esm/text/text.definition.js +17 -0
  93. package/dist/esm/text/text.js +91 -0
  94. package/dist/esm/text/text.options.js +45 -0
  95. package/dist/esm/text/text.stories.js +111 -0
  96. package/dist/esm/text/text.styles.js +104 -0
  97. package/dist/esm/text/text.template.js +5 -0
  98. package/dist/esm/theme/index.js +2 -2
  99. package/dist/esm/theme/set-theme.js +1 -1
  100. package/dist/esm/theme/theme.stories.js +1 -1
  101. package/dist/fluent-web-components.api.json +14330 -8
  102. package/dist/tsdoc-metadata.json +1 -1
  103. package/dist/web-components.d.ts +1460 -1
  104. package/dist/web-components.js +5713 -2
  105. package/dist/web-components.min.js +273 -1
  106. package/docs/api-report.md +1471 -1
  107. package/package.json +48 -16
  108. package/rollup.config.js +5 -0
  109. package/karma.conf.js +0 -147
package/.eslintrc.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "root": true,
3
+ "parser": "@typescript-eslint/parser",
4
+ "plugins": ["@typescript-eslint", "import"],
5
+ "extends": [
6
+ "eslint:recommended",
7
+ "plugin:@typescript-eslint/eslint-recommended",
8
+ "plugin:@typescript-eslint/recommended",
9
+ "prettier"
10
+ ],
11
+ "settings": {
12
+ "react": {
13
+ "version": "latest"
14
+ }
15
+ },
16
+ "rules": {
17
+ "no-extra-boolean-cast": "off",
18
+ "no-prototype-builtins": "off",
19
+ "no-fallthrough": "off",
20
+ "no-unexpected-multiline": "off",
21
+ "import/order": "error",
22
+ "sort-imports": [
23
+ "error",
24
+ {
25
+ "ignoreCase": true,
26
+ "ignoreDeclarationSort": true
27
+ }
28
+ ],
29
+ "comma-dangle": "off",
30
+ "@typescript-eslint/no-non-null-assertion": "off",
31
+ "@typescript-eslint/no-use-before-define": "off",
32
+ "@typescript-eslint/explicit-module-boundary-types": "off",
33
+ "@typescript-eslint/explicit-function-return-type": "off",
34
+ "@typescript-eslint/camelcase": "off",
35
+ "@typescript-eslint/no-inferrable-types": "off",
36
+ "@typescript-eslint/no-unused-vars": [
37
+ "warn",
38
+ {
39
+ "args": "none"
40
+ }
41
+ ],
42
+ "@typescript-eslint/no-explicit-any": "off",
43
+ "@typescript-eslint/naming-convention": [
44
+ "error",
45
+ {
46
+ "selector": "default",
47
+ "format": ["UPPER_CASE", "camelCase", "PascalCase"],
48
+ "leadingUnderscore": "allow"
49
+ },
50
+ {
51
+ "selector": "property",
52
+ "format": null // disable for property names because of our foo__expanded convention for JSS
53
+ // TODO: I think we can come up with a regex that ignores variables with __ in them
54
+ },
55
+ {
56
+ "selector": "variable",
57
+ "format": null // disable for variable names because of our foo__expanded convention for JSS
58
+ // TODO: I think we can come up with a regex that ignores variables with __ in them
59
+ }
60
+ ]
61
+ }
62
+ }
package/CHANGELOG.json CHANGED
@@ -2,30 +2,230 @@
2
2
  "name": "@fluentui/web-components",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 23 Jan 2023 12:40:30 GMT",
6
- "tag": "@fluentui/web-components_v3.0.0-alpha.1",
7
- "version": "3.0.0-alpha.1",
5
+ "date": "Wed, 15 Feb 2023 04:24:29 GMT",
6
+ "tag": "@fluentui/web-components_v3.0.0-alpha.3",
7
+ "version": "3.0.0-alpha.3",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "ryan@ryanmerrill.net",
12
+ "package": "@fluentui/web-components",
13
+ "commit": "4d959c01c7b282136e669b7c0ac0d038b9deeafe",
14
+ "comment": "Adds Spinner as a web component"
15
+ },
16
+ {
17
+ "author": "chhol@microsoft.com",
18
+ "package": "@fluentui/web-components",
19
+ "commit": "09b44a73d3d225044af4e114d210176f7f38001a",
20
+ "comment": "update fast element and foundation versions"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Mon, 13 Feb 2023 04:21:38 GMT",
27
+ "tag": "@fluentui/web-components_v3.0.0-alpha.2",
28
+ "version": "3.0.0-alpha.2",
8
29
  "comments": {
9
30
  "none": [
10
31
  {
11
32
  "author": "martinhochel@microsoft.com",
12
33
  "package": "@fluentui/web-components",
13
- "commit": "7f15428e8fb2c3cfbfe8e555978bfa66f74f8fd8",
14
- "comment": "chore: bump web-components to 3.0.0-alpha.0"
15
- },
34
+ "commit": "5745de0ab6ab860f905c33d4430b857b8a72f27f",
35
+ "comment": "style: fix formatting in files that were silently passed previously"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Mon, 06 Feb 2023 04:20:29 GMT",
42
+ "tag": "@fluentui/web-components_v3.0.0-alpha.2",
43
+ "version": "3.0.0-alpha.2",
44
+ "comments": {
45
+ "none": [
46
+ {
47
+ "author": "martinhochel@microsoft.com",
48
+ "package": "@fluentui/web-components",
49
+ "commit": "dcf643c51586968fa700b83eb1982866e6cfe946",
50
+ "comment": "ci: setup web-components docsite CI/CD"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Thu, 26 Jan 2023 04:18:59 GMT",
57
+ "tag": "@fluentui/web-components_v3.0.0-alpha.2",
58
+ "version": "3.0.0-alpha.2",
59
+ "comments": {
60
+ "none": [
61
+ {
62
+ "author": "martinhochel@microsoft.com",
63
+ "package": "@fluentui/web-components",
64
+ "commit": "1949a66866dca51e82530efdedbb3d455880d614",
65
+ "comment": "chore(web-components): run manually bump to fix failed CI release"
66
+ }
67
+ ]
68
+ }
69
+ },
70
+ {
71
+ "date": "Wed, 25 Jan 2023 17:42:30 GMT",
72
+ "tag": "@fluentui/web-components_v3.0.0-alpha.2",
73
+ "version": "3.0.0-alpha.2",
74
+ "comments": {
75
+ "prerelease": [
16
76
  {
17
77
  "author": "miroslav.stastny@microsoft.com",
18
78
  "package": "@fluentui/web-components",
19
- "commit": "cd42ab4f8aa11c7ac134538193dc8dc4a01ca0f3",
20
- "comment": "Reset web-components for v3 development"
79
+ "commit": "68de783e80c71173a717c758680a63bf9c7e8c78",
80
+ "comment": "feat: export theme"
21
81
  }
22
82
  ],
83
+ "none": [
84
+ {
85
+ "author": "martinhochel@microsoft.com",
86
+ "package": "@fluentui/web-components",
87
+ "commit": "c5b3031ada2f788ef0a36185024f4c10c16143d6",
88
+ "comment": "chore: run manually bump to fix failed CI release"
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ "date": "Wed, 25 Jan 2023 14:49:08 GMT",
95
+ "tag": "@fluentui/web-components_v3.0.0-alpha.1",
96
+ "version": "3.0.0-alpha.1",
97
+ "comments": {
23
98
  "prerelease": [
99
+ {
100
+ "author": "ryan@ryanmerrill.net",
101
+ "package": "@fluentui/web-components",
102
+ "commit": "1322f3f962e8a850fe104cc2ba9b12b2bc2f2842",
103
+ "comment": "add progressbar as new component"
104
+ },
24
105
  {
25
106
  "author": "miroslav.stastny@microsoft.com",
26
107
  "package": "@fluentui/web-components",
27
108
  "commit": "6de62a46eafd74b968ec913901729b3f7284dc7a",
28
109
  "comment": "Add initial theme"
110
+ },
111
+ {
112
+ "author": "chhol@microsoft.com",
113
+ "package": "@fluentui/web-components",
114
+ "commit": "eead74fee07339f998615fe34d8f847d0f63af6e",
115
+ "comment": "add badge and counter badge as new components"
116
+ },
117
+ {
118
+ "author": "chhol@microsoft.com",
119
+ "package": "@fluentui/web-components",
120
+ "commit": "5e3ba35835c0a5487b574ea58a51cccd67b5fa8c",
121
+ "comment": "add text as a new component"
122
+ }
123
+ ],
124
+ "none": [
125
+ {
126
+ "author": "martinhochel@microsoft.com",
127
+ "package": "@fluentui/web-components",
128
+ "commit": "7c94cbd46051ea57bba4e8885c86e89967bb412c",
129
+ "comment": "chore: setup typescript 4.7 for web-components package"
130
+ },
131
+ {
132
+ "author": "miroslav.stastny@microsoft.com",
133
+ "package": "@fluentui/web-components",
134
+ "commit": "cd42ab4f8aa11c7ac134538193dc8dc4a01ca0f3",
135
+ "comment": "Reset web-components for v3 development"
136
+ },
137
+ {
138
+ "author": "martinhochel@microsoft.com",
139
+ "package": "@fluentui/web-components",
140
+ "commit": "7f15428e8fb2c3cfbfe8e555978bfa66f74f8fd8",
141
+ "comment": "chore: bump web-components to 3.0.0-alpha.0"
142
+ },
143
+ {
144
+ "author": "martinhochel@microsoft.com",
145
+ "package": "@fluentui/web-components",
146
+ "commit": "9b29aada3dba8f929530ddc1b4b64e869d5fffd4",
147
+ "comment": "chore(web-components): resolve invalid webpack test regex on windows"
148
+ },
149
+ {
150
+ "author": "chhol@microsoft.com",
151
+ "package": "@fluentui/web-components",
152
+ "commit": "be3d30fcbe222be34b02a554e948d14bb2d730df",
153
+ "comment": "update clean file to .cjs and ensure rimraf is in dependency tree"
154
+ }
155
+ ]
156
+ }
157
+ },
158
+ {
159
+ "date": "Thu, 26 Jan 2023 07:35:32 GMT",
160
+ "tag": "@fluentui/web-components_v2.5.12",
161
+ "version": "2.5.12",
162
+ "comments": {
163
+ "patch": [
164
+ {
165
+ "author": "martinhochel@microsoft.com",
166
+ "package": "@fluentui/web-components",
167
+ "commit": "c5ad495ac5b9f4a10906f241b6b4ce54dbd9e7d1",
168
+ "comment": "feat: bump tslib to 2.1 to align with rest of monorepo packages"
169
+ }
170
+ ]
171
+ }
172
+ },
173
+ {
174
+ "date": "Wed, 11 Jan 2023 07:50:49 GMT",
175
+ "tag": "@fluentui/web-components_v2.5.11",
176
+ "version": "2.5.11",
177
+ "comments": {
178
+ "patch": [
179
+ {
180
+ "author": "mgodbolt@microsoft.com",
181
+ "package": "@fluentui/web-components",
182
+ "commit": "854d1159c9a57d496f6db1ab9f20885136d20cc6",
183
+ "comment": "chore: upgrade version of storybook"
184
+ }
185
+ ]
186
+ }
187
+ },
188
+ {
189
+ "date": "Tue, 10 Jan 2023 07:50:14 GMT",
190
+ "tag": "@fluentui/web-components_v2.5.10",
191
+ "version": "2.5.10",
192
+ "comments": {
193
+ "patch": [
194
+ {
195
+ "author": "jes@microsoft.com",
196
+ "package": "@fluentui/web-components",
197
+ "commit": "49ead1dcd8c34cf87b151e0c0cc7bd716260f22f",
198
+ "comment": "fix: layering zindex issue with sub menus"
199
+ }
200
+ ]
201
+ }
202
+ },
203
+ {
204
+ "date": "Thu, 05 Jan 2023 07:59:57 GMT",
205
+ "tag": "@fluentui/web-components_v2.5.9",
206
+ "version": "2.5.9",
207
+ "comments": {
208
+ "patch": [
209
+ {
210
+ "author": "abcy@microsoft.com",
211
+ "package": "@fluentui/web-components",
212
+ "commit": "b53326ef8367bbd954237bd039c5520188ed1071",
213
+ "comment": "Fix fluent-tooltip not showing anchor pointer when wc prefix is changed"
214
+ }
215
+ ]
216
+ }
217
+ },
218
+ {
219
+ "date": "Tue, 15 Nov 2022 07:44:58 GMT",
220
+ "tag": "@fluentui/web-components_v2.5.8",
221
+ "version": "2.5.8",
222
+ "comments": {
223
+ "none": [
224
+ {
225
+ "author": "martinhochel@microsoft.com",
226
+ "package": "@fluentui/web-components",
227
+ "commit": "d419dfa7124fb15ebae8a27b30bdad869964301b",
228
+ "comment": "chore(.storybook): disable telemetry"
29
229
  }
30
230
  ]
31
231
  }