@capillarytech/blaze-ui 5.0.9 → 5.0.11

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
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapDrawer/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAqCvC,CAAC;AAEF,eAAe,SAAS,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapDrawer/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuCvC,CAAC;AAEF,eAAe,SAAS,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
@@ -140,7 +140,7 @@ var _antdV = __webpack_require__(64273);
140
140
  var _react = _interopRequireDefault(__webpack_require__(9206));
141
141
  var _logDeprecationWarning = _interopRequireDefault(__webpack_require__(19224));
142
142
  var _jsxRuntime = __webpack_require__(74848);
143
- const _excluded = ["content", "size", "width", "open", "visible", "onOpenChange", "onVisibleChange"];
143
+ const _excluded = ["content", "size", "width", "open", "visible", "onOpenChange", "onVisibleChange", "className"];
144
144
  /**
145
145
  *
146
146
  * CapDrawer
@@ -157,7 +157,8 @@ const CapDrawer = _ref => {
157
157
  open,
158
158
  visible,
159
159
  onOpenChange,
160
- onVisibleChange
160
+ onVisibleChange,
161
+ className
161
162
  } = _ref,
162
163
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
163
164
  (0, _logDeprecationWarning.default)('CapDrawer', 'visible', visible, 'open');
@@ -176,6 +177,7 @@ const CapDrawer = _ref => {
176
177
  // Ant Design v5 Drawer types expect onVisibleChange, but runtime (v6) supports both
177
178
  // Use onVisibleChange to satisfy TypeScript types
178
179
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Drawer, _extends({
180
+ className: className,
179
181
  width: widthMapping,
180
182
  open: finalOpen
181
183
  }, finalOnOpenChange && {
@@ -1 +1 @@
1
- {"version":3,"file":"CapDrawer/index.js","mappings":";;;;;;;AAAA,kC;;;;;;;;;;;;ACAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,mBAAA;AAAiC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElB,SAASG,qBAAqBA,CAC3CC,aAAqB,EACrBC,kBAA0B,EAC1BC,mBAA4B,EAC5BC,mBAA2B,EACrB;EACN;EACA,IAAIC,KAAqE,EAAE;AAAA,EAI1E;AACH,C;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACa,MAAM,mBAAO,CAAC,IAAO,6KAA6K;AAC/M,kBAAkB,UAAU,eAAe,qBAAqB,6BAA6B,0BAA0B,0DAA0D,4EAA4E,OAAO,wDAAwD,gBAAgB,GAAG,WAAW,GAAG,YAAY;;;;;;;;;ACVzW,oC;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACxBa;;AAEb,IAAI,IAAqC;AACzC,EAAE,2CAAqE;AACvE,EAAE,KAAK;AAAA,EAEN;;;;;;;UCND;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UAC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,IAAI,GAAAX,6BAAA,CAAAG,IAAA,EAAAhB,SAAA;EAEP,IAAAf,8BAAqB,EAAC,WAAW,EAAE,SAAS,EAAEoC,OAAO,EAAE,MAAM,CAAC;EAC9D,IAAApC,8BAAqB,EAAC,WAAW,EAAE,iBAAiB,EAAEsC,eAAe,EAAE,cAAc,CAAC;EAEtF,MAAME,SAAS,GAAGL,IAAI,WAAJA,IAAI,GAAIC,OAAO;EACjC,MAAMK,iBAAiB,GAAGJ,YAAY,WAAZA,YAAY,GAAIC,eAAe;EAEzD,IAAII,YAAY,GAAGR,KAAK,IAAI,GAAG;EAC/B,IAAID,IAAI,KAAK,GAAG,EAAE;IAChBS,YAAY,GAAG,MAAM;EACvB,CAAC,MAAM,IAAIT,IAAI,KAAK,GAAG,EAAE;IACvBS,YAAY,GAAG,MAAM;EACvB,CAAC,MAAM,IAAIT,IAAI,KAAK,GAAG,EAAE;IACvBS,YAAY,GAAG,MAAM;EACvB;;EAEA;EACA;EACA,oBACE,IAAA5B,WAAA,CAAA6B,GAAA,EAAChC,MAAA,CAAAiC,MAAM,EAAA5B,QAAA;IACLkB,KAAK,EAAEQ,YAAa;IACpBP,IAAI,EAAEK;EAAU,GACXC,iBAAiB,IAAI;IAAEH,eAAe,EAAEG;EAAkB,CAAC,EAC5DF,IAAI;IAAAM,QAAA,EAEPb;EAAO,EACF,CAAC;AAEb,CAAC;AAAC,IAAAc,QAAA,GAAAC,kBAAA,GAEajB,SAAS,C","sources":["webpack://@capillarytech/blaze-ui/external commonjs2 {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"amd\":\"react\",\"root\":\"React\"}","webpack://@capillarytech/blaze-ui/./components/utils/logDeprecationWarning.ts","webpack://@capillarytech/blaze-ui/./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@capillarytech/blaze-ui/external commonjs2 \"antd-v5\"","webpack://@capillarytech/blaze-ui/./node_modules/lodash/isNil.js","webpack://@capillarytech/blaze-ui/./node_modules/react/jsx-runtime.js","webpack://@capillarytech/blaze-ui/webpack/bootstrap","webpack://@capillarytech/blaze-ui/./components/CapDrawer/index.tsx"],"sourcesContent":["module.exports = require(\"react\");","import isNil from 'lodash/isNil';\n\nexport default function logDeprecationWarning(\n componentName: string,\n deprecatedPropName: string,\n deprecatedPropValue: unknown,\n replacementPropName: string\n): void {\n // @ts-ignore - process.env is provided by webpack/build tools\n if (process.env.NODE_ENV === 'development' && !isNil(deprecatedPropValue)) {\n console.warn(\n `[${componentName}] \"${deprecatedPropName}\" is deprecated. Use \"${replacementPropName}\".`\n );\n }\n}\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","module.exports = require(\"antd-v5\");","/**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\nfunction isNil(value) {\n return value == null;\n}\n\nmodule.exports = isNil;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","/**\n *\n * CapDrawer\n *\n */\n\nimport { Drawer } from 'antd-v5';\nimport React from 'react';\n\nimport logDeprecationWarning from '../utils/logDeprecationWarning';\n\nimport type { CapDrawerProps } from './types';\n\nconst CapDrawer: React.FC<CapDrawerProps> = ({\n content,\n size,\n width,\n open,\n visible,\n onOpenChange,\n onVisibleChange,\n ...rest\n}) => {\n logDeprecationWarning('CapDrawer', 'visible', visible, 'open');\n logDeprecationWarning('CapDrawer', 'onVisibleChange', onVisibleChange, 'onOpenChange');\n\n const finalOpen = open ?? visible;\n const finalOnOpenChange = onOpenChange ?? onVisibleChange;\n\n let widthMapping = width || 256;\n if (size === 'r') {\n widthMapping = '50vw';\n } else if (size === 'l') {\n widthMapping = '75vw';\n } else if (size === 's') {\n widthMapping = '25vw';\n }\n\n // Ant Design v5 Drawer types expect onVisibleChange, but runtime (v6) supports both\n // Use onVisibleChange to satisfy TypeScript types\n return (\n <Drawer\n width={widthMapping}\n open={finalOpen}\n {...(finalOnOpenChange && { onVisibleChange: finalOnOpenChange })}\n {...rest}\n >\n {content}\n </Drawer>\n );\n};\n\nexport default CapDrawer;\nexport type { CapDrawerProps } from './types';\n"],"names":["_isNil","_interopRequireDefault","require","e","__esModule","default","logDeprecationWarning","componentName","deprecatedPropName","deprecatedPropValue","replacementPropName","process","env","NODE_ENV","isNil","console","warn","_antdV","_react","_logDeprecationWarning","_jsxRuntime","_excluded","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutPropertiesLoose","indexOf","CapDrawer","_ref","content","size","width","open","visible","onOpenChange","onVisibleChange","rest","finalOpen","finalOnOpenChange","widthMapping","jsx","Drawer","children","_default","exports"],"sourceRoot":""}
1
+ {"version":3,"file":"CapDrawer/index.js","mappings":";;;;;;;AAAA,kC;;;;;;;;;;;;ACAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,mBAAA;AAAiC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElB,SAASG,qBAAqBA,CAC3CC,aAAqB,EACrBC,kBAA0B,EAC1BC,mBAA4B,EAC5BC,mBAA2B,EACrB;EACN;EACA,IAAIC,KAAqE,EAAE;AAAA,EAI1E;AACH,C;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACa,MAAM,mBAAO,CAAC,IAAO,6KAA6K;AAC/M,kBAAkB,UAAU,eAAe,qBAAqB,6BAA6B,0BAA0B,0DAA0D,4EAA4E,OAAO,wDAAwD,gBAAgB,GAAG,WAAW,GAAG,YAAY;;;;;;;;;ACVzW,oC;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACxBa;;AAEb,IAAI,IAAqC;AACzC,EAAE,2CAAqE;AACvE,EAAE,KAAK;AAAA,EAEN;;;;;;;UCND;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;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A,CAAAG,IAAA,EAAAhB,SAAA;EAEP,IAAAf,8BAAqB,EAAC,WAAW,EAAE,SAAS,EAAEoC,OAAO,EAAE,MAAM,CAAC;EAC9D,IAAApC,8BAAqB,EAAC,WAAW,EAAE,iBAAiB,EAAEsC,eAAe,EAAE,cAAc,CAAC;EAEtF,MAAMG,SAAS,GAAGN,IAAI,WAAJA,IAAI,GAAIC,OAAO;EACjC,MAAMM,iBAAiB,GAAGL,YAAY,WAAZA,YAAY,GAAIC,eAAe;EAEzD,IAAIK,YAAY,GAAGT,KAAK,IAAI,GAAG;EAC/B,IAAID,IAAI,KAAK,GAAG,EAAE;IAChBU,YAAY,GAAG,MAAM;EACvB,CAAC,MAAM,IAAIV,IAAI,KAAK,GAAG,EAAE;IACvBU,YAAY,GAAG,MAAM;EACvB,CAAC,MAAM,IAAIV,IAAI,KAAK,GAAG,EAAE;IACvBU,YAAY,GAAG,MAAM;EACvB;;EAEA;EACA;EACA,oBACE,IAAA7B,WAAA,CAAA8B,GAAA,EAACjC,MAAA,CAAAkC,MAAM,EAAA7B,QAAA;IACLuB,SAAS,EAAEA,SAAU;IACrBL,KAAK,EAAES,YAAa;IACpBR,IAAI,EAAEM;EAAU,GACXC,iBAAiB,IAAI;IAAEJ,eAAe,EAAEI;EAAkB,CAAC,EAC5DF,IAAI;IAAAM,QAAA,EAEPd;EAAO,EACF,CAAC;AAEb,CAAC;AAAC,IAAAe,QAAA,GAAAC,kBAAA,GAEalB,SAAS,C","sources":["webpack://@capillarytech/blaze-ui/external commonjs2 {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"amd\":\"react\",\"root\":\"React\"}","webpack://@capillarytech/blaze-ui/./components/utils/logDeprecationWarning.ts","webpack://@capillarytech/blaze-ui/./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@capillarytech/blaze-ui/external commonjs2 \"antd-v5\"","webpack://@capillarytech/blaze-ui/./node_modules/lodash/isNil.js","webpack://@capillarytech/blaze-ui/./node_modules/react/jsx-runtime.js","webpack://@capillarytech/blaze-ui/webpack/bootstrap","webpack://@capillarytech/blaze-ui/./components/CapDrawer/index.tsx"],"sourcesContent":["module.exports = require(\"react\");","import isNil from 'lodash/isNil';\n\nexport default function logDeprecationWarning(\n componentName: string,\n deprecatedPropName: string,\n deprecatedPropValue: unknown,\n replacementPropName: string\n): void {\n // @ts-ignore - process.env is provided by webpack/build tools\n if (process.env.NODE_ENV === 'development' && !isNil(deprecatedPropValue)) {\n console.warn(\n `[${componentName}] \"${deprecatedPropName}\" is deprecated. Use \"${replacementPropName}\".`\n );\n }\n}\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","module.exports = require(\"antd-v5\");","/**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\nfunction isNil(value) {\n return value == null;\n}\n\nmodule.exports = isNil;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","/**\n *\n * CapDrawer\n *\n */\n\nimport { Drawer } from 'antd-v5';\nimport React from 'react';\n\nimport logDeprecationWarning from '../utils/logDeprecationWarning';\n\nimport type { CapDrawerProps } from './types';\n\nconst CapDrawer: React.FC<CapDrawerProps> = ({\n content,\n size,\n width,\n open,\n visible,\n onOpenChange,\n onVisibleChange,\n className,\n ...rest\n}) => {\n logDeprecationWarning('CapDrawer', 'visible', visible, 'open');\n logDeprecationWarning('CapDrawer', 'onVisibleChange', onVisibleChange, 'onOpenChange');\n\n const finalOpen = open ?? visible;\n const finalOnOpenChange = onOpenChange ?? onVisibleChange;\n\n let widthMapping = width || 256;\n if (size === 'r') {\n widthMapping = '50vw';\n } else if (size === 'l') {\n widthMapping = '75vw';\n } else if (size === 's') {\n widthMapping = '25vw';\n }\n\n // Ant Design v5 Drawer types expect onVisibleChange, but runtime (v6) supports both\n // Use onVisibleChange to satisfy TypeScript types\n return (\n <Drawer\n className={className}\n width={widthMapping}\n open={finalOpen}\n {...(finalOnOpenChange && { onVisibleChange: finalOnOpenChange })}\n {...rest}\n >\n {content}\n </Drawer>\n );\n};\n\nexport default CapDrawer;\nexport type { CapDrawerProps } from './types';\n"],"names":["_isNil","_interopRequireDefault","require","e","__esModule","default","logDeprecationWarning","componentName","deprecatedPropName","deprecatedPropValue","replacementPropName","process","env","NODE_ENV","isNil","console","warn","_antdV","_react","_logDeprecationWarning","_jsxRuntime","_excluded","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutPropertiesLoose","indexOf","CapDrawer","_ref","content","size","width","open","visible","onOpenChange","onVisibleChange","className","rest","finalOpen","finalOnOpenChange","widthMapping","jsx","Drawer","children","_default","exports"],"sourceRoot":""}
@@ -17644,7 +17644,7 @@ var _antdV = __webpack_require__(64273);
17644
17644
  var _react = _interopRequireDefault(__webpack_require__(9206));
17645
17645
  var _logDeprecationWarning = _interopRequireDefault(__webpack_require__(19224));
17646
17646
  var _jsxRuntime = __webpack_require__(74848);
17647
- const _excluded = ["content", "size", "width", "open", "visible", "onOpenChange", "onVisibleChange"];
17647
+ const _excluded = ["content", "size", "width", "open", "visible", "onOpenChange", "onVisibleChange", "className"];
17648
17648
  /**
17649
17649
  *
17650
17650
  * CapDrawer
@@ -17661,7 +17661,8 @@ const CapDrawer = _ref => {
17661
17661
  open,
17662
17662
  visible,
17663
17663
  onOpenChange,
17664
- onVisibleChange
17664
+ onVisibleChange,
17665
+ className
17665
17666
  } = _ref,
17666
17667
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
17667
17668
  (0, _logDeprecationWarning.default)('CapDrawer', 'visible', visible, 'open');
@@ -17680,6 +17681,7 @@ const CapDrawer = _ref => {
17680
17681
  // Ant Design v5 Drawer types expect onVisibleChange, but runtime (v6) supports both
17681
17682
  // Use onVisibleChange to satisfy TypeScript types
17682
17683
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Drawer, _extends({
17684
+ className: className,
17683
17685
  width: widthMapping,
17684
17686
  open: finalOpen
17685
17687
  }, finalOnOpenChange && {