зеркало из https://github.com/mozilla/hubs.git
2 строки
5.4 KiB
JavaScript
2 строки
5.4 KiB
JavaScript
/*! For license information please see input-ToggleInput-stories.848c69a5.iframe.bundle.js.LICENSE.txt */
|
|
(globalThis.webpackChunkhubs=globalThis.webpackChunkhubs||[]).push([[7408],{"./src/react-components/input/ToggleInput.stories.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{All:()=>All,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _All$parameters,_All$parameters2,_All$parameters2$docs,_layout_Column__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/react-components/layout/Column.js"),_ToggleInput__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/react-components/input/ToggleInput.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach((function(key){_defineProperty(target,key,source[key])})):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}return target}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(arg){var key=function _toPrimitive(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"==typeof key?key:String(key)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const __WEBPACK_DEFAULT_EXPORT__={title:"Input/ToggleInput",argTypes:{onChange:{action:"onChange"}}},All=args=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(_layout_Column__WEBPACK_IMPORTED_MODULE_1__.s,{padding:!0,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_ToggleInput__WEBPACK_IMPORTED_MODULE_2__.s,_objectSpread({},args)),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_ToggleInput__WEBPACK_IMPORTED_MODULE_2__.s,_objectSpread({label:"Toggle Input"},args)),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_ToggleInput__WEBPACK_IMPORTED_MODULE_2__.s,_objectSpread({label:"Toggle Input",checked:!1},args)),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_ToggleInput__WEBPACK_IMPORTED_MODULE_2__.s,_objectSpread({label:"Toggle Input",checked:!0},args)),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_ToggleInput__WEBPACK_IMPORTED_MODULE_2__.s,_objectSpread({label:"Toggle Input",checked:!1,disabled:!0},args)),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_ToggleInput__WEBPACK_IMPORTED_MODULE_2__.s,_objectSpread({label:"Toggle Input",checked:!0,disabled:!0},args)),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_ToggleInput__WEBPACK_IMPORTED_MODULE_2__.s,_objectSpread({label:"Toggle Input",description:"With description"},args))]});All.displayName="All",All.parameters=_objectSpread(_objectSpread({},All.parameters),{},{docs:_objectSpread(_objectSpread({},null===(_All$parameters=All.parameters)||void 0===_All$parameters?void 0:_All$parameters.docs),{},{source:_objectSpread({originalSource:'args => <Column padding>\n <ToggleInput {...args} />\n <ToggleInput label="Toggle Input" {...args} />\n <ToggleInput label="Toggle Input" checked={false} {...args} />\n <ToggleInput label="Toggle Input" checked={true} {...args} />\n <ToggleInput label="Toggle Input" checked={false} disabled {...args} />\n <ToggleInput label="Toggle Input" checked={true} disabled {...args} />\n <ToggleInput label="Toggle Input" description="With description" {...args} />\n </Column>'},null===(_All$parameters2=All.parameters)||void 0===_All$parameters2||null===(_All$parameters2$docs=_All$parameters2.docs)||void 0===_All$parameters2$docs?void 0:_All$parameters2$docs.source)})});const __namedExportsOrder=["All"];All.__docgenInfo={description:"",methods:[],displayName:"All"}},"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(arg){var argType=typeof arg;if("string"===argType||"number"===argType)classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if("object"===argType){if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]")){classes.push(arg.toString());continue}for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key)}}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,[]))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()}}]); |