@sikka/hawa 0.0.239 → 0.0.240
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/dist/styles.css +29 -16
- package/docs/README.md +2 -4
- package/es/elements/ArrowCarousel.d.ts +2 -2
- package/es/elements/Breadcrumb.d.ts +10 -7
- package/es/elements/DragDropImages.d.ts +9 -3
- package/es/elements/HawaAccordion.d.ts +11 -0
- package/es/elements/HawaAlert.d.ts +3 -2
- package/es/index.es.js +2 -2
- package/lib/elements/ArrowCarousel.d.ts +2 -2
- package/lib/elements/Breadcrumb.d.ts +10 -7
- package/lib/elements/DragDropImages.d.ts +9 -3
- package/lib/elements/HawaAccordion.d.ts +11 -0
- package/lib/elements/HawaAlert.d.ts +3 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
- package/src/elements/ArrowCarousel.tsx +37 -28
- package/src/elements/Breadcrumb.tsx +12 -13
- package/src/elements/DragDropImages.tsx +10 -4
- package/src/elements/HawaAccordion.tsx +23 -47
- package/src/elements/HawaAlert.tsx +4 -2
- package/src/elements/HawaTextField.tsx +7 -3
- package/src/styles.css +29 -16
package/dist/styles.css
CHANGED
|
@@ -594,6 +594,9 @@ video {
|
|
|
594
594
|
.bottom-0 {
|
|
595
595
|
bottom: 0px;
|
|
596
596
|
}
|
|
597
|
+
.bottom-1 {
|
|
598
|
+
bottom: 0.25rem;
|
|
599
|
+
}
|
|
597
600
|
.bottom-4 {
|
|
598
601
|
bottom: 1rem;
|
|
599
602
|
}
|
|
@@ -672,6 +675,9 @@ video {
|
|
|
672
675
|
.m-3 {
|
|
673
676
|
margin: 0.75rem;
|
|
674
677
|
}
|
|
678
|
+
.m-5 {
|
|
679
|
+
margin: 1.25rem;
|
|
680
|
+
}
|
|
675
681
|
.mx-1 {
|
|
676
682
|
margin-left: 0.25rem;
|
|
677
683
|
margin-right: 0.25rem;
|
|
@@ -696,6 +702,10 @@ video {
|
|
|
696
702
|
margin-top: 1rem;
|
|
697
703
|
margin-bottom: 1rem;
|
|
698
704
|
}
|
|
705
|
+
.my-8 {
|
|
706
|
+
margin-top: 2rem;
|
|
707
|
+
margin-bottom: 2rem;
|
|
708
|
+
}
|
|
699
709
|
.-mb-px {
|
|
700
710
|
margin-bottom: -1px;
|
|
701
711
|
}
|
|
@@ -1122,6 +1132,11 @@ video {
|
|
|
1122
1132
|
.cursor-pointer {
|
|
1123
1133
|
cursor: pointer;
|
|
1124
1134
|
}
|
|
1135
|
+
.select-none {
|
|
1136
|
+
-webkit-user-select: none;
|
|
1137
|
+
-moz-user-select: none;
|
|
1138
|
+
user-select: none;
|
|
1139
|
+
}
|
|
1125
1140
|
.resize-none {
|
|
1126
1141
|
resize: none;
|
|
1127
1142
|
}
|
|
@@ -1196,9 +1211,6 @@ video {
|
|
|
1196
1211
|
.gap-20 {
|
|
1197
1212
|
gap: 5rem;
|
|
1198
1213
|
}
|
|
1199
|
-
.gap-3 {
|
|
1200
|
-
gap: 0.75rem;
|
|
1201
|
-
}
|
|
1202
1214
|
.gap-4 {
|
|
1203
1215
|
gap: 1rem;
|
|
1204
1216
|
}
|
|
@@ -1314,10 +1326,6 @@ video {
|
|
|
1314
1326
|
border-bottom-right-radius: 0.5rem;
|
|
1315
1327
|
border-bottom-left-radius: 0.5rem;
|
|
1316
1328
|
}
|
|
1317
|
-
.rounded-b-xl {
|
|
1318
|
-
border-bottom-right-radius: 0.75rem;
|
|
1319
|
-
border-bottom-left-radius: 0.75rem;
|
|
1320
|
-
}
|
|
1321
1329
|
.rounded-l {
|
|
1322
1330
|
border-top-left-radius: var(--border-radius);
|
|
1323
1331
|
border-bottom-left-radius: var(--border-radius);
|
|
@@ -1342,10 +1350,6 @@ video {
|
|
|
1342
1350
|
border-top-left-radius: 0.5rem;
|
|
1343
1351
|
border-top-right-radius: 0.5rem;
|
|
1344
1352
|
}
|
|
1345
|
-
.rounded-t-xl {
|
|
1346
|
-
border-top-left-radius: 0.75rem;
|
|
1347
|
-
border-top-right-radius: 0.75rem;
|
|
1348
|
-
}
|
|
1349
1353
|
.rounded-bl {
|
|
1350
1354
|
border-bottom-left-radius: var(--border-radius);
|
|
1351
1355
|
}
|
|
@@ -1766,6 +1770,9 @@ video {
|
|
|
1766
1770
|
.pt-0 {
|
|
1767
1771
|
padding-top: 0px;
|
|
1768
1772
|
}
|
|
1773
|
+
.pt-2 {
|
|
1774
|
+
padding-top: 0.5rem;
|
|
1775
|
+
}
|
|
1769
1776
|
.pt-3 {
|
|
1770
1777
|
padding-top: 0.75rem;
|
|
1771
1778
|
}
|
|
@@ -2179,6 +2186,12 @@ body {
|
|
|
2179
2186
|
width: 10rem;
|
|
2180
2187
|
}
|
|
2181
2188
|
|
|
2189
|
+
.hover\:scale-150:hover {
|
|
2190
|
+
--tw-scale-x: 1.5;
|
|
2191
|
+
--tw-scale-y: 1.5;
|
|
2192
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2182
2195
|
.hover\:cursor-pointer:hover {
|
|
2183
2196
|
cursor: pointer;
|
|
2184
2197
|
}
|
|
@@ -2250,11 +2263,6 @@ body {
|
|
|
2250
2263
|
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
2251
2264
|
}
|
|
2252
2265
|
|
|
2253
|
-
.hover\:text-gray-500:hover {
|
|
2254
|
-
--tw-text-opacity: 1;
|
|
2255
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
2256
|
-
}
|
|
2257
|
-
|
|
2258
2266
|
.hover\:text-gray-900:hover {
|
|
2259
2267
|
--tw-text-opacity: 1;
|
|
2260
2268
|
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
@@ -2342,6 +2350,11 @@ body {
|
|
|
2342
2350
|
--tw-ring-color: rgb(249 250 251 / var(--tw-ring-opacity));
|
|
2343
2351
|
}
|
|
2344
2352
|
|
|
2353
|
+
.disabled\:bg-gray-200:disabled {
|
|
2354
|
+
--tw-bg-opacity: 1;
|
|
2355
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2345
2358
|
.peer:checked ~ .peer-checked\:bg-buttonPrimary-500 {
|
|
2346
2359
|
background-color: var(--button-primary-500);
|
|
2347
2360
|
}
|
package/docs/README.md
CHANGED
|
@@ -9,16 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
> Opinionated UI Kit for web apps and websites built with TailwindCSS
|
|
11
11
|
|
|
12
|
+
[hawa.style](https://hawa.style)
|
|
13
|
+
|
|
12
14
|
## Install
|
|
13
15
|
|
|
14
16
|
```bash
|
|
15
17
|
npm install --save @sikka/hawa
|
|
16
18
|
```
|
|
17
19
|
|
|
18
|
-
# Roadmap
|
|
19
|
-
|
|
20
|
-
- Organize code
|
|
21
|
-
|
|
22
20
|
</br>
|
|
23
21
|
|
|
24
22
|
# Contributing
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
2
|
type Item = {
|
|
3
3
|
label?: string;
|
|
4
4
|
icon?: JSX.Element;
|
|
@@ -9,5 +9,5 @@ type ComponentTypes = {
|
|
|
9
9
|
arrowSize?: number;
|
|
10
10
|
labelSize?: "small" | "medium" | "big";
|
|
11
11
|
};
|
|
12
|
-
export declare const ArrowCarousel:
|
|
12
|
+
export declare const ArrowCarousel: FunctionComponent<ComponentTypes>;
|
|
13
13
|
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
type TBreadcrumItem = {
|
|
3
|
-
label: string;
|
|
4
|
-
href: string;
|
|
5
|
-
};
|
|
6
2
|
type TBreadcrumb = {
|
|
7
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The array of crumbs, each one with a label and a href link
|
|
5
|
+
*/
|
|
6
|
+
breadcrumbLinks: [{
|
|
7
|
+
label: string;
|
|
8
|
+
href: string;
|
|
9
|
+
}];
|
|
10
|
+
/** The separator between each crumb, can be character or React Node */
|
|
8
11
|
separator?: string | ReactNode;
|
|
9
12
|
};
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
13
|
+
declare const HawaBreadcrumb: FC<TBreadcrumb>;
|
|
14
|
+
export default HawaBreadcrumb;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type DragDropImagesTypes = {
|
|
3
|
+
/**
|
|
4
|
+
* The text label above the component. Consistant with the other form input fields
|
|
5
|
+
*/
|
|
3
6
|
label?: string;
|
|
4
7
|
files: [File];
|
|
5
8
|
setFiles: any;
|
|
@@ -9,15 +12,18 @@ type DragDropImagesTypes = {
|
|
|
9
12
|
onAcceptedFiles: any;
|
|
10
13
|
showPreview: any;
|
|
11
14
|
onDeleteFile: any;
|
|
15
|
+
onClearFiles: any;
|
|
16
|
+
maxSize: number;
|
|
17
|
+
errorMessages: string;
|
|
18
|
+
/**
|
|
19
|
+
* The translation object, use this to replace the default text with any translated text you want.
|
|
20
|
+
*/
|
|
12
21
|
texts: {
|
|
13
22
|
clickHereToUpload: string;
|
|
14
23
|
maxFileSize: string;
|
|
15
24
|
tooManyFiles: string;
|
|
16
25
|
fileTooLarge: string;
|
|
17
26
|
};
|
|
18
|
-
onClearFiles: any;
|
|
19
|
-
maxSize: number;
|
|
20
|
-
errorMessages: string;
|
|
21
27
|
};
|
|
22
28
|
export declare const DragDropImages: React.FunctionComponent<DragDropImagesTypes>;
|
|
23
29
|
export {};
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type AccordionTypes = {
|
|
3
|
+
/**
|
|
4
|
+
* The title of the clickable accordion bar
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
/**
|
|
8
|
+
* The content inside the accordion to be visible once the bar is clicked
|
|
9
|
+
*/
|
|
3
10
|
content: any;
|
|
11
|
+
/**
|
|
12
|
+
* The index of each accordion, must be unique for each usage of this component
|
|
13
|
+
*/
|
|
14
|
+
index: any;
|
|
4
15
|
};
|
|
5
16
|
export declare const HawaAccordion: React.FunctionComponent<AccordionTypes>;
|
|
6
17
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type AlertTypes = {
|
|
3
3
|
severity: "info" | "warning" | "error" | "success";
|
|
4
|
+
/** The title of the alert placed above the text of the alert. Can be used alone */
|
|
4
5
|
title?: any;
|
|
5
|
-
|
|
6
|
+
/** The text of the alert placed below the title of the alert. Can be used alone */
|
|
6
7
|
text: any;
|
|
8
|
+
variant?: "normal" | "solid" | "top-accent" | "left-accent" | "right-accent" | "bottom-accent";
|
|
7
9
|
direction?: "rtl" | "ltr";
|
|
8
|
-
hideIcon?: any;
|
|
9
10
|
actions?: [
|
|
10
11
|
{
|
|
11
12
|
label: string;
|