@sudarshanaui/ui 1.0.0 → 1.0.1

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
@@ -29,13 +29,13 @@
29
29
  Install the package via npm:
30
30
 
31
31
  ```bash
32
- npm install @sudarshana/ui
32
+ npm install @sudarshanaui/ui
33
33
  ```
34
34
 
35
35
  Or using yarn:
36
36
 
37
37
  ```bash
38
- yarn add @sudarshana/ui
38
+ yarn add @sudarshanaui/ui
39
39
  ```
40
40
 
41
41
  ## Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudarshanaui/ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "The official component library for Sudarshana - Elegant, modern, and accessible React components.",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -30,8 +30,8 @@ export const AdminchoiceCreativeGridMenu = (props) => {
30
30
  // Inject props
31
31
 
32
32
 
33
- return (
34
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceCreativeGridMenu">
33
+ return (
34
+ <div {...props} className="sudarshana-component-AdminchoiceCreativeGridMenu">
35
35
  <style>{styles}</style>
36
36
  <div dangerouslySetInnerHTML={{ __html: html }} />
37
37
  </div>
@@ -26,8 +26,8 @@ export const AdminchoiceGlitchTitle = (props) => {
26
26
  // Inject props
27
27
 
28
28
 
29
- return (
30
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceGlitchTitle">
29
+ return (
30
+ <div {...props} className="sudarshana-component-AdminchoiceGlitchTitle">
31
31
  <style>{styles}</style>
32
32
  <div dangerouslySetInnerHTML={{ __html: html }} />
33
33
  </div>
@@ -32,8 +32,8 @@ export const AdminchoiceInteractiveToggle = (props) => {
32
32
  // Inject props
33
33
 
34
34
 
35
- return (
36
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceInteractiveToggle">
35
+ return (
36
+ <div {...props} className="sudarshana-component-AdminchoiceInteractiveToggle">
37
37
  <style>{styles}</style>
38
38
  <div dangerouslySetInnerHTML={{ __html: html }} />
39
39
  </div>
@@ -39,8 +39,8 @@ export const AdminchoiceKineticMarqueeButton = (props) => {
39
39
  // Inject props
40
40
 
41
41
 
42
- return (
43
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceKineticMarqueeButton">
42
+ return (
43
+ <div {...props} className="sudarshana-component-AdminchoiceKineticMarqueeButton">
44
44
  <style>{styles}</style>
45
45
  <div dangerouslySetInnerHTML={{ __html: html }} />
46
46
  </div>
@@ -31,8 +31,8 @@ export const AdminchoiceLiquidMorphLoader = (props) => {
31
31
  // Inject props
32
32
 
33
33
 
34
- return (
35
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceLiquidMorphLoader">
34
+ return (
35
+ <div {...props} className="sudarshana-component-AdminchoiceLiquidMorphLoader">
36
36
  <style>{styles}</style>
37
37
  <div dangerouslySetInnerHTML={{ __html: html }} />
38
38
  </div>
@@ -30,8 +30,8 @@ export const AdminchoiceMagneticAttractionButton = (props) => {
30
30
  // Inject props
31
31
 
32
32
 
33
- return (
34
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceMagneticAttractionButton">
33
+ return (
34
+ <div {...props} className="sudarshana-component-AdminchoiceMagneticAttractionButton">
35
35
  <style>{styles}</style>
36
36
  <div dangerouslySetInnerHTML={{ __html: html }} />
37
37
  </div>
@@ -34,8 +34,8 @@ export const AdminchoiceNoiseGlassCard = (props) => {
34
34
  // Inject props
35
35
 
36
36
 
37
- return (
38
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceNoiseGlassCard">
37
+ return (
38
+ <div {...props} className="sudarshana-component-AdminchoiceNoiseGlassCard">
39
39
  <style>{styles}</style>
40
40
  <div dangerouslySetInnerHTML={{ __html: html }} />
41
41
  </div>
@@ -26,8 +26,8 @@ export const AdminchoiceParallaxImageLink = (props) => {
26
26
  // Inject props
27
27
 
28
28
 
29
- return (
30
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceParallaxImageLink">
29
+ return (
30
+ <div {...props} className="sudarshana-component-AdminchoiceParallaxImageLink">
31
31
  <style>{styles}</style>
32
32
  <div dangerouslySetInnerHTML={{ __html: html }} />
33
33
  </div>
@@ -24,8 +24,8 @@ export const AdminchoiceRevealMaskText = (props) => {
24
24
  // Inject props
25
25
 
26
26
 
27
- return (
28
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceRevealMaskText">
27
+ return (
28
+ <div {...props} className="sudarshana-component-AdminchoiceRevealMaskText">
29
29
  <style>{styles}</style>
30
30
  <div dangerouslySetInnerHTML={{ __html: html }} />
31
31
  </div>
@@ -30,8 +30,8 @@ export const AdminchoiceSpotlightInput = (props) => {
30
30
  // Inject props
31
31
 
32
32
 
33
- return (
34
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AdminchoiceSpotlightInput">
33
+ return (
34
+ <div {...props} className="sudarshana-component-AdminchoiceSpotlightInput">
35
35
  <style>{styles}</style>
36
36
  <div dangerouslySetInnerHTML={{ __html: html }} />
37
37
  </div>
@@ -29,8 +29,8 @@ export const AnimatedCard = ({ title = "Hover Card", content = "Hover over me to
29
29
  html = html.replaceAll('{{title}}', title);
30
30
  html = html.replaceAll('{{content}}', content);
31
31
 
32
- return (
33
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AnimatedCard">
32
+ return (
33
+ <div {...rest} className="sudarshana-component-AnimatedCard">
34
34
  <style>{styles}</style>
35
35
  <div dangerouslySetInnerHTML={{ __html: html }} />
36
36
  </div>
@@ -33,8 +33,8 @@ export const AnimatedFooter = (props) => {
33
33
  // Inject props
34
34
 
35
35
 
36
- return (
37
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AnimatedFooter">
36
+ return (
37
+ <div {...props} className="sudarshana-component-AnimatedFooter">
38
38
  <style>{styles}</style>
39
39
  <div dangerouslySetInnerHTML={{ __html: html }} />
40
40
  </div>
@@ -19,8 +19,8 @@ export const AnimatedOtp = (props) => {
19
19
  // Inject props
20
20
 
21
21
 
22
- return (
23
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AnimatedOtp">
22
+ return (
23
+ <div {...props} className="sudarshana-component-AnimatedOtp">
24
24
  <style>{styles}</style>
25
25
  <div dangerouslySetInnerHTML={{ __html: html }} />
26
26
  </div>
@@ -25,8 +25,8 @@ export const AnimatedTextfield = ({ label = "Username", ...rest }) => {
25
25
  // Inject props
26
26
  html = html.replaceAll('{{label}}', label);
27
27
 
28
- return (
29
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-AnimatedTextfield">
28
+ return (
29
+ <div {...rest} className="sudarshana-component-AnimatedTextfield">
30
30
  <style>{styles}</style>
31
31
  <div dangerouslySetInnerHTML={{ __html: html }} />
32
32
  </div>
@@ -18,8 +18,8 @@ export const FancyButton = ({ label = "yo yes", ...rest }) => {
18
18
  // Inject props
19
19
  html = html.replaceAll('{{label}}', label);
20
20
 
21
- return (
22
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-FancyButton">
21
+ return (
22
+ <div {...rest} className="sudarshana-component-FancyButton">
23
23
  <style>{styles}</style>
24
24
  <div dangerouslySetInnerHTML={{ __html: html }} />
25
25
  </div>
@@ -38,8 +38,8 @@ export const NormalFooter = (props) => {
38
38
  // Inject props
39
39
 
40
40
 
41
- return (
42
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-NormalFooter">
41
+ return (
42
+ <div {...props} className="sudarshana-component-NormalFooter">
43
43
  <style>{styles}</style>
44
44
  <div dangerouslySetInnerHTML={{ __html: html }} />
45
45
  </div>
package/src/NormalOtp.jsx CHANGED
@@ -17,8 +17,8 @@ export const NormalOtp = (props) => {
17
17
  // Inject props
18
18
 
19
19
 
20
- return (
21
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-NormalOtp">
20
+ return (
21
+ <div {...props} className="sudarshana-component-NormalOtp">
22
22
  <style>{styles}</style>
23
23
  <div dangerouslySetInnerHTML={{ __html: html }} />
24
24
  </div>
package/src/Testing.jsx CHANGED
@@ -30,8 +30,8 @@ export const Testing = (props) => {
30
30
  // Inject props
31
31
 
32
32
 
33
- return (
34
- <div {...(propsList.length === 0 ? props : rest)} className="sudarshana-component-Testing">
33
+ return (
34
+ <div {...props} className="sudarshana-component-Testing">
35
35
  <style>{styles}</style>
36
36
  <div dangerouslySetInnerHTML={{ __html: html }} />
37
37
  </div>