@rustic-ai/ui-components 0.0.32 → 0.0.34
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/components/dynamicForm/index.js +1 -1
- package/dist/components/filePreview/filePreview.d.ts +1 -0
- package/dist/components/filePreview/filePreview.d.ts.map +1 -1
- package/dist/components/helper.d.ts +6 -1
- package/dist/components/helper.d.ts.map +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/index.d.ts +8 -6
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/input/baseInput/baseInput.d.ts.map +1 -1
- package/dist/components/input/emoji/emoji.d.ts +1 -0
- package/dist/components/input/emoji/emoji.d.ts.map +1 -1
- package/dist/components/input/emoji/index.js +1 -1
- package/dist/components/input/multimodal/multimodalInput/index.css +5 -2
- package/dist/components/input/multimodal/multimodalInput/index.js +1 -1
- package/dist/components/input/multimodal/multimodalInput/multimodalInput.d.ts +2 -2
- package/dist/components/input/multimodal/multimodalInput/multimodalInput.d.ts.map +1 -1
- package/dist/components/input/multimodal/uploader/index.css +4 -0
- package/dist/components/input/multimodal/uploader/index.js +1 -1
- package/dist/components/input/multimodal/uploader/uploader.d.ts.map +1 -1
- package/dist/components/input/textInput/index.css +1 -2
- package/dist/components/input/textInput/index.js +1 -1
- package/dist/components/messageCanvas/actions/copy/index.js +1 -1
- package/dist/components/messageCanvas/actions/index.js +1 -1
- package/dist/components/messageCanvas/actions/textToSpeech/index.js +1 -1
- package/dist/components/messageSpace/index.css +8 -2
- package/dist/components/messageSpace/index.js +1 -1
- package/dist/components/messageSpace/messageSpace.d.ts.map +1 -1
- package/dist/components/multipart/chatCompletion/chatCompletion.d.ts +11 -0
- package/dist/components/multipart/chatCompletion/chatCompletion.d.ts.map +1 -0
- package/dist/components/multipart/{index.css → chatCompletion/index.css} +4 -0
- package/dist/components/multipart/chatCompletion/index.d.ts +4 -0
- package/dist/components/multipart/chatCompletion/index.d.ts.map +1 -0
- package/dist/components/multipart/chatCompletion/index.js +1 -0
- package/dist/components/multipart/multipart/index.css +149 -0
- package/dist/components/multipart/{index.d.ts → multipart/index.d.ts} +1 -1
- package/dist/components/multipart/multipart/index.d.ts.map +1 -0
- package/dist/components/multipart/{index.js → multipart/index.js} +1 -1
- package/dist/components/multipart/{multipart.d.ts → multipart/multipart.d.ts} +2 -2
- package/dist/components/multipart/multipart/multipart.d.ts.map +1 -0
- package/dist/components/prompts/index.css +5 -0
- package/dist/components/prompts/index.d.ts +4 -0
- package/dist/components/prompts/index.d.ts.map +1 -0
- package/dist/components/prompts/index.js +1 -0
- package/dist/components/prompts/prompts.d.ts +12 -0
- package/dist/components/prompts/prompts.d.ts.map +1 -0
- package/dist/components/sharedDescription.d.ts +5 -0
- package/dist/components/sharedDescription.d.ts.map +1 -0
- package/dist/components/text/index.js +1 -1
- package/dist/components/types.d.ts +69 -4
- package/dist/components/types.d.ts.map +1 -1
- package/dist/components/visualization/perspectiveViz/index.js +1 -1
- package/dist/components/visualization/perspectiveViz/perspectiveViz.d.ts.map +1 -1
- package/dist/components/weather/index.js +1 -1
- package/dist/index.css +18 -4
- package/dist/index.js +1 -1
- package/dist/rusticTheme.d.ts +0 -1
- package/dist/rusticTheme.d.ts.map +1 -1
- package/dist/rusticTheme.js +1 -1
- package/package.json +35 -28
- package/dist/components/multipart/index.d.ts.map +0 -1
- package/dist/components/multipart/multipart.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["@rustic-ai/ui-components"]=r():e["@rustic-ai/ui-components"]=r()}(global,(()=>(()=>{"use strict";var e={n:r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},d:(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{default:()=>R});const t=require("react/jsx-runtime"),n=require("@mui/material/Box");var a=e.n(n);const i=require("@mui/material/Card");var o=e.n(i);const c=require("@mui/material/Stack");var s=e.n(c);const l=require("@mui/material/Typography");var u=e.n(l);const m=require("react");var d
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["@rustic-ai/ui-components"]=r():e["@rustic-ai/ui-components"]=r()}(global,(()=>(()=>{"use strict";var e={n:r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},d:(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{default:()=>R});const t=require("react/jsx-runtime"),n=require("@mui/material/Box");var a=e.n(n);const i=require("@mui/material/Card");var o=e.n(i);const c=require("@mui/material/Stack");var s=e.n(c);const l=require("@mui/material/Typography");var u=e.n(l);const m=require("react");var d;function h(e){var r=["Sun","Mon","Tues","Wed","Thurs","Fri","Sat"][new Date(1e3*e).getDay()];return{shortName:r,fullName:{Sun:"Sunday",Mon:"Monday",Tues:"Tuesday",Wed:"Wednesday",Thurs:"Thursday",Fri:"Friday",Sat:"Saturday"}[r]}}!function(e){e[e.HOUR=0]="HOUR",e[e.MONTH_DATE=1]="MONTH_DATE"}(d||(d={}));var p=function(){return p=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},p.apply(this,arguments)};function x(e){e.name.replaceAll("_","-");var r={};return e.color&&(r={color:e.color}),(0,t.jsx)("span",{className:"".concat(e.className?e.className+" ":"","material-symbols-rounded"),style:p({},r),children:e.name})}const v=require("@mui/material"),f=require("@mui/material/Button");var b=e.n(f);const y=require("@mui/material/Drawer");var j=e.n(y);const w=require("@mui/material/IconButton");var g=e.n(w);const N=require("@mui/material/ListItemText");var T=e.n(N);const O=require("@mui/material/Menu");var S=e.n(O);const q=require("@mui/material/MenuItem");var I=e.n(q);const M=require("@mui/material/styles"),D=require("@mui/material/Tooltip");var C=e.n(D);const k=require("@mui/system");var F=function(){return F=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},F.apply(this,arguments)};function P(e){var r=(0,m.useState)(!1),n=r[0],a=r[1],i=(0,m.useRef)(null),o=(0,M.useTheme)(),c=(0,v.useMediaQuery)(o.breakpoints.down("md")),s=c?j():S(),l={borderRadius:"".concat(o.shape.borderRadius,"px"),border:"1px solid ".concat(o.palette.divider)};function d(e){return(0,t.jsxs)(t.Fragment,{children:[e.startDecorator&&(0,t.jsx)(k.Box,{sx:{color:"primary.main"},className:"rustic-popover-menu-item-icon rustic-popover-menu-item-start-icon",children:e.startDecorator}),(0,t.jsx)(T(),{children:(0,t.jsx)(u(),{variant:"body2",children:e.label})}),e.endDecorator&&(0,t.jsx)(k.Box,{sx:{color:"secondary.main"},className:"rustic-popover-menu-item-icon rustic-popover-menu-item-end-icon",children:e.endDecorator})]})}c&&(l=F(F({},l),{borderRadius:"".concat(o.shape.borderRadius,"px ").concat(o.shape.borderRadius,"px 0 0"),borderBottom:0}));var h=e.menuItems.map((function(e){return e.href?(0,t.jsx)(I(),{component:"a",onClick:function(){return a(!1)},href:e.href,download:e.downloadFileName||e.isFiledownload,children:d(e)},e.label):(0,t.jsx)(I(),{onClick:function(r){e.onClick&&e.onClick(r),a(!1)},disabled:!e.onClick,children:d(e)},e.label)}));var p,f,y=c?{}:{anchorEl:i.current};return(0,t.jsxs)(t.Fragment,{children:[(p={onClick:function(e){e.stopPropagation(),a(!0)},"aria-label":e.ariaLabel,ref:i,className:"rustic-popover-menu-button"},f=(0,t.jsx)(x,{name:"more_vert"}),e.buttonText?(0,t.jsx)(b(),F({},p,{startIcon:e.icon?e.icon:null,children:e.buttonText})):(0,t.jsx)(C(),{title:e.ariaLabel,children:(0,t.jsx)(g(),F({},p,{children:e.icon?e.icon:f}))})),(0,t.jsx)(s,F({open:n,onClose:function(){return a(!1)}},y,{anchor:"bottom",className:"rustic-popover-menu",sx:{"& .MuiPaper-root":F(F({},l),{backgroundImage:"none",boxShadow:o.shadows[2]})},children:h}))]})}const R=function(e){var r=(0,m.useState)(e.units),n=r[0],i=r[1];function c(r){return"metric"===e.units&&"imperial"===n?Math.round(1.8*r+32):"imperial"===e.units&&"metric"===n?Math.round(r*(5/9)-32):Math.round(r)}var l=new Date(1e3*e.weather[0].timestamp),d=h(e.weather[0].timestamp).shortName,p=l.getDate(),v=l.getFullYear().toString().slice(2),f="".concat(d," ").concat(p,"/").concat(v," TODAY"),b="HIGH: ".concat(c(e.weather[0].temp.high)," / LOW: ").concat(c(e.weather[0].temp.high)),y=e.weather.map((function(e,r){if(0!==r)return(0,t.jsxs)(o(),{variant:"outlined",className:"rustic-daily-weather-card",children:[(0,t.jsx)(u(),{variant:"h5",component:"span",color:"text.secondary","aria-label":h(e.timestamp).fullName,children:h(e.timestamp).shortName}),(0,t.jsx)("img",{src:e.weatherIcon.icon,alt:e.weatherIcon.description}),(0,t.jsxs)(u(),{variant:"body2",color:"text.secondary",children:["High: ",c(e.temp.high),"°"]}),(0,t.jsxs)(u(),{variant:"body2",color:"text.secondary",children:["Low: ",c(e.temp.low),"°"]})]},r)}));return(0,t.jsxs)(o(),{variant:"outlined",className:"rustic-weather",children:[(0,t.jsx)(P,{ariaLabel:"Temperature units",menuItems:[{label:"Celsius",endDecorator:"°C",onClick:function(){return i("metric")}},{label:"Fahrenheit",endDecorator:"°F",onClick:function(){return i("imperial")}}]}),(0,t.jsxs)(s(),{alignItems:"center",children:[(0,t.jsx)(u(),{variant:"h4",component:"span",children:e.location}),(0,t.jsxs)(s(),{direction:"row",alignItems:"center",spacing:1,className:"rustic-current-weather-description",children:[(0,t.jsx)("img",{src:e.weather[0].weatherIcon.icon,alt:""}),(0,t.jsx)(u(),{variant:"body2",children:e.weather[0].weatherIcon.description})]}),e.weather[0].temp.current&&(0,t.jsxs)(u(),{variant:"h1",component:"span",className:"rustic-current-temp",children:[c(e.weather[0].temp.current),"°",function(e){switch(e){case"imperial":return"F";case"metric":return"C"}}(n)]}),(0,t.jsxs)(s(),{direction:"row",spacing:2,children:[(0,t.jsx)(u(),{variant:"overline",children:f}),(0,t.jsx)(u(),{variant:"overline",children:b})]})]}),(0,t.jsx)(a(),{className:"rustic-daily-weather-container",children:y}),e.weatherProvider&&(0,t.jsxs)(s(),{alignItems:"center",direction:"row",spacing:1,alignSelf:"center",className:"rustic-weather-attribution",children:[(0,t.jsx)(x,{name:"cloud"}),(0,t.jsx)(u(),{variant:"body2",children:"Weather data provided by ".concat(e.weatherProvider)})]})]})};return r})()));
|
package/dist/index.css
CHANGED
|
@@ -161,7 +161,7 @@ code {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.rustic-base-input .rustic-input-label {
|
|
164
|
-
padding-top:
|
|
164
|
+
padding-top: 10px;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.rustic-base-input .rustic-text-field .MuiOutlinedInput-input {
|
|
@@ -182,7 +182,6 @@ code {
|
|
|
182
182
|
|
|
183
183
|
.rustic-base-input .rustic-input-adornment {
|
|
184
184
|
align-self: start;
|
|
185
|
-
margin-top: 12px;
|
|
186
185
|
}
|
|
187
186
|
|
|
188
187
|
emoji-picker {
|
|
@@ -236,6 +235,10 @@ emoji-picker {
|
|
|
236
235
|
min-width: 220px;
|
|
237
236
|
}
|
|
238
237
|
|
|
238
|
+
.rustic-file-preview-name {
|
|
239
|
+
margin-right: 8px;
|
|
240
|
+
}
|
|
241
|
+
|
|
239
242
|
.rustic-file-preview-modal {
|
|
240
243
|
width: 90vw;
|
|
241
244
|
height: 90vh;
|
|
@@ -674,9 +677,15 @@ span.rustic-open-layers-map-marker {
|
|
|
674
677
|
flex-direction: column;
|
|
675
678
|
flex: 1;
|
|
676
679
|
gap: 16px;
|
|
677
|
-
|
|
680
|
+
overflow: hidden;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.rustic-message-container {
|
|
684
|
+
display: flex;
|
|
685
|
+
flex-direction: column;
|
|
686
|
+
flex: 1;
|
|
687
|
+
gap: 16px;
|
|
678
688
|
overflow: auto;
|
|
679
|
-
position: relative;
|
|
680
689
|
scroll-behavior: smooth;
|
|
681
690
|
scrollbar-width: none;
|
|
682
691
|
}
|
|
@@ -797,6 +806,11 @@ span.rustic-open-layers-map-marker {
|
|
|
797
806
|
}
|
|
798
807
|
}
|
|
799
808
|
|
|
809
|
+
.rustic-prompt .MuiChip-label {
|
|
810
|
+
white-space: normal;
|
|
811
|
+
word-break: break-word;
|
|
812
|
+
}
|
|
813
|
+
|
|
800
814
|
.rustic-question .rustic-question-text {
|
|
801
815
|
margin-bottom: 16px;
|
|
802
816
|
}
|