colibri-ui 0.0.1 → 0.2.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/Button/index.js +1 -40
- package/Button/styles.js +1 -44
- package/README.md +9 -0
- package/Theme/breakpoints.js +1 -38
- package/Theme/color.js +1 -36
- package/Theme/global.js +1 -14
- package/Theme/index.js +1 -25
- package/Theme/themes/buenos_aires.js +1 -42
- package/Theme/themes/default.js +1 -41
- package/esm/Button/index.js +1 -36
- package/esm/Button/styles.js +1 -41
- package/esm/Theme/breakpoints.js +1 -34
- package/esm/Theme/color.js +1 -32
- package/esm/Theme/global.js +1 -10
- package/esm/Theme/index.js +1 -22
- package/esm/Theme/themes/buenos_aires.js +1 -39
- package/esm/Theme/themes/default.js +1 -38
- package/esm/index.js +1 -2
- package/index.js +1 -10
- package/package.json +2 -1
- package/_virtual/_commonjsHelpers.js +0 -46
- package/_virtual/index.js +0 -5
- package/_virtual/index2.js +0 -9
- package/_virtual/index3.js +0 -9
- package/_virtual/index4.js +0 -5
- package/_virtual/jsx-runtime.js +0 -5
- package/_virtual/package.json +0 -6
- package/_virtual/react-is.development.js +0 -5
- package/_virtual/react-is.production.min.js +0 -5
- package/_virtual/react-jsx-runtime.development.js +0 -5
- package/_virtual/react-jsx-runtime.production.min.js +0 -5
- package/_virtual/react.development.js +0 -5
- package/_virtual/react.production.min.js +0 -5
- package/esm/_virtual/_commonjsHelpers.js +0 -40
- package/esm/_virtual/index.js +0 -3
- package/esm/_virtual/index2.js +0 -1
- package/esm/_virtual/index3.js +0 -1
- package/esm/_virtual/index4.js +0 -3
- package/esm/_virtual/jsx-runtime.js +0 -3
- package/esm/_virtual/react-is.development.js +0 -3
- package/esm/_virtual/react-is.production.min.js +0 -3
- package/esm/_virtual/react-jsx-runtime.development.js +0 -3
- package/esm/_virtual/react-jsx-runtime.production.min.js +0 -3
- package/esm/_virtual/react.development.js +0 -3
- package/esm/_virtual/react.production.min.js +0 -3
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -588
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -44
- package/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +0 -12
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/esm/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js +0 -11
- package/esm/node_modules/@emotion/react/dist/emotion-element-c16c303e.esm.js +0 -233
- package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -390
- package/esm/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +0 -27
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -265
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -132
- package/esm/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +0 -162
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -51
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -12
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -49
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -15
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -97
- package/esm/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1147
- package/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -56
- package/esm/node_modules/react/cjs/react.development.js +0 -2402
- package/esm/node_modules/react/cjs/react.production.min.js +0 -354
- package/esm/node_modules/react/index.js +0 -16
- package/esm/node_modules/react/jsx-runtime.js +0 -16
- package/esm/node_modules/react-is/cjs/react-is.development.js +0 -170
- package/esm/node_modules/react-is/cjs/react-is.production.min.js +0 -119
- package/esm/node_modules/react-is/index.js +0 -16
- package/esm/node_modules/stylis/index.js +0 -7
- package/esm/node_modules/stylis/src/Enum.js +0 -21
- package/esm/node_modules/stylis/src/Middleware.js +0 -113
- package/esm/node_modules/stylis/src/Parser.js +0 -184
- package/esm/node_modules/stylis/src/Prefixer.js +0 -197
- package/esm/node_modules/stylis/src/Serializer.js +0 -40
- package/esm/node_modules/stylis/src/Tokenizer.js +0 -252
- package/esm/node_modules/stylis/src/Utility.js +0 -117
- package/esm/node_modules/tslib/tslib.es6.js +0 -525
package/Button/index.js
CHANGED
|
@@ -1,40 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib_es6 = require('../node_modules/tslib/tslib.es6.js');
|
|
6
|
-
var emotionReactJsxRuntime_esm = require('../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js');
|
|
7
|
-
var index = require('../node_modules/react/index.js');
|
|
8
|
-
var styles = require('./styles.js');
|
|
9
|
-
|
|
10
|
-
var Button = /*#__PURE__*/index.reactExports.forwardRef(function (_a, ref) {
|
|
11
|
-
var className = _a.className,
|
|
12
|
-
_b = _a.fullWidth,
|
|
13
|
-
fullWidth = _b === void 0 ? false : _b,
|
|
14
|
-
_c = _a.variant,
|
|
15
|
-
variant = _c === void 0 ? "primary" : _c,
|
|
16
|
-
iconStart = _a.iconStart,
|
|
17
|
-
iconEnd = _a.iconEnd,
|
|
18
|
-
icon = _a.icon,
|
|
19
|
-
children = _a.children,
|
|
20
|
-
onClick = _a.onClick,
|
|
21
|
-
props = tslib_es6.__rest(_a, ["className", "fullWidth", "variant", "iconStart", "iconEnd", "icon", "children", "onClick"]);
|
|
22
|
-
return emotionReactJsxRuntime_esm.jsxs(styles.StyledButton, tslib_es6.__assign({
|
|
23
|
-
onClick: onClick,
|
|
24
|
-
ref: ref,
|
|
25
|
-
className: className,
|
|
26
|
-
variant: variant,
|
|
27
|
-
icon: icon,
|
|
28
|
-
fullWidth: fullWidth
|
|
29
|
-
}, props, {
|
|
30
|
-
children: [icon && emotionReactJsxRuntime_esm.jsx(styles.StyledIcon, {
|
|
31
|
-
children: icon
|
|
32
|
-
}), iconStart && emotionReactJsxRuntime_esm.jsx(styles.StyledIcon, {
|
|
33
|
-
children: iconStart
|
|
34
|
-
}), children && children, iconEnd && emotionReactJsxRuntime_esm.jsx(styles.StyledIcon, {
|
|
35
|
-
children: iconEnd
|
|
36
|
-
})]
|
|
37
|
-
}));
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
exports.default = Button;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("/home/sergey/Documents/ColibriUI/node_modules/tslib/tslib.es6.js"),i=require("@emotion/react/jsx-runtime"),r=require("react"),n=require("./styles.js"),t=r.forwardRef((function(r,t){var l=r.className,s=r.fullWidth,o=void 0!==s&&s,c=r.variant,a=void 0===c?"primary":c,d=r.iconStart,u=r.iconEnd,h=r.icon,f=r.children,m=r.onClick,j=e.__rest(r,["className","fullWidth","variant","iconStart","iconEnd","icon","children","onClick"]);return i.jsxs(n.StyledButton,e.__assign({onClick:m,ref:t,className:l,variant:a,icon:h,fullWidth:o},j,{children:[h&&i.jsx(n.StyledIcon,{children:h}),d&&i.jsx(n.StyledIcon,{children:d}),f&&f,u&&i.jsx(n.StyledIcon,{children:u})]}))}));exports.default=t;
|