@sikka/hawa 0.0.211 → 0.0.213

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.
Files changed (67) hide show
  1. package/dist/styles.css +49 -59
  2. package/es/blocks/Misc/Newsletter.d.ts +1 -0
  3. package/es/blocks/Misc/NotFound.d.ts +5 -0
  4. package/es/blocks/Pricing/ComparingPlans.d.ts +1 -0
  5. package/es/elements/HawaPanelTabs.d.ts +4 -1
  6. package/es/elements/HawaRange.d.ts +1 -1
  7. package/es/elements/HawaSelect.d.ts +5 -5
  8. package/es/elements/HawaSettingsRow.d.ts +1 -1
  9. package/es/elements/HawaSwitch.d.ts +1 -0
  10. package/es/elements/InvoiceAccordion.d.ts +4 -4
  11. package/es/index.es.js +1 -1
  12. package/es/layout/AppSidebar.d.ts +1 -1
  13. package/lib/blocks/Misc/Newsletter.d.ts +1 -0
  14. package/lib/blocks/Misc/NotFound.d.ts +5 -0
  15. package/lib/blocks/Pricing/ComparingPlans.d.ts +1 -0
  16. package/lib/elements/HawaPanelTabs.d.ts +4 -1
  17. package/lib/elements/HawaRange.d.ts +1 -1
  18. package/lib/elements/HawaSelect.d.ts +5 -5
  19. package/lib/elements/HawaSettingsRow.d.ts +1 -1
  20. package/lib/elements/HawaSwitch.d.ts +1 -0
  21. package/lib/elements/InvoiceAccordion.d.ts +4 -4
  22. package/lib/index.js +1 -1
  23. package/lib/layout/AppSidebar.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/src/blocks/AuthForms/CodeConfirmation.tsx +1 -7
  26. package/src/blocks/Misc/EmptyState.tsx +1 -0
  27. package/src/blocks/Misc/Newsletter.tsx +8 -3
  28. package/src/blocks/Misc/NotFound.tsx +11 -3
  29. package/src/blocks/Payment/ChargeWalletForm.tsx +23 -14
  30. package/src/blocks/Payment/CheckoutForm.tsx +1 -14
  31. package/src/blocks/Payment/Confirmation.tsx +0 -1
  32. package/src/blocks/Payment/PayWithWallet.tsx +0 -1
  33. package/src/blocks/Payment/index.ts +6 -20
  34. package/src/blocks/Pricing/ComparingPlans.tsx +15 -10
  35. package/src/blocks/Pricing/PricingPlans.tsx +1 -0
  36. package/src/blocks/Referral/ReferralAccount.tsx +1 -1
  37. package/src/blocks/Referral/ReferralStats.tsx +0 -1
  38. package/src/elements/DragDropImages.tsx +156 -158
  39. package/src/elements/DraggableCard.tsx +2 -1
  40. package/src/elements/HawaAccordion.tsx +1 -1
  41. package/src/elements/HawaChip.tsx +2 -1
  42. package/src/elements/HawaColorPicker.tsx +3 -5
  43. package/src/elements/HawaItemCard.tsx +1 -2
  44. package/src/elements/HawaMenu.tsx +2 -3
  45. package/src/elements/HawaModal.tsx +1 -1
  46. package/src/elements/HawaPanelTabs.tsx +1 -7
  47. package/src/elements/HawaPricingCard.tsx +1 -7
  48. package/src/elements/HawaRadio.tsx +1 -1
  49. package/src/elements/HawaRange.tsx +1 -1
  50. package/src/elements/HawaSelect.tsx +38 -36
  51. package/src/elements/HawaSettingsRow.tsx +7 -5
  52. package/src/elements/HawaSnackbar.tsx +1 -1
  53. package/src/elements/HawaSpinner.tsx +2 -2
  54. package/src/elements/HawaSwitch.tsx +19 -2
  55. package/src/elements/HawaTable.tsx +3 -1
  56. package/src/elements/HawaTabs.tsx +2 -0
  57. package/src/elements/HawaTextField.tsx +1 -0
  58. package/src/elements/HawaTooltip.tsx +1 -3
  59. package/src/elements/InvoiceAccordion.tsx +5 -5
  60. package/src/layout/AppSidebar.tsx +1 -1
  61. package/src/layout/HawaAppLayout.tsx +5 -4
  62. package/src/layout/HawaContainer.tsx +0 -1
  63. package/src/layout/HawaSiteLayout.tsx +1 -3
  64. package/src/layout/SimpleGrid.tsx +2 -3
  65. package/src/styles.css +49 -59
  66. package/src/tailwind.css +4 -8
  67. package/tailwind.config.js +3 -1
package/dist/styles.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- ! tailwindcss v3.2.6 | MIT License | https://tailwindcss.com
2
+ ! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com
3
3
  *//*
4
4
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
5
5
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
@@ -375,10 +375,12 @@ video {
375
375
  display: none;
376
376
  }
377
377
  :root {
378
+ --layout-primary-700: #b7aff7;
378
379
  --layout-primary-500: #dfdcfc;
379
380
  --layout-primary-300: #e7e5fa;
380
381
  --layout-secondary: #d2cdfa;
381
382
 
383
+ --button-primary-300: #6555e3;
382
384
  --button-primary-500: #4c37eb;
383
385
  --button-primary-700: #2e1dac;
384
386
 
@@ -683,6 +685,10 @@ video {
683
685
  margin-top: 0.5rem;
684
686
  margin-bottom: 0.5rem;
685
687
  }
688
+ .my-3 {
689
+ margin-top: 0.75rem;
690
+ margin-bottom: 0.75rem;
691
+ }
686
692
  .my-4 {
687
693
  margin-top: 1rem;
688
694
  margin-bottom: 1rem;
@@ -825,6 +831,9 @@ video {
825
831
  .h-2\.5 {
826
832
  height: 0.625rem;
827
833
  }
834
+ .h-20 {
835
+ height: 5rem;
836
+ }
828
837
  .h-24 {
829
838
  height: 6rem;
830
839
  }
@@ -920,6 +929,9 @@ video {
920
929
  .w-2\/3 {
921
930
  width: 66.666667%;
922
931
  }
932
+ .w-20 {
933
+ width: 5rem;
934
+ }
923
935
  .w-24 {
924
936
  width: 6rem;
925
937
  }
@@ -973,10 +985,6 @@ video {
973
985
  .min-w-full {
974
986
  min-width: 100%;
975
987
  }
976
- .min-w-max {
977
- min-width: -moz-max-content;
978
- min-width: max-content;
979
- }
980
988
  .min-w-min {
981
989
  min-width: -moz-min-content;
982
990
  min-width: min-content;
@@ -1145,6 +1153,10 @@ video {
1145
1153
  -moz-column-gap: 4rem;
1146
1154
  column-gap: 4rem;
1147
1155
  }
1156
+ .gap-x-2 {
1157
+ -moz-column-gap: 0.5rem;
1158
+ column-gap: 0.5rem;
1159
+ }
1148
1160
  .gap-x-3 {
1149
1161
  -moz-column-gap: 0.75rem;
1150
1162
  column-gap: 0.75rem;
@@ -1422,10 +1434,6 @@ video {
1422
1434
  --tw-bg-opacity: 1;
1423
1435
  background-color: rgb(239 246 255 / var(--tw-bg-opacity));
1424
1436
  }
1425
- .bg-blue-600 {
1426
- --tw-bg-opacity: 1;
1427
- background-color: rgb(37 99 235 / var(--tw-bg-opacity));
1428
- }
1429
1437
  .bg-buttonPrimary-300 {
1430
1438
  background-color: var(--button-primary-300);
1431
1439
  }
@@ -1566,10 +1574,17 @@ video {
1566
1574
  .p-5 {
1567
1575
  padding: 1.25rem;
1568
1576
  }
1577
+ .p-6 {
1578
+ padding: 1.5rem;
1579
+ }
1569
1580
  .px-1 {
1570
1581
  padding-left: 0.25rem;
1571
1582
  padding-right: 0.25rem;
1572
1583
  }
1584
+ .px-1\.5 {
1585
+ padding-left: 0.375rem;
1586
+ padding-right: 0.375rem;
1587
+ }
1573
1588
  .px-2 {
1574
1589
  padding-left: 0.5rem;
1575
1590
  padding-right: 0.5rem;
@@ -1892,9 +1907,9 @@ video {
1892
1907
  --tw-ring-offset-width: 2px;
1893
1908
  }
1894
1909
  .transition {
1895
- transition-property: color, background-color, border-color, outline-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
1896
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1897
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
1910
+ transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
1911
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1912
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
1898
1913
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1899
1914
  transition-duration: 150ms;
1900
1915
  }
@@ -1912,13 +1927,6 @@ body {
1912
1927
  font-family: "IBM Plex Sans Arabic", sans-serif;
1913
1928
  }
1914
1929
 
1915
- .layoutBody_open {
1916
- background-color: red;
1917
- /* left: 10rem; */
1918
- position: fixed;
1919
- left: 56px;
1920
- }
1921
-
1922
1930
  .after\:absolute::after {
1923
1931
  content: var(--tw-content);
1924
1932
  position: absolute;
@@ -1961,6 +1969,11 @@ body {
1961
1969
  height: 1.25rem;
1962
1970
  }
1963
1971
 
1972
+ .after\:h-9::after {
1973
+ content: var(--tw-content);
1974
+ height: 2.25rem;
1975
+ }
1976
+
1964
1977
  .after\:w-10::after {
1965
1978
  content: var(--tw-content);
1966
1979
  width: 2.5rem;
@@ -1971,6 +1984,11 @@ body {
1971
1984
  width: 1.25rem;
1972
1985
  }
1973
1986
 
1987
+ .after\:w-9::after {
1988
+ content: var(--tw-content);
1989
+ width: 2.25rem;
1990
+ }
1991
+
1974
1992
  .after\:rounded-full::after {
1975
1993
  content: var(--tw-content);
1976
1994
  border-radius: 9999px;
@@ -2029,11 +2047,6 @@ body {
2029
2047
  background-color: rgb(191 219 254 / var(--tw-bg-opacity));
2030
2048
  }
2031
2049
 
2032
- .hover\:bg-blue-700:hover {
2033
- --tw-bg-opacity: 1;
2034
- background-color: rgb(29 78 216 / var(--tw-bg-opacity));
2035
- }
2036
-
2037
2050
  .hover\:bg-buttonPrimary-500:hover {
2038
2051
  background-color: var(--button-primary-500);
2039
2052
  }
@@ -2075,8 +2088,7 @@ body {
2075
2088
  }
2076
2089
 
2077
2090
  .hover\:bg-layoutPrimary-700:hover {
2078
- --tw-bg-opacity: 1;
2079
- background-color: rgb(183 175 247 / var(--tw-bg-opacity));
2091
+ background-color: var(--layout-primary-700);
2080
2092
  }
2081
2093
 
2082
2094
  .hover\:text-blue-600:hover {
@@ -2160,11 +2172,6 @@ body {
2160
2172
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
2161
2173
  }
2162
2174
 
2163
- .focus\:ring-blue-200:focus {
2164
- --tw-ring-opacity: 1;
2165
- --tw-ring-color: rgb(191 219 254 / var(--tw-ring-opacity));
2166
- }
2167
-
2168
2175
  .focus\:ring-blue-500:focus {
2169
2176
  --tw-ring-opacity: 1;
2170
2177
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
@@ -2185,9 +2192,14 @@ body {
2185
2192
  --tw-ring-color: rgb(249 250 251 / var(--tw-ring-opacity));
2186
2193
  }
2187
2194
 
2188
- .peer:checked ~ .peer-checked\:bg-blue-600 {
2189
- --tw-bg-opacity: 1;
2190
- background-color: rgb(37 99 235 / var(--tw-bg-opacity));
2195
+ .peer:checked ~ .peer-checked\:bg-buttonPrimary-500 {
2196
+ background-color: var(--button-primary-500);
2197
+ }
2198
+
2199
+ .peer:checked ~ .peer-checked\:after\:translate-x-\[2\.445rem\]::after {
2200
+ content: var(--tw-content);
2201
+ --tw-translate-x: 2.445rem;
2202
+ 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));
2191
2203
  }
2192
2204
 
2193
2205
  .peer:checked ~ .peer-checked\:after\:translate-x-full::after {
@@ -2202,22 +2214,6 @@ body {
2202
2214
  border-color: rgb(255 255 255 / var(--tw-border-opacity));
2203
2215
  }
2204
2216
 
2205
- .peer:focus ~ .peer-focus\:outline-none {
2206
- outline: 2px solid transparent;
2207
- outline-offset: 2px;
2208
- }
2209
-
2210
- .peer:focus ~ .peer-focus\:ring-4 {
2211
- --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2212
- --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
2213
- box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
2214
- }
2215
-
2216
- .peer:focus ~ .peer-focus\:ring-blue-300 {
2217
- --tw-ring-opacity: 1;
2218
- --tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity));
2219
- }
2220
-
2221
2217
  [dir="rtl"] .rtl\:ml-1 {
2222
2218
  margin-left: 0.25rem;
2223
2219
  }
@@ -2429,11 +2425,6 @@ body {
2429
2425
  --tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity));
2430
2426
  }
2431
2427
 
2432
- .dark .dark\:focus\:ring-blue-900:focus {
2433
- --tw-ring-opacity: 1;
2434
- --tw-ring-color: rgb(30 58 138 / var(--tw-ring-opacity));
2435
- }
2436
-
2437
2428
  .dark .dark\:focus\:ring-buttonPrimary-500:focus {
2438
2429
  --tw-ring-color: var(--button-primary-500);
2439
2430
  }
@@ -2453,9 +2444,8 @@ body {
2453
2444
  --tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity));
2454
2445
  }
2455
2446
 
2456
- .dark .peer:focus ~ .dark\:peer-focus\:ring-blue-800 {
2457
- --tw-ring-opacity: 1;
2458
- --tw-ring-color: rgb(30 64 175 / var(--tw-ring-opacity));
2447
+ .dark .peer:focus ~ .dark\:peer-focus\:ring-buttonPrimary-700 {
2448
+ --tw-ring-color: var(--button-primary-700);
2459
2449
  }
2460
2450
 
2461
2451
  @media (min-width: 440px) {
@@ -2529,4 +2519,4 @@ body {
2529
2519
  margin-left: 2.5rem;
2530
2520
  margin-right: 2.5rem;
2531
2521
  }
2532
- }
2522
+ }
@@ -4,6 +4,7 @@ type TNewsletter = {
4
4
  texts: {
5
5
  wantToStayUpdated: string;
6
6
  subscribeToNewsletter: string;
7
+ submit: string;
7
8
  };
8
9
  handleNewsletterSub: (e: string) => void;
9
10
  };
@@ -1,6 +1,11 @@
1
1
  import React from "react";
2
2
  type NotFoundTypes = {
3
3
  variant?: "outlined" | "contained" | "neobrutalism";
4
+ texts?: {
5
+ pageNotFound: string;
6
+ ifLost: string;
7
+ home: string;
8
+ };
4
9
  };
5
10
  export declare const NotFound: React.FunctionComponent<NotFoundTypes>;
6
11
  export {};
@@ -6,6 +6,7 @@ type ComparingPlansTypes = {
6
6
  features: [{
7
7
  included: boolean;
8
8
  text: string;
9
+ description?: string;
9
10
  }];
10
11
  price: number;
11
12
  texts: {
@@ -1,7 +1,10 @@
1
1
  import React from "react";
2
2
  type PanelTabsTypes = {
3
3
  defaultValue: any;
4
- options: any;
4
+ options: [{
5
+ label: string;
6
+ value: string;
7
+ }];
5
8
  lang: any;
6
9
  handleChange: any;
7
10
  location: any;
@@ -4,7 +4,7 @@ type RangeTypes = {
4
4
  handleChange?: any;
5
5
  startElement?: any;
6
6
  endElement?: any;
7
- label?: any;
7
+ label?: string;
8
8
  min?: any;
9
9
  max?: any;
10
10
  };
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  type SelectTypes = {
3
- label?: any;
4
- isCreatable?: any;
3
+ label?: string;
5
4
  options?: any[any];
6
- isClearable?: any;
7
- isMulti?: any;
8
- isSearchable?: any;
5
+ isCreatable?: boolean;
6
+ isClearable?: boolean;
7
+ isMulti?: boolean;
8
+ isSearchable?: boolean;
9
9
  onChange?: any;
10
10
  helperText?: any;
11
11
  onInputChange?: any;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  type SettingsRowTypes = {
3
- settingsLabel: any;
3
+ settingsLabel: string;
4
4
  settingsType: "text" | "radio" | "boolean" | "color" | "range";
5
5
  radioProps: {
6
6
  defaultValue: any;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  type SwitchTypes = {
3
3
  text?: any;
4
+ size?: "small" | "normal" | "large";
4
5
  };
5
6
  export declare const HawaSwitch: React.FunctionComponent<SwitchTypes>;
6
7
  export {};
@@ -13,9 +13,9 @@ type InvoiceAccordionTypes = {
13
13
  amount: string;
14
14
  price: string;
15
15
  };
16
- invoiceTitle: any;
17
- invoiceSubtitle: any;
18
- invoiceDescription?: any;
16
+ invoiceTitle: string;
17
+ invoiceSubtitle: string;
18
+ invoiceDescription?: string;
19
19
  invoiceActions?: {
20
20
  icon?: JSX.Element;
21
21
  label: string;
@@ -23,7 +23,7 @@ type InvoiceAccordionTypes = {
23
23
  isButton?: boolean;
24
24
  element?: any;
25
25
  }[][];
26
- total: string;
26
+ total: any;
27
27
  direction?: "rtl" | "ltr";
28
28
  status?: "paid" | "pending" | "overdue";
29
29
  };