@zonos/amino 5.2.6 → 5.2.7

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.
@@ -6,10 +6,18 @@ export type FlexProps = BaseProps & {
6
6
  */
7
7
  alignItems?: CSSProperties['alignItems'];
8
8
  children: ReactNode;
9
+ /**
10
+ * @default 'initial'
11
+ * @description This is a shorthand for flex-grow, flex-shrink, and flex-basis.
12
+ */
13
+ childrenFlex?: 'auto' | '1 0' | '0 1' | 'initial' | 'inherit' | 'unset' | (string & {
14
+ _?: never;
15
+ });
9
16
  /**
10
17
  * @default 'row'
11
18
  */
12
19
  flexDirection?: CSSProperties['flexDirection'];
20
+ flexWrap?: CSSProperties['flexWrap'];
13
21
  /**
14
22
  * @default 8
15
23
  */
@@ -18,6 +26,9 @@ export type FlexProps = BaseProps & {
18
26
  * @default 'flex-start'
19
27
  */
20
28
  justifyContent?: CSSProperties['justifyContent'];
29
+ /**
30
+ * @default 0
31
+ */
21
32
  padding?: number;
22
33
  };
23
- export declare const Flex: ({ alignItems, children, className, flexDirection, gap, justifyContent, padding, style, }: FlexProps) => import("react/jsx-runtime").JSX.Element;
34
+ export declare const Flex: ({ alignItems, children, childrenFlex, className, flexDirection, flexWrap, gap, justifyContent, padding, style, }: FlexProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-bd4862e8.js"),r=require("react/jsx-runtime"),a=require("clsx"),i=require("../../style-inject.es-d4ddeae4.js");function d(e){return e&&e.__esModule?e:{default:e}}var s=d(a),t="Amino_Flex-module__flexWrapper--RLOkf";i.styleInject(".Amino_Flex-module__flexWrapper--RLOkf{align-items:var(--dashboard-flex-wrapper-align-items);display:flex;flex-direction:var(--dashboard-flex-wrapper-flex-direction);gap:var(--dashboard-flex-wrapper-gap);justify-content:var(--dashboard-flex-wrapper-justify-content);padding:var(--dashboard-flex-wrapper-padding)}");exports.Flex=function(a){var i=a.alignItems,d=void 0===i?"stretch":i,l=a.children,n=a.className,p=a.flexDirection,o=void 0===p?"row":p,f=a.gap,x=void 0===f?8:f,c=a.justifyContent,u=void 0===c?"flex-start":c,g=a.padding,h=a.style;return r.jsx("div",{className:s.default(n,t),style:e.__assign(e.__assign({},h),{"--dashboard-flex-wrapper-align-items":d,"--dashboard-flex-wrapper-flex-direction":o,"--dashboard-flex-wrapper-gap":"".concat(x,"px"),"--dashboard-flex-wrapper-justify-content":u,"--dashboard-flex-wrapper-padding":"".concat(g||0,"px")}),children:l})};
1
+ "use strict";var e=require("../../_tslib-bd4862e8.js"),r=require("react/jsx-runtime"),a=require("clsx"),l=require("../../style-inject.es-d4ddeae4.js");function d(e){return e&&e.__esModule?e:{default:e}}var i=d(a),p="Amino_Flex-module__flexWrapper--RLOkf";l.styleInject(".Amino_Flex-module__flexWrapper--RLOkf{align-items:var(--dashboard-flex-wrapper-align-items);display:flex;flex-direction:var(--dashboard-flex-wrapper-flex-direction);flex-wrap:var(--dashboard-flex-wrapper-flex-wrap);gap:var(--dashboard-flex-wrapper-gap);justify-content:var(--dashboard-flex-wrapper-justify-content);padding:var(--dashboard-flex-wrapper-padding)}.Amino_Flex-module__flexWrapper--RLOkf>*{flex:var(--dashboard-flex-wrapper-flex-children)}");exports.Flex=function(a){var l=a.alignItems,d=void 0===l?"stretch":l,s=a.children,t=a.childrenFlex,n=void 0===t?"initial":t,o=a.className,f=a.flexDirection,x=void 0===f?"row":f,c=a.flexWrap,h=void 0===c?"nowrap":c,u=a.gap,w=void 0===u?8:u,v=a.justifyContent,_=void 0===v?"flex-start":v,b=a.padding,g=void 0===b?0:b,m=a.style;return r.jsx("div",{className:i.default(o,p),style:e.__assign(e.__assign({},m),{"--dashboard-flex-wrapper-align-items":d,"--dashboard-flex-wrapper-flex-children":n,"--dashboard-flex-wrapper-flex-direction":x,"--dashboard-flex-wrapper-flex-wrap":h,"--dashboard-flex-wrapper-gap":"".concat(w,"px"),"--dashboard-flex-wrapper-justify-content":_,"--dashboard-flex-wrapper-padding":"".concat(g,"px")}),children:s})};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",