@aleleba/ro-ut-ui 2.1.9 → 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -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["@aleleba/ro-ut-ui"]=r():e["@aleleba/ro-ut-ui"]=r()}(this,(()=>(()=>{"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,{BorderCard:()=>d,Button:()=>o,ButtonThemes:()=>n,Card:()=>c,CardThemes:()=>u,FontWeight:()=>h,Input:()=>m,InputThemes:()=>s,getBorderCard:()=>f,getButtonThemeClass:()=>l,getCardThemeClass:()=>y,getInputThemeClass:()=>p});const t=require("react");var n,a=e.n(t),i=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.filter((function(e){return e})).join(" ")},o=function(e){var r=e.children,t=void 0===r?"":r,o=e.className,u=void 0===o?"":o,d=e.theme,c=void 0===d?n.primary:d,s=e.hardBorder,y=void 0!==s&&s,f=e.onClick,m=i("btn",l({theme:c}),y?"btn-border-hard":"",u);return a().createElement("button",{className:m,onClick:f},t)};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary",e.primaryOutline="primaryOutline",e.secondaryOutline="secondaryOutline",e.tertiaryOutline="tertiaryOutline",e.quaternaryOutline="quaternaryOutline",e.quinaryOutline="quinaryOutline"}(n||(n={}));var u,d,l=function(e){switch(e.theme){case"primary":return"btn-purple-main";case"secondary":return"btn-green-main";case"tertiary":return"btn-white";case"quaternary":return"btn-purple-dark";case"quinary":return"btn-gray-main";case"primaryOutline":return"btn-outline-purple-main";case"secondaryOutline":return"btn-outline-green-main";case"tertiaryOutline":return"btn-outline-white";case"quaternaryOutline":return"btn-outline-purple-dark";case"quinaryOutline":return"btn-outline-gray-main";default:return""}},c=function(e){var r=e.children,t=void 0===r?"":r,n=e.className,o=void 0===n?"":n,l=e.theme,c=void 0===l?u.primary:l,s=e.border,m=void 0===s?d.soft:s,h=i("card",y({theme:c}),f({border:m}),o);return a().createElement("div",{className:h},t)};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary"}(u||(u={})),function(e){e.soft="soft",e.hard="hard"}(d||(d={}));var s,y=function(e){switch(e.theme){case"primary":return"bg-white text-black";case"secondary":return"bg-mid-blue text-white";case"tertiary":return"bg-light-blue text-white";case"quaternary":return"bg-dark-blue text-white";default:return""}},f=function(e){switch(e.border){case"soft":return"border-soft";case"hard":return"border-hard";default:return""}},m=function(e){var r=e.className,t=void 0===r?"":r,n=e.type,o=void 0===n?"text":n,u=e.theme,d=void 0===u?s.primary:u,l=e.placeholder,c=void 0===l?"":l,y=e.hardBorder,f=void 0!==y&&y,m=e.fontWeight,b=void 0===m?h.fwLight:m,g=e.onChange,v=void 0===g?function(e){console.log(e)}:g,w=i("form-control",p({theme:d}),b,f?"input-border-hard":"",t);return a().createElement("input",{className:w,placeholder:c,type:o,onChange:v})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(s||(s={}));var h,p=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return"input-secondary";case"tertiary":return"input-tertiary"}};return function(e){e.fwBold="fw-bold",e.fwBolder="fw-bolder",e.fwSemiBold="fw-semibold",e.fwNormal="fw-normal",e.fwLight="fw-light",e.fwLighter="fw-lighter",e.fstItalic="fst-italic",e.fstNormal="fst-normal"}(h||(h={})),r})()));
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["@aleleba/ro-ut-ui"]=r():e["@aleleba/ro-ut-ui"]=r()}(this,(()=>(()=>{"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,{BorderCard:()=>l,Button:()=>u,ButtonThemes:()=>n,ButtonTypes:()=>a,Card:()=>s,CardThemes:()=>d,FontWeight:()=>h,Input:()=>p,InputThemes:()=>y,getBorderCard:()=>m,getButtonThemeClass:()=>c,getCardThemeClass:()=>f,getInputThemeClass:()=>b});const t=require("react");var n,a,i=e.n(t),o=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.filter((function(e){return e})).join(" ")},u=function(e){var r=e.id,t=void 0===r?"":r,u=e.children,d=void 0===u?"":u,l=e.className,s=void 0===l?"":l,y=e.theme,f=void 0===y?n.primary:y,m=e.hardBorder,p=void 0!==m&&m,h=e.type,b=void 0===h?a.button:h,v=e.onClick,g=o("btn",c({theme:f}),p?"btn-border-hard":"",s);return i().createElement("button",{id:t,className:g,type:b,onClick:v},d)};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary",e.primaryOutline="primaryOutline",e.secondaryOutline="secondaryOutline",e.tertiaryOutline="tertiaryOutline",e.quaternaryOutline="quaternaryOutline",e.quinaryOutline="quinaryOutline"}(n||(n={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(a||(a={}));var d,l,c=function(e){switch(e.theme){case"primary":return"btn-purple-main";case"secondary":return"btn-green-main";case"tertiary":return"btn-white";case"quaternary":return"btn-purple-dark";case"quinary":return"btn-gray-main";case"primaryOutline":return"btn-outline-purple-main";case"secondaryOutline":return"btn-outline-green-main";case"tertiaryOutline":return"btn-outline-white";case"quaternaryOutline":return"btn-outline-purple-dark";case"quinaryOutline":return"btn-outline-gray-main";default:return""}},s=function(e){var r=e.children,t=void 0===r?"":r,n=e.className,a=void 0===n?"":n,u=e.theme,c=void 0===u?d.primary:u,s=e.border,y=void 0===s?l.soft:s,p=o("card",f({theme:c}),m({border:y}),a);return i().createElement("div",{className:p},t)};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary"}(d||(d={})),function(e){e.soft="soft",e.hard="hard"}(l||(l={}));var y,f=function(e){switch(e.theme){case"primary":return"bg-white text-black";case"secondary":return"bg-mid-blue text-white";case"tertiary":return"bg-light-blue text-white";case"quaternary":return"bg-dark-blue text-white";default:return""}},m=function(e){switch(e.border){case"soft":return"border-soft";case"hard":return"border-hard";default:return""}},p=function(e){var r=e.id,t=void 0===r?"":r,n=e.className,a=void 0===n?"":n,u=e.type,d=void 0===u?"text":u,l=e.theme,c=void 0===l?y.primary:l,s=e.placeholder,f=void 0===s?"":s,m=e.hardBorder,p=void 0!==m&&m,v=e.fontWeight,g=void 0===v?h.fwLight:v,w=e.onChange,O=void 0===w?function(e){console.log(e)}:w,q=o("form-control",b({theme:c}),g,p?"input-border-hard":"",a);return i().createElement("input",{id:t,className:q,placeholder:f,type:d,onChange:O})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(y||(y={}));var h,b=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return"input-secondary";case"tertiary":return"input-tertiary"}};return function(e){e.fwBold="fw-bold",e.fwBolder="fw-bolder",e.fwSemiBold="fw-semibold",e.fwNormal="fw-normal",e.fwLight="fw-light",e.fwLighter="fw-lighter",e.fstItalic="fst-italic",e.fstNormal="fst-normal"}(h||(h={})),r})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleleba/ro-ut-ui",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "UI Component for Ro-ut App",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {