@solibo/solibo-ui 1.0.15 → 1.0.16

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 (120) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/index10.css +1 -1
  3. package/dist/assets/index12.css +1 -1
  4. package/dist/assets/index13.css +1 -1
  5. package/dist/assets/index14.css +1 -1
  6. package/dist/assets/index15.css +1 -1
  7. package/dist/assets/index18.css +1 -1
  8. package/dist/assets/index23.css +1 -1
  9. package/dist/assets/index24.css +1 -1
  10. package/dist/assets/index25.css +1 -1
  11. package/dist/assets/index26.css +1 -1
  12. package/dist/assets/index27.css +1 -1
  13. package/dist/assets/index29.css +1 -1
  14. package/dist/assets/index3.css +1 -1
  15. package/dist/assets/index30.css +1 -1
  16. package/dist/assets/index31.css +1 -1
  17. package/dist/assets/index33.css +1 -1
  18. package/dist/assets/index34.css +1 -1
  19. package/dist/assets/index35.css +1 -1
  20. package/dist/assets/index36.css +1 -1
  21. package/dist/assets/index37.css +1 -1
  22. package/dist/assets/index39.css +1 -1
  23. package/dist/assets/index4.css +1 -1
  24. package/dist/assets/index43.css +1 -1
  25. package/dist/assets/index44.css +1 -1
  26. package/dist/assets/index45.css +1 -1
  27. package/dist/assets/index47.css +1 -1
  28. package/dist/assets/index48.css +1 -1
  29. package/dist/assets/index49.css +1 -1
  30. package/dist/assets/index6.css +1 -1
  31. package/dist/assets/index8.css +1 -1
  32. package/dist/assets/index9.css +1 -1
  33. package/dist/assets/menu-popover.css +1 -1
  34. package/dist/components/app-link/index.cjs +1 -1
  35. package/dist/components/app-link/index.js +8 -8
  36. package/dist/components/aside/index.cjs +1 -1
  37. package/dist/components/aside/index.js +11 -11
  38. package/dist/components/avatar/index.cjs +1 -1
  39. package/dist/components/avatar/index.cjs.map +1 -1
  40. package/dist/components/avatar/index.js +58 -58
  41. package/dist/components/badge/index.cjs +1 -1
  42. package/dist/components/badge/index.js +27 -27
  43. package/dist/components/banner/index.cjs +1 -1
  44. package/dist/components/banner/index.js +14 -14
  45. package/dist/components/button/index.cjs +1 -1
  46. package/dist/components/button/index.js +18 -18
  47. package/dist/components/card/index.cjs +1 -1
  48. package/dist/components/card/index.js +46 -46
  49. package/dist/components/checkbox/index.cjs +1 -1
  50. package/dist/components/checkbox/index.js +7 -7
  51. package/dist/components/collapsible/index.cjs +1 -1
  52. package/dist/components/collapsible/index.cjs.map +1 -1
  53. package/dist/components/collapsible/index.js +18 -37
  54. package/dist/components/collapsible/index.js.map +1 -1
  55. package/dist/components/controls/index.cjs +1 -1
  56. package/dist/components/controls/index.cjs.map +1 -1
  57. package/dist/components/controls/index.js +110 -90
  58. package/dist/components/controls/index.js.map +1 -1
  59. package/dist/components/croppable/index.cjs +1 -1
  60. package/dist/components/croppable/index.js +181 -181
  61. package/dist/components/dialog/index.cjs +1 -1
  62. package/dist/components/dialog/index.js +31 -31
  63. package/dist/components/dropdown/index.cjs +1 -1
  64. package/dist/components/dropdown/index.js +80 -80
  65. package/dist/components/editor/index.cjs +16 -16
  66. package/dist/components/editor/index.cjs.map +1 -1
  67. package/dist/components/editor/index.js +196 -196
  68. package/dist/components/file/index.cjs +1 -1
  69. package/dist/components/file/index.js +24 -24
  70. package/dist/components/header/index.cjs +1 -1
  71. package/dist/components/header/index.cjs.map +1 -1
  72. package/dist/components/header/index.js +14 -14
  73. package/dist/components/icon/index.cjs +1 -1
  74. package/dist/components/icon/index.js +20 -20
  75. package/dist/components/input/index.cjs +1 -1
  76. package/dist/components/input/index.js +1 -1
  77. package/dist/components/list/index.cjs +1 -1
  78. package/dist/components/list/index.js +24 -24
  79. package/dist/components/loading/index.cjs +1 -1
  80. package/dist/components/loading/index.js +11 -11
  81. package/dist/components/menu/index.cjs +1 -1
  82. package/dist/components/menu/index.js +1 -1
  83. package/dist/components/message/index.cjs +1 -1
  84. package/dist/components/message/index.cjs.map +1 -1
  85. package/dist/components/message/index.js +26 -26
  86. package/dist/components/messages/index.cjs +1 -1
  87. package/dist/components/messages/index.js +20 -20
  88. package/dist/components/nav/index.cjs +1 -1
  89. package/dist/components/nav/index.js +12 -12
  90. package/dist/components/popover/index.cjs +1 -1
  91. package/dist/components/popover/index.js +38 -38
  92. package/dist/components/portal/index.cjs +1 -1
  93. package/dist/components/portal/index.js +7 -7
  94. package/dist/components/search/index.cjs +1 -1
  95. package/dist/components/search/index.cjs.map +1 -1
  96. package/dist/components/search/index.js +36 -36
  97. package/dist/components/sortable/index.cjs +1 -1
  98. package/dist/components/sortable/index.js +74 -74
  99. package/dist/components/textarea/index.cjs +1 -1
  100. package/dist/components/textarea/index.js +15 -15
  101. package/dist/components/toasts/index.cjs +1 -1
  102. package/dist/components/toasts/index.js +4 -4
  103. package/dist/components/toggle/index.cjs +1 -1
  104. package/dist/components/toggle/index.js +6 -6
  105. package/dist/components/tooltip/index.cjs +1 -1
  106. package/dist/components/tooltip/index.js +1 -1
  107. package/dist/{index-DE2nzqL5.js → index-BIV5OwVJ.js} +23 -23
  108. package/dist/{index-DE2nzqL5.js.map → index-BIV5OwVJ.js.map} +1 -1
  109. package/dist/index-CQNlYa2P.cjs +2 -0
  110. package/dist/{index-DF8JisYI.cjs.map → index-CQNlYa2P.cjs.map} +1 -1
  111. package/dist/index.cjs +1 -1
  112. package/dist/index.d.ts +3 -1
  113. package/dist/index.js +1 -1
  114. package/dist/{menu-popover-jTTxzTGZ.cjs → menu-popover-D1ALaiV5.cjs} +2 -2
  115. package/dist/{menu-popover-jTTxzTGZ.cjs.map → menu-popover-D1ALaiV5.cjs.map} +1 -1
  116. package/dist/{menu-popover-SiOOwab-.js → menu-popover-DQHDIw-8.js} +12 -12
  117. package/dist/{menu-popover-SiOOwab-.js.map → menu-popover-DQHDIw-8.js.map} +1 -1
  118. package/dist/tokens.json +1 -1
  119. package/package.json +1 -1
  120. package/dist/index-DF8JisYI.cjs +0 -2
@@ -1,17 +1,17 @@
1
1
  import { jsxs as c, jsx as l } from "react/jsx-runtime";
2
- import { t as a } from "../../classix-DG18itHa.js";
2
+ import { t as e } from "../../classix-DG18itHa.js";
3
3
  import { Link as s } from "../link/index.js";
4
- import '../../assets/index23.css';const t = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='24'%20fill='none'%3e%3cpath%20fill='%23000'%20d='M16.705%2012.763c.012-.92.262-1.822.727-2.622a5.5%205.5%200%200%201%201.933-1.954A5.7%205.7%200%200%200%2017.4%206.478a5.8%205.8%200%200%200-2.54-.669c-1.896-.194-3.734%201.107-4.7%201.107-.985%200-2.472-1.088-4.074-1.056a6.1%206.1%200%200%200-2.93.854%205.9%205.9%200%200%200-2.12%202.153c-2.182%203.69-.554%209.114%201.537%2012.097%201.047%201.46%202.27%203.092%203.87%203.035%201.566-.064%202.15-.975%204.04-.975%201.873%200%202.422.974%204.054.938%201.68-.027%202.74-1.468%203.749-2.942A12%2012%200%200%200%2020%2017.612a5.37%205.37%200%200%201-2.395-1.94%205.2%205.2%200%200%201-.9-2.909M13.62%203.847A5.29%205.29%200%200%200%2014.88%200a5.64%205.64%200%200%200-3.621%201.83%205.1%205.1%200%200%200-1.023%201.726%205%205%200%200%200-.268%201.978c.7.007%201.393-.141%202.025-.433a4.6%204.6%200%200%200%201.629-1.254'/%3e%3c/svg%3e", g = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='24'%20fill='none'%3e%3cpath%20fill='%23EA4335'%20d='M9.805%2011.462.09%2022.006l.001.006C.39%2023.158%201.411%2024%202.625%2024c.486%200%20.941-.134%201.332-.37l.03-.018%2010.936-6.453z'/%3e%3cpath%20fill='%23FBBC04'%20d='m19.633%209.666-.009-.006-4.721-2.799-5.32%204.84%205.339%205.457%204.696-2.77A2.7%202.7%200%200%200%2021%2012.022a2.69%202.69%200%200%200-1.367-2.356'/%3e%3cpath%20fill='%234285F4'%20d='M.09%201.993a2.7%202.7%200%200%200-.09.69v18.633q0%20.36.09.69L10.14%2011.73z'/%3e%3cpath%20fill='%2334A853'%20d='m9.877%2012%205.027-5.14L3.982.383A2.6%202.6%200%200%200%202.626%200C1.412%200%20.389.844.09%201.99v.003z'/%3e%3c/svg%3e", h = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='74'%20height='15'%3e%3cpath%20d='M57.518%2011.41h1.629V.398h-1.629zm14.67-7.045-1.866%204.774h-.056l-1.938-4.774h-1.755l2.906%206.672-1.656%203.712h1.698L74%204.365zm-9.236%205.794c-.534%200-1.278-.269-1.278-.936%200-.849.926-1.175%201.727-1.175.715%200%201.053.156%201.488.369-.127%201.02-.997%201.742-1.937%201.742m.196-6.035c-1.179%200-2.401.524-2.906%201.686l1.446.609c.309-.609.884-.808%201.488-.808.843%200%201.699.51%201.713%201.417v.113c-.295-.17-.926-.425-1.699-.425-1.558%200-3.145.865-3.145%202.48%200%201.473%201.278%202.422%202.71%202.422%201.095%200%201.7-.495%202.078-1.077h.056v.85h1.572V7.17c0-1.954-1.446-3.045-3.313-3.045M53.082%205.705h-2.316V1.931h2.316c1.218%200%201.91%201.017%201.91%201.887%200%20.853-.692%201.887-1.91%201.887M53.04.398h-3.902V11.41h1.628V7.238h2.274c1.805%200%203.58-1.32%203.58-3.42%200-2.101-1.775-3.42-3.58-3.42m-21.282%209.763c-1.125%200-2.067-.95-2.067-2.256%200-1.32.942-2.285%202.067-2.285%201.112%200%201.983.965%201.983%202.285%200%201.305-.871%202.256-1.983%202.256m1.87-5.18h-.056c-.366-.44-1.068-.837-1.954-.837-1.857%200-3.558%201.646-3.558%203.76%200%202.1%201.701%203.733%203.558%203.733.886%200%201.588-.397%201.954-.852h.057v.54c0%201.433-.76%202.2-1.983%202.2-.999%200-1.618-.725-1.87-1.335l-1.421.596c.408.994%201.49%202.214%203.29%202.214%201.913%200%203.53-1.135%203.53-3.902V4.37H33.63zm2.673%206.429h1.631V.397h-1.631zm4.035-3.633c-.042-1.447%201.111-2.185%201.94-2.185.648%200%201.196.326%201.379.794zM45.4%206.528c-.31-.837-1.252-2.384-3.178-2.384-1.913%200-3.501%201.518-3.501%203.747%200%202.1%201.574%203.746%203.683%203.746%201.702%200%202.687-1.05%203.095-1.66l-1.266-.852c-.422.624-.999%201.036-1.829%201.036s-1.42-.384-1.8-1.135l4.964-2.073zM5.85%205.294v1.589h3.768c-.112.894-.407%201.547-.857%202-.549.554-1.407%201.165-2.91%201.165-2.322%200-4.136-1.888-4.136-4.23%200-2.341%201.814-4.228%204.135-4.228%201.252%200%202.166.497%202.84%201.135l1.112-1.121C8.859.696%207.608%200%205.85%200%202.672%200%200%202.612%200%205.819s2.672%205.818%205.85%205.818c1.715%200%203.009-.568%204.021-1.632%201.042-1.05%201.365-2.526%201.365-3.718%200-.37-.028-.71-.085-.993zm9.67%204.867c-1.124%200-2.095-.937-2.095-2.27%200-1.349.97-2.271%202.096-2.271%201.124%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.727%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747m8.13%206.017c-1.125%200-2.096-.937-2.096-2.27%200-1.349.97-2.271%202.096-2.271%201.125%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.726%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747'/%3e%3c/svg%3e", i = "_apple_zdked_17", m = "_google_zdked_49", e = {
5
- "app-link": "_app-link_zdked_1",
6
- apple: i,
7
- google: m
4
+ import '../../assets/index23.css';const t = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='24'%20fill='none'%3e%3cpath%20fill='%23000'%20d='M16.705%2012.763c.012-.92.262-1.822.727-2.622a5.5%205.5%200%200%201%201.933-1.954A5.7%205.7%200%200%200%2017.4%206.478a5.8%205.8%200%200%200-2.54-.669c-1.896-.194-3.734%201.107-4.7%201.107-.985%200-2.472-1.088-4.074-1.056a6.1%206.1%200%200%200-2.93.854%205.9%205.9%200%200%200-2.12%202.153c-2.182%203.69-.554%209.114%201.537%2012.097%201.047%201.46%202.27%203.092%203.87%203.035%201.566-.064%202.15-.975%204.04-.975%201.873%200%202.422.974%204.054.938%201.68-.027%202.74-1.468%203.749-2.942A12%2012%200%200%200%2020%2017.612a5.37%205.37%200%200%201-2.395-1.94%205.2%205.2%200%200%201-.9-2.909M13.62%203.847A5.29%205.29%200%200%200%2014.88%200a5.64%205.64%200%200%200-3.621%201.83%205.1%205.1%200%200%200-1.023%201.726%205%205%200%200%200-.268%201.978c.7.007%201.393-.141%202.025-.433a4.6%204.6%200%200%200%201.629-1.254'/%3e%3c/svg%3e", g = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='24'%20fill='none'%3e%3cpath%20fill='%23EA4335'%20d='M9.805%2011.462.09%2022.006l.001.006C.39%2023.158%201.411%2024%202.625%2024c.486%200%20.941-.134%201.332-.37l.03-.018%2010.936-6.453z'/%3e%3cpath%20fill='%23FBBC04'%20d='m19.633%209.666-.009-.006-4.721-2.799-5.32%204.84%205.339%205.457%204.696-2.77A2.7%202.7%200%200%200%2021%2012.022a2.69%202.69%200%200%200-1.367-2.356'/%3e%3cpath%20fill='%234285F4'%20d='M.09%201.993a2.7%202.7%200%200%200-.09.69v18.633q0%20.36.09.69L10.14%2011.73z'/%3e%3cpath%20fill='%2334A853'%20d='m9.877%2012%205.027-5.14L3.982.383A2.6%202.6%200%200%200%202.626%200C1.412%200%20.389.844.09%201.99v.003z'/%3e%3c/svg%3e", h = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='74'%20height='15'%3e%3cpath%20d='M57.518%2011.41h1.629V.398h-1.629zm14.67-7.045-1.866%204.774h-.056l-1.938-4.774h-1.755l2.906%206.672-1.656%203.712h1.698L74%204.365zm-9.236%205.794c-.534%200-1.278-.269-1.278-.936%200-.849.926-1.175%201.727-1.175.715%200%201.053.156%201.488.369-.127%201.02-.997%201.742-1.937%201.742m.196-6.035c-1.179%200-2.401.524-2.906%201.686l1.446.609c.309-.609.884-.808%201.488-.808.843%200%201.699.51%201.713%201.417v.113c-.295-.17-.926-.425-1.699-.425-1.558%200-3.145.865-3.145%202.48%200%201.473%201.278%202.422%202.71%202.422%201.095%200%201.7-.495%202.078-1.077h.056v.85h1.572V7.17c0-1.954-1.446-3.045-3.313-3.045M53.082%205.705h-2.316V1.931h2.316c1.218%200%201.91%201.017%201.91%201.887%200%20.853-.692%201.887-1.91%201.887M53.04.398h-3.902V11.41h1.628V7.238h2.274c1.805%200%203.58-1.32%203.58-3.42%200-2.101-1.775-3.42-3.58-3.42m-21.282%209.763c-1.125%200-2.067-.95-2.067-2.256%200-1.32.942-2.285%202.067-2.285%201.112%200%201.983.965%201.983%202.285%200%201.305-.871%202.256-1.983%202.256m1.87-5.18h-.056c-.366-.44-1.068-.837-1.954-.837-1.857%200-3.558%201.646-3.558%203.76%200%202.1%201.701%203.733%203.558%203.733.886%200%201.588-.397%201.954-.852h.057v.54c0%201.433-.76%202.2-1.983%202.2-.999%200-1.618-.725-1.87-1.335l-1.421.596c.408.994%201.49%202.214%203.29%202.214%201.913%200%203.53-1.135%203.53-3.902V4.37H33.63zm2.673%206.429h1.631V.397h-1.631zm4.035-3.633c-.042-1.447%201.111-2.185%201.94-2.185.648%200%201.196.326%201.379.794zM45.4%206.528c-.31-.837-1.252-2.384-3.178-2.384-1.913%200-3.501%201.518-3.501%203.747%200%202.1%201.574%203.746%203.683%203.746%201.702%200%202.687-1.05%203.095-1.66l-1.266-.852c-.422.624-.999%201.036-1.829%201.036s-1.42-.384-1.8-1.135l4.964-2.073zM5.85%205.294v1.589h3.768c-.112.894-.407%201.547-.857%202-.549.554-1.407%201.165-2.91%201.165-2.322%200-4.136-1.888-4.136-4.23%200-2.341%201.814-4.228%204.135-4.228%201.252%200%202.166.497%202.84%201.135l1.112-1.121C8.859.696%207.608%200%205.85%200%202.672%200%200%202.612%200%205.819s2.672%205.818%205.85%205.818c1.715%200%203.009-.568%204.021-1.632%201.042-1.05%201.365-2.526%201.365-3.718%200-.37-.028-.71-.085-.993zm9.67%204.867c-1.124%200-2.095-.937-2.095-2.27%200-1.349.97-2.271%202.096-2.271%201.124%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.727%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747m8.13%206.017c-1.125%200-2.096-.937-2.096-2.27%200-1.349.97-2.271%202.096-2.271%201.125%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.726%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747'/%3e%3c/svg%3e", m = "_apple_mjwlf_17", i = "_google_mjwlf_49", p = {
5
+ "app-link": "_app-link_mjwlf_1",
6
+ apple: m,
7
+ google: i
8
8
  }, v = ({
9
- label: p,
9
+ label: a,
10
10
  type: o
11
- }) => /* @__PURE__ */ c(s, { to: o === "apple" ? "https://apps.apple.com/app/6478964287" : "https://play.google.com/store/apps/details?id=no.solibo.mobile.home", className: a(e["app-link"], e[o]), "data-component": "applink", children: [
11
+ }) => /* @__PURE__ */ c(s, { to: o === "apple" ? "https://apps.apple.com/app/6478964287" : "https://play.google.com/store/apps/details?id=no.solibo.mobile.home", className: e(p["app-link"], p[o]), "data-component": "applink", children: [
12
12
  o === "apple" ? /* @__PURE__ */ l("img", { src: t, alt: "Apple logo" }) : /* @__PURE__ */ l("img", { src: g, alt: "Google logo" }),
13
13
  /* @__PURE__ */ c("div", { children: [
14
- /* @__PURE__ */ l("span", { children: p }),
14
+ /* @__PURE__ */ l("span", { children: a }),
15
15
  /* @__PURE__ */ l("span", { children: o === "google" ? /* @__PURE__ */ l("img", { src: h, alt: "Google Play logo" }) : "App Store" })
16
16
  ] })
17
17
  ] });
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index24.css');const s=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),_=require("react"),b=require("../button/index.cjs"),f=require("../icon/index.cjs"),p="_aside_19eaa_3",x="_sidebar_19eaa_9",y="_sticky_19eaa_28",k="_open_19eaa_65",e={aside:p,sidebar:x,sticky:y,open:k},m={default:e.default,sidebar:e.sidebar},g=({children:c,className:n,sticky:d=!1,variant:a="default"})=>{const[t,i]=_.useState(!1);return s.jsxs("aside",{className:l.t(n&&n,t&&e.open,e.aside,d&&e.sticky,m[a]),onClick:u=>{var r;const o=u.target.closest("a[href]");o&&!((r=o.getAttribute("href"))!=null&&r.startsWith("#"))&&i(!1)},"data-component":"aside",children:[a==="sidebar"&&s.jsx(b.Button,{"data-sidebar-toggle":"true",onClick:()=>i(!t),variant:"tertiary",children:s.jsx(f.Icon,{name:t?"x":"menu"})}),c]})};exports.Aside=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index24.css');const t=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),_=require("react"),b=require("../button/index.cjs"),f=require("../icon/index.cjs"),p="_aside_1162s_3",x="_sidebar_1162s_9",y="_open_1162s_57",k="_sticky_1162s_73",e={aside:p,sidebar:x,open:y,sticky:k},m={default:e.default,sidebar:e.sidebar},g=({children:c,className:n,sticky:d=!1,variant:i="default"})=>{const[s,o]=_.useState(!1);return t.jsxs("aside",{className:l.t(n&&n,s&&e.open,e.aside,d&&e.sticky,m[i]),onClick:u=>{var r;const a=u.target.closest("a[href]");a&&!((r=a.getAttribute("href"))!=null&&r.startsWith("#"))&&o(!1)},"data-component":"aside",children:[i==="sidebar"&&t.jsx(b.Button,{"data-sidebar-toggle":"true",onClick:()=>o(!s),variant:"tertiary",children:t.jsx(f.Icon,{name:s?"x":"menu"})}),c]})};exports.Aside=g;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -3,27 +3,27 @@ import { t as m } from "../../classix-DG18itHa.js";
3
3
  import { useState as p } from "react";
4
4
  import { Button as _ } from "../button/index.js";
5
5
  import { Icon as u } from "../icon/index.js";
6
- import '../../assets/index24.css';const b = "_aside_19eaa_3", k = "_sidebar_19eaa_9", y = "_sticky_19eaa_28", h = "_open_19eaa_65", e = {
6
+ import '../../assets/index24.css';const b = "_aside_1162s_3", k = "_sidebar_1162s_9", y = "_open_1162s_57", h = "_sticky_1162s_73", t = {
7
7
  aside: b,
8
8
  sidebar: k,
9
- sticky: y,
10
- open: h
9
+ open: y,
10
+ sticky: h
11
11
  }, g = {
12
- default: e.default,
13
- sidebar: e.sidebar
12
+ default: t.default,
13
+ sidebar: t.sidebar
14
14
  }, B = ({
15
15
  children: d,
16
16
  className: s,
17
17
  sticky: c = !1,
18
- variant: a = "default"
18
+ variant: i = "default"
19
19
  }) => {
20
- const [t, i] = p(!1);
21
- return /* @__PURE__ */ l("aside", { className: m(s && s, t && e.open, e.aside, c && e.sticky, g[a]), onClick: (f) => {
20
+ const [e, o] = p(!1);
21
+ return /* @__PURE__ */ l("aside", { className: m(s && s, e && t.open, t.aside, c && t.sticky, g[i]), onClick: (f) => {
22
22
  var r;
23
- const o = f.target.closest("a[href]");
24
- o && !((r = o.getAttribute("href")) != null && r.startsWith("#")) && i(!1);
23
+ const a = f.target.closest("a[href]");
24
+ a && !((r = a.getAttribute("href")) != null && r.startsWith("#")) && o(!1);
25
25
  }, "data-component": "aside", children: [
26
- a === "sidebar" && /* @__PURE__ */ n(_, { "data-sidebar-toggle": "true", onClick: () => i(!t), variant: "tertiary", children: /* @__PURE__ */ n(u, { name: t ? "x" : "menu" }) }),
26
+ i === "sidebar" && /* @__PURE__ */ n(_, { "data-sidebar-toggle": "true", onClick: () => o(!e), variant: "tertiary", children: /* @__PURE__ */ n(u, { name: e ? "x" : "menu" }) }),
27
27
  d
28
28
  ] });
29
29
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index25.css');const e=require("react/jsx-runtime"),g=require("../../classix-5H4IWnMA.cjs"),p=require("../figure/index.cjs"),u=require("../icon/index.cjs"),h=require("../link/index.cjs"),v="_avatar_lcj2e_1",N="_small_lcj2e_10",b="_medium_lcj2e_14",y="_large_lcj2e_18",f="_media_lcj2e_22",k="_details_lcj2e_46",q="_secondary_lcj2e_66",A="_text_lcj2e_74",I="_role_lcj2e_81",L="_initials_lcj2e_106",S="_link_lcj2e_122",l={avatar:v,small:N,medium:b,large:y,media:f,details:k,secondary:q,text:A,role:I,"role-name":"_role-name_lcj2e_82",initials:L,link:S,"color-1":"_color-1_lcj2e_130","color-solibo":"_color-solibo_lcj2e_131","color-2":"_color-2_lcj2e_138","color-board":"_color-board_lcj2e_139","color-3":"_color-3_lcj2e_146","color-owner":"_color-owner_lcj2e_147","color-4":"_color-4_lcj2e_154","color-renter":"_color-renter_lcj2e_155","color-5":"_color-5_lcj2e_162","color-external":"_color-external_lcj2e_163"},$={large:l.large,medium:l.medium,small:l.small},x={large:"large",medium:"medium",small:"medium"},w=i=>{const a=i.trim().split(/\s+/).filter(Boolean),n=Array.from(a[0]??"")[0]??"",t=a.length>1?Array.from(a[a.length-1])[0]:"";return`${n}${t}`.toLocaleUpperCase()},F=({accessibleLabel:i,color:a,icon:n,imageUrl:t,link:_,name:o,role:s,size:c="small",text:r})=>{const m=i||o||"User Avatar",d=o?w(o):"",j=e.jsxs("div",{className:g.t(l.avatar,$[c],a&&l[`color-${a}`]),"data-color":a,"data-size":c,children:[e.jsx("span",{className:l.media,children:e.jsx(p.Figure,{accessibleLabel:m,children:n?e.jsx(u.Icon,{name:n,size:x[c]}):t?e.jsx("img",{src:t,alt:m}):d?e.jsx("span",{"aria-hidden":"true",className:l.initials,children:d}):e.jsx(u.Icon,{name:"user",size:x[c]})})}),(o||s||r)&&e.jsxs("span",{className:l.details,children:[o&&e.jsx("strong",{children:o}),c==="small"&&(r||s)&&e.jsxs("span",{className:l.text,children:[r,r&&s&&" | ",s&&e.jsx("span",{className:l["role-name"],children:s})]}),c==="medium"&&e.jsxs("span",{className:l.secondary,children:[r&&e.jsx("span",{className:l.text,children:r}),s&&e.jsx("span",{className:l.role,children:s})]}),c==="large"&&s&&e.jsx("span",{className:l.role,children:s}),c==="large"&&r&&e.jsx("span",{className:l.text,children:r})]})]});return _?e.jsx(h.Link,{className:l.link,to:_,"data-component":"avatar",children:j}):j};exports.Avatar=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index25.css');const s=require("react/jsx-runtime"),x=require("../../classix-5H4IWnMA.cjs"),z=require("../figure/index.cjs"),q=require("../icon/index.cjs"),j=require("../link/index.cjs"),g="_avatar_12qzb_1",p="_media_12qzb_10",h="_role_12qzb_10",v="_details_12qzb_59",N="_secondary_12qzb_71",y="_text_12qzb_79",f="_initials_12qzb_103",k="_small_12qzb_107",A="_medium_12qzb_115",I="_large_12qzb_127",L="_link_12qzb_147",a={avatar:g,"color-1":"_color-1_12qzb_10","color-solibo":"_color-solibo_12qzb_10",media:p,role:h,"color-2":"_color-2_12qzb_15","color-board":"_color-board_12qzb_15","color-3":"_color-3_12qzb_20","color-owner":"_color-owner_12qzb_20","color-4":"_color-4_12qzb_25","color-renter":"_color-renter_12qzb_25","color-5":"_color-5_12qzb_30","color-external":"_color-external_12qzb_30",details:v,secondary:N,text:y,"role-name":"_role-name_12qzb_87",initials:f,small:k,medium:A,large:I,link:L},S={large:a.large,medium:a.medium,small:a.small},u={large:"large",medium:"medium",small:"medium"},$=i=>{const l=i.trim().split(/\s+/).filter(Boolean),c=Array.from(l[0]??"")[0]??"",t=l.length>1?Array.from(l[l.length-1])[0]:"";return`${c}${t}`.toLocaleUpperCase()},w=({accessibleLabel:i,color:l,icon:c,imageUrl:t,link:_,name:n,role:e,size:r="small",text:o})=>{const m=i||n||"User Avatar",d=n?$(n):"",b=s.jsxs("div",{className:x.t(a.avatar,S[r],l&&a[`color-${l}`]),"data-color":l,"data-size":r,children:[s.jsx("span",{className:a.media,children:s.jsx(z.Figure,{accessibleLabel:m,children:c?s.jsx(q.Icon,{name:c,size:u[r]}):t?s.jsx("img",{src:t,alt:m}):d?s.jsx("span",{"aria-hidden":"true",className:a.initials,children:d}):s.jsx(q.Icon,{name:"user",size:u[r]})})}),(n||e||o)&&s.jsxs("span",{className:a.details,children:[n&&s.jsx("strong",{children:n}),r==="small"&&(o||e)&&s.jsxs("span",{className:a.text,children:[o,o&&e&&" | ",e&&s.jsx("span",{className:a["role-name"],children:e})]}),r==="medium"&&s.jsxs("span",{className:a.secondary,children:[o&&s.jsx("span",{className:a.text,children:o}),e&&s.jsx("span",{className:a.role,children:e})]}),r==="large"&&e&&s.jsx("span",{className:a.role,children:e}),r==="large"&&o&&s.jsx("span",{className:a.text,children:o})]})]});return _?s.jsx(j.Link,{className:a.link,to:_,"data-component":"avatar",children:b}):b};exports.Avatar=w;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/components/avatar/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { Figure } from '@/components/figure';\nimport { Icon, type IconProps } from '@/components/icon';\nimport { Link } from '@/components/link';\n\nimport styles from './styles.module.css';\n\nexport type AvatarColor =\n | 'solibo'\n | 'board'\n | 'owner'\n | 'renter'\n | 'external'\n | '1'\n | '2'\n | '3'\n | '4'\n | '5';\n\nexport type AvatarSize = 'small' | 'medium' | 'large';\n\nexport type AvatarProps = {\n accessibleLabel?: string;\n color?: AvatarColor;\n icon?: IconProps['name'];\n imageUrl?: string;\n link?: string;\n name?: string;\n role?: string;\n size?: AvatarSize;\n text?: string;\n};\n\nconst sizes: Record<AvatarSize, string> = {\n large: styles.large,\n medium: styles.medium,\n small: styles.small,\n};\n\nconst iconSizes: Record<AvatarSize, NonNullable<IconProps['size']>> = {\n large: 'large',\n medium: 'medium',\n small: 'medium',\n};\n\nconst getInitials = (name: string) => {\n const nameParts = name.trim().split(/\\s+/).filter(Boolean);\n const firstInitial = Array.from(nameParts[0] ?? '')[0] ?? '';\n const lastInitial = nameParts.length > 1 ? Array.from(nameParts[nameParts.length - 1])[0] : '';\n\n return `${firstInitial}${lastInitial}`.toLocaleUpperCase();\n};\n\nexport const Avatar = ({\n accessibleLabel,\n color,\n icon,\n imageUrl,\n link,\n name,\n role,\n size = 'small',\n text,\n}: AvatarProps) => {\n const avatarLabel = accessibleLabel || name || 'User Avatar';\n const initials = name ? getInitials(name) : '';\n\n const avatarFigure = (\n <div\n className={cx(styles.avatar, sizes[size], color && styles[`color-${color}`])}\n data-color={color}\n data-size={size}\n >\n <span className={styles.media}>\n <Figure accessibleLabel={avatarLabel}>\n {icon ? (\n <Icon\n name={icon}\n size={iconSizes[size]}\n />\n ) : imageUrl ? (\n <img\n src={imageUrl}\n alt={avatarLabel}\n />\n ) : initials ? (\n <span\n aria-hidden='true'\n className={styles.initials}\n >\n {initials}\n </span>\n ) : (\n <Icon\n name='user'\n size={iconSizes[size]}\n />\n )}\n </Figure>\n </span>\n {(name || role || text) && (\n <span className={styles.details}>\n {name && <strong>{name}</strong>}\n {size === 'small' && (text || role) && (\n <span className={styles.text}>\n {text}\n {text && role && ' | '}\n {role && <span className={styles['role-name']}>{role}</span>}\n </span>\n )}\n {size === 'medium' && (\n <span className={styles.secondary}>\n {text && <span className={styles.text}>{text}</span>}\n {role && <span className={styles.role}>{role}</span>}\n </span>\n )}\n {size === 'large' && role && <span className={styles.role}>{role}</span>}\n {size === 'large' && text && <span className={styles.text}>{text}</span>}\n </span>\n )}\n </div>\n );\n\n return link ? (\n <Link\n className={styles.link}\n to={link}\n >\n {avatarFigure}\n </Link>\n ) : (\n avatarFigure\n );\n};\n"],"names":["sizes","large","styles","medium","small","iconSizes","getInitials","name","nameParts","trim","split","filter","Boolean","firstInitial","Array","from","lastInitial","length","toLocaleUpperCase","Avatar","accessibleLabel","color","icon","imageUrl","link","role","size","text","avatarLabel","initials","avatarFigure","cx","avatar","jsx","media","Figure","Icon","details","jsxs","secondary","Link"],"mappings":"+8BAkCMA,EAAoC,CACxCC,MAAOC,EAAOD,MACdE,OAAQD,EAAOC,OACfC,MAAOF,EAAOE,KAChB,EAEMC,EAAgE,CACpEJ,MAAO,QACPE,OAAQ,SACRC,MAAO,QACT,EAEME,EAAeC,GAAiB,CACpC,MAAMC,EAAYD,EAAKE,KAAAA,EAAOC,MAAM,KAAK,EAAEC,OAAOC,OAAO,EACnDC,EAAeC,MAAMC,KAAKP,EAAU,CAAC,GAAK,EAAE,EAAE,CAAC,GAAK,GACpDQ,EAAcR,EAAUS,OAAS,EAAIH,MAAMC,KAAKP,EAAUA,EAAUS,OAAS,CAAC,CAAC,EAAE,CAAC,EAAI,GAE5F,MAAO,GAAGJ,CAAY,GAAGG,CAAW,GAAGE,kBAAAA,CACzC,EAEaC,EAASA,CAAC,CACrBC,gBAAAA,EACAC,MAAAA,EACAC,KAAAA,EACAC,SAAAA,EACAC,KAAAA,EACAjB,KAAAA,EACAkB,KAAAA,EACAC,KAAAA,EAAO,QACPC,KAAAA,CACW,IAAM,CACjB,MAAMC,EAAcR,GAAmBb,GAAQ,cACzCsB,EAAWtB,EAAOD,EAAYC,CAAI,EAAI,GAEtCuB,SACH,MAAA,CACC,UAAWC,EAAAA,EAAG7B,EAAO8B,OAAQhC,EAAM0B,CAAI,EAAGL,GAASnB,EAAO,SAASmB,CAAK,EAAE,CAAC,EAC3E,aAAYA,EACZ,YAAWK,EAEX,SAAA,CAAAO,EAAAA,IAAC,OAAA,CAAK,UAAW/B,EAAOgC,MACtB,eAACC,EAAAA,OAAA,CAAO,gBAAiBP,EACtBN,SAAAA,EACCW,EAAAA,IAACG,QACC,KAAMd,EACN,KAAMjB,EAAUqB,CAAI,EAAE,EAEtBH,QACD,MAAA,CACC,IAAKA,EACL,IAAKK,EAAY,EAEjBC,EACFI,EAAAA,IAAC,QACC,cAAY,OACZ,UAAW/B,EAAO2B,SAEjBA,WACH,EAEAI,EAAAA,IAACG,EAAAA,MACC,KAAK,OACL,KAAM/B,EAAUqB,CAAI,EAAE,CAAA,CAG5B,CAAA,CACF,GACEnB,GAAQkB,GAAQE,WACf,OAAA,CAAK,UAAWzB,EAAOmC,QACrB9B,SAAAA,CAAAA,GAAQ0B,EAAAA,IAAC,UAAQ1B,SAAAA,CAAAA,CAAK,EACtBmB,IAAS,UAAYC,GAAQF,WAC3B,OAAA,CAAK,UAAWvB,EAAOyB,KACrBA,SAAAA,CAAAA,EACAA,GAAQF,GAAQ,MAChBA,GAAQQ,EAAAA,IAAC,OAAA,CAAK,UAAW/B,EAAO,WAAW,EAAIuB,SAAAA,CAAAA,CAAK,CAAA,EACvD,EAEDC,IAAS,UACRY,EAAAA,KAAC,OAAA,CAAK,UAAWpC,EAAOqC,UACrBZ,SAAAA,CAAAA,GAAQM,EAAAA,IAAC,OAAA,CAAK,UAAW/B,EAAOyB,KAAOA,SAAAA,EAAK,EAC5CF,GAAQQ,EAAAA,IAAC,OAAA,CAAK,UAAW/B,EAAOuB,KAAOA,SAAAA,CAAAA,CAAK,CAAA,EAC/C,EAEDC,IAAS,SAAWD,GAAQQ,EAAAA,IAAC,QAAK,UAAW/B,EAAOuB,KAAOA,SAAAA,CAAAA,CAAK,EAChEC,IAAS,SAAWC,GAAQM,EAAAA,IAAC,QAAK,UAAW/B,EAAOyB,KAAOA,SAAAA,CAAAA,CAAK,CAAA,CAAA,CACnE,CAAA,EAEJ,EAGF,OAAOH,EACLS,EAAAA,IAACO,EAAAA,KAAA,CACC,UAAWtC,EAAOsB,KAClB,GAAIA,EAAK,iBAAA,SAERM,SAAAA,CAAAA,CACH,EAEAA,CAEJ"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/avatar/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport { Figure } from '@/components/figure';\nimport { Icon, type IconProps } from '@/components/icon';\nimport { Link } from '@/components/link';\n\nimport styles from './styles.module.css';\n\nexport type AvatarColor =\n | 'solibo'\n | 'board'\n | 'owner'\n | 'renter'\n | 'external'\n | '1'\n | '2'\n | '3'\n | '4'\n | '5';\n\nexport type AvatarSize = 'small' | 'medium' | 'large';\n\nexport type AvatarProps = {\n accessibleLabel?: string;\n color?: AvatarColor;\n icon?: IconProps['name'];\n imageUrl?: string;\n link?: string;\n name?: string;\n role?: string;\n size?: AvatarSize;\n text?: string;\n};\n\nconst sizes: Record<AvatarSize, string> = {\n large: styles.large,\n medium: styles.medium,\n small: styles.small,\n};\n\nconst iconSizes: Record<AvatarSize, NonNullable<IconProps['size']>> = {\n large: 'large',\n medium: 'medium',\n small: 'medium',\n};\n\nconst getInitials = (name: string) => {\n const nameParts = name.trim().split(/\\s+/).filter(Boolean);\n const firstInitial = Array.from(nameParts[0] ?? '')[0] ?? '';\n const lastInitial = nameParts.length > 1 ? Array.from(nameParts[nameParts.length - 1])[0] : '';\n\n return `${firstInitial}${lastInitial}`.toLocaleUpperCase();\n};\n\nexport const Avatar = ({\n accessibleLabel,\n color,\n icon,\n imageUrl,\n link,\n name,\n role,\n size = 'small',\n text,\n}: AvatarProps) => {\n const avatarLabel = accessibleLabel || name || 'User Avatar';\n const initials = name ? getInitials(name) : '';\n\n const avatarFigure = (\n <div\n className={cx(styles.avatar, sizes[size], color && styles[`color-${color}`])}\n data-color={color}\n data-size={size}\n >\n <span className={styles.media}>\n <Figure accessibleLabel={avatarLabel}>\n {icon ? (\n <Icon\n name={icon}\n size={iconSizes[size]}\n />\n ) : imageUrl ? (\n <img\n src={imageUrl}\n alt={avatarLabel}\n />\n ) : initials ? (\n <span\n aria-hidden='true'\n className={styles.initials}\n >\n {initials}\n </span>\n ) : (\n <Icon\n name='user'\n size={iconSizes[size]}\n />\n )}\n </Figure>\n </span>\n {(name || role || text) && (\n <span className={styles.details}>\n {name && <strong>{name}</strong>}\n {size === 'small' && (text || role) && (\n <span className={styles.text}>\n {text}\n {text && role && ' | '}\n {role && <span className={styles['role-name']}>{role}</span>}\n </span>\n )}\n {size === 'medium' && (\n <span className={styles.secondary}>\n {text && <span className={styles.text}>{text}</span>}\n {role && <span className={styles.role}>{role}</span>}\n </span>\n )}\n {size === 'large' && role && <span className={styles.role}>{role}</span>}\n {size === 'large' && text && <span className={styles.text}>{text}</span>}\n </span>\n )}\n </div>\n );\n\n return link ? (\n <Link\n className={styles.link}\n to={link}\n >\n {avatarFigure}\n </Link>\n ) : (\n avatarFigure\n );\n};\n"],"names":["sizes","large","styles","medium","small","iconSizes","getInitials","name","nameParts","trim","split","filter","Boolean","firstInitial","Array","from","lastInitial","length","toLocaleUpperCase","Avatar","accessibleLabel","color","icon","imageUrl","link","role","size","text","avatarLabel","initials","avatarFigure","cx","avatar","jsx","media","Figure","Icon","details","jsxs","secondary","Link"],"mappings":"w8BAkCMA,EAAoC,CACxCC,MAAOC,EAAOD,MACdE,OAAQD,EAAOC,OACfC,MAAOF,EAAOE,KAChB,EAEMC,EAAgE,CACpEJ,MAAO,QACPE,OAAQ,SACRC,MAAO,QACT,EAEME,EAAeC,GAAiB,CACpC,MAAMC,EAAYD,EAAKE,KAAAA,EAAOC,MAAM,KAAK,EAAEC,OAAOC,OAAO,EACnDC,EAAeC,MAAMC,KAAKP,EAAU,CAAC,GAAK,EAAE,EAAE,CAAC,GAAK,GACpDQ,EAAcR,EAAUS,OAAS,EAAIH,MAAMC,KAAKP,EAAUA,EAAUS,OAAS,CAAC,CAAC,EAAE,CAAC,EAAI,GAE5F,MAAO,GAAGJ,CAAY,GAAGG,CAAW,GAAGE,kBAAAA,CACzC,EAEaC,EAASA,CAAC,CACrBC,gBAAAA,EACAC,MAAAA,EACAC,KAAAA,EACAC,SAAAA,EACAC,KAAAA,EACAjB,KAAAA,EACAkB,KAAAA,EACAC,KAAAA,EAAO,QACPC,KAAAA,CACW,IAAM,CACjB,MAAMC,EAAcR,GAAmBb,GAAQ,cACzCsB,EAAWtB,EAAOD,EAAYC,CAAI,EAAI,GAEtCuB,SACH,MAAA,CACC,UAAWC,EAAAA,EAAG7B,EAAO8B,OAAQhC,EAAM0B,CAAI,EAAGL,GAASnB,EAAO,SAASmB,CAAK,EAAE,CAAC,EAC3E,aAAYA,EACZ,YAAWK,EAEX,SAAA,CAAAO,EAAAA,IAAC,OAAA,CAAK,UAAW/B,EAAOgC,MACtB,eAACC,EAAAA,OAAA,CAAO,gBAAiBP,EACtBN,SAAAA,EACCW,EAAAA,IAACG,QACC,KAAMd,EACN,KAAMjB,EAAUqB,CAAI,EAAE,EAEtBH,QACD,MAAA,CACC,IAAKA,EACL,IAAKK,EAAY,EAEjBC,EACFI,EAAAA,IAAC,QACC,cAAY,OACZ,UAAW/B,EAAO2B,SAEjBA,WACH,EAEAI,EAAAA,IAACG,EAAAA,MACC,KAAK,OACL,KAAM/B,EAAUqB,CAAI,EAAE,CAAA,CAG5B,CAAA,CACF,GACEnB,GAAQkB,GAAQE,WACf,OAAA,CAAK,UAAWzB,EAAOmC,QACrB9B,SAAAA,CAAAA,GAAQ0B,EAAAA,IAAC,UAAQ1B,SAAAA,CAAAA,CAAK,EACtBmB,IAAS,UAAYC,GAAQF,WAC3B,OAAA,CAAK,UAAWvB,EAAOyB,KACrBA,SAAAA,CAAAA,EACAA,GAAQF,GAAQ,MAChBA,GAAQQ,EAAAA,IAAC,OAAA,CAAK,UAAW/B,EAAO,WAAW,EAAIuB,SAAAA,CAAAA,CAAK,CAAA,EACvD,EAEDC,IAAS,UACRY,EAAAA,KAAC,OAAA,CAAK,UAAWpC,EAAOqC,UACrBZ,SAAAA,CAAAA,GAAQM,EAAAA,IAAC,OAAA,CAAK,UAAW/B,EAAOyB,KAAOA,SAAAA,EAAK,EAC5CF,GAAQQ,EAAAA,IAAC,OAAA,CAAK,UAAW/B,EAAOuB,KAAOA,SAAAA,CAAAA,CAAK,CAAA,EAC/C,EAEDC,IAAS,SAAWD,GAAQQ,EAAAA,IAAC,QAAK,UAAW/B,EAAOuB,KAAOA,SAAAA,CAAAA,CAAK,EAChEC,IAAS,SAAWC,GAAQM,EAAAA,IAAC,QAAK,UAAW/B,EAAOyB,KAAOA,SAAAA,CAAAA,CAAK,CAAA,CAAA,CACnE,CAAA,EAEJ,EAGF,OAAOH,EACLS,EAAAA,IAACO,EAAAA,KAAA,CACC,UAAWtC,EAAOsB,KAClB,GAAIA,EAAK,iBAAA,SAERM,SAAAA,CAAAA,CACH,EAEAA,CAEJ"}
@@ -1,73 +1,73 @@
1
- import { jsx as a, jsxs as i } from "react/jsx-runtime";
2
- import { t as u } from "../../classix-DG18itHa.js";
3
- import { Figure as N } from "../figure/index.js";
4
- import { Icon as h } from "../icon/index.js";
5
- import { Link as v } from "../link/index.js";
6
- import '../../assets/index25.css';const f = "_avatar_lcj2e_1", b = "_small_lcj2e_10", y = "_medium_lcj2e_14", k = "_large_lcj2e_18", x = "_media_lcj2e_22", A = "_details_lcj2e_46", I = "_secondary_lcj2e_66", L = "_text_lcj2e_74", $ = "_role_lcj2e_81", w = "_initials_lcj2e_106", F = "_link_lcj2e_122", l = {
7
- avatar: f,
8
- small: b,
9
- medium: y,
10
- large: k,
11
- media: x,
12
- details: A,
13
- secondary: I,
14
- text: L,
15
- role: $,
16
- "role-name": "_role-name_lcj2e_82",
17
- initials: w,
18
- link: F,
19
- "color-1": "_color-1_lcj2e_130",
20
- "color-solibo": "_color-solibo_lcj2e_131",
21
- "color-2": "_color-2_lcj2e_138",
22
- "color-board": "_color-board_lcj2e_139",
23
- "color-3": "_color-3_lcj2e_146",
24
- "color-owner": "_color-owner_lcj2e_147",
25
- "color-4": "_color-4_lcj2e_154",
26
- "color-renter": "_color-renter_lcj2e_155",
27
- "color-5": "_color-5_lcj2e_162",
28
- "color-external": "_color-external_lcj2e_163"
29
- }, B = {
30
- large: l.large,
31
- medium: l.medium,
32
- small: l.small
33
- }, g = {
1
+ import { jsx as l, jsxs as i } from "react/jsx-runtime";
2
+ import { t as h } from "../../classix-DG18itHa.js";
3
+ import { Figure as g } from "../figure/index.js";
4
+ import { Icon as p } from "../icon/index.js";
5
+ import { Link as u } from "../link/index.js";
6
+ import '../../assets/index25.css';const N = "_avatar_12qzb_1", v = "_media_12qzb_10", f = "_role_12qzb_10", y = "_details_12qzb_59", k = "_secondary_12qzb_71", x = "_text_12qzb_79", A = "_initials_12qzb_103", I = "_small_12qzb_107", L = "_medium_12qzb_115", $ = "_large_12qzb_127", j = "_link_12qzb_147", a = {
7
+ avatar: N,
8
+ "color-1": "_color-1_12qzb_10",
9
+ "color-solibo": "_color-solibo_12qzb_10",
10
+ media: v,
11
+ role: f,
12
+ "color-2": "_color-2_12qzb_15",
13
+ "color-board": "_color-board_12qzb_15",
14
+ "color-3": "_color-3_12qzb_20",
15
+ "color-owner": "_color-owner_12qzb_20",
16
+ "color-4": "_color-4_12qzb_25",
17
+ "color-renter": "_color-renter_12qzb_25",
18
+ "color-5": "_color-5_12qzb_30",
19
+ "color-external": "_color-external_12qzb_30",
20
+ details: y,
21
+ secondary: k,
22
+ text: x,
23
+ "role-name": "_role-name_12qzb_87",
24
+ initials: A,
25
+ small: I,
26
+ medium: L,
27
+ large: $,
28
+ link: j
29
+ }, w = {
30
+ large: a.large,
31
+ medium: a.medium,
32
+ small: a.small
33
+ }, z = {
34
34
  large: "large",
35
35
  medium: "medium",
36
36
  small: "medium"
37
- }, C = (_) => {
38
- const c = _.trim().split(/\s+/).filter(Boolean), n = Array.from(c[0] ?? "")[0] ?? "", t = c.length > 1 ? Array.from(c[c.length - 1])[0] : "";
39
- return `${n}${t}`.toLocaleUpperCase();
40
- }, E = ({
37
+ }, F = (_) => {
38
+ const o = _.trim().split(/\s+/).filter(Boolean), c = Array.from(o[0] ?? "")[0] ?? "", t = o.length > 1 ? Array.from(o[o.length - 1])[0] : "";
39
+ return `${c}${t}`.toLocaleUpperCase();
40
+ }, D = ({
41
41
  accessibleLabel: _,
42
- color: c,
43
- icon: n,
42
+ color: o,
43
+ icon: c,
44
44
  imageUrl: t,
45
45
  link: m,
46
- name: s,
47
- role: e,
48
- size: r = "small",
49
- text: o
46
+ name: n,
47
+ role: r,
48
+ size: s = "small",
49
+ text: e
50
50
  }) => {
51
- const d = _ || s || "User Avatar", j = s ? C(s) : "", p = /* @__PURE__ */ i("div", { className: u(l.avatar, B[r], c && l[`color-${c}`]), "data-color": c, "data-size": r, children: [
52
- /* @__PURE__ */ a("span", { className: l.media, children: /* @__PURE__ */ a(N, { accessibleLabel: d, children: n ? /* @__PURE__ */ a(h, { name: n, size: g[r] }) : t ? /* @__PURE__ */ a("img", { src: t, alt: d }) : j ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: l.initials, children: j }) : /* @__PURE__ */ a(h, { name: "user", size: g[r] }) }) }),
53
- (s || e || o) && /* @__PURE__ */ i("span", { className: l.details, children: [
54
- s && /* @__PURE__ */ a("strong", { children: s }),
55
- r === "small" && (o || e) && /* @__PURE__ */ i("span", { className: l.text, children: [
56
- o,
57
- o && e && " | ",
58
- e && /* @__PURE__ */ a("span", { className: l["role-name"], children: e })
51
+ const d = _ || n || "User Avatar", b = n ? F(n) : "", q = /* @__PURE__ */ i("div", { className: h(a.avatar, w[s], o && a[`color-${o}`]), "data-color": o, "data-size": s, children: [
52
+ /* @__PURE__ */ l("span", { className: a.media, children: /* @__PURE__ */ l(g, { accessibleLabel: d, children: c ? /* @__PURE__ */ l(p, { name: c, size: z[s] }) : t ? /* @__PURE__ */ l("img", { src: t, alt: d }) : b ? /* @__PURE__ */ l("span", { "aria-hidden": "true", className: a.initials, children: b }) : /* @__PURE__ */ l(p, { name: "user", size: z[s] }) }) }),
53
+ (n || r || e) && /* @__PURE__ */ i("span", { className: a.details, children: [
54
+ n && /* @__PURE__ */ l("strong", { children: n }),
55
+ s === "small" && (e || r) && /* @__PURE__ */ i("span", { className: a.text, children: [
56
+ e,
57
+ e && r && " | ",
58
+ r && /* @__PURE__ */ l("span", { className: a["role-name"], children: r })
59
59
  ] }),
60
- r === "medium" && /* @__PURE__ */ i("span", { className: l.secondary, children: [
61
- o && /* @__PURE__ */ a("span", { className: l.text, children: o }),
62
- e && /* @__PURE__ */ a("span", { className: l.role, children: e })
60
+ s === "medium" && /* @__PURE__ */ i("span", { className: a.secondary, children: [
61
+ e && /* @__PURE__ */ l("span", { className: a.text, children: e }),
62
+ r && /* @__PURE__ */ l("span", { className: a.role, children: r })
63
63
  ] }),
64
- r === "large" && e && /* @__PURE__ */ a("span", { className: l.role, children: e }),
65
- r === "large" && o && /* @__PURE__ */ a("span", { className: l.text, children: o })
64
+ s === "large" && r && /* @__PURE__ */ l("span", { className: a.role, children: r }),
65
+ s === "large" && e && /* @__PURE__ */ l("span", { className: a.text, children: e })
66
66
  ] })
67
67
  ] });
68
- return m ? /* @__PURE__ */ a(v, { className: l.link, to: m, "data-component": "avatar", children: p }) : p;
68
+ return m ? /* @__PURE__ */ l(u, { className: a.link, to: m, "data-component": "avatar", children: q }) : q;
69
69
  };
70
70
  export {
71
- E as Avatar
71
+ D as Avatar
72
72
  };
73
73
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index26.css');const l=require("react/jsx-runtime"),a=require("../../classix-5H4IWnMA.cjs"),s=require("../icon/index.cjs"),t="_badge_v112x_1",i="_highlight_v112x_18",g="_info_v112x_24",x="_primary_v112x_29",u="_success_v112x_34",v="_warning_v112x_39",o={badge:t,highlight:i,info:g,primary:x,success:u,warning:v,"color-1":"_color-1_v112x_44","color-2":"_color-2_v112x_49","color-yellow":"_color-yellow_v112x_50","color-3":"_color-3_v112x_55","color-peach":"_color-peach_v112x_56","color-4":"_color-4_v112x_61","color-magenta":"_color-magenta_v112x_62","color-5":"_color-5_v112x_67","color-purple":"_color-purple_v112x_68","color-6":"_color-6_v112x_73","color-blue":"_color-blue_v112x_74","color-7":"_color-7_v112x_79","color-green":"_color-green_v112x_80"},h={default:o.default,highlight:o.highlight,info:o.info,primary:o.primary,success:o.success,warning:o.warning},m=({color:e,children:_,icon:r,position:c="left",variant:n="default"})=>_===0||_==null?null:l.jsxs("span",{className:a.t(o.badge,h[n],e&&o[`color-${e}`]),"data-component":"badge",children:[r&&c=="left"&&l.jsx(s.Icon,{fill:!0,name:r,size:"small"}),l.jsx("span",{children:_}),r&&c=="right"&&l.jsx(s.Icon,{fill:!0,name:r,size:"small"})]});exports.Badge=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index26.css');const l=require("react/jsx-runtime"),a=require("../../classix-5H4IWnMA.cjs"),s=require("../icon/index.cjs"),t="_badge_1r0jb_1",i="_highlight_1r0jb_19",g="_info_1r0jb_25",b="_primary_1r0jb_30",j="_success_1r0jb_35",u="_warning_1r0jb_40",r={badge:t,highlight:i,info:g,primary:b,success:j,warning:u,"color-1":"_color-1_1r0jb_45","color-2":"_color-2_1r0jb_50","color-yellow":"_color-yellow_1r0jb_51","color-3":"_color-3_1r0jb_56","color-peach":"_color-peach_1r0jb_57","color-4":"_color-4_1r0jb_62","color-magenta":"_color-magenta_1r0jb_63","color-5":"_color-5_1r0jb_68","color-purple":"_color-purple_1r0jb_69","color-6":"_color-6_1r0jb_74","color-blue":"_color-blue_1r0jb_75","color-7":"_color-7_1r0jb_80","color-green":"_color-green_1r0jb_81"},h={default:r.default,highlight:r.highlight,info:r.info,primary:r.primary,success:r.success,warning:r.warning},m=({color:e,children:_,icon:o,position:c="left",variant:n="default"})=>_===0||_==null?null:l.jsxs("span",{className:a.t(r.badge,h[n],e&&r[`color-${e}`]),"data-component":"badge",children:[o&&c=="left"&&l.jsx(s.Icon,{fill:!0,name:o,size:"small"}),l.jsx("span",{children:_}),o&&c=="right"&&l.jsx(s.Icon,{fill:!0,name:o,size:"small"})]});exports.Badge=m;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,43 +1,43 @@
1
1
  import { jsxs as n, jsx as _ } from "react/jsx-runtime";
2
2
  import { t } from "../../classix-DG18itHa.js";
3
3
  import { Icon as a } from "../icon/index.js";
4
- import '../../assets/index26.css';const i = "_badge_v112x_1", g = "_highlight_v112x_18", x = "_info_v112x_24", v = "_primary_v112x_29", m = "_success_v112x_34", u = "_warning_v112x_39", o = {
4
+ import '../../assets/index26.css';const i = "_badge_1r0jb_1", b = "_highlight_1r0jb_19", g = "_info_1r0jb_25", j = "_primary_1r0jb_30", m = "_success_1r0jb_35", u = "_warning_1r0jb_40", r = {
5
5
  badge: i,
6
- highlight: g,
7
- info: x,
8
- primary: v,
6
+ highlight: b,
7
+ info: g,
8
+ primary: j,
9
9
  success: m,
10
10
  warning: u,
11
- "color-1": "_color-1_v112x_44",
12
- "color-2": "_color-2_v112x_49",
13
- "color-yellow": "_color-yellow_v112x_50",
14
- "color-3": "_color-3_v112x_55",
15
- "color-peach": "_color-peach_v112x_56",
16
- "color-4": "_color-4_v112x_61",
17
- "color-magenta": "_color-magenta_v112x_62",
18
- "color-5": "_color-5_v112x_67",
19
- "color-purple": "_color-purple_v112x_68",
20
- "color-6": "_color-6_v112x_73",
21
- "color-blue": "_color-blue_v112x_74",
22
- "color-7": "_color-7_v112x_79",
23
- "color-green": "_color-green_v112x_80"
11
+ "color-1": "_color-1_1r0jb_45",
12
+ "color-2": "_color-2_1r0jb_50",
13
+ "color-yellow": "_color-yellow_1r0jb_51",
14
+ "color-3": "_color-3_1r0jb_56",
15
+ "color-peach": "_color-peach_1r0jb_57",
16
+ "color-4": "_color-4_1r0jb_62",
17
+ "color-magenta": "_color-magenta_1r0jb_63",
18
+ "color-5": "_color-5_1r0jb_68",
19
+ "color-purple": "_color-purple_1r0jb_69",
20
+ "color-6": "_color-6_1r0jb_74",
21
+ "color-blue": "_color-blue_1r0jb_75",
22
+ "color-7": "_color-7_1r0jb_80",
23
+ "color-green": "_color-green_1r0jb_81"
24
24
  }, h = {
25
- default: o.default,
26
- highlight: o.highlight,
27
- info: o.info,
28
- primary: o.primary,
29
- success: o.success,
30
- warning: o.warning
25
+ default: r.default,
26
+ highlight: r.highlight,
27
+ info: r.info,
28
+ primary: r.primary,
29
+ success: r.success,
30
+ warning: r.warning
31
31
  }, y = ({
32
32
  color: c,
33
33
  children: l,
34
- icon: r,
34
+ icon: o,
35
35
  position: e = "left",
36
36
  variant: s = "default"
37
- }) => l === 0 || l == null ? null : /* @__PURE__ */ n("span", { className: t(o.badge, h[s], c && o[`color-${c}`]), "data-component": "badge", children: [
38
- r && e == "left" && /* @__PURE__ */ _(a, { fill: !0, name: r, size: "small" }),
37
+ }) => l === 0 || l == null ? null : /* @__PURE__ */ n("span", { className: t(r.badge, h[s], c && r[`color-${c}`]), "data-component": "badge", children: [
38
+ o && e == "left" && /* @__PURE__ */ _(a, { fill: !0, name: o, size: "small" }),
39
39
  /* @__PURE__ */ _("span", { children: l }),
40
- r && e == "right" && /* @__PURE__ */ _(a, { fill: !0, name: r, size: "small" })
40
+ o && e == "right" && /* @__PURE__ */ _(a, { fill: !0, name: o, size: "small" })
41
41
  ] });
42
42
  export {
43
43
  y as Badge
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index27.css');const t=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),b=require("../button/index.cjs"),o="_banner_3qfpn_13",u="_visible_3qfpn_32",r={banner:o,visible:u},d=({button:a,message:s,onClick:e,onDismiss:n,visible:c=!1})=>{const i=()=>{e==null||e(),n==null||n()};return t.jsxs("div",{"aria-live":"assertive",className:l.t(r.banner,c&&r.visible),"data-component":"banner",children:[s,t.jsx(b.Button,{onClick:i,children:a})]})};exports.Banner=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index27.css');const t=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),b=require("../button/index.cjs"),u="_banner_1au2i_13",o="_visible_1au2i_32",r={banner:u,visible:o},d=({button:a,message:s,onClick:e,onDismiss:n,visible:i=!1})=>{const c=()=>{e==null||e(),n==null||n()};return t.jsxs("div",{"aria-live":"assertive",className:l.t(r.banner,i&&r.visible),"data-component":"banner",children:[s,t.jsx(b.Button,{onClick:c,children:a})]})};exports.Banner=d;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,22 +1,22 @@
1
- import { jsxs as o, jsx as c } from "react/jsx-runtime";
2
- import { t as i } from "../../classix-DG18itHa.js";
3
- import { Button as p } from "../button/index.js";
4
- import '../../assets/index27.css';const s = "_banner_3qfpn_13", v = "_visible_3qfpn_32", r = {
5
- banner: s,
6
- visible: v
1
+ import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
+ import { t as c } from "../../classix-DG18itHa.js";
3
+ import { Button as s } from "../button/index.js";
4
+ import '../../assets/index27.css';const v = "_banner_1au2i_13", _ = "_visible_1au2i_32", a = {
5
+ banner: v,
6
+ visible: _
7
7
  }, m = ({
8
- button: t,
9
- message: a,
8
+ button: n,
9
+ message: t,
10
10
  onClick: e,
11
- onDismiss: n,
11
+ onDismiss: r,
12
12
  visible: b = !1
13
13
  }) => {
14
- const l = () => {
15
- e == null || e(), n == null || n();
14
+ const i = () => {
15
+ e == null || e(), r == null || r();
16
16
  };
17
- return /* @__PURE__ */ o("div", { "aria-live": "assertive", className: i(r.banner, b && r.visible), "data-component": "banner", children: [
18
- a,
19
- /* @__PURE__ */ c(p, { onClick: l, children: t })
17
+ return /* @__PURE__ */ l("div", { "aria-live": "assertive", className: c(a.banner, b && a.visible), "data-component": "banner", children: [
18
+ t,
19
+ /* @__PURE__ */ o(s, { onClick: i, children: n })
20
20
  ] });
21
21
  };
22
22
  export {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index29.css');const e=require("react/jsx-runtime"),y=require("../../classix-5H4IWnMA.cjs"),l=require("../badge/index.cjs"),m=require("../icon/index.cjs"),p="_button_15qef_1",g="_simple_15qef_29",b="_danger_15qef_38",f="_tertiary_15qef_47",q="_primary_15qef_54",x="_secondary_15qef_63",t={button:p,simple:g,danger:b,tertiary:f,primary:q,secondary:x},h={danger:t.danger,primary:t.primary,secondary:t.secondary,simple:t.simple,tertiary:t.tertiary};function j({badge:s,children:n,className:o,disabled:a=!1,icon:r,iconSize:i="small",onClick:c,ref:_,variant:d="secondary",...u}){return e.jsxs("button",{className:y.t(t.button,h[d],o),disabled:a,onClick:c,ref:_,type:"button",...u,"data-component":"button",children:[r&&e.jsx(m.Icon,{fill:!0,gap:n?"right":void 0,name:r,size:i}),n,e.jsx(l.Badge,{variant:"highlight",children:s})]})}exports.Button=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index29.css');const e=require("react/jsx-runtime"),u=require("../../classix-5H4IWnMA.cjs"),l=require("../badge/index.cjs"),m=require("../icon/index.cjs"),p="_button_y6cfv_1",g="_simple_y6cfv_29",b="_danger_y6cfv_38",f="_tertiary_y6cfv_47",v="_primary_y6cfv_54",x="_secondary_y6cfv_63",t={button:p,simple:g,danger:b,tertiary:f,primary:v,secondary:x},h={danger:t.danger,primary:t.primary,secondary:t.secondary,simple:t.simple,tertiary:t.tertiary};function j({badge:s,children:n,className:o,disabled:a=!1,icon:r,iconSize:i="small",onClick:c,ref:y,variant:_="secondary",...d}){return e.jsxs("button",{className:u.t(t.button,h[_],o),disabled:a,onClick:c,ref:y,type:"button",...d,"data-component":"button",children:[r&&e.jsx(m.Icon,{fill:!0,gap:n?"right":void 0,name:r,size:i}),n,e.jsx(l.Badge,{variant:"highlight",children:s})]})}exports.Button=j;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,40 +1,40 @@
1
- import { jsxs as _, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as _, jsx as o } from "react/jsx-runtime";
2
2
  import { t as d } from "../../classix-DG18itHa.js";
3
3
  import { Badge as l } from "../badge/index.js";
4
4
  import { Icon as f } from "../icon/index.js";
5
- import '../../assets/index29.css';const u = "_button_15qef_1", g = "_simple_15qef_29", b = "_danger_15qef_38", q = "_tertiary_15qef_47", h = "_primary_15qef_54", v = "_secondary_15qef_63", t = {
5
+ import '../../assets/index29.css';const u = "_button_y6cfv_1", g = "_simple_y6cfv_29", v = "_danger_y6cfv_38", b = "_tertiary_y6cfv_47", h = "_primary_y6cfv_54", x = "_secondary_y6cfv_63", t = {
6
6
  button: u,
7
7
  simple: g,
8
- danger: b,
9
- tertiary: q,
8
+ danger: v,
9
+ tertiary: b,
10
10
  primary: h,
11
- secondary: v
12
- }, x = {
11
+ secondary: x
12
+ }, j = {
13
13
  danger: t.danger,
14
14
  primary: t.primary,
15
15
  secondary: t.secondary,
16
16
  simple: t.simple,
17
17
  tertiary: t.tertiary
18
18
  };
19
- function N({
20
- badge: o,
19
+ function k({
20
+ badge: a,
21
21
  children: r,
22
- className: a,
22
+ className: e,
23
23
  disabled: s = !1,
24
- icon: e,
24
+ icon: n,
25
25
  iconSize: i = "small",
26
- onClick: m,
27
- ref: c,
28
- variant: p = "secondary",
29
- ...y
26
+ onClick: c,
27
+ ref: y,
28
+ variant: m = "secondary",
29
+ ...p
30
30
  }) {
31
- return /* @__PURE__ */ _("button", { className: d(t.button, x[p], a), disabled: s, onClick: m, ref: c, type: "button", ...y, "data-component": "button", children: [
32
- e && /* @__PURE__ */ n(f, { fill: !0, gap: r ? "right" : void 0, name: e, size: i }),
31
+ return /* @__PURE__ */ _("button", { className: d(t.button, j[m], e), disabled: s, onClick: c, ref: y, type: "button", ...p, "data-component": "button", children: [
32
+ n && /* @__PURE__ */ o(f, { fill: !0, gap: r ? "right" : void 0, name: n, size: i }),
33
33
  r,
34
- /* @__PURE__ */ n(l, { variant: "highlight", children: o })
34
+ /* @__PURE__ */ o(l, { variant: "highlight", children: a })
35
35
  ] });
36
36
  }
37
37
  export {
38
- N as Button
38
+ k as Button
39
39
  };
40
40
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index30.css');const n=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),j=require("../badge/index.cjs"),f=require("../checkbox/index.cjs"),g=require("../figure/index.cjs"),v=require("../icon/index.cjs"),w="_card_1nm90_1",h="_head_1nm90_28",N="_center_1nm90_40",q="_content_1nm90_52",y="_preview_1nm90_58",b="_margin_1nm90_98",T="_clickable_1nm90_143",k="_muted_1nm90_158",D="_selected_1nm90_163",e={card:w,head:h,center:N,content:q,preview:y,"preview-leading":"_preview-leading_1nm90_69","preview-trailing":"_preview-trailing_1nm90_70","preview-content":"_preview-content_1nm90_90",margin:b,clickable:T,muted:k,selected:D,"image-top":"_image-top_1nm90_168","image-left":"_image-left_1nm90_179"},E=({actions:x,badge:_,checkbox:c,children:o,emphasis:u="default",header:d,icon:p,image:s,imagePosition:r="top",onClick:a,preview:m,variant:i="default"})=>n.jsxs("article",{className:l.t(e.card,u==="muted"&&e.muted,a&&e.clickable,(c==null?void 0:c.checked)&&e.selected),"data-emphasis":u,"data-minimal":i==="minimal",onClick:a,onKeyDown:t=>{a&&t.currentTarget===document.activeElement&&(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.currentTarget.click())},tabIndex:a?0:-1,"data-component":"card",children:[s&&i!=="minimal"&&r==="top"&&n.jsx(g.Figure,{className:e[`image-${r}`],children:s}),n.jsxs("section",{children:[n.jsxs("div",{className:l.t(e.head,i==="minimal"&&e.center),children:[c&&n.jsx("span",{onClick:t=>t.stopPropagation(),children:n.jsx(f.Checkbox,{...c})}),s&&i!=="minimal"&&r==="left"&&n.jsx(g.Figure,{className:e[`image-${r}`],children:s}),d,_&&n.jsx(j.Badge,{..._}),p&&n.jsx(v.Icon,{name:p,size:"medium"}),x]}),o&&i!=="minimal"&&n.jsx("div",{className:l.t(e.content,!!d&&e.margin),children:o}),m&&i!=="minimal"&&n.jsxs("div",{className:l.t(e.preview,!!d&&e.margin),children:[n.jsx("span",{className:e["preview-leading"],children:m.leading}),n.jsx("span",{className:e["preview-content"],children:m.children}),n.jsx("span",{className:e["preview-trailing"],children:m.trailing})]})]})]});exports.Card=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index30.css');const n=require("react/jsx-runtime"),d=require("../../classix-5H4IWnMA.cjs"),x=require("../badge/index.cjs"),j=require("../checkbox/index.cjs"),g=require("../figure/index.cjs"),f=require("../icon/index.cjs"),v="_card_133qp_1",w="_head_133qp_28",h="_center_133qp_40",N="_content_133qp_52",y="_preview_133qp_58",b="_margin_133qp_98",T="_clickable_133qp_143",k="_muted_133qp_158",D="_selected_133qp_163",e={card:v,head:w,center:h,content:N,preview:y,"preview-leading":"_preview-leading_133qp_69","preview-trailing":"_preview-trailing_133qp_70","preview-content":"_preview-content_133qp_90",margin:b,clickable:T,muted:k,selected:D,"image-top":"_image-top_133qp_168","image-left":"_image-left_133qp_179"},E=({actions:q,badge:m,checkbox:c,children:p,emphasis:o="default",header:_,icon:u,image:s,imagePosition:r="top",onClick:a,preview:l,variant:i="default"})=>n.jsxs("article",{className:d.t(e.card,o==="muted"&&e.muted,a&&e.clickable,(c==null?void 0:c.checked)&&e.selected),"data-emphasis":o,"data-minimal":i==="minimal",onClick:a,onKeyDown:t=>{a&&t.currentTarget===document.activeElement&&(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.currentTarget.click())},tabIndex:a?0:-1,"data-component":"card",children:[s&&i!=="minimal"&&r==="top"&&n.jsx(g.Figure,{className:e[`image-${r}`],children:s}),n.jsxs("section",{children:[n.jsxs("div",{className:d.t(e.head,i==="minimal"&&e.center),children:[c&&n.jsx("span",{onClick:t=>t.stopPropagation(),children:n.jsx(j.Checkbox,{...c})}),s&&i!=="minimal"&&r==="left"&&n.jsx(g.Figure,{className:e[`image-${r}`],children:s}),_,m&&n.jsx(x.Badge,{...m}),u&&n.jsx(f.Icon,{name:u,size:"medium"}),q]}),p&&i!=="minimal"&&n.jsx("div",{className:d.t(e.content,!!_&&e.margin),children:p}),l&&i!=="minimal"&&n.jsxs("div",{className:d.t(e.preview,!!_&&e.margin),children:[n.jsx("span",{className:e["preview-leading"],children:l.leading}),n.jsx("span",{className:e["preview-content"],children:l.children}),n.jsx("span",{className:e["preview-trailing"],children:l.trailing})]})]})]});exports.Card=E;
2
2
  //# sourceMappingURL=index.cjs.map