@niagads/ui 0.2.4-alpha.0 → 1.0.0-alpha.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/README.md +20 -20
- package/package.json +3 -3
- package/dist/Alert.js +0 -2
- package/dist/Alert.js.map +0 -1
- package/dist/Button.js +0 -2
- package/dist/Button.js.map +0 -1
- package/dist/Card.js +0 -2
- package/dist/Card.js.map +0 -1
- package/dist/Checkbox.js +0 -2
- package/dist/Checkbox.js.map +0 -1
- package/dist/Common/dist/utils.js +0 -2
- package/dist/Common/dist/utils.js.map +0 -1
- package/dist/Navigation.js +0 -2
- package/dist/Navigation.js.map +0 -1
- package/dist/RadioButton.js +0 -2
- package/dist/RadioButton.js.map +0 -1
- package/dist/Select.js +0 -2
- package/dist/Select.js.map +0 -1
- package/dist/Skeleton.js +0 -2
- package/dist/Skeleton.js.map +0 -1
- package/dist/TextInput.js +0 -2
- package/dist/TextInput.js.map +0 -1
- package/dist/client/Dropdown.js +0 -2
- package/dist/client/Dropdown.js.map +0 -1
- package/dist/client/HelpIcon.js +0 -2
- package/dist/client/HelpIcon.js.map +0 -1
- package/dist/client/Slider.js +0 -2
- package/dist/client/Slider.js.map +0 -1
- package/dist/client/Tabs.js +0 -2
- package/dist/client/Tabs.js.map +0 -1
- package/dist/client/Tooltip.js +0 -2
- package/dist/client/Tooltip.js.map +0 -1
- package/dist/client/index.d.ts +0 -63
- package/dist/client/index.js +0 -2
- package/dist/client/index.js.map +0 -1
- package/dist/index.d.ts +0 -100
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/layouts/RootLayout.js +0 -2
- package/dist/layouts/RootLayout.js.map +0 -1
- package/dist/layouts/index.d.ts +0 -28
- package/dist/layouts/index.js +0 -2
- package/dist/layouts/index.js.map +0 -1
- package/dist/niagads-ui.css +0 -1532
- package/dist/niagads-ui.css.map +0 -1
package/README.md
CHANGED
@@ -18,37 +18,37 @@ Import packages as needed:
|
|
18
18
|
from { Button, Alert, Checkbox } from "@niagads/ui";
|
19
19
|
```
|
20
20
|
|
21
|
-
A Storybook with example component usage can be built from the Monorepo source on GitHub.
|
21
|
+
A Storybook with example component usage can be built from the Monorepo source on GitHub. More extensive component documentation is coming soon.
|
22
22
|
|
23
23
|
## Completed
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
25
|
+
- Alert
|
26
|
+
- Button
|
27
|
+
- Card
|
28
|
+
- Checkbox
|
29
|
+
- HelpIcon
|
30
|
+
- RadioButton
|
31
|
+
- Select
|
32
|
+
- TextInput
|
33
|
+
- Tooltip
|
34
34
|
|
35
35
|
### Needs Styling Revision
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
37
|
+
- Button
|
38
|
+
- Tabs
|
39
|
+
- Card
|
40
|
+
- Badge (fit to width and contents & align icon and text)
|
41
41
|
|
42
42
|
### Proof of Concept or currently Under Revision
|
43
43
|
|
44
44
|
see [Components in Queue](https://github.com/NIAGADS/niagads-viz-monorepo/issues/23) for specific issues related to these UI Elements
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
46
|
+
- Navigation - see _TODOs_ in issue [#63](https://github.com/NIAGADS/niagads-viz-monorepo/issues/63)
|
47
|
+
- Dropdown
|
48
|
+
- Skeleton
|
49
|
+
- Slider
|
50
|
+
- Layout/RootLayout (needs _Footer_)
|
51
51
|
|
52
52
|
### Planned
|
53
53
|
|
54
|
-
see [Components in Queue](https://github.com/NIAGADS/niagads-viz-monorepo/issues/23)
|
54
|
+
see [Components in Queue](https://github.com/NIAGADS/niagads-viz-monorepo/issues/23)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@niagads/ui",
|
3
|
-
"version": "0.
|
3
|
+
"version": "1.0.0-alpha.0",
|
4
4
|
"description": "NIAGADS Common UI React Component Library",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
28
|
"@heroicons/react": "^2.2.0",
|
29
|
-
"@niagads/common": "^0.
|
29
|
+
"@niagads/common": "^1.0.0-alpha.0",
|
30
30
|
"react-tooltip": "^5.28.0",
|
31
31
|
"style-inject": "^0.3.0"
|
32
32
|
},
|
@@ -52,5 +52,5 @@
|
|
52
52
|
"./package.json": "./package.json",
|
53
53
|
"./css": "./dist/niagads-ui.css"
|
54
54
|
},
|
55
|
-
"gitHead": "
|
55
|
+
"gitHead": "094fe38fb2fed6e9279a8943fde1fbc64d1d0519"
|
56
56
|
}
|
package/dist/Alert.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";const a=({variant:a="default",message:t,children:l})=>{const r=`ui-alert ${a}`;return e.createElement("div",{className:r,role:"alert"},e.createElement("svg",{className:"flex-shrink-0 inline w-4 h-4 me-3 mt-[2px]","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},e.createElement("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"})),e.createElement("span",{className:"sr-only"},"Info"),e.createElement("div",null,e.createElement("span",{className:"font-bold"},t),l&&("string"==typeof l?e.createElement("div",null,l):l)))};export{a as Alert};
|
2
|
-
//# sourceMappingURL=Alert.js.map
|
package/dist/Alert.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Alert.js","sources":["../src/Alert.tsx"],"sourcesContent":[null],"names":["Alert","variant","message","children","classes","React","className","role","createElement","xmlns","fill","viewBox","d"],"mappings":"qBAWO,MAAMA,EAAQ,EAAGC,UAAU,UAAWC,UAASC,eAClD,MAAMC,EAAU,YAAYH,IAE5B,OACII,uBAAKC,UAAWF,EAASG,KAAK,SAC1BF,EAAAG,cAAA,MAAA,CACIF,UAAU,6CACE,cAAA,OACZG,MAAM,6BACNC,KAAK,eACLC,QAAQ,aAERN,EAAAG,cAAA,OAAA,CAAMI,EAAE,kLAEZP,EAAMG,cAAA,OAAA,CAAAF,UAAU,WAAqB,QACrCD,EAAAG,cAAA,MAAA,KACIH,EAAAG,cAAA,OAAA,CAAMF,UAAU,aAAaJ,GAC5BC,IAAiC,iBAAbA,EAAwBE,EAAAG,cAAA,MAAA,KAAML,GAAkBA,IAEvE"}
|
package/dist/Button.js
DELETED
package/dist/Button.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../src/Button.tsx"],"sourcesContent":[null],"names":["Button","variant","size","children","onClick","disabled","classes","React","createElement","className"],"mappings":"2BAaaA,EAAS,EAAGC,UAAU,UAAWC,OAAO,KAAMC,WAAUC,UAASC,YAAW,MACrF,MAAMC,EAAU,aAAaL,KAAWC,IAExC,OACIK,EAAQC,cAAA,SAAA,CAAAH,SAAUA,EAAUI,UAAWH,EAASF,QAASA,GACpDD,EACI"}
|
package/dist/Card.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";import{Button as r}from"./Button.js";const a=({children:r})=>e.createElement("div",{className:"ui-card-body"},r),t=({children:r})=>e.createElement("h5",{className:"ui-card-header"},r),c=({shadow:a=!1,radius:t="md",href:c,onClick:l,children:n})=>{const d=`${c||l?"ui-card-link":"ui-card"} ${a?"shadow-sm":""} rounded-${t}`;return e.createElement("div",{className:d},c?e.createElement("a",{href:c},n):l?e.createElement(r,{onClick:l,variant:"white"},e.createElement("div",{className:"flex col"},n)):e.createElement("div",null,n))};export{c as Card,a as CardBody,t as CardHeader};
|
2
|
-
//# sourceMappingURL=Card.js.map
|
package/dist/Card.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Card.js","sources":["../src/Card.tsx"],"sourcesContent":[null],"names":["CardBody","children","React","className","CardHeader","Card","shadow","radius","href","onClick","createElement","Button","variant"],"mappings":"gEAoBaA,EAAW,EAAGC,cAChBC,uBAAKC,UAAU,gBAAgBF,GAG7BG,EAAa,EAAGH,cAClBC,sBAAIC,UAAU,kBAAkBF,GAG9BI,EAAO,EAAGC,UAAS,EAAOC,SAAS,KAAMC,OAAMC,UAASR,eACjE,MAAME,EAAY,GAAGK,GAAQC,EAAU,eAAiB,aAAaH,EAAS,YAAc,cAAcC,IAC1G,OACIL,EAAKQ,cAAA,MAAA,CAAAP,UAAWA,GACXK,EACGN,EAAGQ,cAAA,IAAA,CAAAF,KAAMA,GAAOP,GAChBQ,EACAP,EAAAQ,cAACC,EAAM,CAACF,QAASA,EAASG,QAAQ,SAC9BV,EAAAQ,cAAA,MAAA,CAAKP,UAAU,YAAYF,IAG/BC,EAAMQ,cAAA,MAAA,KAAAT,GAER"}
|
package/dist/Checkbox.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";const a=({variant:a="secondary",name:t,value:c,label:l,onChange:n,disabled:d=!1,checked:m=!1,defaultChecked:s=!1,alignCenter:r=!1})=>{const i=`ui-checkbox ${a}`;return e.createElement("div",{className:r?"text-center align-middle":""},s?e.createElement("input",{type:"checkbox",className:i,name:t,onChange:n,disabled:d,value:c,defaultChecked:s}):e.createElement("input",{type:"checkbox",className:i,name:t,onChange:n,disabled:d,checked:m,value:c}),l&&e.createElement("label",{className:"text-sm ml-2"},l))};export{a as Checkbox};
|
2
|
-
//# sourceMappingURL=Checkbox.js.map
|
package/dist/Checkbox.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":["../src/Checkbox.tsx"],"sourcesContent":[null],"names":["Checkbox","variant","name","value","label","onChange","disabled","checked","defaultChecked","alignCenter","className","React","createElement","type"],"mappings":"qBAeO,MAAMA,EAAW,EACpBC,UAAU,YACVC,OACAC,QACAC,QACAC,WACAC,YAAW,EACXC,WAAU,EACVC,kBAAiB,EACjBC,eAAc,MAEd,MAAMC,EAAY,eAAeT,IACjC,OACIU,EAAAC,cAAA,MAAA,CAAKF,UAAWD,EAAc,2BAA6B,IACtDD,EACGG,EACIC,cAAA,QAAA,CAAAC,KAAK,WACLH,UAAWA,EACXR,KAAMA,EACNG,SAAUA,EACVC,SAAUA,EACVH,MAAOA,EACPK,eAAgBA,IAGpBG,EAAAC,cAAA,QAAA,CACIC,KAAK,WACLH,UAAWA,EACXR,KAAMA,EACNG,SAAUA,EACVC,SAAUA,EACVC,QAASA,EACTJ,MAAOA,IAIdC,GAASO,EAAOC,cAAA,QAAA,CAAAF,UAAU,gBAAgBN,GACzC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../Common/dist/utils.js"],"sourcesContent":["const e=(e,t)=>void 0!==t&&t.hasOwnProperty(e),t=(t,r,n=null)=>e(t,r)?r[t]:n,r=e=>JSON.parse(JSON.stringify(e)),n=e=>e instanceof Object,s=e=>{try{e=JSON.parse(e)}catch(t){return n(e)&&null!=e}return n(e)&&null!=e},a=(e,t=!1)=>!(!e||\"string\"!=typeof e||![\"NA\",\"N/A\",\"NULL\",\".\",\"\"].includes(e.toUpperCase()))||!!t&&l(e),l=e=>null==e,p=(e,t=2)=>Number.parseFloat(e.toFixed(t)).toString(),u=(e,t=2)=>{const r=Number.parseFloat(e.toString()).toExponential(t||2);let[n,s]=(r+\"\").split(\"e\");return parseInt(s)>3||parseInt(s)<-4?(n=n.endsWith(\"0\")?p(Number.parseFloat(n),t):n,`${n}e${s}`):e},o=e=>e.replace(/\\w\\S*/g,(e=>e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()));function c(e){return(e=e.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\")).replace(/(\"(\\\\u[a-zA-Z0-9]{4}|\\\\[^u]|[^\\\\\"])*\"(\\s*:)?|\\b(true|false|null)\\b|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)/g,(function(e){var t=\"number\";return/^\"/.test(e)?t=/:$/.test(e)?\"key\":\"string\":/true|false/.test(e)?t=\"boolean\":/null/.test(e)&&(t=\"null\"),'<span class=\"'+t+'\">'+e+\"</span>\"}))}export{r as _deepCopy,t as _get,e as _hasOwnProperty,s as _isJSON,a as _isNA,l as _isNull,n as _isObject,c as jsonSyntaxHighlight,u as toExponential,p as toFixedWithoutZeros,o as toTitleCase};\n//# sourceMappingURL=utils.js.map\n"],"names":["e","t","hasOwnProperty","r","n"],"mappings":"AAAK,MAACA,EAAE,CAACA,EAAEC,SAAI,IAASA,GAAGA,EAAEC,eAAeF,GAAGC,EAAE,CAACA,EAAEE,EAAEC,EAAE,OAAOJ,EAAEC,EAAEE,GAAGA,EAAEF,GAAGG"}
|
package/dist/Navigation.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";const a=(e,a)=>{if(e.startsWith("http"))return e;return a?`${a}${e.startsWith("/")?e:"/"+e}`:e},t=(t,n,i,r)=>e.createElement("a",{key:r,className:`ui-nav-link ${i}`,href:a(t.href,n),target:t.target},t.label),n=({item:a,index:n,hostUrl:i,variant:r})=>e.createElement("li",{key:`nav-menu-item_${n}`},t(a,i,r,`nav-menu-item-link_${n}`)),i=({items:a,hostUrl:n,variant:i})=>e.createElement("div",{className:"ui-nav-mobile"},a&&e.createElement("div",{className:"ui-nav-mobile-menu"},a.map(((e,a)=>t(e,n,i,`nav-mobile-menu-link_${a}`))))),r=({variant:a="light",items:t,brand:r,publicHostUrl:l})=>e.createElement("nav",{className:`ui-nav ${a}`},e.createElement("div",{className:"ui-nav-inner-container"},r&&e.createElement("a",{href:r.href,target:r.target,className:"ui-nav-brand"},r.logo&&r.logo,e.createElement("span",{className:`ui-nav-brand-label ${a}`},r.label)),e.createElement("div",{className:"ui-nav-item-container"},t&&e.createElement("ul",{className:"ui-nav-item-list"},t.map(((t,i)=>e.createElement(n,{index:i,item:t,hostUrl:l,variant:a})))))),e.createElement(i,{items:t,hostUrl:l,variant:a}));export{r as Navigation};
|
2
|
-
//# sourceMappingURL=Navigation.js.map
|
package/dist/Navigation.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Navigation.js","sources":["../src/Navigation.tsx"],"sourcesContent":[null],"names":["buildRouterLink","url","hostUrl","startsWith","renderMenuLink","item","variant","key","React","createElement","className","href","target","label","MenuItem","index","MobileMenu","items","map","Navigation","brand","publicHostUrl","logo"],"mappings":"qBA0BA,MAAMA,EAAkB,CAACC,EAAaC,KAClC,GAAID,EAAIE,WAAW,QACf,OAAOF,EAIX,OADaC,EAAU,GAAGA,IAAUD,EAAIE,WAAW,KAAOF,EAAM,IAAMA,IAAQA,CACnE,EAGTG,EAAiB,CAACC,EAAsBH,EAA6BI,EAAiBC,IACxFC,EAAGC,cAAA,IAAA,CAAAF,IAAKA,EAAKG,UAAW,eAAeJ,IAAWK,KAAMX,EAAgBK,EAAKM,KAAMT,GAAUU,OAAQP,EAAKO,QACrGP,EAAKQ,OAIRC,EAAW,EACbT,OACAU,QACAb,UACAI,aAQIE,sBAAID,IAAK,iBAAiBQ,KAAUX,EAAeC,EAAMH,EAASI,EAAS,sBAAsBS,MAInGC,EAAa,EACfC,QACAf,UACAI,aAOIE,EAAKC,cAAA,MAAA,CAAAC,UAAU,iBACVO,GACGT,uBAAKE,UAAU,sBACVO,EAAMC,KAAI,CAACb,EAAMU,IACdX,EAAeC,EAAMH,EAASI,EAAS,wBAAwBS,SA4C1EI,EAAa,EAAGb,UAAU,QAASW,QAAOG,QAAOC,mBAEtDb,EAAKC,cAAA,MAAA,CAAAC,UAAW,UAAUJ,KACtBE,EAAKC,cAAA,MAAA,CAAAC,UAAU,0BACVU,GACGZ,EAAAC,cAAA,IAAA,CAAGE,KAAMS,EAAMT,KAAMC,OAAQQ,EAAMR,OAAQF,UAAU,gBAChDU,EAAME,MAAQF,EAAME,KACrBd,EAAMC,cAAA,OAAA,CAAAC,UAAW,sBAAsBJ,KAAYc,EAAMP,QAIjEL,EAAKC,cAAA,MAAA,CAAAC,UAAU,yBACVO,GACGT,EAAIC,cAAA,KAAA,CAAAC,UAAU,oBACTO,EAAMC,KAAI,CAACb,EAAMU,IACdP,gBAACM,EAAQ,CAACC,MAAOA,EAAOV,KAAMA,EAAMH,QAASmB,EAAef,QAASA,SAOzFE,EAAAC,cAACO,EAAW,CAAAC,MAAOA,EAAOf,QAASmB,EAAef,QAASA"}
|
package/dist/RadioButton.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";const a=({variant:a="default",label:t,onChange:l,disabled:n=!1,checked:c=!1,alignCenter:r=!1})=>{const d=`ui-radio ${a}`;return e.createElement("div",{className:r?"text-center align-middle":""},e.createElement("input",{type:"radio",className:d,onChange:l,checked:c,disabled:n}),t&&e.createElement("label",{className:"text-sm ml-2"},t))};export{a as RadioButton};
|
2
|
-
//# sourceMappingURL=RadioButton.js.map
|
package/dist/RadioButton.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RadioButton.js","sources":["../src/RadioButton.tsx"],"sourcesContent":[null],"names":["RadioButton","variant","label","onChange","disabled","checked","alignCenter","className","React","createElement","type"],"mappings":"qBAIa,MAAAA,EAAc,EACvBC,UAAU,UACVC,QACAC,WACAC,YAAW,EACXC,WAAU,EACVC,eAAc,MAEd,MAAMC,EAAY,YAAYN,IAC9B,OACIO,EAAAC,cAAA,MAAA,CAAKF,UAAWD,EAAc,2BAA6B,IACvDE,EAAAC,cAAA,QAAA,CAAOC,KAAK,QAAQH,UAAWA,EAAWJ,SAAUA,EAAUE,QAASA,EAASD,SAAUA,IACzFF,GAASM,EAAOC,cAAA,QAAA,CAAAF,UAAU,gBAAgBL,GACzC"}
|
package/dist/Select.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";const t=({fields:t,id:l,label:a,name:n,defaultValue:r,inline:m=!1,onChange:i,variant:c="outline"})=>{return e.createElement(e.Fragment,null,e.createElement("div",{className:m?"md:flex md:items-center":""},e.createElement("div",null,e.createElement("label",{htmlFor:l,className:"ui-select-label"},a)),e.createElement("div",null,e.createElement("select",{name:n||l,defaultValue:r,id:l,onChange:i,className:`ui-select ${c}`},Array.isArray(t)?t.map((t=>e.createElement("option",{key:t.toString(),value:t},t))):(s=t,Object.entries(s).map((([t,l])=>e.createElement("option",{key:t,value:l},t))))))));var s};export{t as Select};
|
2
|
-
//# sourceMappingURL=Select.js.map
|
package/dist/Select.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../src/Select.tsx"],"sourcesContent":[null],"names":["Select","fields","id","label","name","defaultValue","inline","onChange","variant","React","createElement","Fragment","className","htmlFor","Array","isArray","map","v","key","toString","value","fieldMap","Object","entries","k"],"mappings":"qBAaa,MAAAA,EAAS,EAClBC,SACAC,KACAC,QACAC,OACAC,eACAC,UAAS,EACTC,WACAC,UAAU,cAgBV,OACIC,EAAAC,cAAAD,EAAAE,SAAA,KACIF,EAAKC,cAAA,MAAA,CAAAE,UAAWN,EAAS,0BAA4B,IACjDG,EAAAC,cAAA,MAAA,KACID,EAAOC,cAAA,QAAA,CAAAG,QAASX,EAAIU,UAAU,mBACzBT,IAGTM,EAAAC,cAAA,MAAA,KACID,EACIC,cAAA,SAAA,CAAAN,KAAMA,GAAcF,EACpBG,aAAcA,EACdH,GAAIA,EACJK,SAAUA,EACVK,UAAW,aAAaJ,KAEvBM,MAAMC,QAAQd,GAA4BA,EA7BpDe,KAAKC,GACRR,EAAAC,cAAA,SAAA,CAAQQ,IAAKD,EAAEE,WAAYC,MAAOH,GAC7BA,MAIYI,EAuBgEpB,EAtBrFqB,OAAOC,QAAQF,GAAUL,KAAI,EAAEQ,EAAGP,KAC9BR,EAAAC,cAAA,SAAA,CAAQQ,IAAKM,EAAGJ,MAAOH,GAClBO,UAHW,IAACH,CA2BlB"}
|
package/dist/Skeleton.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";const a=({type:a})=>"default"===a?e.createElement("div",{role:"status",className:"max-w-sm animate-pulse"},e.createElement("div",{className:"h-2.5 bg-gray-200 rounded-full w-48 mb-4"}),e.createElement("div",{className:"h-2 bg-gray-200 rounded-full max-w-[300px] mb-2.5"}),e.createElement("div",{className:"h-2 bg-gray-200 rounded-full max-w-[360px] mb-2.5"}),e.createElement("span",{className:"sr-only"},"Loading...")):"card"===a?e.createElement("div",{role:"status",className:"max-w-sm p-4 border border-gray-200 rounded-sm shadow-sm animate-pulse md:p-6"},e.createElement("div",{className:"flex items-center justify-center h-48 mb-4 bg-gray-300 rounded-sm"},e.createElement("svg",{className:"w-10 h-10 text-gray-200 ","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 20"},e.createElement("path",{d:"M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"}),e.createElement("path",{d:"M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"}))),e.createElement("div",{className:"h-2.5 bg-gray-200 rounded-full w-48 mb-4"}),e.createElement("div",{className:"h-2 bg-gray-200 rounded-full mb-2.5"}),e.createElement("div",{className:"h-2 bg-gray-200 rounded-full mb-2.5"}),e.createElement("div",{className:"h-2 bg-gray-200 rounded-full"}),e.createElement("div",{className:"flex items-center mt-4"},e.createElement("svg",{className:"w-10 h-10 me-3 text-gray-200 ","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},e.createElement("path",{d:"M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z"})),e.createElement("div",null,e.createElement("div",{className:"h-2.5 bg-gray-200 rounded-full w-32 mb-2"}),e.createElement("div",{className:"w-48 h-2 bg-gray-200 rounded-full "}))),e.createElement("span",{className:"sr-only"},"Loading...")):"table"===a?e.createElement("div",null,e.createElement("div",{role:"status",className:"flex justify-between p-4 border border-gray-200 divide-x space-x-2 divide-gray-200 rounded-sm shadow-sm animate-pulse md:p-6 "},[...Array(5)].map((a=>e.createElement("div",{key:a,className:"flex flex-col divide-y space-y-2 divide-gray-200 pr-2"},e.createElement("div",{className:"h-2.5 bg-gray-300 rounded-full w-24 mb-2.5"}),e.createElement("div",null,e.createElement("div",{className:"h-2.5 bg-gray-200 rounded-full w-24 mb-2.5"}),e.createElement("div",{className:"w-32 h-2 bg-gray-200 rounded-full "})))))),e.createElement("span",{className:"sr-only"},"Loading...")):e.createElement(e.Fragment,null);export{a as Skeleton};
|
2
|
-
//# sourceMappingURL=Skeleton.js.map
|
package/dist/Skeleton.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Skeleton.js","sources":["../src/Skeleton.tsx"],"sourcesContent":[null],"names":["Skeleton","type","React","createElement","role","className","xmlns","fill","viewBox","d","Array","map","x","key","Fragment"],"mappings":"2BAQaA,EAAW,EAAGC,UACP,YAATA,EACHC,EAAKC,cAAA,MAAA,CAAAC,KAAK,SAASC,UAAU,0BACzBH,EAAKC,cAAA,MAAA,CAAAE,UAAU,6CACfH,EAAKC,cAAA,MAAA,CAAAE,UAAU,sDACfH,EAAKC,cAAA,MAAA,CAAAE,UAAU,sDACfH,EAAMC,cAAA,OAAA,CAAAE,UAAU,WAAS,eAEpB,SAATJ,EACAC,EAAKC,cAAA,MAAA,CAAAC,KAAK,SAASC,UAAU,iFACzBH,EAAKC,cAAA,MAAA,CAAAE,UAAU,qEACXH,EAAAC,cAAA,MAAA,CACIE,UAAU,2BACE,cAAA,OACZC,MAAM,6BACNC,KAAK,eACLC,QAAQ,aAERN,EAAMC,cAAA,OAAA,CAAAM,EAAE,+WACRP,EAAAC,cAAA,OAAA,CAAMM,EAAE,6EAGhBP,EAAKC,cAAA,MAAA,CAAAE,UAAU,6CACfH,EAAKC,cAAA,MAAA,CAAAE,UAAU,wCACfH,EAAKC,cAAA,MAAA,CAAAE,UAAU,wCACfH,EAAKC,cAAA,MAAA,CAAAE,UAAU,iCACfH,EAAKC,cAAA,MAAA,CAAAE,UAAU,0BACXH,EAAAC,cAAA,MAAA,CACIE,UAAU,gCACE,cAAA,OACZC,MAAM,6BACNC,KAAK,eACLC,QAAQ,aAERN,EAAAC,cAAA,OAAA,CAAMM,EAAE,2MAEZP,EAAAC,cAAA,MAAA,KACID,EAAKC,cAAA,MAAA,CAAAE,UAAU,8CACfH,EAAAC,cAAA,MAAA,CAAKE,UAAU,yCAGvBH,EAAAC,cAAA,OAAA,CAAME,UAAU,WAAS,eAEpB,UAATJ,EACAC,EAAAC,cAAA,MAAA,KACID,EAAAC,cAAA,MAAA,CACIC,KAAK,SACLC,UAAU,iIAET,IAAIK,MAAM,IAAIC,KAAIC,GACfV,EAAKC,cAAA,MAAA,CAAAU,IAAKD,EAAGP,UAAU,yDACnBH,EAAKC,cAAA,MAAA,CAAAE,UAAU,+CACfH,EAAAC,cAAA,MAAA,KACID,EAAKC,cAAA,MAAA,CAAAE,UAAU,+CACfH,EAAKC,cAAA,MAAA,CAAAE,UAAU,4CAK/BH,EAAAC,cAAA,OAAA,CAAME,UAAU,WAAS,eAG7BH,EAAKC,cAAAD,EAAAY,SAAA"}
|
package/dist/TextInput.js
DELETED
package/dist/TextInput.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextInput.js","sources":["../src/TextInput.tsx"],"sourcesContent":[null],"names":["TextInput","value","onChange","placeholder","React","createElement","className","evt","currentTarget","type"],"mappings":"qBASO,MAAMA,EAAY,EAAGC,QAAOC,WAAUC,iBAGrCC,EAAAC,cAAA,QAAA,CACIC,UAAU,gBACVJ,SAJcK,GAA6CL,EAASK,EAAIC,cAAcP,OAKtFE,YAAaA,GAA4B,SACzCM,KAAK,OACLR,MAAOA"}
|
package/dist/client/Dropdown.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e,{useState as t}from"react";const n="inline-flex w-full justify-center gap-x-1.5 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",l="absolute right-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 transition focus:outline-none",i=({options:i,closeOnSelect:a,onSelect:r})=>{const[o,c]=t(!1),[m,s]=t([]);return e.createElement("div",{className:"relative inline-block text-left"},e.createElement("div",{className:n,onClick:()=>c(!o)},0===m.length?"Select...":m.map((e=>e.name)).join(", ")),o?e.createElement("div",{className:l},i.map((t=>e.createElement("div",{onClick:()=>(e=>{let t=[];t=m.find((t=>t.value===e.value))?m.filter((t=>t.value!==e.value)):[...m,e],s(t),r(t.map((e=>e.value))),a&&c(!1)})(t)},t.name)))):e.createElement(e.Fragment,null))};export{i as Dropdown};
|
2
|
-
//# sourceMappingURL=Dropdown.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sources":["../../src/client/Dropdown.tsx"],"sourcesContent":[null],"names":["__TAILWIND_CSS","Dropdown","options","closeOnSelect","onSelect","visible","setVisible","useState","selected","setSelected","React","createElement","className","onClick","length","map","o","name","join","option","x","updated","find","value","filter","handleSelect","Fragment"],"mappings":"oCAEA,MAAMA,EAEM,2KAFNA,EAIE,gJAcKC,EAAW,EAAOC,UAASC,gBAAeC,eACnD,MAAOC,EAASC,GAAcC,GAAkB,IACzCC,EAAUC,GAAeF,EAA8B,IAc9D,OACIG,EAAAC,cAAA,MAAA,CAAKC,UAAU,mCACXF,EAAKC,cAAA,MAAA,CAAAC,UAAWZ,EAAuBa,QAAS,IAAMP,GAAYD,IACzC,IAApBG,EAASM,OAAe,YAAcN,EAASO,KAAKC,GAAMA,EAAEC,OAAMC,KAAK,OAE3Eb,EACGK,EAAKC,cAAA,MAAA,CAAAC,UAAWZ,GACXE,EAAQa,KAAKI,GACHT,EAAKC,cAAA,MAAA,CAAAE,QAAS,IApBpB,CAACO,IAClB,IAAIC,EAAU,GAEVA,EADAb,EAASc,MAAMN,GAAMA,EAAEO,QAAUH,EAAEG,QACzBf,EAASgB,QAAQR,GAAMA,EAAEO,QAAUH,EAAEG,QAErC,IAAIf,EAAUY,GAE5BX,EAAYY,GACZjB,EAASiB,EAAQN,KAAKC,GAAMA,EAAEO,SAC9BpB,GAAiBG,GAAW,EAAM,EAWSmB,CAAaN,IAAUA,EAAOF,SAIjEP,EAAKC,cAAAD,EAAAgB,SAAA,MAEP"}
|
package/dist/client/HelpIcon.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";import{InformationCircleIcon as n,QuestionMarkCircleIcon as t,ExclamationCircleIcon as o}from"@heroicons/react/24/outline";import{Tooltip as r}from"./Tooltip.js";import{_get as i}from"../Common/dist/utils.js";const l=({anchorId:o,message:i,type:l})=>{const s="info"===l?e.createElement(n,{className:"inline-info-bubble"}):e.createElement(t,{className:"inline-info-bubble"});return e.createElement(r,{anchorId:`help-${o}`,content:i},s)},s=(n,t,o="question")=>e.createElement(l,{anchorId:n,message:t,type:o}),a={info:o,question:t,infoOutline:n},m=e=>{const n=i(e,a);if(null===n)throw Error("Error rendering field: invalid icon `"+e+"`");return n},c=(n,t,o,r)=>e.createElement("div",{className:"inline-flex"},n,s(r,o,t));export{l as HelpIcon,m as getIconElement,s as renderHelpIcon,c as renderWithHelpIcon};
|
2
|
-
//# sourceMappingURL=HelpIcon.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HelpIcon.js","sources":["../../src/client/HelpIcon.tsx"],"sourcesContent":[null],"names":["HelpIcon","anchorId","message","type","icon","React","createElement","InformationCircleIcon","className","QuestionMarkCircleIcon","Tooltip","content","renderHelpIcon","ICONS","info","ExclamationCircleIcon","question","infoOutline","getIconElement","key","_get","Error","renderWithHelpIcon","textElement"],"mappings":"sOAaO,MAAMA,EAAW,EAAGC,WAAUC,UAASC,WAC1C,MAAMC,EACO,SAATD,EACIE,EAAAC,cAACC,EAAqB,CAACC,UAAU,uBAEjCH,EAAAC,cAACG,EAAsB,CAACD,UAAU,uBAG1C,OACIH,EAACC,cAAAI,EAAQ,CAAAT,SAAU,QAAQA,IAAYU,QAAST,GAC3CE,EACK,EAILQ,EAAiB,CAC1BX,EACAC,EACAC,EAA4B,aAErBE,EAACC,cAAAN,EAAS,CAAAC,SAAUA,EAAUC,QAASA,EAASC,KAAMA,IAG3DU,EAAQ,CACVC,KAAMC,EACNC,SAAUP,EACVQ,YAAaV,GAQJW,EAAkBC,IAC3B,MAAMf,EAAOgB,EAAKD,EAAKN,GACvB,GAAa,OAATT,EACA,MAAMiB,MAAM,wCAA0CF,EAAM,KAEhE,OAAOf,CAAI,EAGFkB,EAAqB,CAC9BC,EACApB,EACAD,EACAD,IAGII,EAAAC,cAAA,MAAA,CAAKE,UAAU,eACVe,EACAX,EAAeX,EAAUC,EAASC"}
|
package/dist/client/Slider.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";const a=({variant:a="default",name:l,label:t,value:n,min:r,max:s,step:m,onChange:i})=>e.createElement("div",null,t&&e.createElement("label",{htmlFor:l,className:"ui-slider-label"},t),e.createElement("input",{id:l,type:"range",onChange:e=>{return(a=+e.target.value)!==n&&i(a);var a},value:n,min:r,max:s,step:m,className:`ui-slider ${a}`}),e.createElement("span",{className:"ui-slider-range-label start"},r),e.createElement("span",{className:"ui-slider-range-label end"},s));export{a as Slider};
|
2
|
-
//# sourceMappingURL=Slider.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":["../../src/client/Slider.tsx"],"sourcesContent":[null],"names":["Slider","variant","name","label","value","min","max","step","onChange","React","createElement","htmlFor","className","id","type","e","valueChanged","v","target"],"mappings":"qBAea,MAAAA,EAAS,EAAGC,UAAQ,UAAWC,OAAMC,QAAOC,QAAOC,MAAKC,MAAKC,OAAMC,cAIxEC,EAAAC,cAAA,MAAA,KACKP,GACGM,EAAOC,cAAA,QAAA,CAAAC,QAAST,EAAMU,UAAU,mBAC3BT,GAGTM,EACIC,cAAA,QAAA,CAAAG,GAAIX,EACJY,KAAK,QACLN,SAAWO,IAAMC,OAZPC,GAYqBF,EAAEG,OAAOd,SAZVA,GAASI,EAASS,GAAvC,IAACA,CAYoC,EAC9Cb,MAAOA,EACPC,IAAKA,EACLC,IAAKA,EACLC,KAAMA,EACNK,UAAW,aAAaX,MAE5BQ,EAAAC,cAAA,OAAA,CAAME,UAAU,+BAA+BP,GAC/CI,EAAMC,cAAA,OAAA,CAAAE,UAAU,6BAA6BN"}
|
package/dist/client/Tabs.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import e,{useState as t,useEffect as i}from"react";import{renderWithHelpIcon as a}from"./HelpIcon.js";const n=({label:n,id:l,info:c,sectionId:s,isActive:o,onClick:m})=>{const[r,d]=t(!1);i((()=>{d(o)}),[o]);return e.createElement("button",{className:"ui-tab-button "+(r?"ui-active-tab":""),key:l,onClick:()=>{d(!0),m(l)}},c?a(n,"question",c,`${s?s+"_":""}-${l}-info`):n)},l=({sectionId:a,tabs:l,width:c="full"})=>{const[s,o]=t(l[0].id),[m,r]=t(l[0]);i((()=>{const e=l.find((e=>e.id===s));r(e)}),[s]);const d=e=>{o(e)};return m&&e.createElement("div",{className:`w-${c}`},e.createElement("div",{className:"ui-tabs-container"},e.createElement("ul",{className:"ui-tab-list",role:"tablist"},l.map((t=>e.createElement("li",{className:"ui-tab-list-item",key:`li-${t.id}`},e.createElement(n,{key:`button-${t.id}`,label:t.label,sectionId:a,id:t.id,info:t.info,isActive:t.id===m.id,onClick:d}))))),e.createElement("div",{className:"ui-tab-panel",key:m.id},m.content)))};export{l as Tabs};
|
2
|
-
//# sourceMappingURL=Tabs.js.map
|
package/dist/client/Tabs.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Tabs.js","sources":["../../src/client/Tabs.tsx"],"sourcesContent":[null],"names":["TabButton","label","id","info","sectionId","isActive","onClick","isSelected","setIsSelected","useState","useEffect","React","createElement","className","key","renderWithHelpIcon","Tabs","tabs","width","selectedKey","setSelectedKey","activeTab","setActiveTab","selectedTab","find","tab","onTabSelect","tabId","role","map","content"],"mappings":"sGAuBA,MAAMA,EAAY,EAAGC,QAAOC,KAAIC,OAAMC,YAAWC,WAAUC,cACvD,MAAOC,EAAYC,GAAiBC,GAAkB,GAEtDC,GAAU,KACNF,EAAcH,EAAS,GACxB,CAACA,IAOJ,OACIM,EAAQC,cAAA,SAAA,CAAAC,UAAW,kBAAiBN,EAAa,gBAAkB,IAAMO,IAAKZ,EAAII,QANrE,KACbE,GAAc,GACdF,EAAQJ,EAAG,GAKNC,EACKY,EAAmBd,EAAO,WAAYE,EAAM,GAAGC,EAAYA,EAAY,IAAM,MAAMF,UACnFD,EACD,EAIJe,EAAO,EAAGZ,YAAWa,OAAMC,QAAQ,WAC5C,MAAOC,EAAaC,GAAkBX,EAAiBQ,EAAK,GAAGf,KACxDmB,EAAWC,GAAgBb,EAAiBQ,EAAK,IAExDP,GAAU,KACN,MAAMa,EAAcN,EAAKO,MAAMC,GAAQA,EAAIvB,KAAOiB,IAClDG,EAAaC,EAAa,GAC3B,CAACJ,IAEJ,MAAMO,EAAeC,IACjBP,EAAeO,EAAM,EAGzB,OACIN,GACIV,uBAAKE,UAAW,KAAKK,KACjBP,EAAKC,cAAA,MAAA,CAAAC,UAAU,qBACXF,EAAAC,cAAA,KAAA,CAAIC,UAAU,cAAce,KAAK,WAC5BX,EAAKY,KAAKJ,GACPd,EAAIC,cAAA,KAAA,CAAAC,UAAU,mBAAmBC,IAAK,MAAMW,EAAIvB,MAC5CS,EAACC,cAAAZ,GACGc,IAAK,UAAUW,EAAIvB,KACnBD,MAAOwB,EAAIxB,MACXG,UAAWA,EACXF,GAAIuB,EAAIvB,GACRC,KAAMsB,EAAItB,KACVE,SAAUoB,EAAIvB,KAAOmB,EAAUnB,GAC/BI,QAASoB,QAKzBf,EAAAC,cAAA,MAAA,CAAKC,UAAU,eAAeC,IAAKO,EAAUnB,IACxCmB,EAAUS,UAI1B"}
|
package/dist/client/Tooltip.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import t from"react";import{Tooltip as e}from"react-tooltip";function o({anchorId:o,content:n,children:a,place:r="top",variant:c="dark",openOnClick:l=!1}){const i="tooltip-"+o.replace(" ","_");return t.createElement(t.Fragment,null,t.createElement("div",{"data-tooltip-id":i,"data-tooltip-variant":c},a),t.createElement(e,{className:"font-normal text-xs",id:i,openOnClick:l,place:r},n))}const n=(e,n,a)=>t.createElement(o,{anchorId:e,content:a},n);export{o as Tooltip,n as renderTooltip};
|
2
|
-
//# sourceMappingURL=Tooltip.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sources":["../../src/client/Tooltip.tsx"],"sourcesContent":[null],"names":["Tooltip","anchorId","content","children","place","variant","openOnClick","friendlyAnchorId","replace","React","createElement","Fragment","ReactTooltip","className","id","renderTooltip","message"],"mappings":"6DAaM,SAAUA,GAAQC,SACpBA,EAAQC,QACRA,EAAOC,SACPA,EAAQC,MACRA,EAAQ,MAAKC,QACbA,EAAU,OAAMC,YAChBA,GAAc,IAEd,MAAMC,EAAmB,WAAaN,EAASO,QAAQ,IAAK,KAC5D,OACIC,EAAAC,cAAAD,EAAAE,SAAA,KACIF,EAAAC,cAAA,MAAA,CAAA,kBAAsBH,EAAgB,uBAAwBF,GACzDF,GAELM,EAACC,cAAAE,GAAaC,UAAU,sBAAsBC,GAAIP,EAAkBD,YAAaA,EAAaF,MAAOA,GAAQF,GAGzH,CAGa,MAAAa,EAAgB,CAACd,EAAkBE,EAAea,IACpDP,EAACC,cAAAV,EAAQ,CAAAC,SAAUA,EAAUC,QAASc,GAAUb"}
|
package/dist/client/index.d.ts
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
import React, { ReactNode } from 'react';
|
2
|
-
import { VariantType, PlacesType } from 'react-tooltip';
|
3
|
-
|
4
|
-
interface DropdownOption<T> {
|
5
|
-
value: T;
|
6
|
-
name: string;
|
7
|
-
}
|
8
|
-
interface DropdownProps<T> {
|
9
|
-
options: DropdownOption<T>[];
|
10
|
-
closeOnSelect: boolean;
|
11
|
-
onSelect: (option: T[]) => void;
|
12
|
-
}
|
13
|
-
declare const Dropdown: <T>({ options, closeOnSelect, onSelect }: DropdownProps<T>) => React.JSX.Element;
|
14
|
-
|
15
|
-
interface HelpIconProps {
|
16
|
-
anchorId: string;
|
17
|
-
message: ReactNode | string;
|
18
|
-
type: "question" | "info";
|
19
|
-
}
|
20
|
-
declare const HelpIcon: ({ anchorId, message, type }: HelpIconProps) => React.JSX.Element;
|
21
|
-
declare const renderHelpIcon: (anchorId: string, message: ReactNode | string, type?: "question" | "info") => React.JSX.Element;
|
22
|
-
declare const getIconElement: (key: string) => any;
|
23
|
-
declare const renderWithHelpIcon: (textElement: ReactNode | string, type: "question" | "info", message: string, anchorId: string) => React.JSX.Element;
|
24
|
-
|
25
|
-
interface TooltipProps {
|
26
|
-
anchorId: string;
|
27
|
-
content: string | ReactNode;
|
28
|
-
children: string | ReactNode;
|
29
|
-
variant?: VariantType;
|
30
|
-
place?: PlacesType;
|
31
|
-
openOnClick?: boolean;
|
32
|
-
}
|
33
|
-
declare function Tooltip({ anchorId, content, children, place, variant, openOnClick, }: TooltipProps): React.JSX.Element;
|
34
|
-
declare const renderTooltip: (anchorId: string, children: any, message: any) => React.JSX.Element;
|
35
|
-
|
36
|
-
interface TabDef {
|
37
|
-
label: string;
|
38
|
-
id: string;
|
39
|
-
info?: string;
|
40
|
-
content: ReactNode;
|
41
|
-
}
|
42
|
-
interface TabsProps {
|
43
|
-
sectionId?: string;
|
44
|
-
tabs: TabDef[];
|
45
|
-
width: string;
|
46
|
-
}
|
47
|
-
declare const Tabs: ({ sectionId, tabs, width }: TabsProps) => React.JSX.Element;
|
48
|
-
|
49
|
-
interface SliderProps {
|
50
|
-
name: string;
|
51
|
-
label?: string;
|
52
|
-
value: number;
|
53
|
-
min: number;
|
54
|
-
max: number;
|
55
|
-
step: number;
|
56
|
-
variant?: SliderVariants;
|
57
|
-
onChange: (v: number) => void;
|
58
|
-
}
|
59
|
-
type SliderVariants = "default" | "primary" | "secondary" | "accent";
|
60
|
-
declare const Slider: ({ variant, name, label, value, min, max, step, onChange }: SliderProps) => React.JSX.Element;
|
61
|
-
|
62
|
-
export { Dropdown, HelpIcon, Slider, Tabs, Tooltip, getIconElement, renderHelpIcon, renderTooltip, renderWithHelpIcon };
|
63
|
-
export type { DropdownOption, TabDef };
|
package/dist/client/index.js
DELETED
package/dist/client/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.d.ts
DELETED
@@ -1,100 +0,0 @@
|
|
1
|
-
import React, { ReactNode } from 'react';
|
2
|
-
|
3
|
-
type AlertVariants = "info" | "warning" | "danger" | "success" | "default";
|
4
|
-
interface Alert {
|
5
|
-
variant?: AlertVariants;
|
6
|
-
message: string;
|
7
|
-
children?: ReactNode | string;
|
8
|
-
}
|
9
|
-
declare const Alert: ({ variant, message, children }: Alert) => React.JSX.Element;
|
10
|
-
|
11
|
-
type ButtonVariants = "default" | "primary" | "secondary" | "white" | "accent";
|
12
|
-
type ButtonSizes = "sm" | "md" | "lg";
|
13
|
-
interface ButtonProps {
|
14
|
-
variant?: ButtonVariants;
|
15
|
-
size?: ButtonSizes;
|
16
|
-
children: ReactNode | string;
|
17
|
-
disabled?: boolean;
|
18
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void | null;
|
19
|
-
}
|
20
|
-
declare const Button: ({ variant, size, children, onClick, disabled }: ButtonProps) => React.JSX.Element;
|
21
|
-
|
22
|
-
interface CardBodyProps {
|
23
|
-
children: ReactNode | string;
|
24
|
-
}
|
25
|
-
interface CardHeaderProps {
|
26
|
-
children: ReactNode | string;
|
27
|
-
}
|
28
|
-
interface CardProps {
|
29
|
-
shadow?: boolean;
|
30
|
-
href?: string;
|
31
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void | null;
|
32
|
-
radius?: "none" | "sm" | "md" | "lg" | "xl";
|
33
|
-
children: ReactNode | string;
|
34
|
-
}
|
35
|
-
declare const CardBody: ({ children }: CardBodyProps) => React.JSX.Element;
|
36
|
-
declare const CardHeader: ({ children }: CardHeaderProps) => React.JSX.Element;
|
37
|
-
declare const Card: ({ shadow, radius, href, onClick, children }: CardProps) => React.JSX.Element;
|
38
|
-
|
39
|
-
type CheckboxVariants = "default" | "primary" | "secondary" | "pink" | "accent";
|
40
|
-
interface CheckboxProps {
|
41
|
-
variant?: CheckboxVariants;
|
42
|
-
name: string;
|
43
|
-
label?: string;
|
44
|
-
checked?: boolean;
|
45
|
-
value?: string;
|
46
|
-
defaultChecked?: boolean;
|
47
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void | null;
|
48
|
-
disabled?: boolean;
|
49
|
-
alignCenter?: boolean;
|
50
|
-
}
|
51
|
-
declare const Checkbox: ({ variant, name, value, label, onChange, disabled, checked, defaultChecked, alignCenter, }: CheckboxProps) => React.JSX.Element;
|
52
|
-
|
53
|
-
interface MenuItemConfig {
|
54
|
-
label: string;
|
55
|
-
target?: React.HTMLAttributeAnchorTarget;
|
56
|
-
href: string;
|
57
|
-
}
|
58
|
-
interface BrandItemConfig extends MenuItemConfig {
|
59
|
-
logo?: ReactNode;
|
60
|
-
}
|
61
|
-
interface NavigationConfig {
|
62
|
-
brand: BrandItemConfig;
|
63
|
-
variant?: "primary" | "secondary" | "light" | "dark";
|
64
|
-
items: MenuItemConfig[];
|
65
|
-
publicHostUrl?: string;
|
66
|
-
}
|
67
|
-
declare const Navigation: ({ variant, items, brand, publicHostUrl }: NavigationConfig) => React.JSX.Element;
|
68
|
-
|
69
|
-
declare const RadioButton: ({ variant, label, onChange, disabled, checked, alignCenter, }: CheckboxProps) => React.JSX.Element;
|
70
|
-
|
71
|
-
type SkeletonTypes = "default" | "card" | "table";
|
72
|
-
interface SkeletonProps {
|
73
|
-
type: SkeletonTypes;
|
74
|
-
}
|
75
|
-
declare const Skeleton: ({ type }: SkeletonProps) => React.JSX.Element;
|
76
|
-
|
77
|
-
interface SelectProps {
|
78
|
-
fields: string[] | {
|
79
|
-
[key: string]: string;
|
80
|
-
} | number[];
|
81
|
-
id: string;
|
82
|
-
name?: string;
|
83
|
-
label?: string;
|
84
|
-
defaultValue?: string;
|
85
|
-
inline?: boolean;
|
86
|
-
onChange?: React.ChangeEventHandler<HTMLSelectElement>;
|
87
|
-
variant?: "outline" | "underline" | "plain";
|
88
|
-
}
|
89
|
-
declare const Select: ({ fields, id, label, name, defaultValue, inline, onChange, variant, }: SelectProps) => React.JSX.Element;
|
90
|
-
|
91
|
-
interface TextInputProps {
|
92
|
-
value: string;
|
93
|
-
onChange: (val: string) => void;
|
94
|
-
placeholder?: string;
|
95
|
-
label?: string;
|
96
|
-
}
|
97
|
-
declare const TextInput: ({ value, onChange, placeholder }: TextInputProps) => React.JSX.Element;
|
98
|
-
|
99
|
-
export { Alert, Button, Card, CardBody, CardHeader, Checkbox, Navigation, RadioButton, Select, Skeleton, TextInput };
|
100
|
-
export type { CheckboxProps, CheckboxVariants, MenuItemConfig, NavigationConfig };
|
package/dist/index.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
export{Alert}from"./Alert.js";export{Button}from"./Button.js";export{Card,CardBody,CardHeader}from"./Card.js";export{Checkbox}from"./Checkbox.js";export{Navigation}from"./Navigation.js";export{RadioButton}from"./RadioButton.js";export{Skeleton}from"./Skeleton.js";export{Select}from"./Select.js";export{TextInput}from"./TextInput.js";
|
2
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import e from"react";import{Navigation as t}from"../Navigation.js";function a({children:a,navConfig:l,fullWidth:n=!1}){return e.createElement("html",{lang:"en"},e.createElement("body",null,e.createElement("div",{className:"min-h-full"},e.createElement("header",{className:"bg-white shadow-sm"},e.createElement(t,Object.assign({},l))),e.createElement("main",{className:"mt-[60px] p-2"},e.createElement("div",{className:"ui-container "+(n?"full":"")},a)))))}export{a as RootLayout};
|
2
|
-
//# sourceMappingURL=RootLayout.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RootLayout.js","sources":["../../src/layouts/RootLayout.tsx"],"sourcesContent":[null],"names":["RootLayout","children","navConfig","fullWidth","React","createElement","lang","className","Navigation","Object","assign"],"mappings":"mEAQM,SAAUA,GAAWC,SAAEA,EAAQC,UAAEA,EAASC,UAAEA,GAAU,IACxD,OACIC,EAAAC,cAAA,OAAA,CAAMC,KAAK,MACPF,EAAAC,cAAA,OAAA,KACID,EAAKC,cAAA,MAAA,CAAAE,UAAU,cACXH,EAAQC,cAAA,SAAA,CAAAE,UAAU,sBACdH,EAAAC,cAACG,EAAUC,OAAAC,OAAA,CAAA,EAAKR,KAEpBE,EAAMC,cAAA,OAAA,CAAAE,UAAU,iBACZH,EAAKC,cAAA,MAAA,CAAAE,UAAW,iBAAgBJ,EAAY,OAAS,KAAOF,MAMpF"}
|
package/dist/layouts/index.d.ts
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
import React, { ReactNode } from 'react';
|
2
|
-
|
3
|
-
interface MenuItemConfig {
|
4
|
-
label: string;
|
5
|
-
target?: React.HTMLAttributeAnchorTarget;
|
6
|
-
href: string;
|
7
|
-
}
|
8
|
-
interface BrandItemConfig extends MenuItemConfig {
|
9
|
-
logo?: ReactNode;
|
10
|
-
}
|
11
|
-
interface NavigationConfig {
|
12
|
-
brand: BrandItemConfig;
|
13
|
-
variant?: "primary" | "secondary" | "light" | "dark";
|
14
|
-
items: MenuItemConfig[];
|
15
|
-
publicHostUrl?: string;
|
16
|
-
}
|
17
|
-
|
18
|
-
interface LayoutProps {
|
19
|
-
children: ReactNode;
|
20
|
-
}
|
21
|
-
interface RootLayoutProps extends LayoutProps {
|
22
|
-
navConfig: NavigationConfig;
|
23
|
-
fullWidth?: boolean;
|
24
|
-
}
|
25
|
-
|
26
|
-
declare function RootLayout({ children, navConfig, fullWidth }: RootLayoutProps): React.JSX.Element;
|
27
|
-
|
28
|
-
export { RootLayout };
|
package/dist/layouts/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|