@sakaniui/react 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +7 -0
- package/CHANGELOG.md +73 -0
- package/dist/{TopBar-DRGud3JP.js → TopBar-BcXAB1mf.js} +549 -523
- package/dist/TopBar-DeBSl4rq.cjs +1 -0
- package/dist/blocks.cjs +2 -2
- package/dist/blocks.mjs +2053 -2053
- package/dist/building-warehouse-BUtjAEPH.cjs +1 -0
- package/dist/{file-text-CuRYymVv.js → building-warehouse-_n8EvYUt.js} +15 -21
- package/dist/components/CommandMenu/CommandMenu.d.ts +175 -0
- package/dist/components/CommandMenu/index.d.ts +2 -0
- package/dist/emoji-index.json +1 -1
- package/dist/{help-circle-BufsknPE.js → help-circle-qEEVeIea.js} +15 -9
- package/dist/help-circle-rtL4juBJ.cjs +1 -0
- package/dist/icon-index.json +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.mjs +3932 -3932
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2624 -1688
- package/dist/lib/SakaniLogo.d.ts +2 -0
- package/dist/{logout-Mc5-u8cG.js → logout-BLSXL3qV.js} +4 -4
- package/dist/logout-pQUABnfO.cjs +1 -0
- package/dist/manifest.json +591 -21
- package/dist/style.css +1 -1
- package/dist/tokens.css +2 -0
- package/package.json +1 -1
- package/dist/TopBar-Dd_xHXBv.cjs +0 -1
- package/dist/file-text-B2rmiOJD.cjs +0 -1
- package/dist/help-circle-C1LENUMu.cjs +0 -1
- package/dist/logout-g8G9uxDa.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./help-circle-rtL4juBJ.cjs");var t=e.V(`message-circle`,[`M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1`]),n=e.V(`upload`,[`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,`M7 9l5 -5l5 5`,`M12 4l0 12`]),r=e.V(`pencil`,[`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`,`M13.5 6.5l4 4`]),i=e.V(`mail`,[`M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10`,`M3 7l9 6l9 -6`]),a=e.V(`mail-check`,[`M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v6`,`M3 7l9 6l9 -6`,`M15 19l2 2l4 -4`]),o=e.V(`lock`,[`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6`,`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`,`M8 11v-4a4 4 0 1 1 8 0v4`]),s=e.V(`shield-check`,[`M11.46 20.846a12 12 0 0 1 -7.96 -14.846a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 -.09 7.06`,`M15 19l2 2l4 -4`]),c=e.V(`user`,[`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`,`M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`]),l=e.V(`credit-card`,[`M3 8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -8`,`M3 10l18 0`,`M7 15l.01 0`,`M11 15l2 0`]),u=e.V(`truck`,[`M5 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,`M15 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,`M5 17h-2v-11a1 1 0 0 1 1 -1h9v12m-4 0h6m4 0h2v-6h-8m0 -5h5l3 5`]),d=e.V(`shopping-bag`,[`M6.331 8h11.339a2 2 0 0 1 1.977 2.304l-1.255 8.152a3 3 0 0 1 -2.966 2.544h-6.852a3 3 0 0 1 -2.965 -2.544l-1.255 -8.152a2 2 0 0 1 1.977 -2.304`,`M9 11v-5a3 3 0 0 1 6 0v5`]),f=e.V(`columns-3`,[`M3 4a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-16`,`M9 3v18`,`M15 3v18`]),p=e.V(`user-plus`,[`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`,`M16 19h6`,`M19 16v6`,`M6 21v-2a4 4 0 0 1 4 -4h4`]),m=e.V(`trash`,[`M4 7l16 0`,`M10 11l0 6`,`M14 11l0 6`,`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`]),h=e.V(`calendar`,[`M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12`,`M16 3v4`,`M8 3v4`,`M4 11h16`,`M11 15h1`,`M12 15v3`]),g=e.V(`message`,[`M8 9h8`,`M8 13h6`,`M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12`]),_=e.V(`flag`,[`M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1 -7 0a5 5 0 0 0 -7 0v-9`,`M5 21v-7`]),v=e.V(`home`,[`M5 12l-2 0l9 -9l9 9l-2 0`,`M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7`,`M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6`]),y=e.V(`chart-pie`,[`M10 3.2a9 9 0 1 0 10.8 10.8a1 1 0 0 0 -1 -1h-6.8a2 2 0 0 1 -2 -2v-7a.9 .9 0 0 0 -1 -.8`,`M15 3.5a9 9 0 0 1 5.5 5.5h-4.5a1 1 0 0 1 -1 -1v-4.5`]),b=e.V(`users`,[`M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`,`M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`,`M16 3.13a4 4 0 0 1 0 7.75`,`M21 21v-2a4 4 0 0 0 -3 -3.85`]),x=e.V(`box-multiple`,[`M7 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -10`,`M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2`]),S=e.V(`git-merge`,[`M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,`M5 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,`M15 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,`M7 8l0 8`,`M7 8a4 4 0 0 0 4 4h4`]),C=e.V(`category-2`,[`M14 4h6v6h-6l0 -6`,`M4 14h6v6h-6l0 -6`,`M14 17a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,`M4 7a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`]),w=e.V(`settings`,[`M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065`,`M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`]),T=e.V(`message-dots`,[`M12 11v.01`,`M8 11v.01`,`M16 11v.01`,`M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3l12 0`]),E=e.V(`phone`,[`M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2`]),D=e.V(`video`,[`M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4`,`M3 8a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -8`]),O=e.V(`layout-sidebar-right`,[`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,`M15 4l0 16`]),k=e.V(`layout-grid`,[`M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,`M14 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,`M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,`M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`]),A=e.V(`database`,[`M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0`,`M4 6v6a8 3 0 0 0 16 0v-6`,`M4 12v6a8 3 0 0 0 16 0v-6`]),j=e.V(`calendar-month`,[`M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12`,`M16 3v4`,`M8 3v4`,`M4 11h16`,`M8 14v4`,`M12 14v4`,`M16 14v4`]),M=e.V(`hierarchy-2`,[`M10 3h4v4h-4l0 -4`,`M3 17h4v4h-4l0 -4`,`M17 17h4v4h-4l0 -4`,`M7 17l5 -4l5 4`,`M12 7l0 6`]),N=e.V(`target`,[`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,`M7 12a5 5 0 1 0 10 0a5 5 0 1 0 -10 0`,`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`]),P=e.V(`plug`,[`M9.785 6l8.215 8.215l-2.054 2.054a5.81 5.81 0 1 1 -8.215 -8.215l2.054 -2.054`,`M4 20l3.5 -3.5`,`M15 4l-3.5 3.5`,`M20 9l-3.5 3.5`]),F=e.V(`chevron-up`,[`M6 15l6 -6l6 6`]),I=e.V(`circle`,[`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`]),L=e.V(`filter`,[`M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227`]),R=e.V(`building`,[`M3 21l18 0`,`M9 8l1 0`,`M9 12l1 0`,`M9 16l1 0`,`M14 8l1 0`,`M14 12l1 0`,`M14 16l1 0`,`M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16`]),z=e.V(`coins`,[`M9 14c0 1.657 2.686 3 6 3s6 -1.343 6 -3s-2.686 -3 -6 -3s-6 1.343 -6 3`,`M9 14v4c0 1.656 2.686 3 6 3s6 -1.344 6 -3v-4`,`M3 6c0 1.072 1.144 2.062 3 2.598s4.144 .536 6 0c1.856 -.536 3 -1.526 3 -2.598c0 -1.072 -1.144 -2.062 -3 -2.598s-4.144 -.536 -6 0c-1.856 .536 -3 1.526 -3 2.598`,`M3 6v10c0 .888 .772 1.45 2 2`,`M3 11c0 .888 .772 1.45 2 2`]),B=e.V(`layout-navbar`,[`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,`M4 9l16 0`]),V=e.V(`chart-bar`,[`M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6`,`M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10`,`M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14`,`M4 20h14`]),H=e.V(`user-circle`,[`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,`M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,`M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855`]),U=e.V(`speakerphone`,[`M18 8a3 3 0 0 1 0 6`,`M10 8v11a1 1 0 0 1 -1 1h-1a1 1 0 0 1 -1 -1v-5`,`M12 8l4.524 -3.77a.9 .9 0 0 1 1.476 .692v12.156a.9 .9 0 0 1 -1.476 .692l-4.524 -3.77h-8a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h8`]),W=e.V(`adjustments-horizontal`,[`M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,`M4 6l8 0`,`M16 6l4 0`,`M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,`M4 12l2 0`,`M10 12l10 0`,`M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,`M4 18l11 0`,`M19 18l1 0`]),G=e.V(`plug-connected`,[`M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5`,`M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5`,`M3 21l2.5 -2.5`,`M18.5 5.5l2.5 -2.5`,`M10 11l-2 2`,`M13 14l-2 2`]),K=e.V(`layout-sidebar-right-collapse`,[`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,`M15 4v16`,`M9 10l2 2l-2 2`]),q=e.V(`layout-sidebar-right-expand`,[`M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12`,`M15 4v16`,`M10 10l-2 2l2 2`]),J=e.V(`package`,[`M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5`,`M12 12l8 -4.5`,`M12 12l0 9`,`M12 12l-8 -4.5`,`M16 5.25l-8 4.5`]),Y=e.V(`building-warehouse`,[`M3 21v-13l9 -4l9 4v13`,`M13 13h4v8h-10v-6h6`,`M13 21v-9a1 1 0 0 0 -1 -1h-2a1 1 0 0 0 -1 1v3`]);Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"G",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"H",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"J",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"K",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"U",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"V",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"W",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"Y",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"q",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return d}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as e } from "./help-circle-qEEVeIea.js";
|
|
2
2
|
//#region src/icons/outline/message-circle.ts
|
|
3
3
|
var t = /*#__PURE__*/ e("message-circle", ["M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1"]), n = /*#__PURE__*/ e("upload", [
|
|
4
4
|
"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",
|
|
@@ -95,16 +95,16 @@ var t = /*#__PURE__*/ e("message-circle", ["M3 20l1.3 -3.9c-2.324 -3.437 -1.426
|
|
|
95
95
|
"M17 17h4v4h-4l0 -4",
|
|
96
96
|
"M7 17l5 -4l5 4",
|
|
97
97
|
"M12 7l0 6"
|
|
98
|
-
]), N = /*#__PURE__*/ e("
|
|
98
|
+
]), N = /*#__PURE__*/ e("target", [
|
|
99
99
|
"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",
|
|
100
100
|
"M7 12a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",
|
|
101
101
|
"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"
|
|
102
|
-
]),
|
|
102
|
+
]), P = /*#__PURE__*/ e("plug", [
|
|
103
103
|
"M9.785 6l8.215 8.215l-2.054 2.054a5.81 5.81 0 1 1 -8.215 -8.215l2.054 -2.054",
|
|
104
104
|
"M4 20l3.5 -3.5",
|
|
105
105
|
"M15 4l-3.5 3.5",
|
|
106
106
|
"M20 9l-3.5 3.5"
|
|
107
|
-
]),
|
|
107
|
+
]), F = /*#__PURE__*/ e("chevron-up", ["M6 15l6 -6l6 6"]), I = /*#__PURE__*/ e("circle", ["M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"]), L = /*#__PURE__*/ e("filter", ["M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227"]), R = /*#__PURE__*/ e("building", [
|
|
108
108
|
"M3 21l18 0",
|
|
109
109
|
"M9 8l1 0",
|
|
110
110
|
"M9 12l1 0",
|
|
@@ -113,26 +113,26 @@ var t = /*#__PURE__*/ e("message-circle", ["M3 20l1.3 -3.9c-2.324 -3.437 -1.426
|
|
|
113
113
|
"M14 12l1 0",
|
|
114
114
|
"M14 16l1 0",
|
|
115
115
|
"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"
|
|
116
|
-
]),
|
|
116
|
+
]), z = /*#__PURE__*/ e("coins", [
|
|
117
117
|
"M9 14c0 1.657 2.686 3 6 3s6 -1.343 6 -3s-2.686 -3 -6 -3s-6 1.343 -6 3",
|
|
118
118
|
"M9 14v4c0 1.656 2.686 3 6 3s6 -1.344 6 -3v-4",
|
|
119
119
|
"M3 6c0 1.072 1.144 2.062 3 2.598s4.144 .536 6 0c1.856 -.536 3 -1.526 3 -2.598c0 -1.072 -1.144 -2.062 -3 -2.598s-4.144 -.536 -6 0c-1.856 .536 -3 1.526 -3 2.598",
|
|
120
120
|
"M3 6v10c0 .888 .772 1.45 2 2",
|
|
121
121
|
"M3 11c0 .888 .772 1.45 2 2"
|
|
122
|
-
]),
|
|
122
|
+
]), B = /*#__PURE__*/ e("layout-navbar", ["M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12", "M4 9l16 0"]), V = /*#__PURE__*/ e("chart-bar", [
|
|
123
123
|
"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",
|
|
124
124
|
"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",
|
|
125
125
|
"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",
|
|
126
126
|
"M4 20h14"
|
|
127
|
-
]),
|
|
127
|
+
]), H = /*#__PURE__*/ e("user-circle", [
|
|
128
128
|
"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",
|
|
129
129
|
"M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",
|
|
130
130
|
"M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855"
|
|
131
|
-
]),
|
|
131
|
+
]), U = /*#__PURE__*/ e("speakerphone", [
|
|
132
132
|
"M18 8a3 3 0 0 1 0 6",
|
|
133
133
|
"M10 8v11a1 1 0 0 1 -1 1h-1a1 1 0 0 1 -1 -1v-5",
|
|
134
134
|
"M12 8l4.524 -3.77a.9 .9 0 0 1 1.476 .692v12.156a.9 .9 0 0 1 -1.476 .692l-4.524 -3.77h-8a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h8"
|
|
135
|
-
]),
|
|
135
|
+
]), W = /*#__PURE__*/ e("adjustments-horizontal", [
|
|
136
136
|
"M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",
|
|
137
137
|
"M4 6l8 0",
|
|
138
138
|
"M16 6l4 0",
|
|
@@ -142,37 +142,31 @@ var t = /*#__PURE__*/ e("message-circle", ["M3 20l1.3 -3.9c-2.324 -3.437 -1.426
|
|
|
142
142
|
"M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",
|
|
143
143
|
"M4 18l11 0",
|
|
144
144
|
"M19 18l1 0"
|
|
145
|
-
]),
|
|
145
|
+
]), G = /*#__PURE__*/ e("plug-connected", [
|
|
146
146
|
"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5",
|
|
147
147
|
"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5",
|
|
148
148
|
"M3 21l2.5 -2.5",
|
|
149
149
|
"M18.5 5.5l2.5 -2.5",
|
|
150
150
|
"M10 11l-2 2",
|
|
151
151
|
"M13 14l-2 2"
|
|
152
|
-
]),
|
|
152
|
+
]), K = /*#__PURE__*/ e("layout-sidebar-right-collapse", [
|
|
153
153
|
"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",
|
|
154
154
|
"M15 4v16",
|
|
155
155
|
"M9 10l2 2l-2 2"
|
|
156
|
-
]),
|
|
156
|
+
]), q = /*#__PURE__*/ e("layout-sidebar-right-expand", [
|
|
157
157
|
"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",
|
|
158
158
|
"M15 4v16",
|
|
159
159
|
"M10 10l-2 2l2 2"
|
|
160
|
-
]),
|
|
160
|
+
]), J = /*#__PURE__*/ e("package", [
|
|
161
161
|
"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5",
|
|
162
162
|
"M12 12l8 -4.5",
|
|
163
163
|
"M12 12l0 9",
|
|
164
164
|
"M12 12l-8 -4.5",
|
|
165
165
|
"M16 5.25l-8 4.5"
|
|
166
|
-
]),
|
|
166
|
+
]), Y = /*#__PURE__*/ e("building-warehouse", [
|
|
167
167
|
"M3 21v-13l9 -4l9 4v13",
|
|
168
168
|
"M13 13h4v8h-10v-6h6",
|
|
169
169
|
"M13 21v-9a1 1 0 0 0 -1 -1h-2a1 1 0 0 0 -1 1v3"
|
|
170
|
-
]), Z = /*#__PURE__*/ e("file-text", [
|
|
171
|
-
"M14 3v4a1 1 0 0 0 1 1h4",
|
|
172
|
-
"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2",
|
|
173
|
-
"M9 9l1 0",
|
|
174
|
-
"M9 13l6 0",
|
|
175
|
-
"M9 17l6 0"
|
|
176
170
|
]);
|
|
177
171
|
//#endregion
|
|
178
|
-
export {
|
|
172
|
+
export { b as A, u as B, D as C, C as D, w as E, h as F, a as G, c as H, m as I, n as J, i as K, p as L, v as M, _ as N, S as O, g as P, f as R, O as S, T, s as U, l as V, o as W, t as Y, N as _, G as a, A as b, H as c, z as d, R as f, P as g, F as h, K as i, y as j, x as k, V as l, I as m, J as n, W as o, L as p, r as q, q as r, U as s, Y as t, B as u, M as v, E as w, k as x, j as y, d as z };
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconComponent } from '../../icons/types';
|
|
3
|
+
export type CommandMenuItemType = 'page' | 'action' | 'file' | 'person' | 'ai';
|
|
4
|
+
export interface CommandMenuItem {
|
|
5
|
+
/** Unique within the menu. */
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
/** A second line under the label (a path, a role, a hint). */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** What kind of result it is. Sets the default icon and the scope it belongs to ("pages", "people", "files", "actions"). */
|
|
11
|
+
type?: CommandMenuItemType;
|
|
12
|
+
/** Overrides the scope this item belongs to (the `value` of a scope). */
|
|
13
|
+
scope?: string;
|
|
14
|
+
/** The icon in the leading tile. Defaults by `type`. */
|
|
15
|
+
icon?: IconComponent;
|
|
16
|
+
/** For a person: shows an Avatar (and a status dot) instead of an icon. */
|
|
17
|
+
avatar?: {
|
|
18
|
+
src?: string;
|
|
19
|
+
initials?: string;
|
|
20
|
+
alt?: string;
|
|
21
|
+
status?: 'online' | 'away';
|
|
22
|
+
};
|
|
23
|
+
/** Small text on the right, e.g. "Page" or "Edited 2h ago". */
|
|
24
|
+
meta?: string;
|
|
25
|
+
/** Shortcut keys on the right, e.g. ['⌘', 'N']. */
|
|
26
|
+
shortcut?: string[];
|
|
27
|
+
/** Extra words the built-in filter matches. */
|
|
28
|
+
keywords?: string[];
|
|
29
|
+
/** Matched by filter tokens: a token whose `value` (or label) is in `tags` keeps the item. */
|
|
30
|
+
tags?: string[];
|
|
31
|
+
/** Called when the item is chosen, in addition to the menu's `onSelect`. */
|
|
32
|
+
onSelect?: () => void;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface CommandMenuGroup {
|
|
36
|
+
id: string;
|
|
37
|
+
/** The small heading above the items. */
|
|
38
|
+
label?: string;
|
|
39
|
+
/** A link on the right of the heading, e.g. "See all". */
|
|
40
|
+
action?: {
|
|
41
|
+
label: string;
|
|
42
|
+
onClick: () => void;
|
|
43
|
+
};
|
|
44
|
+
items: CommandMenuItem[];
|
|
45
|
+
}
|
|
46
|
+
export interface CommandMenuScope {
|
|
47
|
+
/** "all" is the unfiltered scope. */
|
|
48
|
+
value: string;
|
|
49
|
+
label: string;
|
|
50
|
+
/** The count shown on the tab. Computed from the items when you leave it out (and `filter` is on); `null` shows no count. */
|
|
51
|
+
count?: number | null;
|
|
52
|
+
}
|
|
53
|
+
export interface CommandMenuFilter {
|
|
54
|
+
id: string;
|
|
55
|
+
/** Shown in the token, e.g. "People" or "team: Design". */
|
|
56
|
+
label: string;
|
|
57
|
+
/** What `tags` are matched against. Defaults to the label. */
|
|
58
|
+
value?: string;
|
|
59
|
+
icon?: IconComponent;
|
|
60
|
+
}
|
|
61
|
+
export interface CommandMenuSuggestion {
|
|
62
|
+
label: string;
|
|
63
|
+
icon?: IconComponent;
|
|
64
|
+
/** Where the icon sits: before the label (default) or after it (e.g. the × on "Remove the Files filter"). */
|
|
65
|
+
iconPosition?: 'start' | 'end';
|
|
66
|
+
/** A word inside `label` to set in the strong weight ("invoice" in "Did you mean invoice?"). */
|
|
67
|
+
emphasis?: string;
|
|
68
|
+
onSelect: () => void;
|
|
69
|
+
}
|
|
70
|
+
export interface CommandMenuProps {
|
|
71
|
+
/** Controlled open state. */
|
|
72
|
+
open?: boolean;
|
|
73
|
+
/** Initial open state when uncontrolled. */
|
|
74
|
+
defaultOpen?: boolean;
|
|
75
|
+
onOpenChange?: (open: boolean) => void;
|
|
76
|
+
/** The key that opens it with ⌘ / Ctrl. `false` turns the shortcut off. Defaults to "k". */
|
|
77
|
+
hotkey?: string | false;
|
|
78
|
+
/** "default" has scopes and a workspace footer; "simple" is just the field, the rows and the key hints. */
|
|
79
|
+
variant?: 'default' | 'simple';
|
|
80
|
+
/** The field's text (controlled). */
|
|
81
|
+
query?: string;
|
|
82
|
+
defaultQuery?: string;
|
|
83
|
+
onQueryChange?: (query: string) => void;
|
|
84
|
+
placeholder?: string;
|
|
85
|
+
/** Results, in groups. */
|
|
86
|
+
groups: CommandMenuGroup[];
|
|
87
|
+
/** Filter the groups by the query, scope and tokens here. Pass a function to match your own way, or `false` to show `groups` as given. Defaults to true. */
|
|
88
|
+
filter?: boolean | ((item: CommandMenuItem, query: string) => boolean);
|
|
89
|
+
/** Wrap the matched letters of each label in the strong weight. Defaults to true. */
|
|
90
|
+
highlightMatches?: boolean;
|
|
91
|
+
/** "loading" shows skeleton rows, "error" the error message. */
|
|
92
|
+
state?: 'ready' | 'loading' | 'error';
|
|
93
|
+
/** Called when an item is chosen (click or ↵). */
|
|
94
|
+
onSelect?: (item: CommandMenuItem) => void;
|
|
95
|
+
/** Close the menu when an item is chosen. Defaults to true. */
|
|
96
|
+
closeOnSelect?: boolean;
|
|
97
|
+
/** Scope tabs under the field (not shown in the simple variant). */
|
|
98
|
+
scopes?: CommandMenuScope[];
|
|
99
|
+
scope?: string;
|
|
100
|
+
defaultScope?: string;
|
|
101
|
+
onScopeChange?: (scope: string) => void;
|
|
102
|
+
/** Filter tokens shown in the field. */
|
|
103
|
+
filters?: CommandMenuFilter[];
|
|
104
|
+
onFiltersChange?: (filters: CommandMenuFilter[]) => void;
|
|
105
|
+
/** Typing `key:value` and a space turns it into a token for these keys, e.g. ["team", "status"]. */
|
|
106
|
+
filterKeys?: string[];
|
|
107
|
+
/** Adds ⌘↵ and the "Ask AI" hint; called with the current query. */
|
|
108
|
+
onAskAI?: (query: string) => void;
|
|
109
|
+
/** Shown above the results (an answer card, a Chain of Thought). */
|
|
110
|
+
answer?: React.ReactNode;
|
|
111
|
+
/** Shows a preview pane beside the list for the active item. Return null for no pane. */
|
|
112
|
+
renderPreview?: (item: CommandMenuItem) => React.ReactNode;
|
|
113
|
+
/** Buttons or links pinned to the bottom of the detail pane. They stay put while the content above changes from row to row
|
|
114
|
+
* (only `renderPreview`'s content cross-fades); pass a function to read the previewed row. Hidden when a row has no preview. */
|
|
115
|
+
previewActions?: React.ReactNode | ((item: CommandMenuItem) => React.ReactNode);
|
|
116
|
+
/** Shown in the detail pane when the active row has nothing to preview (`renderPreview` returned nothing). */
|
|
117
|
+
previewEmpty?: React.ReactNode;
|
|
118
|
+
/** The "No results" message. */
|
|
119
|
+
emptyTitle?: React.ReactNode;
|
|
120
|
+
emptyDescription?: React.ReactNode;
|
|
121
|
+
/** Quick fixes under the empty message, e.g. "Did you mean invoice?". */
|
|
122
|
+
suggestions?: CommandMenuSuggestion[];
|
|
123
|
+
/** Shown under the empty or error message, and navigable like any group (e.g. "Try instead"). */
|
|
124
|
+
fallbackGroups?: CommandMenuGroup[];
|
|
125
|
+
errorTitle?: React.ReactNode;
|
|
126
|
+
errorDescription?: React.ReactNode;
|
|
127
|
+
onRetry?: () => void;
|
|
128
|
+
/** A second, quieter action beside "Try again" in the error state ("Report"). */
|
|
129
|
+
onReport?: () => void;
|
|
130
|
+
retryLabel?: React.ReactNode;
|
|
131
|
+
reportLabel?: React.ReactNode;
|
|
132
|
+
/** The workspace switcher in the footer (default variant). */
|
|
133
|
+
workspace?: React.ReactNode;
|
|
134
|
+
/** Hide the footer of key hints. */
|
|
135
|
+
hideFooter?: boolean;
|
|
136
|
+
/** Accessible name of the dialog. Defaults to "Command menu". */
|
|
137
|
+
'aria-label'?: string;
|
|
138
|
+
className?: string;
|
|
139
|
+
}
|
|
140
|
+
export interface CommandMenuTriggerProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
141
|
+
/** The text in the pill. Defaults to "Search or jump to…". */
|
|
142
|
+
placeholder?: string;
|
|
143
|
+
/** The key caps on the right. Defaults to ["⌘", "K"]. */
|
|
144
|
+
shortcut?: string[];
|
|
145
|
+
}
|
|
146
|
+
/** The ⌘K pill for a top bar or sidebar. Give it `onClick` to open your CommandMenu. */
|
|
147
|
+
export declare const CommandMenuTrigger: React.ForwardRefExoticComponent<CommandMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
148
|
+
export interface CommandMenuAnswerProps {
|
|
149
|
+
/** Defaults to "SakaniUI AI". */
|
|
150
|
+
title?: string;
|
|
151
|
+
/** e.g. "Thought for 2.4s". With `stream` it appears once the text has been written. */
|
|
152
|
+
status?: string;
|
|
153
|
+
/** The answer text. */
|
|
154
|
+
children: React.ReactNode;
|
|
155
|
+
/** Writes the answer in word by word, the way a chat reply arrives, and brings in the sources and the follow-up once it is
|
|
156
|
+
* written. Needs `children` to be a plain string; reduced motion shows it at once. */
|
|
157
|
+
stream?: boolean;
|
|
158
|
+
/** Called once when the text has been written (or at once when it is not streamed). */
|
|
159
|
+
onStreamEnd?: () => void;
|
|
160
|
+
/** Sources as chips under the answer. */
|
|
161
|
+
sources?: {
|
|
162
|
+
label: string;
|
|
163
|
+
icon?: IconComponent;
|
|
164
|
+
}[];
|
|
165
|
+
/** Adds an "Ask a follow-up" button. */
|
|
166
|
+
onFollowUp?: () => void;
|
|
167
|
+
/** Adds an "Open in chat" hint with ⌘↵. */
|
|
168
|
+
onOpenInChat?: () => void;
|
|
169
|
+
onCopy?: () => void;
|
|
170
|
+
className?: string;
|
|
171
|
+
}
|
|
172
|
+
/** An answer card for the Ask AI state: the answer, its sources and a follow-up. Pass it as the menu's `answer`. */
|
|
173
|
+
export declare const CommandMenuAnswer: React.FC<CommandMenuAnswerProps>;
|
|
174
|
+
export declare const CommandMenu: React.FC<CommandMenuProps>;
|
|
175
|
+
export default CommandMenu;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CommandMenu, CommandMenuTrigger, CommandMenuAnswer, default } from './CommandMenu';
|
|
2
|
+
export type { CommandMenuProps, CommandMenuItem, CommandMenuItemType, CommandMenuGroup, CommandMenuScope, CommandMenuFilter, CommandMenuSuggestion, CommandMenuTriggerProps, CommandMenuAnswerProps, } from './CommandMenu';
|