prismify-ui 0.1.0-alpha.1 → 0.1.0-alpha.12
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/CHANGELOG.md +76 -1
- package/README.md +1 -1
- package/dist/components/dashboard/PfDashboardSidebar/index.vue.d.ts +3 -0
- package/dist/components/dashboard/PfDashboardSidebarCollapse/index.vue.d.ts +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/prismify-ui.cjs +2 -2
- package/dist/prismify-ui.cjs.map +1 -1
- package/dist/prismify-ui.js +4131 -4105
- package/dist/prismify-ui.js.map +1 -1
- package/dist/style.css +1 -1
- package/docs/installation.md +21 -11
- package/docs/theming.md +2 -1
- package/nuxt.d.ts +11 -0
- package/nuxt.ts +153 -0
- package/package.json +15 -3
- package/src/styles/variables/_contextMenu.scss +6 -6
- package/src/styles/variables/_dashboard.scss +2 -0
- package/src/styles/variables/_effects.scss +2 -1
- package/src/styles/variables/_navigationMenu.scss +1 -1
- package/src/styles/variables/_tabs.scss +2 -1
- package/src/styles/variables/_toast.scss +5 -5
- package/src/styles/variables/_tooltip.scss +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,82 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
-
## [0.1.0-alpha.
|
|
9
|
+
## [0.1.0-alpha.12] - 2026-04-10
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **PfDashboardSidebar**: added **`mobileMenuOrientation`** (`top`/`bottom`/`left`/`right`) to control mobile drawer direction independently from desktop sidebar side; default is now **`bottom`**.
|
|
14
|
+
- **Dashboard theme tokens**: added **`--pf-dashboard-sidebar-mobile-pad-x`** and **`--pf-dashboard-sidebar-mobile-pad-y`** for mobile sidebar spacing overrides and documented them in **`docs/theming.md`**.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **PfDashboardSidebar (mobile drawer layout)**: removed unintended horizontal offset for bottom/top mobile drawer by applying slideover inset only to side directions (**`left`**/**`right`**), disabling background scale for this drawer, and removing extra nested container paddings.
|
|
19
|
+
- **PfDashboardSidebar (mobile content spacing)**: removed inner mobile paddings in header/body/footer wrappers so sidebar slot content aligns to container edges without right shift.
|
|
20
|
+
- **PfToaster (mobile right positions)**: on mobile viewports, **`top-right`** and **`bottom-right`** stacks now align like centered stacks to avoid visual right drift.
|
|
21
|
+
- **PfToast (overflow width)**: added **`box-sizing: border-box`** so toast width includes padding and no longer overflows its container on desktop/mobile.
|
|
22
|
+
|
|
23
|
+
## [0.1.0-alpha.11] - 2026-04-10
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- **Lint / Nuxt module files**: ESLint no longer fails on root Nuxt entry files by covering **`nuxt.ts`** in the lint TypeScript project, ignoring **`nuxt.d.ts`** for typed parsing, and aligning formatting in **`nuxt.ts`**.
|
|
28
|
+
|
|
29
|
+
- **Theme color tokens**: removed hardcoded and fallback color values from shared style variables and component shadows so surfaces, borders, text, focus ring, and elevation now consistently resolve through **`src/styles/variables/_colors.scss`** tokens (updated **`_toast.scss`**, **`_contextMenu.scss`**, **`_tooltip.scss`**, **`_effects.scss`**, **`_navigationMenu.scss`**, **`_tabs.scss`**, and **`PfSwitch`** styles).
|
|
30
|
+
|
|
31
|
+
## [0.1.0-alpha.10] - 2026-04-10
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- **Playground**: added a dashboard shell in **`playground/App.vue`** (group, sidebar, panel, navbar) for local dashboard behavior checks outside Storybook.
|
|
36
|
+
- **Nuxt module**: added **`prismify-ui/nuxt`** for direct Nuxt integration with:
|
|
37
|
+
- automatic **`Pf*`** component registration,
|
|
38
|
+
- composable auto-imports (**`usePfApp`**, **`usePfToast`**, **`usePfContentSearch`**, **`usePfKbd`**),
|
|
39
|
+
- automatic **`prismify-ui/style.css`** injection,
|
|
40
|
+
- optional plugin install via **`prismifyUI.plugin`**.
|
|
41
|
+
- **Nuxt entry export** in **`package.json`** (**`./nuxt`**) and Nuxt module typing via **`nuxt.d.ts`**.
|
|
42
|
+
- **`docs/installation.md`**: Nuxt 4 setup now documents module-based integration and module options.
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- **PfDashboardSidebar**: restoring from persisted state now clamps invalid sizes and preserves expanded width while collapsed, so sidebars can be collapsed and expanded reliably.
|
|
47
|
+
- **PfDashboardSidebarCollapse**: reads sidebar API at interaction time instead of caching a non-reactive lookup, so collapse/expand toggling stays functional after mount timing changes.
|
|
48
|
+
- **PfDashboardResizeHandle**: improved desktop handle visibility with an explicit visual divider while keeping a wider pointer hit area for resizing.
|
|
49
|
+
|
|
50
|
+
## [0.1.0-alpha.9] - 2026-04-10
|
|
51
|
+
|
|
52
|
+
### Fixed
|
|
53
|
+
|
|
54
|
+
- **PfDrawer**: SSR-safe use of **`document`** and **`window`** (scroll lock, scale wrapper query, global listeners, deferred **`setTimeout`**) so server renders (e.g. **Nuxt**) do not throw **`ReferenceError`** or return HTTP 500 when watchers run without a DOM.
|
|
55
|
+
- **PfDashboardSidebarCollapse**: toggling no longer calls **`toggleCollapsed()`** (which was a no-op unless **`PfDashboardSidebar`** had **`collapsible`**); it now calls **`setCollapsed()`** so the control works with default sidebar props. Default **icon-only** styling (**`iconOnly`**, **`aria-label`**) for a square, centered icon button.
|
|
56
|
+
|
|
57
|
+
## [0.1.0-alpha.8] - 2026-04-10
|
|
58
|
+
|
|
59
|
+
### Fixed
|
|
60
|
+
|
|
61
|
+
- **PfDashboardSidebar**: template used an invalid tag (**`div-d-c`**) where a **`div`** was intended.
|
|
62
|
+
- **PfDashboardSidebar**: removed stray text (**`-m-d -t-s`**) accidentally left in the markup.
|
|
63
|
+
|
|
64
|
+
## [0.1.0-alpha.7] - 2026-04-10
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
- **PfInput**, **PfTextarea**, **PfPinInput**: WebKit autofill text color (**`-webkit-text-fill-color`**) now uses **`var(--pf-input-text)`** so filled fields match the themed input text token (instead of **`--input-color`**).
|
|
69
|
+
|
|
70
|
+
## [0.1.0-alpha.6] - 2026-04-10
|
|
71
|
+
|
|
72
|
+
### Fixed
|
|
73
|
+
|
|
74
|
+
- **PfInput**, **PfTextarea**, **PfPinInput**: **WebKit** autofill (**`:-webkit-autofill`**) no longer shows the default yellow highlight: **`box-shadow`** cleared, backgrounds set to transparent, text color follows **`var(--input-color)`** via **`-webkit-text-fill-color`**, and a long **`background-color`** **transition** keeps Chrome from repainting the autofill background over the themed field.
|
|
75
|
+
|
|
76
|
+
## [0.1.0-alpha.5] - 2026-04-09
|
|
77
|
+
|
|
78
|
+
### Changed
|
|
79
|
+
|
|
80
|
+
- **Peer dependency** **`vue-router`** raised from **^4** to **^5** (install **Vue Router 5** if you use **`PfLink`** or other router-aware components). The APIs used in the library (**`RouterLink`**, **`useRouter`**, **`useRoute`**, route location types) stay compatible with Vue Router 5; no source changes were required in **prismify-ui**.
|
|
81
|
+
- **Dev dependency** **`vue-router`** updated to **^5.0.4** for tests, Storybook, and the playground.
|
|
82
|
+
- **`docs/installation.md`**: peer table documents **`vue-router` ^5**.
|
|
83
|
+
|
|
84
|
+
## [0.1.0-alpha.4] - 2026-04-09
|
|
10
85
|
|
|
11
86
|
### Added
|
|
12
87
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# prismify-ui v0.1.0-alpha.
|
|
1
|
+
# prismify-ui v0.1.0-alpha.12
|
|
2
2
|
|
|
3
3
|
[](https://github.com/koirodev/prismify-ui/actions/workflows/test.yml) [](https://github.com/koirodev/prismify-ui/actions/workflows/build.yml)
|
|
4
4
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type PfDashboardSidebarMode = 'drawer' | 'slideover' | 'modal';
|
|
2
|
+
export type PfDashboardSidebarMobileMenuOrientation = 'top' | 'bottom' | 'left' | 'right';
|
|
2
3
|
export interface PfDashboardSidebarUi {
|
|
3
4
|
root?: string;
|
|
4
5
|
header?: string;
|
|
@@ -18,6 +19,7 @@ type __VLS_Props = {
|
|
|
18
19
|
class: string;
|
|
19
20
|
}>;
|
|
20
21
|
toggleSide?: 'left' | 'right';
|
|
22
|
+
mobileMenuOrientation?: PfDashboardSidebarMobileMenuOrientation;
|
|
21
23
|
autoClose?: boolean;
|
|
22
24
|
ui?: PfDashboardSidebarUi;
|
|
23
25
|
id?: string;
|
|
@@ -110,6 +112,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
110
112
|
side: "left" | "right";
|
|
111
113
|
defaultSize: number;
|
|
112
114
|
resizable: boolean;
|
|
115
|
+
mobileMenuOrientation: PfDashboardSidebarMobileMenuOrientation;
|
|
113
116
|
collapsedSize: number;
|
|
114
117
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
115
118
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -11,7 +11,12 @@ type __VLS_Props = {
|
|
|
11
11
|
icon?: PfIconName;
|
|
12
12
|
label?: string;
|
|
13
13
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
14
|
+
/** Equal padding; default `true` when using icon-only (see `iconOnly`). */
|
|
14
15
|
square?: boolean;
|
|
16
|
+
/** Icon-only control: square aspect ratio and centered icon (default `true` when there is no `label`). */
|
|
17
|
+
iconOnly?: boolean;
|
|
18
|
+
/** Accessible name for the icon-only control (recommended). */
|
|
19
|
+
ariaLabel?: string;
|
|
15
20
|
block?: boolean;
|
|
16
21
|
loadingAuto?: boolean;
|
|
17
22
|
avatar?: PfButtonAvatarProps;
|
|
@@ -50,6 +55,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
50
55
|
trailing: boolean;
|
|
51
56
|
trailingIcon: PfIconName;
|
|
52
57
|
avatar: PfButtonAvatarProps;
|
|
58
|
+
iconOnly: boolean;
|
|
59
|
+
ariaLabel: string;
|
|
53
60
|
disabled: boolean;
|
|
54
61
|
loadingIcon: PfIconName;
|
|
55
62
|
loadingAuto: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export type { PfDashboardPanelUi } from './components/dashboard/PfDashboardPanel
|
|
|
166
166
|
export type { PfDashboardResizeHandleUi } from './components/dashboard/PfDashboardResizeHandle/index.vue';
|
|
167
167
|
export type { PfDashboardSearchGroup, PfDashboardSearchItem, PfDashboardSearchUi, } from './components/dashboard/PfDashboardSearch/index.vue';
|
|
168
168
|
export type { PfDashboardSearchButtonUi } from './components/dashboard/PfDashboardSearchButton/index.vue';
|
|
169
|
-
export type { PfDashboardSidebarMode, PfDashboardSidebarUi, } from './components/dashboard/PfDashboardSidebar/index.vue';
|
|
169
|
+
export type { PfDashboardSidebarMobileMenuOrientation, PfDashboardSidebarMode, PfDashboardSidebarUi, } from './components/dashboard/PfDashboardSidebar/index.vue';
|
|
170
170
|
export type { PfDashboardSidebarCollapseUi } from './components/dashboard/PfDashboardSidebarCollapse/index.vue';
|
|
171
171
|
export type { PfDashboardSidebarToggleUi } from './components/dashboard/PfDashboardSidebarToggle/index.vue';
|
|
172
172
|
export type { PfDashboardToolbarUi } from './components/dashboard/PfDashboardToolbar/index.vue';
|