@datability/8ui 1.3.0 → 1.4.1

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.
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const FlagThSvg: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default FlagThSvg;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const MinusSvg: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default MinusSvg;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const PlusSvg: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default PlusSvg;
@@ -27,7 +27,9 @@ export type PropsMenuDivider = object;
27
27
  export type MenuAlign = "left" | "right";
28
28
  export type PropsMenuButton = {
29
29
  children: ReactNode;
30
- trigger: ReactNode;
30
+ trigger: ReactNode | ((props: {
31
+ isOpen: boolean;
32
+ }) => ReactNode);
31
33
  size?: MenuSize;
32
34
  align?: MenuAlign;
33
35
  fullWidth?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { MenuPositionOptions } from './position';
2
- export declare const useMenuDropdown: (positionOptions?: MenuPositionOptions) => {
2
+ export declare const useMenuDropdown: (positionOptions?: MenuPositionOptions, ignorePortalClicks?: boolean) => {
3
3
  open: boolean;
4
4
  setOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
5
5
  close: () => void;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PropsQuantity } from './index.type';
3
+ declare const Quantity: React.FC<PropsQuantity>;
4
+ export default Quantity;
@@ -0,0 +1,12 @@
1
+ import { Control } from 'react-hook-form';
2
+ export type QuantitySize = "sm" | "md";
3
+ export type QuantityVariant = "quantity" | "cart";
4
+ export type PropsQuantity = {
5
+ control: Control<any>;
6
+ name: string;
7
+ min?: number;
8
+ max?: number;
9
+ size?: QuantitySize;
10
+ variant?: QuantityVariant;
11
+ disabled?: boolean;
12
+ };
@@ -1,11 +1,5 @@
1
1
  export { Display1, Display2, Display3, Display4, H1, H2, H3, H4, H5, H6, Title, Subtitle, LabelLg, LabelMd, LabelSm, Paragraph, CaptionLg, CaptionMd, CaptionSm, CaptionXs, } from './components/typography';
2
2
  export type { PropsTypography, TypographyWeight } from './components/typography/index.type';
3
- export type TValueOption = string | number;
4
- export type TOption = {
5
- label: string;
6
- value: TValueOption;
7
- };
8
- export { DBuiContext, DBuiProvider } from './components/context';
9
3
  export { default as Avatars } from './components/avatars';
10
4
  export type { PropsAvatars, AvatarsSize, AvatarsType } from './components/avatars/index.type';
11
5
  export { default as AvatarGroup } from './components/avatar-group';
@@ -65,6 +59,8 @@ export { default as Tooltip } from './components/tooltip';
65
59
  export type { PropsTooltip, TooltipPlacement, TooltipSize } from './components/tooltip/index.type';
66
60
  export { default as Menu, MenuItem, MenuHeader, MenuDivider, MenuButton } from './components/menu';
67
61
  export type { PropsMenu, PropsMenuItem, PropsMenuHeader, PropsMenuDivider, PropsMenuButton, MenuSize, MenuAlign, } from './components/menu/index.type';
62
+ export { default as Quantity } from './components/quantity';
63
+ export type { PropsQuantity, QuantitySize, QuantityVariant } from './components/quantity/index.type';
68
64
  export { default as Breadcrumbs } from './components/breadcrumbs';
69
65
  export type { PropsBreadcrumbs, BreadcrumbItem } from './components/breadcrumbs/index.type';
70
66
  export { default as ProgressBar } from './components/progress-bar';
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const QuantityDemo: React.FC;
3
+ export default QuantityDemo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datability/8ui",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -18,6 +18,7 @@
18
18
  "scripts": {
19
19
  "dev": "vite",
20
20
  "build": "vite build && npm run cp-scss && npm run cp-scss-2 && npm run cp-svg",
21
+ "build:demo": "vite build --config vite.config.demo.ts",
21
22
  "lint": "eslint .",
22
23
  "preview": "vite preview",
23
24
  "cp-svg": "copyfiles -u 1 src/components/**/*.svg dist/",
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- type TContext = {
3
- openModalCount: number;
4
- setOpenModalCount?: React.Dispatch<React.SetStateAction<number>>;
5
- };
6
- export declare const DBuiContext: React.Context<TContext>;
7
- export declare const DBuiProvider: (props: any) => import("react/jsx-runtime").JSX.Element;
8
- export {};