kewti_components 0.0.5 → 0.0.7
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 +62 -21
- package/dist/fonts/Abinet_3038426dc8.ttf +0 -0
- package/dist/fonts/Bela_Hidase_Extra_Bold_9020959aee.ttf +0 -0
- package/dist/fonts/Benaiah_536454528f.ttf +0 -0
- package/dist/fonts/Font.et - AbnetZethion - John Hudson and Geraldine Wade/Font.et - AbnetZethion - John Hudson and Geraldine Wade/license.txt +13 -0
- package/dist/fonts/Font.et - Bela Hidase ExtBd - Abel Daniel/Font.et - Bela Hidase ExtBd - Abel Daniel/license.txt +13 -0
- package/dist/fonts/Font.et - Benaiah - Unknown Designer (1)/Font.et - Benaiah - Unknown Designer/Benaiah_536454528f.ttf +0 -0
- package/dist/fonts/Font.et - Benaiah - Unknown Designer (1)/Font.et - Benaiah - Unknown Designer/license.txt +13 -0
- package/dist/fonts/Font.et - Geez Digital - Yikunoamlak Ayalew/Font.et - Geez Digital - Yikunoamlak Ayalew/license.txt +13 -0
- package/dist/fonts/Font.et - Menbere - Aleme Tadesse/Font.et - Menbere - Aleme Tadesse/license.txt +13 -0
- package/dist/fonts/Font.et - Mesob - ADIL CREATIVE/Font.et - Mesob - ADIL CREATIVE/Mesob_Regular_O_7eb0a6d47f.otf +0 -0
- package/dist/fonts/Font.et - Mesob - ADIL CREATIVE/Font.et - Mesob - ADIL CREATIVE/license.txt +13 -0
- package/dist/fonts/Font.et - Zemach - ADIL CREATIVE/Font.et - Zemach - ADIL CREATIVE/Zemach_Regular_eafc59f80a.otf +0 -0
- package/dist/fonts/Font.et - Zemach - ADIL CREATIVE/Font.et - Zemach - ADIL CREATIVE/license.txt +13 -0
- package/dist/fonts/Geez_Digital_V1_5be0497d4c.ttf +0 -0
- package/dist/fonts/Menbere_Variable_Font_wght_2c787a3cf0.ttf +0 -0
- package/dist/fonts/Mesob_Regular_O_7eb0a6d47f.otf +0 -0
- package/dist/fonts/Zemach_Regular_eafc59f80a.otf +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/kewti-documentation/component.d.ts +3 -0
- package/dist/kewti-fonts/component.d.ts +18 -0
- package/dist/kewti-mascot/component.d.ts +10 -0
- package/dist/kewti-regions/component.d.ts +1 -1
- package/dist/kewti.es.js +1458 -1397
- package/dist/kewti.umd.js +22 -22
- package/dist/kewtiPage/KewtiPage.d.ts +3 -1
- package/dist/kewti_components.css +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,21 +1,62 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
##
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
```tsx
|
|
20
|
-
import {
|
|
21
|
-
|
|
1
|
+
# Kewti Components
|
|
2
|
+
|
|
3
|
+
A modern React component library focused on delivering high-quality, reusable components with built-in support for Ethiopian contexts (such as calendars, locations, and typography).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install the package via npm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install kewti_components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Make sure you have `react` and `react-dom` installed, as they are required peer dependencies.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
Import components directly into your React application.
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import { useState } from "react";
|
|
21
|
+
import { KewtiInput, EthiopianCalendar } from "kewti_components";
|
|
22
|
+
|
|
23
|
+
export default function App() {
|
|
24
|
+
const [value, setValue] = useState("");
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<div className="p-4">
|
|
28
|
+
<KewtiInput variant="input" setUserInput={setValue} />
|
|
29
|
+
<EthiopianCalendar />
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Available Components
|
|
36
|
+
|
|
37
|
+
- **Kewti Input**: Clean, interactive text input components.
|
|
38
|
+
- **Kewti Map**: Responsive interactive maps built with Leaflet.
|
|
39
|
+
- **Transaction Validator**: Comprehensive UI for validating banking transactions.
|
|
40
|
+
- **Ethiopian Calendar**: Calendar component displaying both Gregorian and Ethiopian dates.
|
|
41
|
+
- **Ethiopian Date Picker**: Date picker designed for the Ethiopian calendar system.
|
|
42
|
+
- **Location Selector**: Cascading dropdown selector for Ethiopian regions, zones, and woredas.
|
|
43
|
+
- **Password Input**: Secure password input field with visibility toggle and strength indicators.
|
|
44
|
+
- **Kewti Fonts**: Utility component for applying custom Ethiopian fonts (`geez_digital`, `bela_hidase`).
|
|
45
|
+
|
|
46
|
+
## Development
|
|
47
|
+
|
|
48
|
+
To view the components in action and explore their APIs, you can run the local documentation site:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm run dev
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
To build the library for production:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npm run build
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
MIT
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Font: AbnetZethion
|
|
2
|
+
Designer: John Hudson and Geraldine Wade
|
|
3
|
+
Source: Font.et
|
|
4
|
+
----------------------------------------
|
|
5
|
+
License Information:
|
|
6
|
+
Unknown License
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
No specific license information provided. Please check with the designer.
|
|
11
|
+
|
|
12
|
+
----------------------------------------
|
|
13
|
+
Downloaded from Font.et
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Font: Bela Hidase ExtBd
|
|
2
|
+
Designer: Abel Daniel
|
|
3
|
+
Source: Font.et
|
|
4
|
+
----------------------------------------
|
|
5
|
+
License Information:
|
|
6
|
+
Unknown License
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
No specific license information provided. Please check with the designer.
|
|
11
|
+
|
|
12
|
+
----------------------------------------
|
|
13
|
+
Downloaded from Font.et
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Font: Benaiah
|
|
2
|
+
Designer: Unknown Designer
|
|
3
|
+
Source: Font.et
|
|
4
|
+
----------------------------------------
|
|
5
|
+
License Information:
|
|
6
|
+
Unknown License
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
No specific license information provided. Please check with the designer.
|
|
11
|
+
|
|
12
|
+
----------------------------------------
|
|
13
|
+
Downloaded from Font.et
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Font: Geez Digital
|
|
2
|
+
Designer: Yikunoamlak Ayalew
|
|
3
|
+
Source: Font.et
|
|
4
|
+
----------------------------------------
|
|
5
|
+
License Information:
|
|
6
|
+
Unknown License
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
No specific license information provided. Please check with the designer.
|
|
11
|
+
|
|
12
|
+
----------------------------------------
|
|
13
|
+
Downloaded from Font.et
|
package/dist/fonts/Font.et - Menbere - Aleme Tadesse/Font.et - Menbere - Aleme Tadesse/license.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Font: Menbere
|
|
2
|
+
Designer: Aleme Tadesse
|
|
3
|
+
Source: Font.et
|
|
4
|
+
----------------------------------------
|
|
5
|
+
License Information:
|
|
6
|
+
Unknown License
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
No specific license information provided. Please check with the designer.
|
|
11
|
+
|
|
12
|
+
----------------------------------------
|
|
13
|
+
Downloaded from Font.et
|
|
Binary file
|
package/dist/fonts/Font.et - Mesob - ADIL CREATIVE/Font.et - Mesob - ADIL CREATIVE/license.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Font: Mesob
|
|
2
|
+
Designer: ADIL CREATIVE
|
|
3
|
+
Source: Font.et
|
|
4
|
+
----------------------------------------
|
|
5
|
+
License Information:
|
|
6
|
+
Unknown License
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
No specific license information provided. Please check with the designer.
|
|
11
|
+
|
|
12
|
+
----------------------------------------
|
|
13
|
+
Downloaded from Font.et
|
|
Binary file
|
package/dist/fonts/Font.et - Zemach - ADIL CREATIVE/Font.et - Zemach - ADIL CREATIVE/license.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Font: Zemach
|
|
2
|
+
Designer: ADIL CREATIVE
|
|
3
|
+
Source: Font.et
|
|
4
|
+
----------------------------------------
|
|
5
|
+
License Information:
|
|
6
|
+
Unknown License
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
No specific license information provided. Please check with the designer.
|
|
11
|
+
|
|
12
|
+
----------------------------------------
|
|
13
|
+
Downloaded from Font.et
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export { KewtiLocationSelector } from './kewti-regions/component';
|
|
|
5
5
|
export { KewtiMap } from './kewti-maps/component';
|
|
6
6
|
export { default as TransactionValidator } from './kewti-banks/component';
|
|
7
7
|
export { KewtiPassword } from './kewti-passwords/component';
|
|
8
|
+
export { KewtiFonts, KewtiPronounce } from './kewti-fonts/component';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type FontName = "geez_digital" | "bela_hidase" | "menbere" | "abinet";
|
|
3
|
+
interface KewtiFontsProps {
|
|
4
|
+
font: FontName;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function KewtiFonts({ font, className, style, children, }: KewtiFontsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
interface KewtiPronounceProps {
|
|
11
|
+
text: string;
|
|
12
|
+
lang?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
iconClassName?: string;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function KewtiPronounce({ text, lang, className, iconClassName, children, }: KewtiPronounceProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface KewtiMascotProps {
|
|
3
|
+
/** Extra wrapper classes */
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
/** Whether the mascot should appear focused (scaled up) */
|
|
7
|
+
focused?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default function KewtiMascot({ className, style, focused }: KewtiMascotProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export declare function KewtiLocationSelector({ setAddress }: {
|
|
2
|
+
export declare function KewtiLocationSelector({ setAddress, }: {
|
|
3
3
|
setAddress?: React.Dispatch<React.SetStateAction<string[]>>;
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|