@sanvika/ui 0.1.0 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanvika/ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Sanvika Production — shared UI component library for 50+ projects. Pure JS, CSS Modules, props-driven.",
@@ -10,7 +10,14 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/sanvika/sanvika-ui"
12
12
  },
13
- "keywords": ["react", "ui", "components", "design-system", "sanvika", "classified-ads"],
13
+ "keywords": [
14
+ "react",
15
+ "ui",
16
+ "components",
17
+ "design-system",
18
+ "sanvika",
19
+ "classified-ads"
20
+ ],
14
21
  "main": "./src/index.js",
15
22
  "exports": {
16
23
  ".": "./src/index.js",
@@ -1,6 +1,6 @@
1
1
  // src/components/buttons/Button.jsx
2
2
  import React from "react";
3
- import styles from "@/styles/components/buttons/Button.module.css";
3
+ import styles from "../../styles/components/buttons/Button.module.css";
4
4
 
5
5
  /**
6
6
  * Button — versatile button/link component.
@@ -1,8 +1,8 @@
1
1
  // src/components/buttons/FavoriteHeartButton.jsx
2
2
  import React from "react";
3
- import HeartIcon from "@/components/icons/HeartIcon";
4
- import Button from "@/components/buttons/Button";
5
- import styles from "@/styles/components/buttons/FavoriteHeartButton.module.css";
3
+ import HeartIcon from "../icons/HeartIcon.jsx";
4
+ import Button from "./Button.jsx";
5
+ import styles from "../../styles/components/buttons/FavoriteHeartButton.module.css";
6
6
 
7
7
  /**
8
8
  * FavoriteHeartButton — toggleable heart/favorite button.
@@ -1,7 +1,7 @@
1
1
  // src/components/buttons/ScrollButton.jsx
2
2
  import React from "react";
3
- import Button from "@/components/buttons/Button";
4
- import { FaArrowUp, FaArrowDown } from "@/components/icons";
3
+ import Button from "./Button.jsx";
4
+ import { FaArrowUp, FaArrowDown } from "../icons/index.js";
5
5
 
6
6
  /**
7
7
  * ScrollButton — icon-only button for scroll up/down actions.
@@ -1,7 +1,7 @@
1
1
  // src/components/buttons/ThreeDotButton.jsx
2
2
  import React from "react";
3
- import Button from "@/components/buttons/Button";
4
- import styles from "@/styles/components/buttons/ThreeDotButton.module.css";
3
+ import Button from "./Button.jsx";
4
+ import styles from "../../styles/components/buttons/ThreeDotButton.module.css";
5
5
 
6
6
  /**
7
7
  * ThreeDotButton — compact vertical three-dot menu trigger.
@@ -1,5 +1,5 @@
1
1
  // src/components/common/Container.jsx
2
- import styles from "@/styles/components/common/Container.module.css";
2
+ import styles from "../../styles/components/common/Container.module.css";
3
3
 
4
4
  /**
5
5
  * Container — a centered max-width wrapper.
@@ -1,6 +1,6 @@
1
1
  // src/components/common/Section.jsx
2
- import styles from "@/styles/components/common/Section.module.css";
3
- import Container from "./Container";
2
+ import styles from "../../styles/components/common/Section.module.css";
3
+ import Container from "./Container.jsx";
4
4
 
5
5
  /**
6
6
  * Section — a full-width page section with optional title/subtitle.
@@ -38,20 +38,20 @@ export { default as FaMoon } from "./FaMoon.jsx";
38
38
  export { default as MdWbSunny } from "./MdWbSunny.jsx";
39
39
  export { default as FaSignInAlt } from "./FaSignInAlt.jsx";
40
40
  export { default as FaBullhorn } from "./FaBullhorn.jsx";
41
- export { default as SearchIcon } from "./SearchIcon";
42
- export { default as BellIcon } from "./BellIcon";
43
- export { default as MapMarkerIcon } from "./MapMarkerIcon";
44
- export { default as UserIcon } from "./UserIcon";
45
- export { default as HeartIcon } from "./HeartIcon";
46
- export { default as StarIcon } from "./StarIcon";
47
- export { default as FacebookIcon } from "./FacebookIcon";
48
- export { default as InstagramIcon } from "./InstagramIcon";
49
- export { default as YoutubeIcon } from "./YoutubeIcon";
50
- export { default as RefreshIcon } from "./ReFreshIcon";
51
- export { default as SyncIcon } from "./ReFreshIcon";
52
- export { default as ChevronDown } from "./ChevronDown";
53
- export { default as TwitterIcon } from "./TwitterIcon";
54
- export { default as WhatsappIcon } from "./WhatsappIcon";
41
+ export { default as SearchIcon } from "./SearchIcon.jsx";
42
+ export { default as BellIcon } from "./BellIcon.jsx";
43
+ export { default as MapMarkerIcon } from "./MapMarkerIcon.jsx";
44
+ export { default as UserIcon } from "./UserIcon.jsx";
45
+ export { default as HeartIcon } from "./HeartIcon.jsx";
46
+ export { default as StarIcon } from "./StarIcon.jsx";
47
+ export { default as FacebookIcon } from "./FacebookIcon.jsx";
48
+ export { default as InstagramIcon } from "./InstagramIcon.jsx";
49
+ export { default as YoutubeIcon } from "./YoutubeIcon.jsx";
50
+ export { default as RefreshIcon } from "./ReFreshIcon.jsx";
51
+ export { default as SyncIcon } from "./ReFreshIcon.jsx";
52
+ export { default as ChevronDown } from "./ChevronDown.jsx";
53
+ export { default as TwitterIcon } from "./TwitterIcon.jsx";
54
+ export { default as WhatsappIcon } from "./WhatsappIcon.jsx";
55
55
  export { default as FaKeyboard } from "./FaKeyboard.jsx";
56
56
  export { default as LinkedInIcon } from "./LinkedInIcon.jsx";
57
57
  export { default as TelegramIcon } from "./TelegramIcon.jsx";
@@ -1,5 +1,5 @@
1
1
  // src/components/layout/Footer.jsx
2
- import styles from "@/styles/components/layouts/Footer.module.css";
2
+ import styles from "../../styles/components/layouts/Footer.module.css";
3
3
 
4
4
  const DEFAULT_LEGAL_LINKS = [
5
5
  { href: "/about", label: "About" },
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  // src/components/layout/Navbar.jsx
3
- import { useTheme } from "@/context/ThemeContext";
4
- import styles from "@/styles/components/layouts/Navbar.module.css";
3
+ import { useTheme } from "../../context/ThemeContext.jsx";
4
+ import styles from "../../styles/components/layouts/Navbar.module.css";
5
5
 
6
6
  const DEFAULT_NAV_LINKS = [{ href: "/", label: "Home" }];
7
7
 
@@ -2,7 +2,7 @@
2
2
  // src/components/modals/Modal.jsx
3
3
  import React, { useEffect, useSyncExternalStore } from "react";
4
4
  import { createPortal } from "react-dom";
5
- import styles from "@/styles/components/modals/Modal.module.css";
5
+ import styles from "../../styles/components/modals/Modal.module.css";
6
6
 
7
7
  /**
8
8
  * Modal — pure props-driven portal modal.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  // src/components/progressBar/ProgressBar.jsx
3
3
  import React, { useEffect, useRef, useState } from "react";
4
- import styles from "@/styles/components/progressBar/ProgressBar.module.css";
4
+ import styles from "../../styles/components/progressBar/ProgressBar.module.css";
5
5
 
6
6
  /**
7
7
  * ProgressBar — animated, pure props-driven progress indicator.