@sikka/hawa 0.1.55 → 0.1.56
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/.github/ISSUE_TEMPLATE.yml +33 -61
- package/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +520 -528
- package/dist/index.mjs +778 -782
- package/package.json +1 -1
- package/src/elements/DropdownMenu.tsx +14 -4
- package/src/elements/HawaTable.tsx +298 -147
|
@@ -1,77 +1,69 @@
|
|
|
1
1
|
name: Bug Report
|
|
2
|
-
description: Create a bug report
|
|
2
|
+
description: Create a bug report to help us improve the Hawa UI Kit
|
|
3
3
|
labels: ['template: bug']
|
|
4
4
|
body:
|
|
5
5
|
- type: markdown
|
|
6
6
|
attributes:
|
|
7
7
|
value: |
|
|
8
|
-
This template is to report
|
|
9
|
-
Feature requests should be opened as [discussions](https://github.com/vercel/next.js/discussions/new?category=ideas). [Read more](https://github.com/vercel/next.js/blob/canary/contributing/core/adding-features.md).
|
|
8
|
+
This template is to report bugs specific to the Hawa UI Kit. Before opening a new issue, please do a [search](https://github.com/sikka-software/Hawa/issues) of existing issues and :+1: upvote the existing issue instead. This will result in a quicker resolution.
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
If you have feature requests or ideas, please open a [discussion](https://github.com/sikka-software/Hawa/discussions/new?category=ideas) instead.
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
- Start a discussion in the ["Help" section](https://github.com/
|
|
15
|
-
-
|
|
12
|
+
For general help and support, you can:
|
|
13
|
+
- Start a discussion in the ["Help" section](https://github.com/sikka-software/Hawa/discussions/categories/help)
|
|
14
|
+
- Join our community [Discord server](https://discord.com/invite/your-discord-link-here) (replace with your actual Discord link)
|
|
16
15
|
- type: input
|
|
17
16
|
attributes:
|
|
18
17
|
label: Link to the code that reproduces this issue or a replay of the bug
|
|
19
18
|
description: |
|
|
20
|
-
|
|
19
|
+
Please provide a link to a **public** [GitHub repository](https://github.com/sikka-software/Hawa/tree/main/examples/reproduction-template) or a minimal reproduction created from our [bug report template](https://github.com/sikka-software/Hawa/tree/main/examples/reproduction-template). Include only changes that contribute to the issue.
|
|
21
20
|
|
|
22
21
|
If a minimal reproduction can't be created, please share a [replay](https://www.replay.io/) of the bug which doesn't require sharing a private repo.
|
|
23
22
|
|
|
24
23
|
**Skipping this/providing an invalid link will result in the issue being closed**
|
|
25
|
-
placeholder: 'https://github.com/user/my-minimal-
|
|
24
|
+
placeholder: 'https://github.com/user/my-minimal-hawa-ui-kit-issue-reproduction'
|
|
26
25
|
validations:
|
|
27
26
|
required: true
|
|
28
27
|
- type: textarea
|
|
29
28
|
attributes:
|
|
30
29
|
label: To Reproduce
|
|
31
|
-
description: A step-by-step description of how to reproduce the issue, based on the linked reproduction. Screenshots can be provided in the issue body below. If using code blocks,
|
|
30
|
+
description: A step-by-step description of how to reproduce the issue, based on the linked reproduction. Screenshots can be provided in the issue body below. If using code blocks, ensure that [syntax highlighting is correct](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting) and double check that the rendered preview is not broken.
|
|
32
31
|
placeholder: |
|
|
33
|
-
1. Start the application in development
|
|
34
|
-
2. Click X
|
|
35
|
-
3. Y
|
|
32
|
+
1. Start the application in development mode
|
|
33
|
+
2. Click on X component
|
|
34
|
+
3. Y unexpected behavior occurs
|
|
36
35
|
validations:
|
|
37
36
|
required: true
|
|
38
37
|
- type: textarea
|
|
39
38
|
attributes:
|
|
40
39
|
label: Current vs. Expected behavior
|
|
41
40
|
description: A clear and concise description of what the bug is, and what you expected to happen.
|
|
42
|
-
placeholder: 'Following the steps from the previous section, I expected A to happen, but
|
|
41
|
+
placeholder: 'Following the steps from the previous section, I expected A to happen, but observed B instead'
|
|
43
42
|
validations:
|
|
44
43
|
required: true
|
|
45
44
|
- type: checkboxes
|
|
46
45
|
attributes:
|
|
47
|
-
label: Verify
|
|
48
|
-
description: 'Please
|
|
46
|
+
label: Verify latest release
|
|
47
|
+
description: 'Please ensure you have tested the latest release of the Hawa UI Kit. Some issues may already be fixed in the latest version, so verify that your issue persists before opening a new issue.'
|
|
49
48
|
options:
|
|
50
|
-
- label: I verified that the issue exists in the latest
|
|
49
|
+
- label: I verified that the issue exists in the latest Hawa UI Kit release
|
|
51
50
|
required: true
|
|
52
51
|
- type: textarea
|
|
53
52
|
attributes:
|
|
54
53
|
label: Provide environment information
|
|
55
|
-
description: Please
|
|
54
|
+
description: Please provide information about your development environment including operating system, Node.js version, npm/Yarn version, and any other relevant details.
|
|
56
55
|
render: bash
|
|
57
56
|
placeholder: |
|
|
58
57
|
Operating System:
|
|
59
|
-
Platform:
|
|
60
|
-
|
|
61
|
-
Version: Darwin Kernel Version 22.5.0
|
|
58
|
+
Platform: Windows
|
|
59
|
+
Version: 10.0.19043 Build 19043
|
|
62
60
|
Binaries:
|
|
63
|
-
Node:
|
|
64
|
-
npm:
|
|
65
|
-
Yarn: 1.22.19
|
|
66
|
-
pnpm: N/A
|
|
61
|
+
Node: 14.17.1
|
|
62
|
+
npm: 6.14.13
|
|
67
63
|
Relevant Packages:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
react-dom: 18.2.0
|
|
72
|
-
typescript: 5.2.2
|
|
73
|
-
Next.js Config:
|
|
74
|
-
output: N/A
|
|
64
|
+
hawa-ui-kit: 1.0.0
|
|
65
|
+
react: 17.0.2
|
|
66
|
+
typescript: 4.3.5
|
|
75
67
|
validations:
|
|
76
68
|
required: true
|
|
77
69
|
- type: dropdown
|
|
@@ -80,42 +72,22 @@ body:
|
|
|
80
72
|
multiple: true
|
|
81
73
|
options:
|
|
82
74
|
- 'Not sure'
|
|
83
|
-
- '
|
|
84
|
-
- '
|
|
85
|
-
- '
|
|
86
|
-
- '
|
|
87
|
-
- '
|
|
88
|
-
- '
|
|
89
|
-
- 'Image optimization (next/image, next/legacy/image)'
|
|
90
|
-
- 'Internationalization (i18n)'
|
|
91
|
-
- 'Jest (next/jest)'
|
|
92
|
-
- 'MDX (@next/mdx)'
|
|
93
|
-
- 'Metadata (metadata, generateMetadata, next/head)'
|
|
94
|
-
- 'Middleware / Edge (API routes, runtime)'
|
|
95
|
-
- 'Operating System (Windows, MacOS, Linux)'
|
|
96
|
-
- 'Package manager (npm, pnpm, Yarn)'
|
|
97
|
-
- 'Routing (next/router, next/navigation, next/link)'
|
|
98
|
-
- 'Script optimization (next/script)'
|
|
99
|
-
- 'Standalone mode (output: "standalone")'
|
|
100
|
-
- 'Static HTML Export (output: "export")'
|
|
101
|
-
- 'SWC minifier (swcMinify: true)'
|
|
102
|
-
- 'SWC transpilation'
|
|
103
|
-
- 'Turbopack (--turbo)'
|
|
104
|
-
- 'TypeScript (plugin, built-in types)'
|
|
75
|
+
- 'Components'
|
|
76
|
+
- 'Styles'
|
|
77
|
+
- 'Documentation'
|
|
78
|
+
- 'Build and Deployment'
|
|
79
|
+
- 'Examples'
|
|
80
|
+
- 'Other'
|
|
105
81
|
validations:
|
|
106
82
|
required: true
|
|
107
|
-
- type: markdown
|
|
108
|
-
attributes:
|
|
109
|
-
value: |
|
|
110
|
-
Another way you can help the maintainers' job is to pinpoint the `canary` version of `next` that introduced the issue. Check out our [releases](https://github.com/vercel/next.js/releases), and try to find the first `canary` release that introduced the issue. This will help us narrow down the scope of the issue, and possibly point to the PR/code change that introduced it. You can install a specific version of `next` by running `npm install next@<version>`.
|
|
111
83
|
- type: textarea
|
|
112
84
|
attributes:
|
|
113
85
|
label: Additional context
|
|
114
86
|
description: |
|
|
115
|
-
Any extra information that might help us investigate. For example,
|
|
87
|
+
Any extra information that might help us investigate. For example, browser details, hosting platform, etc. Also, if possible, pinpoint the version that introduced the issue to help narrow down the scope.
|
|
116
88
|
placeholder: |
|
|
117
|
-
|
|
89
|
+
The issue seems to have started from version 1.0.1. I tested it on both Chrome and Firefox, and the issue persists on both browsers.
|
|
118
90
|
|
|
119
91
|
or
|
|
120
92
|
|
|
121
|
-
I am hosting
|
|
93
|
+
I am hosting the application on Vercel, and the issue seems to be specific to the hosted version, as I cannot reproduce it locally.
|
package/dist/index.d.mts
CHANGED
|
@@ -197,7 +197,7 @@ type ColTypes = {
|
|
|
197
197
|
type TableTypes = {
|
|
198
198
|
pagination?: boolean;
|
|
199
199
|
columns: ColTypes[];
|
|
200
|
-
actions?:
|
|
200
|
+
actions?: Item$5[];
|
|
201
201
|
direction?: "rtl" | "ltr";
|
|
202
202
|
rows?: RowTypes[][];
|
|
203
203
|
handleActionClick?: any;
|
|
@@ -219,12 +219,11 @@ type TableTypes = {
|
|
|
219
219
|
headerTools?: boolean;
|
|
220
220
|
borders?: "all" | "cols" | "rows" | "outer" | "inner";
|
|
221
221
|
};
|
|
222
|
-
type
|
|
223
|
-
icon?: JSX.Element;
|
|
222
|
+
type Item$5 = {
|
|
224
223
|
label: string;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
224
|
+
value: string;
|
|
225
|
+
action?: () => void;
|
|
226
|
+
highlighted?: boolean;
|
|
228
227
|
};
|
|
229
228
|
declare const HawaTable: FC<TableTypes>;
|
|
230
229
|
|
|
@@ -807,10 +806,12 @@ type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef
|
|
|
807
806
|
type SubItem$3 = {
|
|
808
807
|
label: string;
|
|
809
808
|
value: string;
|
|
809
|
+
icon?: any;
|
|
810
810
|
action?: () => void;
|
|
811
811
|
highlighted?: boolean;
|
|
812
812
|
};
|
|
813
813
|
type Item$3 = {
|
|
814
|
+
icon?: any;
|
|
814
815
|
label: string;
|
|
815
816
|
value: string;
|
|
816
817
|
action?: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -197,7 +197,7 @@ type ColTypes = {
|
|
|
197
197
|
type TableTypes = {
|
|
198
198
|
pagination?: boolean;
|
|
199
199
|
columns: ColTypes[];
|
|
200
|
-
actions?:
|
|
200
|
+
actions?: Item$5[];
|
|
201
201
|
direction?: "rtl" | "ltr";
|
|
202
202
|
rows?: RowTypes[][];
|
|
203
203
|
handleActionClick?: any;
|
|
@@ -219,12 +219,11 @@ type TableTypes = {
|
|
|
219
219
|
headerTools?: boolean;
|
|
220
220
|
borders?: "all" | "cols" | "rows" | "outer" | "inner";
|
|
221
221
|
};
|
|
222
|
-
type
|
|
223
|
-
icon?: JSX.Element;
|
|
222
|
+
type Item$5 = {
|
|
224
223
|
label: string;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
224
|
+
value: string;
|
|
225
|
+
action?: () => void;
|
|
226
|
+
highlighted?: boolean;
|
|
228
227
|
};
|
|
229
228
|
declare const HawaTable: FC<TableTypes>;
|
|
230
229
|
|
|
@@ -807,10 +806,12 @@ type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef
|
|
|
807
806
|
type SubItem$3 = {
|
|
808
807
|
label: string;
|
|
809
808
|
value: string;
|
|
809
|
+
icon?: any;
|
|
810
810
|
action?: () => void;
|
|
811
811
|
highlighted?: boolean;
|
|
812
812
|
};
|
|
813
813
|
type Item$3 = {
|
|
814
|
+
icon?: any;
|
|
814
815
|
label: string;
|
|
815
816
|
value: string;
|
|
816
817
|
action?: () => void;
|