arengibook 1.0.3 → 1.0.5

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 CHANGED
@@ -12218,4 +12218,22 @@ var DatePicker = function DatePicker(_ref) {
12218
12218
  }, errorMessage || 'Date invalide'));
12219
12219
  };
12220
12220
 
12221
- export { Button$1 as Button, DatePicker };
12221
+ var ButtonPresets = {
12222
+ Patate: {
12223
+ primary: false,
12224
+ label: "camille",
12225
+ size: "medium",
12226
+ backgroundColor: "#b72727",
12227
+ borderRadius: 50
12228
+ },
12229
+ Validate: {
12230
+ size: "small",
12231
+ label: "Validate",
12232
+ backgroundColor: "#3ce10a",
12233
+ borderRadius: 30,
12234
+ primary: true
12235
+ }
12236
+ // etc.
12237
+ };
12238
+
12239
+ export { Button$1 as Button, ButtonPresets, DatePicker };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {
@@ -9,14 +9,10 @@
9
9
  },
10
10
  "type": "module",
11
11
  "files": [
12
- "public/story-variants.json",
13
12
  "dist"
14
13
  ],
15
14
  "scripts": {
16
15
  "dev": "vite",
17
- "build:variants": "node scripts/export-variants.mjs",
18
- "release": "npm run build:variants && npm version minor && npm publish",
19
- "prepublishOnly": "npm run build:variants",
20
16
  "build": "rollup -c",
21
17
  "lint": "eslint .",
22
18
  "preview": "vite preview",
@@ -1,66 +0,0 @@
1
- {
2
- "Button": {
3
- "Primary": {
4
- "primary": false,
5
- "label": "camille"
6
- },
7
- "Secondary": {
8
- "label": "Button"
9
- },
10
- "Large": {
11
- "size": "large",
12
- "label": "Button"
13
- },
14
- "Small": {
15
- "size": "small",
16
- "label": "Button",
17
- "borderRadius": 25
18
- },
19
- "Validate": {
20
- "size": "small",
21
- "label": "Validate",
22
- "backgroundColor": "#3ce10a",
23
- "borderRadius": 30,
24
- "primary": true
25
- },
26
- "Patate": {
27
- "primary": false,
28
- "label": "camille",
29
- "size": "medium",
30
- "backgroundColor": "#b72727",
31
- "borderRadius": 50
32
- }
33
- },
34
- "DatePicker": {
35
- "Default": {
36
- "placeholder": "Choisis une date",
37
- "dateFormat": "dd/mm/yy",
38
- "view": "date",
39
- "showWeek": false
40
- },
41
- "WithWeek": {
42
- "placeholder": "Choisis une date (avec semaine)",
43
- "dateFormat": "dd/mm/yy",
44
- "view": "date",
45
- "showWeek": true
46
- },
47
- "MonthOnly": {
48
- "placeholder": "Choisis un mois",
49
- "dateFormat": "mm/yy",
50
- "view": "month"
51
- },
52
- "Invalid": {
53
- "placeholder": "Date non valide",
54
- "dateFormat": "dd/mm/yy",
55
- "view": "date",
56
- "invalid": true,
57
- "errorMessage": "Cette date est incorrecte"
58
- },
59
- "Disabled": {
60
- "placeholder": "Choisis une date",
61
- "dateFormat": "dd/mm/yy",
62
- "view": "date",
63
- "disabled": true
64
- }
65
- }
66
- }