@sikka/hawa 0.0.211 → 0.0.212
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 +4 -4
- package/es/blocks/Pricing/ComparingPlans.d.ts +1 -0
- package/es/index.es.js +1 -1
- package/lib/blocks/Pricing/ComparingPlans.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/blocks/Pricing/ComparingPlans.tsx +15 -10
- package/src/elements/HawaTooltip.tsx +1 -1
- package/src/styles.css +4 -4
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState } from "react"
|
|
2
|
-
import {
|
|
2
|
+
import { BsExclamationCircleFill } from "react-icons/bs"
|
|
3
|
+
import { HawaTabs, HawaTooltip } from "../../elements"
|
|
3
4
|
|
|
4
5
|
const CheckMark = () => (
|
|
5
6
|
<svg
|
|
@@ -37,7 +38,7 @@ type ComparingPlansTypes = {
|
|
|
37
38
|
plans: [
|
|
38
39
|
{
|
|
39
40
|
direction: "rtl" | "ltr"
|
|
40
|
-
features: [{ included: boolean; text: string }]
|
|
41
|
+
features: [{ included: boolean; text: string; description?: string }]
|
|
41
42
|
price: number
|
|
42
43
|
texts: {
|
|
43
44
|
title: string
|
|
@@ -93,8 +94,8 @@ export const ComparingPlans: React.FunctionComponent<ComparingPlansTypes> = (
|
|
|
93
94
|
}}
|
|
94
95
|
/>
|
|
95
96
|
</div>
|
|
96
|
-
<div className="
|
|
97
|
-
<div className="grid grid-cols-4 gap-x-
|
|
97
|
+
<div className=" overflow-hidden rounded">
|
|
98
|
+
<div className="grid grid-cols-4 gap-x-2 border-t border-b border-gray-200 bg-gray-100 p-4 text-sm font-medium text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-white">
|
|
98
99
|
<div className="flex items-center"></div>
|
|
99
100
|
{props.plans.map((plan: any) => (
|
|
100
101
|
<div>
|
|
@@ -125,12 +126,16 @@ export const ComparingPlans: React.FunctionComponent<ComparingPlansTypes> = (
|
|
|
125
126
|
return plan.features.map((feature) => {
|
|
126
127
|
return (
|
|
127
128
|
<div className="grid grid-cols-4 gap-x-16 border-b border-gray-200 py-5 px-4 text-sm text-gray-700 dark:border-gray-700">
|
|
128
|
-
<div className="text-gray-500 dark:text-gray-400">
|
|
129
|
-
{feature.text}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
<div className=" flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400">
|
|
130
|
+
{feature.text}
|
|
131
|
+
{feature.description && (
|
|
132
|
+
<HawaTooltip
|
|
133
|
+
position="top-right"
|
|
134
|
+
content={feature.description}
|
|
135
|
+
>
|
|
136
|
+
<BsExclamationCircleFill />
|
|
137
|
+
</HawaTooltip>
|
|
138
|
+
)}
|
|
134
139
|
</div>
|
|
135
140
|
<UncheckMark />
|
|
136
141
|
<CheckMark />
|
package/src/styles.css
CHANGED
|
@@ -973,10 +973,6 @@ video {
|
|
|
973
973
|
.min-w-full {
|
|
974
974
|
min-width: 100%;
|
|
975
975
|
}
|
|
976
|
-
.min-w-max {
|
|
977
|
-
min-width: -moz-max-content;
|
|
978
|
-
min-width: max-content;
|
|
979
|
-
}
|
|
980
976
|
.min-w-min {
|
|
981
977
|
min-width: -moz-min-content;
|
|
982
978
|
min-width: min-content;
|
|
@@ -1145,6 +1141,10 @@ video {
|
|
|
1145
1141
|
-moz-column-gap: 4rem;
|
|
1146
1142
|
column-gap: 4rem;
|
|
1147
1143
|
}
|
|
1144
|
+
.gap-x-2 {
|
|
1145
|
+
-moz-column-gap: 0.5rem;
|
|
1146
|
+
column-gap: 0.5rem;
|
|
1147
|
+
}
|
|
1148
1148
|
.gap-x-3 {
|
|
1149
1149
|
-moz-column-gap: 0.75rem;
|
|
1150
1150
|
column-gap: 0.75rem;
|