mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-14 18:37:07 +00:00
feat: initial Pezkuwi Apps rebrand from polkadot-apps
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
This commit is contained in:
commit
d21bfb1320
5867 files changed
+329019
No files matched your search
@@ -0,0 +1,60 @@
|
||||
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import Icon from '../../Icon.js';
|
||||
import { styled } from '../../styled.js';
|
||||
|
||||
export interface Props {
|
||||
className?: string;
|
||||
colSpan?: number;
|
||||
rowSpan?: number;
|
||||
isExpanded: boolean;
|
||||
toggle: () => void;
|
||||
}
|
||||
|
||||
function Expand ({ className = '', colSpan, isExpanded, rowSpan, toggle }: Props): React.ReactElement<Props> {
|
||||
return (
|
||||
<StyledTd
|
||||
className={`${className} ui--Table-Column-Expand`}
|
||||
colSpan={colSpan}
|
||||
onClick={toggle}
|
||||
rowSpan={rowSpan}
|
||||
>
|
||||
<div>
|
||||
<Icon
|
||||
icon={
|
||||
isExpanded
|
||||
? 'caret-up'
|
||||
: 'caret-down'
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
</StyledTd>
|
||||
);
|
||||
}
|
||||
|
||||
const StyledTd = styled.td`
|
||||
&& {
|
||||
box-sizing: content-box;
|
||||
cursor: pointer;
|
||||
min-width: 1.7rem;
|
||||
padding-left: 0;
|
||||
text-align: left;
|
||||
width: 1.7rem;
|
||||
|
||||
> div {
|
||||
align-items: center;
|
||||
border: 1px solid var(--border-table);
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
display: inline-flex;
|
||||
height: 1.7rem;
|
||||
justify-content: center;
|
||||
width: 1.7rem;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default React.memo(Expand);
|
||||
Reference in new issue
Block a user