Skip to content

Commit d189e1c

Browse files
committed
fix errors
1 parent af18ad7 commit d189e1c

4 files changed

Lines changed: 68 additions & 17 deletions

File tree

packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ exports[`Gamut Exported Keys 1`] = `
1414
"BodyPortal",
1515
"Box",
1616
"Breadcrumbs",
17-
"Calendar",
1817
"CalendarBody",
1918
"CalendarFooter",
2019
"CalendarHeader",
20+
"CalendarNavLastMonth",
21+
"CalendarNavNextMonth",
22+
"CalendarWrapper",
2123
"Card",
2224
"Checkbox",
23-
"clampToMonth",
2425
"Coachmark",
2526
"Column",
2627
"ConnectedCheckbox",
@@ -57,21 +58,14 @@ exports[`Gamut Exported Keys 1`] = `
5758
"FocusTrap",
5859
"focusVisibleStyle",
5960
"Form",
60-
"formatDateForInput",
61-
"formatDateRangeForInput",
62-
"formatMonthYear",
6361
"FormError",
6462
"FormGroup",
6563
"FormGroupDescription",
6664
"FormGroupLabel",
6765
"FormPropsContext",
6866
"FormRequiredText",
6967
"generateResponsiveClassnames",
70-
"getDayOfWeek",
7168
"getFocusableElements",
72-
"getMonthGrid",
73-
"getWeekdayFullNames",
74-
"getWeekdayLabels",
7569
"GridBox",
7670
"GridForm",
7771
"GridFormContent",
@@ -81,11 +75,6 @@ exports[`Gamut Exported Keys 1`] = `
8175
"InfoTip",
8276
"Input",
8377
"isClickableCrumb",
84-
"isDateDisabled",
85-
"isDateInRange",
86-
"isPastDate",
87-
"isSameDay",
88-
"isValidDate",
8978
"LayoutGrid",
9079
"List",
9180
"ListCol",
@@ -98,8 +87,6 @@ exports[`Gamut Exported Keys 1`] = `
9887
"omitProps",
9988
"Overlay",
10089
"Pagination",
101-
"parseDateFromInput",
102-
"parseDateRangeFromInput",
10390
"Popover",
10491
"PopoverContainer",
10592
"PreviewTip",

packages/gamut/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export default base('gamut', {
88
setupFiles: ['<rootDir>/../../script/jest/base-setup.js'],
99
setupFilesAfterEnv: ['<rootDir>/../../script/jest/rtl-setup.js'],
1010
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
11-
transformIgnorePatterns: ['node_modules/(?!(@vidstack/react)/)'],
11+
transformIgnorePatterns: ['node_modules/(?!(@vidstack/react|@formatjs)/)'],
1212
});

packages/gamut/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@codecademy/gamut-patterns": "0.10.28",
1010
"@codecademy/gamut-styles": "17.13.1",
1111
"@codecademy/variance": "0.26.1",
12+
"@formatjs/intl-locale": "^5.3.1",
1213
"@react-aria/interactions": "3.25.0",
1314
"@types/marked": "^4.0.8",
1415
"@vidstack/react": "^1.12.12",

yarn.lock

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,7 @@ __metadata:
18411841
"@codecademy/gamut-patterns": "npm:0.10.28"
18421842
"@codecademy/gamut-styles": "npm:17.13.1"
18431843
"@codecademy/variance": "npm:0.26.1"
1844+
"@formatjs/intl-locale": "npm:^5.3.1"
18441845
"@react-aria/interactions": "npm:3.25.0"
18451846
"@types/marked": "npm:^4.0.8"
18461847
"@vidstack/react": "npm:^1.12.12"
@@ -2447,6 +2448,13 @@ __metadata:
24472448
languageName: node
24482449
linkType: hard
24492450

2451+
"@formatjs/bigdecimal@npm:0.2.0":
2452+
version: 0.2.0
2453+
resolution: "@formatjs/bigdecimal@npm:0.2.0"
2454+
checksum: 10c0/dec607e3d9d4b8c5d0474862e867726cbf322a24d543d5b2cbc3cab6fea187ac787a8e1a0e3df5ceef85a1ab9d58112a08bb7af40b1b3a3b00670431b0603510
2455+
languageName: node
2456+
linkType: hard
2457+
24502458
"@formatjs/ecma402-abstract@npm:2.3.4":
24512459
version: 2.3.4
24522460
resolution: "@formatjs/ecma402-abstract@npm:2.3.4"
@@ -2459,6 +2467,17 @@ __metadata:
24592467
languageName: node
24602468
linkType: hard
24612469

2470+
"@formatjs/ecma402-abstract@npm:3.2.0":
2471+
version: 3.2.0
2472+
resolution: "@formatjs/ecma402-abstract@npm:3.2.0"
2473+
dependencies:
2474+
"@formatjs/bigdecimal": "npm:0.2.0"
2475+
"@formatjs/fast-memoize": "npm:3.1.1"
2476+
"@formatjs/intl-localematcher": "npm:0.8.2"
2477+
checksum: 10c0/b3c8ac881c3d7533fb4127ca3d771d2a32cb89e6efbbcc72d80b1dcc6a798494ace9ca5ee822b25eb08ebdc7ee2885a9e33496a436b40271ffc915ece605a3ce
2478+
languageName: node
2479+
linkType: hard
2480+
24622481
"@formatjs/fast-memoize@npm:2.2.7":
24632482
version: 2.2.7
24642483
resolution: "@formatjs/fast-memoize@npm:2.2.7"
@@ -2468,6 +2487,13 @@ __metadata:
24682487
languageName: node
24692488
linkType: hard
24702489

2490+
"@formatjs/fast-memoize@npm:3.1.1":
2491+
version: 3.1.1
2492+
resolution: "@formatjs/fast-memoize@npm:3.1.1"
2493+
checksum: 10c0/79b24dc1389a49b2b2fb9e90a2ba922a4057d4b74e7bc33a3811f0dc94a5a868d28e8e37917b68c2f831070d11dfd0889de686f269bf5214085a44efc1c25a8c
2494+
languageName: node
2495+
linkType: hard
2496+
24712497
"@formatjs/icu-messageformat-parser@npm:2.11.2":
24722498
version: 2.11.2
24732499
resolution: "@formatjs/icu-messageformat-parser@npm:2.11.2"
@@ -2489,6 +2515,24 @@ __metadata:
24892515
languageName: node
24902516
linkType: hard
24912517

2518+
"@formatjs/intl-getcanonicallocales@npm:3.2.2":
2519+
version: 3.2.2
2520+
resolution: "@formatjs/intl-getcanonicallocales@npm:3.2.2"
2521+
checksum: 10c0/3b0235c0752a1db8d92502211d048822711d9141217f679f54a0914426e2516685b468f2711f0d27a18f3db3d1908c7e2655746af3fb34e660b1126450c3f42a
2522+
languageName: node
2523+
linkType: hard
2524+
2525+
"@formatjs/intl-locale@npm:^5.3.1":
2526+
version: 5.3.1
2527+
resolution: "@formatjs/intl-locale@npm:5.3.1"
2528+
dependencies:
2529+
"@formatjs/ecma402-abstract": "npm:3.2.0"
2530+
"@formatjs/intl-getcanonicallocales": "npm:3.2.2"
2531+
"@formatjs/intl-supportedvaluesof": "npm:2.3.0"
2532+
checksum: 10c0/19e00dde293d2cfda7357420957062e319a041bc3aaa8bd9b834463074e6e7bf2ae2374818a01c24d659c4373b1954a671460299258568775d30875aabbeaf90
2533+
languageName: node
2534+
linkType: hard
2535+
24922536
"@formatjs/intl-localematcher@npm:0.6.1":
24932537
version: 0.6.1
24942538
resolution: "@formatjs/intl-localematcher@npm:0.6.1"
@@ -2498,6 +2542,25 @@ __metadata:
24982542
languageName: node
24992543
linkType: hard
25002544

2545+
"@formatjs/intl-localematcher@npm:0.8.2":
2546+
version: 0.8.2
2547+
resolution: "@formatjs/intl-localematcher@npm:0.8.2"
2548+
dependencies:
2549+
"@formatjs/fast-memoize": "npm:3.1.1"
2550+
checksum: 10c0/3bf838a018184837b167964849dafdcdeac95531a24f4df7d868638d4ad716854a250e9bccac9ab4568264c0db7470e70b99363da1db308fdc882b87f3eca651
2551+
languageName: node
2552+
linkType: hard
2553+
2554+
"@formatjs/intl-supportedvaluesof@npm:2.3.0":
2555+
version: 2.3.0
2556+
resolution: "@formatjs/intl-supportedvaluesof@npm:2.3.0"
2557+
dependencies:
2558+
"@formatjs/ecma402-abstract": "npm:3.2.0"
2559+
"@formatjs/fast-memoize": "npm:3.1.1"
2560+
checksum: 10c0/132a44cf6922f8eaa58fef47f74179d75614a9c68343defc07f6d42080e29205b2a8663db599e404da4dd657790aca0b2312733abfeec56d3524593d6e8a4f6e
2561+
languageName: node
2562+
linkType: hard
2563+
25012564
"@humanwhocodes/config-array@npm:^0.13.0":
25022565
version: 0.13.0
25032566
resolution: "@humanwhocodes/config-array@npm:0.13.0"

0 commit comments

Comments
 (0)