@zonos/amino 5.2.21 → 5.2.22
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/all.d.ts
CHANGED
|
@@ -59,7 +59,6 @@ import './components/menu/MenuItem';
|
|
|
59
59
|
import './components/nested-data-table/NestedDataTable';
|
|
60
60
|
import './components/nested-data-table/NestedDataTableHasura';
|
|
61
61
|
import './components/pivot-table/PivotTable';
|
|
62
|
-
import './components/profile-icon/ProfileIcon';
|
|
63
62
|
import './components/progress-bar/ProgressBar';
|
|
64
63
|
import './components/radio/Radio';
|
|
65
64
|
import './components/radio/RadioGroup';
|
|
@@ -18,6 +18,14 @@ export type FlexProps = BaseProps & {
|
|
|
18
18
|
*/
|
|
19
19
|
flexDirection?: CSSProperties['flexDirection'];
|
|
20
20
|
flexWrap?: CSSProperties['flexWrap'];
|
|
21
|
+
/**
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
fullHeight?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
fullWidth?: boolean;
|
|
21
29
|
/**
|
|
22
30
|
* @default 8
|
|
23
31
|
*/
|
|
@@ -31,4 +39,4 @@ export type FlexProps = BaseProps & {
|
|
|
31
39
|
*/
|
|
32
40
|
padding?: number;
|
|
33
41
|
};
|
|
34
|
-
export declare const Flex: ({ alignItems, children, childrenFlex, className, flexDirection, flexWrap, gap, justifyContent, padding, style, }: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare const Flex: ({ alignItems, children, childrenFlex, className, flexDirection, flexWrap, fullHeight, fullWidth, gap, justifyContent, padding, style, }: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
package/components/flex/Flex.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-bd4862e8.js"),
|
|
1
|
+
"use strict";var e=require("../../_tslib-bd4862e8.js"),i=require("react/jsx-runtime"),l=require("clsx"),r=require("../../style-inject.es-d4ddeae4.js");function a(e){return e&&e.__esModule?e:{default:e}}var n=a(l),o="Amino_Flex-module__flexWrapper--RLOkf",p="Amino_Flex-module__fullWidth--qdBi7",t="Amino_Flex-module__fullHeight--h1TZi";r.styleInject(".Amino_Flex-module__flexWrapper--RLOkf{align-items:var(--amino-flex-wrapper-align-items);display:flex;flex-direction:var(--amino-flex-wrapper-flex-direction);flex-wrap:var(--amino-flex-wrapper-flex-wrap);gap:var(--amino-flex-wrapper-gap);justify-content:var(--amino-flex-wrapper-justify-content);padding:var(--amino-flex-wrapper-padding)}.Amino_Flex-module__flexWrapper--RLOkf>*{flex:var(--amino-flex-wrapper-flex-children)}.Amino_Flex-module__flexWrapper--RLOkf.Amino_Flex-module__fullWidth--qdBi7{width:100%}.Amino_Flex-module__flexWrapper--RLOkf.Amino_Flex-module__fullHeight--h1TZi{height:100%}");exports.Flex=function(l){var r=l.alignItems,a=void 0===r?"stretch":r,f=l.children,x=l.childrenFlex,d=void 0===x?"initial":x,m=l.className,s=l.flexDirection,_=void 0===s?"row":s,u=l.flexWrap,c=void 0===u?"nowrap":u,v=l.fullHeight,w=void 0!==v&&v,g=l.fullWidth,h=void 0!==g&&g,F=l.gap,j=void 0===F?8:F,y=l.justifyContent,A=void 0===y?"flex-start":y,W=l.padding,q=void 0===W?0:W,k=l.style;return i.jsx("div",{className:n.default(m,o,h&&p,w&&t),style:e.__assign(e.__assign({},k),{"--amino-flex-wrapper-align-items":a,"--amino-flex-wrapper-flex-children":d,"--amino-flex-wrapper-flex-direction":_,"--amino-flex-wrapper-flex-wrap":c,"--amino-flex-wrapper-gap":"".concat(j,"px"),"--amino-flex-wrapper-justify-content":A,"--amino-flex-wrapper-padding":"".concat(q,"px")}),children:f})};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zonos/amino",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.22",
|
|
4
4
|
"description": "Core UI components for Amino",
|
|
5
5
|
"repository": "git@github.com:Zonos/amino.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"d3-geo": "^2.0.2",
|
|
26
26
|
"fuse.js": "^6.6.2",
|
|
27
27
|
"pretty-bytes": "^6.1.0",
|
|
28
|
-
"react-awesome-gravatar": "^2.0.3",
|
|
29
28
|
"react-data-grid": "7.0.0-beta.34",
|
|
30
29
|
"react-dropzone": "^12.1.0",
|
|
31
30
|
"react-select": "^5.7.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react-awesome-gravatar"),a=require("../avatar/UserAvatar.js"),i=require("../../style-inject.es-d4ddeae4.js");require("../avatar/AvatarBase.js"),require("../../_tslib-bd4862e8.js"),require("clsx"),require("../../styles/constants/theme.js");var t="Amino_ProfileIcon-module__avatar--4N7uA";i.styleInject(".Amino_ProfileIcon-module__avatar--4N7uA{border-radius:50%;cursor:pointer;height:auto;max-width:var(--amino-profile-icon-max-width);overflow:hidden;width:100%}");exports.ProfileIcon=function(i){var s=i.email,o=i.size,l=void 0===o?32:o,n={default:"mp",size:l},u=s&&r.getGravatarUrl(s,n);return u?e.jsx("img",{alt:"Profile",className:t,src:u,style:{"--amino-profile-icon-max-width":"".concat(l,"px")}}):e.jsx(a.UserAvatar,{size:l})};
|