@sikka/hawa 0.19.31-next → 0.19.33-next

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/index.d.mts CHANGED
@@ -1708,14 +1708,16 @@ type PricingPlansTypes = {
1708
1708
  };
1709
1709
  declare const PricingPlans: FC<PricingPlansTypes>;
1710
1710
 
1711
+ type PlanFeature = {
1712
+ soon?: boolean;
1713
+ included: boolean;
1714
+ text: string;
1715
+ hint?: string;
1716
+ };
1711
1717
  type ComparingPlansTypes = {
1712
1718
  plans: {
1713
1719
  direction?: DirectionType;
1714
- features: {
1715
- included: boolean;
1716
- text: string;
1717
- hint?: string;
1718
- }[];
1720
+ features: PlanFeature[];
1719
1721
  price?: number;
1720
1722
  texts?: {
1721
1723
  title?: string;
@@ -1723,6 +1725,7 @@ type ComparingPlansTypes = {
1723
1725
  buttonText?: string;
1724
1726
  cycleText?: string;
1725
1727
  currencyText?: string;
1728
+ soon?: string;
1726
1729
  };
1727
1730
  size?: "small" | "medium" | "large";
1728
1731
  }[];
@@ -1738,6 +1741,7 @@ type ComparingPlansTypes = {
1738
1741
  onCurrencyChange?: (e: any) => void;
1739
1742
  direction?: DirectionType;
1740
1743
  showButtons?: boolean;
1744
+ topPosition?: number;
1741
1745
  };
1742
1746
  declare const ComparingPlans: FC<ComparingPlansTypes>;
1743
1747
 
package/dist/index.d.ts CHANGED
@@ -1708,14 +1708,16 @@ type PricingPlansTypes = {
1708
1708
  };
1709
1709
  declare const PricingPlans: FC<PricingPlansTypes>;
1710
1710
 
1711
+ type PlanFeature = {
1712
+ soon?: boolean;
1713
+ included: boolean;
1714
+ text: string;
1715
+ hint?: string;
1716
+ };
1711
1717
  type ComparingPlansTypes = {
1712
1718
  plans: {
1713
1719
  direction?: DirectionType;
1714
- features: {
1715
- included: boolean;
1716
- text: string;
1717
- hint?: string;
1718
- }[];
1720
+ features: PlanFeature[];
1719
1721
  price?: number;
1720
1722
  texts?: {
1721
1723
  title?: string;
@@ -1723,6 +1725,7 @@ type ComparingPlansTypes = {
1723
1725
  buttonText?: string;
1724
1726
  cycleText?: string;
1725
1727
  currencyText?: string;
1728
+ soon?: string;
1726
1729
  };
1727
1730
  size?: "small" | "medium" | "large";
1728
1731
  }[];
@@ -1738,6 +1741,7 @@ type ComparingPlansTypes = {
1738
1741
  onCurrencyChange?: (e: any) => void;
1739
1742
  direction?: DirectionType;
1740
1743
  showButtons?: boolean;
1744
+ topPosition?: number;
1741
1745
  };
1742
1746
  declare const ComparingPlans: FC<ComparingPlansTypes>;
1743
1747
 
package/dist/index.js CHANGED
@@ -11158,9 +11158,12 @@ var ComparingPlans = (props) => {
11158
11158
  "div",
11159
11159
  {
11160
11160
  className: cn(
11161
- "hawa-sticky hawa-top-0 hawa-z-10 hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border hawa-p-4 hawa-text-sm hawa-font-medium hawa-rounded-t",
11161
+ "hawa-sticky hawa-z-10 hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border hawa-p-4 hawa-text-sm hawa-font-medium hawa-rounded-t",
11162
11162
  "hawa-bg-primary-foreground"
11163
- )
11163
+ ),
11164
+ style: {
11165
+ top: props.topPosition || 0
11166
+ }
11164
11167
  },
11165
11168
  /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-flex hawa-items-center" }),
11166
11169
  props.plans.map((plan, i) => /* @__PURE__ */ import_react70.default.createElement(
@@ -11178,7 +11181,7 @@ var ComparingPlans = (props) => {
11178
11181
  {
11179
11182
  key: featureIndex,
11180
11183
  className: cn(
11181
- "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-border-gray-200 hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:text-white dark:hawa-border-gray-700",
11184
+ "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-border-foreground-muted hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:text-white",
11182
11185
  featureIndex === 0 ? "" : "hawa-border-t"
11183
11186
  )
11184
11187
  },
@@ -11213,7 +11216,11 @@ var ComparingPlans = (props) => {
11213
11216
  },
11214
11217
  /* @__PURE__ */ import_react70.default.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
11215
11218
  )
11216
- )),
11219
+ ), props.plans.some(
11220
+ (plan) => plan.features.some(
11221
+ (feature) => feature.text === featureText && feature.soon
11222
+ )
11223
+ ) && /* @__PURE__ */ import_react70.default.createElement(Chip, { label: "Soon" })),
11217
11224
  props.plans.map((plan, planIndex) => {
11218
11225
  const feature = plan.features.find(
11219
11226
  (f) => f.text === featureText
@@ -11236,7 +11243,7 @@ var ComparingPlans = (props) => {
11236
11243
  key: i,
11237
11244
  className: "hawa-flex hawa-justify-center hawa-items-center"
11238
11245
  },
11239
- /* @__PURE__ */ import_react70.default.createElement("button", { className: "hawa-bg-primary hawa-text-white hawa-p-2 hawa-rounded hawa-w-full hawa-max-w-xs" }, ((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started")
11246
+ /* @__PURE__ */ import_react70.default.createElement(Button, { className: "hawa-max-w-xs hawa-w-full" }, ((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started")
11240
11247
  );
11241
11248
  })));
11242
11249
  };
package/dist/index.mjs CHANGED
@@ -10942,9 +10942,12 @@ var ComparingPlans = (props) => {
10942
10942
  "div",
10943
10943
  {
10944
10944
  className: cn(
10945
- "hawa-sticky hawa-top-0 hawa-z-10 hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border hawa-p-4 hawa-text-sm hawa-font-medium hawa-rounded-t",
10945
+ "hawa-sticky hawa-z-10 hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border hawa-p-4 hawa-text-sm hawa-font-medium hawa-rounded-t",
10946
10946
  "hawa-bg-primary-foreground"
10947
- )
10947
+ ),
10948
+ style: {
10949
+ top: props.topPosition || 0
10950
+ }
10948
10951
  },
10949
10952
  /* @__PURE__ */ React96.createElement("div", { className: "hawa-flex hawa-items-center" }),
10950
10953
  props.plans.map((plan, i) => /* @__PURE__ */ React96.createElement(
@@ -10962,7 +10965,7 @@ var ComparingPlans = (props) => {
10962
10965
  {
10963
10966
  key: featureIndex,
10964
10967
  className: cn(
10965
- "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-border-gray-200 hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:text-white dark:hawa-border-gray-700",
10968
+ "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-border-foreground-muted hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:text-white",
10966
10969
  featureIndex === 0 ? "" : "hawa-border-t"
10967
10970
  )
10968
10971
  },
@@ -10997,7 +11000,11 @@ var ComparingPlans = (props) => {
10997
11000
  },
10998
11001
  /* @__PURE__ */ React96.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
10999
11002
  )
11000
- )),
11003
+ ), props.plans.some(
11004
+ (plan) => plan.features.some(
11005
+ (feature) => feature.text === featureText && feature.soon
11006
+ )
11007
+ ) && /* @__PURE__ */ React96.createElement(Chip, { label: "Soon" })),
11001
11008
  props.plans.map((plan, planIndex) => {
11002
11009
  const feature = plan.features.find(
11003
11010
  (f) => f.text === featureText
@@ -11020,7 +11027,7 @@ var ComparingPlans = (props) => {
11020
11027
  key: i,
11021
11028
  className: "hawa-flex hawa-justify-center hawa-items-center"
11022
11029
  },
11023
- /* @__PURE__ */ React96.createElement("button", { className: "hawa-bg-primary hawa-text-white hawa-p-2 hawa-rounded hawa-w-full hawa-max-w-xs" }, ((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started")
11030
+ /* @__PURE__ */ React96.createElement(Button, { className: "hawa-max-w-xs hawa-w-full" }, ((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started")
11024
11031
  );
11025
11032
  })));
11026
11033
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.19.31-next",
3
+ "version": "0.19.33-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",