@sikka/hawa 0.19.18-next → 0.19.20-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.css CHANGED
@@ -3684,6 +3684,14 @@ body {
3684
3684
  .data-\[state\=open\]\:hawa-animate-accordion-down[data-state=open] {
3685
3685
  animation: hawa-accordion-down 0.2s ease-out;
3686
3686
  }
3687
+ .data-\[state\=closed\]\:hawa-rounded-b[data-state=closed] {
3688
+ border-bottom-right-radius: var(--radius);
3689
+ border-bottom-left-radius: var(--radius);
3690
+ }
3691
+ .data-\[state\=open\]\:hawa-rounded-b[data-state=open] {
3692
+ border-bottom-right-radius: var(--radius);
3693
+ border-bottom-left-radius: var(--radius);
3694
+ }
3687
3695
  .data-\[active\]\:hawa-bg-accent\/50[data-active] {
3688
3696
  background-color: hsl(var(--accent) / 0.5);
3689
3697
  }
package/dist/index.d.mts CHANGED
@@ -63,7 +63,7 @@ type PricingCardProps = {
63
63
  }[];
64
64
  endButton?: boolean;
65
65
  price: number;
66
- oldPrice: number;
66
+ oldPrice?: number;
67
67
  id?: string;
68
68
  discount?: string;
69
69
  onPlanClicked?: () => void;
@@ -244,8 +244,8 @@ declare const PhoneInput: FC<PhoneInputTypes>;
244
244
 
245
245
  type CheckBoxTypes = {
246
246
  id: string;
247
- label?: any;
248
- sublabel?: any;
247
+ label?: React$1.ReactNode;
248
+ sublabel?: React$1.ReactNode;
249
249
  helperText?: string;
250
250
  size?: "xs" | "sm" | "default" | "md" | "lg" | "xl";
251
251
  radius?: RadiusType;
@@ -814,9 +814,9 @@ declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttrib
814
814
 
815
815
  type AccordionProps = {
816
816
  items: AccordionItem[];
817
- itemClassNames: string;
818
- triggerclassNames: string;
819
- contentclassNames: string;
817
+ itemClassNames?: string;
818
+ triggerclassNames?: string;
819
+ contentclassNames?: string;
820
820
  } & React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
821
821
  declare const Accordion: React$1.ForwardRefExoticComponent<AccordionProps & React$1.RefAttributes<HTMLDivElement>>;
822
822
  type AccordionItem = {
package/dist/index.d.ts CHANGED
@@ -63,7 +63,7 @@ type PricingCardProps = {
63
63
  }[];
64
64
  endButton?: boolean;
65
65
  price: number;
66
- oldPrice: number;
66
+ oldPrice?: number;
67
67
  id?: string;
68
68
  discount?: string;
69
69
  onPlanClicked?: () => void;
@@ -244,8 +244,8 @@ declare const PhoneInput: FC<PhoneInputTypes>;
244
244
 
245
245
  type CheckBoxTypes = {
246
246
  id: string;
247
- label?: any;
248
- sublabel?: any;
247
+ label?: React$1.ReactNode;
248
+ sublabel?: React$1.ReactNode;
249
249
  helperText?: string;
250
250
  size?: "xs" | "sm" | "default" | "md" | "lg" | "xl";
251
251
  radius?: RadiusType;
@@ -814,9 +814,9 @@ declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttrib
814
814
 
815
815
  type AccordionProps = {
816
816
  items: AccordionItem[];
817
- itemClassNames: string;
818
- triggerclassNames: string;
819
- contentclassNames: string;
817
+ itemClassNames?: string;
818
+ triggerclassNames?: string;
819
+ contentclassNames?: string;
820
820
  } & React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
821
821
  declare const Accordion: React$1.ForwardRefExoticComponent<AccordionProps & React$1.RefAttributes<HTMLDivElement>>;
822
822
  type AccordionItem = {
package/dist/index.js CHANGED
@@ -6531,12 +6531,37 @@ var Accordion = React48.forwardRef(
6531
6531
  }, ref) => /* @__PURE__ */ React48.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, items.map((item, index) => /* @__PURE__ */ React48.createElement(
6532
6532
  AccordionItem,
6533
6533
  {
6534
- className: itemClassNames,
6534
+ className: cn(itemClassNames, "hawa-rounded"),
6535
6535
  key: index,
6536
6536
  value: `item-${index}`
6537
6537
  },
6538
- /* @__PURE__ */ React48.createElement(AccordionTrigger, { className: triggerclassNames }, item.trigger),
6539
- /* @__PURE__ */ React48.createElement(AccordionContent, { className: contentclassNames }, item.content)
6538
+ /* @__PURE__ */ React48.createElement(
6539
+ AccordionTrigger,
6540
+ {
6541
+ className: cn(
6542
+ "hawa-transition-all",
6543
+ {
6544
+ "hawa-rounded-t": index === 0,
6545
+ "data-[state=closed]:hawa-rounded-b": index === items.length - 1
6546
+ },
6547
+ triggerclassNames
6548
+ )
6549
+ },
6550
+ item.trigger
6551
+ ),
6552
+ /* @__PURE__ */ React48.createElement(
6553
+ AccordionContent,
6554
+ {
6555
+ className: cn(
6556
+ "hawa-transition-all hawa-border",
6557
+ {
6558
+ "data-[state=open]:hawa-rounded-b": index === items.length - 1
6559
+ },
6560
+ contentclassNames
6561
+ )
6562
+ },
6563
+ item.content
6564
+ )
6540
6565
  )))
6541
6566
  );
6542
6567
  Accordion.displayName = "Accordion";
@@ -6581,7 +6606,7 @@ var AccordionContent = React48.forwardRef(({ className, children, ...props }, re
6581
6606
  ),
6582
6607
  ...props
6583
6608
  },
6584
- /* @__PURE__ */ React48.createElement("div", { className: "hawa-bg-background hawa-border hawa-p-4" }, children)
6609
+ /* @__PURE__ */ React48.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
6585
6610
  ));
6586
6611
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
6587
6612
  var AccordionRoot = AccordionPrimitive.Root;
@@ -11026,7 +11051,7 @@ var PricingPlans = ({
11026
11051
  Radio,
11027
11052
  {
11028
11053
  design: "tabs",
11029
- defaultValue: props.currentCycle,
11054
+ defaultValue: props.currentCycle.value,
11030
11055
  options: props.billingCycles,
11031
11056
  onChangeTab: (e) => {
11032
11057
  if (props.onCycleChange) {
@@ -11038,7 +11063,7 @@ var PricingPlans = ({
11038
11063
  Radio,
11039
11064
  {
11040
11065
  design: "tabs",
11041
- defaultValue: props.currentCurrency,
11066
+ defaultValue: props.currentCurrency.value,
11042
11067
  options: props.currencies,
11043
11068
  onChangeTab: (e) => {
11044
11069
  if (props.onCurrencyChange) {
package/dist/index.mjs CHANGED
@@ -6313,12 +6313,37 @@ var Accordion = React48.forwardRef(
6313
6313
  }, ref) => /* @__PURE__ */ React48.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, items.map((item, index) => /* @__PURE__ */ React48.createElement(
6314
6314
  AccordionItem,
6315
6315
  {
6316
- className: itemClassNames,
6316
+ className: cn(itemClassNames, "hawa-rounded"),
6317
6317
  key: index,
6318
6318
  value: `item-${index}`
6319
6319
  },
6320
- /* @__PURE__ */ React48.createElement(AccordionTrigger, { className: triggerclassNames }, item.trigger),
6321
- /* @__PURE__ */ React48.createElement(AccordionContent, { className: contentclassNames }, item.content)
6320
+ /* @__PURE__ */ React48.createElement(
6321
+ AccordionTrigger,
6322
+ {
6323
+ className: cn(
6324
+ "hawa-transition-all",
6325
+ {
6326
+ "hawa-rounded-t": index === 0,
6327
+ "data-[state=closed]:hawa-rounded-b": index === items.length - 1
6328
+ },
6329
+ triggerclassNames
6330
+ )
6331
+ },
6332
+ item.trigger
6333
+ ),
6334
+ /* @__PURE__ */ React48.createElement(
6335
+ AccordionContent,
6336
+ {
6337
+ className: cn(
6338
+ "hawa-transition-all hawa-border",
6339
+ {
6340
+ "data-[state=open]:hawa-rounded-b": index === items.length - 1
6341
+ },
6342
+ contentclassNames
6343
+ )
6344
+ },
6345
+ item.content
6346
+ )
6322
6347
  )))
6323
6348
  );
6324
6349
  Accordion.displayName = "Accordion";
@@ -6363,7 +6388,7 @@ var AccordionContent = React48.forwardRef(({ className, children, ...props }, re
6363
6388
  ),
6364
6389
  ...props
6365
6390
  },
6366
- /* @__PURE__ */ React48.createElement("div", { className: "hawa-bg-background hawa-border hawa-p-4" }, children)
6391
+ /* @__PURE__ */ React48.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
6367
6392
  ));
6368
6393
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
6369
6394
  var AccordionRoot = AccordionPrimitive.Root;
@@ -10810,7 +10835,7 @@ var PricingPlans = ({
10810
10835
  Radio,
10811
10836
  {
10812
10837
  design: "tabs",
10813
- defaultValue: props.currentCycle,
10838
+ defaultValue: props.currentCycle.value,
10814
10839
  options: props.billingCycles,
10815
10840
  onChangeTab: (e) => {
10816
10841
  if (props.onCycleChange) {
@@ -10822,7 +10847,7 @@ var PricingPlans = ({
10822
10847
  Radio,
10823
10848
  {
10824
10849
  design: "tabs",
10825
- defaultValue: props.currentCurrency,
10850
+ defaultValue: props.currentCurrency.value,
10826
10851
  options: props.currencies,
10827
10852
  onChangeTab: (e) => {
10828
10853
  if (props.onCurrencyChange) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.19.18-next",
3
+ "version": "0.19.20-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",