@fiscozen/tab 0.1.10 → 0.1.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 ADDED
@@ -0,0 +1,30 @@
1
+ # @fiscozen/tab
2
+
3
+ ## 0.1.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 1a2df8c: Move @fiscozen/icons from dependencies to peerDependencies. Consumers now need to install @fiscozen/icons explicitly. This decouples icon updates from component version bumps.
8
+ - Updated dependencies [1a2df8c]
9
+ - @fiscozen/badge@1.0.1
10
+
11
+ ## 0.1.11
12
+
13
+ ### Patch Changes
14
+
15
+ #### Modifiche dalla versione 0.1.8
16
+
17
+ - Layout **full width** del picker su dispositivi mobile
18
+ - Nuovo layout con correzioni di stile e refactoring del componente
19
+ - Gestione dell'overflow con resize automatico e `v-if` corretto
20
+ - Correzione del border radius per i tab (LIB-487)
21
+ - Rimozione dell'emit inutilizzato (LIB-478)
22
+ - Cambio automatico a un tab esistente dopo la cancellazione (LIB-478)
23
+ - Nuovi slot `tabs-end` e `tabs-content-ends` (LIB-477)
24
+ - Correzione del rendering dei figli dei tab (LIB-462)
25
+ - Hotfix per il rendering con `v-for` (LIB-460)
26
+ - Gap corretto e layout verticale con emissione dell'evento `onChange` (LIB-388)
27
+ - Updated dependencies
28
+ - @fiscozen/badge@1.0.0
29
+ - @fiscozen/style@0.2.0
30
+ - @fiscozen/composables@1.0.1
@@ -1,6 +1,6 @@
1
1
  import { FzTabProps } from './types';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<FzTabProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FzTabProps>>>, {}, {}>, {
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FzTabProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FzTabProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
4
4
  default?(_: {}): any;
5
5
  }>;
6
6
  export default _default;
@@ -1,19 +1,19 @@
1
1
  import { FzTabsProps } from './types';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzTabsProps>, {
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzTabsProps>, {
4
4
  size: string;
5
5
  vertical: boolean;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
7
  change: (...args: any[]) => void;
8
8
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzTabsProps>, {
9
9
  size: string;
10
10
  vertical: boolean;
11
- }>>> & {
11
+ }>>> & Readonly<{
12
12
  onChange?: ((...args: any[]) => any) | undefined;
13
- }, {
13
+ }>, {
14
14
  size: "sm" | "md";
15
15
  vertical: boolean;
16
- }, {}>, {
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
17
17
  "tabs-container-end"?(_: {}): any;
18
18
  "tabs-end"?(_: {}): any;
19
19
  default?(_: {
@@ -2,3 +2,11 @@ export declare const mapSizeToClasses: {
2
2
  sm: string;
3
3
  md: string;
4
4
  };
5
+ export declare const mapSelectedTabToClasses: {
6
+ picker: string;
7
+ tab: string;
8
+ };
9
+ export declare const mapUnselectedTabToClasses: {
10
+ picker: string;
11
+ tab: string;
12
+ };
@@ -0,0 +1,56 @@
1
+ import { FzTabProps } from '../types';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ tab: FzTabProps;
5
+ size: "sm" | "md";
6
+ type: "picker" | "tab";
7
+ readonly: boolean;
8
+ maxWidth?: string | undefined;
9
+ }>, {
10
+ type: string;
11
+ readonly: boolean;
12
+ maxWidth: string;
13
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ click: (...args: any[]) => void;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
+ tab: FzTabProps;
17
+ size: "sm" | "md";
18
+ type: "picker" | "tab";
19
+ readonly: boolean;
20
+ maxWidth?: string | undefined;
21
+ }>, {
22
+ type: string;
23
+ readonly: boolean;
24
+ maxWidth: string;
25
+ }>>> & Readonly<{
26
+ onClick?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ maxWidth: string;
29
+ type: "picker" | "tab";
30
+ readonly: boolean;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
32
+ default?(_: {}): any;
33
+ }>;
34
+ export default _default;
35
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
+ type __VLS_TypePropsToRuntimeProps<T> = {
37
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
38
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
+ } : {
40
+ type: import('vue').PropType<T[K]>;
41
+ required: true;
42
+ };
43
+ };
44
+ type __VLS_WithDefaults<P, D> = {
45
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
+ default: D[K];
47
+ }> : P[K];
48
+ };
49
+ type __VLS_Prettify<T> = {
50
+ [K in keyof T]: T[K];
51
+ } & {};
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
@@ -1,12 +1,12 @@
1
1
  import { FzTabProps } from '../types';
2
2
 
3
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  tabs: FzTabProps[];
5
5
  size: "sm" | "md";
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
7
  tabs: FzTabProps[];
8
8
  size: "sm" | "md";
9
- }>>>, {}, {}>;
9
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
10
  export default _default;
11
11
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
12
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -34,7 +34,7 @@ export type FzTabProps = {
34
34
  */
35
35
  initialSelected?: boolean;
36
36
  /**
37
- * custom property not handled by the component but maybe useful for the user (e.g. aria-label, class, etc.)
37
+ * Max width of the tab
38
38
  */
39
- [key: string]: unknown;
39
+ maxWidth?: string;
40
40
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .tab-container[data-v-7c8f6442]::-webkit-scrollbar{width:0em;height:0em}
1
+ .tab-container[data-v-f9fcb49a]::-webkit-scrollbar{width:0em;height:0em}