@design-system-rte/core 0.1.2 → 0.2.0-rc2

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,4 +1,4 @@
1
- export type ButtonVariant = 'filled' | 'outlined' | 'text' | 'transparent' | 'danger'
1
+ export type ButtonVariant = 'primary' | 'secondary' | 'text' | 'transparent' | 'danger'
2
2
  export type ButtonSize = 's' | 'm' | 'l';
3
3
  export type ButtonIconPosition = 'left' | 'right';
4
4
 
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@design-system-rte/core",
3
- "version": "0.1.2",
3
+ "version": "0.2.0-rc2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "build": "npm run build:css-themes",
8
+ "build:css-themes": "ts-node css-theme-generator.ts",
9
+ "prepublishOnly": "npm run build"
7
10
  },
8
11
  "keywords": [],
9
12
  "author": "",
@@ -14,5 +17,10 @@
14
17
  },
15
18
  "peerDependencies": {
16
19
  "sass": "^1.85.1"
20
+ },
21
+ "devDependencies": {
22
+ "sass": "^1.89.0",
23
+ "ts-node": "^10.9.2",
24
+ "typescript": "^5.8.3"
17
25
  }
18
26
  }
@@ -16,7 +16,7 @@ $themes: (
16
16
  }
17
17
 
18
18
 
19
- @mixin theme-selector($targetTheme: violet, $mode: light) {
19
+ @mixin theme-selector($targetTheme: bleu_iceberg, $mode: light) {
20
20
  $theme: map.get($themes, $targetTheme, $mode);
21
21
 
22
22
  [data-theme="#{$targetTheme}"][data-mode="#{$mode}"] {
@@ -1,4 +1,5 @@
1
1
  @use 'primitives/colors' as *;
2
+ @use 'primitives/devColors' as *;
2
3
 
3
4
  $bleu_iceberg: (
4
5
  "light": (
@@ -63,6 +64,9 @@ $bleu_iceberg: (
63
64
  "content-success": $vert-digital-600,
64
65
  "content-success-inverse": $core-white,
65
66
  "content-success-bold": $vert-digital-700,
67
+ "background-hover-opacity-50": $greyscale-50-opacity-50,
68
+ "background-brand-hover-opacity-20": $bleu-iceberg-700-opacity-20,
69
+ "background-danger-hover-opacity-20": $rouge-indications-700-opacity-20,
66
70
  ),
67
71
  "dark": (
68
72
  "content-primary": $core-white,
@@ -126,6 +130,9 @@ $bleu_iceberg: (
126
130
  "content-success": $vert-digital-600,
127
131
  "content-success-inverse": $core-white,
128
132
  "content-success-bold": $vert-digital-500,
133
+ "background-hover-opacity-50": $greyscale-800-opacity-50,
134
+ "background-brand-hover-opacity-20": $bleu-iceberg-200-opacity-20,
135
+ "background-danger-hover-opacity-20": $rouge-indications-500-opacity-20,
129
136
  )
130
137
  );
131
138
 
@@ -192,6 +199,9 @@ $violet: (
192
199
  "content-success": $vert-digital-600,
193
200
  "content-success-inverse": $core-white,
194
201
  "content-success-bold": $vert-digital-700,
202
+ "background-hover-opacity-50": $greyscale-50-opacity-50,
203
+ "background-brand-hover-opacity-20": $violet-700-opacity-20,
204
+ "background-danger-hover-opacity-20": $rouge-indications-700-opacity-20,
195
205
  ),
196
206
  "dark": (
197
207
  "content-primary": $core-white,
@@ -255,6 +265,9 @@ $violet: (
255
265
  "content-success": $vert-digital-600,
256
266
  "content-success-inverse": $core-white,
257
267
  "content-success-bold": $vert-digital-500,
268
+ "background-hover-opacity-50": $greyscale-800-opacity-50,
269
+ "background-brand-hover-opacity-20": $violet-200-opacity-20,
270
+ "background-danger-hover-opacity-20": $rouge-indications-500-opacity-20,
258
271
  )
259
272
  );
260
273
 
@@ -321,6 +334,9 @@ $vert_foret: (
321
334
  "content-success": $vert-digital-600,
322
335
  "content-success-inverse": $core-white,
323
336
  "content-success-bold": $vert-digital-700,
337
+ "background-hover-opacity-50": $greyscale-50-opacity-50,
338
+ "background-brand-hover-opacity-20": $vert-foret-700-opacity-20,
339
+ "background-danger-hover-opacity-20": $rouge-indications-700-opacity-20,
324
340
  ),
325
341
  "dark": (
326
342
  "content-primary": $core-white,
@@ -384,5 +400,8 @@ $vert_foret: (
384
400
  "content-success": $vert-digital-600,
385
401
  "content-success-inverse": $core-white,
386
402
  "content-success-bold": $vert-digital-500,
403
+ "background-hover-opacity-50": $greyscale-800-opacity-50,
404
+ "background-brand-hover-opacity-20": $vert-foret-200-opacity-20,
405
+ "background-danger-hover-opacity-20": $rouge-indications-500-opacity-20,
387
406
  )
388
407
  );
@@ -0,0 +1,12 @@
1
+ @use 'colors' as *;
2
+
3
+ $greyscale-50-opacity-50: rgba($greyscale-50, 0.5);
4
+ $greyscale-800-opacity-50: rgba($greyscale-800, 0.5);
5
+ $bleu-iceberg-700-opacity-20: rgba($bleu-iceberg-700, 0.2);
6
+ $bleu-iceberg-200-opacity-20: rgba($bleu-iceberg-200, 0.2);
7
+ $violet-700-opacity-20: rgba($violet-700, 0.2);
8
+ $violet-200-opacity-20: rgba($violet-200, 0.2);
9
+ $vert-foret-700-opacity-20: rgba($vert-foret-700, 0.2);
10
+ $vert-foret-200-opacity-20: rgba($vert-foret-200, 0.2);
11
+ $rouge-indications-700-opacity-20: rgba($rouge-indications-700, 0.2);
12
+ $rouge-indications-500-opacity-20: rgba($rouge-indications-500, 0.2);
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2019",
4
+ "module": "commonjs",
5
+ "esModuleInterop": true,
6
+ "skipLibCheck": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "strict": true
9
+ },
10
+ "include": ["scripts/**/*"],
11
+ "exclude": ["node_modules"]
12
+ }