@zonos/amino 6.0.0-alpha.5 → 6.0.0-alpha.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.
@@ -1 +1 @@
1
- "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),i=require("../../tslib.es6-cdc5f922.js"),l=require("../../utils/cn.js"),r=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.Flex=function(t){var n=t.alignItems,a=void 0===n?"stretch":n,s=t.children,d=t.childrenFlex,c=void 0===d?"initial":d,o=t.className,f=t.flexDirection,u=void 0===f?"row":f,x=t.flexWrap,p=void 0===x?"nowrap":x,g=t.fullHeight,h=void 0!==g&&g,v=t.fullWidth,j=void 0!==v&&v,m=t.gap,_=void 0===m?8:m,q=t.justifyContent,w=void 0===q?"flex-start":q,y=t.padding,W=void 0===y?0:y,b=t.style,C=i.__rest(t,["alignItems","children","childrenFlex","className","flexDirection","flexWrap","fullHeight","fullWidth","gap","justifyContent","padding","style"]);return r.jsx("div",e._objectSpread2(e._objectSpread2({},C),{},{className:l.cn("flex [&>*]:flex-[var(--amino-flex-wrapper-flex-children)]",j&&"w-full",h&&"h-full",o),style:i.__assign(i.__assign({},b),{"--amino-flex-wrapper-flex-children":c,alignItems:a,flexDirection:u,flexWrap:p,gap:"".concat(_,"px"),justifyContent:w,padding:"".concat(W,"px")}),children:s}))};
1
+ "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),i=require("../../tslib.es6-cdc5f922.js"),l=require("../../utils/cn.js"),r=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.Flex=function(t){var n=t.alignItems,a=void 0===n?"stretch":n,s=t.children,d=t.childrenFlex,c=void 0===d?"initial":d,o=t.className,f=t.flexDirection,u=void 0===f?"row":f,x=t.flexWrap,p=void 0===x?"nowrap":x,g=t.fullHeight,h=void 0!==g&&g,v=t.fullWidth,_=void 0!==v&&v,j=t.gap,m=void 0===j?8:j,q=t.justifyContent,w=void 0===q?"flex-start":q,y=t.padding,W=void 0===y?0:y,b=t.style,C=i.__rest(t,["alignItems","children","childrenFlex","className","flexDirection","flexWrap","fullHeight","fullWidth","gap","justifyContent","padding","style"]);return r.jsx("div",e._objectSpread2(e._objectSpread2({},C),{},{className:l.cn("flex","initial"!==c&&"*:flex-(--amino-flex-wrapper-flex-children)",_&&"w-full",h&&"h-full",o),style:i.__assign(i.__assign(i.__assign({},b),"initial"!==c&&{"--amino-flex-wrapper-flex-children":c}),{alignItems:a,flexDirection:u,flexWrap:p,gap:"".concat(m,"px"),justifyContent:w,padding:"".concat(W,"px")}),children:s}))};
@@ -17,4 +17,4 @@ export declare const DateInput: import("react").ForwardRefExoticComponent<import
17
17
  type?: import("react").HTMLInputTypeAttribute;
18
18
  value: string | null;
19
19
  valuePrefix?: import("react").ReactNode;
20
- } & Pick<import("../../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../../types/BaseProps").BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
20
+ } & Pick<import("../../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../../types/BaseProps").BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -121,5 +121,5 @@ export declare const InputBase: import("react").ForwardRefExoticComponent<BasePr
121
121
  value: string | null;
122
122
  /** An additional value that appears next to the input but cannot be changed by the input */
123
123
  valuePrefix?: ReactNode;
124
- } & Pick<HelpTextProps, "error"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
124
+ } & Pick<HelpTextProps, "error"> & Omit<InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
125
125
  export {};
@@ -18,4 +18,4 @@ export declare const NumberInput: import("react").ForwardRefExoticComponent<impo
18
18
  type?: import("react").HTMLInputTypeAttribute;
19
19
  value: string | null;
20
20
  valuePrefix?: import("react").ReactNode;
21
- } & Pick<import("../../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../../types/BaseProps").BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
21
+ } & Pick<import("../../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../../types/BaseProps").BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -17,4 +17,4 @@ export declare const PasswordInput: import("react").ForwardRefExoticComponent<im
17
17
  type?: import("react").HTMLInputTypeAttribute;
18
18
  value: string | null;
19
19
  valuePrefix?: import("react").ReactNode;
20
- } & Pick<import("../../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../../types/BaseProps").BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
20
+ } & Pick<import("../../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../../types/BaseProps").BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -17,4 +17,4 @@ export declare const TimeInput: import("react").ForwardRefExoticComponent<import
17
17
  type?: import("react").HTMLInputTypeAttribute;
18
18
  value: string | null;
19
19
  valuePrefix?: import("react").ReactNode;
20
- } & Pick<import("../../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../../types/BaseProps").BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
20
+ } & Pick<import("../../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../../types/BaseProps").BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -17,4 +17,4 @@ export declare const DateInput: import("react").ForwardRefExoticComponent<import
17
17
  type?: import("react").HTMLInputTypeAttribute;
18
18
  value: string | null;
19
19
  valuePrefix?: import("react").ReactNode;
20
- } & Pick<import("../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../types/BaseProps").BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
20
+ } & Pick<import("../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../types/BaseProps").BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -123,5 +123,5 @@ export declare const FloatLabelInput: import("react").ForwardRefExoticComponent<
123
123
  value: string | null;
124
124
  /** An additional value that appears next to the input but cannot be changed by the input */
125
125
  valuePrefix?: ReactNode;
126
- } & Pick<HelpTextProps, "error"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
126
+ } & Pick<HelpTextProps, "error"> & Omit<InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
127
127
  export {};
@@ -18,4 +18,4 @@ export declare const NumberInput: import("react").ForwardRefExoticComponent<impo
18
18
  type?: import("react").HTMLInputTypeAttribute;
19
19
  value: string | null;
20
20
  valuePrefix?: import("react").ReactNode;
21
- } & Pick<import("../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../types/BaseProps").BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
21
+ } & Pick<import("../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../types/BaseProps").BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -17,4 +17,4 @@ export declare const PasswordInput: import("react").ForwardRefExoticComponent<im
17
17
  type?: import("react").HTMLInputTypeAttribute;
18
18
  value: string | null;
19
19
  valuePrefix?: import("react").ReactNode;
20
- } & Pick<import("../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../types/BaseProps").BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
20
+ } & Pick<import("../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../types/BaseProps").BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -17,4 +17,4 @@ export declare const TimeInput: import("react").ForwardRefExoticComponent<import
17
17
  type?: import("react").HTMLInputTypeAttribute;
18
18
  value: string | null;
19
19
  valuePrefix?: import("react").ReactNode;
20
- } & Pick<import("../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../types/BaseProps").BaseProps | "error" | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
20
+ } & Pick<import("../../help-text/HelpText").HelpTextProps, "error"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "error" | "size" | "disabled" | "label" | "pattern" | "type" | "autoFocus" | "tabIndex" | "prefix" | "inputMode" | "onChange" | "onKeyDown" | "value" | keyof import("../../../types/BaseProps").BaseProps | "placeholder" | "readOnly" | "required" | "noBorder" | "suffix" | "valuePrefix"> & import("react").RefAttributes<HTMLInputElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "6.0.0-alpha.5",
3
+ "version": "6.0.0-alpha.7",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",
package/reset.css CHANGED
@@ -469,51 +469,12 @@ html {
469
469
  }
470
470
 
471
471
  /**
472
- * Allow adding a border to an element by just adding a border-width.
473
- *
474
- * By default, the way the browser specifies that an element should have no
475
- * border is by setting it's border-style to `none` in the user-agent
476
- * stylesheet.
477
- *
478
- * In order to easily add borders to elements by just setting the `border-width`
479
- * property, we change the default border-style for all elements to `solid`, and
480
- * use border-width to hide them instead. This way our `border` utilities only
481
- * need to set the `border-width` property instead of the entire `border`
482
- * shorthand, making our border utilities much more straightforward to compose.
483
- *
484
- * https://github.com/tailwindcss/tailwindcss/pull/116
485
- */
486
-
487
- *,
488
- *::before,
489
- *::after {
490
- border-width: 0;
491
- border-style: solid;
492
- border-color: #e2e8f0;
493
- }
494
-
495
- /*
496
- * Ensure horizontal rules are visible by default
472
+ * The border reset (*, *::before, *::after { border-width: 0; border-style: solid; })
473
+ * is handled by Tailwind v4's @layer base (via `@import 'tailwindcss'`).
474
+ * Defining it here as unlayered CSS would override all @layer utilities,
475
+ * breaking border utility classes like `border-r`, `border-t`, etc.
497
476
  */
498
477
 
499
- hr {
500
- border-top-width: 1px;
501
- }
502
-
503
- /**
504
- * Undo the `border-style: none` reset that Normalize applies to images so that
505
- * our `border-{width}` utilities have the expected effect.
506
- *
507
- * The Normalize reset is unnecessary for us since we default the border-width
508
- * to 0 on all elements.
509
- *
510
- * https://github.com/tailwindcss/tailwindcss/issues/362
511
- */
512
-
513
- img {
514
- border-style: solid;
515
- }
516
-
517
478
  textarea {
518
479
  resize: vertical;
519
480
  }