@sikka/hawa 0.20.2-next → 0.20.3-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.
Files changed (3) hide show
  1. package/dist/index.js +40 -31
  2. package/dist/index.mjs +40 -31
  3. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -6549,41 +6549,50 @@ var Accordion = React47.forwardRef(
6549
6549
  contentclassNames,
6550
6550
  className,
6551
6551
  ...props
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(
6553
- AccordionItem,
6552
+ }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React47.createElement(
6553
+ "div",
6554
6554
  {
6555
- className: cn(itemClassNames, "hawa-rounded"),
6556
- key: index,
6557
- value: `item-${index}`
6555
+ className: cn("hawa-flex hawa-flex-col", {
6556
+ "hawa-gap-4": design === "separated",
6557
+ "hawa-gap-0": design === "default"
6558
+ })
6558
6559
  },
6559
- /* @__PURE__ */ React47.createElement(
6560
- AccordionTrigger,
6560
+ items.map((item, index) => /* @__PURE__ */ React47.createElement(
6561
+ AccordionItem,
6561
6562
  {
6562
- className: cn(
6563
- "hawa-transition-all",
6564
- design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
6565
- "hawa-rounded-t": index === 0,
6566
- "data-[state=closed]:hawa-rounded-b": index === items.length - 1
6567
- },
6568
- triggerclassNames
6569
- )
6570
- },
6571
- item.trigger
6572
- ),
6573
- /* @__PURE__ */ React47.createElement(
6574
- AccordionContent,
6575
- {
6576
- className: cn(
6577
- "hawa-transition-all hawa-border",
6578
- design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
6579
- "data-[state=open]:hawa-rounded-b": index === items.length - 1
6580
- },
6581
- contentclassNames
6582
- )
6563
+ className: cn(itemClassNames, "hawa-rounded"),
6564
+ key: index,
6565
+ value: `item-${index}`
6583
6566
  },
6584
- item.content
6585
- )
6586
- ))))
6567
+ /* @__PURE__ */ React47.createElement(
6568
+ AccordionTrigger,
6569
+ {
6570
+ className: cn(
6571
+ "hawa-transition-all",
6572
+ design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
6573
+ "hawa-rounded-t": index === 0,
6574
+ "data-[state=closed]:hawa-rounded-b": index === items.length - 1
6575
+ },
6576
+ triggerclassNames
6577
+ )
6578
+ },
6579
+ item.trigger
6580
+ ),
6581
+ /* @__PURE__ */ React47.createElement(
6582
+ AccordionContent,
6583
+ {
6584
+ className: cn(
6585
+ "hawa-transition-all hawa-border",
6586
+ design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
6587
+ "data-[state=open]:hawa-rounded-b": index === items.length - 1
6588
+ },
6589
+ contentclassNames
6590
+ )
6591
+ },
6592
+ item.content
6593
+ )
6594
+ ))
6595
+ ))
6587
6596
  );
6588
6597
  var AccordionItem = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
6589
6598
  var AccordionTrigger = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Header, { className: "hawa-flex" }, /* @__PURE__ */ React47.createElement(
package/dist/index.mjs CHANGED
@@ -6322,41 +6322,50 @@ var Accordion = React47.forwardRef(
6322
6322
  contentclassNames,
6323
6323
  className,
6324
6324
  ...props
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(
6326
- AccordionItem,
6325
+ }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React47.createElement(
6326
+ "div",
6327
6327
  {
6328
- className: cn(itemClassNames, "hawa-rounded"),
6329
- key: index,
6330
- value: `item-${index}`
6328
+ className: cn("hawa-flex hawa-flex-col", {
6329
+ "hawa-gap-4": design === "separated",
6330
+ "hawa-gap-0": design === "default"
6331
+ })
6331
6332
  },
6332
- /* @__PURE__ */ React47.createElement(
6333
- AccordionTrigger,
6333
+ items.map((item, index) => /* @__PURE__ */ React47.createElement(
6334
+ AccordionItem,
6334
6335
  {
6335
- className: cn(
6336
- "hawa-transition-all",
6337
- design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
6338
- "hawa-rounded-t": index === 0,
6339
- "data-[state=closed]:hawa-rounded-b": index === items.length - 1
6340
- },
6341
- triggerclassNames
6342
- )
6343
- },
6344
- item.trigger
6345
- ),
6346
- /* @__PURE__ */ React47.createElement(
6347
- AccordionContent,
6348
- {
6349
- className: cn(
6350
- "hawa-transition-all hawa-border",
6351
- design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
6352
- "data-[state=open]:hawa-rounded-b": index === items.length - 1
6353
- },
6354
- contentclassNames
6355
- )
6336
+ className: cn(itemClassNames, "hawa-rounded"),
6337
+ key: index,
6338
+ value: `item-${index}`
6356
6339
  },
6357
- item.content
6358
- )
6359
- ))))
6340
+ /* @__PURE__ */ React47.createElement(
6341
+ AccordionTrigger,
6342
+ {
6343
+ className: cn(
6344
+ "hawa-transition-all",
6345
+ design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
6346
+ "hawa-rounded-t": index === 0,
6347
+ "data-[state=closed]:hawa-rounded-b": index === items.length - 1
6348
+ },
6349
+ triggerclassNames
6350
+ )
6351
+ },
6352
+ item.trigger
6353
+ ),
6354
+ /* @__PURE__ */ React47.createElement(
6355
+ AccordionContent,
6356
+ {
6357
+ className: cn(
6358
+ "hawa-transition-all hawa-border",
6359
+ design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
6360
+ "data-[state=open]:hawa-rounded-b": index === items.length - 1
6361
+ },
6362
+ contentclassNames
6363
+ )
6364
+ },
6365
+ item.content
6366
+ )
6367
+ ))
6368
+ ))
6360
6369
  );
6361
6370
  var AccordionItem = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
6362
6371
  var AccordionTrigger = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(AccordionPrimitive.Header, { className: "hawa-flex" }, /* @__PURE__ */ React47.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.20.2-next",
3
+ "version": "0.20.3-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",
@@ -71,7 +71,7 @@
71
71
  "@radix-ui/react-toast": "^1.1.5",
72
72
  "@radix-ui/react-tooltip": "^1.0.7",
73
73
  "@tanstack/react-table": "^8.10.7",
74
- "@types/node": "^20.9.4",
74
+ "@types/node": "^20.10.2",
75
75
  "@types/react": "^18.2.38",
76
76
  "@types/react-dom": "^18.2.17",
77
77
  "class-variance-authority": "^0.7.0",
@@ -97,16 +97,16 @@
97
97
  "devDependencies": {
98
98
  "@babel/preset-react": "^7.23.3",
99
99
  "@sikka/alam": "^0.0.3",
100
- "@storybook/addon-essentials": "^7.6.2",
101
- "@storybook/addon-interactions": "^7.6.2",
102
- "@storybook/addon-links": "^7.6.2",
103
- "@storybook/addon-mdx-gfm": "^7.6.2",
104
- "@storybook/blocks": "^7.6.2",
105
- "@storybook/manager-api": "^7.6.2",
106
- "@storybook/nextjs": "^7.6.2",
107
- "@storybook/react": "^7.6.2",
100
+ "@storybook/addon-essentials": "^7.6.3",
101
+ "@storybook/addon-interactions": "^7.6.3",
102
+ "@storybook/addon-links": "^7.6.3",
103
+ "@storybook/addon-mdx-gfm": "^7.6.3",
104
+ "@storybook/blocks": "^7.6.3",
105
+ "@storybook/manager-api": "^7.6.3",
106
+ "@storybook/nextjs": "^7.6.3",
107
+ "@storybook/react": "^7.6.3",
108
108
  "@storybook/testing-library": "^0.2.2",
109
- "@storybook/theming": "^7.6.2",
109
+ "@storybook/theming": "^7.6.3",
110
110
  "@testing-library/jest-dom": "^6.1.5",
111
111
  "@testing-library/react": "^14.1.2",
112
112
  "@types/jest": "^29.5.10",
@@ -118,8 +118,8 @@
118
118
  "postcss": "^8.4.31",
119
119
  "postcss-cli": "^10.1.0",
120
120
  "postcss-import": "^15.1.0",
121
- "recharts": "^2.10.1",
122
- "storybook": "^7.6.2",
121
+ "recharts": "^2.10.3",
122
+ "storybook": "^7.6.3",
123
123
  "storybook-dark-mode": "^3.0.1",
124
124
  "tailwindcss": "^3.3.5",
125
125
  "tailwindcss-animate": "^1.0.7",