zuii 1.4.21 → 1.4.22

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,234 @@
1
+ const n = [
2
+ // React-specific Attributes
3
+ "defaultChecked",
4
+ "defaultValue",
5
+ "suppressContentEditableWarning",
6
+ "suppressHydrationWarning",
7
+ "dangerouslySetInnerHTML",
8
+ // Standard HTML Attributes
9
+ "accessKey",
10
+ "className",
11
+ "contentEditable",
12
+ "contextMenu",
13
+ "dir",
14
+ "draggable",
15
+ "hidden",
16
+ "id",
17
+ "lang",
18
+ "placeholder",
19
+ "slot",
20
+ "spellCheck",
21
+ "style",
22
+ "tabIndex",
23
+ "title",
24
+ "translate",
25
+ // Unknown
26
+ "radioGroup",
27
+ // WAI-ARIA
28
+ "role",
29
+ // RDFa Attributes
30
+ "about",
31
+ "datatype",
32
+ "inlist",
33
+ "prefix",
34
+ "property",
35
+ "resource",
36
+ "typeof",
37
+ "vocab",
38
+ // Non-standard Attributes
39
+ "autoCapitalize",
40
+ "autoCorrect",
41
+ "autoSave",
42
+ "color",
43
+ "itemProp",
44
+ "itemScope",
45
+ "itemType",
46
+ "itemID",
47
+ "itemRef",
48
+ "results",
49
+ "security",
50
+ "unselectable",
51
+ // Living Standard
52
+ "inputMode",
53
+ "is",
54
+ // Clipboard Events
55
+ "onCopy",
56
+ "onCopyCapture",
57
+ "onCut",
58
+ "onCutCapture",
59
+ "onPaste",
60
+ "onPasteCapture",
61
+ // Composition Events
62
+ "onCompositionEnd",
63
+ "onCompositionEndCapture",
64
+ "onCompositionStart",
65
+ "onCompositionStartCapture",
66
+ "onCompositionUpdate",
67
+ "onCompositionUpdateCapture",
68
+ // Focus Events
69
+ "onFocus",
70
+ "onFocusCapture",
71
+ "onBlur",
72
+ "onBlurCapture",
73
+ // Form Events
74
+ "onChange",
75
+ "onChangeCapture",
76
+ "onBeforeInput",
77
+ "onBeforeInputCapture",
78
+ "onInput",
79
+ "onInputCapture",
80
+ "onReset",
81
+ "onResetCapture",
82
+ "onSubmit",
83
+ "onSubmitCapture",
84
+ "onInvalid",
85
+ "onInvalidCapture",
86
+ // Image Events
87
+ "onLoad",
88
+ "onLoadCapture",
89
+ "onError",
90
+ // also a Media Event
91
+ "onErrorCapture",
92
+ // also a Media Event
93
+ // Keyboard Events
94
+ "onKeyDown",
95
+ "onKeyDownCapture",
96
+ "onKeyPress",
97
+ "onKeyPressCapture",
98
+ "onKeyUp",
99
+ "onKeyUpCapture",
100
+ // Media Events
101
+ "onAbort",
102
+ "onAbortCapture",
103
+ "onCanPlay",
104
+ "onCanPlayCapture",
105
+ "onCanPlayThrough",
106
+ "onCanPlayThroughCapture",
107
+ "onDurationChange",
108
+ "onDurationChangeCapture",
109
+ "onEmptied",
110
+ "onEmptiedCapture",
111
+ "onEncrypted",
112
+ "onEncryptedCapture",
113
+ "onEnded",
114
+ "onEndedCapture",
115
+ "onLoadedData",
116
+ "onLoadedDataCapture",
117
+ "onLoadedMetadata",
118
+ "onLoadedMetadataCapture",
119
+ "onLoadStart",
120
+ "onLoadStartCapture",
121
+ "onPause",
122
+ "onPauseCapture",
123
+ "onPlay",
124
+ "onPlayCapture",
125
+ "onPlaying",
126
+ "onPlayingCapture",
127
+ "onProgress",
128
+ "onProgressCapture",
129
+ "onRateChange",
130
+ "onRateChangeCapture",
131
+ "onSeeked",
132
+ "onSeekedCapture",
133
+ "onSeeking",
134
+ "onSeekingCapture",
135
+ "onStalled",
136
+ "onStalledCapture",
137
+ "onSuspend",
138
+ "onSuspendCapture",
139
+ "onTimeUpdate",
140
+ "onTimeUpdateCapture",
141
+ "onVolumeChange",
142
+ "onVolumeChangeCapture",
143
+ "onWaiting",
144
+ "onWaitingCapture",
145
+ // MouseEvents
146
+ "onAuxClick",
147
+ "onAuxClickCapture",
148
+ "onClick",
149
+ "onClickCapture",
150
+ "onContextMenu",
151
+ "onContextMenuCapture",
152
+ "onDoubleClick",
153
+ "onDoubleClickCapture",
154
+ "onDrag",
155
+ "onDragCapture",
156
+ "onDragEnd",
157
+ "onDragEndCapture",
158
+ "onDragEnter",
159
+ "onDragEnterCapture",
160
+ "onDragExit",
161
+ "onDragExitCapture",
162
+ "onDragLeave",
163
+ "onDragLeaveCapture",
164
+ "onDragOver",
165
+ "onDragOverCapture",
166
+ "onDragStart",
167
+ "onDragStartCapture",
168
+ "onDrop",
169
+ "onDropCapture",
170
+ "onMouseDown",
171
+ "onMouseDownCapture",
172
+ "onMouseEnter",
173
+ "onMouseLeave",
174
+ "onMouseMove",
175
+ "onMouseMoveCapture",
176
+ "onMouseOut",
177
+ "onMouseOutCapture",
178
+ "onMouseOver",
179
+ "onMouseOverCapture",
180
+ "onMouseUp",
181
+ "onMouseUpCapture",
182
+ // Selection Events
183
+ "onSelect",
184
+ "onSelectCapture",
185
+ // Touch Events
186
+ "onTouchCancel",
187
+ "onTouchCancelCapture",
188
+ "onTouchEnd",
189
+ "onTouchEndCapture",
190
+ "onTouchMove",
191
+ "onTouchMoveCapture",
192
+ "onTouchStart",
193
+ "onTouchStartCapture",
194
+ // Pointer Events
195
+ "onPointerDown",
196
+ "onPointerDownCapture",
197
+ "onPointerMove",
198
+ "onPointerMoveCapture",
199
+ "onPointerUp",
200
+ "onPointerUpCapture",
201
+ "onPointerCancel",
202
+ "onPointerCancelCapture",
203
+ "onPointerEnter",
204
+ "onPointerEnterCapture",
205
+ "onPointerLeave",
206
+ "onPointerLeaveCapture",
207
+ "onPointerOver",
208
+ "onPointerOverCapture",
209
+ "onPointerOut",
210
+ "onPointerOutCapture",
211
+ "onGotPointerCapture",
212
+ "onGotPointerCaptureCapture",
213
+ "onLostPointerCapture",
214
+ "onLostPointerCaptureCapture",
215
+ // UI Events
216
+ "onScroll",
217
+ "onScrollCapture",
218
+ // Wheel Events
219
+ "onWheel",
220
+ "onWheelCapture",
221
+ // Animation Events
222
+ "onAnimationStart",
223
+ "onAnimationStartCapture",
224
+ "onAnimationEnd",
225
+ "onAnimationEndCapture",
226
+ "onAnimationIteration",
227
+ "onAnimationIterationCapture",
228
+ // Transition Events
229
+ "onTransitionEnd",
230
+ "onTransitionEndCapture"
231
+ ], t = /^(aria-|data-)/, a = (e) => Object.fromEntries(Object.entries(e).filter(([o]) => t.test(o) || n.includes(o)));
232
+ export {
233
+ a as default
234
+ };
@@ -0,0 +1,8 @@
1
+ import r from "./getHTMLProps.js";
2
+ function a(t, n) {
3
+ const o = r(t);
4
+ return Object.keys(t).some((e) => !Object.hasOwn(o, e) && t[e] !== n[e]);
5
+ }
6
+ export {
7
+ a as default
8
+ };
@@ -16,6 +16,8 @@ export const FormsElements = () => {
16
16
  const formData = new FormData(e.currentTarget);
17
17
  console.log(Object.fromEntries(formData.entries()));
18
18
  console.log(formData.getAll('selectMultiple[]'));
19
+ const tousLesFichiers = formData.getAll('file-dashboard[]');
20
+ console.log(tousLesFichiers); // Affiche [File, File]
19
21
  }
20
22
 
21
23
  return (
@@ -43,6 +45,11 @@ export const FormsElements = () => {
43
45
  onComplete={(result: any) => console.log("Fichiers téléchargés :", result)}
44
46
  />
45
47
  <Form.File id="file-multiple" label="Upload multiple" name="file_multiple" multiple={true} maxFiles={5} /> */}
48
+ <Form.File
49
+ restrictions={{ maxNumberOfFiles: 5 }}
50
+ lang='fr'
51
+ name="file-dashboard"
52
+ />
46
53
  <Form.Check id="checkbox1" type="checkbox" label="Enter checkbox" name="checkbox" />
47
54
  <Form.Check id="checkbox2" type="checkbox" label="Enter checkbox checked" name="checkbox" defaultChecked />
48
55
  <Form.Check id="radio1" type="radio" label="Enter radio option 1" name="radio" defaultChecked />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zuii",
3
- "version": "1.4.21",
3
+ "version": "1.4.22",
4
4
  "description": "Bibliothèque de composants UI légère, intuitive et modulaire pour les interfaces web modernes.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -59,8 +59,10 @@
59
59
  "@simonwep/pickr": "^1.9.1",
60
60
  "@splidejs/react-splide": "^0.7.12",
61
61
  "@splidejs/splide": "^4.1.4",
62
+ "@uppy/compressor": "^3.1.0",
62
63
  "@uppy/core": "^5.2.0",
63
64
  "@uppy/dashboard": "^5.1.1",
65
+ "@uppy/image-editor": "^4.2.0",
64
66
  "@uppy/locales": "^5.1.1",
65
67
  "@uppy/react": "^5.2.0",
66
68
  "ag-grid-community": "^35.0.1",
@@ -1,74 +0,0 @@
1
- import { Form as BootstrapForm, FormProps, FormGroupProps, FormLabelProps, FormTextProps, FormCheckProps, InputGroupProps, FloatingLabelProps } from 'react-bootstrap';
2
- import { BsPrefixRefForwardingComponent } from 'react-bootstrap/esm/helpers';
3
- import { FormCheckInputProps } from 'react-bootstrap/esm/FormCheckInput';
4
- import { FormCheckLabelProps } from 'react-bootstrap/esm/FormCheckLabel';
5
- import { SelectProps } from './Select';
6
- import { InputGroupTextProps } from 'react-bootstrap/esm/InputGroupText';
7
- import { NumberInputProps } from './NumberInput';
8
- import { TelInputProps } from './TelInput';
9
- import { PasswordInputProps } from './PasswordInput';
10
- import { PasswordConfirmProps } from './PasswordConfirm';
11
- import { RangeInputProps } from './RangeInput';
12
- import { FormColorProps } from './FormColor';
13
- import { ForwardRefExoticComponent, RefAttributes } from 'react';
14
- import { FormDateProps } from './FormDate';
15
- /**
16
- * Propriétés du composant FormControl.
17
- */
18
- interface FormControlProps extends React.ComponentPropsWithRef<typeof BootstrapForm.Control> {
19
- /**
20
- * Le libellé du champ (utilisé si floating est actif).
21
- */
22
- label?: string;
23
- /**
24
- * Si vrai, utilise un FloatingLabel.
25
- */
26
- floating?: boolean;
27
- /**
28
- * Nom de l'icône à afficher.
29
- */
30
- icon?: string;
31
- }
32
- interface Props extends FormProps {
33
- /**
34
- * Le titre optionnel du formulaire.
35
- */
36
- titre?: string;
37
- /**
38
- * Contenu du formulaire.
39
- */
40
- children?: React.ReactNode;
41
- }
42
- /**
43
- * Composant Form personnalisé.
44
- * Basé sur React Bootstrap Form.
45
- *
46
- * @param {Props} props - Les propriétés du composant.
47
- * @returns {JSX.Element} Le composant Form rendu.
48
- */
49
- export declare const Form: {
50
- ({ titre, className, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
51
- Group: BsPrefixRefForwardingComponent<"div", FormGroupProps>;
52
- Control: ({ label, floating, icon, children, onKeyDown, ...props }: FormControlProps) => import("react/jsx-runtime").JSX.Element;
53
- Label: BsPrefixRefForwardingComponent<"label", FormLabelProps>;
54
- Text: BsPrefixRefForwardingComponent<"small", FormTextProps>;
55
- Check: BsPrefixRefForwardingComponent<"input", FormCheckProps> & {
56
- Input: BsPrefixRefForwardingComponent<"input", FormCheckInputProps>;
57
- Label: React.ForwardRefExoticComponent< FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
58
- };
59
- Select: ({ options, value, onChange, multiple, placeholder, disabled, searchable, className, name, variant, icon, lang, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
60
- InputGroup: BsPrefixRefForwardingComponent<"div", InputGroupProps> & {
61
- Text: BsPrefixRefForwardingComponent<"span", InputGroupTextProps>;
62
- Radio: (props: FormCheckInputProps) => import("react/jsx-runtime").JSX.Element;
63
- Checkbox: (props: FormCheckInputProps) => import("react/jsx-runtime").JSX.Element;
64
- };
65
- Number: ({ value, onChange, min, max, step, className, placeholder, }: NumberInputProps) => import("react/jsx-runtime").JSX.Element;
66
- Tel: ({ value, onChange, initialCountry, className, placeholder, name, nameFormat, disabled, }: TelInputProps) => import("react/jsx-runtime").JSX.Element;
67
- Password: ({ value, onChange, className, placeholder, disabled, }: PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
68
- PasswordConfirm: ({ passwordToMatch, value, onChange, className, placeholder, disabled, errorMessage, }: PasswordConfirmProps) => import("react/jsx-runtime").JSX.Element;
69
- Range: ({ value, onChange, min, max, step, className, }: RangeInputProps) => import("react/jsx-runtime").JSX.Element;
70
- FloatingLabel: BsPrefixRefForwardingComponent<"div", FloatingLabelProps>;
71
- Color: ({ value, onChange, disabled, name, className, swatches, }: FormColorProps) => import("react/jsx-runtime").JSX.Element;
72
- Date: ForwardRefExoticComponent< FormDateProps & RefAttributes<HTMLInputElement>>;
73
- };
74
- export {};