@sikka/hawa 0.20.1 → 0.20.2

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
@@ -3717,6 +3717,14 @@ body {
3717
3717
  border-bottom-right-radius: var(--radius);
3718
3718
  border-bottom-left-radius: var(--radius);
3719
3719
  }
3720
+ .data-\[state\=open\]\:hawa-rounded-b-none[data-state=open] {
3721
+ border-bottom-right-radius: 0px;
3722
+ border-bottom-left-radius: 0px;
3723
+ }
3724
+ .data-\[state\=open\]\:hawa-rounded-t-none[data-state=open] {
3725
+ border-top-left-radius: 0px;
3726
+ border-top-right-radius: 0px;
3727
+ }
3720
3728
  .data-\[active\]\:hawa-bg-accent\/50[data-active] {
3721
3729
  background-color: hsl(var(--accent) / 0.5);
3722
3730
  }
package/dist/index.d.mts CHANGED
@@ -906,6 +906,7 @@ type AccordionProps = {
906
906
  itemClassNames?: string;
907
907
  triggerclassNames?: string;
908
908
  contentclassNames?: string;
909
+ design?: "default" | "separated";
909
910
  } & React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
910
911
  declare const Accordion: React$1.ForwardRefExoticComponent<AccordionProps & React$1.RefAttributes<HTMLDivElement>>;
911
912
  type AccordionItem = {
package/dist/index.d.ts CHANGED
@@ -906,6 +906,7 @@ type AccordionProps = {
906
906
  itemClassNames?: string;
907
907
  triggerclassNames?: string;
908
908
  contentclassNames?: string;
909
+ design?: "default" | "separated";
909
910
  } & React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
910
911
  declare const Accordion: React$1.ForwardRefExoticComponent<AccordionProps & React$1.RefAttributes<HTMLDivElement>>;
911
912
  type AccordionItem = {
package/dist/index.js CHANGED
@@ -6543,12 +6543,13 @@ var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
6543
6543
  var Accordion = React47.forwardRef(
6544
6544
  ({
6545
6545
  items,
6546
+ design = "default",
6546
6547
  itemClassNames,
6547
6548
  triggerclassNames,
6548
6549
  contentclassNames,
6549
6550
  className,
6550
6551
  ...props
6551
- }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, items.map((item, index) => /* @__PURE__ */ React47.createElement(
6552
+ }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React47.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, items.map((item, index) => /* @__PURE__ */ React47.createElement(
6552
6553
  AccordionItem,
6553
6554
  {
6554
6555
  className: cn(itemClassNames, "hawa-rounded"),
@@ -6560,7 +6561,7 @@ var Accordion = React47.forwardRef(
6560
6561
  {
6561
6562
  className: cn(
6562
6563
  "hawa-transition-all",
6563
- {
6564
+ design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
6564
6565
  "hawa-rounded-t": index === 0,
6565
6566
  "data-[state=closed]:hawa-rounded-b": index === items.length - 1
6566
6567
  },
@@ -6574,7 +6575,7 @@ var Accordion = React47.forwardRef(
6574
6575
  {
6575
6576
  className: cn(
6576
6577
  "hawa-transition-all hawa-border",
6577
- {
6578
+ design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
6578
6579
  "data-[state=open]:hawa-rounded-b": index === items.length - 1
6579
6580
  },
6580
6581
  contentclassNames
@@ -6582,11 +6583,9 @@ var Accordion = React47.forwardRef(
6582
6583
  },
6583
6584
  item.content
6584
6585
  )
6585
- )))
6586
+ ))))
6586
6587
  );
6587
- Accordion.displayName = "Accordion";
6588
6588
  var AccordionItem = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
6589
- AccordionItem.displayName = "AccordionItem";
6590
6589
  var AccordionTrigger = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Header, { className: "hawa-flex" }, /* @__PURE__ */ React47.createElement(
6591
6590
  AccordionPrimitive.Trigger,
6592
6591
  {
@@ -6615,7 +6614,6 @@ var AccordionTrigger = React47.forwardRef(({ className, children, ...props }, re
6615
6614
  /* @__PURE__ */ React47.createElement("path", { d: "m6 9 6 6 6-6" })
6616
6615
  )
6617
6616
  )));
6618
- AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
6619
6617
  var AccordionContent = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(
6620
6618
  AccordionPrimitive.Content,
6621
6619
  {
@@ -6628,8 +6626,11 @@ var AccordionContent = React47.forwardRef(({ className, children, ...props }, re
6628
6626
  },
6629
6627
  /* @__PURE__ */ React47.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
6630
6628
  ));
6631
- AccordionContent.displayName = AccordionPrimitive.Content.displayName;
6632
6629
  var AccordionRoot = AccordionPrimitive.Root;
6630
+ Accordion.displayName = "Accordion";
6631
+ AccordionItem.displayName = "AccordionItem";
6632
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
6633
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
6633
6634
 
6634
6635
  // components/elements/Progress.tsx
6635
6636
  var React48 = __toESM(require("react"));
package/dist/index.mjs CHANGED
@@ -6316,12 +6316,13 @@ import * as AccordionPrimitive from "@radix-ui/react-accordion";
6316
6316
  var Accordion = React47.forwardRef(
6317
6317
  ({
6318
6318
  items,
6319
+ design = "default",
6319
6320
  itemClassNames,
6320
6321
  triggerclassNames,
6321
6322
  contentclassNames,
6322
6323
  className,
6323
6324
  ...props
6324
- }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, items.map((item, index) => /* @__PURE__ */ React47.createElement(
6325
+ }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React47.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, items.map((item, index) => /* @__PURE__ */ React47.createElement(
6325
6326
  AccordionItem,
6326
6327
  {
6327
6328
  className: cn(itemClassNames, "hawa-rounded"),
@@ -6333,7 +6334,7 @@ var Accordion = React47.forwardRef(
6333
6334
  {
6334
6335
  className: cn(
6335
6336
  "hawa-transition-all",
6336
- {
6337
+ design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
6337
6338
  "hawa-rounded-t": index === 0,
6338
6339
  "data-[state=closed]:hawa-rounded-b": index === items.length - 1
6339
6340
  },
@@ -6347,7 +6348,7 @@ var Accordion = React47.forwardRef(
6347
6348
  {
6348
6349
  className: cn(
6349
6350
  "hawa-transition-all hawa-border",
6350
- {
6351
+ design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
6351
6352
  "data-[state=open]:hawa-rounded-b": index === items.length - 1
6352
6353
  },
6353
6354
  contentclassNames
@@ -6355,11 +6356,9 @@ var Accordion = React47.forwardRef(
6355
6356
  },
6356
6357
  item.content
6357
6358
  )
6358
- )))
6359
+ ))))
6359
6360
  );
6360
- Accordion.displayName = "Accordion";
6361
6361
  var AccordionItem = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
6362
- AccordionItem.displayName = "AccordionItem";
6363
6362
  var AccordionTrigger = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Header, { className: "hawa-flex" }, /* @__PURE__ */ React47.createElement(
6364
6363
  AccordionPrimitive.Trigger,
6365
6364
  {
@@ -6388,7 +6387,6 @@ var AccordionTrigger = React47.forwardRef(({ className, children, ...props }, re
6388
6387
  /* @__PURE__ */ React47.createElement("path", { d: "m6 9 6 6 6-6" })
6389
6388
  )
6390
6389
  )));
6391
- AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
6392
6390
  var AccordionContent = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(
6393
6391
  AccordionPrimitive.Content,
6394
6392
  {
@@ -6401,8 +6399,11 @@ var AccordionContent = React47.forwardRef(({ className, children, ...props }, re
6401
6399
  },
6402
6400
  /* @__PURE__ */ React47.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
6403
6401
  ));
6404
- AccordionContent.displayName = AccordionPrimitive.Content.displayName;
6405
6402
  var AccordionRoot = AccordionPrimitive.Root;
6403
+ Accordion.displayName = "Accordion";
6404
+ AccordionItem.displayName = "AccordionItem";
6405
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
6406
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
6406
6407
 
6407
6408
  // components/elements/Progress.tsx
6408
6409
  import * as React48 from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",