cc-ui-library 3.0.0 → 3.0.2

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.
package/README.md CHANGED
@@ -1,25 +1,75 @@
1
- <h1 align="center">CC-UI-Library</h1>
1
+ ---
2
+ title: PixelReact UI
3
+ ---
2
4
 
3
- CC-UI-Library is an open-source React component library.
5
+ import { Button, Input } from 'pixel-react';
6
+
7
+ <h1 align="center">PixelReact UI</h1>
8
+
9
+ <p align="center">
10
+ <strong>PixelReact UI</strong> is an open-source React component library, designed to offer a sleek, customizable, and easy-to-use collection of components for building modern user interfaces.
11
+ </p>
12
+
13
+ ---
14
+
15
+ ## Table of Contents
16
+
17
+ - [Installation](#installation)
18
+ - [Usage](#usage)
19
+ - [Documentation](#documentation)
20
+ - [Contributing](#contributing)
21
+ - [License](#license)
22
+
23
+ ---
4
24
 
5
25
  ## Installation
6
26
 
7
- Install the package in your project directory with:
27
+ Install PixelReact UI in your project directory with:
28
+
29
+ ```bash
30
+ npm install pixel-react
31
+ ```
32
+
33
+ or with Yarn:
8
34
 
9
35
  ```bash
10
- npm i cc-ui-library
36
+ yarn add pixel-react
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ Once installed, you can start importing and using PixelReact components in your React application. Here's a quick example:
42
+
43
+ ```jsx
44
+ import { Button } from 'pixel-react';
45
+
46
+ function App() {
47
+ return (
48
+ <div>
49
+ <Button label="Button Label" variant="primary" />
50
+ </div>
51
+ );
52
+ }
53
+
54
+ export default App;
11
55
  ```
12
56
 
13
57
  ## Documentation
14
58
 
15
- [Click Here](https://main--65d5ca6d09c1eaf0731601fc.chromatic.com/)
59
+ For detailed documentation and live examples, [click here](https://main--65d5ca6d09c1eaf0731601fc.chromatic.com/).
16
60
 
17
61
  ## Example
18
62
 
19
- ```bash
20
- import { Button } from 'cc-ui-library'
63
+ ```jsx
64
+ import { Button } from 'pixel-react';
21
65
 
22
- ...
23
- <Button label="Button Label" variant="primary" />
24
- ...
66
+ function ExampleComponent() {
67
+ return <Button label="Click Me!" variant="primary" />;
68
+ }
25
69
  ```
70
+
71
+ ## License
72
+
73
+ PixelReact UI is licensed under the [MIT License](LICENSE). Feel free to use it in your projects, both personal and commercial.
74
+
75
+ ---
@@ -1,4 +1,4 @@
1
- var html = {exports: {}};
1
+ var javascript = {exports: {}};
2
2
 
3
- export { html as __module };
3
+ export { javascript as __module };
4
4
  //# sourceMappingURL=index10.js.map
@@ -1,4 +1,4 @@
1
- var javascript = {exports: {}};
1
+ var html = {exports: {}};
2
2
 
3
- export { javascript as __module };
3
+ export { html as __module };
4
4
  //# sourceMappingURL=index11.js.map
@@ -87,8 +87,8 @@ const Dropdown = /*#__PURE__*/forwardRef(({
87
87
  };
88
88
  const positionStyle = updateDropdownPosition();
89
89
  const dropdownWidth = positionStyle.width;
90
- const basePadding = 16;
91
- const iconPadding = showIcon ? 32 : 0;
90
+ const basePadding = 20;
91
+ const iconPadding = showIcon ? 32 : 5;
92
92
  const effectiveContentWidth = customReccurenece ? (typeof dropdownWidth === 'number' ? dropdownWidth / 2 : 0) - basePadding - iconPadding : dropdownWidth - basePadding - iconPadding;
93
93
  const sortedOptions = useMemo(() => {
94
94
  if (checkEmpty(options)) return [];
package/lib/index.cjs CHANGED
@@ -7117,8 +7117,8 @@ const Dropdown$1 = /*#__PURE__*/React.forwardRef(({
7117
7117
  };
7118
7118
  const positionStyle = updateDropdownPosition();
7119
7119
  const dropdownWidth = positionStyle.width;
7120
- const basePadding = 16;
7121
- const iconPadding = showIcon ? 32 : 0;
7120
+ const basePadding = 20;
7121
+ const iconPadding = showIcon ? 32 : 5;
7122
7122
  const effectiveContentWidth = customReccurenece ? (typeof dropdownWidth === 'number' ? dropdownWidth / 2 : 0) - basePadding - iconPadding : dropdownWidth - basePadding - iconPadding;
7123
7123
  const sortedOptions = React.useMemo(() => {
7124
7124
  if (checkEmpty(options)) return [];
@@ -1,4 +1,4 @@
1
- import { __exports as beautifier } from '../../../../../_virtual/beautifier2.js';
1
+ import { __exports as beautifier } from '../../../../../_virtual/beautifier3.js';
2
2
  import { __require as requireOptions } from './options.js';
3
3
  import { __require as requireOutput } from '../core/output.js';
4
4
  import { __require as requireTokenizer } from './tokenizer.js';
@@ -1,4 +1,4 @@
1
- import { __module as html } from '../../../../../_virtual/index10.js';
1
+ import { __module as html } from '../../../../../_virtual/index11.js';
2
2
  import { __require as requireBeautifier } from './beautifier.js';
3
3
  import { __require as requireOptions } from './options.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as options } from '../../../../../_virtual/options2.js';
1
+ import { __exports as options } from '../../../../../_virtual/options3.js';
2
2
  import { __require as requireOptions$1 } from '../core/options.js';
3
3
 
4
4
  /*jshint node:true */
@@ -1,4 +1,4 @@
1
- import { __exports as tokenizer } from '../../../../../_virtual/tokenizer.js';
1
+ import { __exports as tokenizer } from '../../../../../_virtual/tokenizer2.js';
2
2
  import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
3
3
  import { __require as requireDirectives } from '../core/directives.js';
4
4
  import { __require as requireTemplatablepattern } from '../core/templatablepattern.js';
@@ -1,4 +1,4 @@
1
- import { __exports as beautifier } from '../../../../../_virtual/beautifier3.js';
1
+ import { __exports as beautifier } from '../../../../../_virtual/beautifier2.js';
2
2
  import { __require as requireOutput } from '../core/output.js';
3
3
  import { __require as requireToken } from '../core/token.js';
4
4
  import { __require as requireAcorn } from './acorn.js';
@@ -1,4 +1,4 @@
1
- import { __module as javascript } from '../../../../../_virtual/index11.js';
1
+ import { __module as javascript } from '../../../../../_virtual/index10.js';
2
2
  import { __require as requireBeautifier } from './beautifier.js';
3
3
  import { __require as requireOptions } from './options.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as options } from '../../../../../_virtual/options3.js';
1
+ import { __exports as options } from '../../../../../_virtual/options2.js';
2
2
  import { __require as requireOptions$1 } from '../core/options.js';
3
3
 
4
4
  /*jshint node:true */
@@ -1,4 +1,4 @@
1
- import { __exports as tokenizer } from '../../../../../_virtual/tokenizer2.js';
1
+ import { __exports as tokenizer } from '../../../../../_virtual/tokenizer.js';
2
2
  import { __require as requireInputscanner } from '../core/inputscanner.js';
3
3
  import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
4
4
  import { __require as requireDirectives } from '../core/directives.js';
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "cc-ui-library",
3
- "description": "CC-UI-Library is an open-source React component library ",
4
- "version": "3.0.0",
5
- "main": "lib/index.js",
6
- "module": "lib/index.esm.js",
3
+ "description": "Great for pixel-perfect, design-focused components in React",
4
+ "version": "3.0.2",
5
+ "main": "lib/index.cjs",
6
+ "module": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
+ "sideEffects": [
9
+ "lib/styles.css"
10
+ ],
8
11
  "author": {
9
12
  "name": "Chandru S Chikkoppad"
10
13
  },