@react-fabric/core 1.0.0-beta.35 → 1.0.0-beta.37

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 (296) hide show
  1. package/{src/components/actionLabel/ActionLabel.module.css → css/components/_actionLabel.css} +4 -4
  2. package/{src/overlays/alert/Alert.module.css → css/components/_alert.css} +2 -2
  3. package/{src/components/animations/Animations.module.css → css/components/_animations.css} +9 -9
  4. package/{src/components/avatar/Avatar.module.css → css/components/_avatar.css} +11 -11
  5. package/{src/components/badge/Badge.module.css → css/components/_badge.css} +19 -17
  6. package/{src/components/breadcrumbs/Breadcrumbs.module.css → css/components/_breadcrumbs.css} +49 -44
  7. package/{src/components/button/Button.module.css → css/components/_button.css} +63 -80
  8. package/{src/components/card/Card.module.css → css/components/_card.css} +32 -28
  9. package/{src/components/chip/Chip.module.css → css/components/_chip.css} +11 -10
  10. package/{src/components/collapsable/Collapsable.module.css → css/components/_collapsable.css} +3 -3
  11. package/{src/components/divider/Divider.module.css → css/components/_divider.css} +3 -3
  12. package/{src/components/dropdown/Dropdown.module.css → css/components/_dropdown.css} +2 -2
  13. package/{src/overlays/flyout/Flyout.module.css → css/components/_flyout.css} +6 -6
  14. package/{src/components/icon/Icon.module.css → css/components/_icon.css} +8 -4
  15. package/{src/components/media/Media.module.css → css/components/_media.css} +17 -17
  16. package/{src/components/menu/Menu.module.css → css/components/_menu.css} +15 -16
  17. package/{src/overlays/message/Message.module.css → css/components/_message.css} +2 -2
  18. package/{src/components/meter/Meter.module.css → css/components/_meter.css} +10 -10
  19. package/{src/overlays/modal/Modal.module.css → css/components/_modal.css} +6 -6
  20. package/{src/components/panel/Panel.module.css → css/components/_panel.css} +17 -17
  21. package/{src/components/progress/Progress.module.css → css/components/_progress.css} +7 -10
  22. package/{src/components/tabpanel/TabPanel.module.css → css/components/_tabPanel.css} +43 -43
  23. package/{src/overlays/toast/Toast.module.css → css/components/_toast.css} +2 -2
  24. package/css/components/_tooltip.css +29 -0
  25. package/css/components/index.css +47 -0
  26. package/{src/core/aside/Aside.module.css → css/core/_aside.css} +42 -42
  27. package/{src/core/content/Content.module.css → css/core/_content.css} +9 -5
  28. package/{src/core/boundary/ErrorBoundary.module.css → css/core/_errorboundary.css} +9 -9
  29. package/{src/core/headfoot/HeadFoot.module.css → css/core/_headfoot.css} +4 -4
  30. package/{src/core/page/Page.module.css → css/core/_page.css} +12 -8
  31. package/{src/core/responsive/Responsive.module.css → css/core/_responsive.css} +10 -10
  32. package/{src/core/section/Section.module.css → css/core/_section.css} +2 -2
  33. package/{src/core/theme/Theme.module.css → css/core/_theme.css} +3 -3
  34. package/{src/typography/Typography.module.css → css/core/_typography.css} +12 -12
  35. package/{src/core/viewport/Viewport.module.css → css/core/_viewport.css} +7 -3
  36. package/css/core/index.css +33 -0
  37. package/css/reset/_gradients.css +8 -8
  38. package/css/reset/_reset.css +41 -223
  39. package/css/reset/_text.css +14 -29
  40. package/css/reset/_theme.css +314 -32
  41. package/css/reset/index.css +4 -4
  42. package/css/styles.css +7 -6
  43. package/css/theme/_colors.css +320 -0
  44. package/css/theme/_utilities.css +512 -0
  45. package/css/theme/index.css +44 -0
  46. package/dist/cjs/components/actionLabel/ActionLabel.js +2 -3
  47. package/dist/cjs/components/animations/Animations.js +14 -10
  48. package/dist/cjs/components/avatar/Avatar.js +2 -3
  49. package/dist/cjs/components/avatar/AvatarGroup.js +2 -3
  50. package/dist/cjs/components/badge/Badge.js +2 -3
  51. package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +5 -6
  52. package/dist/cjs/components/button/Button.js +13 -10
  53. package/dist/cjs/components/button/ButtonGroup.js +1 -2
  54. package/dist/cjs/components/button/ToggleButtonGroup.js +1 -2
  55. package/dist/cjs/components/callout/Callout.js +11 -5
  56. package/dist/cjs/components/card/Card.js +3 -4
  57. package/dist/cjs/components/card/CardCover.js +9 -4
  58. package/dist/cjs/components/chip/Chip.js +4 -5
  59. package/dist/cjs/components/collapsable/Collapsable.js +3 -4
  60. package/dist/cjs/components/divider/Divider.js +9 -7
  61. package/dist/cjs/components/dropdown/Dropdown.js +2 -3
  62. package/dist/cjs/components/dropdown/DropdownTool.js +1 -1
  63. package/dist/cjs/components/icon/Icon.js +1 -2
  64. package/dist/cjs/components/media/Media.js +15 -11
  65. package/dist/cjs/components/menu/Menu.js +1 -1
  66. package/dist/cjs/components/menu/MenuItem.js +2 -3
  67. package/dist/cjs/components/meter/Meter.js +2 -3
  68. package/dist/cjs/components/navigator/Navigator.js +1 -1
  69. package/dist/cjs/components/panel/Panel.js +7 -8
  70. package/dist/cjs/components/panel/PanelGroup.js +1 -2
  71. package/dist/cjs/components/progress/ProgressBar.js +4 -4
  72. package/dist/cjs/components/progress/ProgressCircle.js +4 -3
  73. package/dist/cjs/components/tabpanel/Tab.js +1 -2
  74. package/dist/cjs/components/tabpanel/TabPanel.js +3 -4
  75. package/dist/cjs/core/aside/Aside.js +9 -10
  76. package/dist/cjs/core/boundary/ErrorBoundary.js +6 -7
  77. package/dist/cjs/core/boundary/ErrorIcon.js +1 -2
  78. package/dist/cjs/core/content/Content.js +1 -2
  79. package/dist/cjs/core/headfoot/HeadFoot.js +2 -21
  80. package/dist/cjs/core/page/Page.js +2 -3
  81. package/dist/cjs/core/responsive/Responsive.js +3 -4
  82. package/dist/cjs/core/section/Section.js +1 -2
  83. package/dist/cjs/core/theme/ThemeProvider.js +7 -8
  84. package/dist/cjs/core/viewport/Viewport.js +4 -2
  85. package/dist/cjs/overlays/alert/Alert.js +14 -8
  86. package/dist/cjs/overlays/flyout/Flyout.js +4 -5
  87. package/dist/cjs/overlays/message/Message.js +5 -2
  88. package/dist/cjs/overlays/modal/Modal.js +4 -5
  89. package/dist/cjs/overlays/toast/Toast.js +16 -8
  90. package/dist/cjs/overlays/tooltip/Tooltip.js +19 -7
  91. package/dist/cjs/typography/Abbr.js +1 -2
  92. package/dist/cjs/typography/Anchor.js +1 -1
  93. package/dist/cjs/typography/Mark.js +1 -2
  94. package/dist/cjs/typography/Text.js +2 -3
  95. package/dist/cjs/typography/Title.js +1 -2
  96. package/dist/cjs/utils/getColor.js +1 -18
  97. package/dist/esm/components/actionLabel/ActionLabel.js +2 -3
  98. package/dist/esm/components/animations/Animations.js +15 -11
  99. package/dist/esm/components/avatar/Avatar.js +3 -4
  100. package/dist/esm/components/avatar/AvatarGroup.js +2 -3
  101. package/dist/esm/components/badge/Badge.js +2 -3
  102. package/dist/esm/components/breadcrumbs/Breadcrumbs.js +5 -6
  103. package/dist/esm/components/button/Button.js +13 -10
  104. package/dist/esm/components/button/ButtonGroup.js +1 -2
  105. package/dist/esm/components/button/ToggleButtonGroup.js +1 -2
  106. package/dist/esm/components/callout/Callout.js +11 -5
  107. package/dist/esm/components/card/Card.js +3 -4
  108. package/dist/esm/components/card/CardCover.js +9 -4
  109. package/dist/esm/components/chip/Chip.js +5 -6
  110. package/dist/esm/components/collapsable/Collapsable.js +3 -4
  111. package/dist/esm/components/divider/Divider.js +10 -8
  112. package/dist/esm/components/dropdown/Dropdown.js +2 -3
  113. package/dist/esm/components/dropdown/DropdownTool.js +1 -1
  114. package/dist/esm/components/icon/Icon.js +2 -3
  115. package/dist/esm/components/media/Media.js +15 -11
  116. package/dist/esm/components/menu/Menu.js +1 -1
  117. package/dist/esm/components/menu/MenuItem.js +2 -3
  118. package/dist/esm/components/meter/Meter.js +2 -3
  119. package/dist/esm/components/navigator/Navigator.js +1 -1
  120. package/dist/esm/components/panel/Panel.js +7 -8
  121. package/dist/esm/components/panel/PanelGroup.js +1 -2
  122. package/dist/esm/components/progress/ProgressBar.js +5 -5
  123. package/dist/esm/components/progress/ProgressCircle.js +5 -4
  124. package/dist/esm/components/tabpanel/Tab.js +1 -2
  125. package/dist/esm/components/tabpanel/TabPanel.js +3 -4
  126. package/dist/esm/core/aside/Aside.js +9 -10
  127. package/dist/esm/core/boundary/ErrorBoundary.js +6 -7
  128. package/dist/esm/core/boundary/ErrorIcon.js +1 -2
  129. package/dist/esm/core/content/Content.js +1 -2
  130. package/dist/esm/core/headfoot/HeadFoot.js +2 -21
  131. package/dist/esm/core/page/Page.js +2 -3
  132. package/dist/esm/core/responsive/Responsive.js +3 -4
  133. package/dist/esm/core/section/Section.js +1 -2
  134. package/dist/esm/core/theme/ThemeProvider.js +7 -8
  135. package/dist/esm/core/viewport/Viewport.js +4 -2
  136. package/dist/esm/overlays/alert/Alert.js +15 -9
  137. package/dist/esm/overlays/flyout/Flyout.js +4 -5
  138. package/dist/esm/overlays/message/Message.js +6 -3
  139. package/dist/esm/overlays/modal/Modal.js +4 -5
  140. package/dist/esm/overlays/toast/Toast.js +17 -9
  141. package/dist/esm/overlays/tooltip/Tooltip.js +19 -7
  142. package/dist/esm/typography/Abbr.js +2 -3
  143. package/dist/esm/typography/Anchor.js +2 -2
  144. package/dist/esm/typography/Mark.js +2 -3
  145. package/dist/esm/typography/Text.js +3 -4
  146. package/dist/esm/typography/Title.js +2 -3
  147. package/dist/esm/utils/getColor.js +2 -16
  148. package/dist/types/components/animations/Animations.d.ts +4 -4
  149. package/dist/types/components/avatar/Avatar.d.ts +3 -3
  150. package/dist/types/components/button/Button.d.ts +2 -2
  151. package/dist/types/components/button/ButtonGroup.d.ts +2 -2
  152. package/dist/types/components/callout/Callout.d.ts +2 -2
  153. package/dist/types/components/chip/Chip.d.ts +2 -2
  154. package/dist/types/components/divider/Divider.d.ts +7 -3
  155. package/dist/types/components/icon/Icon.d.ts +3 -3
  156. package/dist/types/components/menu/types.d.ts +2 -2
  157. package/dist/types/components/navigator/Navigator.d.ts +2 -2
  158. package/dist/types/components/progress/ProgressBar.d.ts +2 -2
  159. package/dist/types/components/progress/ProgressCircle.d.ts +2 -2
  160. package/dist/types/components/tabpanel/Tab.d.ts +2 -2
  161. package/dist/types/core/headfoot/HeadFoot.d.ts +1 -9
  162. package/dist/types/core/theme/ThemeProvider.d.ts +3 -3
  163. package/dist/types/overlays/alert/Alert.d.ts +2 -2
  164. package/dist/types/overlays/message/Message.d.ts +2 -2
  165. package/dist/types/overlays/toast/Toast.d.ts +2 -2
  166. package/dist/types/overlays/tooltip/Tooltip.d.ts +1 -1
  167. package/dist/types/types/index.d.ts +10 -5
  168. package/dist/types/typography/Abbr.d.ts +6 -2
  169. package/dist/types/typography/Anchor.d.ts +3 -3
  170. package/dist/types/typography/Mark.d.ts +2 -2
  171. package/dist/types/utils/getColor.d.ts +1 -4
  172. package/package.json +16 -7
  173. package/src/components/actionLabel/ActionLabel.tsx +2 -3
  174. package/src/components/animations/Animations.tsx +19 -19
  175. package/src/components/avatar/Avatar.tsx +6 -8
  176. package/src/components/avatar/AvatarGroup.tsx +3 -4
  177. package/src/components/badge/Badge.tsx +3 -4
  178. package/src/components/breadcrumbs/Breadcrumbs.tsx +5 -6
  179. package/src/components/button/Button.tsx +15 -13
  180. package/src/components/button/ButtonGroup.tsx +4 -5
  181. package/src/components/button/ToggleButtonGroup.tsx +2 -3
  182. package/src/components/callout/Callout.tsx +14 -8
  183. package/src/components/card/Card.tsx +6 -7
  184. package/src/components/card/CardCover.tsx +11 -6
  185. package/src/components/chip/Chip.tsx +9 -10
  186. package/src/components/collapsable/Collapsable.tsx +3 -4
  187. package/src/components/divider/Divider.tsx +15 -11
  188. package/src/components/dropdown/Dropdown.tsx +2 -3
  189. package/src/components/dropdown/DropdownTool.tsx +1 -1
  190. package/src/components/icon/Icon.tsx +7 -9
  191. package/src/components/media/Media.tsx +19 -14
  192. package/src/components/menu/Menu.tsx +1 -1
  193. package/src/components/menu/MenuItem.tsx +5 -6
  194. package/src/components/menu/types.ts +2 -2
  195. package/src/components/meter/Meter.tsx +2 -3
  196. package/src/components/navigator/Navigator.tsx +4 -3
  197. package/src/components/panel/Panel.tsx +7 -8
  198. package/src/components/panel/PanelGroup.tsx +1 -2
  199. package/src/components/progress/ProgressBar.tsx +8 -9
  200. package/src/components/progress/ProgressCircle.tsx +6 -9
  201. package/src/components/tabpanel/Tab.tsx +3 -4
  202. package/src/components/tabpanel/TabPanel.tsx +3 -4
  203. package/src/core/aside/Aside.tsx +9 -10
  204. package/src/core/boundary/ErrorBoundary.tsx +8 -7
  205. package/src/core/boundary/ErrorIcon.tsx +1 -2
  206. package/src/core/content/Content.tsx +1 -2
  207. package/src/core/headfoot/HeadFoot.tsx +1 -34
  208. package/src/core/page/Page.tsx +2 -3
  209. package/src/core/responsive/Responsive.tsx +4 -5
  210. package/src/core/section/Section.tsx +1 -2
  211. package/src/core/theme/ThemeProvider.tsx +10 -11
  212. package/src/core/viewport/Viewport.tsx +1 -2
  213. package/src/overlays/alert/Alert.tsx +19 -27
  214. package/src/overlays/flyout/Flyout.tsx +4 -5
  215. package/src/overlays/message/Message.tsx +10 -7
  216. package/src/overlays/modal/Modal.tsx +4 -5
  217. package/src/overlays/toast/Toast.tsx +18 -27
  218. package/src/overlays/tooltip/Tooltip.tsx +28 -7
  219. package/src/types/index.ts +230 -18
  220. package/src/typography/Abbr.tsx +15 -9
  221. package/src/typography/Anchor.tsx +5 -10
  222. package/src/typography/Mark.tsx +4 -9
  223. package/src/typography/Text.tsx +3 -11
  224. package/src/typography/Title.tsx +2 -5
  225. package/src/utils/getColor.ts +1 -17
  226. package/css/index.js +0 -250
  227. package/css/tailwind/colors.ts +0 -158
  228. package/dist/cjs/components/actionLabel/ActionLabel.module.css +0 -1
  229. package/dist/cjs/components/animations/Animations.module.css +0 -1
  230. package/dist/cjs/components/avatar/Avatar.module.css +0 -1
  231. package/dist/cjs/components/badge/Badge.module.css +0 -1
  232. package/dist/cjs/components/breadcrumbs/Breadcrumbs.module.css +0 -1
  233. package/dist/cjs/components/button/Button.module.css +0 -1
  234. package/dist/cjs/components/card/Card.module.css +0 -1
  235. package/dist/cjs/components/chip/Chip.module.css +0 -1
  236. package/dist/cjs/components/collapsable/Collapsable.module.css +0 -1
  237. package/dist/cjs/components/divider/Divider.module.css +0 -1
  238. package/dist/cjs/components/dropdown/Dropdown.module.css +0 -1
  239. package/dist/cjs/components/icon/Icon.module.css +0 -1
  240. package/dist/cjs/components/media/Media.module.css +0 -1
  241. package/dist/cjs/components/menu/Menu.module.css +0 -1
  242. package/dist/cjs/components/meter/Meter.module.css +0 -1
  243. package/dist/cjs/components/panel/Panel.module.css +0 -1
  244. package/dist/cjs/components/progress/Progress.module.css +0 -1
  245. package/dist/cjs/components/tabpanel/TabPanel.module.css +0 -1
  246. package/dist/cjs/core/aside/Aside.module.css +0 -1
  247. package/dist/cjs/core/boundary/ErrorBoundary.module.css +0 -1
  248. package/dist/cjs/core/content/Content.module.css +0 -1
  249. package/dist/cjs/core/headfoot/HeadFoot.module.css +0 -1
  250. package/dist/cjs/core/page/Page.module.css +0 -1
  251. package/dist/cjs/core/responsive/Responsive.module.css +0 -1
  252. package/dist/cjs/core/section/Section.module.css +0 -1
  253. package/dist/cjs/core/theme/Theme.module.css +0 -1
  254. package/dist/cjs/core/viewport/Viewport.module.css +0 -1
  255. package/dist/cjs/overlays/alert/Alert.module.css +0 -1
  256. package/dist/cjs/overlays/flyout/Flyout.module.css +0 -1
  257. package/dist/cjs/overlays/message/Message.module.css +0 -1
  258. package/dist/cjs/overlays/modal/Modal.module.css +0 -1
  259. package/dist/cjs/overlays/toast/Toast.module.css +0 -1
  260. package/dist/cjs/overlays/tooltip/Tooltip.module.css +0 -1
  261. package/dist/cjs/typography/Typography.module.css +0 -1
  262. package/dist/esm/components/actionLabel/ActionLabel.module.css +0 -1
  263. package/dist/esm/components/animations/Animations.module.css +0 -1
  264. package/dist/esm/components/avatar/Avatar.module.css +0 -1
  265. package/dist/esm/components/badge/Badge.module.css +0 -1
  266. package/dist/esm/components/breadcrumbs/Breadcrumbs.module.css +0 -1
  267. package/dist/esm/components/button/Button.module.css +0 -1
  268. package/dist/esm/components/card/Card.module.css +0 -1
  269. package/dist/esm/components/chip/Chip.module.css +0 -1
  270. package/dist/esm/components/collapsable/Collapsable.module.css +0 -1
  271. package/dist/esm/components/divider/Divider.module.css +0 -1
  272. package/dist/esm/components/dropdown/Dropdown.module.css +0 -1
  273. package/dist/esm/components/icon/Icon.module.css +0 -1
  274. package/dist/esm/components/media/Media.module.css +0 -1
  275. package/dist/esm/components/menu/Menu.module.css +0 -1
  276. package/dist/esm/components/meter/Meter.module.css +0 -1
  277. package/dist/esm/components/panel/Panel.module.css +0 -1
  278. package/dist/esm/components/progress/Progress.module.css +0 -1
  279. package/dist/esm/components/tabpanel/TabPanel.module.css +0 -1
  280. package/dist/esm/core/aside/Aside.module.css +0 -1
  281. package/dist/esm/core/boundary/ErrorBoundary.module.css +0 -1
  282. package/dist/esm/core/content/Content.module.css +0 -1
  283. package/dist/esm/core/headfoot/HeadFoot.module.css +0 -1
  284. package/dist/esm/core/page/Page.module.css +0 -1
  285. package/dist/esm/core/responsive/Responsive.module.css +0 -1
  286. package/dist/esm/core/section/Section.module.css +0 -1
  287. package/dist/esm/core/theme/Theme.module.css +0 -1
  288. package/dist/esm/core/viewport/Viewport.module.css +0 -1
  289. package/dist/esm/overlays/alert/Alert.module.css +0 -1
  290. package/dist/esm/overlays/flyout/Flyout.module.css +0 -1
  291. package/dist/esm/overlays/message/Message.module.css +0 -1
  292. package/dist/esm/overlays/modal/Modal.module.css +0 -1
  293. package/dist/esm/overlays/toast/Toast.module.css +0 -1
  294. package/dist/esm/overlays/tooltip/Tooltip.module.css +0 -1
  295. package/dist/esm/typography/Typography.module.css +0 -1
  296. package/src/overlays/tooltip/Tooltip.module.css +0 -53
@@ -21,9 +21,9 @@
21
21
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  */
23
23
 
24
- @layer comp {
25
- .mediaContainer {
26
- &.mediaReel {
24
+ @layer components {
25
+ .fabric-mediaContainer {
26
+ &.fabric-mediaReel {
27
27
  &::after,
28
28
  &::before {
29
29
  content: "";
@@ -57,54 +57,54 @@
57
57
  }
58
58
  }
59
59
 
60
- & .mediaPlaceholder {
60
+ & .fabric-mediaPlaceholder {
61
61
  /* might add styles later */
62
62
  }
63
63
 
64
- & .mediaControls {
64
+ & .fabric-mediaControls {
65
65
  & [data-ref="button"] {
66
66
  margin: 0;
67
67
 
68
68
  & > :first-child {
69
69
  color: #fff;
70
- background-color: theme(colors.black/50%);
70
+ background-color: var(--color-black/50%);
71
71
 
72
72
  &:hover {
73
- color: theme(colors.primary.600);
74
- background-color: theme(colors.black/80%);
73
+ color: var(--color-primary-600);
74
+ background-color: var(--color-black/80%);
75
75
  }
76
76
  }
77
77
  }
78
78
 
79
- & .mediaControlAction > :first-child {
80
- background-color: theme(colors.black/70%);
79
+ & .fabric-mediaControlAction > :first-child {
80
+ background-color: var(--color-black/70%);
81
81
  }
82
82
 
83
- & .mediaControlPlaceholder {
83
+ & .fabric-mediaControlPlaceholder {
84
84
  /* might add styles later */
85
85
  }
86
86
 
87
- & .mediaControlAction + .mediaControlAction {
87
+ & .fabric-mediaControlAction + .fabric-mediaControlAction {
88
88
  margin-top: 8px;
89
89
  }
90
90
  }
91
91
  }
92
92
 
93
- .media {
93
+ .fabric-media {
94
94
  /* might add styles later */
95
95
  }
96
96
  }
97
97
 
98
- @layer util {
99
- & .mediaControls {
98
+ @layer utilities {
99
+ & .fabric-mediaControls {
100
100
  &:hover {
101
- & .mediaControlPlaceholder {
101
+ & .fabric-mediaControlPlaceholder {
102
102
  display: none;
103
103
  }
104
104
  }
105
105
 
106
106
  &:not(:hover) {
107
- & .mediaControlAction {
107
+ & .fabric-mediaControlAction {
108
108
  display: none;
109
109
  }
110
110
  }
@@ -21,34 +21,34 @@
21
21
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  */
23
23
 
24
- @layer comp {
25
- .menuItem {
26
- --color: theme(colors.primary.DEFAULT);
24
+ @layer components {
25
+ .fabric-menuItem {
26
+ --color: var(--color-primary-500);
27
27
 
28
28
  &[data-color="accent"] {
29
- --color: theme(colors.accent.DEFAULT);
29
+ --color: var(--color-accent-500);
30
30
  }
31
31
 
32
32
  &[data-color="info"] {
33
- --color: theme(colors.info.DEFAULT);
33
+ --color: var(--color-info-500);
34
34
  }
35
35
 
36
36
  &[data-color="danger"] {
37
- --color: theme(colors.danger.DEFAULT);
37
+ --color: var(--color-danger-500);
38
38
  }
39
39
 
40
40
  &[data-color="success"] {
41
- --color: theme(colors.success.DEFAULT);
41
+ --color: var(--color-success-500);
42
42
  }
43
43
 
44
44
  &[data-color="warning"] {
45
- --color: theme(colors.warning.DEFAULT);
45
+ --color: var(--color-warning-500);
46
46
  }
47
47
  }
48
48
  }
49
49
 
50
- @layer var {
51
- .menuItem {
50
+ @layer variants {
51
+ .fabric-menuItem {
52
52
  color: color-mix(in lab, var(--color) 80%, var(--fabric-text));
53
53
 
54
54
  > * {
@@ -67,15 +67,14 @@
67
67
  background-color: color(from var(--color) srgb r g b / 10%);
68
68
  }
69
69
 
70
- &.active,
71
- &:global(.active) {
70
+ &.active {
72
71
  pointer-events: none;
73
72
  background-color: color(from var(--color) srgb r g b / 20%);
74
73
 
75
74
  & > div {
76
75
  box-shadow: 4px 0 0 var(--color) inset;
77
76
 
78
- :global([dir="rtl"]) & {
77
+ @variant rtl {
79
78
  box-shadow: -4px 0 0 var(--color) inset;
80
79
  }
81
80
  }
@@ -83,7 +82,7 @@
83
82
 
84
83
  &.disabled {
85
84
  pointer-events: none;
86
- color: theme(textColor.tint.500);
85
+ color: var(--text-tint-500);
87
86
  opacity: 0.5;
88
87
 
89
88
  & > label ~ * {
@@ -92,7 +91,7 @@
92
91
  }
93
92
  }
94
93
 
95
- .menuIcon {
94
+ .fabric-menuIcon {
96
95
  padding: 0.3em;
97
96
  font-size: 1.25em;
98
97
 
@@ -103,7 +102,7 @@
103
102
  }
104
103
  }
105
104
 
106
- :global(.menu-list.hide-icons) .menuIcon {
105
+ .fabric-menu-list.hide-icons .fabric-menuIcon {
107
106
  width: 0.125em;
108
107
  }
109
108
  }
@@ -21,8 +21,8 @@
21
21
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  */
23
23
 
24
- @layer comp {
25
- .message {
24
+ @layer components {
25
+ .fabric-message {
26
26
  margin-top: -100%;
27
27
  opacity: 0;
28
28
  transition:
@@ -21,9 +21,9 @@
21
21
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  */
23
23
 
24
- @layer comp {
25
- .meter {
26
- & .meterBar {
24
+ @layer components {
25
+ .fabric-meter {
26
+ & .fabric-meterBar {
27
27
  flex: 1 1 1rem;
28
28
 
29
29
  min-width: 1rem;
@@ -42,7 +42,7 @@
42
42
  line-height: 1;
43
43
  }
44
44
 
45
- & .meterBar[data-active="true"] {
45
+ & .fabric-meterBar[data-active="true"] {
46
46
  &:nth-child(1),
47
47
  &:nth-child(2),
48
48
  &:nth-child(3),
@@ -80,12 +80,12 @@
80
80
  }
81
81
  }
82
82
 
83
- &[class*="text-primary"] .meterBar[data-active="true"],
84
- &[class*="text-accent"] .meterBar[data-active="true"],
85
- &[class*="text-info"] .meterBar[data-active="true"],
86
- &[class*="text-danger"] .meterBar[data-active="true"],
87
- &[class*="text-success"] .meterBar[data-active="true"],
88
- &[class*="text-warning"] .meterBar[data-active="true"] {
83
+ &[class*="text-primary"] .fabric-meterBar[data-active="true"],
84
+ &[class*="text-accent"] .fabric-meterBar[data-active="true"],
85
+ &[class*="text-info"] .fabric-meterBar[data-active="true"],
86
+ &[class*="text-danger"] .fabric-meterBar[data-active="true"],
87
+ &[class*="text-success"] .fabric-meterBar[data-active="true"],
88
+ &[class*="text-warning"] .fabric-meterBar[data-active="true"] {
89
89
  color: currentColor;
90
90
 
91
91
  &:nth-child(1)::after {
@@ -21,8 +21,8 @@
21
21
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  */
23
23
 
24
- @layer comp {
25
- .modal {
24
+ @layer components {
25
+ .fabric-modal {
26
26
  z-index: var(--z-overlay);
27
27
 
28
28
  width: 32rem;
@@ -41,12 +41,12 @@
41
41
  opacity: 1;
42
42
  }
43
43
 
44
- & .modalHeader {
45
- background-color: theme(backgroundColor.base);
46
- border-bottom: 0.5px solid theme(borderColor.dimmed);
44
+ & .fabric-modalHeader {
45
+ background-color: var(--bg-color-base);
46
+ border-bottom: 0.5px solid var(--border-color-dimmed);
47
47
  }
48
48
 
49
- & .modalBody {
49
+ & .fabric-modalBody {
50
50
  grid-template: "head head head" auto ". loader ." auto "side-s content side-e" 1fr "foot foot foot" auto / auto 1fr auto;
51
51
  }
52
52
  }
@@ -21,36 +21,36 @@
21
21
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  */
23
23
 
24
- @layer comp {
25
- .panel {
24
+ @layer components {
25
+ .fabric-panel {
26
26
  grid-template: "head" auto "content" 1fr / 1fr;
27
- background-color: theme(colors.bg);
27
+ background-color: var(--color-bg);
28
28
 
29
29
  & > * {
30
30
  background-color: transparent;
31
31
  }
32
32
 
33
- &:global(.fixed) {
34
- box-shadow: 0 0 18px theme(boxShadowColor.base);
33
+ &.fixed {
34
+ box-shadow: 0 0 18px var(--fabric-shadow);
35
35
  }
36
36
 
37
- & .panelHeader {
38
- background-color: theme(backgroundColor.dimmed);
37
+ & .fabric-panelHeader {
38
+ background-color: var(--bg-color-dimmed);
39
39
  }
40
40
 
41
- & .panelAction {
41
+ & .fabric-panelAction {
42
42
  padding: 0.25rem;
43
43
  }
44
44
 
45
- & .panelBody {
45
+ & .fabric-panelBody {
46
46
  grid-template: "head head head" auto ". loader ." auto "side-s content side-e" 1fr "foot foot foot" auto / auto 1fr auto;
47
47
  }
48
48
  }
49
49
  }
50
50
 
51
- @layer util {
52
- .panelGroup {
53
- & > .panel {
51
+ @layer utilities {
52
+ .fabric-panelGroup {
53
+ & > .fabric-panel {
54
54
  &[data-collapsed="true"] {
55
55
  flex: 0 0 auto;
56
56
  }
@@ -61,25 +61,25 @@
61
61
 
62
62
  [data-ref="panelCollapse"] {
63
63
  pointer-events: none;
64
- color: var(--tint);
64
+ color: var(--color-tint);
65
65
  opacity: 0.25;
66
66
  }
67
67
  }
68
68
  }
69
69
 
70
- & > .panel:not(:first-child) {
70
+ & > .fabric-panel:not(:first-child) {
71
71
  border-start-start-radius: 0;
72
72
  border-start-end-radius: 0;
73
73
  }
74
74
 
75
- & > .panel:not(:last-child) {
76
- border-bottom: 1px solid theme(backgroundColor.base);
75
+ & > .fabric-panel:not(:last-child) {
76
+ border-bottom: 1px solid var(--bg-color-base);
77
77
  border-end-start-radius: 0;
78
78
  border-end-end-radius: 0;
79
79
  }
80
80
  }
81
81
 
82
- [data-ref="asideBody"] > .panelGroup > .panel {
82
+ [data-ref="asideBody"] > .fabric-panelGroup > .fabric-panel {
83
83
  border-radius: 0;
84
84
  outline: 0;
85
85
  }
@@ -21,10 +21,10 @@
21
21
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  */
23
23
 
24
- @layer comp {
25
- .progressbar {
24
+ @layer components {
25
+ .fabric-progressbar {
26
26
  height: 1em;
27
- box-shadow: 0 0 4px 0 theme(boxShadowColor.dimmed) inset;
27
+ box-shadow: 0 0 4px 0 var(--fabric-shadow) inset;
28
28
 
29
29
  & > div:last-child {
30
30
  width: calc(var(--progress) * 1%);
@@ -41,13 +41,13 @@
41
41
 
42
42
  font-size: 0.5em;
43
43
  line-height: 0.5em;
44
- color: var(--white);
44
+ color: var(--color-white);
45
45
  text-align: center;
46
46
  vertical-align: middle;
47
47
  }
48
48
  }
49
49
 
50
- .progressTrack {
50
+ .fabric-progressTrack {
51
51
  width: calc(var(--progress) * 1%);
52
52
  transition: width 0.5s;
53
53
  }
@@ -59,12 +59,9 @@
59
59
  }
60
60
  }
61
61
 
62
- .progressAnimate {
62
+ .fabric-progressAnimate {
63
63
  background-image: var(--progress-gradient);
64
64
  background-size: 1rem 1rem;
65
-
66
- & :global {
67
- animation: bgprogress 750ms linear infinite;
68
- }
65
+ animation: bgprogress 750ms linear infinite;
69
66
  }
70
67
  }
@@ -21,81 +21,81 @@
21
21
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  */
23
23
 
24
- @layer comp {
25
- .tabPanel {
26
- --color: theme(colors.primary.500);
24
+ @layer components {
25
+ .fabric-tabPanel {
26
+ --color: var(--color-primary-500);
27
27
 
28
28
  &[data-orientation="top"] {
29
29
  grid-template: "tablist" auto "content" 1fr / 1fr;
30
30
 
31
- .tabHeader {
32
- box-shadow: 0 -1px 0 theme(borderColor.dimmed) inset;
31
+ .fabric-tabHeader {
32
+ box-shadow: 0 -1px 0 var(--border-color-dimmed) inset;
33
33
  }
34
34
  }
35
35
 
36
36
  &[data-orientation="bottom"] {
37
37
  grid-template: "content" 1fr "tablist" auto / 1fr;
38
38
 
39
- .tabHeader {
39
+ .fabric-tabHeader {
40
40
  margin-top: 1px;
41
- box-shadow: 0 1px 0 theme(borderColor.dimmed) inset;
41
+ box-shadow: 0 1px 0 var(--border-color-dimmed) inset;
42
42
  }
43
43
  }
44
44
 
45
45
  &[data-orientation="start"] {
46
46
  grid-template: "tablist content" 1fr / auto 1fr;
47
47
 
48
- .tabHeader {
49
- box-shadow: -1px 0 0 theme(borderColor.dimmed) inset;
48
+ .fabric-tabHeader {
49
+ box-shadow: -1px 0 0 var(--border-color-dimmed) inset;
50
50
  }
51
51
  }
52
52
 
53
53
  &[data-orientation="end"] {
54
54
  grid-template: "content tablist" 1fr / 1fr auto;
55
55
 
56
- .tabHeader {
57
- box-shadow: 1px 0 0 theme(borderColor.dimmed) inset;
56
+ .fabric-tabHeader {
57
+ box-shadow: 1px 0 0 var(--border-color-dimmed) inset;
58
58
  }
59
59
  }
60
60
  }
61
61
  }
62
62
 
63
- @layer util {
64
- .tabPanel {
65
- & .tabList > .tabButton:global(.active) {
63
+ @layer utilities {
64
+ .fabric-tabPanel {
65
+ & .fabric-tabList > .fabric-tabButton.active {
66
66
  pointer-events: none;
67
67
  }
68
68
 
69
- & > .tabHeader {
69
+ & > .fabric-tabHeader {
70
70
  grid-area: tablist;
71
71
 
72
- & > .tabList > .tabButton {
72
+ & > .fabric-tabList > .fabric-tabButton {
73
73
  &[data-color="accent"] {
74
- --color: theme(colors.accent.500);
74
+ --color: var(--color-accent-500);
75
75
  }
76
76
 
77
77
  &[data-color="info"] {
78
- --color: theme(colors.info.500);
78
+ --color: var(--color-info-500);
79
79
  }
80
80
 
81
81
  &[data-color="danger"] {
82
- --color: theme(colors.danger.500);
82
+ --color: var(--color-danger-500);
83
83
  }
84
84
 
85
85
  &[data-color="success"] {
86
- --color: theme(colors.success.500);
86
+ --color: var(--color-success-500);
87
87
  }
88
88
 
89
89
  &[data-color="warning"] {
90
- --color: theme(colors.warning.500);
90
+ --color: var(--color-warning-500);
91
91
  }
92
92
 
93
- &:not(:global(.active)):hover {
93
+ &:not(.active):hover {
94
94
  color: color-mix(in lab, var(--color) 65%, var(--fabric-text));
95
- background-color: theme(colors.tint.100/50%);
95
+ background-color: --alpha(var(--color-tint-100) / 50%);
96
96
  }
97
97
 
98
- &:global(.active) {
98
+ &.active {
99
99
  --active-color: var(--color);
100
100
 
101
101
  font-weight: 500;
@@ -105,81 +105,81 @@
105
105
  }
106
106
 
107
107
  &[data-variant="outline"] {
108
- & .tabList > .tabButton:global(.active) {
109
- --active-color: theme(backgroundColor.base);
110
- --active-border: 0 0 0 1px theme(borderColor.base) inset;
108
+ & .fabric-tabList > .fabric-tabButton.active {
109
+ --active-color: var(--bg-color-base);
110
+ --active-border: 0 0 0 1px var(--border-color-base) inset;
111
111
 
112
- background-color: theme(backgroundColor.base);
112
+ background-color: var(--bg-color-base);
113
113
  }
114
114
  }
115
115
 
116
116
  &[data-variant="solid"] {
117
- & .tabList > .tabButton:global(.active) {
118
- color: theme(colors.white);
117
+ & .fabric-tabList > .fabric-tabButton.active {
118
+ color: var(--color-white);
119
119
  background-color: var(--color);
120
120
  }
121
121
  }
122
122
 
123
123
  &[data-variant="soft"] {
124
- & .tabList > .tabButton:global(.active) {
124
+ & .fabric-tabList > .fabric-tabButton.active {
125
125
  background-color: color-mix(in lab, var(--color) 20%, var(--fabric-bg));
126
126
  }
127
127
  }
128
128
 
129
- &[data-orientation="top"] .tabList {
130
- & > .tabButton:global(.active) {
129
+ &[data-orientation="top"] .fabric-tabList {
130
+ & > .fabric-tabButton.active {
131
131
  box-shadow:
132
132
  0 -2px 0 var(--active-color) inset,
133
133
  var(--active-border, 0 0 0 transparent);
134
134
  }
135
135
  }
136
136
 
137
- &[data-orientation="bottom"] .tabList {
138
- & > .tabButton:global(.active) {
137
+ &[data-orientation="bottom"] .fabric-tabList {
138
+ & > .fabric-tabButton.active {
139
139
  box-shadow:
140
140
  0 2px 0 var(--active-color) inset,
141
141
  var(--active-border, 0 0 0 transparent);
142
142
  }
143
143
  }
144
144
 
145
- &[data-orientation="start"] .tabList {
146
- & > .tabButton:global(.active) {
145
+ &[data-orientation="start"] .fabric-tabList {
146
+ & > .fabric-tabButton.active {
147
147
  box-shadow:
148
148
  -2px 0 0 var(--active-color) inset,
149
149
  var(--active-border, 0 0 0 transparent);
150
150
  }
151
151
  }
152
152
 
153
- &[data-orientation="end"] .tabList {
154
- & > .tabButton:global(.active) {
153
+ &[data-orientation="end"] .fabric-tabList {
154
+ & > .fabric-tabButton.active {
155
155
  box-shadow:
156
156
  2px 0 0 var(--active-color) inset,
157
157
  var(--active-border, 0 0 0 transparent);
158
158
  }
159
159
  }
160
160
 
161
- &[data-orientation="top"] .tabList > .tabButton {
161
+ &[data-orientation="top"] .fabric-tabList > .fabric-tabButton {
162
162
  margin-top: 2px;
163
163
  margin-inline: 1px;
164
164
  border-end-start-radius: 0;
165
165
  border-end-end-radius: 0;
166
166
  }
167
167
 
168
- &[data-orientation="bottom"] .tabList > .tabButton {
168
+ &[data-orientation="bottom"] .fabric-tabList > .fabric-tabButton {
169
169
  margin-bottom: 2px;
170
170
  margin-inline: 1px;
171
171
  border-start-start-radius: 0;
172
172
  border-start-end-radius: 0;
173
173
  }
174
174
 
175
- &[data-orientation="start"] .tabList > .tabButton {
175
+ &[data-orientation="start"] .fabric-tabList > .fabric-tabButton {
176
176
  margin-block: 1px;
177
177
  margin-inline-start: 2px;
178
178
  border-start-end-radius: 0;
179
179
  border-end-end-radius: 0;
180
180
  }
181
181
 
182
- &[data-orientation="end"] .tabList > .tabButton {
182
+ &[data-orientation="end"] .fabric-tabList > .fabric-tabButton {
183
183
  margin-block: 1px;
184
184
  margin-inline-end: 2px;
185
185
  border-start-start-radius: 0;
@@ -21,8 +21,8 @@
21
21
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
  */
23
23
 
24
- @layer comp {
25
- .toast {
24
+ @layer components {
25
+ .fabric-toast {
26
26
  margin-bottom: -100%;
27
27
  opacity: 0;
28
28
  transition:
@@ -0,0 +1,29 @@
1
+ /*
2
+ * React Fabric
3
+ * @version: 1.0.0
4
+ *
5
+ *
6
+ * The MIT License (MIT)
7
+ * Copyright (c) 2024 Adarsh Pastakia
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
10
+ * and associated documentation files (the "Software"), to deal in the Software without restriction,
11
+ * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
12
+ * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
13
+ * subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all copies or substantial
16
+ * portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19
+ * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ */
23
+
24
+ @layer components {
25
+ .fabric-tooltip > span.contrast {
26
+ filter: invert(1) grayscale(1) brightness(1.3) contrast(9000);
27
+ mix-blend-mode: luminosity;
28
+ }
29
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * React Fabric
3
+ * @version: 1.0.0
4
+ *
5
+ *
6
+ * The MIT License (MIT)
7
+ * Copyright (c) 2025 Adarsh Pastakia
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
10
+ * and associated documentation files (the "Software"), to deal in the Software without restriction,
11
+ * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
12
+ * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
13
+ * subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all copies or substantial
16
+ * portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19
+ * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ */
23
+
24
+ @import "./_actionLabel.css";
25
+ @import "./_alert.css";
26
+ @import "./_animations.css";
27
+ @import "./_avatar.css";
28
+ @import "./_badge.css";
29
+ @import "./_breadcrumbs.css";
30
+ @import "./_button.css";
31
+ @import "./_card.css";
32
+ @import "./_chip.css";
33
+ @import "./_collapsable.css";
34
+ @import "./_divider.css";
35
+ @import "./_dropdown.css";
36
+ @import "./_flyout.css";
37
+ @import "./_icon.css";
38
+ @import "./_media.css";
39
+ @import "./_menu.css";
40
+ @import "./_message.css";
41
+ @import "./_meter.css";
42
+ @import "./_modal.css";
43
+ @import "./_panel.css";
44
+ @import "./_progress.css";
45
+ @import "./_tabPanel.css";
46
+ @import "./_toast.css";
47
+ @import "./_tooltip.css";