@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 +1 -1
- package/dist/alert/index.d.mts +1 -0
- package/dist/alert/index.d.ts +1 -0
- package/dist/blocks/index.mjs +1 -0
- package/dist/carousel/index.d.mts +2 -0
- package/dist/carousel/index.d.ts +2 -0
- package/dist/carousel/index.js +31 -16
- package/dist/carousel/index.mjs +30 -15
- package/dist/checkbox/index.d.mts +1 -1
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/chip/index.d.mts +1 -1
- package/dist/chip/index.d.ts +1 -1
- package/dist/chunk-ZFXKCRJC.mjs +11 -0
- package/dist/codeBlock/index.d.mts +2 -1
- package/dist/codeBlock/index.d.ts +2 -1
- package/dist/codeBlock/index.js +21 -17
- package/dist/codeBlock/index.mjs +20 -11
- package/dist/collapsible/index.mjs +2 -0
- package/dist/colorPicker/index.mjs +1 -0
- package/dist/commonTypes-2k6FnHw5.d.mts +4 -0
- package/dist/commonTypes-2k6FnHw5.d.ts +4 -0
- package/dist/elements/index.d.mts +4 -1
- package/dist/elements/index.d.ts +4 -1
- package/dist/elements/index.js +42 -25
- package/dist/elements/index.mjs +50 -26
- package/dist/hooks/index.mjs +1 -0
- package/dist/index.css +366 -199
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +42 -25
- package/dist/index.mjs +55 -26
- package/dist/layout/index.mjs +1 -0
- package/package.json +12 -12
package/README.md
CHANGED
package/dist/alert/index.d.mts
CHANGED
package/dist/alert/index.d.ts
CHANGED
package/dist/blocks/index.mjs
CHANGED
@@ -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
|
|
package/dist/carousel/index.d.ts
CHANGED
@@ -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
|
|
package/dist/carousel/index.js
CHANGED
@@ -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 = ({
|
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(
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
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(
|
package/dist/carousel/index.mjs
CHANGED
@@ -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 = ({
|
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(
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
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(
|
package/dist/checkbox/index.d.ts
CHANGED
package/dist/chip/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import React__default from 'react';
|
2
|
-
import { R as RadiusType } from '../commonTypes-
|
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> & {
|
package/dist/chip/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import React__default from 'react';
|
2
|
-
import { R as RadiusType } from '../commonTypes-
|
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?:
|
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?:
|
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.*/
|
package/dist/codeBlock/index.js
CHANGED
@@ -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
|
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
|
413
|
-
fileName && tabs ? "hawa-bg-
|
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
|
-
|
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-
|
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-
|
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-
|
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
|
496
|
+
"aria-label": "Copy",
|
493
497
|
stroke: "currentColor",
|
494
498
|
fill: "none",
|
495
499
|
strokeWidth: "2",
|
package/dist/codeBlock/index.mjs
CHANGED
@@ -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 {
|
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
|
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
|
324
|
-
fileName && tabs ? "hawa-bg-
|
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
|
-
|
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-
|
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-
|
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-
|
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
|
412
|
+
"aria-label": "Copy",
|
404
413
|
stroke: "currentColor",
|
405
414
|
fill: "none",
|
406
415
|
strokeWidth: "2",
|
@@ -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?:
|
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
|
|
package/dist/elements/index.d.ts
CHANGED
@@ -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?:
|
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
|
|