codexly-ui 0.6.20 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/_theme.css +0 -6
- package/fesm2022/codexly-ui.mjs +31 -56
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +30 -27
package/package.json
CHANGED
package/types/codexly-ui.d.ts
CHANGED
|
@@ -249,6 +249,7 @@ declare class ClxCardComponent {
|
|
|
249
249
|
/** Optional secondary line under headerTitle. */
|
|
250
250
|
readonly headerSubtitle: _angular_core.InputSignal<string | undefined>;
|
|
251
251
|
protected readonly _color: _angular_core.Signal<ClxColorInput>;
|
|
252
|
+
protected readonly _titleClass: _angular_core.Signal<string>;
|
|
252
253
|
private readonly _headerSlot;
|
|
253
254
|
private readonly _headerActionsSlot;
|
|
254
255
|
private readonly _bodySlot;
|
|
@@ -1816,17 +1817,20 @@ interface ClxFontOption {
|
|
|
1816
1817
|
googleUrl: string;
|
|
1817
1818
|
}
|
|
1818
1819
|
declare const CLX_FONT_CATALOG: ClxFontOption[];
|
|
1820
|
+
type ClxFontWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
1819
1821
|
interface ClxNavZoneStyle {
|
|
1820
1822
|
color?: ClxColorInput;
|
|
1821
1823
|
size?: Extract<ClxSize, 'xs' | 'sm' | 'md'>;
|
|
1822
|
-
|
|
1823
|
-
weight?: 'label' | 'emphasis';
|
|
1824
|
+
weight?: ClxFontWeight;
|
|
1824
1825
|
}
|
|
1825
1826
|
type ClxPageHeaderTextSize = 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
1826
1827
|
interface ClxPageHeaderZoneStyle {
|
|
1827
1828
|
color?: ClxColorInput;
|
|
1828
1829
|
size?: ClxPageHeaderTextSize;
|
|
1829
|
-
weight?:
|
|
1830
|
+
weight?: ClxFontWeight;
|
|
1831
|
+
}
|
|
1832
|
+
interface ClxCardTitleZoneStyle {
|
|
1833
|
+
weight?: ClxFontWeight;
|
|
1830
1834
|
}
|
|
1831
1835
|
interface ClxThemeConfig {
|
|
1832
1836
|
/** Default accent color for all components (buttons, inputs, checkboxes…) */
|
|
@@ -1843,16 +1847,18 @@ interface ClxThemeConfig {
|
|
|
1843
1847
|
neutralColor: ClxColorInput;
|
|
1844
1848
|
/** Base text color applied across the app */
|
|
1845
1849
|
textColor: ClxColorInput;
|
|
1846
|
-
/** Sidebar nav-group label style override — falls back to neutralColor/xs/
|
|
1850
|
+
/** Sidebar nav-group label style override — falls back to neutralColor/xs/500 when unset */
|
|
1847
1851
|
sidebarGroup?: ClxNavZoneStyle;
|
|
1848
|
-
/** Sidebar top-level menu style override — falls back to primaryColor/sm/
|
|
1852
|
+
/** Sidebar top-level menu style override — falls back to primaryColor/sm/500 when unset */
|
|
1849
1853
|
sidebarMenu?: ClxNavZoneStyle;
|
|
1850
|
-
/** Sidebar menu-item style override — falls back to primaryColor/sm/
|
|
1854
|
+
/** Sidebar menu-item style override — falls back to primaryColor/sm/500 when unset */
|
|
1851
1855
|
sidebarItem?: ClxNavZoneStyle;
|
|
1852
|
-
/** ClxPageHeaderComponent title style override — falls back to textColor/2xl/
|
|
1856
|
+
/** ClxPageHeaderComponent title style override — falls back to textColor/2xl/600 when unset */
|
|
1853
1857
|
pageHeaderTitle?: ClxPageHeaderZoneStyle;
|
|
1854
|
-
/** ClxPageHeaderComponent subtitle style override — falls back to textColor/sm/
|
|
1858
|
+
/** ClxPageHeaderComponent subtitle style override — falls back to textColor/sm/500 when unset */
|
|
1855
1859
|
pageHeaderSubtitle?: ClxPageHeaderZoneStyle;
|
|
1860
|
+
/** ClxCardComponent auto-generated headerTitle weight override — falls back to 600 when unset */
|
|
1861
|
+
cardTitle?: ClxCardTitleZoneStyle;
|
|
1856
1862
|
/** Default border-radius style applied to all components */
|
|
1857
1863
|
borderRadius: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1858
1864
|
/** Default size for all form/interactive components */
|
|
@@ -1861,15 +1867,7 @@ interface ClxThemeConfig {
|
|
|
1861
1867
|
defaultShape: Extract<ClxShape, 'rounded' | 'pill'>;
|
|
1862
1868
|
/** Body font family — must be one of CLX_FONT_CATALOG values */
|
|
1863
1869
|
fontFamily: ClxFontFamily;
|
|
1864
|
-
/** Overall type-weight intensity — shifts both label and emphasis weights together */
|
|
1865
|
-
fontWeight: ClxFontWeightIntensity;
|
|
1866
1870
|
}
|
|
1867
|
-
type ClxFontWeightIntensity = 'light' | 'normal' | 'bold';
|
|
1868
|
-
interface ClxFontWeightPair {
|
|
1869
|
-
label: number;
|
|
1870
|
-
emphasis: number;
|
|
1871
|
-
}
|
|
1872
|
-
declare const CLX_FONT_WEIGHT_MAP: Record<ClxFontWeightIntensity, ClxFontWeightPair>;
|
|
1873
1871
|
declare const CLX_RADIUS_MAP: Record<ClxThemeConfig['borderRadius'], string>;
|
|
1874
1872
|
/** Returns the Tailwind class for a form-control radius */
|
|
1875
1873
|
declare function resolveRadius(r: ClxThemeConfig['borderRadius']): string;
|
|
@@ -1888,7 +1886,7 @@ declare class ClxMenuComponent implements AfterViewInit {
|
|
|
1888
1886
|
protected readonly _resolved: _angular_core.Signal<{
|
|
1889
1887
|
color: codexly_ui.ClxColorInput;
|
|
1890
1888
|
size: "xs" | "sm" | "md";
|
|
1891
|
-
weight:
|
|
1889
|
+
weight: codexly_ui.ClxFontWeight;
|
|
1892
1890
|
}>;
|
|
1893
1891
|
protected readonly _color: _angular_core.Signal<codexly_ui.ClxColorInput>;
|
|
1894
1892
|
readonly collapsed: _angular_core.InputSignal<boolean>;
|
|
@@ -1929,6 +1927,7 @@ declare class ClxMenuItemComponent {
|
|
|
1929
1927
|
private readonly _resolved;
|
|
1930
1928
|
private readonly _geom;
|
|
1931
1929
|
protected readonly _iconCls: _angular_core.Signal<string>;
|
|
1930
|
+
private readonly _typography;
|
|
1932
1931
|
protected readonly _idleCls: _angular_core.Signal<string>;
|
|
1933
1932
|
protected readonly _activeCls: _angular_core.Signal<string>;
|
|
1934
1933
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxMenuItemComponent, never>;
|
|
@@ -3175,13 +3174,16 @@ declare class ClxAnimateGroupDirective {
|
|
|
3175
3174
|
interface ClxResolvedNavZoneStyle {
|
|
3176
3175
|
color: ClxColorInput;
|
|
3177
3176
|
size: Extract<ClxSize, 'xs' | 'sm' | 'md'>;
|
|
3178
|
-
weight:
|
|
3177
|
+
weight: ClxFontWeight;
|
|
3179
3178
|
}
|
|
3180
3179
|
interface ClxResolvedPageHeaderZoneStyle {
|
|
3181
3180
|
/** undefined means "use the default text-clx-text-label / text-clx-text-muted class" */
|
|
3182
3181
|
color?: ClxColorInput;
|
|
3183
3182
|
size: ClxPageHeaderTextSize;
|
|
3184
|
-
weight:
|
|
3183
|
+
weight: ClxFontWeight;
|
|
3184
|
+
}
|
|
3185
|
+
interface ClxResolvedCardTitleZoneStyle {
|
|
3186
|
+
weight: ClxFontWeight;
|
|
3185
3187
|
}
|
|
3186
3188
|
type ClxThemeMode = 'light' | 'dark' | 'system';
|
|
3187
3189
|
declare class ClxThemeService {
|
|
@@ -3193,20 +3195,22 @@ declare class ClxThemeService {
|
|
|
3193
3195
|
readonly mode: _angular_core.Signal<ClxThemeMode>;
|
|
3194
3196
|
readonly config: _angular_core.Signal<ClxThemeConfig>;
|
|
3195
3197
|
readonly isDark: _angular_core.Signal<boolean>;
|
|
3196
|
-
/** Resolved style for clx-nav-group labels — falls back to neutralColor/xs/
|
|
3198
|
+
/** Resolved style for clx-nav-group labels — falls back to neutralColor/xs/500 */
|
|
3197
3199
|
readonly sidebarGroupStyle: _angular_core.Signal<ClxResolvedNavZoneStyle>;
|
|
3198
|
-
/** Resolved style for top-level clx-menu — falls back to primaryColor/sm/
|
|
3200
|
+
/** Resolved style for top-level clx-menu — falls back to primaryColor/sm/500 */
|
|
3199
3201
|
readonly sidebarMenuStyle: _angular_core.Signal<ClxResolvedNavZoneStyle>;
|
|
3200
|
-
/** Resolved style for clx-menu-item — falls back to primaryColor/sm/
|
|
3202
|
+
/** Resolved style for clx-menu-item — falls back to primaryColor/sm/500 */
|
|
3201
3203
|
readonly sidebarItemStyle: _angular_core.Signal<ClxResolvedNavZoneStyle>;
|
|
3202
3204
|
private _resolveNavZoneStyle;
|
|
3203
3205
|
/** Resolved style for ClxPageHeaderComponent's title — falls back to the default
|
|
3204
|
-
* text-clx-text-label color (no override) / 2xl /
|
|
3206
|
+
* text-clx-text-label color (no override) / 2xl / 600 */
|
|
3205
3207
|
readonly pageHeaderTitleStyle: _angular_core.Signal<ClxResolvedPageHeaderZoneStyle>;
|
|
3206
3208
|
/** Resolved style for ClxPageHeaderComponent's subtitle — falls back to the default
|
|
3207
|
-
* text-clx-text-muted color (no override) / sm /
|
|
3209
|
+
* text-clx-text-muted color (no override) / sm / 500 */
|
|
3208
3210
|
readonly pageHeaderSubtitleStyle: _angular_core.Signal<ClxResolvedPageHeaderZoneStyle>;
|
|
3209
3211
|
private _resolvePageHeaderZoneStyle;
|
|
3212
|
+
/** Resolved style for ClxCardComponent's auto-generated headerTitle — falls back to 600 */
|
|
3213
|
+
readonly cardTitleStyle: _angular_core.Signal<ClxResolvedCardTitleZoneStyle>;
|
|
3210
3214
|
constructor();
|
|
3211
3215
|
setMode(mode: ClxThemeMode): void;
|
|
3212
3216
|
setConfig(patch: Partial<ClxThemeConfig>): void;
|
|
@@ -3214,7 +3218,6 @@ declare class ClxThemeService {
|
|
|
3214
3218
|
private _applyColorVar;
|
|
3215
3219
|
private _applyTextColor;
|
|
3216
3220
|
private _applyFont;
|
|
3217
|
-
private _applyFontWeight;
|
|
3218
3221
|
private _loadMode;
|
|
3219
3222
|
private _getSystemDark;
|
|
3220
3223
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxThemeService, never>;
|
|
@@ -3303,5 +3306,5 @@ declare class ClxToastService {
|
|
|
3303
3306
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ClxToastService>;
|
|
3304
3307
|
}
|
|
3305
3308
|
|
|
3306
|
-
export { CLX_ADDON_BORDER, CLX_ADDON_TEXT, CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_BG_ADDON, CLX_BG_DISABLED, CLX_BG_ICON_WRAP, CLX_BG_SECTION, CLX_BG_SURFACE, CLX_BORDER_DEFAULT, CLX_BORDER_DISABLED, CLX_BORDER_MEDIUM, CLX_COLOR_HEX, CLX_COLOR_HEX_100, CLX_COLOR_MAP, CLX_FONT_CATALOG,
|
|
3307
|
-
export type { ClxAlertButtonOptions, ClxAlertOptions, ClxAlertResult, ClxAlertType, ClxAnimateAttentionSeeker, ClxAnimateBackEntrance, ClxAnimateBackExit, ClxAnimateBouncingEntrance, ClxAnimateBouncingExit, ClxAnimateConfig, ClxAnimateDefaults, ClxAnimateEvent, ClxAnimateFadingEntrance, ClxAnimateFadingExit, ClxAnimateFlipper, ClxAnimateLightspeed, ClxAnimateName, ClxAnimateRotatingEntrance, ClxAnimateRotatingExit, ClxAnimateSlidingEntrance, ClxAnimateSlidingExit, ClxAnimateSpecial, ClxAnimateTrigger, ClxAnimateZoomingEntrance, ClxAnimateZoomingExit, ClxAvatarContentType, ClxBadgeVariant, ClxButtonColor, ClxButtonGroupShape, ClxButtonVariant, ClxCardPadding, ClxCardShadow, ClxCardVariant, ClxCarouselAspectRatio, ClxCarouselConfig, ClxCartItem, ClxCartSummaryData, ClxCellContext, ClxCheckboxVariant, ClxColor, ClxColorInput, ClxColorPickerFormat, ClxColorPickerSize, ClxColorResolved, ClxColorTokens, ClxCouponResult, ClxDateRange, ClxDateRangePickerSize, ClxDateRangePickerStatus, ClxDatepickerSize, ClxDatepickerStatus, ClxDrawerButtonOptions, ClxDrawerConfig, ClxDrawerRef, ClxDrawerSize, ClxEditorSize, ClxEditorTool, ClxEditorToolbarGroup, ClxExistingFile, ClxFabItem, ClxFabPosition, ClxFilterChangeEvent, ClxFilterField, ClxFilterFieldType, ClxFilterOption, ClxFilterValue, ClxFilterValues, ClxFontFamily, ClxFontOption,
|
|
3309
|
+
export { CLX_ADDON_BORDER, CLX_ADDON_TEXT, CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_BG_ADDON, CLX_BG_DISABLED, CLX_BG_ICON_WRAP, CLX_BG_SECTION, CLX_BG_SURFACE, CLX_BORDER_DEFAULT, CLX_BORDER_DISABLED, CLX_BORDER_MEDIUM, CLX_COLOR_HEX, CLX_COLOR_HEX_100, CLX_COLOR_MAP, CLX_FONT_CATALOG, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_OPTION_DISABLED, CLX_PLACEHOLDER, CLX_RADIO_GROUP, CLX_RADIUS_MAP, CLX_TEXT_BODY, CLX_TEXT_DISABLED, CLX_TEXT_HEADING, CLX_TEXT_HINT, CLX_TEXT_IDLE, CLX_TEXT_INPUT, CLX_TEXT_LABEL, CLX_TEXT_OPTION, CLX_TEXT_SUBTITLE, CLX_TEXT_TITLE, CLX_THEME_CONFIG, CLX_THEME_DEFAULTS, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxBrandComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderActionsDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxCheckboxComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFabComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxModalComponent, ClxModalService, ClxNavGroupComponent, ClxNumberComponent, ClxPageEmptyComponent, ClxPageHeaderComponent, ClxPageHeaderTitleDirective, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProfileComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxThemeService, ClxTimelineComponent, ClxTimelineItemComponent, ClxTimepickerComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, TIMEPICKER_SIZE_MAP, parseColorInput, provideCodexlyTheme, resolveColor, resolveContainerRadius, resolveRadius };
|
|
3310
|
+
export type { ClxAlertButtonOptions, ClxAlertOptions, ClxAlertResult, ClxAlertType, ClxAnimateAttentionSeeker, ClxAnimateBackEntrance, ClxAnimateBackExit, ClxAnimateBouncingEntrance, ClxAnimateBouncingExit, ClxAnimateConfig, ClxAnimateDefaults, ClxAnimateEvent, ClxAnimateFadingEntrance, ClxAnimateFadingExit, ClxAnimateFlipper, ClxAnimateLightspeed, ClxAnimateName, ClxAnimateRotatingEntrance, ClxAnimateRotatingExit, ClxAnimateSlidingEntrance, ClxAnimateSlidingExit, ClxAnimateSpecial, ClxAnimateTrigger, ClxAnimateZoomingEntrance, ClxAnimateZoomingExit, ClxAvatarContentType, ClxBadgeVariant, ClxButtonColor, ClxButtonGroupShape, ClxButtonVariant, ClxCardPadding, ClxCardShadow, ClxCardTitleZoneStyle, ClxCardVariant, ClxCarouselAspectRatio, ClxCarouselConfig, ClxCartItem, ClxCartSummaryData, ClxCellContext, ClxCheckboxVariant, ClxColor, ClxColorInput, ClxColorPickerFormat, ClxColorPickerSize, ClxColorResolved, ClxColorTokens, ClxCouponResult, ClxDateRange, ClxDateRangePickerSize, ClxDateRangePickerStatus, ClxDatepickerSize, ClxDatepickerStatus, ClxDrawerButtonOptions, ClxDrawerConfig, ClxDrawerRef, ClxDrawerSize, ClxEditorSize, ClxEditorTool, ClxEditorToolbarGroup, ClxExistingFile, ClxFabItem, ClxFabPosition, ClxFilterChangeEvent, ClxFilterField, ClxFilterFieldType, ClxFilterOption, ClxFilterValue, ClxFilterValues, ClxFontFamily, ClxFontOption, ClxFontWeight, ClxInputSize, ClxInputStatus, ClxInputType, ClxListItem, ClxListSize, ClxListVariant, ClxModalButtonOptions, ClxModalConfig, ClxModalRef, ClxModalSize, ClxNavZoneStyle, ClxNumberSize, ClxNumberVariant, ClxPageChangeEvent, ClxPageHeaderTextSize, ClxPageHeaderZoneStyle, ClxPageSizeChangeEvent, ClxPaginationSize, ClxProduct, ClxProductDescription, ClxProductDetailData, ClxProductLayout, ClxProductSize, ClxProductSpec, ClxProfileMenuItem, ClxProgressBarSize, ClxProgressBarVariant, ClxRadioVariant, ClxResolvedCardTitleZoneStyle, ClxResolvedNavZoneStyle, ClxResolvedPageHeaderZoneStyle, ClxReview, ClxRippleItem, ClxSelectOption, ClxSelectSize, ClxShade, ClxShape, ClxSize, ClxSkeletonVariant, ClxSliderSize, ClxSpecOption, ClxSpecType, ClxSpinnerColor, ClxSpinnerVariant, ClxStatMetric, ClxStepperOrientation, ClxStepperSize, ClxStepperStatus, ClxStepperStep, ClxTabItem, ClxTableColumn, ClxTablePageEvent, ClxTableSelectionEvent, ClxTableSort, ClxTableSortEvent, ClxTagShape, ClxTagSize, ClxTagVariant, ClxTextareaResize, ClxTextareaSize, ClxTextareaStatus, ClxThemeConfig, ClxThemeMode, ClxTimelineLineStyle, ClxTimelineMode, ClxTimelineSize, ClxTimepickerSize, ClxTimepickerStatus, ClxToastAction, ClxToastEntry, ClxToastOptions, ClxToastPosition, ClxToastType, ClxTooltipPosition, ClxTooltipSize, ClxTreeExpandEvent, ClxTreeNode, ClxTreeSelectEvent, ClxTreeSize, ClxTreeVariant, ClxTrendDirection, ClxUploadError, ClxUploadItemAction, ClxUploadItemActionResolver, ClxUploadPreviewItem, ClxUploadSize, ClxVariation, ClxWishlistItem, ClxWishlistPageChangeEvent, ClxWizardColor, ClxWizardOrientation, ClxWizardStepStatus, SparkPoint };
|