Skip to content

Commit 7e2f648

Browse files
frankieyanclaude
andauthored
chore!: remove deprecated Select, Button, and Dropdown from public API (#1053)
* chore!: remove deprecated Select, Button, and Dropdown from public API Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor: move deprecated Button and Dropdown into color-picker Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9989396 commit 7e2f648

18 files changed

Lines changed: 6 additions & 309 deletions

File tree

src/components/color-picker/color-picker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import * as React from 'react'
55
import classnames from 'classnames'
66

77
import { Tooltip } from '../../tooltip'
8-
import DeprecatedDropdown from '../deprecated-dropdown'
8+
9+
import DeprecatedDropdown from './deprecated-dropdown'
910

1011
type NamedColor = { name: string; color: string }
1112

src/components/deprecated-button/deprecated-button.less renamed to src/components/color-picker/deprecated-button/deprecated-button.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../styles/constants.less';
1+
@import '../../styles/constants.less';
22

33
.reactist_button {
44
cursor: pointer;
@@ -98,7 +98,7 @@
9898
animation-name: reactistRotateRight;
9999
animation-timing-function: linear;
100100
color: #ffffff;
101-
background-image: url('../icons/spinner.svg');
101+
background-image: url('../../icons/spinner.svg');
102102
}
103103
}
104104
}

src/components/deprecated-button/deprecated-button.test.tsx renamed to src/components/color-picker/deprecated-button/deprecated-button.test.tsx

File renamed without changes.

src/components/deprecated-button/deprecated-button.tsx renamed to src/components/color-picker/deprecated-button/deprecated-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as React from 'react'
44

55
import classNames from 'classnames'
66

7-
import { Tooltip } from '../../tooltip'
7+
import { Tooltip } from '../../../tooltip'
88

99
type NativeButtonProps = React.DetailedHTMLProps<
1010
React.ButtonHTMLAttributes<HTMLButtonElement>,
File renamed without changes.

src/components/deprecated-dropdown/__snapshots__/dropdown.test.tsx.snap renamed to src/components/color-picker/deprecated-dropdown/__snapshots__/dropdown.test.tsx.snap

File renamed without changes.

src/components/deprecated-dropdown/dropdown.less renamed to src/components/color-picker/deprecated-dropdown/dropdown.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../styles/constants.less';
1+
@import '../../styles/constants.less';
22

33
.reactist_dropdown {
44
.trigger {

src/components/deprecated-dropdown/dropdown.test.tsx renamed to src/components/color-picker/deprecated-dropdown/dropdown.test.tsx

File renamed without changes.

src/components/deprecated-dropdown/dropdown.tsx renamed to src/components/color-picker/deprecated-dropdown/dropdown.tsx

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)