@cjlapao/ui-kit 0.2.4 → 0.2.6
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/{CapsuleBlueprint-DwDZ7nii.d.cts → CapsuleBlueprint-BI0jdbTt.d.cts} +16 -1
- package/dist/{CapsuleBlueprint-DwDZ7nii.d.ts → CapsuleBlueprint-BI0jdbTt.d.ts} +16 -1
- package/dist/index.cjs +992 -676
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +36 -0
- package/dist/index.d.cts +160 -13
- package/dist/index.d.ts +160 -13
- package/dist/index.js +923 -614
- package/dist/index.js.map +1 -1
- package/dist/markdown.cjs +14 -2
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.d.cts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +14 -2
- package/dist/markdown.js.map +1 -1
- package/package.json +3 -3
package/dist/markdown.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { u as CapsuleBlueprintParameter } from './CapsuleBlueprint-
|
|
3
|
-
export {
|
|
2
|
+
import { u as CapsuleBlueprintParameter } from './CapsuleBlueprint-BI0jdbTt.cjs';
|
|
3
|
+
export { ah as HelpButton } from './CapsuleBlueprint-BI0jdbTt.cjs';
|
|
4
4
|
|
|
5
5
|
interface MarkdownEditorProps {
|
|
6
6
|
value?: string;
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { u as CapsuleBlueprintParameter } from './CapsuleBlueprint-
|
|
3
|
-
export {
|
|
2
|
+
import { u as CapsuleBlueprintParameter } from './CapsuleBlueprint-BI0jdbTt.js';
|
|
3
|
+
export { ah as HelpButton } from './CapsuleBlueprint-BI0jdbTt.js';
|
|
4
4
|
|
|
5
5
|
interface MarkdownEditorProps {
|
|
6
6
|
value?: string;
|
package/dist/markdown.js
CHANGED
|
@@ -10148,12 +10148,23 @@ var ScrollArea = ({
|
|
|
10148
10148
|
mask = false,
|
|
10149
10149
|
tabIndex = 0,
|
|
10150
10150
|
contentClassName,
|
|
10151
|
+
viewportClassName,
|
|
10152
|
+
viewportRef: viewportRefProp,
|
|
10151
10153
|
children,
|
|
10152
10154
|
className = "",
|
|
10153
10155
|
...rest
|
|
10154
10156
|
}) => {
|
|
10155
10157
|
const viewportId = useId2();
|
|
10156
10158
|
const viewportRef = useRef3(null);
|
|
10159
|
+
const setViewportRef = useCallback3(
|
|
10160
|
+
(el) => {
|
|
10161
|
+
viewportRef.current = el;
|
|
10162
|
+
if (typeof viewportRefProp === "function") viewportRefProp(el);
|
|
10163
|
+
else if (viewportRefProp)
|
|
10164
|
+
viewportRefProp.current = el;
|
|
10165
|
+
},
|
|
10166
|
+
[viewportRefProp]
|
|
10167
|
+
);
|
|
10157
10168
|
const contentRef = useRef3(null);
|
|
10158
10169
|
const yTrackRef = useRef3(null);
|
|
10159
10170
|
const xTrackRef = useRef3(null);
|
|
@@ -10295,7 +10306,7 @@ var ScrollArea = ({
|
|
|
10295
10306
|
/* @__PURE__ */ jsx158(
|
|
10296
10307
|
"div",
|
|
10297
10308
|
{
|
|
10298
|
-
ref:
|
|
10309
|
+
ref: setViewportRef,
|
|
10299
10310
|
id: viewportId,
|
|
10300
10311
|
"data-slot": "scrollarea-viewport",
|
|
10301
10312
|
tabIndex: overflow.x || overflow.y ? tabIndex : -1,
|
|
@@ -10310,7 +10321,8 @@ var ScrollArea = ({
|
|
|
10310
10321
|
// and the viewport would simply grow past the frame's cap, get
|
|
10311
10322
|
// clipped by `overflow-hidden` and never learn it was scrollable.
|
|
10312
10323
|
"[scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
|
|
10313
|
-
"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-400"
|
|
10324
|
+
"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-400",
|
|
10325
|
+
viewportClassName
|
|
10314
10326
|
),
|
|
10315
10327
|
children: /* @__PURE__ */ jsx158(
|
|
10316
10328
|
"div",
|