arengibook 1.0.5 → 1.1.0
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.
- package/dist/index.js +63 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1295,6 +1295,39 @@ Button$1.propTypes = {
|
|
|
1295
1295
|
borderRadius: PropTypes.number
|
|
1296
1296
|
};
|
|
1297
1297
|
|
|
1298
|
+
var ButtonPresets = {
|
|
1299
|
+
Primary: {
|
|
1300
|
+
primary: false,
|
|
1301
|
+
label: 'camille'
|
|
1302
|
+
},
|
|
1303
|
+
Secondary: {
|
|
1304
|
+
label: 'Secondaire'
|
|
1305
|
+
},
|
|
1306
|
+
Large: {
|
|
1307
|
+
size: 'large',
|
|
1308
|
+
label: 'Button'
|
|
1309
|
+
},
|
|
1310
|
+
Small: {
|
|
1311
|
+
size: 'small',
|
|
1312
|
+
label: 'Button',
|
|
1313
|
+
borderRadius: 25
|
|
1314
|
+
},
|
|
1315
|
+
Validate: {
|
|
1316
|
+
size: "small",
|
|
1317
|
+
label: "Validate",
|
|
1318
|
+
backgroundColor: "#3ce10a",
|
|
1319
|
+
borderRadius: 30,
|
|
1320
|
+
primary: true
|
|
1321
|
+
},
|
|
1322
|
+
Patate: {
|
|
1323
|
+
primary: false,
|
|
1324
|
+
label: "camille",
|
|
1325
|
+
size: "medium",
|
|
1326
|
+
backgroundColor: "#b72727",
|
|
1327
|
+
borderRadius: 50
|
|
1328
|
+
}
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1298
1331
|
function _arrayWithHoles$5(r) {
|
|
1299
1332
|
if (Array.isArray(r)) return r;
|
|
1300
1333
|
}
|
|
@@ -12218,22 +12251,37 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12218
12251
|
}, errorMessage || 'Date invalide'));
|
|
12219
12252
|
};
|
|
12220
12253
|
|
|
12221
|
-
var
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
borderRadius: 50
|
|
12254
|
+
var DatepickerPresets = {
|
|
12255
|
+
Default: {
|
|
12256
|
+
placeholder: 'Choisis une date',
|
|
12257
|
+
dateFormat: 'dd/mm/yy',
|
|
12258
|
+
view: 'date',
|
|
12259
|
+
showWeek: false
|
|
12228
12260
|
},
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
12261
|
+
WithWeek: {
|
|
12262
|
+
placeholder: 'Choisis une date (avec semaine)',
|
|
12263
|
+
dateFormat: 'dd/mm/yy',
|
|
12264
|
+
view: 'date',
|
|
12265
|
+
showWeek: true
|
|
12266
|
+
},
|
|
12267
|
+
MonthOnly: {
|
|
12268
|
+
placeholder: 'Choisis un mois',
|
|
12269
|
+
dateFormat: 'mm/yy',
|
|
12270
|
+
view: 'month'
|
|
12271
|
+
},
|
|
12272
|
+
Invalid: {
|
|
12273
|
+
placeholder: 'Date non valide',
|
|
12274
|
+
dateFormat: 'dd/mm/yy',
|
|
12275
|
+
view: 'date',
|
|
12276
|
+
invalid: true,
|
|
12277
|
+
errorMessage: 'Cette date est incorrecte'
|
|
12278
|
+
},
|
|
12279
|
+
Disabled: {
|
|
12280
|
+
placeholder: 'Choisis une date',
|
|
12281
|
+
dateFormat: 'dd/mm/yy',
|
|
12282
|
+
view: 'date',
|
|
12283
|
+
disabled: true
|
|
12235
12284
|
}
|
|
12236
|
-
// etc.
|
|
12237
12285
|
};
|
|
12238
12286
|
|
|
12239
|
-
export { Button$1 as Button, ButtonPresets, DatePicker };
|
|
12287
|
+
export { Button$1 as Button, ButtonPresets, DatePicker, DatepickerPresets };
|