@sikka/hawa 0.19.32-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
  }[];
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
  }[];
package/dist/index.js CHANGED
@@ -11181,7 +11181,7 @@ var ComparingPlans = (props) => {
11181
11181
  {
11182
11182
  key: featureIndex,
11183
11183
  className: cn(
11184
- "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",
11185
11185
  featureIndex === 0 ? "" : "hawa-border-t"
11186
11186
  )
11187
11187
  },
@@ -11216,7 +11216,11 @@ var ComparingPlans = (props) => {
11216
11216
  },
11217
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" })
11218
11218
  )
11219
- )),
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" })),
11220
11224
  props.plans.map((plan, planIndex) => {
11221
11225
  const feature = plan.features.find(
11222
11226
  (f) => f.text === featureText
@@ -11239,7 +11243,7 @@ var ComparingPlans = (props) => {
11239
11243
  key: i,
11240
11244
  className: "hawa-flex hawa-justify-center hawa-items-center"
11241
11245
  },
11242
- /* @__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")
11243
11247
  );
11244
11248
  })));
11245
11249
  };
package/dist/index.mjs CHANGED
@@ -10965,7 +10965,7 @@ var ComparingPlans = (props) => {
10965
10965
  {
10966
10966
  key: featureIndex,
10967
10967
  className: cn(
10968
- "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",
10969
10969
  featureIndex === 0 ? "" : "hawa-border-t"
10970
10970
  )
10971
10971
  },
@@ -11000,7 +11000,11 @@ var ComparingPlans = (props) => {
11000
11000
  },
11001
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" })
11002
11002
  )
11003
- )),
11003
+ ), props.plans.some(
11004
+ (plan) => plan.features.some(
11005
+ (feature) => feature.text === featureText && feature.soon
11006
+ )
11007
+ ) && /* @__PURE__ */ React96.createElement(Chip, { label: "Soon" })),
11004
11008
  props.plans.map((plan, planIndex) => {
11005
11009
  const feature = plan.features.find(
11006
11010
  (f) => f.text === featureText
@@ -11023,7 +11027,7 @@ var ComparingPlans = (props) => {
11023
11027
  key: i,
11024
11028
  className: "hawa-flex hawa-justify-center hawa-items-center"
11025
11029
  },
11026
- /* @__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")
11027
11031
  );
11028
11032
  })));
11029
11033
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.19.32-next",
3
+ "version": "0.19.33-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",