@cyberskill/design 2.5.0 → 2.7.0

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 (486) hide show
  1. package/DESIGN.md +3 -3
  2. package/README.md +6 -5
  3. package/SECURITY.md +4 -4
  4. package/VERSION +1 -1
  5. package/_ds_bundle.js +2 -2
  6. package/_ds_bundle.js.map +1 -1
  7. package/_ds_manifest.json +0 -96
  8. package/_esm/cs.mjs +2 -2
  9. package/base/a11y.css +6 -11
  10. package/components/ai/ai-conversation.card.html +1 -1
  11. package/components/ai/ai-lumi.card.html +1 -1
  12. package/components/ai/ai.card.html +1 -1
  13. package/components/api-discovery.json +6 -6
  14. package/components/api-index.json +57 -16
  15. package/components/brand/brand.card.html +1 -1
  16. package/components/button/buttons.card.html +1 -1
  17. package/components/contracts.json +5 -5
  18. package/components/data/collections.card.html +1 -1
  19. package/components/data/data.card.html +1 -1
  20. package/components/datatable/datatable.card.html +1 -1
  21. package/components/dialog/dialog.card.html +1 -1
  22. package/components/feedback/feedback-2.card.html +1 -1
  23. package/components/feedback/feedback.card.html +2 -2
  24. package/components/forms/Cascader.jsx +1 -1
  25. package/components/forms/ColorPicker.jsx +1 -1
  26. package/components/forms/InlineEdit.jsx +12 -2
  27. package/components/forms/SearchField.jsx +1 -1
  28. package/components/forms/TreeSelect.jsx +1 -1
  29. package/components/forms/forms-2.card.html +1 -1
  30. package/components/forms/forms.card.html +1 -1
  31. package/components/i18n/i18n.card.html +1 -1
  32. package/components/icon/icon.card.html +1 -1
  33. package/components/lifecycle.json +51 -10
  34. package/components/logo/logo.card.html +2 -2
  35. package/components/navigation/navigation.card.html +1 -1
  36. package/components/navigation/shell.card.html +1 -1
  37. package/components/overlays/alertdialog.card.html +1 -1
  38. package/components/overlays/overlays.card.html +1 -1
  39. package/components/prompt-api.json +3 -3
  40. package/components/release-compatibility.json +1 -1
  41. package/components/scenarios.json +15 -15
  42. package/components/specifications.json +453 -453
  43. package/components/static-html-reference.json +25 -25
  44. package/components/textfield/textfield.card.html +1 -1
  45. package/dist/esm/_esm/react.mjs +5 -5
  46. package/dist/esm/build.json +52 -52
  47. package/dist/esm/chunks/{chunk-GLPQBE2J.mjs → chunk-4D7SFITE.mjs} +17 -3
  48. package/dist/esm/chunks/chunk-4D7SFITE.mjs.map +7 -0
  49. package/dist/esm/chunks/{chunk-MRXEJSQQ.mjs → chunk-B5V7HN5G.mjs} +5 -2
  50. package/dist/esm/chunks/{chunk-MRXEJSQQ.mjs.map → chunk-B5V7HN5G.mjs.map} +2 -2
  51. package/dist/esm/chunks/{chunk-5FQGNCKS.mjs → chunk-LU45KTWU.mjs} +2 -1
  52. package/dist/esm/chunks/{chunk-5FQGNCKS.mjs.map → chunk-LU45KTWU.mjs.map} +2 -2
  53. package/dist/esm/chunks/{chunk-D7A4ZCMJ.mjs → chunk-RUB6XN27.mjs} +5 -2
  54. package/dist/esm/chunks/{chunk-D7A4ZCMJ.mjs.map → chunk-RUB6XN27.mjs.map} +2 -2
  55. package/dist/esm/chunks/{chunk-FF5D53IP.mjs → chunk-SA7L22XE.mjs} +5 -2
  56. package/dist/esm/chunks/{chunk-FF5D53IP.mjs.map → chunk-SA7L22XE.mjs.map} +2 -2
  57. package/dist/esm/components/forms/Cascader.mjs +1 -1
  58. package/dist/esm/components/forms/ColorPicker.mjs +1 -1
  59. package/dist/esm/components/forms/InlineEdit.mjs +1 -1
  60. package/dist/esm/components/forms/SearchField.mjs +1 -1
  61. package/dist/esm/components/forms/TreeSelect.mjs +1 -1
  62. package/dist/styles.css +3177 -0
  63. package/dist/styles.min.css +1 -1
  64. package/docs/UPSTREAM.md +39 -0
  65. package/docs/consuming.md +1 -1
  66. package/docs/contrast-report.md +1 -1
  67. package/docs/conventions.md +1 -1
  68. package/docs/guideline-language.md +2 -2
  69. package/docs/reference-catalog.json +36 -24
  70. package/docs/release-notes.md +25 -1
  71. package/docs/static-html-reference.md +23 -23
  72. package/docs/template-inventory.json +125 -125
  73. package/docs/vi/UPSTREAM.md +39 -0
  74. package/docs/vi/consuming.md +1 -1
  75. package/docs/vi/contrast-report.md +1 -1
  76. package/docs/vi/conventions.md +1 -1
  77. package/docs/vi/entrypoints/DESIGN.md +3 -3
  78. package/docs/vi/entrypoints/README.md +6 -5
  79. package/docs/vi/guideline-language.md +2 -2
  80. package/docs/vi/release-notes.md +25 -1
  81. package/docs/vi/static-html-reference.md +23 -23
  82. package/docs/viewer.html +2 -2
  83. package/guidelines/atomic-view.html +5 -5
  84. package/guidelines/brand-iconography.html +1 -1
  85. package/guidelines/brand-imagery.html +1 -1
  86. package/guidelines/brand-interaction.html +1 -1
  87. package/guidelines/brand-voice.html +1 -1
  88. package/guidelines/colors-anchors.html +1 -1
  89. package/guidelines/colors-semantic.html +1 -1
  90. package/guidelines/colors-surfaces.html +1 -1
  91. package/guidelines/colors-text.html +1 -1
  92. package/guidelines/documents.html +1 -1
  93. package/guidelines/elements-components.html +1 -1
  94. package/guidelines/elements-concept.html +1 -1
  95. package/guidelines/elements-geometry.html +1 -1
  96. package/guidelines/elements-variants.html +1 -1
  97. package/guidelines/guideline-language.js +6 -5
  98. package/guidelines/motion-interaction.html +1 -1
  99. package/guidelines/motion.html +1 -1
  100. package/guidelines/responsive-bilingual.html +1 -1
  101. package/guidelines/rtl-preview.html +1 -1
  102. package/guidelines/spacing-breakpoints.html +1 -1
  103. package/guidelines/spacing-radius.html +1 -1
  104. package/guidelines/spacing-scale.html +1 -1
  105. package/guidelines/surfaces-aurora.html +1 -1
  106. package/guidelines/surfaces-depth.html +1 -1
  107. package/guidelines/surfaces-glass.html +1 -1
  108. package/guidelines/surfaces-shadow.html +1 -1
  109. package/guidelines/type-families.html +1 -1
  110. package/guidelines/type-lineheight.html +1 -1
  111. package/guidelines/type-scale.html +1 -1
  112. package/guidelines/type-weights.html +1 -1
  113. package/package.json +12 -4
  114. package/styles/components/manifest.json +130 -130
  115. package/styles.layered.css +8 -10
  116. package/styles.layered.provenance.json +3 -3
  117. package/templates/_ds-base.canonical.js +6 -4
  118. package/templates/app-shell/ds-base.js +6 -4
  119. package/templates/article/ds-base.js +6 -4
  120. package/templates/auth/ds-base.js +6 -4
  121. package/templates/bod-deck/ds-base.js +6 -4
  122. package/templates/bod-investor-update/ds-base.js +6 -4
  123. package/templates/bod-memo/ds-base.js +6 -4
  124. package/templates/bod-minutes/ds-base.js +6 -4
  125. package/templates/bod-report/ds-base.js +6 -4
  126. package/templates/bod-resolution/ds-base.js +6 -4
  127. package/templates/culture-event-invite/ds-base.js +6 -4
  128. package/templates/dashboard/ds-base.js +6 -4
  129. package/templates/delivery-change-note/ds-base.js +6 -4
  130. package/templates/delivery-kickoff/ds-base.js +6 -4
  131. package/templates/delivery-qbr-deck/ds-base.js +6 -4
  132. package/templates/delivery-runbook/ds-base.js +6 -4
  133. package/templates/delivery-status-email/ds-base.js +6 -4
  134. package/templates/doc-style-guide/ds-base.js +6 -4
  135. package/templates/doc-suite-index/ds-base.js +6 -4
  136. package/templates/doc-templates/ds-base.js +6 -4
  137. package/templates/email/ds-base.js +6 -4
  138. package/templates/finance-dunning-email/ds-base.js +6 -4
  139. package/templates/finance-expense-report/ds-base.js +6 -4
  140. package/templates/finance-invoice/ds-base.js +6 -4
  141. package/templates/finance-quote/ds-base.js +6 -4
  142. package/templates/hr-announcement/ds-base.js +6 -4
  143. package/templates/hr-interview-kit/ds-base.js +6 -4
  144. package/templates/hr-offboarding/ds-base.js +6 -4
  145. package/templates/hr-performance-review/ds-base.js +6 -4
  146. package/templates/hr-pip/ds-base.js +6 -4
  147. package/templates/kitchen-sink.html +1 -1
  148. package/templates/legal-msa/ds-base.js +6 -4
  149. package/templates/legal-sow/ds-base.js +6 -4
  150. package/templates/marketing-campaign-brief/ds-base.js +6 -4
  151. package/templates/marketing-case-study/ds-base.js +6 -4
  152. package/templates/marketing-launch/ds-base.js +6 -4
  153. package/templates/marketing-newsletter/ds-base.js +6 -4
  154. package/templates/marketing-page/ds-base.js +6 -4
  155. package/templates/marketing-press-release/ds-base.js +6 -4
  156. package/templates/marketing-social-kit/ds-base.js +6 -4
  157. package/templates/sales-one-pager/ds-base.js +6 -4
  158. package/templates/sales-proposal-deck/ds-base.js +6 -4
  159. package/templates/settings/ds-base.js +6 -4
  160. package/templates/slide-deck/ds-base.js +6 -4
  161. package/templates/team-meeting-agenda/ds-base.js +6 -4
  162. package/templates/tech-incident-report/ds-base.js +6 -4
  163. package/templates/tech-release-notes/ds-base.js +6 -4
  164. package/templates/tech-retro/ds-base.js +6 -4
  165. package/templates/tech-rfc/ds-base.js +6 -4
  166. package/templates/vn-appointment-transfer/ds-base.js +6 -4
  167. package/templates/vn-certificate-of-employment/ds-base.js +6 -4
  168. package/templates/vn-code-of-conduct/ds-base.js +6 -4
  169. package/templates/vn-compensation-regulation/ds-base.js +6 -4
  170. package/templates/vn-contract-amendment/ds-base.js +6 -4
  171. package/templates/vn-contractor-agreement/ds-base.js +6 -4
  172. package/templates/vn-data-protection-policy/ds-base.js +6 -4
  173. package/templates/vn-disciplinary-case-file/ds-base.js +6 -4
  174. package/templates/vn-disciplinary-schedule/ds-base.js +6 -4
  175. package/templates/vn-employee-request/ds-base.js +6 -4
  176. package/templates/vn-exit-handover/ds-base.js +6 -4
  177. package/templates/vn-foreign-employee-pack/ds-base.js +6 -4
  178. package/templates/vn-framework-agreement/ds-base.js +6 -4
  179. package/templates/vn-grassroots-democracy/ds-base.js +6 -4
  180. package/templates/vn-infosec-policy/ds-base.js +6 -4
  181. package/templates/vn-internal-labor-regulations/ds-base.js +6 -4
  182. package/templates/vn-internship-agreement/ds-base.js +6 -4
  183. package/templates/vn-job-description/ds-base.js +6 -4
  184. package/templates/vn-labor-contract/ds-base.js +6 -4
  185. package/templates/vn-labour-management-book/ds-base.js +6 -4
  186. package/templates/vn-mutual-nda/ds-base.js +6 -4
  187. package/templates/vn-ndnca-ip/ds-base.js +6 -4
  188. package/templates/vn-offer-letter/ds-base.js +6 -4
  189. package/templates/vn-onboarding-checklist/ds-base.js +6 -4
  190. package/templates/vn-pdpl-consent/ds-base.js +6 -4
  191. package/templates/vn-performance-evaluation-regulation/ds-base.js +6 -4
  192. package/templates/vn-performance-review-form/ds-base.js +6 -4
  193. package/templates/vn-phantom-stock/ds-base.js +6 -4
  194. package/templates/vn-probation-contract/ds-base.js +6 -4
  195. package/templates/vn-receipt-acknowledgement/ds-base.js +6 -4
  196. package/templates/vn-remote-work-policy/ds-base.js +6 -4
  197. package/templates/vn-resignation-letter/ds-base.js +6 -4
  198. package/templates/vn-salary-scale/ds-base.js +6 -4
  199. package/templates/vn-sow-appendix/ds-base.js +6 -4
  200. package/templates/vn-termination-decision/ds-base.js +6 -4
  201. package/templates/vn-total-rewards-appendix/ds-base.js +6 -4
  202. package/templates/vn-training-commitment/ds-base.js +6 -4
  203. package/templates/vn-travel-expense-policy/ds-base.js +6 -4
  204. package/tokens/declarations.json +2 -128
  205. package/tokens/element-seeds.json +1 -1
  206. package/tokens/modes/dark__default__comfortable__high.dtcg.json +1 -1
  207. package/tokens/modes/dark__default__comfortable__standard.dtcg.json +1 -1
  208. package/tokens/modes/dark__default__compact__high.dtcg.json +1 -1
  209. package/tokens/modes/dark__default__compact__standard.dtcg.json +1 -1
  210. package/tokens/modes/dark__hoa-lava__comfortable__high.dtcg.json +1 -1
  211. package/tokens/modes/dark__hoa-lava__comfortable__standard.dtcg.json +1 -1
  212. package/tokens/modes/dark__hoa-lava__compact__high.dtcg.json +1 -1
  213. package/tokens/modes/dark__hoa-lava__compact__standard.dtcg.json +1 -1
  214. package/tokens/modes/dark__hoa-plasma__comfortable__high.dtcg.json +1 -1
  215. package/tokens/modes/dark__hoa-plasma__comfortable__standard.dtcg.json +1 -1
  216. package/tokens/modes/dark__hoa-plasma__compact__high.dtcg.json +1 -1
  217. package/tokens/modes/dark__hoa-plasma__compact__standard.dtcg.json +1 -1
  218. package/tokens/modes/dark__hoa__comfortable__high.dtcg.json +1 -1
  219. package/tokens/modes/dark__hoa__comfortable__standard.dtcg.json +1 -1
  220. package/tokens/modes/dark__hoa__compact__high.dtcg.json +1 -1
  221. package/tokens/modes/dark__hoa__compact__standard.dtcg.json +1 -1
  222. package/tokens/modes/dark__kim-steel__comfortable__high.dtcg.json +1 -1
  223. package/tokens/modes/dark__kim-steel__comfortable__standard.dtcg.json +1 -1
  224. package/tokens/modes/dark__kim-steel__compact__high.dtcg.json +1 -1
  225. package/tokens/modes/dark__kim-steel__compact__standard.dtcg.json +1 -1
  226. package/tokens/modes/dark__kim-titanium__comfortable__high.dtcg.json +1 -1
  227. package/tokens/modes/dark__kim-titanium__comfortable__standard.dtcg.json +1 -1
  228. package/tokens/modes/dark__kim-titanium__compact__high.dtcg.json +1 -1
  229. package/tokens/modes/dark__kim-titanium__compact__standard.dtcg.json +1 -1
  230. package/tokens/modes/dark__kim__comfortable__high.dtcg.json +1 -1
  231. package/tokens/modes/dark__kim__comfortable__standard.dtcg.json +1 -1
  232. package/tokens/modes/dark__kim__compact__high.dtcg.json +1 -1
  233. package/tokens/modes/dark__kim__compact__standard.dtcg.json +1 -1
  234. package/tokens/modes/dark__moc-bamboo__comfortable__high.dtcg.json +1 -1
  235. package/tokens/modes/dark__moc-bamboo__comfortable__standard.dtcg.json +1 -1
  236. package/tokens/modes/dark__moc-bamboo__compact__high.dtcg.json +1 -1
  237. package/tokens/modes/dark__moc-bamboo__compact__standard.dtcg.json +1 -1
  238. package/tokens/modes/dark__moc-forest__comfortable__high.dtcg.json +1 -1
  239. package/tokens/modes/dark__moc-forest__comfortable__standard.dtcg.json +1 -1
  240. package/tokens/modes/dark__moc-forest__compact__high.dtcg.json +1 -1
  241. package/tokens/modes/dark__moc-forest__compact__standard.dtcg.json +1 -1
  242. package/tokens/modes/dark__moc__comfortable__high.dtcg.json +1 -1
  243. package/tokens/modes/dark__moc__comfortable__standard.dtcg.json +1 -1
  244. package/tokens/modes/dark__moc__compact__high.dtcg.json +1 -1
  245. package/tokens/modes/dark__moc__compact__standard.dtcg.json +1 -1
  246. package/tokens/modes/dark__tho-clay__comfortable__high.dtcg.json +1 -1
  247. package/tokens/modes/dark__tho-clay__comfortable__standard.dtcg.json +1 -1
  248. package/tokens/modes/dark__tho-clay__compact__high.dtcg.json +1 -1
  249. package/tokens/modes/dark__tho-clay__compact__standard.dtcg.json +1 -1
  250. package/tokens/modes/dark__tho-sand__comfortable__high.dtcg.json +1 -1
  251. package/tokens/modes/dark__tho-sand__comfortable__standard.dtcg.json +1 -1
  252. package/tokens/modes/dark__tho-sand__compact__high.dtcg.json +1 -1
  253. package/tokens/modes/dark__tho-sand__compact__standard.dtcg.json +1 -1
  254. package/tokens/modes/dark__tho__comfortable__high.dtcg.json +1 -1
  255. package/tokens/modes/dark__tho__comfortable__standard.dtcg.json +1 -1
  256. package/tokens/modes/dark__tho__compact__high.dtcg.json +1 -1
  257. package/tokens/modes/dark__tho__compact__standard.dtcg.json +1 -1
  258. package/tokens/modes/dark__thuy-mist__comfortable__high.dtcg.json +1 -1
  259. package/tokens/modes/dark__thuy-mist__comfortable__standard.dtcg.json +1 -1
  260. package/tokens/modes/dark__thuy-mist__compact__high.dtcg.json +1 -1
  261. package/tokens/modes/dark__thuy-mist__compact__standard.dtcg.json +1 -1
  262. package/tokens/modes/dark__thuy-ocean__comfortable__high.dtcg.json +1 -1
  263. package/tokens/modes/dark__thuy-ocean__comfortable__standard.dtcg.json +1 -1
  264. package/tokens/modes/dark__thuy-ocean__compact__high.dtcg.json +1 -1
  265. package/tokens/modes/dark__thuy-ocean__compact__standard.dtcg.json +1 -1
  266. package/tokens/modes/dark__thuy__comfortable__high.dtcg.json +1 -1
  267. package/tokens/modes/dark__thuy__comfortable__standard.dtcg.json +1 -1
  268. package/tokens/modes/dark__thuy__compact__high.dtcg.json +1 -1
  269. package/tokens/modes/dark__thuy__compact__standard.dtcg.json +1 -1
  270. package/tokens/modes/index.json +260 -260
  271. package/tokens/modes/light__default__comfortable__high.dtcg.json +1 -1
  272. package/tokens/modes/light__default__comfortable__standard.dtcg.json +1 -1
  273. package/tokens/modes/light__default__compact__high.dtcg.json +1 -1
  274. package/tokens/modes/light__default__compact__standard.dtcg.json +1 -1
  275. package/tokens/modes/light__hoa-lava__comfortable__high.dtcg.json +1 -1
  276. package/tokens/modes/light__hoa-lava__comfortable__standard.dtcg.json +1 -1
  277. package/tokens/modes/light__hoa-lava__compact__high.dtcg.json +1 -1
  278. package/tokens/modes/light__hoa-lava__compact__standard.dtcg.json +1 -1
  279. package/tokens/modes/light__hoa-plasma__comfortable__high.dtcg.json +1 -1
  280. package/tokens/modes/light__hoa-plasma__comfortable__standard.dtcg.json +1 -1
  281. package/tokens/modes/light__hoa-plasma__compact__high.dtcg.json +1 -1
  282. package/tokens/modes/light__hoa-plasma__compact__standard.dtcg.json +1 -1
  283. package/tokens/modes/light__hoa__comfortable__high.dtcg.json +1 -1
  284. package/tokens/modes/light__hoa__comfortable__standard.dtcg.json +1 -1
  285. package/tokens/modes/light__hoa__compact__high.dtcg.json +1 -1
  286. package/tokens/modes/light__hoa__compact__standard.dtcg.json +1 -1
  287. package/tokens/modes/light__kim-steel__comfortable__high.dtcg.json +1 -1
  288. package/tokens/modes/light__kim-steel__comfortable__standard.dtcg.json +1 -1
  289. package/tokens/modes/light__kim-steel__compact__high.dtcg.json +1 -1
  290. package/tokens/modes/light__kim-steel__compact__standard.dtcg.json +1 -1
  291. package/tokens/modes/light__kim-titanium__comfortable__high.dtcg.json +1 -1
  292. package/tokens/modes/light__kim-titanium__comfortable__standard.dtcg.json +1 -1
  293. package/tokens/modes/light__kim-titanium__compact__high.dtcg.json +1 -1
  294. package/tokens/modes/light__kim-titanium__compact__standard.dtcg.json +1 -1
  295. package/tokens/modes/light__kim__comfortable__high.dtcg.json +1 -1
  296. package/tokens/modes/light__kim__comfortable__standard.dtcg.json +1 -1
  297. package/tokens/modes/light__kim__compact__high.dtcg.json +1 -1
  298. package/tokens/modes/light__kim__compact__standard.dtcg.json +1 -1
  299. package/tokens/modes/light__moc-bamboo__comfortable__high.dtcg.json +1 -1
  300. package/tokens/modes/light__moc-bamboo__comfortable__standard.dtcg.json +1 -1
  301. package/tokens/modes/light__moc-bamboo__compact__high.dtcg.json +1 -1
  302. package/tokens/modes/light__moc-bamboo__compact__standard.dtcg.json +1 -1
  303. package/tokens/modes/light__moc-forest__comfortable__high.dtcg.json +1 -1
  304. package/tokens/modes/light__moc-forest__comfortable__standard.dtcg.json +1 -1
  305. package/tokens/modes/light__moc-forest__compact__high.dtcg.json +1 -1
  306. package/tokens/modes/light__moc-forest__compact__standard.dtcg.json +1 -1
  307. package/tokens/modes/light__moc__comfortable__high.dtcg.json +1 -1
  308. package/tokens/modes/light__moc__comfortable__standard.dtcg.json +1 -1
  309. package/tokens/modes/light__moc__compact__high.dtcg.json +1 -1
  310. package/tokens/modes/light__moc__compact__standard.dtcg.json +1 -1
  311. package/tokens/modes/light__tho-clay__comfortable__high.dtcg.json +1 -1
  312. package/tokens/modes/light__tho-clay__comfortable__standard.dtcg.json +1 -1
  313. package/tokens/modes/light__tho-clay__compact__high.dtcg.json +1 -1
  314. package/tokens/modes/light__tho-clay__compact__standard.dtcg.json +1 -1
  315. package/tokens/modes/light__tho-sand__comfortable__high.dtcg.json +1 -1
  316. package/tokens/modes/light__tho-sand__comfortable__standard.dtcg.json +1 -1
  317. package/tokens/modes/light__tho-sand__compact__high.dtcg.json +1 -1
  318. package/tokens/modes/light__tho-sand__compact__standard.dtcg.json +1 -1
  319. package/tokens/modes/light__tho__comfortable__high.dtcg.json +1 -1
  320. package/tokens/modes/light__tho__comfortable__standard.dtcg.json +1 -1
  321. package/tokens/modes/light__tho__compact__high.dtcg.json +1 -1
  322. package/tokens/modes/light__tho__compact__standard.dtcg.json +1 -1
  323. package/tokens/modes/light__thuy-mist__comfortable__high.dtcg.json +1 -1
  324. package/tokens/modes/light__thuy-mist__comfortable__standard.dtcg.json +1 -1
  325. package/tokens/modes/light__thuy-mist__compact__high.dtcg.json +1 -1
  326. package/tokens/modes/light__thuy-mist__compact__standard.dtcg.json +1 -1
  327. package/tokens/modes/light__thuy-ocean__comfortable__high.dtcg.json +1 -1
  328. package/tokens/modes/light__thuy-ocean__comfortable__standard.dtcg.json +1 -1
  329. package/tokens/modes/light__thuy-ocean__compact__high.dtcg.json +1 -1
  330. package/tokens/modes/light__thuy-ocean__compact__standard.dtcg.json +1 -1
  331. package/tokens/modes/light__thuy__comfortable__high.dtcg.json +1 -1
  332. package/tokens/modes/light__thuy__comfortable__standard.dtcg.json +1 -1
  333. package/tokens/modes/light__thuy__compact__high.dtcg.json +1 -1
  334. package/tokens/modes/light__thuy__compact__standard.dtcg.json +1 -1
  335. package/tokens/modes/system-dark__default__comfortable__high.dtcg.json +1 -1
  336. package/tokens/modes/system-dark__default__comfortable__standard.dtcg.json +1 -1
  337. package/tokens/modes/system-dark__default__compact__high.dtcg.json +1 -1
  338. package/tokens/modes/system-dark__default__compact__standard.dtcg.json +1 -1
  339. package/tokens/modes/system-dark__hoa-lava__comfortable__high.dtcg.json +1 -1
  340. package/tokens/modes/system-dark__hoa-lava__comfortable__standard.dtcg.json +1 -1
  341. package/tokens/modes/system-dark__hoa-lava__compact__high.dtcg.json +1 -1
  342. package/tokens/modes/system-dark__hoa-lava__compact__standard.dtcg.json +1 -1
  343. package/tokens/modes/system-dark__hoa-plasma__comfortable__high.dtcg.json +1 -1
  344. package/tokens/modes/system-dark__hoa-plasma__comfortable__standard.dtcg.json +1 -1
  345. package/tokens/modes/system-dark__hoa-plasma__compact__high.dtcg.json +1 -1
  346. package/tokens/modes/system-dark__hoa-plasma__compact__standard.dtcg.json +1 -1
  347. package/tokens/modes/system-dark__hoa__comfortable__high.dtcg.json +1 -1
  348. package/tokens/modes/system-dark__hoa__comfortable__standard.dtcg.json +1 -1
  349. package/tokens/modes/system-dark__hoa__compact__high.dtcg.json +1 -1
  350. package/tokens/modes/system-dark__hoa__compact__standard.dtcg.json +1 -1
  351. package/tokens/modes/system-dark__kim-steel__comfortable__high.dtcg.json +1 -1
  352. package/tokens/modes/system-dark__kim-steel__comfortable__standard.dtcg.json +1 -1
  353. package/tokens/modes/system-dark__kim-steel__compact__high.dtcg.json +1 -1
  354. package/tokens/modes/system-dark__kim-steel__compact__standard.dtcg.json +1 -1
  355. package/tokens/modes/system-dark__kim-titanium__comfortable__high.dtcg.json +1 -1
  356. package/tokens/modes/system-dark__kim-titanium__comfortable__standard.dtcg.json +1 -1
  357. package/tokens/modes/system-dark__kim-titanium__compact__high.dtcg.json +1 -1
  358. package/tokens/modes/system-dark__kim-titanium__compact__standard.dtcg.json +1 -1
  359. package/tokens/modes/system-dark__kim__comfortable__high.dtcg.json +1 -1
  360. package/tokens/modes/system-dark__kim__comfortable__standard.dtcg.json +1 -1
  361. package/tokens/modes/system-dark__kim__compact__high.dtcg.json +1 -1
  362. package/tokens/modes/system-dark__kim__compact__standard.dtcg.json +1 -1
  363. package/tokens/modes/system-dark__moc-bamboo__comfortable__high.dtcg.json +1 -1
  364. package/tokens/modes/system-dark__moc-bamboo__comfortable__standard.dtcg.json +1 -1
  365. package/tokens/modes/system-dark__moc-bamboo__compact__high.dtcg.json +1 -1
  366. package/tokens/modes/system-dark__moc-bamboo__compact__standard.dtcg.json +1 -1
  367. package/tokens/modes/system-dark__moc-forest__comfortable__high.dtcg.json +1 -1
  368. package/tokens/modes/system-dark__moc-forest__comfortable__standard.dtcg.json +1 -1
  369. package/tokens/modes/system-dark__moc-forest__compact__high.dtcg.json +1 -1
  370. package/tokens/modes/system-dark__moc-forest__compact__standard.dtcg.json +1 -1
  371. package/tokens/modes/system-dark__moc__comfortable__high.dtcg.json +1 -1
  372. package/tokens/modes/system-dark__moc__comfortable__standard.dtcg.json +1 -1
  373. package/tokens/modes/system-dark__moc__compact__high.dtcg.json +1 -1
  374. package/tokens/modes/system-dark__moc__compact__standard.dtcg.json +1 -1
  375. package/tokens/modes/system-dark__tho-clay__comfortable__high.dtcg.json +1 -1
  376. package/tokens/modes/system-dark__tho-clay__comfortable__standard.dtcg.json +1 -1
  377. package/tokens/modes/system-dark__tho-clay__compact__high.dtcg.json +1 -1
  378. package/tokens/modes/system-dark__tho-clay__compact__standard.dtcg.json +1 -1
  379. package/tokens/modes/system-dark__tho-sand__comfortable__high.dtcg.json +1 -1
  380. package/tokens/modes/system-dark__tho-sand__comfortable__standard.dtcg.json +1 -1
  381. package/tokens/modes/system-dark__tho-sand__compact__high.dtcg.json +1 -1
  382. package/tokens/modes/system-dark__tho-sand__compact__standard.dtcg.json +1 -1
  383. package/tokens/modes/system-dark__tho__comfortable__high.dtcg.json +1 -1
  384. package/tokens/modes/system-dark__tho__comfortable__standard.dtcg.json +1 -1
  385. package/tokens/modes/system-dark__tho__compact__high.dtcg.json +1 -1
  386. package/tokens/modes/system-dark__tho__compact__standard.dtcg.json +1 -1
  387. package/tokens/modes/system-dark__thuy-mist__comfortable__high.dtcg.json +1 -1
  388. package/tokens/modes/system-dark__thuy-mist__comfortable__standard.dtcg.json +1 -1
  389. package/tokens/modes/system-dark__thuy-mist__compact__high.dtcg.json +1 -1
  390. package/tokens/modes/system-dark__thuy-mist__compact__standard.dtcg.json +1 -1
  391. package/tokens/modes/system-dark__thuy-ocean__comfortable__high.dtcg.json +1 -1
  392. package/tokens/modes/system-dark__thuy-ocean__comfortable__standard.dtcg.json +1 -1
  393. package/tokens/modes/system-dark__thuy-ocean__compact__high.dtcg.json +1 -1
  394. package/tokens/modes/system-dark__thuy-ocean__compact__standard.dtcg.json +1 -1
  395. package/tokens/modes/system-dark__thuy__comfortable__high.dtcg.json +1 -1
  396. package/tokens/modes/system-dark__thuy__comfortable__standard.dtcg.json +1 -1
  397. package/tokens/modes/system-dark__thuy__compact__high.dtcg.json +1 -1
  398. package/tokens/modes/system-dark__thuy__compact__standard.dtcg.json +1 -1
  399. package/tokens/modes/system-light__default__comfortable__high.dtcg.json +1 -1
  400. package/tokens/modes/system-light__default__comfortable__standard.dtcg.json +1 -1
  401. package/tokens/modes/system-light__default__compact__high.dtcg.json +1 -1
  402. package/tokens/modes/system-light__default__compact__standard.dtcg.json +1 -1
  403. package/tokens/modes/system-light__hoa-lava__comfortable__high.dtcg.json +1 -1
  404. package/tokens/modes/system-light__hoa-lava__comfortable__standard.dtcg.json +1 -1
  405. package/tokens/modes/system-light__hoa-lava__compact__high.dtcg.json +1 -1
  406. package/tokens/modes/system-light__hoa-lava__compact__standard.dtcg.json +1 -1
  407. package/tokens/modes/system-light__hoa-plasma__comfortable__high.dtcg.json +1 -1
  408. package/tokens/modes/system-light__hoa-plasma__comfortable__standard.dtcg.json +1 -1
  409. package/tokens/modes/system-light__hoa-plasma__compact__high.dtcg.json +1 -1
  410. package/tokens/modes/system-light__hoa-plasma__compact__standard.dtcg.json +1 -1
  411. package/tokens/modes/system-light__hoa__comfortable__high.dtcg.json +1 -1
  412. package/tokens/modes/system-light__hoa__comfortable__standard.dtcg.json +1 -1
  413. package/tokens/modes/system-light__hoa__compact__high.dtcg.json +1 -1
  414. package/tokens/modes/system-light__hoa__compact__standard.dtcg.json +1 -1
  415. package/tokens/modes/system-light__kim-steel__comfortable__high.dtcg.json +1 -1
  416. package/tokens/modes/system-light__kim-steel__comfortable__standard.dtcg.json +1 -1
  417. package/tokens/modes/system-light__kim-steel__compact__high.dtcg.json +1 -1
  418. package/tokens/modes/system-light__kim-steel__compact__standard.dtcg.json +1 -1
  419. package/tokens/modes/system-light__kim-titanium__comfortable__high.dtcg.json +1 -1
  420. package/tokens/modes/system-light__kim-titanium__comfortable__standard.dtcg.json +1 -1
  421. package/tokens/modes/system-light__kim-titanium__compact__high.dtcg.json +1 -1
  422. package/tokens/modes/system-light__kim-titanium__compact__standard.dtcg.json +1 -1
  423. package/tokens/modes/system-light__kim__comfortable__high.dtcg.json +1 -1
  424. package/tokens/modes/system-light__kim__comfortable__standard.dtcg.json +1 -1
  425. package/tokens/modes/system-light__kim__compact__high.dtcg.json +1 -1
  426. package/tokens/modes/system-light__kim__compact__standard.dtcg.json +1 -1
  427. package/tokens/modes/system-light__moc-bamboo__comfortable__high.dtcg.json +1 -1
  428. package/tokens/modes/system-light__moc-bamboo__comfortable__standard.dtcg.json +1 -1
  429. package/tokens/modes/system-light__moc-bamboo__compact__high.dtcg.json +1 -1
  430. package/tokens/modes/system-light__moc-bamboo__compact__standard.dtcg.json +1 -1
  431. package/tokens/modes/system-light__moc-forest__comfortable__high.dtcg.json +1 -1
  432. package/tokens/modes/system-light__moc-forest__comfortable__standard.dtcg.json +1 -1
  433. package/tokens/modes/system-light__moc-forest__compact__high.dtcg.json +1 -1
  434. package/tokens/modes/system-light__moc-forest__compact__standard.dtcg.json +1 -1
  435. package/tokens/modes/system-light__moc__comfortable__high.dtcg.json +1 -1
  436. package/tokens/modes/system-light__moc__comfortable__standard.dtcg.json +1 -1
  437. package/tokens/modes/system-light__moc__compact__high.dtcg.json +1 -1
  438. package/tokens/modes/system-light__moc__compact__standard.dtcg.json +1 -1
  439. package/tokens/modes/system-light__tho-clay__comfortable__high.dtcg.json +1 -1
  440. package/tokens/modes/system-light__tho-clay__comfortable__standard.dtcg.json +1 -1
  441. package/tokens/modes/system-light__tho-clay__compact__high.dtcg.json +1 -1
  442. package/tokens/modes/system-light__tho-clay__compact__standard.dtcg.json +1 -1
  443. package/tokens/modes/system-light__tho-sand__comfortable__high.dtcg.json +1 -1
  444. package/tokens/modes/system-light__tho-sand__comfortable__standard.dtcg.json +1 -1
  445. package/tokens/modes/system-light__tho-sand__compact__high.dtcg.json +1 -1
  446. package/tokens/modes/system-light__tho-sand__compact__standard.dtcg.json +1 -1
  447. package/tokens/modes/system-light__tho__comfortable__high.dtcg.json +1 -1
  448. package/tokens/modes/system-light__tho__comfortable__standard.dtcg.json +1 -1
  449. package/tokens/modes/system-light__tho__compact__high.dtcg.json +1 -1
  450. package/tokens/modes/system-light__tho__compact__standard.dtcg.json +1 -1
  451. package/tokens/modes/system-light__thuy-mist__comfortable__high.dtcg.json +1 -1
  452. package/tokens/modes/system-light__thuy-mist__comfortable__standard.dtcg.json +1 -1
  453. package/tokens/modes/system-light__thuy-mist__compact__high.dtcg.json +1 -1
  454. package/tokens/modes/system-light__thuy-mist__compact__standard.dtcg.json +1 -1
  455. package/tokens/modes/system-light__thuy-ocean__comfortable__high.dtcg.json +1 -1
  456. package/tokens/modes/system-light__thuy-ocean__comfortable__standard.dtcg.json +1 -1
  457. package/tokens/modes/system-light__thuy-ocean__compact__high.dtcg.json +1 -1
  458. package/tokens/modes/system-light__thuy-ocean__compact__standard.dtcg.json +1 -1
  459. package/tokens/modes/system-light__thuy__comfortable__high.dtcg.json +1 -1
  460. package/tokens/modes/system-light__thuy__comfortable__standard.dtcg.json +1 -1
  461. package/tokens/modes/system-light__thuy__compact__high.dtcg.json +1 -1
  462. package/tokens/modes/system-light__thuy__compact__standard.dtcg.json +1 -1
  463. package/tokens/native/CSModes.kt +3 -3
  464. package/tokens/native/CSModes.swift +3 -3
  465. package/tokens/native/CSTokens.kt +1 -1
  466. package/tokens/native/CSTokens.swift +1 -1
  467. package/tokens/native/cs_modes.dart +3 -3
  468. package/tokens/native/cs_tokens.dart +1 -1
  469. package/tokens/native/mode-provenance.json +6 -6
  470. package/tokens/provenance.json +6 -6
  471. package/tokens/styles.css +1 -1
  472. package/tokens/tokens.dtcg.json +4 -4
  473. package/tokens/tokens.js +5 -5
  474. package/tokens/tokens.json +4 -4
  475. package/tokens/variables.css +0 -9
  476. package/ui_kits/deck/index.html +1 -1
  477. package/ui_kits/status-hub/index.html +1 -1
  478. package/ui_kits/status-hub/login.html +1 -1
  479. package/ui_kits/status-hub/project.html +1 -1
  480. package/ui_kits/status-hub/settings.html +1 -1
  481. package/ui_kits/status-hub/static-locale.js +2 -0
  482. package/ui_kits/website/careers.html +1 -1
  483. package/ui_kits/website/chat.html +1 -1
  484. package/ui_kits/website/index.html +1 -1
  485. package/ui_kits/website/work.html +1 -1
  486. package/dist/esm/chunks/chunk-GLPQBE2J.mjs.map +0 -7
package/tokens/tokens.js CHANGED
@@ -1,16 +1,16 @@
1
- // CyberSkill design tokens — generated from tokens/*.css (v2.5.0). Do not edit by hand.
1
+ // CyberSkill design tokens — generated from tokens/*.css (v2.7.0). Do not edit by hand.
2
2
  export const tokens = {
3
3
  "$meta": {
4
4
  "system": "CyberSkill Design System",
5
- "version": "2.5.0",
5
+ "version": "2.7.0",
6
6
  "generated": "2026-07-23",
7
7
  "note": "Generated from tokens/*.css. Root grouped by category; theme/element scopes carry overrides only. Regenerate after any token change (see docs/conventions.md).",
8
8
  "declarationGraph": {
9
9
  "path": "declarations.json",
10
10
  "schemaVersion": 1,
11
- "sha256": "5d4246a9e0c35a9edacef8681b0b6c06da4522112e7663c8c1fd739091dc4521",
12
- "declarations": 1080,
13
- "publicDeclarations": 397,
11
+ "sha256": "15d4bc951a001e97d3b53add975e1655583b9f390bc6d232ef3c8f6de55a8c9b",
12
+ "declarations": 1074,
13
+ "publicDeclarations": 391,
14
14
  "publicNames": 216,
15
15
  "privateDeclarations": 683
16
16
  }
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "$meta": {
3
3
  "system": "CyberSkill Design System",
4
- "version": "2.5.0",
4
+ "version": "2.7.0",
5
5
  "generated": "2026-07-23",
6
6
  "note": "Generated from tokens/*.css. Root grouped by category; theme/element scopes carry overrides only. Regenerate after any token change (see docs/conventions.md).",
7
7
  "declarationGraph": {
8
8
  "path": "declarations.json",
9
9
  "schemaVersion": 1,
10
- "sha256": "5d4246a9e0c35a9edacef8681b0b6c06da4522112e7663c8c1fd739091dc4521",
11
- "declarations": 1080,
12
- "publicDeclarations": 397,
10
+ "sha256": "15d4bc951a001e97d3b53add975e1655583b9f390bc6d232ef3c8f6de55a8c9b",
11
+ "declarations": 1074,
12
+ "publicDeclarations": 391,
13
13
  "publicNames": 216,
14
14
  "privateDeclarations": 683
15
15
  }
@@ -1192,13 +1192,4 @@
1192
1192
  }
1193
1193
  /* Source: base/interaction.css */
1194
1194
  /* Source: base/a11y.css */
1195
- @media (prefers-contrast: more) {
1196
- [data-theme="light"]:where(:not([data-cs-contrast="standard"], [data-cs-contrast="standard"] *)),
1197
- [data-theme="system"]:where(:not([data-cs-contrast="standard"], [data-cs-contrast="standard"] *)),
1198
- :root:where(:not([data-cs-contrast="standard"])) { --cs-color-border-default: #9a8060; --cs-color-text-muted: #45210e; }
1199
- [data-theme="dark"]:where(:not([data-cs-contrast="standard"], [data-cs-contrast="standard"] *)) { --cs-color-border-default: #7a6450; --cs-color-text-muted: #f5ead9; }
1200
- }
1201
- @media (prefers-color-scheme: dark) and (prefers-contrast: more) {
1202
- [data-theme="system"]:where(:not([data-cs-contrast="standard"], [data-cs-contrast="standard"] *)) { --cs-color-border-default: #7a6450; --cs-color-text-muted: #f5ead9; }
1203
- }
1204
1195
  /* Source: base/responsive.css */
@@ -19,7 +19,7 @@
19
19
  })();
20
20
  </script>
21
21
  <link rel="icon" href="../../assets/favicon.svg" />
22
- <link rel="stylesheet" href="../../styles.css" />
22
+ <link rel="stylesheet" href="../../dist/styles.css" />
23
23
  <style>
24
24
  html, body { margin: 0; background: #2a1a0d; }
25
25
  .cs-skip:focus-visible, deck-stage:focus-visible, deck-stage:focus-within { outline: 2px solid var(--cs-color-text-primary); outline-offset: -2px; box-shadow: 0 0 0 5px var(--cs-color-accent-ochre); }
@@ -19,7 +19,7 @@
19
19
  })();
20
20
  </script>
21
21
  <link rel="icon" href="../../assets/favicon.svg" />
22
- <link rel="stylesheet" href="../../styles.css" />
22
+ <link rel="stylesheet" href="../../dist/styles.css" />
23
23
  <link rel="stylesheet" href="status.css" />
24
24
  <style>html,body{margin:0;background:var(--cs-color-surface-page);min-height:100vh}</style>
25
25
  <script src="../../_vendor/react/react.production.min.js"></script>
@@ -7,7 +7,7 @@
7
7
  <meta name="description" content="Status Hub — sign in: Umber split login with brand panel + form controls (default / loading / error / invalid)" />
8
8
  <title data-vi="CyberSkill · Đăng nhập">CyberSkill · Sign in</title>
9
9
  <link rel="icon" href="../../assets/favicon.svg" />
10
- <link rel="stylesheet" href="../../styles.css" />
10
+ <link rel="stylesheet" href="../../dist/styles.css" />
11
11
  <style>
12
12
  html, body { margin: 0; min-height: 100vh; }
13
13
  .login { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
@@ -7,7 +7,7 @@
7
7
  <meta name="description" content="Status Hub — project detail: Full project view: breadcrumb, steps, tasks, timeline, risk" />
8
8
  <title>CyberSkill · Design System v1.6</title>
9
9
  <link rel="icon" href="../../assets/favicon.svg" />
10
- <link rel="stylesheet" href="../../styles.css" />
10
+ <link rel="stylesheet" href="../../dist/styles.css" />
11
11
  <link rel="stylesheet" href="status.css" />
12
12
  <style>
13
13
  html, body { margin: 0; background: var(--cs-color-surface-page); }
@@ -7,7 +7,7 @@
7
7
  <meta name="description" content="Status Hub — settings: Tabs, form controls, switches, danger zone" />
8
8
  <title data-vi="CyberSkill · Cài đặt">CyberSkill · Settings</title>
9
9
  <link rel="icon" href="../../assets/favicon.svg" />
10
- <link rel="stylesheet" href="../../styles.css" />
10
+ <link rel="stylesheet" href="../../dist/styles.css" />
11
11
  <link rel="stylesheet" href="status.css" />
12
12
  <style>
13
13
  html, body { margin: 0; background: var(--cs-color-surface-page); }
@@ -1,9 +1,11 @@
1
1
  /* EN/VI copy for the three static Status Hub previews. Native form values,
2
2
  * caller data and theme are independent; language is local and not persisted. */
3
3
  (function () {
4
+ if (typeof document === 'undefined') return;
4
5
  var root = document.documentElement;
5
6
  var toggle = document.querySelector('[data-preview-language-toggle]');
6
7
  var select = document.querySelector('[data-preview-language-select]');
8
+ if (!toggle && !select) return; // only the static Status Hub previews own this language switch
7
9
  function apply(lang) {
8
10
  var vi = lang === 'vi';
9
11
  root.lang = vi ? 'vi' : 'en';
@@ -7,7 +7,7 @@
7
7
  <meta name="description" content="cyberskill.world — careers: Sample values and roles with contact-preview links" />
8
8
  <title>CyberSkill · Careers</title>
9
9
  <link rel="icon" href="../../assets/favicon.svg" />
10
- <link rel="stylesheet" href="../../styles.css" />
10
+ <link rel="stylesheet" href="../../dist/styles.css" />
11
11
  <link rel="stylesheet" href="site.css" />
12
12
  <style>
13
13
  /* hero: banner */
@@ -7,7 +7,7 @@
7
7
  <meta name="description" content="cyberskill.world — Lumi chat: Scripted EN/VI chat preview: prompt, sample messages and disclosures" />
8
8
  <title>CyberSkill · Lumi</title>
9
9
  <link rel="icon" href="../../assets/favicon.svg" />
10
- <link rel="stylesheet" href="../../styles.css" />
10
+ <link rel="stylesheet" href="../../dist/styles.css" />
11
11
  <link rel="stylesheet" href="site.css" />
12
12
  <style>
13
13
  html, body { margin: 0; height: 100%; }
@@ -19,7 +19,7 @@
19
19
  })();
20
20
  </script>
21
21
  <link rel="icon" href="../../assets/favicon.svg" />
22
- <link rel="stylesheet" href="../../styles.css" />
22
+ <link rel="stylesheet" href="../../dist/styles.css" />
23
23
  <link rel="stylesheet" href="site.css" />
24
24
  <style>html,body{margin:0}</style>
25
25
 
@@ -7,7 +7,7 @@
7
7
  <meta name="description" content="cyberskill.world — work: Sample case-study grid, results band and contact-preview link" />
8
8
  <title>CyberSkill · Work</title>
9
9
  <link rel="icon" href="../../assets/favicon.svg" />
10
- <link rel="stylesheet" href="../../styles.css" />
10
+ <link rel="stylesheet" href="../../dist/styles.css" />
11
11
  <link rel="stylesheet" href="site.css" />
12
12
  <style>
13
13
  /* hero: banner */
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../components/forms/InlineEdit.jsx"],
4
- "sourcesContent": ["import { useComposedRefs } from \"../_utils/refs.js\";\nimport { mergeTargetProps } from \"../_utils/field-association.js\";\nimport React from \"react\";\nimport { makeT, useLang } from \"../_i18n/i18n.js\";\nimport { useOverlayLayer, overlayScopeContext } from \"../overlays/OverlayManager.jsx\";\nimport { cx } from \"../_utils/cx.js\";\nconst PEN = <svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.9\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 20l4.5-.9L20 7.6a2 2 0 0 0-2.8-2.8L5.7 16.3 4 20z\" /></svg>;\n\n/** CyberSkill InlineEdit — click-to-edit text. Enter/blur commits, Escape cancels. */\nexport const InlineEdit = React.forwardRef(function InlineEdit({ controlRef, value, defaultValue = \"\", onChange, label, lang, className , rootProps }, forwardedRef) {\n const mergedControlRef = useComposedRefs(controlRef);\n const [inner, setInner] = React.useState(defaultValue);\n const val = value != null ? value : inner;\n const [edit, setEdit] = React.useState(false);\n const [draft, setDraft] = React.useState(val);\n const cancellingRef = React.useRef(false);\n const commit = () => {\n if (cancellingRef.current) { cancellingRef.current = false; return; }\n setEdit(false);\n if (draft !== val) { if (value == null) setInner(draft); onChange && onChange(draft); }\n };\n const [ref, L, localeMessages] = useLang(lang);\n const mergedNativeRef = useComposedRefs(ref, forwardedRef);\n const t = makeT(\"InlineEdit\", L, localeMessages);\n const { scope } = useOverlayLayer({ open: edit, kind: \"popover\", panelRef: ref, restoreFocus: false, onEscape: () => {\n cancellingRef.current = true;\n setDraft(val); setEdit(false);\n requestAnimationFrame(() => ref.current?.querySelector(\"button\")?.focus());\n } });\n return (\n <overlayScopeContext.Provider value={scope}>\n <span ref={mergedNativeRef} {...mergeTargetProps({ \"className\": cx(\"cs-inline-edit\", className) }, rootProps, [])}>\n {edit ? (\n <input autoFocus value={draft} aria-label={label || t(\"edit\")} onChange={(e) => setDraft(e.target.value)} onBlur={commit}\n onKeyDown={(e) => { if (!e.nativeEvent.isComposing && e.keyCode !== 229 && e.key === \"Enter\") commit(); }} ref={mergedControlRef} />\n ) : (\n <button type=\"button\" className=\"cs-inline-edit__view\" aria-label={t(\"edit\") + (label ? \": \" + label : \"\")} onClick={() => { cancellingRef.current = false; setDraft(val); setEdit(true); }}>\n <span className={val ? undefined : \"ph\"}>{val || t(\"empty\")}</span>{PEN}\n </button>\n )}\n </span>\n </overlayScopeContext.Provider>\n );\n});\nInlineEdit.displayName = \"InlineEdit\";\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAEA,OAAO,WAAW;AAIlB,IAAM,MAAM,oCAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,QAAO,gBAAe,aAAY,OAAM,eAAc,SAAQ,gBAAe,SAAQ,eAAY,UAAO,oCAAC,UAAK,GAAE,wDAAuD,CAAE;AAG1O,IAAM,aAAa,MAAM,WAAW,SAASA,YAAW,EAAE,YAAY,OAAO,eAAe,IAAI,UAAU,OAAO,MAAM,WAAY,UAAU,GAAG,cAAc;AACnK,QAAM,mBAAmB,gBAAgB,UAAU;AACnD,QAAM,CAAC,OAAO,QAAQ,IAAI,MAAM,SAAS,YAAY;AACrD,QAAM,MAAM,SAAS,OAAO,QAAQ;AACpC,QAAM,CAAC,MAAM,OAAO,IAAI,MAAM,SAAS,KAAK;AAC5C,QAAM,CAAC,OAAO,QAAQ,IAAI,MAAM,SAAS,GAAG;AAC5C,QAAM,gBAAgB,MAAM,OAAO,KAAK;AACxC,QAAM,SAAS,MAAM;AACnB,QAAI,cAAc,SAAS;AAAE,oBAAc,UAAU;AAAO;AAAA,IAAQ;AACpE,YAAQ,KAAK;AACb,QAAI,UAAU,KAAK;AAAE,UAAI,SAAS,KAAM,UAAS,KAAK;AAAG,kBAAY,SAAS,KAAK;AAAA,IAAG;AAAA,EACxF;AACA,QAAM,CAAC,KAAK,GAAG,cAAc,IAAI,QAAQ,IAAI;AAC7C,QAAM,kBAAkB,gBAAgB,KAAK,YAAY;AACzD,QAAM,IAAI,MAAM,cAAc,GAAG,cAAc;AAC/C,QAAM,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,MAAM,MAAM,WAAW,UAAU,KAAK,cAAc,OAAO,UAAU,MAAM;AACnH,kBAAc,UAAU;AACxB,aAAS,GAAG;AAAG,YAAQ,KAAK;AAC5B,0BAAsB,MAAM,IAAI,SAAS,cAAc,QAAQ,GAAG,MAAM,CAAC;AAAA,EAC3E,EAAE,CAAC;AACH,SACE,oCAAC,oBAAoB,UAApB,EAA6B,OAAO,SACrC,oCAAC,UAAK,KAAK,iBAAkB,GAAG,iBAAiB,EAAE,aAAa,GAAG,kBAAkB,SAAS,EAAE,GAAG,WAAW,CAAC,CAAC,KAC7G,OACC;AAAA,IAAC;AAAA;AAAA,MAAM,WAAS;AAAA,MAAC,OAAO;AAAA,MAAO,cAAY,SAAS,EAAE,MAAM;AAAA,MAAG,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,KAAK;AAAA,MAAG,QAAQ;AAAA,MAChH,WAAW,CAAC,MAAM;AAAE,YAAI,CAAC,EAAE,YAAY,eAAe,EAAE,YAAY,OAAO,EAAE,QAAQ,QAAS,QAAO;AAAA,MAAG;AAAA,MAAI,KAAK;AAAA;AAAA,EAAkB,IAErI,oCAAC,YAAO,MAAK,UAAS,WAAU,wBAAuB,cAAY,EAAE,MAAM,KAAK,QAAQ,OAAO,QAAQ,KAAK,SAAS,MAAM;AAAE,kBAAc,UAAU;AAAO,aAAS,GAAG;AAAG,YAAQ,IAAI;AAAA,EAAG,KACxL,oCAAC,UAAK,WAAW,MAAM,SAAY,QAAO,OAAO,EAAE,OAAO,CAAE,GAAQ,GACtE,CAEJ,CACA;AAEJ,CAAC;AACD,WAAW,cAAc;",
6
- "names": ["InlineEdit"]
7
- }