# Crispy React 1 and older URL: /react/updates/upgrade/v1 Source: https://github.com/daangn/seed-design/blob/dev/docs/content/react/updates/upgrade/v1.mdx Guide to upgrading between versions prior to Crispy React 2 by version ranges. This guide explains how to upgrade between versions prior to Crispy React 2. To upgrade from Crispy React 1.2 to 2, you can refer to the [Crispy React 2 Upgrade](/react/updates/upgrade/v2) document, and all changes including new features can be found in [Changelog](/react/updates/changelog). Crispy React 1 includes breaking changes in minor versions. *** ## Package Version Compatibility In Crispy React 1, `@seed-design/react` and `@seed-design/css` were released as separate versions but were interdependent, and the `peerDependencies` declarations during this period sometimes had no upper limit or were entirely omitted. While declarations alone may pass validation, there were actually combinations where markup and styles didn't match. If you are using 1.x, check your current combination first according to the rules below before upgrading. From 2.0.0, strict SemVer is followed and `peerDependencies` declarations are accurate. If you are using 2.x, you can trust the peer declaration of the package as is. The content below is a record limited to the 1.x range. ### Judgment Rules **`@seed-design/css` must be on the same minor line as `@seed-design/react` and must be at or above the floor specified in the table below.** If the lines are different (e.g., react 1.1.x + css 1.2.x), they are not compatible. Since the internal structure of Help Bubble·Radio Group changed in 1.2.0, applying 1.2 line styles to 1.1 line markup will break the screen. Even after 1.2.0, the 1.1 line continued to be released via backport, and the same fixes were reflected in the 1.2 line as separate versions. Mixing lines can cause you to hit "versions that don't yet have the fix." ### `@seed-design/react` ↔ `@seed-design/css` Rows represent installed react version, columns represent installed css version. ✅ Compatible · ⬇️ css is low (upgrade css) · ⬆️ css is high (upgrade react). | react \ css | \< 1.1.0 | 1.1.0 ~ | 1.1.10 ~ | 1.1.12 ~ | 1.1.13 ~ | 1.1.16 ~ | 1.1.17 ~ | 1.1.23 ~ | 1.1.24 ~ | 1.2.0 ~ | ≥ 2.0.0 | | -------------------- | -------- | -------- | --------- | --------- | --------- | --------- | --------- | --------- | --------- | -------- | ------- | | **\< 1.1.0** | ✅ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | | **1.1.0 ~ 1.1.9** | ⬇️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ⬆️ | ⬆️ | | **1.1.10 ~ 1.1.11** | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ⬆️ | ⬆️ | | **1.1.12** | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ⬆️ | ⬆️ | | **1.1.13 ~ 1.1.15** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | ✅ | ✅ | ⬆️ | ⬆️ | | **1.1.16** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | ✅ | ⬆️ | ⬆️ | | **1.1.17 ~ 1.1.22** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | ⬆️ | ⬆️ | | **1.1.23** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ⬆️ | ⬆️ | | **1.1.24 ~ 1.1.28** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ⬆️ | ⬆️ | | **1.2.0 ~ 1.2.15** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ⬆️ | | **≥ 2.0.0** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | Column headers like `1.1.10 ~` mean up to just before the next column, as in `>= 1.1.10 < 1.1.12`. ### `@seed-design/stackflow` ↔ `@seed-design/css` Since `@seed-design/stackflow` has no 1.2 line, the 1.1 line supports both css 1.1 and 1.2. So unlike react, you can mix lines. However, it breaks when crossing the boundary where AppScreen screen transitions changed to WAAPI-based (css 1.1.25 / 1.2.11, stackflow 1.1.22). Symbols are the same as the table above, 🚫 represents known incompatible combinations, and ❌ represents css sections where WAAPI support has not yet been reflected. | stackflow \ css | \< 1.0.5 | 1.0.5 ~ | 1.0.7 ~ | 1.1.0 ~ | 1.1.5 ~ | 1.1.9 ~ | 1.1.10 ~ | 1.1.15 ~ | 1.1.16 ~ | 1.1.19 ~ | 1.1.25 ~ | 1.2.0 ~ | 1.2.11 ~ | ≥ 2.0.0 | | -------------------- | -------- | -------- | -------- | -------- | -------- | -------- | --------- | --------- | --------- | --------- | --------- | -------- | --------- | ------- | | **1.0.0** | ✅ | ✅ | ✅ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | 🚫 | | **1.0.5** | ⬇️ | ✅ | ✅ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | 🚫 | | **1.0.9** | ⬇️ | ⬇️ | ✅ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | ⬆️ | 🚫 | | **1.1.0 ~ 1.1.4** | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 🚫 | ✅ | 🚫 | 🚫 | | **1.1.5 ~ 1.1.8** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 🚫 | ✅ | 🚫 | 🚫 | | **1.1.9 ~ 1.1.10** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | ✅ | ✅ | 🚫 | ✅ | 🚫 | 🚫 | | **1.1.11 ~ 1.1.14** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | ✅ | 🚫 | ✅ | 🚫 | 🚫 | | **1.1.15** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | ✅ | 🚫 | ✅ | 🚫 | 🚫 | | **1.1.16** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ✅ | 🚫 | ✅ | 🚫 | 🚫 | | **1.1.17 ~ 1.1.21** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | 🚫 | ✅ | 🚫 | 🚫 | | **1.1.22 ~ 1.1.25** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | ❌ | ✅ | 🚫 | | **≥ 2.0.0** | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ⬇️ | ✅ | The combination of stackflow 1.1.22 or later and css 1.2.0 ~ 1.2.10 (❌) is incompatible because WAAPI support was added from css 1.2.11. Either upgrade css to 1.2.11 or later, or use the css 1.1 line (1.1.25 or later). ### Known Incompatible Combinations | Combination | Symptom | Solution | | ------------------------------------------------------------------- | ----------------------------------------------------------------- | --------------------------------------------- | | `stackflow < 1.1.22` + `css >= 1.1.25`(1.1 line) or `css >= 1.2.11` | AppScreen screen transition animation and AppBar background break | Upgrade stackflow to 1.1.22 or later together | | `stackflow 1.x` + `css 2.x` | Combination crossing major boundary | Upgrade stackflow to 2.x together | The first item is a change where both css and stackflow changed together as AppScreen transitions switched to WAAPI-based. The css change was included in 1.1.25 (1.1 line backport) and 1.2.11 (1.2 line), and the corresponding stackflow change was included in 1.1.22. ### If You Encounter a Version Not in the Table The table is based on 1.x versions released up to the time this document was written. If a version is released after that, check the peer declaration of the installed package directly. ```bash cat node_modules/@seed-design/react/package.json | grep -A5 peerDependencies ``` Version numbers have gaps. Below lists only versions actually released on npm. **`@seed-design/react`** | Range | Released Versions | | --------- | ------------------------------------------------------------- | | \< 1.1.0 | 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8 | | 1.1.0 ~ | 1.1.0, 1.1.1, 1.1.3, 1.1.4, 1.1.5, 1.1.7, 1.1.8 | | 1.1.10 ~ | 1.1.10 | | 1.1.12 ~ | 1.1.12 | | 1.1.13 ~ | 1.1.13 | | 1.1.16 ~ | 1.1.16 | | 1.1.17 ~ | 1.1.17, 1.1.18, 1.1.19, 1.1.20, 1.1.21, 1.1.22 | | 1.1.23 ~ | 1.1.23 | | 1.1.24 ~ | 1.1.24, 1.1.25, 1.1.26, 1.1.27, 1.1.28 | | 1.2.0 ~ | 1.2.0 ~ 1.2.15 (all) | **`@seed-design/css`** | Range | Released Versions | | --------- | ------------------------------------------------------ | | \< 1.1.0 | 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.5, 1.0.6, 1.0.7 | | 1.1.0 ~ | 1.1.0, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9 | | 1.1.10 ~ | 1.1.10 | | 1.1.12 ~ | 1.1.12 | | 1.1.13 ~ | 1.1.13, 1.1.15 | | 1.1.16 ~ | 1.1.16 | | 1.1.17 ~ | 1.1.17, 1.1.19 | | 1.1.23 ~ | 1.1.23 | | 1.1.24 ~ | 1.1.24, 1.1.25, 1.1.26, 1.1.27 | | 1.2.0 ~ | 1.2.0 ~ 1.2.16 (all) | **`@seed-design/stackflow`** | Range | Released Versions | | ----- | ------------------------------------------------------------------------------------------------------------------- | | 1.0.x | 1.0.0, 1.0.5, 1.0.9 | | 1.1.x | 1.1.0, 1.1.5, 1.1.9, 1.1.11, 1.1.15, 1.1.16, 1.1.17, 1.1.18, 1.1.19, 1.1.20, 1.1.21, 1.1.22, 1.1.23, 1.1.24, 1.1.25 | *** ## 0.2.0 Stroke Semantic Token Name Refactoring \[Direct judgment and code modification required] When upgrading from a version before 0.2.0, update the code using stroke color semantic tokens that you are using by referring to the items below. You can make bulk changes with codemod or substitute manually by referring to the table. - npm: npx @seed-design/codemod@latest replace-semantic-stroke-color \ - pnpm: pnpm dlx @seed-design/codemod@latest replace-semantic-stroke-color \ - yarn: yarn dlx @seed-design/codemod@latest replace-semantic-stroke-color \ - bun: bun x @seed-design/codemod@latest replace-semantic-stroke-color \ | Before 0.2.0 Token | After 0.2.0 Token | Remarks | | ----------------------------- | -------------------------------- | ------------------------------------------ | | `$color.stroke.neutral-muted` | `$color.stroke.neutral-subtle` | This item must be migrated first in order. | | `$color.stroke.on-image` | `$color.stroke.neutral-subtle` | | | `$color.stroke.neutral` | `$color.stroke.neutral-muted` | | | `$color.stroke.field-focused` | `$color.stroke.neutral-contrast` | | | `$color.stroke.control` | `$color.stroke.neutral-weak` | | | `$color.stroke.field` | `$color.stroke.neutral-weak` | | | `$color.stroke.brand` | `$color.stroke.brand-weak` | | | `$color.stroke.positive` | `$color.stroke.positive-weak` | | | `$color.stroke.informative` | `$color.stroke.informative-weak` | | | `$color.stroke.warning` | `$color.stroke.warning-weak` | | | `$color.stroke.critical` | `$color.stroke.critical-weak` | | See [Available Transforms](/react/developer-tools/codemods/available-transforms) for details. *** ## Upgrading to 1.0 Crispy React documentation for version 1.0. There are snippet (recommended combination) changes for the components below, but no other code changes are needed. \[Snippet update required] - npm: npx @seed-design/cli@latest add-all --seed-react-version 1.0 --on-diff backup ui - pnpm: pnpm dlx @seed-design/cli@latest add-all --seed-react-version 1.0 --on-diff backup ui - yarn: yarn dlx @seed-design/cli@latest add-all --seed-react-version 1.0 --on-diff backup ui - bun: bun x @seed-design/cli@latest add-all --seed-react-version 1.0 --on-diff backup ui * **Snackbar**: Layout changes - `add ui:snackbar` * **MannerTemp / MannerTempBadge**: Reflects new 10-step temperature ranges. - `add ui:manner-temp ui:manner-temp-badge` - If there is code that directly specifies `level`, you need to verify that the temperature-specific ranges are displayed as intended. * **SwitchMark / List Header** added - `add ui:switch`, `add ui:list` If there is code that directly imports and uses Snackbar/MannerTemp/MannerTempBadge from `@seed-design/react`, update it to match the new snippet structure. *** ## Upgrading from 1.0 to 1.1 Crispy React documentation for version 1.1. ### 1. Page Banner Structure Change \[Snippet update required] `PageBanner.TextContent` has been renamed to `PageBanner.Content`, and the layout previously styled with Box has been replaced with `PageBanner.Body`. There are snippet changes, so you need to add it again. No changes are needed to code that uses the snippet component. If there is code that directly imports and uses `PageBanner` from `@seed-design/react`, update it to match the new snippet structure. - npm: npx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:page-banner - pnpm: pnpm dlx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:page-banner - yarn: yarn dlx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:page-banner - bun: bun x @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:page-banner ### 2. Remove Text Field `size="xlarge"` and Provide Field-based Snippet \[Snippet update and code changes required] The Text Field snippet component has been refactored to use the Field component internally. The `onValueChange` signature has been changed from `((value: string) => void) | undefined` to `((values: { value: string; graphemes: string[]; slicedValue: string; slicedGraphemes: string[]; }) => void) | undefined`. There are snippet changes, so you need to add it again. If there is code that directly imports and uses `TextField` from `@seed-design/react`, update it to match the new snippet structure. - npm: npx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:text-field - pnpm: pnpm dlx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:text-field - yarn: yarn dlx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:text-field - bun: bun x @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:text-field `size="xlarge"` has been removed. Please use `size="large"` (the default). ### 3. Convert Bottom Sheet to Drawer-based \[Snippet update and code changes required] The Dialog-based Bottom Sheet has been converted to a Drawer-based one, adding features such as swipe to dismiss and snap points. There are snippet changes, so you need to add it again. If there is code that directly imports and uses `BottomSheet` from `@seed-design/react`, update it to match the new snippet structure. - npm: npx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:bottom-sheet - pnpm: pnpm dlx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:bottom-sheet - yarn: yarn dlx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:bottom-sheet - bun: bun x @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:bottom-sheet The snippet component `BottomSheetContent`'s `hideCloseButton` (default: `false`) interface has been changed to `showCloseButton` (default: `true`). ```tsx // [!code --] // [!code ++] ``` ### 4. Error State Snippet Change \[Snippet update and code changes required] The Error State snippet has been changed to use Action Button (`variant="ghost"`) internally, so it needs to be added again. - npm: npx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:error-state - pnpm: pnpm dlx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:error-state - yarn: yarn dlx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:error-state - bun: bun x @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:error-state The snippet component `ErrorState`'s `secondaryActionProps` type has been changed from `React.ButtonHTMLAttributes` to `ActionButtonProps`. If there is code using `secondaryActionProps`, update it to match the new type. *** ## Upgrading from 1.1 to 1.2 Crispy React documentation for version 1.2. The 6 h3 items below are independent, so they can be done in parallel. ### 1. Help Bubble Layout Change \[Snippet update required] The snippet has been updated so that the new `HelpBubble.Body` wraps `HelpBubble.Title` and `HelpBubble.Description`. Code that uses components exported from the snippet, such as `HelpBubbleTrigger` and `HelpBubbleAnchor`, requires no changes other than re-fetching the snippet. If there is code that directly imports and uses `HelpBubble` from `@seed-design/react`, update it to match the new snippet structure. - npm: npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:help-bubble - pnpm: pnpm dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:help-bubble - yarn: yarn dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:help-bubble - bun: bun x @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:help-bubble ### 2. MenuSheetItem Layout Change \[Snippet update and code changes required] The `MenuSheetItem` snippet component has been improved to allow adding a `description`, and the layout has changed. There are snippet changes, so you need to add it again. If there is code that directly imports and uses `MenuSheetItem` from `@seed-design/react`, update it to match the new snippet structure. - npm: npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:menu-sheet - pnpm: pnpm dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:menu-sheet - yarn: yarn dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:menu-sheet - bun: bun x @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:menu-sheet In code that uses the snippet component `MenuSheetItem`, please use the `label` prop instead of `children`, and the `prefixIcon` prop instead of ``. ```diff - - } /> - Menu item -; +} label="Menu item" />; ``` ### 3. Modify Bottom Sheet and Menu Sheet to Have Safe Area by Default \[Direct judgment required] `BottomSheet.Content` and `MenuSheet.Content` have been changed to have bottom safe-area padding by default. If you were adding safe-area padding directly to the sheet, remove it. ```tsx {/* [!code --] */} ... {/* [!code ++] */} ... ``` ### 4. Tag Group Layout Change \[Snippet update and code changes required] A new snippet component is now provided for the Tag Group Item layout. - npm: npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:tag-group - pnpm: pnpm dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:tag-group - yarn: yarn dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:tag-group - bun: bun x @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:tag-group Replace the Tag Group imported from `@seed-design/react` with an import from the snippet (`seed-design/ui/tag-group`), and use the `label` prop instead of `children`, and `prefixIcon`/`suffixIcon` props instead of `PrefixIcon`/`SuffixIcon`. ```tsx import { TagGroupRoot, TagGroupItem } from "@seed-design/react"; // [!code --] import { TagGroupRoot, TagGroupItem } from "seed-design/ui/tag-group"; // [!code ++] {/* [!code --] */} {/* [!code --] */} } /> {/* [!code --] */} Seocho 4-dong {/* [!code --] */} {/* [!code ++] */} } /> ; ``` If you need customization such as specifying a different color only for the icon, you can use `TagGroup.Item` and `TagGroup.ItemLabel` from `@seed-design/react` together. ```tsx import { TagGroupRoot } from "seed-design/ui/tag-group"; import { TagGroup as SeedTagGroup } from "@seed-design/react"; {/* ... */} } color="fg.brand" /> Ad ; ``` ### 5. Select Box Layout Change \[Snippet update and code changes required] There are snippet changes, so you need to add it again. If there is code that directly imports and uses Select Box-related components from `@seed-design/react`, update it to match the new snippet structure. - npm: npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:select-box - pnpm: pnpm dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:select-box - yarn: yarn dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:select-box - bun: bun x @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:select-box * Changes the `CheckSelectBoxGroup` / `RadioSelectBoxRoot` components to a grid layout with gap included by default. - Removes the `VStack` that used to wrap the children, so `CheckSelectBoxGroup` and `RadioSelectBoxRoot` now wrap the items directly. - If the `VStack` has styles other than `gap`, you can leave the `VStack` outside `CheckSelectBoxGroup` / `RadioSelectBoxRoot` to preserve the layout. - Also check whether you are wrapping `VStack` with `asChild`, as in `...`. * Changes so that the Checkmark or Radiomark inside Select Box is no longer displayed automatically. - Add `suffix={}` / `suffix={}` to `CheckSelectBox` / `RadioSelectBoxItem`. ```tsx import { VStack } from "@seed-design/react"; // [!code --] import { CheckSelectBoxGroup, CheckSelectBox } from "seed-design/ui/select-box"; // [!code --] // [!code ++] import { // [!code ++] CheckSelectBoxGroup, // [!code ++] CheckSelectBox, // [!code ++] CheckSelectBoxCheckmark, // [!code ++] } from "seed-design/ui/select-box"; // [!code ++] {/* [!code --] */} {/* [!code --] */} {/* [!code --] */} {/* [!code --] */} {/* [!code ++] */} } /> // {/* [!code ++] */} } /> // ; ``` ```tsx import { VStack } from "@seed-design/react"; // [!code --] // [!code --] import { RadioSelectBoxRoot, // [!code --] RadioSelectBoxItem, // [!code --] } from "seed-design/ui/select-box"; // [!code --] // [!code ++] import { RadioSelectBoxRoot, // [!code ++] RadioSelectBoxItem, // [!code ++] RadioSelectBoxRadiomark, // [!code ++] } from "seed-design/ui/select-box"; // [!code ++] {/* [!code --] */} {/* [!code --] */} {/* [!code --] */} {/* [!code --] */} {/* [!code ++] */} } // [!code ++] /> {/* [!code ++] */} } // [!code ++] /> ; ``` ### 6. Radio Group / Item Related Changes The 3 items below can affect each other, so proceed in order. #### Remove Radio Item `invalid` prop \[Detectable via error] Removes the `invalid` prop from `RadioGroupItem`, `RadioChipItem`, `RadioSelectBoxItem`, and `ListRadioItem`. If there is code that styles based on `data-invalid`, verification is needed. #### Change Component Names for `SwitchMark` and `RadioMark` \[Snippet update recommended] The names exported from the snippet have changed. You can update by re-fetching the snippet. - npm: npx @seed-design/cli@latest add --on-diff backup ui:switch ui:radio-group - pnpm: pnpm dlx @seed-design/cli@latest add --on-diff backup ui:switch ui:radio-group - yarn: yarn dlx @seed-design/cli@latest add --on-diff backup ui:switch ui:radio-group - bun: bun x @seed-design/cli@latest add --on-diff backup ui:switch ui:radio-group ```tsx import { SwitchMark } from "seed-design/ui/switch"; // [!code --] import { Switchmark } from "seed-design/ui/switch"; // [!code ++] import { RadioMark } from "seed-design/ui/radio-group"; // [!code --] import { Radiomark } from "seed-design/ui/radio-group"; // [!code ++] ``` #### RadioGroup Layout Cleanup \[Direct judgment and code changes required] The layout of the RadioGroup-related snippet component has changed, so it needs to be added again. If there is code that directly imports and uses Radio Group-related components from `@seed-design/react`, update it to match the new snippet structure. - npm: npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:radio-group - pnpm: pnpm dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:radio-group - yarn: yarn dlx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:radio-group - bun: bun x @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:radio-group * Modifies the snippet component `RadioGroup` to have its own gap and 100% width. - Please remove the `VStack` that used to wrap the children. - If the `VStack` has styles other than `gap`, you can leave the `VStack` outside `RadioGroup` to preserve the layout. - Also check whether you are wrapping `VStack` with `asChild`, as in `...`. * The `@seed-design/react` component `RadioGroup.Root` has been modified to no longer handle radio-related behavior, and its own styles have been added. - If you need radio-related headless behavior, use `RadioGroup.Root` from `@seed-design/react/primitive`. ```tsx import { RadioGroup } from "@seed-design/react"; // [!code --] import { RadioGroup } from "@seed-design/react/primitive"; // [!code ++] ``` The tokens and options announced in the 1.2 release as "scheduled for removal in 1.3" (`$gradient.fade-layer-*`, Chip Tabs `brandSolid`, Checkbox `weight`, Switch `size`, camelCase layout values) were actually removed in Crispy React 2. `$color.bg.layer-fill` was removed in 2.0.0 but re-added in 2.1.0, so it can still be used as-is. See the [v2 upgrade](/react/updates/upgrade/v2) guide for details. Crispy React 1.3 was never released.