-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from vitiacat/main
Chip, disabled state and more
- Loading branch information
Showing
34 changed files
with
648 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,5 @@ export function resolveAdaptiveProps( | |
} | ||
} | ||
|
||
console.log(object, result) | ||
|
||
return result | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ZnUI Radio component | ||
[![npm version](https://buttons.fury.io/js/@znui%2Fchip.svg)](https://buttons.fury.io/js/@znui%2Fchip) | ||
|
||
## Documentation | ||
[API Documentation and examples](https://ui.zation.ru/) | ||
|
||
## Installation | ||
|
||
``` | ||
npm install @znui/chip | ||
``` | ||
|
||
## Components | ||
|
||
- Chip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "@znui/chip", | ||
"version": "1.3.0-alpha.1", | ||
"main": "./dist/Chip.js", | ||
"module": "./dist/Chip.es.js", | ||
"types": "./dist/Chip.d.ts", | ||
"files": [ | ||
"dist", | ||
"README.md" | ||
], | ||
"license": "MIT", | ||
"dependencies": { | ||
"@znui/layouts": "^1.3.0-alpha", | ||
"@znui/md3-themes": "^1.3.0-alpha", | ||
"@znui/md3-utils": "^1.3.0-alpha" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"react-component", | ||
"znui", | ||
"unstyled", | ||
"material", | ||
"material design", | ||
"design system", | ||
"components" | ||
], | ||
"author": "vitiacat", | ||
"bugs": { | ||
"url": "https://github.com/ZationRU/ReactUI/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ZationRU/ReactUI.git", | ||
"directory": "packages/chip" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const typescript = require('@rollup/plugin-typescript'); | ||
const commonjs = require('@rollup/plugin-commonjs'); | ||
const external = require('rollup-plugin-peer-deps-external'); | ||
const autoExternal = require('rollup-plugin-auto-external'); | ||
|
||
const config = [ | ||
{ | ||
input: 'src/Chip.tsx', | ||
output: [ | ||
{ | ||
file: 'dist/Chip.js', | ||
format: 'cjs', | ||
exports: 'named', | ||
sourcemap: true | ||
}, | ||
{ | ||
file: 'dist/Chip.es.js', | ||
format: 'es', | ||
exports: 'named', | ||
sourcemap: true | ||
} | ||
], | ||
plugins: [ | ||
autoExternal(), | ||
external(), | ||
typescript(), | ||
commonjs(), | ||
] | ||
} | ||
]; | ||
|
||
module.exports = config; |
Oops, something went wrong.