@hlw-uni/mp-vue 1.0.34 → 1.1.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.
@@ -0,0 +1,9 @@
1
+ export type FontScale = "small" | "normal" | "large" | "xlarge";
2
+ export interface FontPreset {
3
+ label: string;
4
+ vars: Record<string, string>;
5
+ }
6
+ export declare const FONT_SCALE_KEY = "hlw_font_scale";
7
+ export declare const FONT_PRESETS: Record<FontScale, FontPreset>;
8
+ export declare function getCurrentFontScale(): FontScale;
9
+ export declare function getCurrentFontVars(): Record<string, string>;
@@ -0,0 +1,9 @@
1
+ export declare const THEME_CHANGE_EVENT = "hlw:theme-change";
2
+ export declare function buildThemeStyle(): string;
3
+ export declare function useThemePageStyle(): {
4
+ themePageStyle: any;
5
+ };
6
+ export type { FontScale, FontPreset } from './font';
7
+ export { FONT_SCALE_KEY, FONT_PRESETS, getCurrentFontScale, getCurrentFontVars } from './font';
8
+ export type { ThemeColor } from './palette';
9
+ export { THEME_COLOR_KEY, DEFAULT_THEMES, getCurrentThemeColor, getCurrentThemeVars } from './palette';
@@ -0,0 +1,8 @@
1
+ export interface ThemeColor {
2
+ label: string;
3
+ value: string;
4
+ }
5
+ export declare const THEME_COLOR_KEY = "hlw_theme_color";
6
+ export declare const DEFAULT_THEMES: ThemeColor[];
7
+ export declare function getCurrentThemeColor(): string;
8
+ export declare function getCurrentThemeVars(): Record<string, string>;
package/dist/index.d.ts CHANGED
@@ -3,13 +3,24 @@
3
3
  */
4
4
  export { default as HlwAd } from './components/hlw-ad/index.vue';
5
5
  export { default as HlwAvatar } from './components/hlw-avatar/index.vue';
6
+ export { default as HlwButton } from './components/hlw-button/index.vue';
6
7
  export { default as HlwCard } from './components/hlw-card/index.vue';
8
+ export { default as HlwCell } from './components/hlw-cell/index.vue';
9
+ export { default as HlwDivider } from './components/hlw-divider/index.vue';
7
10
  export { default as HlwEmpty } from './components/hlw-empty/index.vue';
8
11
  export { default as HlwHeader } from './components/hlw-header/index.vue';
9
12
  export { default as HlwLoading } from './components/hlw-loading/index.vue';
10
13
  export { default as HlwMenu } from './components/hlw-menu/index.vue';
11
14
  export type { HlwMenuItem } from './components/hlw-menu/types';
15
+ export { default as HlwModal } from './components/hlw-modal/index.vue';
16
+ export { default as HlwNoticeBar } from './components/hlw-notice-bar/index.vue';
12
17
  export { default as HlwPage } from './components/hlw-page/index.vue';
18
+ export { default as HlwPopup } from './components/hlw-popup/index.vue';
19
+ export { default as HlwSearch } from './components/hlw-search/index.vue';
20
+ export { default as HlwSkeleton } from './components/hlw-skeleton/index.vue';
21
+ export { default as HlwTabs } from './components/hlw-tabs/index.vue';
22
+ export { default as HlwTag } from './components/hlw-tag/index.vue';
23
+ export type { HlwTabItem } from './components/hlw-tabs/index.vue';
13
24
  export type { FontScale, FontPreset, ThemeColor } from './composables/theme';
14
25
  export { FONT_PRESETS, FONT_SCALE_KEY, DEFAULT_THEMES, THEME_COLOR_KEY, THEME_CHANGE_EVENT, getCurrentFontScale, getCurrentFontVars, getCurrentThemeColor, getCurrentThemeVars, buildThemeStyle, useThemePageStyle } from './composables/theme';
15
26
  export { useThemeStore } from './stores/theme';