Shared constants¶
Centralized constants for animation durations, icon sizes, and SVG icon data shared across all widget modules.
shared
¶
Shared constants package.
Exports all shared widget constants (animation durations, icon sizes, and SVG icon bytes) for use across all widget modules.
ANIMATION_DURATION_FAST
module-attribute
¶
Fast transitions (hover, quick feedback).
ANIMATION_DURATION_NORMAL
module-attribute
¶
Standard transitions (most animations).
ANIMATION_DURATION_SLOW
module-attribute
¶
Slow transitions (emphasis, complex animations).
ICON_SIZE_LARGE
module-attribute
¶
Large icon size (20x20 px).
ICON_SIZE_NORMAL
module-attribute
¶
Normal icon size (16x16 px).
ICON_SIZE_SMALL
module-attribute
¶
Small icon size (14x14 px).
ICON_SIZE_XLARGE
module-attribute
¶
Extra-large icon size (24x24 px).
SVG_CALENDAR
module-attribute
¶
SVG_CALENDAR: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <rect x="3" y="4" width="18" height="18" rx="2" ry="2"/> <line x1="16" y1="2" x2="16" y2="6"/> <line x1="8" y1="2" x2="8" y2="6"/> <line x1="3" y1="10" x2="21" y2="10"/></svg>'
Calendar icon.
SVG_CHECK
module-attribute
¶
SVG_CHECK: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <polyline points="20 6 9 17 4 12"/></svg>'
Checkmark / success icon.
SVG_CHEVRON_DOWN
module-attribute
¶
SVG_CHEVRON_DOWN: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <polyline points="6 9 12 15 18 9"/></svg>'
Chevron pointing down (expanded state).
SVG_CHEVRON_RIGHT
module-attribute
¶
SVG_CHEVRON_RIGHT: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <polyline points="9 18 15 12 9 6"/></svg>'
Chevron pointing right (collapsed state).
SVG_CLOSE
module-attribute
¶
SVG_CLOSE: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="18" y1="6" x2="6" y2="18"/> <line x1="6" y1="6" x2="18" y2="18"/></svg>'
Close / × icon.
SVG_CROSS
module-attribute
¶
SVG_CROSS: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="18" y1="6" x2="6" y2="18"/> <line x1="6" y1="6" x2="18" y2="18"/></svg>'
Cross / error icon.
SVG_ERROR
module-attribute
¶
SVG_ERROR: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <circle cx="12" cy="12" r="10"/> <line x1="15" y1="9" x2="9" y2="15"/> <line x1="9" y1="9" x2="15" y2="15"/></svg>'
Error notification icon (white stroke, for coloured backgrounds).
SVG_EYE_CLOSED
module-attribute
¶
SVG_EYE_CLOSED: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8 a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07 a3 3 0 1 1-4.24-4.24"/> <line x1="1" y1="1" x2="23" y2="23"/></svg>'
Eye-closed (password hidden) icon.
SVG_EYE_OPEN
module-attribute
¶
SVG_EYE_OPEN: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/> <circle cx="12" cy="12" r="3"/></svg>'
Eye (password visible) icon.
SVG_FOLDER
module-attribute
¶
SVG_FOLDER: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>'
Folder / open-folder icon (from FilePickerInput).
SVG_INFO
module-attribute
¶
SVG_INFO: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <circle cx="12" cy="12" r="10"/> <line x1="12" y1="8" x2="12" y2="8"/> <line x1="12" y1="12" x2="12" y2="16"/></svg>'
Info notification icon (white stroke, for coloured backgrounds).
SVG_SEARCH
module-attribute
¶
SVG_SEARCH: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <circle cx="11" cy="11" r="8"/> <line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>'
Search / magnifying-glass icon.
SVG_SPINNER
module-attribute
¶
SVG_SPINNER: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="12" y1="2" x2="12" y2="6"/> <line x1="12" y1="18" x2="12" y2="22"/> <line x1="4.93" y1="4.93" x2="7.76" y2="7.76"/> <line x1="16.24" y1="16.24" x2="19.07" y2="19.07"/> <line x1="2" y1="12" x2="6" y2="12"/> <line x1="18" y1="12" x2="22" y2="12"/> <line x1="4.93" y1="19.07" x2="7.76" y2="16.24"/> <line x1="16.24" y1="7.76" x2="19.07" y2="4.93"/></svg>'
Spinner / loading icon.
SVG_SUCCESS
module-attribute
¶
SVG_SUCCESS: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/> <polyline points="22 4 12 14.01 9 11.01"/></svg>'
Success notification icon (white stroke, for coloured backgrounds).
SVG_WARNING
module-attribute
¶
SVG_WARNING: bytes = b'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/> <line x1="12" y1="9" x2="12" y2="13"/> <line x1="12" y1="17" x2="12.01" y2="17"/></svg>'
Warning notification icon (white stroke, for coloured backgrounds).
options: members_order: source show_source: false