@sikka/hawa 0.0.244 → 0.0.245
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 +8 -3
- package/es/blocks/AuthForms/CodeConfirmation.d.ts +1 -1
- package/es/blocks/Misc/EmptyState.d.ts +5 -0
- package/es/blocks/Misc/NoPermission.d.ts +4 -0
- package/es/index.es.js +2 -2
- package/es/layout/HawaAppLayout.d.ts +1 -0
- package/es/layout/index.d.ts +0 -1
- package/lib/blocks/AuthForms/CodeConfirmation.d.ts +1 -1
- package/lib/blocks/Misc/EmptyState.d.ts +5 -0
- package/lib/blocks/Misc/NoPermission.d.ts +4 -0
- package/lib/index.js +2 -2
- package/lib/layout/HawaAppLayout.d.ts +1 -0
- package/lib/layout/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/blocks/AuthForms/CodeConfirmation.tsx +1 -1
- package/src/blocks/Misc/EmptyState.tsx +16 -6
- package/src/blocks/Misc/LeadGenerator.tsx +1 -3
- package/src/blocks/Misc/Newsletter.tsx +1 -1
- package/src/blocks/Misc/NoPermission.tsx +13 -7
- package/src/blocks/Misc/NotFound.tsx +2 -2
- package/src/blocks/Misc/Testimonial.tsx +24 -30
- package/src/blocks/Payment/ChargeWalletForm.tsx +7 -6
- package/src/blocks/Payment/CheckoutForm.tsx +18 -18
- package/src/blocks/Payment/Confirmation.tsx +4 -4
- package/src/blocks/Referral/ReferralSettlement.tsx +8 -3
- package/src/elements/HawaTextField.tsx +1 -1
- package/src/layout/HawaAppLayout.tsx +86 -58
- package/src/layout/index.ts +0 -1
- package/src/styles.css +8 -3
- package/es/layout/SimpleGrid.d.ts +0 -10
- package/lib/layout/SimpleGrid.d.ts +0 -10
- package/src/layout/SimpleGrid.tsx +0 -41
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { useState } from "@storybook/addons"
|
|
2
|
-
import { FC, ReactNode } from "react"
|
|
3
|
-
import clsx from "clsx"
|
|
4
|
-
|
|
5
|
-
type TSimpleGrid = {
|
|
6
|
-
columns: number
|
|
7
|
-
spacing?: number
|
|
8
|
-
spacingX?: number
|
|
9
|
-
spacingY?: number
|
|
10
|
-
children?: ReactNode
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const SimpleGrid: FC<TSimpleGrid> = ({
|
|
14
|
-
columns = 2,
|
|
15
|
-
spacing,
|
|
16
|
-
spacingX,
|
|
17
|
-
spacingY,
|
|
18
|
-
children,
|
|
19
|
-
...props
|
|
20
|
-
}) => {
|
|
21
|
-
const cols_num = "grid-cols-" + columns
|
|
22
|
-
const grid_spacing = "gap-" + spacing
|
|
23
|
-
const grid_spacing_x = "gap-x-" + spacingX
|
|
24
|
-
const grid_spacing_y = "gap-y-" + spacingY
|
|
25
|
-
|
|
26
|
-
return (
|
|
27
|
-
<div
|
|
28
|
-
className={clsx(
|
|
29
|
-
"grid",
|
|
30
|
-
cols_num,
|
|
31
|
-
spacing ?? grid_spacing,
|
|
32
|
-
grid_spacing_x,
|
|
33
|
-
grid_spacing_y
|
|
34
|
-
)}
|
|
35
|
-
>
|
|
36
|
-
{children}
|
|
37
|
-
</div>
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export default SimpleGrid
|