@sikka/hawa 0.1.55 → 0.1.57

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.
@@ -0,0 +1,100 @@
1
+ name: Bug Report
2
+ description: Create a bug report to help us improve the Hawa UI Kit
3
+ labels: ['template: bug']
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
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.
9
+
10
+ If you have feature requests or ideas, please open a [discussion](https://github.com/sikka-software/Hawa/discussions/new?category=ideas) instead.
11
+
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)
15
+ - type: input
16
+ attributes:
17
+ label: Link to the code that reproduces this issue or a replay of the bug
18
+ description: |
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.
20
+
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.
22
+
23
+ **Skipping this/providing an invalid link will result in the issue being closed**
24
+ placeholder: 'https://github.com/user/my-minimal-hawa-ui-kit-issue-reproduction'
25
+ validations:
26
+ required: true
27
+ - type: textarea
28
+ attributes:
29
+ label: To Reproduce
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.
31
+ placeholder: |
32
+ 1. Start the application in development mode
33
+ 2. Click on X component
34
+ 3. Y unexpected behavior occurs
35
+ validations:
36
+ required: true
37
+ - type: textarea
38
+ attributes:
39
+ label: Current vs. Expected behavior
40
+ description: A clear and concise description of what the bug is, and what you expected to happen.
41
+ placeholder: 'Following the steps from the previous section, I expected A to happen, but observed B instead'
42
+ validations:
43
+ required: true
44
+ - type: checkboxes
45
+ attributes:
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.'
48
+ options:
49
+ - label: I verified that the issue exists in the latest Hawa UI Kit release
50
+ required: true
51
+ - type: textarea
52
+ attributes:
53
+ label: Provide environment information
54
+ description: Please provide information about your development environment including operating system, Node.js version, npm/Yarn version, and any other relevant details.
55
+ render: bash
56
+ placeholder: |
57
+ Operating System:
58
+ Platform: Windows
59
+ Version: 10.0.19043 Build 19043
60
+ Binaries:
61
+ Node: 14.17.1
62
+ npm: 6.14.13
63
+ Relevant Packages:
64
+ hawa-ui-kit: 1.0.0
65
+ react: 17.0.2
66
+ typescript: 4.3.5
67
+ validations:
68
+ required: true
69
+ - type: dropdown
70
+ attributes:
71
+ label: Which area(s) are affected? (Select all that apply)
72
+ multiple: true
73
+ options:
74
+ - 'Not sure'
75
+ - 'Components'
76
+ - 'Styles'
77
+ - 'Documentation'
78
+ - 'Build and Deployment'
79
+ - 'Examples'
80
+ - 'Other'
81
+ validations:
82
+ required: true
83
+ - type: dropdown
84
+ attributes:
85
+ label: Which section is the component from?
86
+ multiple: false
87
+ options:
88
+ - 'Blocks'
89
+ - 'Layout'
90
+ - 'Elements'
91
+ - 'Other'
92
+ validations:
93
+ required: false
94
+ - type: textarea
95
+ attributes:
96
+ label: Additional context
97
+ description: |
98
+ 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.
99
+ placeholder: |
100
+ 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.
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: Custom issue template
3
+ about: Describe this issue template's purpose here.
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
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?: ActionItems[][];
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 ActionItems = {
223
- icon?: JSX.Element;
222
+ type Item$5 = {
224
223
  label: string;
225
- action?: (e: any) => void;
226
- isButton?: boolean;
227
- element?: any;
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?: ActionItems[][];
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 ActionItems = {
223
- icon?: JSX.Element;
222
+ type Item$5 = {
224
223
  label: string;
225
- action?: (e: any) => void;
226
- isButton?: boolean;
227
- element?: any;
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;