@sikka/hawa 0.1.12 → 0.1.14

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": "@sikka/hawa",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "SaaS Oriented UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -22,8 +22,10 @@ const buttonVariants = cva(
22
22
  },
23
23
  size: {
24
24
  default: "h-10 px-4 py-2",
25
+ xs: "h-fit py-1 text-[10px] px-2",
25
26
  sm: "h-9 rounded-md px-3",
26
27
  lg: "h-11 rounded-md px-8",
28
+ xl: "h-14 rounded-md px-10",
27
29
  icon: "h-10 w-10",
28
30
  },
29
31
  },
@@ -1,18 +1,23 @@
1
- import React, { FC } from "react"
1
+ import React, { FC, useState } from "react"
2
2
  import { HawaRadio } from "./HawaRadio"
3
3
 
4
4
  type TypographyTypes = {
5
- handleLanguage: () => void
5
+ handleLanguage: (e) => void
6
6
  currentLanguage: any
7
- handleColorMode: () => void
7
+ handleColorMode: (e) => void
8
8
  currentColorMode: any
9
9
  }
10
10
  export const InterfaceSettings: FC<TypographyTypes> = (props) => {
11
+ const [color, setColor] = useState(props.currentColorMode)
12
+ const [language, setLanguage] = useState(props.currentLanguage)
11
13
  return (
12
14
  <div className="mt-6 flex flex-row justify-between">
13
15
  <HawaRadio
14
- defaultValue={props.currentLanguage}
15
- onChangeTab={props.handleLanguage}
16
+ defaultValue={language}
17
+ onChangeTab={(e) => {
18
+ props.handleLanguage(e)
19
+ setLanguage(e)
20
+ }}
16
21
  design="tabs"
17
22
  options={[
18
23
  { value: "ar", label: "عربي" },
@@ -20,8 +25,11 @@ export const InterfaceSettings: FC<TypographyTypes> = (props) => {
20
25
  ]}
21
26
  />
22
27
  <HawaRadio
23
- defaultValue={props.currentColorMode}
24
- onChangeTab={props.handleColorMode}
28
+ defaultValue={color}
29
+ onChangeTab={(e) => {
30
+ props.handleColorMode(e)
31
+ setColor(e)
32
+ }}
25
33
  design="tabs"
26
34
  options={[
27
35
  {
package/src/styles.css CHANGED
@@ -2072,6 +2072,10 @@ video {
2072
2072
  padding-left: 0.375rem;
2073
2073
  padding-right: 0.375rem;
2074
2074
  }
2075
+ .px-10 {
2076
+ padding-left: 2.5rem;
2077
+ padding-right: 2.5rem;
2078
+ }
2075
2079
  .px-2 {
2076
2080
  padding-left: 0.5rem;
2077
2081
  padding-right: 0.5rem;
@@ -26,5 +26,16 @@
26
26
  "signInViaTwitterLabel": "الدخول بواسطة Twitter",
27
27
  "signUpViaGoogleLabel": "التسجيل بواسطة Google",
28
28
  "signUpViaGithubLabel": "التسجيل بواسطة Github",
29
- "signUpViaTwitterLabel": "التسجيل بواسطة Twitter"
29
+ "signUpViaTwitterLabel": "التسجيل بواسطة Twitter",
30
+
31
+ "fullNameRequiredText": "الإسم الكامل مطلوب",
32
+ "passwordTooShortText": "كلمة المرور قصيرة",
33
+ "subscribeToNewsletter": "إشترك في النشرة الإخبارية",
34
+ "confirmPasswordLabel": "تأكيد كلمة المرور",
35
+ "confirmPasswordPlaceholder": "تأكيد كلمة المرور",
36
+ "iAcceptText": "أوافق على",
37
+ "termsText": "الشروط والأحكام",
38
+ "termsRequiredText": "يجب الموافقة على الشروط والأحكام للإستمرار",
39
+ "existingUserText": "لديك حساب؟",
40
+ "refCode": "رمز الإحالة"
30
41
  }
@@ -25,5 +25,16 @@
25
25
  "signInViaTwitterLabel": "Sign in with Twitter",
26
26
  "signUpViaGoogleLabel": "Sign up with Google",
27
27
  "signUpViaGithubLabel": "Sign up with Github",
28
- "signUpViaTwitterLabel": "Sign up with Twitter"
28
+ "signUpViaTwitterLabel": "Sign up with Twitter",
29
+
30
+ "fullNameRequiredText": "Full name is required",
31
+ "passwordTooShortText": "Password too short",
32
+ "subscribeToNewsletter": "Subscribe to newsletter?",
33
+ "confirmPasswordLabel": "Confirm Password",
34
+ "confirmPasswordPlaceholder": "Minimum 8 characters",
35
+ "iAcceptText": "I accept the",
36
+ "termsText": "terms & conditions",
37
+ "termsRequiredText": "you must accept the terms & conditions",
38
+ "existingUserText": "Existing User?",
39
+ "refCode": "Referral Code"
29
40
  }