@sikka/hawa 0.26.22 → 0.26.24

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/README.md CHANGED
@@ -67,7 +67,7 @@ npm install @sikka/hawa
67
67
 
68
68
  ## Contributing
69
69
 
70
- Please see our [contributing.md](/contributing.md).
70
+ Please see our [contributing.md](/CONTRIBUTING.md).
71
71
 
72
72
 
73
73
 
@@ -18,6 +18,7 @@ type AlertTypes = {
18
18
  variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
19
19
  }
20
20
  ];
21
+ /** Removes the close button */
21
22
  persistent?: boolean;
22
23
  icon?: any;
23
24
  className?: any;
@@ -18,6 +18,7 @@ type AlertTypes = {
18
18
  variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
19
19
  }
20
20
  ];
21
+ /** Removes the close button */
21
22
  persistent?: boolean;
22
23
  icon?: any;
23
24
  className?: any;
@@ -42,6 +42,7 @@ import {
42
42
  Tooltip,
43
43
  cn
44
44
  } from "../chunk-MQUAGP7K.mjs";
45
+ import "../chunk-ZFXKCRJC.mjs";
45
46
 
46
47
  // blocks/auth/LoginForm.tsx
47
48
  import React2, { useState } from "react";
@@ -1,4 +1,5 @@
1
1
  import React__default from 'react';
2
+ import { D as DirectionType } from '../commonTypes-2k6FnHw5.mjs';
2
3
  import { EmblaOptionsType } from 'embla-carousel';
3
4
 
4
5
  type CarouselProps = {
@@ -7,6 +8,7 @@ type CarouselProps = {
7
8
  autoplay?: boolean;
8
9
  autoplayInterval?: number;
9
10
  options?: EmblaOptionsType;
11
+ direction?: DirectionType;
10
12
  };
11
13
  declare const Carousel: React__default.FC<CarouselProps>;
12
14
 
@@ -1,4 +1,5 @@
1
1
  import React__default from 'react';
2
+ import { D as DirectionType } from '../commonTypes-2k6FnHw5.js';
2
3
  import { EmblaOptionsType } from 'embla-carousel';
3
4
 
4
5
  type CarouselProps = {
@@ -7,6 +8,7 @@ type CarouselProps = {
7
8
  autoplay?: boolean;
8
9
  autoplayInterval?: number;
9
10
  options?: EmblaOptionsType;
11
+ direction?: DirectionType;
10
12
  };
11
13
  declare const Carousel: React__default.FC<CarouselProps>;
12
14
 
@@ -36,7 +36,6 @@ module.exports = __toCommonJS(carousel_exports);
36
36
 
37
37
  // elements/carousel/Carousel.tsx
38
38
  var import_react = __toESM(require("react"));
39
- var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
40
39
 
41
40
  // util/index.ts
42
41
  var import_clsx = require("clsx");
@@ -46,16 +45,19 @@ function cn(...inputs) {
46
45
  }
47
46
 
48
47
  // elements/carousel/Carousel.tsx
48
+ var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
49
49
  var Carousel = ({
50
50
  items,
51
51
  showArrows,
52
52
  options,
53
53
  autoplay,
54
+ direction = "ltr",
54
55
  autoplayInterval = 3e3,
55
56
  ...props
56
57
  }) => {
57
58
  const [emblaRef, emblaApi] = (0, import_embla_carousel_react.default)({
58
59
  ...options,
60
+ direction,
59
61
  loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
60
62
  });
61
63
  const [selectedIndex, setSelectedIndex] = (0, import_react.useState)(0);
@@ -94,6 +96,7 @@ var Carousel = ({
94
96
  ))))), /* @__PURE__ */ import_react.default.createElement(
95
97
  Dots,
96
98
  {
99
+ direction,
97
100
  itemsLength: length,
98
101
  selectedIndex,
99
102
  onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
@@ -108,22 +111,34 @@ var Carousel = ({
108
111
  }
109
112
  ));
110
113
  };
111
- var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
114
+ var Dots = ({
115
+ onDotClick,
116
+ itemsLength,
117
+ selectedIndex,
118
+ direction
119
+ }) => {
112
120
  const arr = new Array(itemsLength).fill(0);
113
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1" }, arr.map((_, index) => {
114
- const selected = index === selectedIndex;
115
- return /* @__PURE__ */ import_react.default.createElement(
116
- "div",
117
- {
118
- key: index,
119
- onClick: () => onDotClick(index),
120
- className: cn(
121
- "hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
122
- !selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
123
- )
124
- }
125
- );
126
- }));
121
+ return /* @__PURE__ */ import_react.default.createElement(
122
+ "div",
123
+ {
124
+ dir: direction,
125
+ className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1"
126
+ },
127
+ arr.map((_, index) => {
128
+ const selected = index === selectedIndex;
129
+ return /* @__PURE__ */ import_react.default.createElement(
130
+ "div",
131
+ {
132
+ key: index,
133
+ onClick: () => onDotClick(index),
134
+ className: cn(
135
+ "hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
136
+ !selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
137
+ )
138
+ }
139
+ );
140
+ })
141
+ );
127
142
  };
128
143
  var CarouselControls = (props) => {
129
144
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react.default.createElement(
@@ -10,11 +10,13 @@ var Carousel = ({
10
10
  showArrows,
11
11
  options,
12
12
  autoplay,
13
+ direction = "ltr",
13
14
  autoplayInterval = 3e3,
14
15
  ...props
15
16
  }) => {
16
17
  const [emblaRef, emblaApi] = useEmblaCarousel({
17
18
  ...options,
19
+ direction,
18
20
  loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
19
21
  });
20
22
  const [selectedIndex, setSelectedIndex] = useState(0);
@@ -53,6 +55,7 @@ var Carousel = ({
53
55
  ))))), /* @__PURE__ */ React.createElement(
54
56
  Dots,
55
57
  {
58
+ direction,
56
59
  itemsLength: length,
57
60
  selectedIndex,
58
61
  onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
@@ -67,22 +70,34 @@ var Carousel = ({
67
70
  }
68
71
  ));
69
72
  };
70
- var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
73
+ var Dots = ({
74
+ onDotClick,
75
+ itemsLength,
76
+ selectedIndex,
77
+ direction
78
+ }) => {
71
79
  const arr = new Array(itemsLength).fill(0);
72
- return /* @__PURE__ */ React.createElement("div", { className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1" }, arr.map((_, index) => {
73
- const selected = index === selectedIndex;
74
- return /* @__PURE__ */ React.createElement(
75
- "div",
76
- {
77
- key: index,
78
- onClick: () => onDotClick(index),
79
- className: cn(
80
- "hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
81
- !selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
82
- )
83
- }
84
- );
85
- }));
80
+ return /* @__PURE__ */ React.createElement(
81
+ "div",
82
+ {
83
+ dir: direction,
84
+ className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1"
85
+ },
86
+ arr.map((_, index) => {
87
+ const selected = index === selectedIndex;
88
+ return /* @__PURE__ */ React.createElement(
89
+ "div",
90
+ {
91
+ key: index,
92
+ onClick: () => onDotClick(index),
93
+ className: cn(
94
+ "hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
95
+ !selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
96
+ )
97
+ }
98
+ );
99
+ })
100
+ );
86
101
  };
87
102
  var CarouselControls = (props) => {
88
103
  return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ React.createElement(
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
- import { R as RadiusType } from '../commonTypes-PBumfOBg.mjs';
3
+ import { R as RadiusType } from '../commonTypes-2k6FnHw5.mjs';
4
4
 
5
5
  type CheckBoxTypes = {
6
6
  id: string;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
- import { R as RadiusType } from '../commonTypes-PBumfOBg.js';
3
+ import { R as RadiusType } from '../commonTypes-2k6FnHw5.js';
4
4
 
5
5
  type CheckBoxTypes = {
6
6
  id: string;
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { R as RadiusType } from '../commonTypes-PBumfOBg.mjs';
2
+ import { R as RadiusType } from '../commonTypes-2k6FnHw5.mjs';
3
3
 
4
4
  type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
5
5
  type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { R as RadiusType } from '../commonTypes-PBumfOBg.js';
2
+ import { R as RadiusType } from '../commonTypes-2k6FnHw5.js';
3
3
 
4
4
  type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
5
5
  type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
@@ -0,0 +1,11 @@
1
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
+ }) : x)(function(x) {
4
+ if (typeof require !== "undefined")
5
+ return require.apply(this, arguments);
6
+ throw Error('Dynamic require of "' + x + '" is not supported');
7
+ });
8
+
9
+ export {
10
+ __require
11
+ };
@@ -1,8 +1,9 @@
1
1
  import { FC } from 'react';
2
+ import { HighlightProps } from 'prism-react-renderer';
2
3
 
3
4
  type CodeBlockTypes = {
4
5
  /** Specifies the programming language for syntax highlighting.*/
5
- language?: string;
6
+ language?: HighlightProps["language"];
6
7
  /** Defines the width of the code block.*/
7
8
  width?: "full" | "md" | "sm";
8
9
  /** Array of tabs each containing a title and code content.*/
@@ -1,8 +1,9 @@
1
1
  import { FC } from 'react';
2
+ import { HighlightProps } from 'prism-react-renderer';
2
3
 
3
4
  type CodeBlockTypes = {
4
5
  /** Specifies the programming language for syntax highlighting.*/
5
- language?: string;
6
+ language?: HighlightProps["language"];
6
7
  /** Defines the width of the code block.*/
7
8
  width?: "full" | "md" | "sm";
8
9
  /** Array of tabs each containing a title and code content.*/
@@ -36,6 +36,15 @@ module.exports = __toCommonJS(codeBlock_exports);
36
36
 
37
37
  // elements/codeBlock/CodeBlock.tsx
38
38
  var import_react4 = __toESM(require("react"));
39
+
40
+ // util/index.ts
41
+ var import_clsx = require("clsx");
42
+ var import_tailwind_merge = require("tailwind-merge");
43
+ function cn(...inputs) {
44
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
45
+ }
46
+
47
+ // elements/codeBlock/CodeBlock.tsx
39
48
  var import_prism_react_renderer = require("prism-react-renderer");
40
49
 
41
50
  // hooks/useClipboard.ts
@@ -64,13 +73,6 @@ function useClipboard({ timeout = 2e3 } = {}) {
64
73
  return { copy, reset, error, copied };
65
74
  }
66
75
 
67
- // util/index.ts
68
- var import_clsx = require("clsx");
69
- var import_tailwind_merge = require("tailwind-merge");
70
- function cn(...inputs) {
71
- return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
72
- }
73
-
74
76
  // elements/button/Button.tsx
75
77
  var React2 = __toESM(require("react"));
76
78
  var import_class_variance_authority = require("class-variance-authority");
@@ -376,6 +378,8 @@ var Tooltip = ({
376
378
  };
377
379
 
378
380
  // elements/codeBlock/CodeBlock.tsx
381
+ (typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
382
+ require("prismjs/components/prism-bash");
379
383
  var CodeBlock = ({
380
384
  tabs,
381
385
  code,
@@ -388,8 +392,7 @@ var CodeBlock = ({
388
392
  }) => {
389
393
  const clipboard = useClipboard();
390
394
  const [selectedTab, setSelectedTab] = (0, import_react4.useState)(0);
391
- const isDarkMode = props.forcedDarkMode || document.body.classList.contains("dark");
392
- const theme = isDarkMode ? import_prism_react_renderer.themes.vsDark : import_prism_react_renderer.themes.vsLight;
395
+ const theme = import_prism_react_renderer.themes.oceanicNext;
393
396
  let widthStyles = {
394
397
  full: "hawa-w-full",
395
398
  md: "hawa-w-full hawa-max-w-md",
@@ -409,15 +412,15 @@ var CodeBlock = ({
409
412
  "div",
410
413
  {
411
414
  className: cn(
412
- "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-2 hawa-py-0.5 hawa-pb-0 hawa-font-mono hawa-text-foreground dark:hawa-bg-muted",
413
- fileName && tabs ? "hawa-bg-gray-300 dark:hawa-bg-muted/50" : "hawa-bg-gray-200"
415
+ "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-2 hawa-py-0.5 hawa-pb-0 hawa-font-mono hawa-text-foreground",
416
+ fileName && tabs ? "hawa-bg-primary/10" : "hawa-bg-primary/15"
414
417
  )
415
418
  },
416
419
  /* @__PURE__ */ import_react4.default.createElement(
417
420
  "div",
418
421
  {
419
422
  className: cn(
420
- "mono hawa-w-full hawa-max-w-[52px] hawa-rounded-inner hawa-p-1 hawa-py-0.5 hawa-text-center hawa-text-[0.75rem]"
423
+ "hawa-font-mono hawa-w-full hawa-max-w-[52px] hawa-rounded-inner hawa-p-1 hawa-py-0.5 hawa-text-center hawa-text-[0.75rem]"
421
424
  )
422
425
  },
423
426
  fileName
@@ -427,7 +430,8 @@ var CodeBlock = ({
427
430
  "div",
428
431
  {
429
432
  className: cn(
430
- "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-bg-gray-200 hawa-p-2 hawa-pb-0 hawa-font-mono hawa-text-foreground dark:hawa-bg-muted",
433
+ // hawa-bg-gray-300 dark:hawa-bg-red-600
434
+ "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-1 hawa-bg-primary/15 hawa-pb-0 hawa-font-mono hawa-text-foreground",
431
435
  tabs && fileName && "hawa-rounded-t-none"
432
436
  )
433
437
  },
@@ -444,7 +448,7 @@ var CodeBlock = ({
444
448
  {
445
449
  onClick: () => setSelectedTab(i),
446
450
  className: cn(
447
- "hawa-mb-1 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] hawa-transition-all hover:hawa-bg-muted-foreground/20"
451
+ "hawa-mb-0.5 hawa-w-full hawa-max-w-[52px] hawa-cursor-pointer hawa-rounded-inner hawa-p-2 hawa-py-0.5 hawa-text-center hawa-text-[0.7rem] hawa-transition-all hover:hawa-bg-muted-foreground/20"
448
452
  )
449
453
  },
450
454
  tab.title
@@ -455,7 +459,7 @@ var CodeBlock = ({
455
459
  "div",
456
460
  {
457
461
  className: cn(
458
- "hawa-flex hawa-w-full hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-foreground/5 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ",
462
+ "hawa-flex hawa-w-full hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-gray-700 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ",
459
463
  tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
460
464
  )
461
465
  },
@@ -484,12 +488,12 @@ var CodeBlock = ({
484
488
  size: "icon",
485
489
  onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
486
490
  variant: "outline",
487
- className: "hawa-text-foreground hawa-opacity-50 sm:hawa-opacity-100"
491
+ className: "hawa-text-gray-200 hawa-opacity-50 "
488
492
  },
489
493
  /* @__PURE__ */ import_react4.default.createElement(
490
494
  "svg",
491
495
  {
492
- "aria-label": "Copy Icon",
496
+ "aria-label": "Copy",
493
497
  stroke: "currentColor",
494
498
  fill: "none",
495
499
  strokeWidth: "2",
@@ -2,10 +2,17 @@ import {
2
2
  Tooltip,
3
3
  cn
4
4
  } from "../chunk-2R7F2GL7.mjs";
5
+ import {
6
+ __require
7
+ } from "../chunk-ZFXKCRJC.mjs";
5
8
 
6
9
  // elements/codeBlock/CodeBlock.tsx
7
10
  import React3, { useState as useState2 } from "react";
8
- import { Highlight, themes } from "prism-react-renderer";
11
+ import {
12
+ Highlight,
13
+ themes,
14
+ Prism
15
+ } from "prism-react-renderer";
9
16
 
10
17
  // hooks/useClipboard.ts
11
18
  import { useState } from "react";
@@ -287,6 +294,8 @@ var Button = React2.forwardRef(
287
294
  Button.displayName = "Button";
288
295
 
289
296
  // elements/codeBlock/CodeBlock.tsx
297
+ (typeof global !== "undefined" ? global : window).Prism = Prism;
298
+ __require("prismjs/components/prism-bash");
290
299
  var CodeBlock = ({
291
300
  tabs,
292
301
  code,
@@ -299,8 +308,7 @@ var CodeBlock = ({
299
308
  }) => {
300
309
  const clipboard = useClipboard();
301
310
  const [selectedTab, setSelectedTab] = useState2(0);
302
- const isDarkMode = props.forcedDarkMode || document.body.classList.contains("dark");
303
- const theme = isDarkMode ? themes.vsDark : themes.vsLight;
311
+ const theme = themes.oceanicNext;
304
312
  let widthStyles = {
305
313
  full: "hawa-w-full",
306
314
  md: "hawa-w-full hawa-max-w-md",
@@ -320,15 +328,15 @@ var CodeBlock = ({
320
328
  "div",
321
329
  {
322
330
  className: cn(
323
- "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-2 hawa-py-0.5 hawa-pb-0 hawa-font-mono hawa-text-foreground dark:hawa-bg-muted",
324
- fileName && tabs ? "hawa-bg-gray-300 dark:hawa-bg-muted/50" : "hawa-bg-gray-200"
331
+ "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-2 hawa-py-0.5 hawa-pb-0 hawa-font-mono hawa-text-foreground",
332
+ fileName && tabs ? "hawa-bg-primary/10" : "hawa-bg-primary/15"
325
333
  )
326
334
  },
327
335
  /* @__PURE__ */ React3.createElement(
328
336
  "div",
329
337
  {
330
338
  className: cn(
331
- "mono hawa-w-full hawa-max-w-[52px] hawa-rounded-inner hawa-p-1 hawa-py-0.5 hawa-text-center hawa-text-[0.75rem]"
339
+ "hawa-font-mono hawa-w-full hawa-max-w-[52px] hawa-rounded-inner hawa-p-1 hawa-py-0.5 hawa-text-center hawa-text-[0.75rem]"
332
340
  )
333
341
  },
334
342
  fileName
@@ -338,7 +346,8 @@ var CodeBlock = ({
338
346
  "div",
339
347
  {
340
348
  className: cn(
341
- "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-bg-gray-200 hawa-p-2 hawa-pb-0 hawa-font-mono hawa-text-foreground dark:hawa-bg-muted",
349
+ // hawa-bg-gray-300 dark:hawa-bg-red-600
350
+ "hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-1 hawa-bg-primary/15 hawa-pb-0 hawa-font-mono hawa-text-foreground",
342
351
  tabs && fileName && "hawa-rounded-t-none"
343
352
  )
344
353
  },
@@ -355,7 +364,7 @@ var CodeBlock = ({
355
364
  {
356
365
  onClick: () => setSelectedTab(i),
357
366
  className: cn(
358
- "hawa-mb-1 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] hawa-transition-all hover:hawa-bg-muted-foreground/20"
367
+ "hawa-mb-0.5 hawa-w-full hawa-max-w-[52px] hawa-cursor-pointer hawa-rounded-inner hawa-p-2 hawa-py-0.5 hawa-text-center hawa-text-[0.7rem] hawa-transition-all hover:hawa-bg-muted-foreground/20"
359
368
  )
360
369
  },
361
370
  tab.title
@@ -366,7 +375,7 @@ var CodeBlock = ({
366
375
  "div",
367
376
  {
368
377
  className: cn(
369
- "hawa-flex hawa-w-full hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-foreground/5 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ",
378
+ "hawa-flex hawa-w-full hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-gray-700 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base ",
370
379
  tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
371
380
  )
372
381
  },
@@ -395,12 +404,12 @@ var CodeBlock = ({
395
404
  size: "icon",
396
405
  onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
397
406
  variant: "outline",
398
- className: "hawa-text-foreground hawa-opacity-50 sm:hawa-opacity-100"
407
+ className: "hawa-text-gray-200 hawa-opacity-50 "
399
408
  },
400
409
  /* @__PURE__ */ React3.createElement(
401
410
  "svg",
402
411
  {
403
- "aria-label": "Copy Icon",
412
+ "aria-label": "Copy",
404
413
  stroke: "currentColor",
405
414
  fill: "none",
406
415
  strokeWidth: "2",
@@ -1,3 +1,5 @@
1
+ import "../chunk-ZFXKCRJC.mjs";
2
+
1
3
  // elements/collapsible/Collapsible.tsx
2
4
  import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
3
5
  var Collapsible = CollapsiblePrimitive.Root;
@@ -3,6 +3,7 @@ import {
3
3
  calculateLuminance,
4
4
  cn
5
5
  } from "../chunk-2R7F2GL7.mjs";
6
+ import "../chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // elements/colorPicker/ColorPicker.tsx
8
9
  import React3, {
@@ -0,0 +1,4 @@
1
+ type DirectionType = "rtl" | "ltr";
2
+ type RadiusType = "full" | "inherit" | "none";
3
+
4
+ export type { DirectionType as D, RadiusType as R };
@@ -0,0 +1,4 @@
1
+ type DirectionType = "rtl" | "ltr";
2
+ type RadiusType = "full" | "inherit" | "none";
3
+
4
+ export type { DirectionType as D, RadiusType as R };
@@ -22,6 +22,7 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
22
22
  import * as ProgressPrimitive from '@radix-ui/react-progress';
23
23
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
24
24
  import * as SliderPrimitive from '@radix-ui/react-slider';
25
+ import { HighlightProps } from 'prism-react-renderer';
25
26
  import { EmblaOptionsType } from 'embla-carousel';
26
27
  export { d as Toast, h as ToastAction, a as ToastActionElement, g as ToastClose, f as ToastDescription, T as ToastProps, b as ToastProvider, e as ToastTitle, c as ToastViewport } from '../Toast-VBd4UvlM.mjs';
27
28
  import '@radix-ui/react-dropdown-menu';
@@ -259,6 +260,7 @@ type AlertTypes = {
259
260
  variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
260
261
  }
261
262
  ];
263
+ /** Removes the close button */
262
264
  persistent?: boolean;
263
265
  icon?: any;
264
266
  className?: any;
@@ -718,7 +720,7 @@ declare const ScrollIndicator: FC<ScrollIndicatorProps>;
718
720
 
719
721
  type CodeBlockTypes = {
720
722
  /** Specifies the programming language for syntax highlighting.*/
721
- language?: string;
723
+ language?: HighlightProps["language"];
722
724
  /** Defines the width of the code block.*/
723
725
  width?: "full" | "md" | "sm";
724
726
  /** Array of tabs each containing a title and code content.*/
@@ -742,6 +744,7 @@ type CarouselProps = {
742
744
  autoplay?: boolean;
743
745
  autoplayInterval?: number;
744
746
  options?: EmblaOptionsType;
747
+ direction?: DirectionType;
745
748
  };
746
749
  declare const Carousel: React__default.FC<CarouselProps>;
747
750
 
@@ -22,6 +22,7 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
22
22
  import * as ProgressPrimitive from '@radix-ui/react-progress';
23
23
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
24
24
  import * as SliderPrimitive from '@radix-ui/react-slider';
25
+ import { HighlightProps } from 'prism-react-renderer';
25
26
  import { EmblaOptionsType } from 'embla-carousel';
26
27
  export { d as Toast, h as ToastAction, a as ToastActionElement, g as ToastClose, f as ToastDescription, T as ToastProps, b as ToastProvider, e as ToastTitle, c as ToastViewport } from '../Toast-pOd4uGZz.js';
27
28
  import '@radix-ui/react-dropdown-menu';
@@ -259,6 +260,7 @@ type AlertTypes = {
259
260
  variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
260
261
  }
261
262
  ];
263
+ /** Removes the close button */
262
264
  persistent?: boolean;
263
265
  icon?: any;
264
266
  className?: any;
@@ -718,7 +720,7 @@ declare const ScrollIndicator: FC<ScrollIndicatorProps>;
718
720
 
719
721
  type CodeBlockTypes = {
720
722
  /** Specifies the programming language for syntax highlighting.*/
721
- language?: string;
723
+ language?: HighlightProps["language"];
722
724
  /** Defines the width of the code block.*/
723
725
  width?: "full" | "md" | "sm";
724
726
  /** Array of tabs each containing a title and code content.*/
@@ -742,6 +744,7 @@ type CarouselProps = {
742
744
  autoplay?: boolean;
743
745
  autoplayInterval?: number;
744
746
  options?: EmblaOptionsType;
747
+ direction?: DirectionType;
745
748
  };
746
749
  declare const Carousel: React__default.FC<CarouselProps>;
747
750