@aleleba/ro-ut-ui 2.0.10 → 2.1.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/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Copyright 2011-2022 The Bootstrap Authors
|
|
11
11
|
* Copyright 2011-2022 Twitter, Inc.
|
|
12
12
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
13
|
-
*/.btn{border-radius:34px;min-width:120px;opacity:1;padding:5px 10px}.btn-green-main,.btn-green-main:active,.btn-green-main:focus,.btn-green-main:hover,.btn-outline-green-main:active,.btn-outline-green-main:focus,.btn-outline-green-main:hover{color:#fff}.btn-gray-main,.btn-gray-main:active,.btn-gray-main:focus,.btn-gray-main:hover,.btn-outline-gray-main:active,.btn-outline-gray-main:focus,.btn-outline-gray-main:hover{color:#716f6f}.border-soft{border-radius:5px 5px 5px 5px}.border-hard{border-radius:29px 29px 29px 29px}
|
|
13
|
+
*/.btn{border-radius:34px;min-width:120px;opacity:1;padding:5px 10px}.btn-border-hard{border-radius:50px!important}.btn-green-main,.btn-green-main:active,.btn-green-main:focus,.btn-green-main:hover,.btn-outline-green-main:active,.btn-outline-green-main:focus,.btn-outline-green-main:hover{color:#fff}.btn-gray-main,.btn-gray-main:active,.btn-gray-main:focus,.btn-gray-main:hover,.btn-outline-gray-main:active,.btn-outline-gray-main:focus,.btn-outline-gray-main:hover{color:#716f6f}.border-soft{border-radius:5px 5px 5px 5px}.border-hard{border-radius:29px 29px 29px 29px}
|
|
14
14
|
/*!
|
|
15
15
|
* Bootstrap v5.2.0 (https://getbootstrap.com/)
|
|
16
16
|
* Copyright 2011-2022 The Bootstrap Authors
|
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:()=>
|
|
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})()));
|