@dynamic-framework/ui-react 2.0.0-dev.5 → 2.0.0-dev.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.
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
2
2
  import type { BaseProps, FamilyIconProps } from '../interface';
3
3
  import { DBoxFileProps } from './useDBoxFile';
4
4
  type Props = BaseProps & FamilyIconProps & DBoxFileProps & {
5
- icon?: string;
5
+ icon?: string | false;
6
6
  children?: ReactNode | ((openFileDialog: () => void) => ReactNode);
7
7
  };
8
8
  export default function DBoxFile({ icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, children, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
@@ -9,5 +9,5 @@ type Props = BaseProps & {
9
9
  familyPrefix?: string;
10
10
  strokeWidth?: number;
11
11
  };
12
- export default function DIconBase({ icon, color, style, className, size, hasCircle, materialStyle, familyClass, strokeWidth, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export default function DIconBase({ icon, color, style, className, size, hasCircle, materialStyle, familyClass, familyPrefix, strokeWidth, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
13
13
  export {};
@@ -1,3 +1,4 @@
1
+ import { type Transition } from 'framer-motion';
1
2
  import type { PropsWithChildren } from 'react';
2
3
  import DModalHeader from './components/DModalHeader';
3
4
  import DModalBody from './components/DModalBody';
@@ -11,8 +12,9 @@ type Props = BaseProps & PropsWithChildren<{
11
12
  fullScreen?: boolean;
12
13
  fullScreenFrom?: ModalFullScreenFrom;
13
14
  size?: ModalSize;
15
+ transition?: Transition;
14
16
  }>;
15
- declare function DModal({ name, className, style, staticBackdrop, scrollable, centered, fullScreen, fullScreenFrom, size, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
17
+ declare function DModal({ name, className, style, staticBackdrop, scrollable, centered, fullScreen, fullScreenFrom, size, transition, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
16
18
  declare const _default: typeof DModal & {
17
19
  Header: typeof DModalHeader;
18
20
  Body: typeof DModalBody;
@@ -1,3 +1,4 @@
1
+ import { type Transition } from 'framer-motion';
1
2
  import type { PropsWithChildren } from 'react';
2
3
  import DOffcanvasHeader from './components/DOffcanvasHeader';
3
4
  import DOffcanvasBody from './components/DOffcanvasBody';
@@ -8,8 +9,9 @@ type Props = BaseProps & PropsWithChildren<{
8
9
  staticBackdrop?: boolean;
9
10
  scrollable?: boolean;
10
11
  openFrom?: OffcanvasPositionToggleFrom;
12
+ transition?: Transition;
11
13
  }>;
12
- declare function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ declare function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom, transition, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
13
15
  declare const _default: typeof DOffcanvas & {
14
16
  Header: typeof DOffcanvasHeader;
15
17
  Body: typeof DOffcanvasBody;
@@ -43,7 +43,6 @@ export { default as DTabs, useTabContext, DTabContent, } from './DTabs';
43
43
  export type { DTabOption } from './DTabs';
44
44
  export { default as DToast } from './DToast';
45
45
  export { default as DToastContainer, useDToast, } from './DToastContainer';
46
- export { default as DTableHead } from './DTableHead';
47
46
  export { default as DInputPhone } from './DInputPhone';
48
47
  export { default as DCreditCard } from './DCreditCard';
49
48
  export { default as DDropdown } from './DDropdown';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sideEffects": [
4
4
  "*.css"
5
5
  ],
6
- "version": "2.0.0-dev.5",
6
+ "version": "2.0.0-dev.6",
7
7
  "description": "React Dynamic Framework",
8
8
  "license": "https://github.com/dynamic-framework/dynamic-ui/blob/master/libraries/dynamic-ui-react/LICENSE.md",
9
9
  "repository": {
@@ -174,6 +174,7 @@
174
174
  "yup": "^1.6.1"
175
175
  },
176
176
  "peerDependencies": {
177
+ "framer-motion": "^12.23.24",
177
178
  "i18next": "~25.6.1",
178
179
  "react": "~19.2.0",
179
180
  "react-dom": "~19.2.0",
@@ -50,7 +50,7 @@
50
50
  border: var(--#{$prefix}box-file-disabled-border);
51
51
  }
52
52
 
53
- .d-icon {
53
+ .d-box-file-dropzone > .d-icon {
54
54
  --#{$prefix}icon-size: var(--#{$prefix}box-file-icon-size);
55
55
  --#{$prefix}icon-color: var(--#{$prefix}box-file-icon-color);
56
56
  }
@@ -1,9 +0,0 @@
1
- import { BaseProps } from '../interface';
2
- type Props = BaseProps & {
3
- field: string;
4
- label: string;
5
- value?: string;
6
- onChange: (value: string) => void;
7
- };
8
- export default function DTableHead({ className, style, field, label, value, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,2 +0,0 @@
1
- import DTableHead from './DTableHead';
2
- export default DTableHead;