@sikka/hawa 0.0.284 → 0.0.286

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.
@@ -1 +1,21 @@
1
+ import React from "react";
1
2
  import "../stories-styles.css";
3
+ declare const _default: {
4
+ parameters: {
5
+ chromatic: {
6
+ disableSnapshot: boolean;
7
+ };
8
+ controls: {
9
+ expand: boolean;
10
+ disable: boolean;
11
+ hideNoControlsWarning: boolean;
12
+ exclude: any[];
13
+ };
14
+ options: {
15
+ showPanel: boolean;
16
+ };
17
+ };
18
+ title: string;
19
+ };
20
+ export default _default;
21
+ export declare const Introduction: () => React.JSX.Element;
@@ -1 +1,21 @@
1
+ import React from "react";
1
2
  import "../stories-styles.css";
3
+ declare const _default: {
4
+ parameters: {
5
+ chromatic: {
6
+ disableSnapshot: boolean;
7
+ };
8
+ controls: {
9
+ expand: boolean;
10
+ disable: boolean;
11
+ hideNoControlsWarning: boolean;
12
+ exclude: any[];
13
+ };
14
+ options: {
15
+ showPanel: boolean;
16
+ };
17
+ };
18
+ title: string;
19
+ };
20
+ export default _default;
21
+ export declare const Customization: () => React.JSX.Element;
@@ -1 +1,21 @@
1
+ import React from "react";
1
2
  import "../stories-styles.css";
3
+ declare const _default: {
4
+ parameters: {
5
+ chromatic: {
6
+ disableSnapshot: boolean;
7
+ };
8
+ controls: {
9
+ expand: boolean;
10
+ disable: boolean;
11
+ hideNoControlsWarning: boolean;
12
+ exclude: any[];
13
+ };
14
+ options: {
15
+ showPanel: boolean;
16
+ };
17
+ };
18
+ title: string;
19
+ };
20
+ export default _default;
21
+ export declare const Introduction: () => React.JSX.Element;
@@ -1 +1,21 @@
1
+ import React from "react";
1
2
  import "../stories-styles.css";
3
+ declare const _default: {
4
+ parameters: {
5
+ chromatic: {
6
+ disableSnapshot: boolean;
7
+ };
8
+ controls: {
9
+ expand: boolean;
10
+ disable: boolean;
11
+ hideNoControlsWarning: boolean;
12
+ exclude: any[];
13
+ };
14
+ options: {
15
+ showPanel: boolean;
16
+ };
17
+ };
18
+ title: string;
19
+ };
20
+ export default _default;
21
+ export declare const Installation: () => React.JSX.Element;
@@ -1 +1,21 @@
1
+ import React from "react";
1
2
  import "../stories-styles.css";
3
+ declare const _default: {
4
+ parameters: {
5
+ chromatic: {
6
+ disableSnapshot: boolean;
7
+ };
8
+ controls: {
9
+ expand: boolean;
10
+ disable: boolean;
11
+ hideNoControlsWarning: boolean;
12
+ exclude: any[];
13
+ };
14
+ options: {
15
+ showPanel: boolean;
16
+ };
17
+ };
18
+ title: string;
19
+ };
20
+ export default _default;
21
+ export declare const Introduction: () => React.JSX.Element;
@@ -1,16 +1,18 @@
1
1
  import React from "react";
2
2
  import "../stories-styles.css";
3
3
  declare const _default: {
4
- controls: {
5
- hideNoControlsWarning: boolean;
6
- exclude: any[];
7
- };
8
4
  parameters: {
9
- customIcon: () => React.JSX.Element;
10
- toolbar: {
11
- visibility: string;
5
+ chromatic: {
6
+ disableSnapshot: boolean;
12
7
  };
13
- layout: string;
8
+ controls: {
9
+ expand: boolean;
10
+ disable: boolean;
11
+ hideNoControlsWarning: boolean;
12
+ exclude: any[];
13
+ };
14
+ className: string;
15
+ customIcon: () => React.JSX.Element;
14
16
  options: {
15
17
  showPanel: boolean;
16
18
  };
@@ -1 +1,21 @@
1
+ import React from "react";
1
2
  import "../stories-styles.css";
3
+ declare const _default: {
4
+ parameters: {
5
+ chromatic: {
6
+ disableSnapshot: boolean;
7
+ };
8
+ controls: {
9
+ expand: boolean;
10
+ disable: boolean;
11
+ hideNoControlsWarning: boolean;
12
+ exclude: any[];
13
+ };
14
+ options: {
15
+ showPanel: boolean;
16
+ };
17
+ };
18
+ title: string;
19
+ };
20
+ export default _default;
21
+ export declare const Usage: () => React.JSX.Element;
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.284",
3
+ "version": "0.0.286",
4
4
  "description": "SaaS Oriented UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
7
- "author": "Sikka Software <contact@sikka.io> (http://sikka.io)",
7
+ "author": {
8
+ "name": "Sikka Software",
9
+ "email": "contact@sikka.io",
10
+ "url": "http://sikka.io"
11
+ },
8
12
  "license": "MIT",
9
13
  "keywords": [
10
14
  "ui",
@@ -16,7 +20,7 @@
16
20
  ],
17
21
  "repository": {
18
22
  "type": "git",
19
- "url": "https://github.com/sikka-software/hawa.git"
23
+ "url": "git+https://github.com/sikka-software/hawa.git"
20
24
  },
21
25
  "bugs": {
22
26
  "url": "https://github.com/sikka-software/hawa/issues",
@@ -31,7 +35,8 @@
31
35
  "deploy-storybook": "storybook-to-ghpages",
32
36
  "build-storybook": "build-storybook -o ./docs/documentation",
33
37
  "build-lib": "rollup -c",
34
- "build:styles": " node tools/build-styles"
38
+ "build:styles": " node tools/build-styles",
39
+ "chromatic": "npx chromatic --project-token=chpt_9c33d11ef14064f --output-dir ./docs/documentation"
35
40
  },
36
41
  "devDependencies": {
37
42
  "@babel/core": "^7.12.10",
@@ -56,6 +61,7 @@
56
61
  "@types/react": "^18.0.25",
57
62
  "@types/react-dom": "^18.0.9",
58
63
  "babel-loader": "^8.2.2",
64
+ "chromatic": "^6.22.0",
59
65
  "framer-motion": "^4.1.7",
60
66
  "html-webpack-plugin": "^5.5.0",
61
67
  "postcss": "^8.4.18",
@@ -109,5 +115,7 @@
109
115
  "react-select": "^5.3.2",
110
116
  "slate": "^0.94.1",
111
117
  "slate-react": "^0.97.1"
112
- }
118
+ },
119
+ "readme": "ERROR: No README data found!",
120
+ "_id": "@sikka/hawa@0.0.285"
113
121
  }
@@ -83,6 +83,7 @@ export const UserProfileForm: FC<UserProfileFormTypes> = (props) => {
83
83
  required: props.texts.passwordRequiredText,
84
84
  }}
85
85
  />
86
+
86
87
  <Controller
87
88
  control={control}
88
89
  name="confirmPassword"
@@ -101,49 +102,8 @@ export const UserProfileForm: FC<UserProfileFormTypes> = (props) => {
101
102
  required: props.texts.confirmPasswordRequiredText,
102
103
  }}
103
104
  />
104
- {inputs.length > 0 &&
105
- inputs.map((singleInput: any) => {
106
- if (singleInput.type === "textArea") {
107
- return (
108
- <Controller
109
- control={control}
110
- name={singleInput.name}
111
- render={({ field }) => (
112
- <HawaTextField
113
- width="full"
114
- type="text"
115
- defaultValue={singleInput.defaultValue ?? null}
116
- label={singleInput.label ?? null}
117
- placeholder={singleInput.placeHolder ?? null}
118
- />
119
- )}
120
- rules={singleInput.rules ?? null}
121
- />
122
- )
123
- }
124
- return (
125
- <Controller
126
- control={control}
127
- name={singleInput.name}
128
- render={({ field }) => (
129
- <HawaTextField
130
- width="full"
131
- type={singleInput.type}
132
- defaultValue={singleInput.defaultValue ?? null}
133
- label={singleInput.label ?? null}
134
- placeholder={singleInput.placeHolder ?? null}
135
- />
136
- )}
137
- rules={singleInput.rules ?? null}
138
- />
139
- )
140
- })}
141
105
 
142
- <HawaButton
143
- color="primary"
144
- width="full"
145
- // type="submit"
146
- >
106
+ <HawaButton color="primary" width="full">
147
107
  {props.texts.updateProfile}
148
108
  </HawaButton>
149
109
  </form>
@@ -27,6 +27,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
27
27
  isLoading?: boolean
28
28
  badge?: any
29
29
  edgeCorner?: any
30
+ disabled?: boolean
30
31
  }
31
32
 
32
33
  const disabledSyles = "cursor-default pointer-events-none"
@@ -71,7 +72,8 @@ const colorStyles = {
71
72
  dark: "text-neutral-900 bg-gray-200 hover:bg-gray-300",
72
73
  },
73
74
  outlined: {
74
- default: "text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",
75
+ default:
76
+ "text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",
75
77
  primary: "text-black hover:bg-gray-50 dark:text-white",
76
78
  secondary:
77
79
  " dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",
@@ -73,9 +73,7 @@ export const HawaPhoneInput: FC<HawaPhoneInputTypes> = (props) => {
73
73
  return (
74
74
  <div className="mb-3 flex flex-col">
75
75
  {props.label && (
76
- <label className="mb-2 block text-sm font-medium text-gray-900 dark:text-white">
77
- {props.label}
78
- </label>
76
+ <label className="mb-2 block text-sm font-medium">{props.label}</label>
79
77
  )}
80
78
  <div dir="ltr" className="flex flex-row ">
81
79
  <Select
@@ -157,8 +155,10 @@ export const HawaPhoneInput: FC<HawaPhoneInputTypes> = (props) => {
157
155
  placeholder="531045453"
158
156
  // text-gray-900 dark:text-gray-300
159
157
  // dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500
160
- className="block w-full appearance-none rounded rounded-l-none border border-l-0
161
- bg-background p-2 text-[0.875rem] text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:text-white "
158
+ className="block w-full rounded-r border bg-background p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500"
159
+
160
+ // className="block w-full appearance-none rounded rounded-l-none border border-l-0
161
+ // bg-background p-2 text-[0.875rem] text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:text-white "
162
162
  />
163
163
  {props.helperText && (
164
164
  <p className="mb-1 mt-1 text-xs text-red-600 dark:text-red-500">
@@ -64,7 +64,7 @@ export const HawaTextField: FC<TextFieldTypes> = ({
64
64
  {props.label && (
65
65
  <label
66
66
  // htmlFor="first_name"
67
- className="mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"
67
+ className="mb-2 block text-sm font-medium "
68
68
  >
69
69
  {props.label}
70
70
  </label>