-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
775 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 23 additions & 3 deletions
26
packages/ketchup/src/components/kup-image-list/kup-image-list-declarations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,37 @@ | ||
import { KupDataNode } from '../../managers/kup-data/kup-data-declarations'; | ||
import { KupEventPayload } from '../../types/GenericTypes'; | ||
import { | ||
KupDataCell, | ||
KupDataColumn, | ||
KupDataNode, | ||
KupDataRow, | ||
} from '../../managers/kup-data/kup-data-declarations'; | ||
import { GenericObject, KupEventPayload } from '../../types/GenericTypes'; | ||
|
||
/** | ||
* Props of the kup-image-list component. | ||
* Used to export every prop in an object. | ||
*/ | ||
export enum KupImageListProps { | ||
columns = 'Can set a specific number of columns', | ||
customStyle = 'Custom style of the component.', | ||
data = 'Actual data of the component', | ||
ripple = "When enabled displays Material's ripple effect on clicked items.", | ||
rows = 'Cam set a specific number of rows. It overwrite the columns flow into rows flow', | ||
} | ||
|
||
export interface KupImageListEventPayload extends KupEventPayload { | ||
node: KupDataNode; | ||
details: KupImageListEventHandlerDetails; | ||
} | ||
/** | ||
* Contains all the data of an event. | ||
*/ | ||
export interface KupImageListEventHandlerDetails { | ||
cell: KupDataCell; | ||
column: KupDataColumn; | ||
originalEvent: PointerEvent; | ||
row: KupDataRow; | ||
} | ||
|
||
export interface KupImageListDataNode extends KupDataNode { | ||
badgeData: GenericObject[]; | ||
children?: KupImageListDataNode[]; | ||
} |
Oops, something went wrong.