@codecademy/styleguide 79.2.1-alpha.f4b2b2.0 → 79.2.1

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.
@@ -3,7 +3,7 @@ import { GamutIconProps } from '@codecademy/gamut-icons';
3
3
  import { IllustrationProps } from '@codecademy/gamut-illustrations';
4
4
  import { PatternProps } from '@codecademy/gamut-patterns';
5
5
  import { css, timingValues } from '@codecademy/gamut-styles';
6
- import { motion, AnimatePresence } from 'motion/react';
6
+ import { motion, AnimatePresence } from 'framer-motion';
7
7
  import * as React from 'react';
8
8
  import { useState } from 'react';
9
9
  import styled from '@emotion/styled';
@@ -44,7 +44,7 @@ type GlobalsContext = {
44
44
  export const withEmotion = (Story: any, context: GlobalsContext) => {
45
45
  const colorMode = context.globals.colorMode ?? 'light';
46
46
  const selectedTheme = context.globals.theme;
47
- const useLogicalProperties = context.globals.logicalProps !== 'false';
47
+ const useLogicalProperties = context.globals.logicalProps === 'true';
48
48
  const direction = context.globals.direction ?? 'ltr';
49
49
  const background = corePalette[themeBackground[colorMode]];
50
50
  const storyRef = useRef<HTMLDivElement>(null);
package/CHANGELOG.md CHANGED
@@ -3,9 +3,11 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ### [79.2.1-alpha.f4b2b2.0](https://github.com/Codecademy/gamut/compare/@codecademy/styleguide@79.2.0...@codecademy/styleguide@79.2.1-alpha.f4b2b2.0) (2026-03-16)
6
+ ### [79.2.1](https://github.com/Codecademy/gamut/compare/@codecademy/styleguide@79.2.0...@codecademy/styleguide@79.2.1) (2026-03-17)
7
7
 
8
- **Note:** Version bump only for package @codecademy/styleguide
8
+ ### Bug Fixes
9
+
10
+ - update reboot file to conditionally use logical properties or physical properties ([404937b](https://github.com/Codecademy/gamut/commit/404937be816a16ffbf7cb4c5b3a2a1999969f31d))
9
11
 
10
12
  ## [79.2.0](https://github.com/Codecademy/gamut/compare/@codecademy/styleguide@79.1.4...@codecademy/styleguide@79.2.0) (2026-03-12)
11
13
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@codecademy/styleguide",
3
3
  "description": "Styleguide & Component library for codecademy.com",
4
- "version": "79.2.1-alpha.f4b2b2.0",
4
+ "version": "79.2.1",
5
5
  "author": "Codecademy Engineering",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "repository": "git@github.com:Codecademy/gamut.git",
11
- "gitHead": "05dffa01ea7348becd1074075040204794f0fdaf"
11
+ "gitHead": "e5d54601094d675dd45ee176745781f3298d9f61"
12
12
  }
@@ -5,7 +5,7 @@ import {
5
5
  FlexBox,
6
6
  } from '@codecademy/gamut';
7
7
  import type { Meta } from '@storybook/react';
8
- import { AnimatePresence } from 'motion/react';
8
+ import { AnimatePresence } from 'framer-motion';
9
9
  import { PropsWithChildren, useState } from 'react';
10
10
 
11
11
  const meta: Meta<typeof ExpandInCollapseOut> = {
@@ -1,6 +1,6 @@
1
1
  import { Box, FadeInSlideOut, FillButton, FlexBox } from '@codecademy/gamut';
2
2
  import type { Meta } from '@storybook/react';
3
- import { AnimatePresence } from 'motion/react';
3
+ import { AnimatePresence } from 'framer-motion';
4
4
  import { useState } from 'react';
5
5
 
6
6
  const meta: Meta<typeof FadeInSlideOut> = {
@@ -79,7 +79,7 @@ const ExpandableContainer = styled.Box(
79
79
 
80
80
  #### Disabling the rule
81
81
 
82
- For third-party components or edge cases where inline styles are necessary (e.g., motion animations), you can disable the rule:
82
+ For third-party components or edge cases where inline styles are necessary (e.g., framer-motion animations), you can disable the rule:
83
83
 
84
84
  ```tsx
85
85
  // eslint-disable-next-line gamut/no-inline-style
@@ -39,28 +39,6 @@ yarn add @codecademy/gamut-kit @emotion/react @emotion/styled
39
39
 
40
40
  3. Wrap your application root with `GamutProvider` and give it the theme you would like to use for your app.
41
41
 
42
- **React 19:**
43
-
44
- ```tsx
45
- import React from 'react';
46
- import { createRoot } from 'react-dom/client';
47
- import { GamutProvider, theme } from '@codecademy/gamut-styles';
48
-
49
- import { App } from './App';
50
-
51
- const rootElement = document.getElementById('root');
52
- if (rootElement) {
53
- const root = createRoot(rootElement);
54
- root.render(
55
- <GamutProvider>
56
- <App />
57
- </GamutProvider>
58
- );
59
- }
60
- ```
61
-
62
- **React 18:**
63
-
64
42
  ```tsx
65
43
  import React from 'react';
66
44
  import { render } from 'react-dom';
@@ -69,14 +47,13 @@ import { GamutProvider, theme } from '@codecademy/gamut-styles';
69
47
  import { App } from './App';
70
48
 
71
49
  const rootElement = document.getElementById('root');
72
- if (rootElement) {
73
- render(
74
- <GamutProvider>
75
- <App />
76
- </GamutProvider>,
77
- rootElement
78
- );
79
- }
50
+
51
+ render(
52
+ <GamutProvider>
53
+ <App />
54
+ </GamutProvider>,
55
+ rootElement
56
+ );
80
57
  ```
81
58
 
82
59
  GamutProvider handles a few critical tasks that need to happen in order for components to work.