import { Binding, Connectable } from 'types/service'; import { Variable } from 'types/variable'; import Box from 'types/widgets/box'; import Button from 'types/widgets/button'; import Label from 'types/widgets/label'; import { Attribute, Child } from './widget'; export type BarBoxChild = { component: Box; isVisible?: boolean; isVis?: Variable; boxClass: string; } & ButtonProps; export type SelfButton = Button; export type BoxHook = (self: Box) => void; export type LabelHook = (self: Label) => void; export type Module = { icon?: string | Binding; textIcon?: string | Binding; label?: string | Binding; labelHook?: LabelHook; boundLabel?: string; tooltipText?: string | Binding; boxClass: string; props?: ButtonProps; showLabel?: boolean; showLabelBinding?: Binding; hook?: BoxHook; connection?: Binding; }; export type ResourceLabelType = 'used/total' | 'used' | 'percentage' | 'free'; export type StorageIcon = '󰋊' | '' | '󱛟' | '' | '' | ''; export type NetstatIcon = '󰖟' | '󰇚' | '󰕒' | '󰛳' | '' | '󰣺' | '󰖩' | '' | '󰈀'; export type NetstatLabelType = 'full' | 'in' | 'out'; export type RateUnit = 'GiB' | 'MiB' | 'KiB' | 'auto'; export type UpdatesIcon = '󰚰' | '󰇚' | '' | '󱑢' | '󱑣' | '󰏖' | '' | '󰏔' | '󰏗'; export type PowerIcon = '' | '' | '󰍃' | '󰿅' | '󰒲' | '󰤄';