@fluentui/web-components 2.5.10 → 3.0.0-alpha.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 (447) hide show
  1. package/CHANGELOG.json +16 -32
  2. package/CHANGELOG.md +6 -15
  3. package/dist/dts/index-rollup.d.ts +0 -7
  4. package/dist/dts/index.d.ts +1 -49
  5. package/dist/dts/theme/design-tokens.d.ts +379 -0
  6. package/dist/dts/theme/index.d.ts +2 -0
  7. package/dist/dts/theme/set-theme.d.ts +6 -0
  8. package/dist/dts/{anchored-region/anchored-region.stories.d.ts → theme/theme.stories.d.ts} +1 -2
  9. package/dist/esm/index-rollup.js +0 -11
  10. package/dist/esm/index.js +1 -49
  11. package/dist/esm/theme/design-tokens.js +381 -0
  12. package/dist/esm/theme/index.js +2 -0
  13. package/dist/esm/theme/set-theme.js +11 -0
  14. package/dist/esm/theme/theme.stories.js +21 -0
  15. package/dist/fluent-web-components.api.json +6 -19807
  16. package/dist/web-components.d.ts +1 -2980
  17. package/dist/web-components.js +2 -21988
  18. package/dist/web-components.min.js +1 -254
  19. package/docs/api-report.md +1 -1723
  20. package/package.json +13 -5
  21. package/public/theme-switch.ts +13 -0
  22. package/dist/dts/_docs/design-system/color-explorer/app.d.ts +0 -25
  23. package/dist/dts/_docs/design-system/color-explorer/colors.d.ts +0 -13
  24. package/dist/dts/_docs/design-system/color-explorer/component-types.d.ts +0 -6
  25. package/dist/dts/_docs/design-system/color-explorer/components/color-block.d.ts +0 -10
  26. package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.d.ts +0 -190
  27. package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.form-associated.d.ts +0 -15
  28. package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.styles.d.ts +0 -3
  29. package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.template.d.ts +0 -8
  30. package/dist/dts/_docs/design-system/color-explorer/components/color-picker/index.d.ts +0 -9
  31. package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.d.ts +0 -8
  32. package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.styles.d.ts +0 -1
  33. package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.template.d.ts +0 -2
  34. package/dist/dts/_docs/design-system/color-explorer/components/control-pane/index.d.ts +0 -6
  35. package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.d.ts +0 -5
  36. package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.styles.d.ts +0 -1
  37. package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.template.d.ts +0 -2
  38. package/dist/dts/_docs/design-system/color-explorer/components/gradient/index.d.ts +0 -6
  39. package/dist/dts/_docs/design-system/color-explorer/components/layer-background/index.d.ts +0 -21
  40. package/dist/dts/_docs/design-system/color-explorer/components/sample-app/index.d.ts +0 -6
  41. package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.d.ts +0 -3
  42. package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.styles.d.ts +0 -1
  43. package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.template.d.ts +0 -1
  44. package/dist/dts/_docs/design-system/color-explorer/components/sample-page/index.d.ts +0 -6
  45. package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.d.ts +0 -3
  46. package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.styles.d.ts +0 -1
  47. package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.template.d.ts +0 -1
  48. package/dist/dts/_docs/design-system/color-explorer/components/swatch.d.ts +0 -30
  49. package/dist/dts/_docs/design-system/color-explorer/custom-elements.d.ts +0 -7
  50. package/dist/dts/_docs/design-system/color-explorer/index.d.ts +0 -2
  51. package/dist/dts/accordion/accordion-item/accordion-item.styles.d.ts +0 -3
  52. package/dist/dts/accordion/accordion-item/index.d.ts +0 -17
  53. package/dist/dts/accordion/accordion.stories.d.ts +0 -15
  54. package/dist/dts/accordion/accordion.styles.d.ts +0 -3
  55. package/dist/dts/accordion/index.d.ts +0 -22
  56. package/dist/dts/anchor/anchor.stories.d.ts +0 -14
  57. package/dist/dts/anchor/anchor.styles.d.ts +0 -3
  58. package/dist/dts/anchor/index.d.ts +0 -49
  59. package/dist/dts/anchored-region/anchored-region.styles.d.ts +0 -3
  60. package/dist/dts/anchored-region/index.d.ts +0 -21
  61. package/dist/dts/badge/badge.stories.d.ts +0 -14
  62. package/dist/dts/badge/badge.styles.d.ts +0 -3
  63. package/dist/dts/badge/index.d.ts +0 -29
  64. package/dist/dts/breadcrumb/breadcrumb.stories.d.ts +0 -15
  65. package/dist/dts/breadcrumb/breadcrumb.styles.d.ts +0 -3
  66. package/dist/dts/breadcrumb/index.d.ts +0 -21
  67. package/dist/dts/breadcrumb-item/breadcrumb-item.stories.d.ts +0 -15
  68. package/dist/dts/breadcrumb-item/breadcrumb-item.styles.d.ts +0 -3
  69. package/dist/dts/breadcrumb-item/index.d.ts +0 -21
  70. package/dist/dts/button/button.stories.d.ts +0 -21
  71. package/dist/dts/button/button.styles.d.ts +0 -3
  72. package/dist/dts/button/index.d.ts +0 -48
  73. package/dist/dts/calendar/calendar.stories.d.ts +0 -86
  74. package/dist/dts/calendar/calendar.styles.d.ts +0 -7
  75. package/dist/dts/calendar/index.d.ts +0 -18
  76. package/dist/dts/card/card.stories.d.ts +0 -15
  77. package/dist/dts/card/card.styles.d.ts +0 -3
  78. package/dist/dts/card/index.d.ts +0 -46
  79. package/dist/dts/checkbox/checkbox.stories.d.ts +0 -28
  80. package/dist/dts/checkbox/checkbox.styles.d.ts +0 -3
  81. package/dist/dts/checkbox/index.d.ts +0 -16
  82. package/dist/dts/color/palette.d.ts +0 -73
  83. package/dist/dts/color/recipe.d.ts +0 -20
  84. package/dist/dts/color/recipes/contrast-and-delta-swatch-set.d.ts +0 -11
  85. package/dist/dts/color/recipes/contrast-swatch.d.ts +0 -12
  86. package/dist/dts/color/recipes/delta-swatch-set.d.ts +0 -36
  87. package/dist/dts/color/recipes/delta-swatch.d.ts +0 -12
  88. package/dist/dts/color/recipes/focus-stroke.d.ts +0 -10
  89. package/dist/dts/color/recipes/foreground-on-accent.d.ts +0 -11
  90. package/dist/dts/color/recipes/gradient-shadow-stroke.d.ts +0 -7
  91. package/dist/dts/color/recipes/gradient-swatch.d.ts +0 -36
  92. package/dist/dts/color/recipes/neutral-layer-1.d.ts +0 -10
  93. package/dist/dts/color/recipes/neutral-layer-2.d.ts +0 -6
  94. package/dist/dts/color/recipes/neutral-layer-3.d.ts +0 -6
  95. package/dist/dts/color/recipes/neutral-layer-4.d.ts +0 -6
  96. package/dist/dts/color/recipes/neutral-layer-floating.d.ts +0 -6
  97. package/dist/dts/color/recipes/underline-stroke.d.ts +0 -7
  98. package/dist/dts/color/swatch.d.ts +0 -31
  99. package/dist/dts/color/utilities/base-layer-luminance.d.ts +0 -11
  100. package/dist/dts/color/utilities/binary-search.d.ts +0 -4
  101. package/dist/dts/color/utilities/color-constants.d.ts +0 -14
  102. package/dist/dts/color/utilities/direction-by-is-dark.d.ts +0 -5
  103. package/dist/dts/color/utilities/is-dark.d.ts +0 -9
  104. package/dist/dts/color/utilities/relative-luminance.d.ts +0 -13
  105. package/dist/dts/combobox/combobox.stories.d.ts +0 -36
  106. package/dist/dts/combobox/combobox.styles.d.ts +0 -3
  107. package/dist/dts/combobox/index.d.ts +0 -43
  108. package/dist/dts/component-definitions.d.ts +0 -43
  109. package/dist/dts/custom-elements.d.ts +0 -103
  110. package/dist/dts/data-grid/data-grid-cell.styles.d.ts +0 -3
  111. package/dist/dts/data-grid/data-grid-row.styles.d.ts +0 -3
  112. package/dist/dts/data-grid/data-grid.stories.d.ts +0 -15
  113. package/dist/dts/data-grid/data-grid.styles.d.ts +0 -3
  114. package/dist/dts/data-grid/index.d.ts +0 -45
  115. package/dist/dts/design-system-provider/index.d.ts +0 -582
  116. package/dist/dts/design-tokens.d.ts +0 -519
  117. package/dist/dts/dialog/dialog.stories.d.ts +0 -25
  118. package/dist/dts/dialog/dialog.styles.d.ts +0 -3
  119. package/dist/dts/dialog/index.d.ts +0 -21
  120. package/dist/dts/divider/divider.stories.d.ts +0 -6
  121. package/dist/dts/divider/divider.styles.d.ts +0 -3
  122. package/dist/dts/divider/index.d.ts +0 -21
  123. package/dist/dts/flipper/flipper.stories.d.ts +0 -17
  124. package/dist/dts/flipper/flipper.styles.d.ts +0 -3
  125. package/dist/dts/flipper/index.d.ts +0 -21
  126. package/dist/dts/fluent-design-system.d.ts +0 -9
  127. package/dist/dts/horizontal-scroll/horizontal-scroll.stories.d.ts +0 -15
  128. package/dist/dts/horizontal-scroll/horizontal-scroll.styles.d.ts +0 -12
  129. package/dist/dts/horizontal-scroll/index.d.ts +0 -25
  130. package/dist/dts/listbox/index.d.ts +0 -19
  131. package/dist/dts/listbox/listbox.stories.d.ts +0 -6
  132. package/dist/dts/listbox/listbox.styles.d.ts +0 -3
  133. package/dist/dts/listbox-option/index.d.ts +0 -17
  134. package/dist/dts/listbox-option/listbox-option.stories.d.ts +0 -23
  135. package/dist/dts/listbox-option/listbox-option.styles.d.ts +0 -3
  136. package/dist/dts/menu/index.d.ts +0 -26
  137. package/dist/dts/menu/menu.stories.d.ts +0 -6
  138. package/dist/dts/menu/menu.styles.d.ts +0 -3
  139. package/dist/dts/menu-item/index.d.ts +0 -21
  140. package/dist/dts/menu-item/menu-item.stories.d.ts +0 -18
  141. package/dist/dts/menu-item/menu-item.styles.d.ts +0 -3
  142. package/dist/dts/number-field/index.d.ts +0 -41
  143. package/dist/dts/number-field/number-field.stories.d.ts +0 -71
  144. package/dist/dts/number-field/number-field.styles.d.ts +0 -3
  145. package/dist/dts/progress/index.d.ts +0 -2
  146. package/dist/dts/progress/progress/index.d.ts +0 -22
  147. package/dist/dts/progress/progress/progress.stories.d.ts +0 -15
  148. package/dist/dts/progress/progress/progress.styles.d.ts +0 -3
  149. package/dist/dts/progress/progress-ring/index.d.ts +0 -22
  150. package/dist/dts/progress/progress-ring/progress-ring.stories.d.ts +0 -15
  151. package/dist/dts/progress/progress-ring/progress-ring.styles.d.ts +0 -3
  152. package/dist/dts/radio/index.d.ts +0 -21
  153. package/dist/dts/radio/radio.stories.d.ts +0 -23
  154. package/dist/dts/radio/radio.styles.d.ts +0 -3
  155. package/dist/dts/radio-group/index.d.ts +0 -21
  156. package/dist/dts/radio-group/radio-group.stories.d.ts +0 -18
  157. package/dist/dts/radio-group/radio-group.styles.d.ts +0 -3
  158. package/dist/dts/search/index.d.ts +0 -38
  159. package/dist/dts/search/search.stories.d.ts +0 -75
  160. package/dist/dts/search/search.styles.d.ts +0 -3
  161. package/dist/dts/search/search.template.d.ts +0 -6
  162. package/dist/dts/select/index.d.ts +0 -44
  163. package/dist/dts/select/select.stories.d.ts +0 -28
  164. package/dist/dts/select/select.styles.d.ts +0 -13
  165. package/dist/dts/skeleton/index.d.ts +0 -21
  166. package/dist/dts/skeleton/skeleton.stories.d.ts +0 -20
  167. package/dist/dts/skeleton/skeleton.styles.d.ts +0 -3
  168. package/dist/dts/slider/index.d.ts +0 -21
  169. package/dist/dts/slider/slider.stories.d.ts +0 -14
  170. package/dist/dts/slider/slider.styles.d.ts +0 -3
  171. package/dist/dts/slider-label/index.d.ts +0 -21
  172. package/dist/dts/slider-label/slider-label.stories.d.ts +0 -23
  173. package/dist/dts/slider-label/slider-label.styles.d.ts +0 -3
  174. package/dist/dts/styles/direction.d.ts +0 -34
  175. package/dist/dts/styles/elevation.d.ts +0 -64
  176. package/dist/dts/styles/focus.d.ts +0 -13
  177. package/dist/dts/styles/index.d.ts +0 -5
  178. package/dist/dts/styles/patterns/button.styles.d.ts +0 -31
  179. package/dist/dts/styles/patterns/index.d.ts +0 -3
  180. package/dist/dts/styles/patterns/input.styles.d.ts +0 -30
  181. package/dist/dts/styles/patterns/type-ramp.d.ts +0 -18
  182. package/dist/dts/styles/size.d.ts +0 -7
  183. package/dist/dts/switch/index.d.ts +0 -21
  184. package/dist/dts/switch/switch.stories.d.ts +0 -18
  185. package/dist/dts/switch/switch.styles.d.ts +0 -3
  186. package/dist/dts/tabs/index.d.ts +0 -23
  187. package/dist/dts/tabs/tab/index.d.ts +0 -21
  188. package/dist/dts/tabs/tab/tab.styles.d.ts +0 -3
  189. package/dist/dts/tabs/tab-panel/index.d.ts +0 -21
  190. package/dist/dts/tabs/tab-panel/tab-panel.styles.d.ts +0 -3
  191. package/dist/dts/tabs/tabs.stories.d.ts +0 -19
  192. package/dist/dts/tabs/tabs.styles.d.ts +0 -3
  193. package/dist/dts/text-area/index.d.ts +0 -45
  194. package/dist/dts/text-area/text-area.stories.d.ts +0 -41
  195. package/dist/dts/text-area/text-area.styles.d.ts +0 -3
  196. package/dist/dts/text-field/index.d.ts +0 -45
  197. package/dist/dts/text-field/text-field.stories.d.ts +0 -81
  198. package/dist/dts/text-field/text-field.styles.d.ts +0 -3
  199. package/dist/dts/toolbar/index.d.ts +0 -17
  200. package/dist/dts/toolbar/toolbar.stories.d.ts +0 -9
  201. package/dist/dts/toolbar/toolbar.styles.d.ts +0 -3
  202. package/dist/dts/tooltip/index.d.ts +0 -21
  203. package/dist/dts/tooltip/tooltip.stories.d.ts +0 -14
  204. package/dist/dts/tooltip/tooltip.styles.d.ts +0 -3
  205. package/dist/dts/tree-item/index.d.ts +0 -22
  206. package/dist/dts/tree-item/tree-item.stories.d.ts +0 -18
  207. package/dist/dts/tree-item/tree-item.styles.d.ts +0 -4
  208. package/dist/dts/tree-view/index.d.ts +0 -22
  209. package/dist/dts/tree-view/tree-view.stories.d.ts +0 -13
  210. package/dist/dts/tree-view/tree-view.styles.d.ts +0 -3
  211. package/dist/dts/utilities/behaviors.d.ts +0 -12
  212. package/dist/dts/utilities/type-ramp.d.ts +0 -12
  213. package/dist/esm/_docs/design-system/color-explorer/app.js +0 -247
  214. package/dist/esm/_docs/design-system/color-explorer/colors.js +0 -24
  215. package/dist/esm/_docs/design-system/color-explorer/component-types.js +0 -7
  216. package/dist/esm/_docs/design-system/color-explorer/components/color-block.js +0 -408
  217. package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.form-associated.js +0 -16
  218. package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.js +0 -297
  219. package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.styles.js +0 -124
  220. package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.template.js +0 -130
  221. package/dist/esm/_docs/design-system/color-explorer/components/color-picker/index.js +0 -15
  222. package/dist/esm/_docs/design-system/color-explorer/components/control-pane/control-pane.js +0 -24
  223. package/dist/esm/_docs/design-system/color-explorer/components/control-pane/control-pane.styles.js +0 -19
  224. package/dist/esm/_docs/design-system/color-explorer/components/control-pane/control-pane.template.js +0 -52
  225. package/dist/esm/_docs/design-system/color-explorer/components/control-pane/index.js +0 -18
  226. package/dist/esm/_docs/design-system/color-explorer/components/gradient/gradient.js +0 -11
  227. package/dist/esm/_docs/design-system/color-explorer/components/gradient/gradient.styles.js +0 -31
  228. package/dist/esm/_docs/design-system/color-explorer/components/gradient/gradient.template.js +0 -21
  229. package/dist/esm/_docs/design-system/color-explorer/components/gradient/index.js +0 -18
  230. package/dist/esm/_docs/design-system/color-explorer/components/layer-background/index.js +0 -70
  231. package/dist/esm/_docs/design-system/color-explorer/components/sample-app/index.js +0 -18
  232. package/dist/esm/_docs/design-system/color-explorer/components/sample-app/sample-app.js +0 -3
  233. package/dist/esm/_docs/design-system/color-explorer/components/sample-app/sample-app.styles.js +0 -166
  234. package/dist/esm/_docs/design-system/color-explorer/components/sample-app/sample-app.template.js +0 -97
  235. package/dist/esm/_docs/design-system/color-explorer/components/sample-page/index.js +0 -18
  236. package/dist/esm/_docs/design-system/color-explorer/components/sample-page/sample-page.js +0 -3
  237. package/dist/esm/_docs/design-system/color-explorer/components/sample-page/sample-page.styles.js +0 -130
  238. package/dist/esm/_docs/design-system/color-explorer/components/sample-page/sample-page.template.js +0 -82
  239. package/dist/esm/_docs/design-system/color-explorer/components/swatch.js +0 -163
  240. package/dist/esm/_docs/design-system/color-explorer/custom-elements.js +0 -3
  241. package/dist/esm/_docs/design-system/color-explorer/index.js +0 -14
  242. package/dist/esm/accordion/accordion-item/accordion-item.styles.js +0 -154
  243. package/dist/esm/accordion/accordion-item/accordion-item.vscode.definition.json +0 -67
  244. package/dist/esm/accordion/accordion-item/index.js +0 -32
  245. package/dist/esm/accordion/accordion.stories.js +0 -66
  246. package/dist/esm/accordion/accordion.styles.js +0 -13
  247. package/dist/esm/accordion/accordion.vscode.definition.json +0 -35
  248. package/dist/esm/accordion/index.js +0 -27
  249. package/dist/esm/anchor/anchor.stories.js +0 -34
  250. package/dist/esm/anchor/anchor.styles.js +0 -5
  251. package/dist/esm/anchor/anchor.vscode.definition.json +0 -138
  252. package/dist/esm/anchor/index.js +0 -67
  253. package/dist/esm/anchored-region/anchored-region.stories.js +0 -133
  254. package/dist/esm/anchored-region/anchored-region.styles.js +0 -7
  255. package/dist/esm/anchored-region/anchored-region.vscode.definition.json +0 -140
  256. package/dist/esm/anchored-region/index.js +0 -26
  257. package/dist/esm/badge/badge.stories.js +0 -27
  258. package/dist/esm/badge/badge.styles.js +0 -40
  259. package/dist/esm/badge/badge.vscode.definition.json +0 -60
  260. package/dist/esm/badge/index.js +0 -45
  261. package/dist/esm/breadcrumb/breadcrumb.stories.js +0 -20
  262. package/dist/esm/breadcrumb/breadcrumb.styles.js +0 -13
  263. package/dist/esm/breadcrumb/breadcrumb.vscode.definition.json +0 -18
  264. package/dist/esm/breadcrumb/index.js +0 -26
  265. package/dist/esm/breadcrumb-item/breadcrumb-item.stories.js +0 -16
  266. package/dist/esm/breadcrumb-item/breadcrumb-item.styles.js +0 -96
  267. package/dist/esm/breadcrumb-item/breadcrumb-item.vscode.definition.json +0 -50
  268. package/dist/esm/breadcrumb-item/index.js +0 -34
  269. package/dist/esm/button/button.stories.js +0 -40
  270. package/dist/esm/button/button.styles.js +0 -24
  271. package/dist/esm/button/button.vscode.definition.json +0 -158
  272. package/dist/esm/button/index.js +0 -67
  273. package/dist/esm/calendar/calendar.stories.js +0 -115
  274. package/dist/esm/calendar/calendar.styles.js +0 -132
  275. package/dist/esm/calendar/index.js +0 -31
  276. package/dist/esm/card/card.stories.js +0 -30
  277. package/dist/esm/card/card.styles.js +0 -28
  278. package/dist/esm/card/card.vscode.definition.json +0 -33
  279. package/dist/esm/card/index.js +0 -79
  280. package/dist/esm/checkbox/checkbox.stories.js +0 -43
  281. package/dist/esm/checkbox/checkbox.styles.js +0 -161
  282. package/dist/esm/checkbox/checkbox.vscode.definition.json +0 -69
  283. package/dist/esm/checkbox/index.js +0 -31
  284. package/dist/esm/color/palette.js +0 -250
  285. package/dist/esm/color/recipe.js +0 -1
  286. package/dist/esm/color/recipes/contrast-and-delta-swatch-set.js +0 -28
  287. package/dist/esm/color/recipes/contrast-swatch.js +0 -12
  288. package/dist/esm/color/recipes/delta-swatch-set.js +0 -53
  289. package/dist/esm/color/recipes/delta-swatch.js +0 -13
  290. package/dist/esm/color/recipes/focus-stroke.js +0 -14
  291. package/dist/esm/color/recipes/foreground-on-accent.js +0 -21
  292. package/dist/esm/color/recipes/gradient-shadow-stroke.js +0 -54
  293. package/dist/esm/color/recipes/gradient-swatch.js +0 -36
  294. package/dist/esm/color/recipes/neutral-layer-1.js +0 -13
  295. package/dist/esm/color/recipes/neutral-layer-2.js +0 -7
  296. package/dist/esm/color/recipes/neutral-layer-3.js +0 -7
  297. package/dist/esm/color/recipes/neutral-layer-4.js +0 -7
  298. package/dist/esm/color/recipes/neutral-layer-floating.js +0 -7
  299. package/dist/esm/color/recipes/underline-stroke.js +0 -31
  300. package/dist/esm/color/swatch.js +0 -53
  301. package/dist/esm/color/utilities/base-layer-luminance.js +0 -14
  302. package/dist/esm/color/utilities/binary-search.js +0 -15
  303. package/dist/esm/color/utilities/color-constants.js +0 -19
  304. package/dist/esm/color/utilities/direction-by-is-dark.js +0 -7
  305. package/dist/esm/color/utilities/is-dark.js +0 -17
  306. package/dist/esm/color/utilities/relative-luminance.js +0 -8
  307. package/dist/esm/combobox/combobox.stories.js +0 -84
  308. package/dist/esm/combobox/combobox.styles.js +0 -40
  309. package/dist/esm/combobox/combobox.vscode.definition.json +0 -121
  310. package/dist/esm/combobox/index.js +0 -63
  311. package/dist/esm/component-definitions.js +0 -84
  312. package/dist/esm/custom-elements.js +0 -102
  313. package/dist/esm/data-grid/data-grid-cell.styles.js +0 -36
  314. package/dist/esm/data-grid/data-grid-cell.vscode.definition.json +0 -34
  315. package/dist/esm/data-grid/data-grid-row.styles.js +0 -24
  316. package/dist/esm/data-grid/data-grid-row.vscode.definition.json +0 -34
  317. package/dist/esm/data-grid/data-grid.stories.js +0 -381
  318. package/dist/esm/data-grid/data-grid.styles.js +0 -8
  319. package/dist/esm/data-grid/data-grid.vscode.definition.json +0 -34
  320. package/dist/esm/data-grid/index.js +0 -60
  321. package/dist/esm/design-system-provider/design-system-provider.vscode.definition.json +0 -510
  322. package/dist/esm/design-system-provider/index.js +0 -518
  323. package/dist/esm/design-tokens.js +0 -685
  324. package/dist/esm/dialog/dialog.stories.js +0 -36
  325. package/dist/esm/dialog/dialog.styles.js +0 -47
  326. package/dist/esm/dialog/dialog.vscode.definition.json +0 -67
  327. package/dist/esm/dialog/index.js +0 -26
  328. package/dist/esm/divider/divider.stories.js +0 -17
  329. package/dist/esm/divider/divider.styles.js +0 -11
  330. package/dist/esm/divider/divider.vscode.definition.json +0 -29
  331. package/dist/esm/divider/index.js +0 -26
  332. package/dist/esm/flipper/flipper.stories.js +0 -31
  333. package/dist/esm/flipper/flipper.styles.js +0 -84
  334. package/dist/esm/flipper/flipper.vscode.definition.json +0 -56
  335. package/dist/esm/flipper/index.js +0 -36
  336. package/dist/esm/fluent-design-system.js +0 -11
  337. package/dist/esm/horizontal-scroll/horizontal-scroll.stories.js +0 -81
  338. package/dist/esm/horizontal-scroll/horizontal-scroll.styles.js +0 -138
  339. package/dist/esm/horizontal-scroll/horizontal-scroll.vscode.definition.json +0 -85
  340. package/dist/esm/horizontal-scroll/index.js +0 -47
  341. package/dist/esm/listbox/index.js +0 -24
  342. package/dist/esm/listbox/listbox.stories.js +0 -29
  343. package/dist/esm/listbox/listbox.styles.js +0 -21
  344. package/dist/esm/listbox/listbox.vscode.definition.json +0 -40
  345. package/dist/esm/listbox-option/index.js +0 -22
  346. package/dist/esm/listbox-option/listbox-option.stories.js +0 -38
  347. package/dist/esm/listbox-option/listbox-option.styles.js +0 -133
  348. package/dist/esm/listbox-option/listbox-option.vscode.definition.json +0 -45
  349. package/dist/esm/menu/index.js +0 -36
  350. package/dist/esm/menu/menu.stories.js +0 -56
  351. package/dist/esm/menu/menu.styles.js +0 -42
  352. package/dist/esm/menu/menu.vscode.definition.json +0 -18
  353. package/dist/esm/menu-item/index.js +0 -41
  354. package/dist/esm/menu-item/menu-item.stories.js +0 -34
  355. package/dist/esm/menu-item/menu-item.styles.js +0 -265
  356. package/dist/esm/menu-item/menu-item.vscode.definition.json +0 -82
  357. package/dist/esm/number-field/index.js +0 -57
  358. package/dist/esm/number-field/number-field.stories.js +0 -83
  359. package/dist/esm/number-field/number-field.styles.js +0 -71
  360. package/dist/esm/number-field/number-field.vscode.definition.json +0 -167
  361. package/dist/esm/progress/index.js +0 -2
  362. package/dist/esm/progress/progress/index.js +0 -33
  363. package/dist/esm/progress/progress/progress.stories.js +0 -59
  364. package/dist/esm/progress/progress/progress.styles.js +0 -119
  365. package/dist/esm/progress/progress/progress.vscode.definition.json +0 -56
  366. package/dist/esm/progress/progress-ring/index.js +0 -45
  367. package/dist/esm/progress/progress-ring/progress-ring.stories.js +0 -59
  368. package/dist/esm/progress/progress-ring/progress-ring.styles.js +0 -79
  369. package/dist/esm/progress/progress-ring/progress-ring.vscode.definition.json +0 -56
  370. package/dist/esm/radio/index.js +0 -31
  371. package/dist/esm/radio/radio.stories.js +0 -41
  372. package/dist/esm/radio/radio.styles.js +0 -152
  373. package/dist/esm/radio/radio.vscode.definition.json +0 -63
  374. package/dist/esm/radio-group/index.js +0 -26
  375. package/dist/esm/radio-group/radio-group.stories.js +0 -42
  376. package/dist/esm/radio-group/radio-group.styles.js +0 -21
  377. package/dist/esm/radio-group/radio-group.vscode.definition.json +0 -64
  378. package/dist/esm/search/index.js +0 -52
  379. package/dist/esm/search/search.stories.js +0 -83
  380. package/dist/esm/search/search.styles.js +0 -104
  381. package/dist/esm/search/search.template.js +0 -82
  382. package/dist/esm/search/search.vscode.definition.json +0 -145
  383. package/dist/esm/select/index.js +0 -61
  384. package/dist/esm/select/select.stories.js +0 -53
  385. package/dist/esm/select/select.styles.js +0 -139
  386. package/dist/esm/select/select.vscode.definition.json +0 -79
  387. package/dist/esm/skeleton/index.js +0 -26
  388. package/dist/esm/skeleton/skeleton.stories.js +0 -37
  389. package/dist/esm/skeleton/skeleton.styles.js +0 -77
  390. package/dist/esm/skeleton/skeleton.vscode.definition.json +0 -49
  391. package/dist/esm/slider/index.js +0 -29
  392. package/dist/esm/slider/slider.stories.js +0 -40
  393. package/dist/esm/slider/slider.styles.js +0 -162
  394. package/dist/esm/slider/slider.vscode.definition.json +0 -101
  395. package/dist/esm/slider-label/index.js +0 -26
  396. package/dist/esm/slider-label/slider-label.stories.js +0 -40
  397. package/dist/esm/slider-label/slider-label.styles.js +0 -77
  398. package/dist/esm/slider-label/slider-label.vscode.definition.json +0 -43
  399. package/dist/esm/styles/direction.js +0 -73
  400. package/dist/esm/styles/elevation.js +0 -74
  401. package/dist/esm/styles/focus.js +0 -21
  402. package/dist/esm/styles/index.js +0 -5
  403. package/dist/esm/styles/patterns/button.styles.js +0 -427
  404. package/dist/esm/styles/patterns/index.js +0 -3
  405. package/dist/esm/styles/patterns/input.styles.js +0 -227
  406. package/dist/esm/styles/patterns/type-ramp.js +0 -74
  407. package/dist/esm/styles/size.js +0 -9
  408. package/dist/esm/switch/index.js +0 -31
  409. package/dist/esm/switch/switch.stories.js +0 -42
  410. package/dist/esm/switch/switch.styles.js +0 -213
  411. package/dist/esm/switch/switch.vscode.definition.json +0 -68
  412. package/dist/esm/tabs/index.js +0 -28
  413. package/dist/esm/tabs/tab/index.js +0 -26
  414. package/dist/esm/tabs/tab/tab.styles.js +0 -75
  415. package/dist/esm/tabs/tab/tab.vscode.definition.json +0 -17
  416. package/dist/esm/tabs/tab-panel/index.js +0 -26
  417. package/dist/esm/tabs/tab-panel/tab-panel.styles.js +0 -11
  418. package/dist/esm/tabs/tab-panel/tab-panel.vscode.definition.json +0 -17
  419. package/dist/esm/tabs/tabs.stories.js +0 -105
  420. package/dist/esm/tabs/tabs.styles.js +0 -98
  421. package/dist/esm/tabs/tabs.vscode.definition.json +0 -50
  422. package/dist/esm/text-area/index.js +0 -56
  423. package/dist/esm/text-area/text-area.stories.js +0 -56
  424. package/dist/esm/text-area/text-area.styles.js +0 -39
  425. package/dist/esm/text-area/text-area.vscode.definition.json +0 -141
  426. package/dist/esm/text-field/index.js +0 -56
  427. package/dist/esm/text-field/text-field.stories.js +0 -88
  428. package/dist/esm/text-field/text-field.styles.js +0 -48
  429. package/dist/esm/text-field/text-field.vscode.definition.json +0 -150
  430. package/dist/esm/toolbar/index.js +0 -23
  431. package/dist/esm/toolbar/toolbar.stories.js +0 -9
  432. package/dist/esm/toolbar/toolbar.styles.js +0 -73
  433. package/dist/esm/tooltip/index.js +0 -31
  434. package/dist/esm/tooltip/tooltip.stories.js +0 -34
  435. package/dist/esm/tooltip/tooltip.styles.js +0 -107
  436. package/dist/esm/tooltip/tooltip.vscode.definition.json +0 -56
  437. package/dist/esm/tree-item/index.js +0 -32
  438. package/dist/esm/tree-item/tree-item.stories.js +0 -34
  439. package/dist/esm/tree-item/tree-item.styles.js +0 -227
  440. package/dist/esm/tree-item/tree-item.vscode.definition.json +0 -63
  441. package/dist/esm/tree-view/index.js +0 -27
  442. package/dist/esm/tree-view/tree-view.stories.js +0 -99
  443. package/dist/esm/tree-view/tree-view.styles.js +0 -14
  444. package/dist/esm/tree-view/tree-view.vscode.definition.json +0 -26
  445. package/dist/esm/utilities/behaviors.js +0 -13
  446. package/dist/esm/utilities/type-ramp.js +0 -12
  447. package/public/switches.ts +0 -24
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fluentui/web-components",
3
3
  "description": "A library of Fluent Web Components",
4
4
  "sideEffects": false,
5
- "version": "2.5.10",
5
+ "version": "3.0.0-alpha.1",
6
6
  "author": {
7
7
  "name": "Microsoft",
8
8
  "url": "https://discord.gg/FcSNfg4"
@@ -72,10 +72,18 @@
72
72
  "mocha": "7.2.0"
73
73
  },
74
74
  "dependencies": {
75
- "@microsoft/fast-colors": "^5.3.0",
76
- "@microsoft/fast-element": "^1.11.0",
77
- "@microsoft/fast-foundation": "^2.47.0",
78
- "@microsoft/fast-web-utilities": "^5.4.0",
75
+ "@microsoft/fast-element": "^2.0.0-beta.17",
76
+ "@microsoft/fast-foundation": "^3.0.0-alpha.21",
77
+ "@microsoft/fast-web-utilities": "^6.0.0",
78
+ "@fluentui/tokens": "1.0.0-alpha.2",
79
79
  "tslib": "^1.13.0"
80
+ },
81
+ "beachball": {
82
+ "disallowedChangeTypes": [
83
+ "major",
84
+ "minor",
85
+ "patch"
86
+ ],
87
+ "tag": "alpha"
80
88
  }
81
89
  }
@@ -0,0 +1,13 @@
1
+ import { teamsDarkTheme, teamsLightTheme, webDarkTheme, webLightTheme } from '@fluentui/tokens';
2
+ import { setTheme } from '../src/theme';
3
+
4
+ const themes = {
5
+ 'web-light': webLightTheme,
6
+ 'web-dark': webDarkTheme,
7
+ 'teams-light': teamsLightTheme,
8
+ 'teams-dark': teamsDarkTheme,
9
+ };
10
+
11
+ export function switchTheme(themeName: keyof typeof themes) {
12
+ setTheme(themes[themeName]);
13
+ }
@@ -1,25 +0,0 @@
1
- import { FASTElement } from '@microsoft/fast-element';
2
- import { ComponentTypes } from './component-types';
3
- export interface SwatchInfo {
4
- index: number;
5
- color: string;
6
- title?: string;
7
- }
8
- export declare class App extends FASTElement {
9
- canvasElement: HTMLDivElement;
10
- componentType: ComponentTypes;
11
- neutralColor: string;
12
- private neutralColorChanged;
13
- neutralPalette: string[];
14
- accentColor: string;
15
- private accentColorChanged;
16
- accentPalette: string[];
17
- showOnlyLayerBackgrounds: boolean;
18
- connectedCallback(): void;
19
- backgrounds(): Array<SwatchInfo>;
20
- private layerRecipes;
21
- private resolveLayerRecipes;
22
- private get lightModeLayers();
23
- private get darkModeLayers();
24
- controlPaneHandler(e: CustomEvent): void;
25
- }
@@ -1,13 +0,0 @@
1
- export declare enum AccentColors {
2
- black = "#000000",
3
- white = "#FFFFFF",
4
- magenta = "#DA1A5F",
5
- blue = "#0078D4",
6
- green = "#107C10",
7
- purple = "#5C2D91",
8
- orange = "#D83B01",
9
- yellow = "#F2C812"
10
- }
11
- export declare const neutralColors: string[];
12
- export declare const defaultAccentColor: string;
13
- export declare const defaultNeutralColor: string;
@@ -1,6 +0,0 @@
1
- export declare enum ComponentTypes {
2
- backplate = "backplate",
3
- text = "text",
4
- form = "form",
5
- sample = "sample"
6
- }
@@ -1,10 +0,0 @@
1
- import { FASTElement } from '@microsoft/fast-element';
2
- import { ComponentTypes } from '../component-types';
3
- export declare class AppColorBlock extends FASTElement {
4
- index: number;
5
- component: ComponentTypes;
6
- color: string;
7
- private colorChanged;
8
- layerName?: string;
9
- private updateColor;
10
- }
@@ -1,190 +0,0 @@
1
- import { ColorHSV, ColorRGBA64 } from '@microsoft/fast-colors';
2
- import { FormAssociatedColorPicker } from './color-picker.form-associated';
3
- /**
4
- * This is currently experimental, any use of the color picker must include the following
5
- * imports and register with the DesignSystem
6
- *
7
- * import { fastTextField } from "@microsoft/fast-components";
8
- * import { DesignSystem } from "@microsoft/fast-foundation";
9
- * DesignSystem.getOrCreate().register(fastTextField());
10
- */
11
- /**
12
- * Simple class for storing all of the color picker UI observable values.
13
- */
14
- declare class ColorPickerUI {
15
- RGBColor: ColorRGBA64;
16
- HSVColor: ColorHSV;
17
- HueCSSColor: string;
18
- HuePosition: number;
19
- SatValTopPos: number;
20
- SatValLeftPos: number;
21
- AlphaPos: number;
22
- constructor(rgbColor: ColorRGBA64, hsvColor: ColorHSV);
23
- }
24
- /**
25
- * A Color Picker Custom HTML Element.
26
- *
27
- * @public
28
- */
29
- export declare class ColorPicker extends FormAssociatedColorPicker {
30
- /**
31
- * When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
32
- * @public
33
- * @remarks
34
- * HTML Attribute: readonly
35
- */
36
- readOnly: boolean;
37
- private readOnlyChanged;
38
- /**
39
- * Indicates that this element should get focus after the page finishes loading. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefautofocus | autofocus HTML attribute} for more information.
40
- * @public
41
- * @remarks
42
- * HTML Attribute: autofocus
43
- */
44
- autofocus: boolean;
45
- private autofocusChanged;
46
- /**
47
- * Sets the placeholder value of the element, generally used to provide a hint to the user.
48
- * @public
49
- * @remarks
50
- * HTML Attribute: placeholder
51
- * Using this attribute does is not a valid substitute for a labeling element.
52
- */
53
- placeholder: string;
54
- private placeholderChanged;
55
- /**
56
- * Flag indicating that the color UI is visible.
57
- */
58
- open: boolean;
59
- /**
60
- * Flag indicating that the color UI is activily listening for mouse move and up events.
61
- */
62
- mouseActive: boolean;
63
- /**
64
- * Object containing all of the properties displayed in the color picker UI.
65
- */
66
- uiValues: ColorPickerUI;
67
- /**
68
- * A reference to the internal input element
69
- * @internal
70
- */
71
- control: HTMLInputElement;
72
- /**
73
- * A reference to the HTMLElement that is the current target of mouse move events.
74
- */
75
- private currentMouseTarget;
76
- /**
77
- * A string indicating which of the three graphical elements is the current mouse target. ['sv','h','a']
78
- */
79
- private currentMouseParam;
80
- /**
81
- * The ColorRGBA64 representation of the current color value.
82
- */
83
- private currentRGBColor;
84
- /**
85
- * The ColorHSV representation of the current color value.
86
- */
87
- private currentHSVColor;
88
- /**
89
- * @internal
90
- */
91
- connectedCallback(): void;
92
- /**
93
- * Handles the focus event. When the template has focus the color UI will be visable.
94
- * @internal
95
- */
96
- handleFocus(): void;
97
- /**
98
- * Handles the blur event. Hides the color UI when the template loses focus.
99
- * @internal
100
- */
101
- handleBlur(): void;
102
- /**
103
- * Handles the internal control's `input` event. This event is fired whenever a user types directly into the primary text field.
104
- * @internal
105
- */
106
- handleTextInput(): void;
107
- /**
108
- * Handles the mouse down event on the Sat/Val square and Hue and Alpha sliders. Sets the current targeted element and begins listening for mouse move events.
109
- * @param param ['sv','h','a'] - string specifying which color property is being modified with the mouse.
110
- * @param e - A reference to the mouse event.
111
- */
112
- handleMouseDown(param: string, e: MouseEvent): void;
113
- /**
114
- * Handles the mouse move event within the color UI. Is only called once the mouseActive is set to true.
115
- * @param e - Reference to the Mouse Event
116
- */
117
- handleMouseMove(e: MouseEvent): void;
118
- /**
119
- * Handles the mouse up event within the color UI. Disables listening for mouse move events.
120
- * @param e - Reference to the Mouse Event
121
- */
122
- handleMouseUp(e: MouseEvent): void;
123
- /**
124
- * Handles changes to any of the color property text inputs typed by the user.
125
- * @param param ['r','g','b','a','h','s','v'] - String specifying which color value is being modified.
126
- * @param e - Reference to the event.
127
- */
128
- handleTextValueInput(param: string, e: Event): void;
129
- /**
130
- * Change event handler for inner control.
131
- * @remarks
132
- * "Change" events are not `composable` so they will not
133
- * permeate the shadow DOM boundary. This fn effectively proxies
134
- * the change event, emitting a `change` event whenever the internal
135
- * control emits a `change` event
136
- * @internal
137
- */
138
- handleChange(): void;
139
- /**
140
- * Initialize internal color values based on input value and set the UI elements
141
- * to the correct positions / values.
142
- */
143
- private initColorValues;
144
- /**
145
- * Determines if a number value is within the valid range for an R, G, or B color channel.
146
- * @param val - Number to be evaluated.
147
- */
148
- private isValidRGB;
149
- /**
150
- * Determines if a number value is within the valid range for the alpha channel.
151
- * @param val - Number to be evaluated.
152
- */
153
- private isValidAlpha;
154
- /**
155
- * Determines if a number value is within the valid range for the saturation or value color channels.
156
- * @param val - Number to be evaluated.
157
- */
158
- private isValidSaturationValue;
159
- /**
160
- * Determines if a number value is within the valid range for the hue color channel.
161
- * @param val - Number to be evaluated.
162
- */
163
- private isValidHue;
164
- /**
165
- * Checks if input is a valid CSS color.
166
- * After placing an invalid css color value into a color style property the value will be an empty string when read back.
167
- * @internal
168
- */
169
- private isValideCSSColor;
170
- /**
171
- * Update the current color values to a new HSV color.
172
- * @param hue The new Hue value.
173
- * @param sat The new saturation value.
174
- * @param val The new Value value.
175
- */
176
- private updateHSV;
177
- /**
178
- * Update the current color values based on the mouse position over one of the three UI elements (hue, saturation/value, or alpha).
179
- * @param pageX The pageX position of the mouse.
180
- * @param pageY The pageY position of the mouse.
181
- */
182
- private updateFromMouseEvent;
183
- /**
184
- * Update the UI values with the current color. This updates the position of the indicators over the Sat/Val, Hue and Alpha elements
185
- * and the values in all of the text fields at once.
186
- * @param updateValue - Flag to trigger updating of the main text field value and emitting the change event.
187
- */
188
- private updateUIValues;
189
- }
190
- export {};
@@ -1,15 +0,0 @@
1
- import { FormAssociated, FoundationElement } from '@microsoft/fast-foundation';
2
- declare class _ColorPicker extends FoundationElement {
3
- }
4
- interface _ColorPicker extends FormAssociated {
5
- }
6
- declare const FormAssociatedColorPicker_base: typeof _ColorPicker;
7
- /**
8
- * A form-associated base class for the component.
9
- *
10
- * @internal
11
- */
12
- export declare class FormAssociatedColorPicker extends FormAssociatedColorPicker_base {
13
- proxy: HTMLInputElement;
14
- }
15
- export {};
@@ -1,3 +0,0 @@
1
- import { ElementStyles } from "@microsoft/fast-element";
2
- import { ElementDefinitionContext, FoundationElementDefinition } from "@microsoft/fast-foundation";
3
- export declare const colorPickerStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
@@ -1,8 +0,0 @@
1
- import { ViewTemplate } from '@microsoft/fast-element';
2
- import { ElementDefinitionContext } from '@microsoft/fast-foundation';
3
- import { ColorPicker } from './color-picker';
4
- /**
5
- * The template for the color picker component.
6
- * @public
7
- */
8
- export declare const colorPickerTemplate: (context: ElementDefinitionContext) => ViewTemplate<ColorPicker>;
@@ -1,9 +0,0 @@
1
- import { ColorPicker } from './color-picker';
2
- /**
3
- * A web component used for updating color values.
4
- *
5
- * @alpha
6
- * @remarks
7
- * HTML Element: \<color-picker\>
8
- */
9
- export declare const fastToolingColorPicker: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof ColorPicker>;
@@ -1,8 +0,0 @@
1
- import { FoundationElement } from '@microsoft/fast-foundation';
2
- export declare class ControlPane extends FoundationElement {
3
- componentType: string;
4
- accentColor: string;
5
- neutralColor: string;
6
- showOnlyLayerBackgrounds: boolean;
7
- updateFormValue(field: string, value: any): void;
8
- }
@@ -1 +0,0 @@
1
- export declare const controlPaneStyles: import("@microsoft/fast-element").ElementStyles;
@@ -1,2 +0,0 @@
1
- import { ControlPane } from './control-pane';
2
- export declare const controlPaneTemplate: import("@microsoft/fast-element").ViewTemplate<ControlPane, any>;
@@ -1,6 +0,0 @@
1
- import { ControlPane } from './control-pane';
2
- export declare class AppControlPane extends ControlPane {
3
- }
4
- export * from './control-pane.template';
5
- export * from './control-pane.styles';
6
- export * from './control-pane';
@@ -1,5 +0,0 @@
1
- import { FoundationElement } from '@microsoft/fast-foundation';
2
- export declare class Gradient extends FoundationElement {
3
- colors: string[];
4
- markedColor: string;
5
- }
@@ -1 +0,0 @@
1
- export declare const gradientStyles: import("@microsoft/fast-element").ElementStyles;
@@ -1,2 +0,0 @@
1
- import { Gradient } from './gradient';
2
- export declare const gradientTemplate: import("@microsoft/fast-element").ViewTemplate<Gradient, any>;
@@ -1,6 +0,0 @@
1
- import { Gradient } from './gradient';
2
- export declare class AppGradient extends Gradient {
3
- }
4
- export * from './gradient.template';
5
- export * from './gradient.styles';
6
- export * from './gradient';
@@ -1,21 +0,0 @@
1
- import { DesignToken, DesignTokenChangeRecord, FoundationElement } from '@microsoft/fast-foundation';
2
- export declare class LayerBackground extends FoundationElement {
3
- baseLayerLuminance: number;
4
- private baseLayerLuminanceChanged;
5
- backgroundLayerRecipe: string;
6
- private backgroundLayerRecipeChanged;
7
- private updateBackgroundColor;
8
- handleChange(record: DesignTokenChangeRecord<DesignToken<any>>): void;
9
- connectedCallback(): void;
10
- }
11
- export declare const layerBackgroundTemplate: import("@microsoft/fast-element").ViewTemplate<any, any>;
12
- export declare const layerBackgroundStyles: import("@microsoft/fast-element").ElementStyles;
13
- export declare const layerBackground: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
14
- baseName: string;
15
- template: import("@microsoft/fast-element").ViewTemplate<any, any>;
16
- styles: import("@microsoft/fast-element").ElementStyles;
17
- }> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
18
- baseName: string;
19
- template: import("@microsoft/fast-element").ViewTemplate<any, any>;
20
- styles: import("@microsoft/fast-element").ElementStyles;
21
- }, typeof LayerBackground>;
@@ -1,6 +0,0 @@
1
- import { SampleApp } from './sample-app';
2
- export declare class AppSampleApp extends SampleApp {
3
- }
4
- export * from './sample-app.template';
5
- export * from './sample-app.styles';
6
- export * from './sample-app';
@@ -1,3 +0,0 @@
1
- import { FoundationElement } from '@microsoft/fast-foundation';
2
- export declare class SampleApp extends FoundationElement {
3
- }
@@ -1 +0,0 @@
1
- export declare const sampleAppStyles: import("@microsoft/fast-element").ElementStyles;
@@ -1 +0,0 @@
1
- export declare const sampleAppTemplate: import("@microsoft/fast-element").ViewTemplate<any, any>;
@@ -1,6 +0,0 @@
1
- import { SamplePage } from './sample-page';
2
- export declare class AppSamplePage extends SamplePage {
3
- }
4
- export * from './sample-page.template';
5
- export * from './sample-page.styles';
6
- export * from './sample-page';
@@ -1,3 +0,0 @@
1
- import { FoundationElement } from '@microsoft/fast-foundation';
2
- export declare class SamplePage extends FoundationElement {
3
- }
@@ -1 +0,0 @@
1
- export declare const samplePageStyles: import("@microsoft/fast-element").ElementStyles;
@@ -1 +0,0 @@
1
- export declare const samplePageTemplate: import("@microsoft/fast-element").ViewTemplate<any, any>;
@@ -1,30 +0,0 @@
1
- import { DesignToken, FoundationElement } from '@microsoft/fast-foundation';
2
- import { Swatch } from '../../../../index-rollup';
3
- export declare enum SwatchTypes {
4
- fill = "fill",
5
- foreground = "foreground",
6
- outline = "outline"
7
- }
8
- export declare class AppSwatch extends FoundationElement {
9
- type: SwatchTypes;
10
- recipeName: string;
11
- foregroundRecipe?: DesignToken<Swatch>;
12
- foregroundRecipeChanged(): void;
13
- fillRecipe?: DesignToken<Swatch>;
14
- fillRecipeChanged(): void;
15
- outlineRecipe?: DesignToken<Swatch>;
16
- outlineRecipeChanged(): void;
17
- iconStyle: string;
18
- contrastMessage: string;
19
- colorValue: string;
20
- connectedCallback(): void;
21
- private updateObservables;
22
- private tokenCSS;
23
- private evaluateToken;
24
- private updateIconStyle;
25
- private formatContrast;
26
- private formatBackgroundContrast;
27
- private formatForegroundContrast;
28
- private updateContrastMessage;
29
- private updateColorValue;
30
- }
@@ -1,7 +0,0 @@
1
- import { layerBackground } from './components/layer-background';
2
- export { layerBackground };
3
- export declare const appComponents: import("@microsoft/fast-foundation").FoundationElementRegistry<{
4
- baseName: string;
5
- template: import("@microsoft/fast-element").ViewTemplate<any, any>;
6
- styles: import("@microsoft/fast-element").ElementStyles;
7
- }, typeof import("./components/layer-background").LayerBackground>[];
@@ -1,2 +0,0 @@
1
- export declare function init(): void;
2
- export { App } from './app';
@@ -1,3 +0,0 @@
1
- import { ElementStyles } from '@microsoft/fast-element';
2
- import { AccordionItemOptions, ElementDefinitionContext } from '@microsoft/fast-foundation';
3
- export declare const accordionItemStyles: (context: ElementDefinitionContext, definition: AccordionItemOptions) => ElementStyles;
@@ -1,17 +0,0 @@
1
- import { AccordionItem, AccordionItemOptions } from '@microsoft/fast-foundation';
2
- /**
3
- * The Fluent Accordion Item Element. Implements {@link @microsoft/fast-foundation#AccordionItem},
4
- * {@link @microsoft/fast-foundation#accordionItemTemplate}
5
- *
6
- *
7
- * @public
8
- * @remarks
9
- * HTML Element: \<fluent-accordion-item\>
10
- */
11
- export declare const fluentAccordionItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<AccordionItemOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<AccordionItemOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
12
- /**
13
- * Styles for AccordionItem
14
- * @public
15
- */
16
- export declare const accordionItemStyles: (context: import("@microsoft/fast-foundation").ElementDefinitionContext, definition: AccordionItemOptions) => import("@microsoft/fast-element").ElementStyles;
17
- export { AccordionItem };
@@ -1,15 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("@microsoft/fast-foundation").Accordion>;
4
- argTypes: {
5
- expandMode: {
6
- options: string[];
7
- control: {
8
- type: string;
9
- };
10
- defaultValue: string;
11
- };
12
- };
13
- };
14
- export default _default;
15
- export declare const Accordion: any;
@@ -1,3 +0,0 @@
1
- import { ElementStyles } from '@microsoft/fast-element';
2
- import { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
- export declare const accordionStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
@@ -1,22 +0,0 @@
1
- import { Accordion } from '@microsoft/fast-foundation';
2
- export * from './accordion-item/index';
3
- /**
4
- * The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion},
5
- * {@link @microsoft/fast-foundation#accordionTemplate}
6
- *
7
- *
8
- * @public
9
- * @remarks
10
- * HTML Element: \<fluent-accordion\>
11
- */
12
- export declare const fluentAccordion: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof Accordion>;
13
- /**
14
- * Styles for Accordion
15
- * @public
16
- */
17
- export declare const accordionStyles: (context: import("@microsoft/fast-foundation").ElementDefinitionContext, definition: import("@microsoft/fast-foundation").FoundationElementDefinition) => import("@microsoft/fast-element").ElementStyles;
18
- /**
19
- * Base class for Accordion
20
- * @public
21
- */
22
- export { Accordion };
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- component: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./index").Anchor>;
4
- argTypes: {
5
- appearance: {
6
- options: string[];
7
- control: {
8
- type: string;
9
- };
10
- };
11
- };
12
- };
13
- export default _default;
14
- export declare const Anchor: any;
@@ -1,3 +0,0 @@
1
- import { ElementStyles } from '@microsoft/fast-element';
2
- import { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
- export declare const anchorStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
@@ -1,49 +0,0 @@
1
- import { Anchor as FoundationAnchor } from '@microsoft/fast-foundation';
2
- import { ButtonAppearance } from '../button';
3
- /**
4
- * Types of anchor appearance.
5
- * @public
6
- */
7
- export declare type AnchorAppearance = ButtonAppearance | 'hypertext';
8
- /**
9
- * The Fluent version of Anchor
10
- * @internal
11
- */
12
- export declare class Anchor extends FoundationAnchor {
13
- /**
14
- * The appearance the anchor should have.
15
- *
16
- * @public
17
- * @remarks
18
- * HTML Attribute: appearance
19
- */
20
- appearance: AnchorAppearance;
21
- appearanceChanged(oldValue: AnchorAppearance, newValue: AnchorAppearance): void;
22
- /**
23
- * @internal
24
- */
25
- connectedCallback(): void;
26
- /**
27
- * Applies 'icon-only' class when there is only an SVG in the default slot
28
- *
29
- * @internal
30
- */
31
- defaultSlottedContentChanged(): void;
32
- }
33
- /**
34
- * Styles for Anchor
35
- * @public
36
- */
37
- export declare const anchorStyles: (context: import("@microsoft/fast-foundation").ElementDefinitionContext, definition: import("@microsoft/fast-foundation").FoundationElementDefinition) => import("@microsoft/fast-element").ElementStyles;
38
- /**
39
- * The Fluent Anchor Element. Implements {@link @microsoft/fast-foundation#Anchor},
40
- * {@link @microsoft/fast-foundation#anchorTemplate}
41
- *
42
- *
43
- * @public
44
- * @remarks
45
- * HTML Element: \<fluent-anchor\>
46
- *
47
- * {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus | delegatesFocus}
48
- */
49
- export declare const fluentAnchor: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof Anchor>;
@@ -1,3 +0,0 @@
1
- import { ElementStyles } from '@microsoft/fast-element';
2
- import { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
3
- export declare const anchoredRegionStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;