@aleleba/ro-ut-ui 2.0.9 → 2.1.1
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 +8 -8
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})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleleba/ro-ut-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "UI Component for Ro-ut App",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/aleleba/create-react-component-library#readme",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@babel/core": "^7.18.
|
|
34
|
+
"@babel/core": "^7.18.13",
|
|
35
35
|
"@babel/preset-env": "^7.18.10",
|
|
36
36
|
"@babel/preset-react": "^7.18.6",
|
|
37
37
|
"@babel/preset-typescript": "^7.18.6",
|
|
38
38
|
"@babel/register": "^7.18.9",
|
|
39
|
-
"@mdx-js/react": "^2.1.
|
|
39
|
+
"@mdx-js/react": "^2.1.3",
|
|
40
40
|
"@storybook/addon-actions": "^6.5.10",
|
|
41
41
|
"@storybook/addon-essentials": "^6.5.10",
|
|
42
42
|
"@storybook/addon-interactions": "^6.5.10",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@testing-library/jest-dom": "^5.16.5",
|
|
52
52
|
"@testing-library/react": "^13.3.0",
|
|
53
53
|
"@testing-library/user-event": "^14.4.3",
|
|
54
|
-
"@types/jest": "^28.1.
|
|
55
|
-
"@types/node": "^18.
|
|
54
|
+
"@types/jest": "^28.1.7",
|
|
55
|
+
"@types/node": "^18.7.11",
|
|
56
56
|
"@types/react": "^18.0.17",
|
|
57
57
|
"@types/react-dom": "^18.0.6",
|
|
58
58
|
"@types/webpack": "^5.28.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"css-loader": "^6.7.1",
|
|
63
63
|
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
64
64
|
"dotenv": "^16.0.1",
|
|
65
|
-
"eslint": "^8.
|
|
65
|
+
"eslint": "^8.22.0",
|
|
66
66
|
"eslint-plugin-react": "^7.30.1",
|
|
67
67
|
"eslint-plugin-storybook": "^0.6.4",
|
|
68
68
|
"eslint-webpack-plugin": "^3.2.0",
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"mini-css-extract-plugin": "^2.6.1",
|
|
74
74
|
"react": "^18.2.0",
|
|
75
75
|
"react-dom": "^18.2.0",
|
|
76
|
-
"sass": "^1.54.
|
|
76
|
+
"sass": "^1.54.5",
|
|
77
77
|
"sass-loader": "^13.0.2",
|
|
78
78
|
"style-loader": "^3.3.1",
|
|
79
|
-
"terser-webpack-plugin": "^5.3.
|
|
79
|
+
"terser-webpack-plugin": "^5.3.5",
|
|
80
80
|
"ts-loader": "^9.3.1",
|
|
81
81
|
"tsconfig-paths-webpack-plugin": "^4.0.0",
|
|
82
82
|
"typescript": "^4.7.4",
|