musae 1.0.2 → 1.0.4

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 (250) hide show
  1. package/dist/components/avatar/avatar.cjs +98 -109
  2. package/dist/components/avatar/avatar.mjs +100 -111
  3. package/dist/components/badge/badge.cjs +51 -57
  4. package/dist/components/badge/badge.mjs +51 -57
  5. package/dist/components/bench/bench.cjs +97 -93
  6. package/dist/components/bench/bench.mjs +97 -93
  7. package/dist/components/bench/hooks.cjs +8 -3
  8. package/dist/components/bench/hooks.d.ts +1 -0
  9. package/dist/components/bench/hooks.mjs +8 -3
  10. package/dist/components/breadcrumb/breadcrumb.cjs +9 -12
  11. package/dist/components/breadcrumb/breadcrumb.mjs +9 -12
  12. package/dist/components/breadcrumb/item.cjs +38 -46
  13. package/dist/components/breadcrumb/item.mjs +38 -46
  14. package/dist/components/button/button.cjs +132 -132
  15. package/dist/components/button/button.mjs +134 -134
  16. package/dist/components/calendar/calendar.cjs +17 -16
  17. package/dist/components/calendar/calendar.mjs +17 -16
  18. package/dist/components/calendar/contribution.cjs +97 -97
  19. package/dist/components/calendar/contribution.mjs +97 -97
  20. package/dist/components/calendar/hooks.cjs +35 -35
  21. package/dist/components/calendar/hooks.mjs +35 -35
  22. package/dist/components/chat/chat.cjs +5 -5
  23. package/dist/components/chat/chat.mjs +5 -5
  24. package/dist/components/chat/item.cjs +49 -49
  25. package/dist/components/chat/item.mjs +49 -49
  26. package/dist/components/checkbox/checkbox.cjs +7 -7
  27. package/dist/components/checkbox/checkbox.mjs +7 -7
  28. package/dist/components/checkbox/styles.cjs +151 -151
  29. package/dist/components/checkbox/styles.mjs +151 -151
  30. package/dist/components/clock/column.cjs +8 -8
  31. package/dist/components/clock/column.mjs +8 -8
  32. package/dist/components/collapse/collapse.cjs +7 -50
  33. package/dist/components/collapse/collapse.mjs +7 -50
  34. package/dist/components/collapse/item.cjs +52 -60
  35. package/dist/components/collapse/item.mjs +52 -60
  36. package/dist/components/date-picker/date-picker.cjs +2 -2
  37. package/dist/components/date-picker/date-picker.mjs +4 -4
  38. package/dist/components/dialog/popup.cjs +16 -16
  39. package/dist/components/dialog/popup.mjs +19 -19
  40. package/dist/components/divider/divider.cjs +49 -49
  41. package/dist/components/divider/divider.mjs +49 -49
  42. package/dist/components/drawer/popup.cjs +126 -162
  43. package/dist/components/drawer/popup.mjs +126 -162
  44. package/dist/components/empty/empty.cjs +3 -3
  45. package/dist/components/empty/empty.mjs +3 -3
  46. package/dist/components/fab/fab.cjs +12 -12
  47. package/dist/components/fab/fab.mjs +14 -14
  48. package/dist/components/form/context.cjs +13 -9
  49. package/dist/components/form/context.d.ts +9 -4
  50. package/dist/components/form/context.mjs +10 -9
  51. package/dist/components/form/field/error.cjs +16 -17
  52. package/dist/components/form/field/error.d.ts +2 -3
  53. package/dist/components/form/field/error.mjs +16 -17
  54. package/dist/components/form/field/field.cjs +22 -39
  55. package/dist/components/form/field/field.d.ts +2 -2
  56. package/dist/components/form/field/field.mjs +25 -42
  57. package/dist/components/form/field/layout.cjs +21 -21
  58. package/dist/components/form/field/layout.d.ts +1 -1
  59. package/dist/components/form/field/layout.mjs +29 -29
  60. package/dist/components/form/field/{support.cjs → supporting.cjs} +9 -9
  61. package/dist/components/form/field/{support.d.ts → supporting.d.ts} +2 -2
  62. package/dist/components/form/field/{support.mjs → supporting.mjs} +9 -9
  63. package/dist/components/form/form.cjs +19 -49
  64. package/dist/components/form/form.d.ts +7 -2
  65. package/dist/components/form/form.mjs +21 -51
  66. package/dist/components/form/index.cjs +2 -2
  67. package/dist/components/form/index.d.ts +2 -1
  68. package/dist/components/form/index.mjs +1 -1
  69. package/dist/components/form/item.cjs +6 -6
  70. package/dist/components/form/item.d.ts +2 -3
  71. package/dist/components/form/item.mjs +8 -8
  72. package/dist/components/form/use-form-item.cjs +48 -0
  73. package/dist/components/form/use-form-item.d.ts +11 -0
  74. package/dist/components/form/use-form-item.mjs +46 -0
  75. package/dist/components/form/use-form.cjs +54 -0
  76. package/dist/components/form/use-form.d.ts +8 -0
  77. package/dist/components/form/use-form.mjs +52 -0
  78. package/dist/components/grid/col.cjs +4 -4
  79. package/dist/components/grid/col.mjs +4 -4
  80. package/dist/components/grid/row.cjs +8 -8
  81. package/dist/components/grid/row.mjs +8 -8
  82. package/dist/components/highlight/highlight.cjs +8 -15
  83. package/dist/components/highlight/highlight.mjs +8 -15
  84. package/dist/components/icon/icon.cjs +7 -7
  85. package/dist/components/icon/icon.mjs +9 -9
  86. package/dist/components/icon-button/icon-button.cjs +16 -16
  87. package/dist/components/icon-button/icon-button.mjs +18 -18
  88. package/dist/components/image/image.cjs +5 -5
  89. package/dist/components/image/image.mjs +5 -5
  90. package/dist/components/image/preview/operations.cjs +37 -37
  91. package/dist/components/image/preview/operations.mjs +37 -37
  92. package/dist/components/image/preview/preview.cjs +7 -7
  93. package/dist/components/image/preview/preview.mjs +7 -7
  94. package/dist/components/input/input.cjs +82 -82
  95. package/dist/components/input/input.mjs +82 -82
  96. package/dist/components/layout/footer.cjs +14 -14
  97. package/dist/components/layout/footer.mjs +14 -14
  98. package/dist/components/layout/header.cjs +19 -19
  99. package/dist/components/layout/header.mjs +19 -19
  100. package/dist/components/layout/heading.cjs +51 -51
  101. package/dist/components/layout/heading.mjs +51 -51
  102. package/dist/components/layout/layout.cjs +4 -4
  103. package/dist/components/layout/layout.mjs +6 -6
  104. package/dist/components/layout/main.cjs +48 -48
  105. package/dist/components/layout/main.mjs +48 -48
  106. package/dist/components/layout/sidebar.cjs +51 -51
  107. package/dist/components/layout/sidebar.mjs +51 -51
  108. package/dist/components/loading/loading.cjs +41 -41
  109. package/dist/components/loading/loading.mjs +41 -41
  110. package/dist/components/markdown/hooks.d.ts +5 -0
  111. package/dist/components/markdown/index.cjs +7 -7
  112. package/dist/components/markdown/index.mjs +7 -7
  113. package/dist/components/markdown/markdown.cjs +24 -14
  114. package/dist/components/markdown/markdown.d.ts +1 -3
  115. package/dist/components/markdown/markdown.mjs +25 -15
  116. package/dist/components/markdown/utils.cjs +36 -30
  117. package/dist/components/markdown/utils.d.ts +4 -4
  118. package/dist/components/markdown/utils.mjs +36 -30
  119. package/dist/components/menu/group.cjs +31 -31
  120. package/dist/components/menu/group.mjs +31 -31
  121. package/dist/components/menu/hooks.cjs +8 -8
  122. package/dist/components/menu/hooks.mjs +8 -8
  123. package/dist/components/menu/item.cjs +97 -97
  124. package/dist/components/menu/item.mjs +101 -101
  125. package/dist/components/notification/holder.cjs +47 -47
  126. package/dist/components/notification/holder.mjs +47 -47
  127. package/dist/components/notification/notification.cjs +89 -90
  128. package/dist/components/notification/notification.mjs +87 -88
  129. package/dist/components/password-input/password-input.cjs +7 -7
  130. package/dist/components/password-input/password-input.mjs +9 -9
  131. package/dist/components/picker/picker.cjs +4 -4
  132. package/dist/components/picker/picker.mjs +4 -4
  133. package/dist/components/popconfirm/popconfirm.cjs +45 -45
  134. package/dist/components/popconfirm/popconfirm.mjs +45 -45
  135. package/dist/components/popover/popover.cjs +22 -22
  136. package/dist/components/popover/popover.mjs +24 -24
  137. package/dist/components/popper/dropdown.cjs +48 -48
  138. package/dist/components/popper/dropdown.mjs +50 -50
  139. package/dist/components/popper/hooks.cjs +3 -3
  140. package/dist/components/popper/hooks.mjs +1 -1
  141. package/dist/components/progress/circular.cjs +9 -9
  142. package/dist/components/progress/circular.mjs +9 -9
  143. package/dist/components/progress/linear.cjs +27 -27
  144. package/dist/components/progress/linear.mjs +27 -27
  145. package/dist/components/quote/quote.cjs +2 -2
  146. package/dist/components/quote/quote.mjs +2 -2
  147. package/dist/components/quote/styles.cjs +23 -23
  148. package/dist/components/quote/styles.mjs +23 -23
  149. package/dist/components/radio/radio.cjs +126 -126
  150. package/dist/components/radio/radio.mjs +128 -128
  151. package/dist/components/rate/rate.cjs +24 -24
  152. package/dist/components/rate/rate.mjs +27 -27
  153. package/dist/components/rate/star.cjs +28 -28
  154. package/dist/components/rate/star.mjs +28 -28
  155. package/dist/components/rich-text-editor/dropdown.cjs +7 -7
  156. package/dist/components/rich-text-editor/dropdown.mjs +7 -7
  157. package/dist/components/rich-text-editor/plugins/floating-link-editor/index.cjs +5 -6
  158. package/dist/components/rich-text-editor/plugins/floating-link-editor/index.mjs +5 -6
  159. package/dist/components/rich-text-editor/plugins/toolbar/index.cjs +29 -29
  160. package/dist/components/rich-text-editor/plugins/toolbar/index.mjs +29 -29
  161. package/dist/components/rich-text-editor/rich-text-editor.cjs +10 -10
  162. package/dist/components/rich-text-editor/rich-text-editor.mjs +12 -12
  163. package/dist/components/rich-text-editor/utils.cjs +131 -131
  164. package/dist/components/rich-text-editor/utils.d.ts +15 -0
  165. package/dist/components/rich-text-editor/utils.mjs +131 -131
  166. package/dist/components/ripple/ripple.cjs +21 -21
  167. package/dist/components/ripple/ripple.mjs +21 -21
  168. package/dist/components/select/selector.cjs +3 -3
  169. package/dist/components/select/selector.mjs +3 -3
  170. package/dist/components/skeleton/skeleton.cjs +10 -10
  171. package/dist/components/skeleton/skeleton.mjs +10 -10
  172. package/dist/components/space/space.cjs +9 -9
  173. package/dist/components/space/space.mjs +9 -9
  174. package/dist/components/split-panel/divider.cjs +46 -46
  175. package/dist/components/split-panel/divider.mjs +46 -46
  176. package/dist/components/split-panel/panel.cjs +9 -9
  177. package/dist/components/split-panel/panel.mjs +9 -9
  178. package/dist/components/split-panel/split-panel.cjs +28 -28
  179. package/dist/components/split-panel/split-panel.mjs +28 -28
  180. package/dist/components/steps/item.cjs +90 -90
  181. package/dist/components/steps/item.mjs +90 -90
  182. package/dist/components/steps/steps.cjs +9 -9
  183. package/dist/components/steps/steps.mjs +9 -9
  184. package/dist/components/switch/switch.cjs +152 -152
  185. package/dist/components/switch/switch.mjs +152 -152
  186. package/dist/components/table/body.cjs +40 -40
  187. package/dist/components/table/body.mjs +40 -40
  188. package/dist/components/table/header/cell.cjs +28 -28
  189. package/dist/components/table/header/cell.mjs +28 -28
  190. package/dist/components/table/header/header.cjs +59 -59
  191. package/dist/components/table/header/header.mjs +61 -61
  192. package/dist/components/tabs/navigation.cjs +43 -43
  193. package/dist/components/tabs/navigation.mjs +42 -42
  194. package/dist/components/tabs/panels.cjs +7 -7
  195. package/dist/components/tabs/panels.mjs +7 -7
  196. package/dist/components/tag/tag.cjs +67 -67
  197. package/dist/components/tag/tag.mjs +67 -67
  198. package/dist/components/textarea/textarea.cjs +24 -24
  199. package/dist/components/textarea/textarea.mjs +24 -24
  200. package/dist/components/theme/hooks.cjs +4 -4
  201. package/dist/components/theme/hooks.mjs +4 -4
  202. package/dist/components/theme/theme.cjs +46 -46
  203. package/dist/components/theme/theme.mjs +46 -46
  204. package/dist/components/time-picker/panel.cjs +17 -17
  205. package/dist/components/time-picker/panel.mjs +22 -22
  206. package/dist/components/time-picker/time-picker.cjs +4 -4
  207. package/dist/components/time-picker/time-picker.mjs +6 -6
  208. package/dist/components/timeline/item.cjs +79 -79
  209. package/dist/components/timeline/item.mjs +79 -79
  210. package/dist/components/tour/spotlight.d.ts +1 -1
  211. package/dist/components/tour/tour.cjs +23 -68
  212. package/dist/components/tour/tour.mjs +23 -68
  213. package/dist/components/transfer/list.cjs +30 -30
  214. package/dist/components/transfer/list.mjs +30 -30
  215. package/dist/components/tree/list.cjs +6 -6
  216. package/dist/components/tree/list.mjs +6 -6
  217. package/dist/components/tree/node.cjs +47 -47
  218. package/dist/components/tree/node.mjs +49 -49
  219. package/dist/components/upload/uploaded-item.cjs +66 -66
  220. package/dist/components/upload/uploaded-item.mjs +66 -66
  221. package/dist/components/upload/uploaded-list.cjs +5 -5
  222. package/dist/components/upload/uploaded-list.mjs +5 -5
  223. package/dist/components/waterfall/sequential.cjs +12 -12
  224. package/dist/components/waterfall/sequential.mjs +12 -12
  225. package/dist/components/waterfall/waterfall.cjs +23 -23
  226. package/dist/components/waterfall/waterfall.mjs +23 -23
  227. package/dist/hooks/use-closable.cjs +7 -7
  228. package/dist/hooks/use-closable.mjs +7 -7
  229. package/dist/locale/locales/en_US.cjs +0 -5
  230. package/dist/locale/locales/en_US.mjs +0 -5
  231. package/dist/locale/locales/zh_CN.cjs +0 -5
  232. package/dist/locale/locales/zh_CN.mjs +0 -5
  233. package/dist/node_modules/.pnpm/@stylexjs_stylex@0.12.0/node_modules/@stylexjs/stylex/lib/es/stylex.cjs +174 -0
  234. package/dist/node_modules/.pnpm/@stylexjs_stylex@0.12.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs +171 -0
  235. package/dist/styles.css +63 -47
  236. package/dist/types/form.d.ts +79 -109
  237. package/dist/types/locale.d.ts +0 -3
  238. package/dist/types/markdown.d.ts +5 -0
  239. package/dist/utils/form.cjs +296 -0
  240. package/dist/utils/form.d.ts +82 -0
  241. package/dist/utils/form.mjs +293 -0
  242. package/package.json +51 -60
  243. package/dist/components/form/hooks.cjs +0 -16
  244. package/dist/components/form/hooks.d.ts +0 -7
  245. package/dist/components/form/hooks.mjs +0 -14
  246. package/dist/node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.cjs +0 -291
  247. package/dist/node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.mjs +0 -278
  248. package/dist/utils/styles.cjs +0 -15
  249. package/dist/utils/styles.d.ts +0 -6
  250. package/dist/utils/styles.mjs +0 -13
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
6
6
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
7
  var React = require('react');
8
- var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
8
+ var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.12.0/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
9
9
  var context = require('./context.cjs');
10
10
  var hooks = require('../theme/hooks.cjs');
11
11
  var theme = require('../theme/theme.cjs');
@@ -16,124 +16,115 @@ var useClassNames = require('../../hooks/use-class-names.cjs');
16
16
 
17
17
  var _excluded = ["src", "alt", "shape", "size", "className", "style", "crossOrigin", "referrerPolicy"];
18
18
  var styles = {
19
- avatar: function avatar(props) {
20
- return [{
21
- borderWidth: "musaex-1iyq3db",
22
- borderInlineWidth: null,
23
- borderInlineStartWidth: null,
24
- borderLeftWidth: null,
25
- borderInlineEndWidth: null,
26
- borderRightWidth: null,
27
- borderBlockWidth: null,
28
- borderTopWidth: null,
29
- borderBottomWidth: null,
30
- borderStyle: "musaex-1y0btm7",
31
- borderInlineStyle: null,
32
- borderInlineStartStyle: null,
33
- borderLeftStyle: null,
34
- borderInlineEndStyle: null,
35
- borderRightStyle: null,
36
- borderBlockStyle: null,
37
- borderTopStyle: null,
38
- borderBottomStyle: null,
39
- borderColor: "musaex-9r1u3d",
40
- borderInlineColor: null,
41
- borderInlineStartColor: null,
42
- borderLeftColor: null,
43
- borderInlineEndColor: null,
44
- borderRightColor: null,
45
- borderBlockColor: null,
46
- borderTopColor: null,
47
- borderBottomColor: null,
48
- boxSizing: "musaex-9f619",
49
- backgroundColor: props.backgroundColor == null ? null : "musaex-r5ldyu",
50
- color: props.color == null ? null : "musaex-fx01vb",
51
- alignItems: "musaex-6s0dn4",
52
- justifyContent: "musaex-l56j7k",
53
- userSelect: "musaex-87ps6o",
54
- display: "musaex-3nfvp2",
55
- verticalAlign: "musaex-xymvpz",
56
- $$css: true
57
- }, {
58
- "--backgroundColor": props.backgroundColor != null ? props.backgroundColor : undefined,
59
- "--color": props.color != null ? props.color : undefined
60
- }];
19
+ avatar: {
20
+ kMzoRj: "musaex-1iyq3db",
21
+ kjGldf: null,
22
+ k2ei4v: null,
23
+ kZ1KPB: null,
24
+ ke9TFa: null,
25
+ kWqL5O: null,
26
+ kLoX6v: null,
27
+ kEafiO: null,
28
+ kt9PQ7: null,
29
+ ksu8eU: "musaex-1y0btm7",
30
+ kJRH4f: null,
31
+ kVhnKS: null,
32
+ k4WBpm: null,
33
+ k8ry5P: null,
34
+ kSWEuD: null,
35
+ kDUl1X: null,
36
+ kPef9Z: null,
37
+ kfdmCh: null,
38
+ kVAM5u: "musaex-9r1u3d",
39
+ kzOINU: null,
40
+ kGJrpR: null,
41
+ kaZRDh: null,
42
+ kBCPoo: null,
43
+ k26BEO: null,
44
+ k5QoK5: null,
45
+ kLZC3w: null,
46
+ kL6WhQ: null,
47
+ kB7OPa: "musaex-9f619",
48
+ kWkggS: "musaex-1ncffr6",
49
+ kMwMTN: "musaex-14qql8p",
50
+ kGNEyG: "musaex-6s0dn4",
51
+ kjj79g: "musaex-l56j7k",
52
+ kfSwDN: "musaex-87ps6o",
53
+ k1xSpc: "musaex-3nfvp2",
54
+ kXLuUW: "musaex-xymvpz",
55
+ $$css: true
61
56
  },
62
57
  loading: {
63
- display: "musaex-1rg5ohu",
64
- verticalAlign: "musaex-xymvpz",
58
+ k1xSpc: "musaex-1rg5ohu",
59
+ kXLuUW: "musaex-xymvpz",
65
60
  $$css: true
66
61
  },
67
62
  image: {
68
- objectFit: "musaex-l1xv1r",
69
- objectPosition: "musaex-1s8dy9j",
70
- borderRadius: "musaex-1pjcqnp",
71
- borderStartStartRadius: null,
72
- borderStartEndRadius: null,
73
- borderEndStartRadius: null,
74
- borderEndEndRadius: null,
75
- borderTopLeftRadius: null,
76
- borderTopRightRadius: null,
77
- borderBottomLeftRadius: null,
78
- borderBottomRightRadius: null,
63
+ kVIFPx: "musaex-l1xv1r",
64
+ kYDvB4: "musaex-1s8dy9j",
65
+ kaIpWk: "musaex-1pjcqnp",
66
+ krdFHd: null,
67
+ kfmiAY: null,
68
+ kVL7Gh: null,
69
+ kT0f0o: null,
70
+ kIxVMA: null,
71
+ ksF3WI: null,
72
+ kqGeR4: null,
73
+ kYm2EN: null,
79
74
  $$css: true
80
75
  },
81
- overlapping: function overlapping(props) {
82
- return [{
83
- ":not(:first-child)_marginInlineStart": "musaex-e1706l",
84
- ":not(:first-child)_marginLeft": null,
85
- ":not(:first-child)_marginRight": null,
86
- borderColor: props.outlineColor == null ? null : "musaex-1u3gezn",
87
- borderInlineColor: null,
88
- borderInlineStartColor: null,
89
- borderLeftColor: null,
90
- borderInlineEndColor: null,
91
- borderRightColor: null,
92
- borderBlockColor: null,
93
- borderTopColor: null,
94
- borderBottomColor: null,
95
- $$css: true
96
- }, {
97
- "--borderColor": props.outlineColor != null ? props.outlineColor : undefined
98
- }];
76
+ overlapping: {
77
+ kgxsog: "musaex-e1706l",
78
+ k9fVmS: null,
79
+ kZB82w: null,
80
+ kVAM5u: "musaex-o3pef4",
81
+ kzOINU: null,
82
+ kGJrpR: null,
83
+ kaZRDh: null,
84
+ kBCPoo: null,
85
+ k26BEO: null,
86
+ k5QoK5: null,
87
+ kLZC3w: null,
88
+ kL6WhQ: null,
89
+ $$css: true
99
90
  },
100
91
  circular: {
101
- borderRadius: "musaex-shxsqp",
102
- borderStartStartRadius: null,
103
- borderStartEndRadius: null,
104
- borderEndStartRadius: null,
105
- borderEndEndRadius: null,
106
- borderTopLeftRadius: null,
107
- borderTopRightRadius: null,
108
- borderBottomLeftRadius: null,
109
- borderBottomRightRadius: null,
92
+ kaIpWk: "musaex-shxsqp",
93
+ krdFHd: null,
94
+ kfmiAY: null,
95
+ kVL7Gh: null,
96
+ kT0f0o: null,
97
+ kIxVMA: null,
98
+ ksF3WI: null,
99
+ kqGeR4: null,
100
+ kYm2EN: null,
110
101
  $$css: true
111
102
  },
112
103
  squared: {
113
- borderRadius: "musaex-m9kfsm",
114
- borderStartStartRadius: null,
115
- borderStartEndRadius: null,
116
- borderEndStartRadius: null,
117
- borderEndEndRadius: null,
118
- borderTopLeftRadius: null,
119
- borderTopRightRadius: null,
120
- borderBottomLeftRadius: null,
121
- borderBottomRightRadius: null,
104
+ kaIpWk: "musaex-m9kfsm",
105
+ krdFHd: null,
106
+ kfmiAY: null,
107
+ kVL7Gh: null,
108
+ kT0f0o: null,
109
+ kIxVMA: null,
110
+ ksF3WI: null,
111
+ kqGeR4: null,
112
+ kYm2EN: null,
122
113
  $$css: true
123
114
  },
124
115
  small: {
125
- width: "musaex-t4hhhd",
126
- height: "musaex-pvxov6",
116
+ kzqmXN: "musaex-t4hhhd",
117
+ kZKoxP: "musaex-pvxov6",
127
118
  $$css: true
128
119
  },
129
120
  medium: {
130
- width: "musaex-1po6ib",
131
- height: "musaex-1si1pn3",
121
+ kzqmXN: "musaex-1po6ib",
122
+ kZKoxP: "musaex-1si1pn3",
132
123
  $$css: true
133
124
  },
134
125
  large: {
135
- width: "musaex-19dbm5w",
136
- height: "musaex-12ez60q",
126
+ kzqmXN: "musaex-19dbm5w",
127
+ kZKoxP: "musaex-12ez60q",
137
128
  $$css: true
138
129
  }
139
130
  };
@@ -166,16 +157,9 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
166
157
  referrerPolicy: referrerPolicy
167
158
  });
168
159
  var styled = {
169
- avatar: stylex.default.props(theme.typography.label[size], styles.avatar({
170
- backgroundColor: theme$1.colors["primary-container"],
171
- color: theme$1.colors.primary
172
- }), styles[size], styles[shape], isInGroup && styles.overlapping({
173
- outlineColor: theme$1.colors["on-primary"]
174
- })),
175
- loading: stylex.default.props(theme.typography.label[size], styles.loading, styles[size], styles[shape], isInGroup && styles.overlapping({
176
- outlineColor: theme$1.colors["on-primary"]
177
- })),
178
- image: stylex.default.props(styles.image, styles[size])
160
+ avatar: stylex.props(theme.typography.label[size], styles.avatar, styles[size], styles[shape], isInGroup && styles.overlapping),
161
+ loading: stylex.props(theme.typography.label[size], styles.loading, styles[size], styles[shape], isInGroup && styles.overlapping),
162
+ image: stylex.props(styles.image, styles[size])
179
163
  };
180
164
  if (loadStatus === "loading") {
181
165
  return /*#__PURE__*/React.createElement(skeleton.default, {
@@ -185,7 +169,12 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
185
169
  }
186
170
  return /*#__PURE__*/React.createElement("span", _objectSpread(_objectSpread({}, props), {}, {
187
171
  className: className.stringify(classNames.avatar, className$1, styled.avatar.className),
188
- style: _objectSpread(_objectSpread({}, styled.avatar.style), style),
172
+ style: _objectSpread(_objectSpread(_objectSpread({}, styled.avatar.style), style), {}, {
173
+ // @ts-expect-error style vars
174
+ "--color-primary": theme$1.colors.primary,
175
+ "--color-on-primary": theme$1.colors["on-primary"],
176
+ "--color-primary-container": theme$1.colors["primary-container"]
177
+ }),
189
178
  ref: ref
190
179
  }), loadStatus === "loaded" && (/*#__PURE__*/React.createElement("img", {
191
180
  draggable: false,
@@ -1,7 +1,7 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import React, { forwardRef, useContext } from 'react';
4
- import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.10.1/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
4
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.12.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
5
5
  import Context, { CLASS_NAMES } from './context.mjs';
6
6
  import { useTheme } from '../theme/hooks.mjs';
7
7
  import { typography } from '../theme/theme.mjs';
@@ -12,124 +12,115 @@ import { useClassNames } from '../../hooks/use-class-names.mjs';
12
12
 
13
13
  var _excluded = ["src", "alt", "shape", "size", "className", "style", "crossOrigin", "referrerPolicy"];
14
14
  var styles = {
15
- avatar: function avatar(props) {
16
- return [{
17
- borderWidth: "musaex-1iyq3db",
18
- borderInlineWidth: null,
19
- borderInlineStartWidth: null,
20
- borderLeftWidth: null,
21
- borderInlineEndWidth: null,
22
- borderRightWidth: null,
23
- borderBlockWidth: null,
24
- borderTopWidth: null,
25
- borderBottomWidth: null,
26
- borderStyle: "musaex-1y0btm7",
27
- borderInlineStyle: null,
28
- borderInlineStartStyle: null,
29
- borderLeftStyle: null,
30
- borderInlineEndStyle: null,
31
- borderRightStyle: null,
32
- borderBlockStyle: null,
33
- borderTopStyle: null,
34
- borderBottomStyle: null,
35
- borderColor: "musaex-9r1u3d",
36
- borderInlineColor: null,
37
- borderInlineStartColor: null,
38
- borderLeftColor: null,
39
- borderInlineEndColor: null,
40
- borderRightColor: null,
41
- borderBlockColor: null,
42
- borderTopColor: null,
43
- borderBottomColor: null,
44
- boxSizing: "musaex-9f619",
45
- backgroundColor: props.backgroundColor == null ? null : "musaex-r5ldyu",
46
- color: props.color == null ? null : "musaex-fx01vb",
47
- alignItems: "musaex-6s0dn4",
48
- justifyContent: "musaex-l56j7k",
49
- userSelect: "musaex-87ps6o",
50
- display: "musaex-3nfvp2",
51
- verticalAlign: "musaex-xymvpz",
52
- $$css: true
53
- }, {
54
- "--backgroundColor": props.backgroundColor != null ? props.backgroundColor : undefined,
55
- "--color": props.color != null ? props.color : undefined
56
- }];
15
+ avatar: {
16
+ kMzoRj: "musaex-1iyq3db",
17
+ kjGldf: null,
18
+ k2ei4v: null,
19
+ kZ1KPB: null,
20
+ ke9TFa: null,
21
+ kWqL5O: null,
22
+ kLoX6v: null,
23
+ kEafiO: null,
24
+ kt9PQ7: null,
25
+ ksu8eU: "musaex-1y0btm7",
26
+ kJRH4f: null,
27
+ kVhnKS: null,
28
+ k4WBpm: null,
29
+ k8ry5P: null,
30
+ kSWEuD: null,
31
+ kDUl1X: null,
32
+ kPef9Z: null,
33
+ kfdmCh: null,
34
+ kVAM5u: "musaex-9r1u3d",
35
+ kzOINU: null,
36
+ kGJrpR: null,
37
+ kaZRDh: null,
38
+ kBCPoo: null,
39
+ k26BEO: null,
40
+ k5QoK5: null,
41
+ kLZC3w: null,
42
+ kL6WhQ: null,
43
+ kB7OPa: "musaex-9f619",
44
+ kWkggS: "musaex-1ncffr6",
45
+ kMwMTN: "musaex-14qql8p",
46
+ kGNEyG: "musaex-6s0dn4",
47
+ kjj79g: "musaex-l56j7k",
48
+ kfSwDN: "musaex-87ps6o",
49
+ k1xSpc: "musaex-3nfvp2",
50
+ kXLuUW: "musaex-xymvpz",
51
+ $$css: true
57
52
  },
58
53
  loading: {
59
- display: "musaex-1rg5ohu",
60
- verticalAlign: "musaex-xymvpz",
54
+ k1xSpc: "musaex-1rg5ohu",
55
+ kXLuUW: "musaex-xymvpz",
61
56
  $$css: true
62
57
  },
63
58
  image: {
64
- objectFit: "musaex-l1xv1r",
65
- objectPosition: "musaex-1s8dy9j",
66
- borderRadius: "musaex-1pjcqnp",
67
- borderStartStartRadius: null,
68
- borderStartEndRadius: null,
69
- borderEndStartRadius: null,
70
- borderEndEndRadius: null,
71
- borderTopLeftRadius: null,
72
- borderTopRightRadius: null,
73
- borderBottomLeftRadius: null,
74
- borderBottomRightRadius: null,
59
+ kVIFPx: "musaex-l1xv1r",
60
+ kYDvB4: "musaex-1s8dy9j",
61
+ kaIpWk: "musaex-1pjcqnp",
62
+ krdFHd: null,
63
+ kfmiAY: null,
64
+ kVL7Gh: null,
65
+ kT0f0o: null,
66
+ kIxVMA: null,
67
+ ksF3WI: null,
68
+ kqGeR4: null,
69
+ kYm2EN: null,
75
70
  $$css: true
76
71
  },
77
- overlapping: function overlapping(props) {
78
- return [{
79
- ":not(:first-child)_marginInlineStart": "musaex-e1706l",
80
- ":not(:first-child)_marginLeft": null,
81
- ":not(:first-child)_marginRight": null,
82
- borderColor: props.outlineColor == null ? null : "musaex-1u3gezn",
83
- borderInlineColor: null,
84
- borderInlineStartColor: null,
85
- borderLeftColor: null,
86
- borderInlineEndColor: null,
87
- borderRightColor: null,
88
- borderBlockColor: null,
89
- borderTopColor: null,
90
- borderBottomColor: null,
91
- $$css: true
92
- }, {
93
- "--borderColor": props.outlineColor != null ? props.outlineColor : undefined
94
- }];
72
+ overlapping: {
73
+ kgxsog: "musaex-e1706l",
74
+ k9fVmS: null,
75
+ kZB82w: null,
76
+ kVAM5u: "musaex-o3pef4",
77
+ kzOINU: null,
78
+ kGJrpR: null,
79
+ kaZRDh: null,
80
+ kBCPoo: null,
81
+ k26BEO: null,
82
+ k5QoK5: null,
83
+ kLZC3w: null,
84
+ kL6WhQ: null,
85
+ $$css: true
95
86
  },
96
87
  circular: {
97
- borderRadius: "musaex-shxsqp",
98
- borderStartStartRadius: null,
99
- borderStartEndRadius: null,
100
- borderEndStartRadius: null,
101
- borderEndEndRadius: null,
102
- borderTopLeftRadius: null,
103
- borderTopRightRadius: null,
104
- borderBottomLeftRadius: null,
105
- borderBottomRightRadius: null,
88
+ kaIpWk: "musaex-shxsqp",
89
+ krdFHd: null,
90
+ kfmiAY: null,
91
+ kVL7Gh: null,
92
+ kT0f0o: null,
93
+ kIxVMA: null,
94
+ ksF3WI: null,
95
+ kqGeR4: null,
96
+ kYm2EN: null,
106
97
  $$css: true
107
98
  },
108
99
  squared: {
109
- borderRadius: "musaex-m9kfsm",
110
- borderStartStartRadius: null,
111
- borderStartEndRadius: null,
112
- borderEndStartRadius: null,
113
- borderEndEndRadius: null,
114
- borderTopLeftRadius: null,
115
- borderTopRightRadius: null,
116
- borderBottomLeftRadius: null,
117
- borderBottomRightRadius: null,
100
+ kaIpWk: "musaex-m9kfsm",
101
+ krdFHd: null,
102
+ kfmiAY: null,
103
+ kVL7Gh: null,
104
+ kT0f0o: null,
105
+ kIxVMA: null,
106
+ ksF3WI: null,
107
+ kqGeR4: null,
108
+ kYm2EN: null,
118
109
  $$css: true
119
110
  },
120
111
  small: {
121
- width: "musaex-t4hhhd",
122
- height: "musaex-pvxov6",
112
+ kzqmXN: "musaex-t4hhhd",
113
+ kZKoxP: "musaex-pvxov6",
123
114
  $$css: true
124
115
  },
125
116
  medium: {
126
- width: "musaex-1po6ib",
127
- height: "musaex-1si1pn3",
117
+ kzqmXN: "musaex-1po6ib",
118
+ kZKoxP: "musaex-1si1pn3",
128
119
  $$css: true
129
120
  },
130
121
  large: {
131
- width: "musaex-19dbm5w",
132
- height: "musaex-12ez60q",
122
+ kzqmXN: "musaex-19dbm5w",
123
+ kZKoxP: "musaex-12ez60q",
133
124
  $$css: true
134
125
  }
135
126
  };
@@ -149,7 +140,7 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
149
140
  style = _ref.style,
150
141
  crossOrigin = _ref.crossOrigin,
151
142
  referrerPolicy = _ref.referrerPolicy,
152
- props = _objectWithoutProperties(_ref, _excluded);
143
+ props$1 = _objectWithoutProperties(_ref, _excluded);
153
144
  var theme = useTheme();
154
145
  var group = useContext(Context);
155
146
  var isInGroup = !!group;
@@ -162,16 +153,9 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
162
153
  referrerPolicy: referrerPolicy
163
154
  });
164
155
  var styled = {
165
- avatar: _stylex.props(typography.label[size], styles.avatar({
166
- backgroundColor: theme.colors["primary-container"],
167
- color: theme.colors.primary
168
- }), styles[size], styles[shape], isInGroup && styles.overlapping({
169
- outlineColor: theme.colors["on-primary"]
170
- })),
171
- loading: _stylex.props(typography.label[size], styles.loading, styles[size], styles[shape], isInGroup && styles.overlapping({
172
- outlineColor: theme.colors["on-primary"]
173
- })),
174
- image: _stylex.props(styles.image, styles[size])
156
+ avatar: props(typography.label[size], styles.avatar, styles[size], styles[shape], isInGroup && styles.overlapping),
157
+ loading: props(typography.label[size], styles.loading, styles[size], styles[shape], isInGroup && styles.overlapping),
158
+ image: props(styles.image, styles[size])
175
159
  };
176
160
  if (loadStatus === "loading") {
177
161
  return /*#__PURE__*/React.createElement(Skeleton, {
@@ -179,9 +163,14 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
179
163
  style: styled.loading.style
180
164
  });
181
165
  }
182
- return /*#__PURE__*/React.createElement("span", _objectSpread(_objectSpread({}, props), {}, {
166
+ return /*#__PURE__*/React.createElement("span", _objectSpread(_objectSpread({}, props$1), {}, {
183
167
  className: stringify(classNames.avatar, className, styled.avatar.className),
184
- style: _objectSpread(_objectSpread({}, styled.avatar.style), style),
168
+ style: _objectSpread(_objectSpread(_objectSpread({}, styled.avatar.style), style), {}, {
169
+ // @ts-expect-error style vars
170
+ "--color-primary": theme.colors.primary,
171
+ "--color-on-primary": theme.colors["on-primary"],
172
+ "--color-primary-container": theme.colors["primary-container"]
173
+ }),
185
174
  ref: ref
186
175
  }), loadStatus === "loaded" && (/*#__PURE__*/React.createElement("img", {
187
176
  draggable: false,