art-bd-ui 1.0.34 → 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;
@@ -2,13 +2,12 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
- var index = require('../../../../../node_modules/@tiptap/react/dist/index.js');
6
5
  var config = require('./config.js');
7
6
  var shared = require('./shared.js');
8
7
 
9
8
  const CarouselView = ({ node }) => {
10
9
  const attrs = React.useMemo(() => config.normalizeCarouselAttrs((node.attrs || {})), [node.attrs]);
11
- return (jsxRuntime.jsx(index.NodeViewWrapper, { children: jsxRuntime.jsx(shared.SharedCarousel, { images: attrs.images, opts: attrs }) }));
10
+ return jsxRuntime.jsx(shared.SharedCarousel, { images: attrs.images, opts: attrs });
12
11
  };
13
12
 
14
13
  exports.CarouselView = CarouselView;
@@ -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 };
@@ -1,12 +1,11 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { useMemo } from 'react';
3
- import { NodeViewWrapper } from '../../../../../node_modules/@tiptap/react/dist/index.js';
4
3
  import { normalizeCarouselAttrs } from './config.js';
5
4
  import { SharedCarousel } from './shared.js';
6
5
 
7
6
  const CarouselView = ({ node }) => {
8
7
  const attrs = useMemo(() => normalizeCarouselAttrs((node.attrs || {})), [node.attrs]);
9
- return (jsx(NodeViewWrapper, { children: jsx(SharedCarousel, { images: attrs.images, opts: attrs }) }));
8
+ return jsx(SharedCarousel, { images: attrs.images, opts: attrs });
10
9
  };
11
10
 
12
11
  export { CarouselView };
@@ -167,7 +167,7 @@ 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" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
170
+ variant?: "default" | "link" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
171
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> & {
@@ -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?: 2 | 1 | 3 | 4 | 8 | 9 | 7 | 6 | 5 | null | undefined;
642
- weight?: "bold" | "light" | "regular" | "medium" | null | undefined;
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?: 2 | 1 | 3 | 4 | 8 | 9 | 7 | 6 | 5 | null | undefined;
654
- weight?: "bold" | "light" | "regular" | "medium" | null | undefined;
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?: 2 | 1 | 3 | 4 | 8 | 9 | 7 | 6 | 5 | null | undefined;
666
- weight?: "bold" | "light" | "regular" | "medium" | null | undefined;
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" | "destructive" | "outline" | "secondary" | null | undefined;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "art-bd-ui",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "Set of handy components for React like projects",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",