@dynamic-framework/ui-react 2.0.0-dev.2 → 2.0.0-dev.4

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.
@@ -1,18 +1,8 @@
1
- /// <reference types="react" />
2
- import type { MaskProps } from '@react-input/mask';
3
- declare const ForwardedDInputMask: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value">, "size" | "onChange" | "label" | "invalid" | "value" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
4
- value?: string | undefined;
5
- label?: string | undefined;
6
- loading?: boolean | undefined;
7
- hint?: string | undefined;
8
- size?: import("../interface").ComponentSize | undefined;
9
- invalid?: boolean | undefined;
10
- valid?: boolean | undefined;
11
- floatingLabel?: boolean | undefined;
12
- inputStart?: import("react").ReactNode;
13
- inputEnd?: import("react").ReactNode;
14
- onChange?: ((value: string) => void) | undefined;
15
- onIconStartClick?: ((value?: string | undefined) => void) | undefined;
16
- onIconEndClick?: ((value?: string | undefined) => void) | undefined;
17
- } & import("react").RefAttributes<HTMLInputElement>, "ref">, keyof MaskProps> & MaskProps & import("react").RefAttributes<HTMLInputElement>>;
1
+ import { type InputMaskProps } from '@react-input/mask';
2
+ import type { ComponentPropsWithoutRef } from 'react';
3
+ import DInput from '../DInput';
4
+ import type { Merge } from '../../types';
5
+ type NonDInputProps = InputMaskProps<typeof DInput>;
6
+ type Props = Merge<ComponentPropsWithoutRef<typeof DInput>, NonDInputProps>;
7
+ declare const ForwardedDInputMask: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
18
8
  export default ForwardedDInputMask;
@@ -1,10 +1,21 @@
1
1
  import type { PropsWithChildren } from 'react';
2
2
  import DLayoutPane from './components/DLayoutPane';
3
3
  import type { BaseProps } from '../interface';
4
+ /**
5
+ * Define the spacing (gap) on a scale from 0 to 30.
6
+ * @type {number}
7
+ */
8
+ type Gap = number;
4
9
  type Props = PropsWithChildren<BaseProps & {
5
- gap?: string | number;
10
+ gap?: Gap;
11
+ gapSm?: Gap;
12
+ gapMd?: Gap;
13
+ gapLg?: Gap;
14
+ gapXl?: Gap;
15
+ gapXxl?: Gap;
16
+ columns?: number;
6
17
  }>;
7
- declare function DLayout({ className, style, children, gap, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
18
+ declare function DLayout({ className, style, children, gap, columns, gapSm, gapMd, gapLg, gapXl, gapXxl, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
8
19
  declare const _default: typeof DLayout & {
9
20
  Pane: typeof DLayoutPane;
10
21
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sideEffects": [
4
4
  "*.css"
5
5
  ],
6
- "version": "2.0.0-dev.2",
6
+ "version": "2.0.0-dev.4",
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": {
@@ -89,22 +89,21 @@
89
89
  "jest/"
90
90
  ],
91
91
  "dependencies": {
92
- "@floating-ui/react": "~0.26.1",
93
- "@react-input/mask": "~1.0.20",
92
+ "@floating-ui/react": "~0.27.16",
93
+ "@react-input/mask": "~2.0.4",
94
94
  "@splidejs/react-splide": "~0.7.12",
95
95
  "@splidejs/splide": "~4.1.4",
96
- "bootstrap": "~5.3.3",
97
- "classnames": "~2.3.2",
96
+ "bootstrap": "~5.3.8",
97
+ "classnames": "~2.5.1",
98
98
  "currency.js": "~2.0.4",
99
- "date-fns": "~2.30.0",
100
- "file-selector": "^2.1.2",
101
- "google-libphonenumber": "^3.2.40",
102
- "i18next": "~23.6.0",
103
- "lucide-react": "^0.548.0",
99
+ "date-fns": "~4.1.0",
100
+ "file-selector": "~2.1.2",
101
+ "google-libphonenumber": "~3.2.43",
102
+ "lucide-react": "^0.553.0",
104
103
  "react-datepicker": "~8.3.0",
105
- "react-international-phone": "~4.5.0",
106
- "react-responsive-pagination": "^2.9.0",
107
- "react-select": "^5.8.3"
104
+ "react-international-phone": "~4.6.0",
105
+ "react-responsive-pagination": "~2.11.3",
106
+ "react-select": "~5.10.2"
108
107
  },
109
108
  "devDependencies": {
110
109
  "@babel/core": "~7.23.2",
@@ -126,8 +125,8 @@
126
125
  "@types/google-libphonenumber": "~7.4.30",
127
126
  "@types/jest": "~29.5.12",
128
127
  "@types/node": "~18.15.3",
129
- "@types/react": "~19.1.8",
130
- "@types/react-dom": "~19.1.6",
128
+ "@types/react": "~19.2.2",
129
+ "@types/react-dom": "~19.2.2",
131
130
  "@typescript-eslint/eslint-plugin": "~6.9.0",
132
131
  "@typescript-eslint/parser": "~6.9.0",
133
132
  "@vitejs/plugin-react": "~4.7.0",
@@ -144,8 +143,8 @@
144
143
  "eslint-plugin-jsx-a11y": "~6.7.1",
145
144
  "eslint-plugin-react": "~7.33.2",
146
145
  "eslint-plugin-react-hooks": "~4.6.0",
147
- "formik": "~2.4.6",
148
- "glob": "~10.3.10",
146
+ "formik": "~2.4.8",
147
+ "glob": "~11.0.3",
149
148
  "husky": "~9.1.7",
150
149
  "jest": "~29.7.0",
151
150
  "jest-axe": "~8.0.0",
@@ -153,14 +152,15 @@
153
152
  "jest-environment-jsdom": "~29.7.0",
154
153
  "lint-staged": "^15.2.10",
155
154
  "postcss-cli": "~10.1.0",
156
- "react": "~19.1.0",
157
- "react-dom": "~19.1.0",
158
- "react-hot-toast": "~2.5.2",
159
- "react-i18next": "~13.3.1",
160
- "recharts": "~3.1.0",
155
+ "react": "~19.2.0",
156
+ "react-dom": "~19.2.0",
157
+ "react-hot-toast": "~2.6.0",
158
+ "react-i18next": "~16.2.4",
159
+ "i18next": "~25.6.1",
160
+ "recharts": "~3.3.0",
161
161
  "remark-gfm": "~4.0.1",
162
- "rimraf": "~6.0.1",
163
- "rollup": "^4.27.4",
162
+ "rimraf": "~6.1.0",
163
+ "rollup": "~4.53.1",
164
164
  "sass": "~1.69.4",
165
165
  "storybook": "~9.0.17",
166
166
  "stylelint": "^16.16.0",
@@ -172,15 +172,19 @@
172
172
  "yup": "^1.6.1"
173
173
  },
174
174
  "peerDependencies": {
175
- "react": "~19.1.0",
176
- "react-dom": "~19.1.0",
177
- "react-hot-toast": "~2.5.2",
178
- "react-i18next": "~13.3.1",
179
- "recharts": "~3.1.0"
175
+ "react": "~19.2.0",
176
+ "react-dom": "~19.2.0",
177
+ "react-hot-toast": "~2.6.0",
178
+ "react-i18next": "~16.2.4",
179
+ "i18next": "~25.6.1",
180
+ "recharts": "~3.3.0"
180
181
  },
181
182
  "peerDependenciesMeta": {
182
183
  "recharts": {
183
184
  "optional": true
185
+ },
186
+ "formik": {
187
+ "optional": true
184
188
  }
185
189
  }
186
190
  }
@@ -149,10 +149,6 @@
149
149
  --#{$prefix}btn-disabled-bg: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-bg);
150
150
  --#{$prefix}btn-disabled-border-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-border-color);
151
151
  --#{$prefix}btn-disabled-opacity: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-disabled-opacity);
152
-
153
- &.loading {
154
- --#{$prefix}btn-disabled-color: var(--#{$prefix}btn-#{$variant-name}#{$color-name}-active-color);
155
- }
156
152
  }
157
153
  // scss-docs-end df-btn-variant-mixin
158
154
 
@@ -81,6 +81,25 @@ $utilities: map-merge(
81
81
  )
82
82
  )
83
83
  ),
84
+ "grid-column": (
85
+ class: "g-col",
86
+ property: grid-column,
87
+ responsive: true,
88
+ values: (
89
+ 13: auto/span 13,
90
+ 14: auto/span 14,
91
+ 15: auto/span 15,
92
+ 16: auto/span 16,
93
+ 17: auto/span 17,
94
+ 18: auto/span 18,
95
+ 19: auto/span 19,
96
+ 20: auto/span 20,
97
+ 21: auto/span 21,
98
+ 22: auto/span 22,
99
+ 23: auto/span 23,
100
+ 24: auto/span 24
101
+ )
102
+ ),
84
103
  "overlay": (
85
104
  property: opacity,
86
105
  class: "overlay",
@@ -53,7 +53,7 @@
53
53
  // hover selectors
54
54
  &.hover,
55
55
  &:hover {
56
- // color: var(--#{$prefix}btn-hover-color);
56
+ color: var(--#{$prefix}btn-hover-color);
57
57
  text-decoration: none;
58
58
  background-color: var(--#{$prefix}btn-hover-bg);
59
59
  border-color: var(--#{$prefix}btn-hover-border-color);
@@ -157,11 +157,11 @@
157
157
 
158
158
  .btn-outline-primary {
159
159
  --#{$prefix}btn-color: var(--#{$prefix}primary-500);
160
- --#{$prefix}btn-hover-border-color: var(--#{$prefix}primary-600);
160
+ --#{$prefix}btn-hover-border-color: var(--#{$prefix}primary-700);
161
161
  --#{$prefix}btn-border-color: var(--#{$prefix}primary-500);
162
162
  --#{$prefix}btn-active-color: var(--#{$prefix}primary-500);
163
163
  --#{$prefix}btn-active-border-color: var(--#{$prefix}primary-600);
164
- --#{$prefix}btn-hover-color: var(--#{$prefix}primary-600);
164
+ --#{$prefix}btn-hover-color: var(--#{$prefix}primary-700);
165
165
  --#{$prefix}btn-focus-color: var(--#{$prefix}primary-600);
166
166
  --#{$prefix}btn-active-color: var(--#{$prefix}primary-600);
167
167
  --#{$prefix}btn-box-shadow: #{$btn-box-shadow};
@@ -174,19 +174,19 @@
174
174
  }
175
175
 
176
176
  .btn-outline-secondary {
177
- --#{$prefix}btn-color: var(--#{$prefix}gray-700);
178
- --#{$prefix}btn-hover-border-color: var(--#{$prefix}gray-400);
179
- --#{$prefix}btn-border-color: var(--#{$prefix}gray-200);
180
- --#{$prefix}btn-active-border-color: var(--#{$prefix}gray-400);
181
- --#{$prefix}btn-active-color: var(--#{$prefix}gray-700);
182
- --#{$prefix}btn-hover-color: var(--#{$prefix}gray-700);
183
- --#{$prefix}btn-focus-color: var(--#{$prefix}gray-700);
177
+ --#{$prefix}btn-color: var(--#{$prefix}secondary-700);
178
+ --#{$prefix}btn-hover-border-color: var(--#{$prefix}secondary-400);
179
+ --#{$prefix}btn-border-color: var(--#{$prefix}secondary-200);
180
+ --#{$prefix}btn-active-border-color: var(--#{$prefix}secondary-400);
181
+ --#{$prefix}btn-active-color: var(--#{$prefix}secondary-700);
182
+ --#{$prefix}btn-hover-color: var(--#{$prefix}secondary-700);
183
+ --#{$prefix}btn-focus-color: var(--#{$prefix}secondary-700);
184
184
  --#{$prefix}btn-box-shadow: #{$btn-box-shadow};
185
185
  --#{$prefix}btn-focus-shadow-rgb: var(--#{$prefix}btn-secondary-focus-shadow-rgb);
186
186
  &:disabled,
187
187
  &.disabled {
188
- --#{$prefix}btn-disabled-border-color: var(--#{$prefix}gray-700);
189
- --#{$prefix}btn-disabled-color: var(--#{$prefix}gray-700);
188
+ --#{$prefix}btn-disabled-border-color: var(--#{$prefix}secondary-200);
189
+ --#{$prefix}btn-disabled-color: var(--#{$prefix}secondary-600);
190
190
  }
191
191
  }
192
192
 
@@ -200,11 +200,17 @@
200
200
  --#{$prefix}btn-focus-color: var(--#{$prefix}gray-50);
201
201
  --#{$prefix}btn-box-shadow: #{$btn-box-shadow};
202
202
  --#{$prefix}btn-focus-shadow-rgb: var(--#{$prefix}btn-light-focus-shadow-rgb);
203
+ &:disabled,
204
+ &.disabled {
205
+ --#{$prefix}btn-disabled-border-color: var(--#{$prefix}gray-25);
206
+ --#{$prefix}btn-disabled-color: var(--#{$prefix}gray-25);
207
+ opacity: var(--#{$prefix}btn-disabled-opacity);
208
+ }
203
209
  }
204
210
 
205
211
  .btn-outline-success {
206
212
  --#{$prefix}btn-color: var(--#{$prefix}success-500);
207
- --#{$prefix}btn-hover-border-color: var(--#{$prefix}success-600);
213
+ --#{$prefix}btn-hover-border-color: var(--#{$prefix}success-700);
208
214
  --#{$prefix}btn-border-color: var(--#{$prefix}success-500);
209
215
  --#{$prefix}btn-active-border-color: var(--#{$prefix}success-600);
210
216
  --#{$prefix}btn-active-color: var(--#{$prefix}success-700);
@@ -221,7 +227,7 @@
221
227
 
222
228
  .btn-outline-danger {
223
229
  --#{$prefix}btn-color: var(--#{$prefix}danger-500);
224
- --#{$prefix}btn-hover-border-color: var(--#{$prefix}danger-600);
230
+ --#{$prefix}btn-hover-border-color: var(--#{$prefix}danger-700);
225
231
  --#{$prefix}btn-border-color: var(--#{$prefix}danger-500);
226
232
  --#{$prefix}btn-active-border-color: var(--#{$prefix}danger-600);
227
233
  --#{$prefix}btn-active-color: var(--#{$prefix}danger-700);
@@ -238,7 +244,7 @@
238
244
 
239
245
  .btn-outline-info {
240
246
  --#{$prefix}btn-color: var(--#{$prefix}info-500);
241
- --#{$prefix}btn-hover-border-color: var(--#{$prefix}info-600);
247
+ --#{$prefix}btn-hover-border-color: var(--#{$prefix}info-700);
242
248
  --#{$prefix}btn-border-color: var(--#{$prefix}info-500);
243
249
  --#{$prefix}btn-active-border-color: var(--#{$prefix}info-600);
244
250
  --#{$prefix}btn-active-color: var(--#{$prefix}info-700);
@@ -255,7 +261,7 @@
255
261
 
256
262
  .btn-outline-warning {
257
263
  --#{$prefix}btn-color: var(--#{$prefix}warning-600);
258
- --#{$prefix}btn-hover-border-color: var(--#{$prefix}warning-600);
264
+ --#{$prefix}btn-hover-border-color: var(--#{$prefix}warning-700);
259
265
  --#{$prefix}btn-border-color: var(--#{$prefix}warning-500);
260
266
  --#{$prefix}btn-active-border-color: var(--#{$prefix}warning-600);
261
267
  --#{$prefix}btn-active-color: var(--#{$prefix}warning-700);