@sikka/hawa 0.8.4-next → 0.8.6-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
@@ -808,6 +808,9 @@ input[type="number"]::-webkit-inner-spin-button,
808
808
  .hawa-isolate {
809
809
  isolation: isolate;
810
810
  }
811
+ .hawa-z-0 {
812
+ z-index: 0;
813
+ }
811
814
  .hawa-z-10 {
812
815
  z-index: 10;
813
816
  }
@@ -1252,9 +1255,6 @@ input[type="number"]::-webkit-inner-spin-button,
1252
1255
  .hawa-max-w-2xs {
1253
1256
  max-width: 250px;
1254
1257
  }
1255
- .hawa-max-w-4xl {
1256
- max-width: 56rem;
1257
- }
1258
1258
  .hawa-max-w-\[200px\] {
1259
1259
  max-width: 200px;
1260
1260
  }
@@ -1552,15 +1552,6 @@ input[type="number"]::-webkit-inner-spin-button,
1552
1552
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
1553
1553
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
1554
1554
  }
1555
- .hawa-divide-y > :not([hidden]) ~ :not([hidden]) {
1556
- --tw-divide-y-reverse: 0;
1557
- border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
1558
- border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
1559
- }
1560
- .hawa-divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
1561
- --tw-divide-opacity: 1;
1562
- border-color: rgb(229 231 235 / var(--tw-divide-opacity));
1563
- }
1564
1555
  .hawa-overflow-auto {
1565
1556
  overflow: auto;
1566
1557
  }
@@ -1588,9 +1579,6 @@ input[type="number"]::-webkit-inner-spin-button,
1588
1579
  .hawa-whitespace-nowrap {
1589
1580
  white-space: nowrap;
1590
1581
  }
1591
- .hawa-whitespace-break-spaces {
1592
- white-space: break-spaces;
1593
- }
1594
1582
  .hawa-rounded {
1595
1583
  border-radius: var(--radius);
1596
1584
  }
@@ -1796,10 +1784,6 @@ input[type="number"]::-webkit-inner-spin-button,
1796
1784
  --tw-bg-opacity: 1;
1797
1785
  background-color: rgb(209 213 219 / var(--tw-bg-opacity));
1798
1786
  }
1799
- .hawa-bg-gray-50 {
1800
- --tw-bg-opacity: 1;
1801
- background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1802
- }
1803
1787
  .hawa-bg-gray-500 {
1804
1788
  --tw-bg-opacity: 1;
1805
1789
  background-color: rgb(107 114 128 / var(--tw-bg-opacity));
@@ -2004,10 +1988,6 @@ input[type="number"]::-webkit-inner-spin-button,
2004
1988
  padding-left: 1.25rem;
2005
1989
  padding-right: 1.25rem;
2006
1990
  }
2007
- .hawa-px-6 {
2008
- padding-left: 1.5rem;
2009
- padding-right: 1.5rem;
2010
- }
2011
1991
  .hawa-px-8 {
2012
1992
  padding-left: 2rem;
2013
1993
  padding-right: 2rem;
@@ -2125,6 +2105,10 @@ input[type="number"]::-webkit-inner-spin-button,
2125
2105
  font-size: 1.875rem;
2126
2106
  line-height: 2.25rem;
2127
2107
  }
2108
+ .hawa-text-4xl {
2109
+ font-size: 2.25rem;
2110
+ line-height: 2.5rem;
2111
+ }
2128
2112
  .hawa-text-5xl {
2129
2113
  font-size: 3rem;
2130
2114
  line-height: 1;
@@ -2195,6 +2179,9 @@ input[type="number"]::-webkit-inner-spin-button,
2195
2179
  .hawa-leading-4 {
2196
2180
  line-height: 1rem;
2197
2181
  }
2182
+ .hawa-leading-6 {
2183
+ line-height: 1.5rem;
2184
+ }
2198
2185
  .hawa-leading-none {
2199
2186
  line-height: 1;
2200
2187
  }
@@ -2204,9 +2191,6 @@ input[type="number"]::-webkit-inner-spin-button,
2204
2191
  .hawa-tracking-tight {
2205
2192
  letter-spacing: -0.025em;
2206
2193
  }
2207
- .hawa-tracking-wider {
2208
- letter-spacing: 0.05em;
2209
- }
2210
2194
  .hawa-tracking-widest {
2211
2195
  letter-spacing: 0.1em;
2212
2196
  }
package/dist/index.d.mts CHANGED
@@ -161,6 +161,7 @@ type CodeBlockTypes = {
161
161
  code?: string;
162
162
  lineNumbers?: boolean;
163
163
  forcedDarkMode?: boolean;
164
+ className?: string;
164
165
  };
165
166
  declare const CodeBlock: FC<CodeBlockTypes>;
166
167
 
package/dist/index.d.ts CHANGED
@@ -161,6 +161,7 @@ type CodeBlockTypes = {
161
161
  code?: string;
162
162
  lineNumbers?: boolean;
163
163
  forcedDarkMode?: boolean;
164
+ className?: string;
164
165
  };
165
166
  declare const CodeBlock: FC<CodeBlockTypes>;
166
167
 
package/dist/index.js CHANGED
@@ -1298,11 +1298,12 @@ function useClipboard() {
1298
1298
  // components/elements/CodeBlock.tsx
1299
1299
  var import_prism_react_renderer = require("prism-react-renderer");
1300
1300
  var CodeBlock = function(_param) {
1301
- var tabs = _param.tabs, code = _param.code, fileName = _param.fileName, _param_language = _param.language, language = _param_language === void 0 ? "javascript" : _param_language, _param_width = _param.// default to JavaScript if no language is provided
1301
+ var tabs = _param.tabs, code = _param.code, fileName = _param.fileName, className = _param.className, _param_language = _param.language, language = _param_language === void 0 ? "javascript" : _param_language, _param_width = _param.// default to JavaScript if no language is provided
1302
1302
  width, width = _param_width === void 0 ? "full" : _param_width, props = _object_without_properties(_param, [
1303
1303
  "tabs",
1304
1304
  "code",
1305
1305
  "fileName",
1306
+ "className",
1306
1307
  "language",
1307
1308
  "width"
1308
1309
  ]);
@@ -1317,7 +1318,7 @@ var CodeBlock = function(_param) {
1317
1318
  xs: "hawa-w-full hawa-max-w-xs"
1318
1319
  };
1319
1320
  return /* @__PURE__ */ import_react8.default.createElement("div", {
1320
- className: cn(widthStyles[width], "hawa-w-full hawa-flex-col hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-text-white sm:hawa-text-base")
1321
+ className: cn(widthStyles[width], "hawa-w-full hawa-flex-col hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-text-white sm:hawa-text-base", className)
1321
1322
  }, fileName && /* @__PURE__ */ import_react8.default.createElement("div", {
1322
1323
  className: cn("hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t dark:hawa-bg-muted hawa-p-2 hawa-py-0.5 hawa-pb-0 hawa-text-foreground hawa-font-mono", fileName && tabs ? "hawa-bg-gray-300 dark:hawa-bg-muted/50" : "hawa-bg-gray-200")
1323
1324
  }, /* @__PURE__ */ import_react8.default.createElement("div", {
@@ -1334,14 +1335,14 @@ var CodeBlock = function(_param) {
1334
1335
  },
1335
1336
  className: cn("hawa-mb-1 hawa-transition-all hawa-w-full hawa-max-w-[52px] hawa-cursor-pointer hawa-rounded-inner hawa-p-2 hawa-py-1 hawa-text-center hawa-text-[1rem] hover:hawa-bg-muted-foreground/20")
1336
1337
  }, tab.title));
1337
- })), /* @__PURE__ */ import_react8.default.createElement("pre", null, /* @__PURE__ */ import_react8.default.createElement("div", {
1338
- className: cn("hawa-relative hawa-flex hawa-w-full hawa-flex-row hawa-border hawa-items-start hawa-justify-between hawa-bg-foreground/5 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ", tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded")
1338
+ })), /* @__PURE__ */ import_react8.default.createElement("div", {
1339
+ className: cn("hawa-flex hawa-w-full hawa-flex-row hawa-border hawa-items-start hawa-justify-between hawa-bg-foreground/5 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ", tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded")
1339
1340
  }, /* @__PURE__ */ import_react8.default.createElement(import_prism_react_renderer.Highlight, {
1340
1341
  theme: theme,
1341
1342
  code: tabs ? tabs[selectedTab].code : code || "",
1342
1343
  language: language
1343
1344
  }, function(param) {
1344
- var className = param.className, style = param.style, tokens = param.tokens, getLineProps = param.getLineProps, getTokenProps = param.getTokenProps;
1345
+ var className2 = param.className, style = param.style, tokens = param.tokens, getLineProps = param.getLineProps, getTokenProps = param.getTokenProps;
1345
1346
  return /* @__PURE__ */ import_react8.default.createElement("pre", {
1346
1347
  className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-text-foreground hawa-font-mono"
1347
1348
  }, tokens.map(function(line, i) {
@@ -1360,7 +1361,7 @@ var CodeBlock = function(_param) {
1360
1361
  }));
1361
1362
  }));
1362
1363
  }), /* @__PURE__ */ import_react8.default.createElement("div", {
1363
- className: "hawa-absolute hawa-right-0 hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2"
1364
+ className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2"
1364
1365
  }, /* @__PURE__ */ import_react8.default.createElement(Tooltip, {
1365
1366
  open: clipboard.copied,
1366
1367
  side: "left",
@@ -1391,7 +1392,7 @@ var CodeBlock = function(_param) {
1391
1392
  ry: "2"
1392
1393
  }), /* @__PURE__ */ import_react8.default.createElement("path", {
1393
1394
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
1394
- }))))))));
1395
+ })))))));
1395
1396
  };
1396
1397
  // components/elements/Checkbox.tsx
1397
1398
  var React11 = __toESM(require("react"));
@@ -5040,7 +5041,7 @@ var AccordionTrigger = React36.forwardRef(function(_param, ref) /* @__PURE__ */
5040
5041
  className: "hawa-flex"
5041
5042
  }, /* @__PURE__ */ React36.createElement(AccordionPrimitive.Trigger, _object_spread({
5042
5043
  ref: ref,
5043
- className: cn("hawa-flex hawa-bg-muted/50 hawa-flex-1 hover:hawa-bg-muted hawa-items-center hawa-justify-between hawa-p-4 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa-rotate-180", className)
5044
+ className: cn("hawa-flex hawa-bg-muted/50 hawa-flex-1 hover:hawa-bg-muted hawa-items-center hawa-justify-between hawa-p-4 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa-rotate-180", className)
5044
5045
  }, props), children, /* @__PURE__ */ React36.createElement("svg", {
5045
5046
  xmlns: "http://www.w3.org/2000/svg",
5046
5047
  width: "24",
package/dist/index.mjs CHANGED
@@ -615,6 +615,7 @@ var CodeBlock = ({
615
615
  tabs,
616
616
  code,
617
617
  fileName,
618
+ className,
618
619
  language = "javascript",
619
620
  // default to JavaScript if no language is provided
620
621
  width = "full",
@@ -635,7 +636,8 @@ var CodeBlock = ({
635
636
  {
636
637
  className: cn(
637
638
  widthStyles[width],
638
- "hawa-w-full hawa-flex-col hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-text-white sm:hawa-text-base"
639
+ "hawa-w-full hawa-flex-col hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-text-white sm:hawa-text-base",
640
+ className
639
641
  )
640
642
  },
641
643
  fileName && /* @__PURE__ */ React10.createElement(
@@ -684,11 +686,11 @@ var CodeBlock = ({
684
686
  )
685
687
  ))
686
688
  ),
687
- /* @__PURE__ */ React10.createElement("pre", null, /* @__PURE__ */ React10.createElement(
689
+ /* @__PURE__ */ React10.createElement(
688
690
  "div",
689
691
  {
690
692
  className: cn(
691
- "hawa-relative hawa-flex hawa-w-full hawa-flex-row hawa-border hawa-items-start hawa-justify-between hawa-bg-foreground/5 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ",
693
+ "hawa-flex hawa-w-full hawa-flex-row hawa-border hawa-items-start hawa-justify-between hawa-bg-foreground/5 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ",
692
694
  tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
693
695
  )
694
696
  },
@@ -699,9 +701,9 @@ var CodeBlock = ({
699
701
  code: tabs ? tabs[selectedTab].code : code || "",
700
702
  language
701
703
  },
702
- ({ className, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React10.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-text-foreground hawa-font-mono" }, tokens.map((line, i) => /* @__PURE__ */ React10.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React10.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React10.createElement("span", { key, ...getTokenProps({ token }) })))))
704
+ ({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React10.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-text-foreground hawa-font-mono" }, tokens.map((line, i) => /* @__PURE__ */ React10.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React10.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React10.createElement("span", { key, ...getTokenProps({ token }) })))))
703
705
  ),
704
- /* @__PURE__ */ React10.createElement("div", { className: "hawa-absolute hawa-right-0 hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React10.createElement(
706
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React10.createElement(
705
707
  Tooltip,
706
708
  {
707
709
  open: clipboard.copied,
@@ -734,7 +736,7 @@ var CodeBlock = ({
734
736
  )
735
737
  )
736
738
  ))
737
- ))
739
+ )
738
740
  );
739
741
  };
740
742
 
@@ -4676,7 +4678,7 @@ var AccordionTrigger = React36.forwardRef(({ className, children, ...props }, re
4676
4678
  {
4677
4679
  ref,
4678
4680
  className: cn(
4679
- "hawa-flex hawa-bg-muted/50 hawa-flex-1 hover:hawa-bg-muted hawa-items-center hawa-justify-between hawa-p-4 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa-rotate-180",
4681
+ "hawa-flex hawa-bg-muted/50 hawa-flex-1 hover:hawa-bg-muted hawa-items-center hawa-justify-between hawa-p-4 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa-rotate-180",
4680
4682
  className
4681
4683
  ),
4682
4684
  ...props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.8.4-next",
3
+ "version": "0.8.6-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {