44#define DAISY_COLOR_PRIMARY "primary"
45#define DAISY_COLOR_PRIMARY_CONTENT "primary-content"
46#define DAISY_COLOR_SECONDARY "secondary"
47#define DAISY_COLOR_SECONDARY_CONTENT "secondary-content"
48#define DAISY_COLOR_ACCENT "accent"
49#define DAISY_COLOR_ACCENT_CONTENT "accent-content"
50#define DAISY_COLOR_NEUTRAL "neutral"
51#define DAISY_COLOR_NEUTRAL_CONTENT "neutral-content"
52#define DAISY_COLOR_BASE_100 "base-100"
53#define DAISY_COLOR_BASE_200 "base-200"
54#define DAISY_COLOR_BASE_300 "base-300"
55#define DAISY_COLOR_INFO "info"
56#define DAISY_COLOR_INFO_CONTENT "info-content"
57#define DAISY_COLOR_SUCCESS "success"
58#define DAISY_COLOR_SUCCESS_CONTENT "success-content"
59#define DAISY_COLOR_WARNING "warning"
60#define DAISY_COLOR_WARNING_CONTENT "warning-content"
61#define DAISY_COLOR_ERROR "error"
62#define DAISY_COLOR_ERROR_CONTENT "error-content"
64#define DAISY_SIZE_XS "xs"
65#define DAISY_SIZE_SM "sm"
66#define DAISY_SIZE_MD "md"
67#define DAISY_SIZE_LG "lg"
81 AVATAR_PRESENCE_ONLINE,
82 AVATAR_PRESENCE_OFFLINE
97 CAROUSEL_INDICATOR_BUTTONS,
111 CHAT_BUBBLE_HEADER_FOOTER
179#define SECURE_STR(s) ((s == NULL) ? "NULL" : s)
180int is_valid_daisy_size(Cstr size);
181int is_valid_daisy_color(Cstr color);
182void append_class_attr(
char**
class, Cstr attr);
188#define DAISYUI_LINK \
190 WEBC_MakeAttributeList( \
191 WEBC_MakeAttribute(ATTR_HREF, "https://cdn.jsdelivr.net/npm/daisyui@4.12.10/dist/full.min.css"), \
192 WEBC_MakeAttribute(ATTR_REL, "stylesheet"), \
193 WEBC_MakeAttribute(ATTR_TYPE, "text/css"), \
198#define TAILWINDCSS_SCRIPT(buffer) \
199 WEBC_PlainText(buffer, "<script src=\"https://cdn.tailwindcss.com\"></script>");
210WEBCAPI
void WEBC_DaisyAvatar(
char** buffer, AvatarType type, Cstr img_src, Cstr placeholder,
size_t width);
265 size_t navbar_items_count,
267 size_t sidebar_items_count,
268 BlockContents page_content);
353WEBCAPI
void WEBC_DaisySelect(
char** buffer, Cstr title,
char* options[],
size_t count, Cstr color);
380WEBCAPI
void WEBC_DaisyTooltip(
char** buffer, Cstr tooltip, Cstr location,
int open, Cstr color, BlockContents toplaceon);
382WEBCAPI
void WEBC_DaisyFooter(
char** buffer,
Footer footer);
Definition webc-core.h:118
WEBCAPI void WEBC_DaisyDropdown(char **buffer, Cstr title, NavLink items[], size_t count)
WEBCAPI void WEBC_DaisyAccordion(char **buffer, Accordion accordion, int open)
WEBCAPI void WEBC_DaisyProgress(char **buffer, size_t width, Cstr color, size_t value, size_t max)
WEBCAPI void WEBC_DaisyButton(char **buffer, ButtonType type, Button button)
WEBCAPI void WEBC_DaisyFileInput(char **buffer, Cstr color)
WEBCAPI void WEBC_DaisyTextInput(char **buffer, int password, Cstr placeholder, Cstr icon)
WEBCAPI void WEBC_DaisyCode(char **buffer, Cstr color, CodeLine code[], size_t count)
WEBCAPI void WEBC_DaisyNavbarSidebar(char **buffer, Cstr title, NavLink navbar_items[], size_t navbar_items_count, NavLink sidebar_items[], size_t sidebar_items_count, BlockContents page_content)
WEBCAPI void WEBC_DaisyRange(char **buffer, size_t min, size_t max, size_t value, size_t step, Cstr size, Cstr color)
WEBCAPI void WEBC_DaisyAlert(char **buffer, AlertType type, Cstr text)
WEBCAPI void WEBC_DaisyThemeController(char **buffer)
WEBCAPI void WEBC_DaisyModal(char **buffer, Cstr id, Cstr title, Cstr content)
WEBCAPI void WEBC_DaisyTooltip(char **buffer, Cstr tooltip, Cstr location, int open, Cstr color, BlockContents toplaceon)
WEBCAPI void WEBC_DaisySelect(char **buffer, Cstr title, char *options[], size_t count, Cstr color)
WEBCAPI void WEBC_DaisyCarousel(char **buffer, CarouselType type, size_t width, CarouselItem items[], size_t item_count)
WEBCAPI void WEBC_DaisyRadio(char **buffer, Cstr group_name, Cstr color, int checked)
WEBCAPI void WEBC_DaisyBadge(char **buffer, BadgeType type, Cstr color, Cstr text)
WEBCAPI void WEBC_DaisyCheckbox(char **buffer, Cstr label, Cstr color)
WEBCAPI void WEBC_DaisyCollapse(char **buffer, Cstr title, Cstr contents)
WEBCAPI void WEBC_DaisyChatBubble(char **buffer, ChatBubbleType type, ChatBubble bubble, int left)
WEBCAPI void WEBC_DaisyIndicator(char **buffer, Cstr text, BlockContents toplaceon)
WEBCAPI void WEBC_DaisyPagination(char **buffer, size_t from, size_t to, size_t checked)
WEBCAPI void WEBC_DaisyLoading(char **buffer, LoadingType type, Cstr size)
WEBCAPI void WEBC_DaisyToggle(char **buffer, int checked, Cstr color, Cstr size)
WEBCAPI void WEBC_DaisyAvatar(char **buffer, AvatarType type, Cstr img_src, Cstr placeholder, size_t width)
WEBCAPI void WEBC_DaisyToast(char **buffer, Cstr text, Cstr color)
WEBCAPI void WEBC_DaisyTextarea(char **buffer, Cstr placeholder, Cstr color, Cstr size)