@ni/nimble-components 9.0.4 → 10.0.2

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 (273) hide show
  1. package/dist/all-components-bundle.js +81 -88
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +798 -807
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/button/index.js +1 -1
  6. package/dist/esm/button/styles.js +2 -2
  7. package/dist/esm/button/types.d.ts +0 -1
  8. package/dist/esm/button/types.js.map +1 -1
  9. package/dist/esm/drawer/index.js +16 -16
  10. package/dist/esm/drawer/types.d.ts +12 -12
  11. package/dist/esm/drawer/types.js +10 -12
  12. package/dist/esm/drawer/types.js.map +1 -1
  13. package/dist/esm/icon-base/types.d.ts +7 -7
  14. package/dist/esm/icon-base/types.js +6 -7
  15. package/dist/esm/icon-base/types.js.map +1 -1
  16. package/dist/esm/menu-button/index.js +1 -1
  17. package/dist/esm/menu-button/types.d.ts +0 -1
  18. package/dist/esm/menu-button/types.js +4 -1
  19. package/dist/esm/menu-button/types.js.map +1 -1
  20. package/dist/esm/patterns/button/styles.js +3 -3
  21. package/dist/esm/patterns/button/types.d.ts +6 -6
  22. package/dist/esm/patterns/button/types.js +5 -6
  23. package/dist/esm/patterns/button/types.js.map +1 -1
  24. package/dist/esm/text-area/index.js +1 -1
  25. package/dist/esm/text-area/styles.js +2 -2
  26. package/dist/esm/text-area/types.d.ts +5 -6
  27. package/dist/esm/text-area/types.js +4 -5
  28. package/dist/esm/text-area/types.js.map +1 -1
  29. package/dist/esm/text-field/index.js +1 -1
  30. package/dist/esm/text-field/styles.js +5 -5
  31. package/dist/esm/text-field/types.d.ts +7 -14
  32. package/dist/esm/text-field/types.js +6 -7
  33. package/dist/esm/text-field/types.js.map +1 -1
  34. package/dist/esm/theme-provider/design-tokens.js +5 -5
  35. package/dist/esm/theme-provider/index.js +2 -2
  36. package/dist/esm/theme-provider/types.d.ts +6 -6
  37. package/dist/esm/theme-provider/types.js +5 -6
  38. package/dist/esm/theme-provider/types.js.map +1 -1
  39. package/dist/esm/toggle-button/index.js +1 -1
  40. package/dist/esm/toggle-button/types.d.ts +0 -1
  41. package/dist/esm/toggle-button/types.js +4 -0
  42. package/dist/esm/toggle-button/types.js.map +1 -1
  43. package/dist/esm/tree-view/index.js +4 -4
  44. package/dist/esm/tree-view/types.d.ts +6 -6
  45. package/dist/esm/tree-view/types.js +5 -6
  46. package/dist/esm/tree-view/types.js.map +1 -1
  47. package/dist/esm/utilities/style/theme.d.ts +5 -5
  48. package/dist/esm/utilities/style/theme.js +3 -3
  49. package/dist/esm/utilities/style/theme.js.map +1 -1
  50. package/package.json +2 -2
  51. package/dist/esm/nimble-components/src/all-components.d.ts +0 -29
  52. package/dist/esm/nimble-components/src/anchored-region/index.d.ts +0 -11
  53. package/dist/esm/nimble-components/src/anchored-region/styles.d.ts +0 -1
  54. package/dist/esm/nimble-components/src/breadcrumb/index.d.ts +0 -11
  55. package/dist/esm/nimble-components/src/breadcrumb/styles.d.ts +0 -1
  56. package/dist/esm/nimble-components/src/breadcrumb-item/index.d.ts +0 -11
  57. package/dist/esm/nimble-components/src/breadcrumb-item/styles.d.ts +0 -1
  58. package/dist/esm/nimble-components/src/button/index.d.ts +0 -25
  59. package/dist/esm/nimble-components/src/button/styles.d.ts +0 -1
  60. package/dist/esm/nimble-components/src/button/types.d.ts +0 -8
  61. package/dist/esm/nimble-components/src/checkbox/index.d.ts +0 -11
  62. package/dist/esm/nimble-components/src/checkbox/styles.d.ts +0 -1
  63. package/dist/esm/nimble-components/src/drawer/animations.d.ts +0 -14
  64. package/dist/esm/nimble-components/src/drawer/index.d.ts +0 -48
  65. package/dist/esm/nimble-components/src/drawer/styles.d.ts +0 -1
  66. package/dist/esm/nimble-components/src/drawer/types.d.ts +0 -12
  67. package/dist/esm/nimble-components/src/icon-base/icon-metadata.d.ts +0 -9
  68. package/dist/esm/nimble-components/src/icon-base/index.d.ts +0 -12
  69. package/dist/esm/nimble-components/src/icon-base/styles.d.ts +0 -1
  70. package/dist/esm/nimble-components/src/icon-base/template.d.ts +0 -2
  71. package/dist/esm/nimble-components/src/icon-base/types.d.ts +0 -11
  72. package/dist/esm/nimble-components/src/icons/add.d.ts +0 -12
  73. package/dist/esm/nimble-components/src/icons/all-icons.d.ts +0 -142
  74. package/dist/esm/nimble-components/src/icons/arrow-down-right-and-arrow-up-left.d.ts +0 -12
  75. package/dist/esm/nimble-components/src/icons/arrow-expander-down.d.ts +0 -12
  76. package/dist/esm/nimble-components/src/icons/arrow-expander-left.d.ts +0 -12
  77. package/dist/esm/nimble-components/src/icons/arrow-expander-right.d.ts +0 -12
  78. package/dist/esm/nimble-components/src/icons/arrow-expander-up.d.ts +0 -12
  79. package/dist/esm/nimble-components/src/icons/arrow-left-from-line.d.ts +0 -12
  80. package/dist/esm/nimble-components/src/icons/arrow-partial-rotate-left.d.ts +0 -12
  81. package/dist/esm/nimble-components/src/icons/arrow-right-to-line.d.ts +0 -12
  82. package/dist/esm/nimble-components/src/icons/arrow-rotate-right.d.ts +0 -12
  83. package/dist/esm/nimble-components/src/icons/arrow-u-rotate-left.d.ts +0 -12
  84. package/dist/esm/nimble-components/src/icons/arrow-up-left-and-arrow-down-right.d.ts +0 -12
  85. package/dist/esm/nimble-components/src/icons/arrows-maximize.d.ts +0 -12
  86. package/dist/esm/nimble-components/src/icons/arrows-repeat.d.ts +0 -12
  87. package/dist/esm/nimble-components/src/icons/bars.d.ts +0 -12
  88. package/dist/esm/nimble-components/src/icons/bell-and-comment.d.ts +0 -12
  89. package/dist/esm/nimble-components/src/icons/bell-circle.d.ts +0 -12
  90. package/dist/esm/nimble-components/src/icons/bell-solid-circle.d.ts +0 -12
  91. package/dist/esm/nimble-components/src/icons/bell.d.ts +0 -12
  92. package/dist/esm/nimble-components/src/icons/block-with-ribbon.d.ts +0 -12
  93. package/dist/esm/nimble-components/src/icons/calendar.d.ts +0 -12
  94. package/dist/esm/nimble-components/src/icons/chart-diagram-child-focus.d.ts +0 -12
  95. package/dist/esm/nimble-components/src/icons/chart-diagram-parent-focus-two-child.d.ts +0 -12
  96. package/dist/esm/nimble-components/src/icons/chart-diagram-parent-focus.d.ts +0 -12
  97. package/dist/esm/nimble-components/src/icons/chart-diagram.d.ts +0 -12
  98. package/dist/esm/nimble-components/src/icons/check-dot.d.ts +0 -12
  99. package/dist/esm/nimble-components/src/icons/check.d.ts +0 -12
  100. package/dist/esm/nimble-components/src/icons/circle-broken.d.ts +0 -12
  101. package/dist/esm/nimble-components/src/icons/circle-check.d.ts +0 -12
  102. package/dist/esm/nimble-components/src/icons/circle-partial-broken.d.ts +0 -12
  103. package/dist/esm/nimble-components/src/icons/circle-slash.d.ts +0 -12
  104. package/dist/esm/nimble-components/src/icons/circle-x.d.ts +0 -12
  105. package/dist/esm/nimble-components/src/icons/circle.d.ts +0 -12
  106. package/dist/esm/nimble-components/src/icons/clipboard.d.ts +0 -12
  107. package/dist/esm/nimble-components/src/icons/clock-cog.d.ts +0 -12
  108. package/dist/esm/nimble-components/src/icons/clock-triangle.d.ts +0 -12
  109. package/dist/esm/nimble-components/src/icons/clock.d.ts +0 -12
  110. package/dist/esm/nimble-components/src/icons/clone.d.ts +0 -12
  111. package/dist/esm/nimble-components/src/icons/cloud-upload.d.ts +0 -12
  112. package/dist/esm/nimble-components/src/icons/cloud-with-arrow.d.ts +0 -12
  113. package/dist/esm/nimble-components/src/icons/cog-database-inset.d.ts +0 -12
  114. package/dist/esm/nimble-components/src/icons/cog-database.d.ts +0 -12
  115. package/dist/esm/nimble-components/src/icons/cog-small-cog.d.ts +0 -12
  116. package/dist/esm/nimble-components/src/icons/cog-zoomed.d.ts +0 -12
  117. package/dist/esm/nimble-components/src/icons/cog.d.ts +0 -12
  118. package/dist/esm/nimble-components/src/icons/comment.d.ts +0 -12
  119. package/dist/esm/nimble-components/src/icons/computer-and-monitor.d.ts +0 -12
  120. package/dist/esm/nimble-components/src/icons/copy-text.d.ts +0 -12
  121. package/dist/esm/nimble-components/src/icons/copy.d.ts +0 -12
  122. package/dist/esm/nimble-components/src/icons/dashboard-builder-legend.d.ts +0 -12
  123. package/dist/esm/nimble-components/src/icons/dashboard-builder-templates.d.ts +0 -12
  124. package/dist/esm/nimble-components/src/icons/dashboard-builder-tile.d.ts +0 -12
  125. package/dist/esm/nimble-components/src/icons/dashboard-builder.d.ts +0 -12
  126. package/dist/esm/nimble-components/src/icons/database-check.d.ts +0 -12
  127. package/dist/esm/nimble-components/src/icons/database.d.ts +0 -12
  128. package/dist/esm/nimble-components/src/icons/desktop.d.ts +0 -12
  129. package/dist/esm/nimble-components/src/icons/donut-chart.d.ts +0 -12
  130. package/dist/esm/nimble-components/src/icons/dot-solid-dot-stroke.d.ts +0 -12
  131. package/dist/esm/nimble-components/src/icons/download.d.ts +0 -12
  132. package/dist/esm/nimble-components/src/icons/electronic-chip-zoomed.d.ts +0 -12
  133. package/dist/esm/nimble-components/src/icons/exclamation-mark.d.ts +0 -12
  134. package/dist/esm/nimble-components/src/icons/eye.d.ts +0 -12
  135. package/dist/esm/nimble-components/src/icons/fancy-a.d.ts +0 -12
  136. package/dist/esm/nimble-components/src/icons/file-drawer.d.ts +0 -12
  137. package/dist/esm/nimble-components/src/icons/file-search.d.ts +0 -12
  138. package/dist/esm/nimble-components/src/icons/file.d.ts +0 -12
  139. package/dist/esm/nimble-components/src/icons/filter.d.ts +0 -12
  140. package/dist/esm/nimble-components/src/icons/floppy-disk-checkmark.d.ts +0 -12
  141. package/dist/esm/nimble-components/src/icons/floppy-disk-star-arrow-right.d.ts +0 -12
  142. package/dist/esm/nimble-components/src/icons/floppy-disk-three-dots.d.ts +0 -12
  143. package/dist/esm/nimble-components/src/icons/folder-open.d.ts +0 -12
  144. package/dist/esm/nimble-components/src/icons/folder.d.ts +0 -12
  145. package/dist/esm/nimble-components/src/icons/forward-slash.d.ts +0 -12
  146. package/dist/esm/nimble-components/src/icons/four-dots-square.d.ts +0 -12
  147. package/dist/esm/nimble-components/src/icons/function.d.ts +0 -12
  148. package/dist/esm/nimble-components/src/icons/gauge-simple.d.ts +0 -12
  149. package/dist/esm/nimble-components/src/icons/grid-three-by-three.d.ts +0 -12
  150. package/dist/esm/nimble-components/src/icons/grid-two-by-two.d.ts +0 -12
  151. package/dist/esm/nimble-components/src/icons/hammer.d.ts +0 -12
  152. package/dist/esm/nimble-components/src/icons/hashtag.d.ts +0 -12
  153. package/dist/esm/nimble-components/src/icons/home.d.ts +0 -12
  154. package/dist/esm/nimble-components/src/icons/hourglass.d.ts +0 -12
  155. package/dist/esm/nimble-components/src/icons/indeterminant-checkbox.d.ts +0 -12
  156. package/dist/esm/nimble-components/src/icons/info-circle.d.ts +0 -12
  157. package/dist/esm/nimble-components/src/icons/info.d.ts +0 -12
  158. package/dist/esm/nimble-components/src/icons/key.d.ts +0 -12
  159. package/dist/esm/nimble-components/src/icons/laptop.d.ts +0 -12
  160. package/dist/esm/nimble-components/src/icons/layer-group.d.ts +0 -12
  161. package/dist/esm/nimble-components/src/icons/lightning-bolt.d.ts +0 -12
  162. package/dist/esm/nimble-components/src/icons/link-cancel.d.ts +0 -12
  163. package/dist/esm/nimble-components/src/icons/link.d.ts +0 -12
  164. package/dist/esm/nimble-components/src/icons/list-tree-database.d.ts +0 -12
  165. package/dist/esm/nimble-components/src/icons/list-tree.d.ts +0 -12
  166. package/dist/esm/nimble-components/src/icons/list.d.ts +0 -12
  167. package/dist/esm/nimble-components/src/icons/lock.d.ts +0 -12
  168. package/dist/esm/nimble-components/src/icons/magnifying-glass.d.ts +0 -12
  169. package/dist/esm/nimble-components/src/icons/markdown.d.ts +0 -12
  170. package/dist/esm/nimble-components/src/icons/minus-wide.d.ts +0 -12
  171. package/dist/esm/nimble-components/src/icons/minus.d.ts +0 -12
  172. package/dist/esm/nimble-components/src/icons/mobile.d.ts +0 -12
  173. package/dist/esm/nimble-components/src/icons/notebook.d.ts +0 -12
  174. package/dist/esm/nimble-components/src/icons/paste.d.ts +0 -12
  175. package/dist/esm/nimble-components/src/icons/pencil.d.ts +0 -12
  176. package/dist/esm/nimble-components/src/icons/pot-with-lid.d.ts +0 -12
  177. package/dist/esm/nimble-components/src/icons/question.d.ts +0 -12
  178. package/dist/esm/nimble-components/src/icons/running-arrow.d.ts +0 -12
  179. package/dist/esm/nimble-components/src/icons/server.d.ts +0 -12
  180. package/dist/esm/nimble-components/src/icons/share-square.d.ts +0 -12
  181. package/dist/esm/nimble-components/src/icons/shield-check.d.ts +0 -12
  182. package/dist/esm/nimble-components/src/icons/shield-xmark.d.ts +0 -12
  183. package/dist/esm/nimble-components/src/icons/signal-bars.d.ts +0 -12
  184. package/dist/esm/nimble-components/src/icons/sine-graph.d.ts +0 -12
  185. package/dist/esm/nimble-components/src/icons/skip-arrow.d.ts +0 -12
  186. package/dist/esm/nimble-components/src/icons/spinner.d.ts +0 -12
  187. package/dist/esm/nimble-components/src/icons/square-check.d.ts +0 -12
  188. package/dist/esm/nimble-components/src/icons/square-t.d.ts +0 -12
  189. package/dist/esm/nimble-components/src/icons/t.d.ts +0 -12
  190. package/dist/esm/nimble-components/src/icons/tablet.d.ts +0 -12
  191. package/dist/esm/nimble-components/src/icons/tag.d.ts +0 -12
  192. package/dist/esm/nimble-components/src/icons/tags.d.ts +0 -12
  193. package/dist/esm/nimble-components/src/icons/target-crosshairs-progress.d.ts +0 -12
  194. package/dist/esm/nimble-components/src/icons/target-crosshairs.d.ts +0 -12
  195. package/dist/esm/nimble-components/src/icons/three-dots-line.d.ts +0 -12
  196. package/dist/esm/nimble-components/src/icons/thumbtack.d.ts +0 -12
  197. package/dist/esm/nimble-components/src/icons/tile-size.d.ts +0 -12
  198. package/dist/esm/nimble-components/src/icons/times.d.ts +0 -12
  199. package/dist/esm/nimble-components/src/icons/trash.d.ts +0 -12
  200. package/dist/esm/nimble-components/src/icons/triangle.d.ts +0 -12
  201. package/dist/esm/nimble-components/src/icons/true-false-rectangle.d.ts +0 -12
  202. package/dist/esm/nimble-components/src/icons/unlink.d.ts +0 -12
  203. package/dist/esm/nimble-components/src/icons/unlock.d.ts +0 -12
  204. package/dist/esm/nimble-components/src/icons/upload.d.ts +0 -12
  205. package/dist/esm/nimble-components/src/icons/user.d.ts +0 -12
  206. package/dist/esm/nimble-components/src/icons/watch.d.ts +0 -12
  207. package/dist/esm/nimble-components/src/icons/waveform.d.ts +0 -12
  208. package/dist/esm/nimble-components/src/icons/webvi-custom.d.ts +0 -12
  209. package/dist/esm/nimble-components/src/icons/webvi-host.d.ts +0 -12
  210. package/dist/esm/nimble-components/src/icons/window-code.d.ts +0 -12
  211. package/dist/esm/nimble-components/src/icons/window-text.d.ts +0 -12
  212. package/dist/esm/nimble-components/src/icons/wrench-hammer.d.ts +0 -12
  213. package/dist/esm/nimble-components/src/icons/xmark-check.d.ts +0 -12
  214. package/dist/esm/nimble-components/src/icons/xmark.d.ts +0 -12
  215. package/dist/esm/nimble-components/src/list-option/index.d.ts +0 -14
  216. package/dist/esm/nimble-components/src/list-option/styles.d.ts +0 -1
  217. package/dist/esm/nimble-components/src/menu/index.d.ts +0 -11
  218. package/dist/esm/nimble-components/src/menu/styles.d.ts +0 -1
  219. package/dist/esm/nimble-components/src/menu-button/index.d.ts +0 -50
  220. package/dist/esm/nimble-components/src/menu-button/styles.d.ts +0 -1
  221. package/dist/esm/nimble-components/src/menu-button/template.d.ts +0 -4
  222. package/dist/esm/nimble-components/src/menu-button/types.d.ts +0 -15
  223. package/dist/esm/nimble-components/src/menu-item/index.d.ts +0 -11
  224. package/dist/esm/nimble-components/src/menu-item/styles.d.ts +0 -1
  225. package/dist/esm/nimble-components/src/number-field/index.d.ts +0 -11
  226. package/dist/esm/nimble-components/src/number-field/styles.d.ts +0 -1
  227. package/dist/esm/nimble-components/src/patterns/button/styles.d.ts +0 -1
  228. package/dist/esm/nimble-components/src/patterns/button/types.d.ts +0 -30
  229. package/dist/esm/nimble-components/src/select/index.d.ts +0 -13
  230. package/dist/esm/nimble-components/src/select/styles.d.ts +0 -1
  231. package/dist/esm/nimble-components/src/switch/index.d.ts +0 -11
  232. package/dist/esm/nimble-components/src/switch/styles.d.ts +0 -1
  233. package/dist/esm/nimble-components/src/switch/template.d.ts +0 -2
  234. package/dist/esm/nimble-components/src/tab/index.d.ts +0 -11
  235. package/dist/esm/nimble-components/src/tab/styles.d.ts +0 -1
  236. package/dist/esm/nimble-components/src/tab-panel/index.d.ts +0 -11
  237. package/dist/esm/nimble-components/src/tab-panel/styles.d.ts +0 -1
  238. package/dist/esm/nimble-components/src/tabs/index.d.ts +0 -12
  239. package/dist/esm/nimble-components/src/tabs/styles.d.ts +0 -1
  240. package/dist/esm/nimble-components/src/tabs-toolbar/index.d.ts +0 -11
  241. package/dist/esm/nimble-components/src/tabs-toolbar/styles.d.ts +0 -1
  242. package/dist/esm/nimble-components/src/tabs-toolbar/template.d.ts +0 -2
  243. package/dist/esm/nimble-components/src/testing/async-helpers.d.ts +0 -10
  244. package/dist/esm/nimble-components/src/text-area/index.d.ts +0 -20
  245. package/dist/esm/nimble-components/src/text-area/styles.d.ts +0 -1
  246. package/dist/esm/nimble-components/src/text-area/types.d.ts +0 -8
  247. package/dist/esm/nimble-components/src/text-field/index.d.ts +0 -29
  248. package/dist/esm/nimble-components/src/text-field/styles.d.ts +0 -1
  249. package/dist/esm/nimble-components/src/text-field/types.d.ts +0 -22
  250. package/dist/esm/nimble-components/src/theme-provider/design-token-comments.d.ts +0 -6
  251. package/dist/esm/nimble-components/src/theme-provider/design-token-names.d.ts +0 -15
  252. package/dist/esm/nimble-components/src/theme-provider/design-tokens.d.ts +0 -46
  253. package/dist/esm/nimble-components/src/theme-provider/index.d.ts +0 -21
  254. package/dist/esm/nimble-components/src/theme-provider/styles.d.ts +0 -1
  255. package/dist/esm/nimble-components/src/theme-provider/template.d.ts +0 -2
  256. package/dist/esm/nimble-components/src/theme-provider/types.d.ts +0 -6
  257. package/dist/esm/nimble-components/src/toggle-button/index.d.ts +0 -29
  258. package/dist/esm/nimble-components/src/toggle-button/styles.d.ts +0 -1
  259. package/dist/esm/nimble-components/src/toggle-button/template.d.ts +0 -4
  260. package/dist/esm/nimble-components/src/toggle-button/types.d.ts +0 -6
  261. package/dist/esm/nimble-components/src/toolbar/index.d.ts +0 -11
  262. package/dist/esm/nimble-components/src/toolbar/styles.d.ts +0 -1
  263. package/dist/esm/nimble-components/src/tree-item/index.d.ts +0 -29
  264. package/dist/esm/nimble-components/src/tree-item/styles.d.ts +0 -3
  265. package/dist/esm/nimble-components/src/tree-view/index.d.ts +0 -23
  266. package/dist/esm/nimble-components/src/tree-view/styles.d.ts +0 -1
  267. package/dist/esm/nimble-components/src/tree-view/types.d.ts +0 -8
  268. package/dist/esm/nimble-components/src/utilities/style/appearance.d.ts +0 -11
  269. package/dist/esm/nimble-components/src/utilities/style/colors.d.ts +0 -8
  270. package/dist/esm/nimble-components/src/utilities/style/direction.d.ts +0 -34
  271. package/dist/esm/nimble-components/src/utilities/style/focus.d.ts +0 -11
  272. package/dist/esm/nimble-components/src/utilities/style/prefers-reduced-motion.d.ts +0 -4
  273. package/dist/esm/nimble-components/src/utilities/style/theme.d.ts +0 -42
@@ -14,7 +14,7 @@ export class Button extends FoundationButton {
14
14
  * @remarks
15
15
  * HTML Attribute: appearance
16
16
  */
17
- this.appearance = ButtonAppearance.Outline;
17
+ this.appearance = ButtonAppearance.outline;
18
18
  /**
19
19
  * @public
20
20
  * @remarks
@@ -6,7 +6,7 @@ import { appearanceBehavior } from '../utilities/style/appearance';
6
6
  import { ButtonAppearance } from './types';
7
7
  // prettier-ignore
8
8
  export const styles = buttonStyles
9
- .withBehaviors(appearanceBehavior(ButtonAppearance.Outline, css `
9
+ .withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
10
10
  :host(.primary) .control {
11
11
  box-shadow: 0px 0px 0px ${borderWidth} rgba(${actionRgbPartialColor}, 0.3) inset;
12
12
  }
@@ -26,7 +26,7 @@ export const styles = buttonStyles
26
26
  :host(.primary) .control[disabled] {
27
27
  box-shadow: none;
28
28
  }
29
- `), appearanceBehavior(ButtonAppearance.Block, css `
29
+ `), appearanceBehavior(ButtonAppearance.block, css `
30
30
  :host(.primary) .control {
31
31
  background-clip: padding-box;
32
32
  border-color: rgba(${actionRgbPartialColor}, 0.3);
@@ -3,6 +3,5 @@
3
3
  * @public
4
4
  */
5
5
  import type { Button } from '@microsoft/fast-foundation';
6
- export type { ButtonAppearanceAttribute } from '../patterns/button/types';
7
6
  export { ButtonAppearance } from '../patterns/button/types';
8
7
  export declare type ButtonType = Button['type'];
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/button/types.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/button/types.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -16,8 +16,8 @@ const animationDurationWhenDisabledMilliseconds = 0.001;
16
16
  export class Drawer extends FoundationDialog {
17
17
  constructor() {
18
18
  super(...arguments);
19
- this.location = DrawerLocation.Left;
20
- this.state = DrawerState.Closed;
19
+ this.location = DrawerLocation.left;
20
+ this.state = DrawerState.closed;
21
21
  /**
22
22
  * True to prevent dismissing the drawer when the overlay outside the drawer is clicked.
23
23
  * Only applicable when 'modal' is set to true (i.e. when the overlay is used).
@@ -61,11 +61,11 @@ export class Drawer extends FoundationDialog {
61
61
  }
62
62
  show() {
63
63
  // Not calling super.show() as that will immediately show the drawer, whereas 'Opening' state will animate
64
- this.state = DrawerState.Opening;
64
+ this.state = DrawerState.opening;
65
65
  }
66
66
  hide() {
67
67
  // Not calling super.hide() as that will immediately hide the drawer, whereas 'Closing' state will animate
68
- this.state = DrawerState.Closing;
68
+ this.state = DrawerState.closing;
69
69
  }
70
70
  /**
71
71
  * Handler for overlay clicks (user-initiated dismiss requests) only.
@@ -98,11 +98,11 @@ export class Drawer extends FoundationDialog {
98
98
  }
99
99
  }
100
100
  onHiddenChanged() {
101
- if (this.hidden && this.state !== DrawerState.Closed) {
102
- this.state = DrawerState.Closed;
101
+ if (this.hidden && this.state !== DrawerState.closed) {
102
+ this.state = DrawerState.closed;
103
103
  }
104
- else if (!this.hidden && this.state === DrawerState.Closed) {
105
- this.state = DrawerState.Opened;
104
+ else if (!this.hidden && this.state === DrawerState.closed) {
105
+ this.state = DrawerState.opened;
106
106
  }
107
107
  }
108
108
  onLocationChanged() {
@@ -112,18 +112,18 @@ export class Drawer extends FoundationDialog {
112
112
  if (this.isConnected) {
113
113
  this.cancelCurrentAnimation();
114
114
  switch (this.state) {
115
- case DrawerState.Opening:
115
+ case DrawerState.opening:
116
116
  this.animateOpening();
117
117
  this.hidden = false;
118
118
  break;
119
- case DrawerState.Opened:
119
+ case DrawerState.opened:
120
120
  this.hidden = false;
121
121
  break;
122
- case DrawerState.Closing:
122
+ case DrawerState.closing:
123
123
  this.hidden = false;
124
124
  this.animateClosing();
125
125
  break;
126
- case DrawerState.Closed:
126
+ case DrawerState.closed:
127
127
  this.hidden = true;
128
128
  break;
129
129
  default:
@@ -152,7 +152,7 @@ export class Drawer extends FoundationDialog {
152
152
  this.animateOpenClose(false);
153
153
  }
154
154
  else {
155
- this.state = DrawerState.Closed;
155
+ this.state = DrawerState.closed;
156
156
  }
157
157
  }
158
158
  animateOpenClose(drawerOpening) {
@@ -162,7 +162,7 @@ export class Drawer extends FoundationDialog {
162
162
  : animationConfig.slideOutOptions),
163
163
  duration: this.animationDurationMilliseconds
164
164
  };
165
- const drawerKeyframes = this.location === DrawerLocation.Right
165
+ const drawerKeyframes = this.location === DrawerLocation.right
166
166
  ? animationConfig.slideRightKeyframes
167
167
  : animationConfig.slideLeftKeyframes;
168
168
  const dialogAnimation = new AnimateTo(this.dialog, undefined, options);
@@ -177,8 +177,8 @@ export class Drawer extends FoundationDialog {
177
177
  const animationGroup = new AnimateGroup(animations);
178
178
  animationGroup.onFinish = () => {
179
179
  this.state = drawerOpening
180
- ? DrawerState.Opened
181
- : DrawerState.Closed;
180
+ ? DrawerState.opened
181
+ : DrawerState.closed;
182
182
  };
183
183
  this.animationGroup = animationGroup;
184
184
  animationGroup.play();
@@ -1,12 +1,12 @@
1
- export declare enum DrawerLocation {
2
- Left = "left",
3
- Right = "right"
4
- }
5
- export declare type DrawerLocationAttribute = `${DrawerLocation}`;
6
- export declare enum DrawerState {
7
- Opening = "opening",
8
- Opened = "opened",
9
- Closing = "closing",
10
- Closed = "closed"
11
- }
12
- export declare type DrawerStateAttribute = `${DrawerState}`;
1
+ export declare const DrawerLocation: {
2
+ readonly left: "left";
3
+ readonly right: "right";
4
+ };
5
+ export declare type DrawerLocation = typeof DrawerLocation[keyof typeof DrawerLocation];
6
+ export declare const DrawerState: {
7
+ readonly opening: "opening";
8
+ readonly opened: "opened";
9
+ readonly closing: "closing";
10
+ readonly closed: "closed";
11
+ };
12
+ export declare type DrawerState = typeof DrawerState[keyof typeof DrawerState];
@@ -1,13 +1,11 @@
1
- export var DrawerLocation;
2
- (function (DrawerLocation) {
3
- DrawerLocation["Left"] = "left";
4
- DrawerLocation["Right"] = "right";
5
- })(DrawerLocation || (DrawerLocation = {}));
6
- export var DrawerState;
7
- (function (DrawerState) {
8
- DrawerState["Opening"] = "opening";
9
- DrawerState["Opened"] = "opened";
10
- DrawerState["Closing"] = "closing";
11
- DrawerState["Closed"] = "closed";
12
- })(DrawerState || (DrawerState = {}));
1
+ export const DrawerLocation = {
2
+ left: 'left',
3
+ right: 'right'
4
+ };
5
+ export const DrawerState = {
6
+ opening: 'opening',
7
+ opened: 'opened',
8
+ closing: 'closing',
9
+ closed: 'closed'
10
+ };
13
11
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/drawer/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,+BAAa,CAAA;IACb,iCAAe,CAAA;AACnB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAGD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;AACrB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/drawer/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACR,CAAC;AAGX,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC"}
@@ -2,10 +2,10 @@
2
2
  * Predefined icon status states
3
3
  * @public
4
4
  */
5
- export declare enum IconStatus {
6
- Fail = "fail",
7
- Warning = "warning",
8
- Pass = "pass",
9
- Regular = "regular"
10
- }
11
- export declare type IconStatusAttribute = `${IconStatus}`;
5
+ export declare const IconStatus: {
6
+ readonly fail: "fail";
7
+ readonly warning: "warning";
8
+ readonly pass: "pass";
9
+ readonly regular: "regular";
10
+ };
11
+ export declare type IconStatus = typeof IconStatus[keyof typeof IconStatus];
@@ -2,11 +2,10 @@
2
2
  * Predefined icon status states
3
3
  * @public
4
4
  */
5
- export var IconStatus;
6
- (function (IconStatus) {
7
- IconStatus["Fail"] = "fail";
8
- IconStatus["Warning"] = "warning";
9
- IconStatus["Pass"] = "pass";
10
- IconStatus["Regular"] = "regular";
11
- })(IconStatus || (IconStatus = {}));
5
+ export const IconStatus = {
6
+ fail: 'fail',
7
+ warning: 'warning',
8
+ pass: 'pass',
9
+ regular: 'regular'
10
+ };
12
11
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/icon-base/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,iCAAmB,CAAA;AACvB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/icon-base/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;CACZ,CAAC"}
@@ -12,7 +12,7 @@ import { MenuButtonPosition } from './types';
12
12
  export class MenuButton extends FoundationElement {
13
13
  constructor() {
14
14
  super(...arguments);
15
- this.appearance = ButtonAppearance.Outline;
15
+ this.appearance = ButtonAppearance.outline;
16
16
  this.disabled = false;
17
17
  this.contentHidden = false;
18
18
  /**
@@ -2,7 +2,6 @@
2
2
  * Types of menu button appearance.
3
3
  * @public
4
4
  */
5
- export type { ButtonAppearanceAttribute } from '../patterns/button/types';
6
5
  export { ButtonAppearance } from '../patterns/button/types';
7
6
  /**
8
7
  * The options of where to position the menu relative to the menu button.
@@ -1,8 +1,11 @@
1
+ /**
2
+ * Types of menu button appearance.
3
+ * @public
4
+ */
1
5
  export { ButtonAppearance } from '../patterns/button/types';
2
6
  /**
3
7
  * The options of where to position the menu relative to the menu button.
4
8
  */
5
- // eslint-disable-next-line @typescript-eslint/naming-convention
6
9
  export const MenuButtonPosition = {
7
10
  above: 'above',
8
11
  below: 'below',
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/menu-button/types.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACN,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/menu-button/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACN,CAAC"}
@@ -125,7 +125,7 @@ export const styles = css `
125
125
  }
126
126
  `
127
127
  // prettier-ignore
128
- .withBehaviors(appearanceBehavior(ButtonAppearance.Outline, css `
128
+ .withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
129
129
  .control {
130
130
  background-color: transparent;
131
131
  border-color: rgba(${actionRgbPartialColor}, 0.3);
@@ -150,7 +150,7 @@ export const styles = css `
150
150
  background-color: transparent;
151
151
  border-color: rgba(${borderRgbPartialColor}, 0.2);
152
152
  }
153
- `), appearanceBehavior(ButtonAppearance.Ghost, css `
153
+ `), appearanceBehavior(ButtonAppearance.ghost, css `
154
154
  .control {
155
155
  background-color: transparent;
156
156
  border-color: transparent;
@@ -175,7 +175,7 @@ export const styles = css `
175
175
  background-color: transparent;
176
176
  border-color: transparent;
177
177
  }
178
- `), appearanceBehavior(ButtonAppearance.Block, css `
178
+ `), appearanceBehavior(ButtonAppearance.block, css `
179
179
  .control {
180
180
  background-color: rgba(${borderRgbPartialColor}, 0.1);
181
181
  border-color: transparent;
@@ -22,9 +22,9 @@ export interface IButton {
22
22
  * Types of button appearance.
23
23
  * @public
24
24
  */
25
- export declare enum ButtonAppearance {
26
- Outline = "outline",
27
- Ghost = "ghost",
28
- Block = "block"
29
- }
30
- export declare type ButtonAppearanceAttribute = `${ButtonAppearance}`;
25
+ export declare const ButtonAppearance: {
26
+ readonly outline: "outline";
27
+ readonly ghost: "ghost";
28
+ readonly block: "block";
29
+ };
30
+ export declare type ButtonAppearance = typeof ButtonAppearance[keyof typeof ButtonAppearance];
@@ -2,10 +2,9 @@
2
2
  * Types of button appearance.
3
3
  * @public
4
4
  */
5
- export var ButtonAppearance;
6
- (function (ButtonAppearance) {
7
- ButtonAppearance["Outline"] = "outline";
8
- ButtonAppearance["Ghost"] = "ghost";
9
- ButtonAppearance["Block"] = "block";
10
- })(ButtonAppearance || (ButtonAppearance = {}));
5
+ export const ButtonAppearance = {
6
+ outline: 'outline',
7
+ ghost: 'ghost',
8
+ block: 'block'
9
+ };
11
10
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/patterns/button/types.ts"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,mCAAe,CAAA;AACnB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/patterns/button/types.ts"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACR,CAAC"}
@@ -16,7 +16,7 @@ export class TextArea extends FoundationTextArea {
16
16
  * @remarks
17
17
  * HTML Attribute: appearance
18
18
  */
19
- this.appearance = TextAreaAppearance.Outline;
19
+ this.appearance = TextAreaAppearance.outline;
20
20
  }
21
21
  }
22
22
  __decorate([
@@ -102,12 +102,12 @@ export const styles = css `
102
102
  }
103
103
  `
104
104
  // prettier-ignore
105
- .withBehaviors(appearanceBehavior(TextAreaAppearance.Outline, css `
105
+ .withBehaviors(appearanceBehavior(TextAreaAppearance.outline, css `
106
106
  .control {
107
107
  border-color: rgba(${borderRgbPartialColor}, 0.3);
108
108
  background-color: transparent;
109
109
  }
110
- `), appearanceBehavior(TextAreaAppearance.Block, css `
110
+ `), appearanceBehavior(TextAreaAppearance.block, css `
111
111
  .control {
112
112
  background-color: rgba(${borderRgbPartialColor}, 0.1);
113
113
  }
@@ -1,8 +1,7 @@
1
1
  import { TextAreaResize } from '@microsoft/fast-foundation';
2
2
  export { TextAreaResize };
3
- export declare type TextAreaResizeAttribute = `${TextAreaResize}`;
4
- export declare enum TextAreaAppearance {
5
- Outline = "outline",
6
- Block = "block"
7
- }
8
- export declare type TextAreaAppearanceAttribute = `${TextAreaAppearance}`;
3
+ export declare const TextAreaAppearance: {
4
+ readonly outline: "outline";
5
+ readonly block: "block";
6
+ };
7
+ export declare type TextAreaAppearance = typeof TextAreaAppearance[keyof typeof TextAreaAppearance];
@@ -1,8 +1,7 @@
1
1
  import { TextAreaResize } from '@microsoft/fast-foundation';
2
2
  export { TextAreaResize };
3
- export var TextAreaAppearance;
4
- (function (TextAreaAppearance) {
5
- TextAreaAppearance["Outline"] = "outline";
6
- TextAreaAppearance["Block"] = "block";
7
- })(TextAreaAppearance || (TextAreaAppearance = {}));
3
+ export const TextAreaAppearance = {
4
+ outline: 'outline',
5
+ block: 'block'
6
+ };
8
7
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/text-area/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,qCAAe,CAAA;AACnB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/text-area/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACR,CAAC"}
@@ -17,7 +17,7 @@ export class TextField extends FoundationTextField {
17
17
  * @remarks
18
18
  * HTML Attribute: appearance
19
19
  */
20
- this.appearance = TextFieldAppearance.Underline;
20
+ this.appearance = TextFieldAppearance.underline;
21
21
  }
22
22
  connectedCallback() {
23
23
  super.connectedCallback();
@@ -230,7 +230,7 @@ export const styles = css `
230
230
  slot[name='actions']::slotted(*) {
231
231
  ${controlHeight.cssCustomProperty}: 24px;
232
232
  }
233
- `.withBehaviors(appearanceBehavior(TextFieldAppearance.Underline, css `
233
+ `.withBehaviors(appearanceBehavior(TextFieldAppearance.underline, css `
234
234
  .root {
235
235
  --ni-private-bottom-border-width: 1px;
236
236
  padding-top: ${borderWidth};
@@ -245,7 +245,7 @@ export const styles = css `
245
245
  :host([disabled]) .root:hover {
246
246
  --ni-private-bottom-border-width: 1px;
247
247
  }
248
- `), appearanceBehavior(TextFieldAppearance.Block, css `
248
+ `), appearanceBehavior(TextFieldAppearance.block, css `
249
249
  .root {
250
250
  background-color: rgba(${borderRgbPartialColor}, 0.1);
251
251
  --ni-private-bottom-border-width: 0px;
@@ -290,7 +290,7 @@ export const styles = css `
290
290
  :host(.invalid[disabled]) .root {
291
291
  --ni-private-bottom-border-width: 1px;
292
292
  }
293
- `), appearanceBehavior(TextFieldAppearance.Outline, css `
293
+ `), appearanceBehavior(TextFieldAppearance.outline, css `
294
294
  .root {
295
295
  --ni-private-bottom-border-width: 1px;
296
296
  border-width: ${borderWidth};
@@ -300,7 +300,7 @@ export const styles = css `
300
300
  :host(.invalid) .errortext {
301
301
  top: calc(${controlHeight} - ${borderWidth});
302
302
  }
303
- `), appearanceBehavior(TextFieldAppearance.Frameless, css `
303
+ `), appearanceBehavior(TextFieldAppearance.frameless, css `
304
304
  .root {
305
305
  --ni-private-bottom-border-width: 0px;
306
306
  padding-top: ${borderWidth};
@@ -327,5 +327,5 @@ export const styles = css `
327
327
  }
328
328
  `,
329
329
  // Color theme
330
- Theme.Dark));
330
+ Theme.dark));
331
331
  //# sourceMappingURL=styles.js.map
@@ -1,22 +1,15 @@
1
1
  import { TextFieldType } from '@microsoft/fast-foundation';
2
- /**
3
- * Values for the 'type' attribute of the text field.
4
- */
5
- export declare type TextFieldTypeAttribute = `${TextFieldType}`;
6
2
  /**
7
3
  * Values for the 'type' property of the text field.
8
4
  */
9
5
  export { TextFieldType };
10
- /**
11
- * Values for the 'appearance' attribute of the text field.
12
- */
13
- export declare type TextFieldAppearanceAttribute = `${TextFieldAppearance}`;
14
6
  /**
15
7
  * Values for the 'appearance' property of the text field
16
8
  */
17
- export declare enum TextFieldAppearance {
18
- Underline = "underline",
19
- Outline = "outline",
20
- Block = "block",
21
- Frameless = "frameless"
22
- }
9
+ export declare const TextFieldAppearance: {
10
+ readonly underline: "underline";
11
+ readonly outline: "outline";
12
+ readonly block: "block";
13
+ readonly frameless: "frameless";
14
+ };
15
+ export declare type TextFieldAppearance = typeof TextFieldAppearance[keyof typeof TextFieldAppearance];
@@ -6,11 +6,10 @@ export { TextFieldType };
6
6
  /**
7
7
  * Values for the 'appearance' property of the text field
8
8
  */
9
- export var TextFieldAppearance;
10
- (function (TextFieldAppearance) {
11
- TextFieldAppearance["Underline"] = "underline";
12
- TextFieldAppearance["Outline"] = "outline";
13
- TextFieldAppearance["Block"] = "block";
14
- TextFieldAppearance["Frameless"] = "frameless";
15
- })(TextFieldAppearance || (TextFieldAppearance = {}));
9
+ export const TextFieldAppearance = {
10
+ underline: 'underline',
11
+ outline: 'outline',
12
+ block: 'block',
13
+ frameless: 'frameless'
14
+ };
16
15
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/text-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAO3D;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,CAAC;AAOzB;;GAEG;AACH,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;IACvB,0CAAmB,CAAA;IACnB,sCAAe,CAAA;IACf,8CAAuB,CAAA;AAC3B,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/text-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;CAChB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DesignToken } from '@microsoft/fast-foundation';
2
2
  import hexRgb from 'hex-rgb';
3
- import { Black7, Black91, Black85, Black15, Black30, Black75, Black80, White, ForestGreen, DigitalGreenLight, Fail100LightUi, SmallDelay, MediumDelay, LargeDelay, Fail100DarkUi, Warning100LightUi, Warning100DarkUi, Pass100LightUi, Pass100DarkUi, BodyFamily, BodySize, BodyWeight, ControlLabel1Family, ControlLabel1Size, ControlLabel1Weight, GroupLabel1Family, GroupLabel1Size, GroupLabel1Weight, Headline2Size, Headline2Family, Headline2Weight, Headline1Size, Headline1Family, Headline1Weight, Title3Size, Title3Family, Title3Weight, Title2Size, Title2Family, Title2Weight, Title1Size, Title1Family, Title1Weight, Subtitle2Size, Subtitle2Family, Subtitle2Weight, Subtitle1Size, Subtitle1Family, Subtitle1Weight, LinkLightUiSize, LinkLightUiFamily, LinkLightUiWeight, PlaceholderSize, PlaceholderFamily, PlaceholderWeight, BodyEmphasizedSize, BodyEmphasizedFamily, BodyEmphasizedWeight, ButtonLabel1Size, ButtonLabel1Family, ButtonLabel1Weight, TooltipCaptionSize, TooltipCaptionFamily, TooltipCaptionWeight, ErrorLightUiSize, ErrorLightUiFamily, ErrorLightUiWeight, Headline2LineHeight, Headline1LineHeight, Title3LineHeight, Title2LineHeight, Title1LineHeight, Subtitle2LineHeight, Subtitle1LineHeight, LinkLineHeight, PlaceholderLineHeight, BodyEmphasizedLineHeight, BodyLineHeight, GroupLabel1LineHeight, ControlLabel1LineHeight, ButtonLabel1LineHeight, TooltipCaptionLineHeight } from '@ni/nimble-tokens/dist/styledictionary/js/tokens';
3
+ import { Black7, Black91, Black85, Black15, Black30, Black75, Black88, White, ForestGreen, DigitalGreenLight, Fail100LightUi, SmallDelay, MediumDelay, LargeDelay, Fail100DarkUi, Warning100LightUi, Warning100DarkUi, Pass100LightUi, Pass100DarkUi, BodyFamily, BodySize, BodyWeight, ControlLabel1Family, ControlLabel1Size, ControlLabel1Weight, GroupLabel1Family, GroupLabel1Size, GroupLabel1Weight, Headline2Size, Headline2Family, Headline2Weight, Headline1Size, Headline1Family, Headline1Weight, Title3Size, Title3Family, Title3Weight, Title2Size, Title2Family, Title2Weight, Title1Size, Title1Family, Title1Weight, Subtitle2Size, Subtitle2Family, Subtitle2Weight, Subtitle1Size, Subtitle1Family, Subtitle1Weight, LinkLightUiSize, LinkLightUiFamily, LinkLightUiWeight, PlaceholderSize, PlaceholderFamily, PlaceholderWeight, BodyEmphasizedSize, BodyEmphasizedFamily, BodyEmphasizedWeight, ButtonLabel1Size, ButtonLabel1Family, ButtonLabel1Weight, TooltipCaptionSize, TooltipCaptionFamily, TooltipCaptionWeight, ErrorLightUiSize, ErrorLightUiFamily, ErrorLightUiWeight, Headline2LineHeight, Headline1LineHeight, Title3LineHeight, Title2LineHeight, Title1LineHeight, Subtitle2LineHeight, Subtitle1LineHeight, LinkLineHeight, PlaceholderLineHeight, BodyEmphasizedLineHeight, BodyLineHeight, GroupLabel1LineHeight, ControlLabel1LineHeight, ButtonLabel1LineHeight, TooltipCaptionLineHeight } from '@ni/nimble-tokens/dist/styledictionary/js/tokens';
4
4
  import { Theme } from './types';
5
5
  import { tokenNames, styleNameFromTokenName } from './design-token-names';
6
6
  import { theme } from '.';
@@ -8,7 +8,7 @@ import { hexToRgbaCssColor } from '../utilities/style/colors';
8
8
  // Color Tokens
9
9
  export const actionRgbPartialColor = DesignToken.create(styleNameFromTokenName(tokenNames.actionRgbPartialColor)).withDefault((element) => hexToRgbPartial(getColorForTheme(element, Black91, Black15, White)));
10
10
  export const applicationBackgroundColor = DesignToken.create(styleNameFromTokenName(tokenNames.applicationBackgroundColor)).withDefault((element) => getColorForTheme(element, White, Black85, ForestGreen));
11
- export const headerBackgroundColor = DesignToken.create(styleNameFromTokenName(tokenNames.headerBackgroundColor)).withDefault((element) => getColorForTheme(element, Black7, Black80, ForestGreen));
11
+ export const headerBackgroundColor = DesignToken.create(styleNameFromTokenName(tokenNames.headerBackgroundColor)).withDefault((element) => getColorForTheme(element, Black7, Black88, ForestGreen));
12
12
  export const sectionBackgroundColor = DesignToken.create(styleNameFromTokenName(tokenNames.sectionBackgroundColor)).withDefault((element) => getColorForTheme(element, Black30, Black91, ForestGreen));
13
13
  export const fillSelectedColor = DesignToken.create(styleNameFromTokenName(tokenNames.fillSelectedColor)).withDefault((element) => hexToRgbaCssColor(getFillSelectedColorForTheme(element), 0.2));
14
14
  export const fillSelectedRgbPartialColor = DesignToken.create(styleNameFromTokenName(tokenNames.fillSelectedRgbPartialColor)).withDefault((element) => hexToRgbPartial(getFillSelectedColorForTheme(element)));
@@ -96,11 +96,11 @@ function createFontTokens(fontTokenName, colorFunction, disabledColorFunction, f
96
96
  }
97
97
  function getColorForTheme(element, lightThemeColor, darkThemeColor, colorThemeColor) {
98
98
  switch (theme.getValueFor(element)) {
99
- case Theme.Light:
99
+ case Theme.light:
100
100
  return lightThemeColor;
101
- case Theme.Dark:
101
+ case Theme.dark:
102
102
  return darkThemeColor;
103
- case Theme.Color:
103
+ case Theme.color:
104
104
  return colorThemeColor;
105
105
  default:
106
106
  return lightThemeColor;
@@ -14,7 +14,7 @@ export const direction = DesignToken.create({
14
14
  export const theme = DesignToken.create({
15
15
  name: 'theme',
16
16
  cssCustomPropertyName: null
17
- }).withDefault(Theme.Light);
17
+ }).withDefault(Theme.light);
18
18
  /**
19
19
  * The ThemeProvider implementation. Add this component to the page and set its `theme` attribute to control
20
20
  * the values of design tokens that provide colors and fonts as CSS custom properties to any descendant components.
@@ -24,7 +24,7 @@ export class ThemeProvider extends FoundationElement {
24
24
  constructor() {
25
25
  super(...arguments);
26
26
  this.direction = Direction.ltr;
27
- this.theme = Theme.Light;
27
+ this.theme = Theme.light;
28
28
  }
29
29
  directionChanged(_prev, next) {
30
30
  if (next !== undefined && next !== null) {
@@ -1,6 +1,6 @@
1
- export declare enum Theme {
2
- Light = "light",
3
- Dark = "dark",
4
- Color = "color"
5
- }
6
- export declare type ThemeAttribute = `${Theme}`;
1
+ export declare const Theme: {
2
+ readonly light: "light";
3
+ readonly dark: "dark";
4
+ readonly color: "color";
5
+ };
6
+ export declare type Theme = typeof Theme[keyof typeof Theme];
@@ -1,7 +1,6 @@
1
- export var Theme;
2
- (function (Theme) {
3
- Theme["Light"] = "light";
4
- Theme["Dark"] = "dark";
5
- Theme["Color"] = "color";
6
- })(Theme || (Theme = {}));
1
+ export const Theme = {
2
+ light: 'light',
3
+ dark: 'dark',
4
+ color: 'color'
5
+ };
7
6
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/theme-provider/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,KAIX;AAJD,WAAY,KAAK;IACb,wBAAe,CAAA;IACf,sBAAa,CAAA;IACb,wBAAe,CAAA;AACnB,CAAC,EAJW,KAAK,KAAL,KAAK,QAIhB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/theme-provider/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACR,CAAC"}
@@ -15,7 +15,7 @@ export class ToggleButton extends FoundationSwitch {
15
15
  * @remarks
16
16
  * HTML Attribute: appearance
17
17
  */
18
- this.appearance = ButtonAppearance.Outline;
18
+ this.appearance = ButtonAppearance.outline;
19
19
  /**
20
20
  * @public
21
21
  * @remarks
@@ -2,5 +2,4 @@
2
2
  * Types of toggle button appearance.
3
3
  * @public
4
4
  */
5
- export type { ButtonAppearanceAttribute } from '../patterns/button/types';
6
5
  export { ButtonAppearance } from '../patterns/button/types';
@@ -1,2 +1,6 @@
1
+ /**
2
+ * Types of toggle button appearance.
3
+ * @public
4
+ */
1
5
  export { ButtonAppearance } from '../patterns/button/types';
2
6
  //# sourceMappingURL=types.js.map