@sikka/hawa 0.19.18-next → 0.19.19-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 +8 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +29 -4
- package/dist/index.mjs +29 -4
- package/package.json +1 -1
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
|
@@ -244,8 +244,8 @@ declare const PhoneInput: FC<PhoneInputTypes>;
|
|
|
244
244
|
|
|
245
245
|
type CheckBoxTypes = {
|
|
246
246
|
id: string;
|
|
247
|
-
label?:
|
|
248
|
-
sublabel?:
|
|
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
|
|
818
|
-
triggerclassNames
|
|
819
|
-
contentclassNames
|
|
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
|
@@ -244,8 +244,8 @@ declare const PhoneInput: FC<PhoneInputTypes>;
|
|
|
244
244
|
|
|
245
245
|
type CheckBoxTypes = {
|
|
246
246
|
id: string;
|
|
247
|
-
label?:
|
|
248
|
-
sublabel?:
|
|
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
|
|
818
|
-
triggerclassNames
|
|
819
|
-
contentclassNames
|
|
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(
|
|
6539
|
-
|
|
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
|
|
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;
|
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(
|
|
6321
|
-
|
|
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
|
|
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;
|