diff --git a/packages/ui/src/elements/DatePicker/DatePicker.tsx b/packages/ui/src/elements/DatePicker/DatePicker.tsx index cff4c1859af..21aacf9413b 100644 --- a/packages/ui/src/elements/DatePicker/DatePicker.tsx +++ b/packages/ui/src/elements/DatePicker/DatePicker.tsx @@ -90,11 +90,11 @@ const DatePicker: React.FC = (props) => { minDate, minTime, monthsShown: Math.min(2, monthsToShow), - nextMonthButtonLabel: , + nextMonthButtonLabel: , onChange, placeholderText, popperPlacement: 'bottom-start', - previousMonthButtonLabel: , + previousMonthButtonLabel: , selected: value && new Date(value), shouldCloseOnSelect: false, showMonthYearPicker: pickerAppearance === 'monthOnly', diff --git a/packages/ui/src/elements/Hierarchy/Tree/TreeNode/index.tsx b/packages/ui/src/elements/Hierarchy/Tree/TreeNode/index.tsx index cd8c0d49aee..2d64326ecd9 100644 --- a/packages/ui/src/elements/Hierarchy/Tree/TreeNode/index.tsx +++ b/packages/ui/src/elements/Hierarchy/Tree/TreeNode/index.tsx @@ -174,7 +174,7 @@ export const TreeNode = ({ tabIndex={-1} type="button" > - + ) : (
diff --git a/packages/ui/src/elements/NavGroup/index.tsx b/packages/ui/src/elements/NavGroup/index.tsx index d70e4199931..8029e685df5 100644 --- a/packages/ui/src/elements/NavGroup/index.tsx +++ b/packages/ui/src/elements/NavGroup/index.tsx @@ -61,7 +61,7 @@ export const NavGroup: React.FC = ({ children, isOpen: isOpenFromProps, l type="button" >
- +
{label}
diff --git a/packages/ui/src/elements/PerPage/index.tsx b/packages/ui/src/elements/PerPage/index.tsx index 7e33354cf58..9f648f4e4fd 100644 --- a/packages/ui/src/elements/PerPage/index.tsx +++ b/packages/ui/src/elements/PerPage/index.tsx @@ -61,7 +61,7 @@ export const PerPage: React.FC = ({ > {limitNumber === limitToUse && (
- +
)}   diff --git a/packages/ui/src/elements/ReactSelect/DropdownIndicator/index.tsx b/packages/ui/src/elements/ReactSelect/DropdownIndicator/index.tsx index 6445808b090..d3a4ddba923 100644 --- a/packages/ui/src/elements/ReactSelect/DropdownIndicator/index.tsx +++ b/packages/ui/src/elements/ReactSelect/DropdownIndicator/index.tsx @@ -30,7 +30,7 @@ export const DropdownIndicator: React.FC< }} type="button" > - + ) } diff --git a/packages/ui/src/icons/Chevron/index.tsx b/packages/ui/src/icons/Chevron/index.tsx index d6d206e7d28..54ffc28bdbc 100644 --- a/packages/ui/src/icons/Chevron/index.tsx +++ b/packages/ui/src/icons/Chevron/index.tsx @@ -4,15 +4,9 @@ import './index.css' type Direction = 'down' | 'left' | 'right' | 'up' -const paths = { - // icon-16-chevron-down +const paths: Record<16 | 24, string> = { 16: 'M9.76777 6.76764C9.96304 6.57248 10.2796 6.57241 10.4748 6.76764C10.67 6.96288 10.6699 7.27943 10.4748 7.47467L8.35371 9.59577C8.15847 9.79101 7.84194 9.79096 7.64668 9.59577L5.52461 7.47467C5.32969 7.27948 5.32969 6.96284 5.52461 6.76764C5.71988 6.57248 6.03738 6.57241 6.23261 6.76764L8.00019 8.53522L9.76777 6.76764Z', - // icon-24-chevron-down - smaller chevron, more padding (default for 24px) - '24-small': - 'M9.646 11.146a.5.5 0 0 1 .708 0L12 12.793l1.646-1.647a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 0 1 0-.708', - // icon-24-chevron-down-large - larger chevron, less padding - '24-large': - 'M8.35352 10.1465C8.15825 9.9512 7.84175 9.9512 7.64648 10.1465C7.45122 10.3417 7.45122 10.6583 7.64648 10.8535L11.6465 14.8535C11.8417 15.0488 12.1583 15.0488 12.3535 14.8535L16.3535 10.8535C16.5488 10.6583 16.5488 10.3417 16.3535 10.1465C16.1583 9.9512 15.8417 9.9512 15.6465 10.1465L12 13.793L8.35352 10.1465Z', + 24: 'M8.35352 10.1465C8.15825 9.9512 7.84175 9.9512 7.64648 10.1465C7.45122 10.3417 7.45122 10.6583 7.64648 10.8535L11.6465 14.8535C11.8417 15.0488 12.1583 15.0488 12.3535 14.8535L16.3535 10.8535C16.5488 10.6583 16.5488 10.3417 16.3535 10.1465C16.1583 9.9512 15.8417 9.9512 15.6465 10.1465L12 13.793L8.35352 10.1465Z', } const rotations: Record = { @@ -22,54 +16,29 @@ const rotations: Record = { up: 180, } -export const ChevronIcon: React.FC<{ +export type ChevronIconProps = { readonly ariaLabel?: string - /** @deprecated Use `large` instead */ - readonly bold?: boolean readonly className?: string readonly direction?: Direction - /** - * Use the larger chevron variant (icon-24-chevron-down-large). - * Only applies when size is 24. The 16px icon only has one size. - */ - readonly large?: boolean - /** - * Icon dimensions. String values 'large'/'small' are deprecated - - * use numeric 24/16 instead. - */ - readonly size?: 'large' | 'small' | 16 | 24 -}> = ({ ariaLabel, bold = false, className, direction = 'down', large = true, size = 24 }) => { - // Map legacy string values: 'small' → 16px, 'large' → 24px - const numericSize = size === 'small' ? 16 : size === 'large' ? 24 : size - - // Determine which path to use - // - 16px only has one variant - // - 24px has small (default) and large variants - const useLargeVariant = large || bold // bold is deprecated alias for large - const pathKey = numericSize === 16 ? 16 : useLargeVariant ? '24-large' : '24-small' - - return ( - - - - ) + readonly size?: 16 | 24 } + +export const ChevronIcon: React.FC = ({ + ariaLabel, + className, + direction = 'down', + size = 24, +}) => ( + + + +) diff --git a/packages/ui/src/icons/Folder/index.css b/packages/ui/src/icons/Folder/index.css index 2c5df695ad5..ea6b58037d7 100644 --- a/packages/ui/src/icons/Folder/index.css +++ b/packages/ui/src/icons/Folder/index.css @@ -1,8 +1,3 @@ @layer payload-default { - .icon--folder--muted { - color: var(--icon-secondary); - } - .icon--folder--dark { - color: var(--icon-default); - } + /* Folder icon */ } diff --git a/packages/ui/src/icons/Folder/index.tsx b/packages/ui/src/icons/Folder/index.tsx index f1a8c887109..0d88a23f012 100644 --- a/packages/ui/src/icons/Folder/index.tsx +++ b/packages/ui/src/icons/Folder/index.tsx @@ -9,13 +9,10 @@ const paths = { export const FolderIcon: React.FC<{ readonly className?: string - color?: 'dark' | 'default' | 'muted' readonly size?: 16 | 24 -}> = ({ className, color, size = 24 }) => ( +}> = ({ className, size = 24 }) => ( , sizes: [16, 24], }, - { - name: 'ChevronIcon (down, large)', - render: () => , - sizes: [24], - }, { name: 'ChevronIcon (up)', render: (size) => , diff --git a/test/v4/views/Components/sections/Icons.tsx b/test/v4/views/Components/sections/Icons.tsx index 9984d37d3d4..c452ae1db9a 100644 --- a/test/v4/views/Components/sections/Icons.tsx +++ b/test/v4/views/Components/sections/Icons.tsx @@ -67,10 +67,22 @@ const icons = [ export const IconsSection: React.FC<{ selectedComponent: string }> = ({ selectedComponent }) => (
- {/* Chevron - direction + large */} + {/* Chevron - direction + size */}
Chevron
+
+ size: 24 (default) +
+ +
+
+
+ size: 16 +
+ +
+
direction: down (default)
@@ -78,19 +90,14 @@ export const IconsSection: React.FC<{ selectedComponent: string }> = ({ selected
- direction: up | left | right + direction: down (default) | up | left | right
+
-
- large: true -
- -
-
@@ -372,7 +379,7 @@ export const IconsSection: React.FC<{ selectedComponent: string }> = ({ selected
- {/* Folder - size + color */} + {/* Folder - size */}
Folder
@@ -388,14 +395,6 @@ export const IconsSection: React.FC<{ selectedComponent: string }> = ({ selected
-
- color: default | dark | muted -
- - - -
-
@@ -494,7 +493,7 @@ export const IconsSection: React.FC<{ selectedComponent: string }> = ({ selected - {/* Tag - size + color */} + {/* Tag - size */}
Tag
@@ -510,14 +509,6 @@ export const IconsSection: React.FC<{ selectedComponent: string }> = ({ selected
-
- color: default | dark | muted -
- - - -
-