@nextui-org/react 1.0.2-beta.5 → 1.0.3-beta.5

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
- var e=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.theme=exports.styled=exports.sharedVisuallyHidden=exports.sharedFocus=exports.keyframes=exports.globalCss=exports.getStitchesTheme=exports.getCssText=exports.cssFocusVisible=exports.css=exports.createThemeBase=exports.createTheme=exports.config=void 0;var s=require("@stitches/react"),t=e(require("./common")),o=e(require("./light-theme")),r=e(require("./dark-theme")),a=e(require("../utils/deep-merge"));exports.getStitchesTheme=e=>(0,a.default)(e,t.default.theme);const i=(0,s.createStitches)({...t.default,theme:{...t.default.theme,shadows:{...o.default.shadows},colors:{...t.default.theme.colors,...o.default.colors}}}),n=i.createTheme;exports.createThemeBase=n;const p=i.styled;exports.styled=p;const l=i.css;exports.css=l;const c=i.globalCss;exports.globalCss=c;const x=i.keyframes;exports.keyframes=x;const h=i.getCssText;exports.getCssText=h;const d=i.theme;exports.theme=d;const u=i.config;exports.config=u;const m=l({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}});exports.sharedFocus=m;const f=l({transition:"box-shadow 0.25s ease 0s","@motion":{transition:"none"},variants:{animated:{false:{transition:"none"}},isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}});exports.cssFocusVisible=f;const g=l({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"});exports.sharedVisuallyHidden=g;exports.createTheme=({type:e,theme:s,className:t})=>{if(!e)throw new Error("Theme type is required");return n(t||`${e}-theme`,(0,a.default)("dark"===e?r.default:o.default,s))};
1
+ var e=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.theme=exports.styled=exports.sharedVisuallyHidden=exports.sharedFocus=exports.keyframes=exports.globalCss=exports.getStitchesTheme=exports.getCssText=exports.cssFocusVisible=exports.css=exports.createThemeBase=exports.createTheme=exports.config=void 0;var s=require("@stitches/react"),t=e(require("./common")),o=e(require("./light-theme")),r=e(require("./dark-theme")),a=e(require("../utils/deep-merge"));exports.getStitchesTheme=e=>(0,a.default)(e,t.default.theme);const i=(0,s.createStitches)({...t.default,theme:{...t.default.theme,shadows:{...o.default.shadows},colors:{...t.default.theme.colors,...o.default.colors}}}),p=i.createTheme;exports.createThemeBase=p;const l=i.styled;exports.styled=l;const c=i.css;exports.css=c;const n=i.globalCss;exports.globalCss=n;const x=i.keyframes;exports.keyframes=x;const h=i.getCssText;exports.getCssText=h;const u=i.theme;exports.theme=u;const d=i.config;exports.config=d;const m=c({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}});exports.sharedFocus=m;const f=c({variants:{isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}});exports.cssFocusVisible=f;const g=c({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"});exports.sharedVisuallyHidden=g;exports.createTheme=({type:e,theme:s,className:t})=>{if(!e)throw new Error("Theme type is required");return p(t||`${e}-theme`,(0,a.default)("dark"===e?r.default:o.default,s))};
@@ -1 +1 @@
1
- import{createStitches as e}from"@stitches/react";import o from"./common";import t from"./light-theme";import s from"./dark-theme";import r from"../utils/deep-merge";export const getStitchesTheme=e=>r(e,o.theme);const n=e({...o,theme:{...o.theme,shadows:{...t.shadows},colors:{...o.theme.colors,...t.colors}}});export const createThemeBase=n.createTheme;export const styled=n.styled;export const css=n.css;export const globalCss=n.globalCss;export const keyframes=n.keyframes;export const getCssText=n.getCssText;export const theme=n.theme;export const config=n.config;export const sharedFocus=css({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}});export const cssFocusVisible=css({transition:"box-shadow 0.25s ease 0s","@motion":{transition:"none"},variants:{animated:{false:{transition:"none"}},isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}});export const sharedVisuallyHidden=css({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"});export const createTheme=({type:e,theme:o,className:n})=>{if(!e)throw new Error("Theme type is required");return createThemeBase(n||`${e}-theme`,r("dark"===e?s:t,o))};
1
+ import{createStitches as e}from"@stitches/react";import o from"./common";import t from"./light-theme";import s from"./dark-theme";import r from"../utils/deep-merge";export const getStitchesTheme=e=>r(e,o.theme);const c=e({...o,theme:{...o.theme,shadows:{...t.shadows},colors:{...o.theme.colors,...t.colors}}});export const createThemeBase=c.createTheme;export const styled=c.styled;export const css=c.css;export const globalCss=c.globalCss;export const keyframes=c.keyframes;export const getCssText=c.getCssText;export const theme=c.theme;export const config=c.config;export const sharedFocus=css({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}});export const cssFocusVisible=css({variants:{isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}});export const sharedVisuallyHidden=css({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"});export const createTheme=({type:e,theme:o,className:c})=>{if(!e)throw new Error("Theme type is required");return createThemeBase(c||`${e}-theme`,r("dark"===e?s:t,o))};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/react",
3
- "version": "1.0.2-beta.5",
3
+ "version": "1.0.3-beta.5",
4
4
  "license": "MIT",
5
5
  "description": "🚀 Beautiful and modern React UI library.",
6
6
  "homepage": "https://nextui.org",
@@ -33,5 +33,5 @@ declare const _default: React.ComponentType<Partial<{
33
33
  preventDefault: boolean;
34
34
  opacity: number;
35
35
  className: string;
36
- }> & Omit<React.PropsWithChildren<BackdropProps>, "blur" | "opacity" | "visible" | "animated" | "className" | "preventDefault" | "onClick">>;
36
+ }> & Omit<React.PropsWithChildren<BackdropProps>, "blur" | "opacity" | "visible" | "className" | "preventDefault" | "onClick" | "animated">>;
37
37
  export default _default;
@@ -1199,7 +1199,6 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
1199
1199
  size: "md";
1200
1200
  };
1201
1201
  }, import("@stitches/react/types/styled-component").CssComponent<never, {
1202
- animated?: boolean | "false" | undefined;
1203
1202
  isFocusVisible?: boolean | "true" | "false" | undefined;
1204
1203
  }, {
1205
1204
  xs: string;
@@ -996,7 +996,6 @@ export declare const StyledCheckboxContainer: import("@stitches/react/types/styl
996
996
  color: "default";
997
997
  };
998
998
  }, import("@stitches/react/types/styled-component").CssComponent<never, {
999
- animated?: boolean | "false" | undefined;
1000
999
  isFocusVisible?: boolean | "true" | "false" | undefined;
1001
1000
  }, {
1002
1001
  xs: string;
@@ -958,7 +958,6 @@ export declare const StyledCollapseView: import("@stitches/react/types/styled-co
958
958
  };
959
959
  };
960
960
  }, import("@stitches/react/types/styled-component").CssComponent<never, {
961
- animated?: boolean | "false" | undefined;
962
961
  isFocusVisible?: boolean | "true" | "false" | undefined;
963
962
  }, {
964
963
  xs: string;
@@ -94,5 +94,5 @@ declare const _default: React.ComponentType<Partial<{
94
94
  initialValue: string;
95
95
  } & NativeAttrs & {
96
96
  css?: CSS | undefined;
97
- } & React.RefAttributes<HTMLInputElement>, "clearable" | "rounded" | "contentClickable" | "contentLeftStyling" | "contentRightStyling" | "width" | "color" | "size" | "animated" | "className" | "borderWeight" | "bordered" | "placeholder" | "status" | "disabled" | "autoComplete" | "readOnly" | "required" | "shadow" | "initialValue" | "fullWidth" | "helperColor" | "underlined" | "hideToggle" | "visibleIcon" | "hiddenIcon">>;
97
+ } & React.RefAttributes<HTMLInputElement>, "clearable" | "rounded" | "contentClickable" | "contentLeftStyling" | "contentRightStyling" | "width" | "color" | "size" | "className" | "borderWeight" | "bordered" | "placeholder" | "status" | "animated" | "disabled" | "autoComplete" | "readOnly" | "required" | "shadow" | "initialValue" | "fullWidth" | "helperColor" | "underlined" | "hideToggle" | "visibleIcon" | "hiddenIcon">>;
98
98
  export default _default;
@@ -61,5 +61,5 @@ declare const _default: React.ComponentType<Partial<{
61
61
  hover: string;
62
62
  dark: string;
63
63
  light: string;
64
- }>, "max" | "animated" | "value" | "min" | "shadow" | "indeterminated" | "striped">>;
64
+ }>, "max" | "value" | "animated" | "min" | "shadow" | "indeterminated" | "striped">>;
65
65
  export default _default;
@@ -78,5 +78,5 @@ declare const _default: React.ComponentType<Partial<{
78
78
  light: string;
79
79
  }> & {
80
80
  css?: CSS | undefined;
81
- }, "squared" | "animated" | "preventDefault" | "bordered" | "disabled" | "shadow" | "initialChecked">>;
81
+ }, "squared" | "preventDefault" | "bordered" | "animated" | "disabled" | "shadow" | "initialChecked">>;
82
82
  export default _default;
@@ -75,7 +75,6 @@ declare const TableColumnHeader: React.ForwardRefExoticComponent<Props<unknown>
75
75
  };
76
76
  }[];
77
77
  }, import("@stitches/react/types/styled-component").CssComponent<never, {
78
- animated?: boolean | "false" | undefined;
79
78
  isFocusVisible?: boolean | "true" | "false" | undefined;
80
79
  }, {
81
80
  xs: string;
@@ -993,7 +993,6 @@ export declare const StyledTableColumnHeader: import("@stitches/react/types/styl
993
993
  };
994
994
  }[];
995
995
  }, import("@stitches/react/types/styled-component").CssComponent<never, {
996
- animated?: boolean | "false" | undefined;
997
996
  isFocusVisible?: boolean | "true" | "false" | undefined;
998
997
  }, {
999
998
  xs: string;
@@ -2919,7 +2918,6 @@ export declare const StyledTableHeaderCell: import("@stitches/react/types/styled
2919
2918
  };
2920
2919
  }[];
2921
2920
  }, import("@stitches/react/types/styled-component").CssComponent<never, {
2922
- animated?: boolean | "false" | undefined;
2923
2921
  isFocusVisible?: boolean | "true" | "false" | undefined;
2924
2922
  }, {
2925
2923
  xs: string;
@@ -4782,7 +4780,6 @@ export declare const StyledTableHeaderCell: import("@stitches/react/types/styled
4782
4780
  };
4783
4781
  };
4784
4782
  }>>, {
4785
- animated?: boolean | "false" | undefined;
4786
4783
  isFocusVisible?: boolean | "true" | "false" | undefined;
4787
4784
  }, {
4788
4785
  xs: string;
@@ -8548,7 +8545,6 @@ export declare const StyledTableCell: import("@stitches/react/types/styled-compo
8548
8545
  };
8549
8546
  };
8550
8547
  }, import("@stitches/react/types/styled-component").CssComponent<never, {
8551
- animated?: boolean | "false" | undefined;
8552
8548
  isFocusVisible?: boolean | "true" | "false" | undefined;
8553
8549
  }, {
8554
8550
  xs: string;
@@ -10433,7 +10429,6 @@ export declare const StyledTableRow: import("@stitches/react/types/styled-compon
10433
10429
  };
10434
10430
  };
10435
10431
  }, import("@stitches/react/types/styled-component").CssComponent<never, {
10436
- animated?: boolean | "false" | undefined;
10437
10432
  isFocusVisible?: boolean | "true" | "false" | undefined;
10438
10433
  }, {
10439
10434
  xs: string;
@@ -8152,7 +8152,6 @@ export declare const sharedFocus: import("@stitches/react/types/styled-component
8152
8152
  };
8153
8153
  }>>;
8154
8154
  export declare const cssFocusVisible: import("@stitches/react/types/styled-component").CssComponent<never, {
8155
- animated?: boolean | "false" | undefined;
8156
8155
  isFocusVisible?: boolean | "true" | "false" | undefined;
8157
8156
  }, {
8158
8157
  xs: string;
@@ -55,5 +55,5 @@ declare const _default: React.ComponentType<Partial<{
55
55
  className: string;
56
56
  portalClassName: string;
57
57
  onVisibleChange: TooltipOnVisibleChange;
58
- }> & Omit<React.PropsWithChildren<TooltipProps>, "rounded" | "animated" | "className" | "shadow" | "hideArrow" | "initialVisible" | "trigger" | "enterDelay" | "leaveDelay" | "keepMounted" | "portalClassName" | "onVisibleChange">>;
58
+ }> & Omit<React.PropsWithChildren<TooltipProps>, "rounded" | "className" | "animated" | "shadow" | "hideArrow" | "initialVisible" | "trigger" | "enterDelay" | "leaveDelay" | "keepMounted" | "portalClassName" | "onVisibleChange">>;
59
59
  export default _default;
package/umd/nextui.js CHANGED
@@ -1205,16 +1205,7 @@ const sharedFocus = css({
1205
1205
  }
1206
1206
  });
1207
1207
  const cssFocusVisible = css({
1208
- transition: 'box-shadow 0.25s ease 0s',
1209
- '@motion': {
1210
- transition: 'none'
1211
- },
1212
1208
  variants: {
1213
- animated: {
1214
- false: {
1215
- transition: 'none'
1216
- }
1217
- },
1218
1209
  isFocusVisible: {
1219
1210
  true: {
1220
1211
  outline: 'transparent solid 2px',