mumineen-ui-plugins 1.5.0 → 1.7.0

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,62 +1,39 @@
1
- # Mumineen Calendar
1
+ # Mumineen UI Plugins
2
2
 
3
- ## Introduction
4
-
5
- Mumineen Calendar is a [Hijri calendar] for [Dawoodi Bohra Shia Muslims] who
6
- follow the 53rd Dai al-Mutlaq, His Holiness, [Syedna Aale Qadr Mufaddal
7
- Saifuddin] (_TUS_). It provides the user with the Hijri date, [Gregorian date]
8
- for any day of the calendar year.
9
-
10
- This version is primarily written in JavaScript using [React] and [Middleman].
11
- It supercedes the [Ruby on Rails version] I wrote some time ago.
12
-
13
- [Dawoodi Bohra Shia Muslims]: https://www.thedawoodibohras.com/
14
- [Gregorian date]: http://en.wikipedia.org/wiki/Gregorian_calendar
15
- [Hijri Calendar]: http://en.wikipedia.org/wiki/Islamic_calendar
16
- [Middleman]: http://middlemanapp.com/
17
- [React]: http://facebook.github.io/react/
18
- [Ruby on Rails version]: https://github.com/mygulamali/mumineen_calendar
19
- [Syedna Aale Qadr Mufaddal Saifuddin]: https://www.thedawoodibohras.com/about-the-bohras/the-dai-al-mutlaq/53rd-dai-al-mutlaq/
20
-
21
- ## Setup
3
+ Mumineen UI Plugins is a react library which features some of the commonly used UI plugins
4
+ for [Dawoodi Bohra Shia Muslims] who follow the 53rd Dai al-Mutlaq, His Holiness, [Syedna Aale Qadr Mufaddal
5
+ Saifuddin] (_TUS_).
22
6
 
7
+ ## Installation
23
8
  ```shell
24
- git clone git@github.com:mygulamali/mumineen_calendar_js
25
- cd mumineen_calendar_js
26
- bundle install
27
- cp .env.example .env
28
- cd source/assets/stylesheets
29
- bundle exec bourbon install
30
- bundle exec neat install
9
+ npm install mumineen-ui-plugins
10
+ ```
11
+ or
12
+ ```shell
13
+ yarn add mumineen-ui-plugins
31
14
  ```
32
15
 
33
- Then complete the variables in the `.env` file for you environment. The current
34
- values can be found in the _Build & deploy_ section under the _Site settings_
35
- tab for the website, on Netlify.
36
-
37
- ## Serve on your localhost
38
-
39
- `bundle exec middleman`
40
-
41
- Then visit `http://localhost:4567` to see the site in action.
42
-
43
- ## Deploy to your web server
44
-
45
- `bundle exec middleman deploy`
46
-
47
- This command will automagically commit the built website to the correct branch
48
- of this repo for your static site server (i.e. [GitHub Pages] or [Netlify])
49
- to serve.
50
-
51
- [Netlify]: https://www.netlify.com/ "Netlify"
52
- [GitHub Pages]: https://pages.github.com/ "GitHub Pages"
53
-
54
- ## Testing
16
+ This package only contains one UI plugin which is the [Hijri Calendar] but there will be more plugins added in the future.
55
17
 
56
- After starting the local server (see above), visit
57
- `http://localhost:4567/jasmine` to run the [Jasmine] specs.
18
+ ## Hijri Calendar
19
+ ### Usage
20
+ ```typescript
21
+ import { HijriCalendar } from 'mumineen-ui-plugins';
58
22
 
59
- [Jasmine]: http://jasmine.github.io/
23
+ const App = () => {
24
+ return (
25
+ <HijriCalendar />
26
+ );
27
+ }
28
+ ```
29
+ ![img.png](img.png)
30
+ ### Props
31
+ | Name | Type | Default | Description |
32
+ | --- |------------|-------------|------------------------------------------------------------------------|
33
+ | `miqaats` | `MiqaatMonth[]` | `[]` | List of miqaats to be displayed on the calendar. |
34
+ | `additionalDayContent` | `(day: Day) => React.ReactNode` | `undefined` | Callback function to return additional content in the modal for a day. |
35
+ | `onDayClick` | `(day: Day) => void` | `undefined` | Callback function to be called when a day is clicked. |
36
+ | `showDefaultMiqaatData` | `boolean` | `false` | Whether to show the default miqaat data (embedded in library). |
60
37
 
61
38
  ## License
62
39
 
@@ -64,3 +41,10 @@ This software is released under the terms and conditions of [The MIT License].
64
41
  Please see the `LICENSE.txt` file for more details.
65
42
 
66
43
  [The MIT License]: http://www.opensource.org/licenses/mit-license.php
44
+ [Dawoodi Bohra Shia Muslims]: https://www.thedawoodibohras.com/
45
+ [Gregorian date]: http://en.wikipedia.org/wiki/Gregorian_calendar
46
+ [Hijri Calendar]: http://en.wikipedia.org/wiki/Islamic_calendar
47
+ [Middleman]: http://middlemanapp.com/
48
+ [React]: http://facebook.github.io/react/
49
+ [Ruby on Rails version]: https://github.com/mygulamali/mumineen_calendar
50
+ [Syedna Aale Qadr Mufaddal Saifuddin]: https://www.thedawoodibohras.com/about-the-bohras/the-dai-al-mutlaq/53rd-dai-al-mutlaq/
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export { MiqaatList } from "./hijri-calendar/MiqaatList";
3
3
  export { Day } from "./hijri-calendar/libs/HijriCalendar";
4
4
  export { MiqaatMonth, Miqaat } from "./hijri-calendar/HijriCalender.interface";
5
5
  export { getGregorianDate, getHijriDate } from "./hijri-calendar/utils";
6
+ export { QasrNamaaz } from "./qasr/QasrNamaaz";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getHijriDate = exports.getGregorianDate = exports.MiqaatList = exports.HijriCalendar = void 0;
3
+ exports.QasrNamaaz = exports.getHijriDate = exports.getGregorianDate = exports.MiqaatList = exports.HijriCalendar = void 0;
4
4
  var CalendarFrame_1 = require("./hijri-calendar/CalendarFrame");
5
5
  Object.defineProperty(exports, "HijriCalendar", { enumerable: true, get: function () { return CalendarFrame_1.CalendarFrame; } });
6
6
  var MiqaatList_1 = require("./hijri-calendar/MiqaatList");
@@ -8,3 +8,5 @@ Object.defineProperty(exports, "MiqaatList", { enumerable: true, get: function (
8
8
  var utils_1 = require("./hijri-calendar/utils");
9
9
  Object.defineProperty(exports, "getGregorianDate", { enumerable: true, get: function () { return utils_1.getGregorianDate; } });
10
10
  Object.defineProperty(exports, "getHijriDate", { enumerable: true, get: function () { return utils_1.getHijriDate; } });
11
+ var QasrNamaaz_1 = require("./qasr/QasrNamaaz");
12
+ Object.defineProperty(exports, "QasrNamaaz", { enumerable: true, get: function () { return QasrNamaaz_1.QasrNamaaz; } });