@wpic/ui 0.7.6 → 0.8.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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.8.0
2
+
3
+ - Consolidate side panels into `WSlidePanel`; remove `WSidePanel`.
4
+ - Migrate `:open` / `@close` to `:model-value` / `@update:model-value` (or `v-model`). CSS widths such as `500px` and existing width classes are supported.
5
+ - Add `noPadding`, `hideHeader`, `subtitle` and `zIndex` for custom panel layouts. Keep `island` and the default 420px width.
6
+ - Share scroll locking across open panels and restore the prior body overflow after the final close or unmount.
7
+ - Respect both Studio's docked chat offset and Perform's Webber offset; constrain panels to the available viewport.
8
+
1
9
  # Changelog
2
10
 
3
11
  ## 0.7.6
package/COMPONENTS.md CHANGED
@@ -491,25 +491,6 @@ size?: 'sm' | 'md' | 'lg'
491
491
 
492
492
  ---
493
493
 
494
- ## WSidePanel
495
-
496
- **Import:** `import { WSidePanel } from '@wpic/ui'`
497
-
498
- **Props:**
499
- ```ts
500
- open: boolean
501
- title?: string
502
- subtitle?: string
503
- width?: string // e.g. '420px', '560px' — default 420px
504
- zIndex?: number // default 50
505
- ```
506
-
507
- **Emits:**
508
- ```ts
509
- close: []
510
- ```
511
-
512
- ---
513
494
 
514
495
  ## WSkeleton
515
496
 
@@ -556,7 +537,12 @@ size?: 'sm' | 'md' | 'lg' // default 'md'
556
537
  ```ts
557
538
  modelValue: boolean
558
539
  title?: string
559
- width?: string
540
+ width?: string // default: w-[420px]
541
+ island?: boolean // inset by 12px, rounded corners, responsive viewport limit
542
+ noPadding?: boolean
543
+ hideHeader?: boolean
544
+ subtitle?: string
545
+ zIndex?: number // default 70
560
546
  ```
561
547
 
562
548
  **Emits:**
@@ -1,22 +1,32 @@
1
- type __VLS_Props = {
1
+ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<{
2
2
  modelValue: boolean;
3
3
  title?: string;
4
4
  width?: string;
5
- };
6
- declare var __VLS_13: {}, __VLS_19: {}, __VLS_21: {};
7
- type __VLS_Slots = {} & {
8
- header?: (props: typeof __VLS_13) => any;
9
- } & {
10
- default?: (props: typeof __VLS_19) => any;
11
- } & {
12
- footer?: (props: typeof __VLS_21) => any;
13
- };
14
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ island?: boolean;
6
+ noPadding?: boolean;
7
+ hideHeader?: boolean;
8
+ subtitle?: string;
9
+ zIndex?: number;
10
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
11
  "update:modelValue": (v: boolean) => any;
16
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ }, string, import('vue').PublicProps, Readonly<{
13
+ modelValue: boolean;
14
+ title?: string;
15
+ width?: string;
16
+ island?: boolean;
17
+ noPadding?: boolean;
18
+ hideHeader?: boolean;
19
+ subtitle?: string;
20
+ zIndex?: number;
21
+ }> & Readonly<{
17
22
  "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
24
+ header?: (props: {}) => any;
25
+ } & {
26
+ default?: (props: {}) => any;
27
+ } & {
28
+ footer?: (props: {}) => any;
29
+ }>;
20
30
  export default _default;
21
31
  type __VLS_WithSlots<T, S> = T & {
22
32
  new (): {
package/dist/index.d.ts CHANGED
@@ -25,7 +25,6 @@ export { default as WSpinner } from './components/WSpinner.vue';
25
25
  export { default as WLoader } from './components/WLoader.vue';
26
26
  export { default as WToggle } from './components/WToggle.vue';
27
27
  export { default as WModal } from './components/WModal.vue';
28
- export { default as WSidePanel } from './components/WSidePanel.vue';
29
28
  export { default as Modal } from './components/Modal.vue';
30
29
  export { default as ToastContainer } from './components/ToastContainer.vue';
31
30
  export { default as WTabs } from './components/WTabs.vue';