Skip to content

Commit cb9e5b6

Browse files
committed
Restore buildable state
1 parent 93a0ce2 commit cb9e5b6

File tree

4 files changed

+21
-32
lines changed

4 files changed

+21
-32
lines changed

src/bin/css_to_ts/colorDecisions.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const contexts = ["background", "text", "border", "artwork"] as const;
1515

1616
type Context = typeof contexts[number];
1717

18+
/*
1819
const usages = [
1920
"default",
2021
"alt",
@@ -29,6 +30,7 @@ const usages = [
2930
"altOverlap",
3031
"contrastRaised"
3132
] as const;
33+
*/
3234

3335
//type Usage = typeof usages[number];
3436

@@ -49,7 +51,23 @@ export function createParseColorDecisionName(params: {
4951
}) {
5052
const { colorNames } = params;
5153

52-
function parseColorDecisionName(desicsionName: `--${string}`): ParsedColorDecisionName {
54+
console.log(colorNames);
55+
56+
function parseColorDecisionName(decisionName: `--${string}`): ParsedColorDecisionName {
57+
console.log(decisionName);
58+
59+
//const parsedColorDecisionName: ParsedColorDecisionName = { } as any;
60+
61+
//let revArr = colorOptionName.replace(/^--/, "").split("-").reverse();
62+
63+
/*
64+
--background-default-grey-hover
65+
--background-default-grey
66+
--border-action-low-orange-terre-battue
67+
--background-alt-raised-grey-hover
68+
--background-contrast-overlap-grey
69+
*/
70+
5371
return null as any;
5472
}
5573

src/test/bin/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import "./colorOptions";
2-
import "./colorDecisions";
2+
//import "./colorDecisions";

src/test/frameworks/cra/src/tools/StatefulObservable/README.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/test/frameworks/next/yarn.lock

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
regenerator-runtime "^0.13.4"
4040

4141
"@codegouvfr/react-dsfr@file:../../../../dist":
42-
version "0.0.4"
43-
dependencies:
44-
"@gouvfr/dsfr" "1.7.2"
45-
tsafe "^1.0.1"
42+
version "0.0.0"
4643

4744
"@eslint/eslintrc@^0.4.2":
4845
version "0.4.3"
@@ -59,11 +56,6 @@
5956
minimatch "^3.0.4"
6057
strip-json-comments "^3.1.1"
6158

62-
63-
version "1.7.2"
64-
resolved "https://registry.yarnpkg.com/@gouvfr/dsfr/-/dsfr-1.7.2.tgz#c522fce21a14989a10e30583160118c39c9c05d1"
65-
integrity sha512-hPNtz+gHcc8m7ZPANxSOFMz4Ap+M9FHOudqoMR/+Kjl5FCOqwA6u/aoYnMJ8KqedS1k5XThFMp7jiktr53qXYw==
66-
6759
"@humanwhocodes/config-array@^0.5.0":
6860
version "0.5.0"
6961
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9"
@@ -1754,11 +1746,6 @@ to-regex-range@^5.0.1:
17541746
dependencies:
17551747
is-number "^7.0.0"
17561748

1757-
tsafe@^1.0.1:
1758-
version "1.0.1"
1759-
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.0.1.tgz#c8c4eb2d75d1478418a4941307c5dd667fd76d23"
1760-
integrity sha512-FgJ1a4rE7YbmW5QIzpsfFl4tsAp0x74FH2bVE6qODb2U8jSrwTr5/ckIazeylme5zXndVbtgKm4BZdqmoGhiPw==
1761-
17621749
tsconfig-paths@^3.14.1:
17631750
version "3.14.1"
17641751
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a"

0 commit comments

Comments
 (0)