{"_rev":"4-23c7b9b92bd95d367f4ea6fe0e40823d","time":{"created":"2023-11-09T18:51:22.376Z","2.3.2":"2023-11-09T17:54:26.048Z","modified":"2023-11-09T18:51:23.035Z","2.3.3-0":"2023-11-09T18:32:53.741Z","2.4.0":"2023-11-09T18:51:22.668Z"},"_id":"@alexinx/mojito-core-ui","name":"@alexinx/mojito-core-ui","dist-tags":{"latest":"2.4.0"},"versions":{"2.4.0":{"name":"@alexinx/mojito-core-ui","version":"2.4.0","description":"Mojito UI components SNAPSHOT","main":"./index.cjs","module":"./index.js","types":"./index.d.ts","author":{"name":"mojito"},"license":"MIT","engines":{"node":">=16.0.0"},"dependencies":{"@emotion/react":"^11.10.6","@emotion/styled":"^11.10.6","@mui/icons-material":"^5.11.11","@mui/material":"^5.11.13","react":"^18.2.0","react-dom":"^18.2.0"},"devDependencies":{"@babel/core":"^7.20.12","@babel/plugin-syntax-flow":"^7.18.6","@babel/preset-env":"^7.20.2","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.18.6","@cspell/eslint-plugin":"^6.26.3","@rollup/plugin-commonjs":"^24.0.1","@rollup/plugin-node-resolve":"^15.0.1","@storybook/addon-actions":"^6.5.16","@storybook/addon-essentials":"^6.5.16","@storybook/addon-interactions":"^6.5.16","@storybook/addon-links":"^6.5.16","@storybook/builder-webpack4":"^6.5.16","@storybook/manager-webpack4":"^6.5.16","@storybook/react":"^6.5.16","@storybook/testing-library":"^0.0.13","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@testing-library/user-event":"^14.4.3","@types/jest":"^29.4.0","@types/react":"^18.0.28","@types/react-test-renderer":"^18.0.0","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","babel-jest":"^29.4.2","babel-loader":"^8.3.0","eslint":"^8.34.0","eslint-config-airbnb":"^19.0.4","eslint-config-next":"^13.2.4","eslint-config-standard-with-typescript":"^34.0.0","eslint-import-resolver-typescript":"^3.5.3","eslint-plugin-import":"^2.25.2","eslint-plugin-jest":"^27.2.1","eslint-plugin-n":"^15.0.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-storybook":"^0.6.10","eslint-plugin-unused-imports":"^2.0.0","husky":"^8.0.3","jest":"^29.4.2","jest-environment-jsdom":"^29.4.2","lint-staged":"^13.1.2","react-test-renderer":"^18.2.0","rollup":"^3.19.1","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-dts":"^5.1.1","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-typescript2":"^0.34.1","rollup-plugin-visualizer":"^5.9.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","typescript":"^4.9.5"},"peerDependencies":{"@emotion/react":"^11.10.6","@emotion/styled":"^11.10.6","@mui/icons-material":"^5.11.11","@mui/material":"^5.11.13","react":"^18.2.0","react-dom":"^18.2.0"},"repository":{"type":"git","url":"git+https://github.com/alexinx/mojito-core-ui.git"},"publishConfig":{"registry":"https://registry.npmjs.com/","access":"public"},"licenseText":"MIT License\n\nCopyright (c) 2023 Mojito Inc\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@alexinx/mojito-core-ui@2.4.0","dist":{"shasum":"568f828a0673251ef37d73e11993183c49ad1b21","integrity":"sha512-5SEDDNTeAZ5Nok4x9gVSygiyOQptTMXeiNgdF6xPwIkfOuHblbGTpCPKeZ7LvbcHXlMP753fFDuGv7yrVfGegw==","tarball":"https://registry.npmjs.org/@alexinx/mojito-core-ui/-/mojito-core-ui-2.4.0.tgz","fileCount":55,"unpackedSize":34600,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDz7fl+tbYqXCs6GfDW2tFAouPsXMTkMwNwgOcGmwjeRgIhAJX+4DjaHbYCy5bhpipg425BqpuvwuGKjRbWePpttSAW"}]},"_npmUser":{"name":"alexinx","email":"alexappadurai.swamydhas@ionixxtech.com"},"directories":{},"maintainers":[{"name":"alexinx","email":"alexappadurai.swamydhas@ionixxtech.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mojito-core-ui_2.4.0_1699555882487_0.37505504234407083"},"_hasShrinkwrap":false}},"maintainers":[{"name":"alexinx","email":"alexappadurai.swamydhas@ionixxtech.com"}],"description":"Mojito UI components SNAPSHOT","repository":{"type":"git","url":"git+https://github.com/alexinx/mojito-core-ui.git"},"author":{"name":"mojito"},"license":"MIT","readme":"\n<br />\n\n<h1 align=\"center\">☁️ Mojito Modules -  CoreUI</h1>\n\n\n<br /><br />\n\n\n<p align=\"center\">\n  👨‍💻 React components for the Mojito Platform, Reference App and third-party projects, including Mojito's Core UI \n<br />\n\n\n<p align=\"center\">\n   Version: 1.0.0\n</p>\n\n<br />\n\n\n## Using this library in your project Core UI\n\nIf you have Personal token follow step 2\n\n### Step - 1\nCreate Personal token: https://github.com/settings/tokens\n1. Generate New Token (Classic)\n2. enable following permission\n3. [x] read:packages Download packages from GitHub Package Registry\n\n### Step 2\ncreate .npmrc file from root dir and copy & paste following code,\n\nCopy the personal token and replace to ```<PROFILE_TOKEN>```\n\n```\n@mojitonft:registry=https://npm.pkg.github.com\n//npm.pkg.github.com/:_authToken=<PROFILE_TOKEN>\n\n```\n\nYou can install this project with one of these commands:\n\n    npm install --save @mojitoinc/mojito-core-ui\n    \n    yarn add @mojitoinc/mojito-core-ui\n\n<br />\n    \nOnce the package is installed, you can import the library using import;\n\n\n\n```\n  import { CoreUIThemeProvider } from \"@mojitoinc/mojito-core-ui\";\n  import { createTheme } from \"@mui/material/styles\";\n\n  const theme = createTheme({\n    palette: {\n      primary: {\n        main: \"#FDCC35\",\n      },\n      secondary: {\n        main: \"#356045\",\n      },\n      background: {\n        default: \"#000\",\n      },\n      text: {\n        primary: \"#000\",\n      },\n      grey: {\n        100: \"#868b93\",\n      },\n      divider: \"#fff\",\n    },\n  });\n\n  <CoreUIThemeProvider theme={ theme }>\n      <Component {...pageProps} />\n  </CoreUIThemeProvider>\n```\n\n<br />\n\n### Accordion\n\n```\n  import { Accordion } from \"@mojitoinc/mojito-core-ui\";\n\n  <Accordion\n    open=<open>\n    label=<label>\n    children=<children>\n    labelStyle=<labelStyle>\n    collapseIcon=<collapseIcon>\n    expandIcon=<expandIcon>\n  />\n```\n\n|Param    |type    | Required   | Default | Description\n|:--- | --- | :---:| :---:| :---:|\n|open| boolean|| false|\n|label| string |✅|\n|children| JSX.Element |✅|\n|labelStyle| [SxProps](https://mui.com/system/getting-started/the-sx-prop/)| | |\n|collapseIcon| JSX.Element | | [RemoveIcon](https://mui.com/material-ui/material-icons/?query=remove&selected=Remove)  | \n|expandIcon| JSX.Element| | [AddIcon](https://mui.com/material-ui/material-icons/?query=add&selected=Add) | \n\n### Breadcrumbs\n\n```\nimport { Breadcrumbs, BreadcrumbItem } from \"@mojitoinc/mojito-core-ui\";\n\n<Breadcrumbs \n    list=<BreadcrumbItem[]> \n    selectedValue=<selectedValue>\n    separator=<separator>\n    separatorStyle=<separatorStyle>\n    itemStyle=<itemStyle>\n    itemHighlightedStyle=<itemHighlightedStyle>\n    />\n\n```\n|Param    |type    | Required   | Default| Description\n|:--- | --- | :---:| :---:| :---:|\n|list| object|✅| [] |[BreadcrumbItem](#BreadcrumbItem)|\n|selectedValue| string |✅|\n|separator| JSX.Element | |[NavigateNextIcon](https://mui.com/material-ui/material-icons/?query=NavigateNext&selected=NavigateNext)| |\n|separatorStyle| [SxProps](https://mui.com/system/getting-started/the-sx-prop/)| | { fontSize: 13 }| \n|itemStyle| [SxProps](https://mui.com/system/getting-started/the-sx-prop/) | | { fontWeight: 500, fontSize: '12px' }| \n|itemHighlightedStyle| [SxProps](https://mui.com/system/getting-started/the-sx-prop/) || { fontWeight: 700, fontSize: '12px', color: '#000' }| \n\n#### interface\n##### BreadcrumbItem\n|Param    |type    | Required   | Description\n|:--- | --- | :---:| :---:|\n|label| string|✅| | \n|value | string |✅|  |\n\n\n### TextInput\n\n```\n  import { TextInput } from \"@mojitoinc/mojito-core-ui\";\n\n  <TextInput\n    placeholder=<placeholder>\n    value=<value>\n    InputPropsStyle=<InputPropsStyle>\n    sx=<sx>\n    error=<error>\n    type=<type>\n    disabled=<disabled>\n    onChange=<onChange>\n    />\n```\n\n|Param    |type    | Required   | Default| Description\n|:--- | --- | :---:| :---:| :---:|\n|placeholder| string|| \n|value| string | |\n|InputPropsStyle| [SxProps](https://mui.com/system/getting-started/the-sx-prop/) | | |\n|sx| [SxProps](https://mui.com/system/getting-started/the-sx-prop/)| | |\n|error| string | |\n|type| string | | text\n|disabled| boolean| | false\n|onChange| event(event: React.ChangeEvent<HTMLInputElement>)|\n\n### BaseModal\n\n```\n  import { BaseModal } from \"@mojitoinc/mojito-core-ui\";\n\n  <BaseModal\n    title=<title>\n    content=<content>\n    children<children>\n    titleStyle=<titleStyle>\n    contentStyle=<contentStyle>\n    />\n```\n\n|Param    |type    | Required   | Default| Description\n|:--- | --- | :---:| :---:| :---:|\n|title| string|| \n|content| string | |\n|children| JSX.Element | |\n|titleStyle| [SxProps](https://mui.com/system/getting-started/the-sx-prop/) | | |\n|contentStyle| [SxProps](https://mui.com/system/getting-started/the-sx-prop/)| | |\n\n### TabSwitcher\n\n```\n  import { TabSwitcher, TabPanel } from \"@mojitoinc/mojito-core-ui\";\n\n  <TabSwitcher \n    value=<value> \n    children=<children>\n  />\n\n  <TabPanel \n    id=<id>\n    children=<children>\n  />\n\n  <TabSwitcher value='one'>\n    <>\n      <TabPanel id='one'>\n        <p>one</p>\n      </TabPanel>\n      <TabPanel id='two'>\n        <p>two</p>\n      </TabPanel>\n    </>\n  </TabSwitcher>\n```\n##### TabSwitcher\n|Param    |type    | Required   | Default| Description\n|:--- | --- | :---:| :---:| :---:|\n|value| string|✅| \n|children| JSX.Element |✅ |\n\n##### TabPanel\n|Param    |type    | Required   | Default| Description\n|:--- | --- | :---:| :---:| :---:|\n|id| string|✅| \n|children| JSX.Element |✅ |\n\n\n\n\n</br>\n\n## Trobuleshoot\n\nyarn storybook `ERR_OSSL_EVP_UNSUPPORTED`\n\n```\nexport NODE_OPTIONS=--openssl-legacy-provider\n```","readmeFilename":"README.md"}