art-bd-ui 1.0.35 → 1.0.36
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.
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib_es6 = require('../../../../../node_modules/tslib/tslib.es6.js');
|
|
6
6
|
var index = require('../../../../../node_modules/@tiptap/core/dist/index.js');
|
|
7
|
-
var index$1 = require('../../../../../node_modules/@tiptap/react/dist/index.js');
|
|
8
7
|
var config = require('./config.js');
|
|
9
|
-
var view = require('./view.js');
|
|
10
8
|
|
|
11
9
|
function parseDataValue(element, key) {
|
|
12
10
|
const value = element.getAttribute(key);
|
|
@@ -114,9 +112,6 @@ const Carousel = index.Node.create({
|
|
|
114
112
|
{ "data-peek-amount": `${rest.partialVisiblePercent}%` }, { "data-pagination": String(rest.showThumbnails) }),
|
|
115
113
|
];
|
|
116
114
|
},
|
|
117
|
-
addNodeView() {
|
|
118
|
-
return index$1.ReactNodeViewRenderer(view.CarouselView);
|
|
119
|
-
},
|
|
120
115
|
});
|
|
121
116
|
|
|
122
117
|
exports.Carousel = Carousel;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { __rest } from '../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { Node as Node3, mergeAttributes } from '../../../../../node_modules/@tiptap/core/dist/index.js';
|
|
3
|
-
import { ReactNodeViewRenderer } from '../../../../../node_modules/@tiptap/react/dist/index.js';
|
|
4
3
|
import { normalizeCarouselAttrs, toCssUnit, CAROUSEL_DEFAULT_ATTRS } from './config.js';
|
|
5
|
-
import { CarouselView } from './view.js';
|
|
6
4
|
|
|
7
5
|
function parseDataValue(element, key) {
|
|
8
6
|
const value = element.getAttribute(key);
|
|
@@ -110,9 +108,6 @@ const Carousel = Node3.create({
|
|
|
110
108
|
{ "data-peek-amount": `${rest.partialVisiblePercent}%` }, { "data-pagination": String(rest.showThumbnails) }),
|
|
111
109
|
];
|
|
112
110
|
},
|
|
113
|
-
addNodeView() {
|
|
114
|
-
return ReactNodeViewRenderer(CarouselView);
|
|
115
|
-
},
|
|
116
111
|
});
|
|
117
112
|
|
|
118
113
|
export { Carousel, Carousel as default };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -167,8 +167,8 @@ interface IconProps$1 extends ComponentPropsWithoutRef<typeof DynamicIcon>, Vari
|
|
|
167
167
|
declare const Icon: React$1.ForwardRefExoticComponent<IconProps$1 & React$1.RefAttributes<SVGSVGElement>>;
|
|
168
168
|
|
|
169
169
|
declare const buttonVariants: (props?: ({
|
|
170
|
-
variant?: "default" | "link" | "
|
|
171
|
-
size?: "default" | "sm" | "lg" | "icon
|
|
170
|
+
variant?: "default" | "link" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
171
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
|
|
172
172
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
173
173
|
type ButtonProps = ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
174
174
|
asChild?: boolean;
|
|
@@ -301,7 +301,7 @@ declare const Dropzone: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes
|
|
|
301
301
|
|
|
302
302
|
declare const labelVariants: (props?: ({
|
|
303
303
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
304
|
-
weight?: "default" | "
|
|
304
|
+
weight?: "default" | "bold" | "light" | null | undefined;
|
|
305
305
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
306
306
|
type LabelProps = ComponentProps<typeof Root$5> & VariantProps<typeof labelVariants>;
|
|
307
307
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
@@ -420,7 +420,7 @@ interface FormControlProps extends React$1.ComponentProps<typeof FormItem> {
|
|
|
420
420
|
declare function FormControl({ name, label, description, showMessage, children, ...props }: FormControlProps): react_jsx_runtime.JSX.Element;
|
|
421
421
|
|
|
422
422
|
declare const inputContainerVariants: (props?: ({
|
|
423
|
-
size?: "sm" | "
|
|
423
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
424
424
|
disabled?: boolean | null | undefined;
|
|
425
425
|
fullWidth?: boolean | null | undefined;
|
|
426
426
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -448,7 +448,7 @@ declare const inputGroupAddonVariants: (props?: ({
|
|
|
448
448
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
449
449
|
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
450
450
|
declare const inputGroupButtonVariants: (props?: ({
|
|
451
|
-
size?: "sm" | "
|
|
451
|
+
size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
|
|
452
452
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
453
453
|
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
454
454
|
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
@@ -638,8 +638,8 @@ declare const ToastDescription: React$1.ForwardRefExoticComponent<Omit<_radix_ui
|
|
|
638
638
|
type ToastActionElement = ReactElement<typeof ToastAction>;
|
|
639
639
|
|
|
640
640
|
declare const textVariants: (props?: ({
|
|
641
|
-
size?:
|
|
642
|
-
weight?: "
|
|
641
|
+
size?: 3 | 2 | 1 | 4 | 8 | 9 | 7 | 6 | 5 | null | undefined;
|
|
642
|
+
weight?: "medium" | "bold" | "light" | "regular" | null | undefined;
|
|
643
643
|
align?: "center" | "right" | "left" | null | undefined;
|
|
644
644
|
color?: "default" | "destructive" | "secondary" | "muted" | "primary" | "accent" | null | undefined;
|
|
645
645
|
truncate?: boolean | null | undefined;
|
|
@@ -650,8 +650,8 @@ type TextProps = {
|
|
|
650
650
|
declare const Text: React$1.ForwardRefExoticComponent<{
|
|
651
651
|
asChild?: boolean;
|
|
652
652
|
} & Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & VariantProps<(props?: ({
|
|
653
|
-
size?:
|
|
654
|
-
weight?: "
|
|
653
|
+
size?: 3 | 2 | 1 | 4 | 8 | 9 | 7 | 6 | 5 | null | undefined;
|
|
654
|
+
weight?: "medium" | "bold" | "light" | "regular" | null | undefined;
|
|
655
655
|
align?: "center" | "right" | "left" | null | undefined;
|
|
656
656
|
color?: "default" | "destructive" | "secondary" | "muted" | "primary" | "accent" | null | undefined;
|
|
657
657
|
truncate?: boolean | null | undefined;
|
|
@@ -662,8 +662,8 @@ declare const Heading: React$1.ForwardRefExoticComponent<{
|
|
|
662
662
|
level?: HeadingLevel;
|
|
663
663
|
asChild?: boolean;
|
|
664
664
|
} & Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & VariantProps<(props?: ({
|
|
665
|
-
size?:
|
|
666
|
-
weight?: "
|
|
665
|
+
size?: 3 | 2 | 1 | 4 | 8 | 9 | 7 | 6 | 5 | null | undefined;
|
|
666
|
+
weight?: "medium" | "bold" | "light" | "regular" | null | undefined;
|
|
667
667
|
align?: "center" | "right" | "left" | null | undefined;
|
|
668
668
|
color?: "default" | "destructive" | "secondary" | "muted" | "primary" | "accent" | null | undefined;
|
|
669
669
|
truncate?: boolean | null | undefined;
|
|
@@ -682,7 +682,7 @@ declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div
|
|
|
682
682
|
declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
683
683
|
|
|
684
684
|
declare const badgeVariants: (props?: ({
|
|
685
|
-
variant?: "default" | "
|
|
685
|
+
variant?: "default" | "outline" | "destructive" | "secondary" | null | undefined;
|
|
686
686
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
687
687
|
type BadgeProps = ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
688
688
|
asChild?: boolean;
|