@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.
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/menu-popover.css +1 -1
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +8 -8
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +11 -11
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.cjs.map +1 -1
- package/dist/components/avatar/index.js +58 -58
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.js +27 -27
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +14 -14
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +18 -18
- package/dist/components/card/index.cjs +1 -1
- package/dist/components/card/index.js +46 -46
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +7 -7
- package/dist/components/collapsible/index.cjs +1 -1
- package/dist/components/collapsible/index.cjs.map +1 -1
- package/dist/components/collapsible/index.js +18 -37
- package/dist/components/collapsible/index.js.map +1 -1
- package/dist/components/controls/index.cjs +1 -1
- package/dist/components/controls/index.cjs.map +1 -1
- package/dist/components/controls/index.js +110 -90
- package/dist/components/controls/index.js.map +1 -1
- package/dist/components/croppable/index.cjs +1 -1
- package/dist/components/croppable/index.js +181 -181
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +31 -31
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.js +80 -80
- package/dist/components/editor/index.cjs +16 -16
- package/dist/components/editor/index.cjs.map +1 -1
- package/dist/components/editor/index.js +196 -196
- package/dist/components/file/index.cjs +1 -1
- package/dist/components/file/index.js +24 -24
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.cjs.map +1 -1
- package/dist/components/header/index.js +14 -14
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +20 -20
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +1 -1
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +24 -24
- package/dist/components/loading/index.cjs +1 -1
- package/dist/components/loading/index.js +11 -11
- package/dist/components/menu/index.cjs +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message/index.cjs +1 -1
- package/dist/components/message/index.cjs.map +1 -1
- package/dist/components/message/index.js +26 -26
- package/dist/components/messages/index.cjs +1 -1
- package/dist/components/messages/index.js +20 -20
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +12 -12
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +38 -38
- package/dist/components/portal/index.cjs +1 -1
- package/dist/components/portal/index.js +7 -7
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.cjs.map +1 -1
- package/dist/components/search/index.js +36 -36
- package/dist/components/sortable/index.cjs +1 -1
- package/dist/components/sortable/index.js +74 -74
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.js +15 -15
- package/dist/components/toasts/index.cjs +1 -1
- package/dist/components/toasts/index.js +4 -4
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.js +6 -6
- package/dist/components/tooltip/index.cjs +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/{index-DE2nzqL5.js → index-BIV5OwVJ.js} +23 -23
- package/dist/{index-DE2nzqL5.js.map → index-BIV5OwVJ.js.map} +1 -1
- package/dist/index-CQNlYa2P.cjs +2 -0
- package/dist/{index-DF8JisYI.cjs.map → index-CQNlYa2P.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/{menu-popover-jTTxzTGZ.cjs → menu-popover-D1ALaiV5.cjs} +2 -2
- package/dist/{menu-popover-jTTxzTGZ.cjs.map → menu-popover-D1ALaiV5.cjs.map} +1 -1
- package/dist/{menu-popover-SiOOwab-.js → menu-popover-DQHDIw-8.js} +12 -12
- package/dist/{menu-popover-SiOOwab-.js.map → menu-popover-DQHDIw-8.js.map} +1 -1
- package/dist/tokens.json +1 -1
- package/package.json +1 -1
- 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
|
|
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",
|
|
5
|
-
"app-link": "_app-
|
|
6
|
-
apple:
|
|
7
|
-
google:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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 = "
|
|
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
|
-
|
|
10
|
-
|
|
9
|
+
open: y,
|
|
10
|
+
sticky: h
|
|
11
11
|
}, g = {
|
|
12
|
-
default:
|
|
13
|
-
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:
|
|
18
|
+
variant: i = "default"
|
|
19
19
|
}) => {
|
|
20
|
-
const [
|
|
21
|
-
return /* @__PURE__ */ l("aside", { className: m(s && s,
|
|
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
|
|
24
|
-
|
|
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
|
-
|
|
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
|
|
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":"
|
|
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
|
|
2
|
-
import { t as
|
|
3
|
-
import { Figure as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Link as
|
|
6
|
-
import '../../assets/index25.css';const
|
|
7
|
-
avatar:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"color-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
large:
|
|
31
|
-
medium:
|
|
32
|
-
small:
|
|
33
|
-
},
|
|
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
|
-
},
|
|
38
|
-
const
|
|
39
|
-
return `${
|
|
40
|
-
},
|
|
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:
|
|
43
|
-
icon:
|
|
42
|
+
color: o,
|
|
43
|
+
icon: c,
|
|
44
44
|
imageUrl: t,
|
|
45
45
|
link: m,
|
|
46
|
-
name:
|
|
47
|
-
role:
|
|
48
|
-
size:
|
|
49
|
-
text:
|
|
46
|
+
name: n,
|
|
47
|
+
role: r,
|
|
48
|
+
size: s = "small",
|
|
49
|
+
text: e
|
|
50
50
|
}) => {
|
|
51
|
-
const d = _ ||
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
65
|
-
|
|
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__ */
|
|
68
|
+
return m ? /* @__PURE__ */ l(u, { className: a.link, to: m, "data-component": "avatar", children: q }) : q;
|
|
69
69
|
};
|
|
70
70
|
export {
|
|
71
|
-
|
|
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="
|
|
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 = "
|
|
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:
|
|
7
|
-
info:
|
|
8
|
-
primary:
|
|
6
|
+
highlight: b,
|
|
7
|
+
info: g,
|
|
8
|
+
primary: j,
|
|
9
9
|
success: m,
|
|
10
10
|
warning: u,
|
|
11
|
-
"color-1": "_color-
|
|
12
|
-
"color-2": "_color-
|
|
13
|
-
"color-yellow": "_color-
|
|
14
|
-
"color-3": "_color-
|
|
15
|
-
"color-peach": "_color-
|
|
16
|
-
"color-4": "_color-
|
|
17
|
-
"color-magenta": "_color-
|
|
18
|
-
"color-5": "_color-
|
|
19
|
-
"color-purple": "_color-
|
|
20
|
-
"color-6": "_color-
|
|
21
|
-
"color-blue": "_color-
|
|
22
|
-
"color-7": "_color-
|
|
23
|
-
"color-green": "_color-
|
|
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:
|
|
26
|
-
highlight:
|
|
27
|
-
info:
|
|
28
|
-
primary:
|
|
29
|
-
success:
|
|
30
|
-
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:
|
|
34
|
+
icon: o,
|
|
35
35
|
position: e = "left",
|
|
36
36
|
variant: s = "default"
|
|
37
|
-
}) => l === 0 || l == null ? null : /* @__PURE__ */ n("span", { className: t(
|
|
38
|
-
|
|
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
|
-
|
|
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"),
|
|
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
|
|
2
|
-
import { t as
|
|
3
|
-
import { Button as
|
|
4
|
-
import '../../assets/index27.css';const
|
|
5
|
-
banner:
|
|
6
|
-
visible:
|
|
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:
|
|
9
|
-
message:
|
|
8
|
+
button: n,
|
|
9
|
+
message: t,
|
|
10
10
|
onClick: e,
|
|
11
|
-
onDismiss:
|
|
11
|
+
onDismiss: r,
|
|
12
12
|
visible: b = !1
|
|
13
13
|
}) => {
|
|
14
|
-
const
|
|
15
|
-
e == null || e(),
|
|
14
|
+
const i = () => {
|
|
15
|
+
e == null || e(), r == null || r();
|
|
16
16
|
};
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */
|
|
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"),
|
|
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
|
|
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 = "
|
|
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:
|
|
9
|
-
tertiary:
|
|
8
|
+
danger: v,
|
|
9
|
+
tertiary: b,
|
|
10
10
|
primary: h,
|
|
11
|
-
secondary:
|
|
12
|
-
},
|
|
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
|
|
20
|
-
badge:
|
|
19
|
+
function k({
|
|
20
|
+
badge: a,
|
|
21
21
|
children: r,
|
|
22
|
-
className:
|
|
22
|
+
className: e,
|
|
23
23
|
disabled: s = !1,
|
|
24
|
-
icon:
|
|
24
|
+
icon: n,
|
|
25
25
|
iconSize: i = "small",
|
|
26
|
-
onClick:
|
|
27
|
-
ref:
|
|
28
|
-
variant:
|
|
29
|
-
...
|
|
26
|
+
onClick: c,
|
|
27
|
+
ref: y,
|
|
28
|
+
variant: m = "secondary",
|
|
29
|
+
...p
|
|
30
30
|
}) {
|
|
31
|
-
return /* @__PURE__ */ _("button", { className: d(t.button,
|
|
32
|
-
|
|
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__ */
|
|
34
|
+
/* @__PURE__ */ o(l, { variant: "highlight", children: a })
|
|
35
35
|
] });
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
|
-
|
|
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"),
|
|
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
|