@toife/vue 3.4.4 → 3.5.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/README.md CHANGED
@@ -36,9 +36,7 @@ import { createToife } from "@toife/vue";
36
36
  import App from "./App.vue";
37
37
 
38
38
  const app = createApp(App);
39
- app.use(createToife());
40
- // or change the prefix:
41
- // app.use(createToife({ prefix: "toife-" })); // → <toife-app>, <toife-button>, ...
39
+ app.use(createToife()); // prefix "t-" → <t-app>, <t-button>, …
42
40
  app.mount("#app");
43
41
  ```
44
42
 
@@ -91,6 +89,7 @@ The default prefix is `t-`. The **Tag** column is `prefix` + name (e.g. `t-butto
91
89
  | `t-modal` | Modal |
92
90
  | `t-page` | Page |
93
91
  | `t-present` | Present |
92
+ | `t-progress` | Progress |
94
93
  | `t-refresher` | Refresher |
95
94
  | `t-route-navigator` | RouteNavigator |
96
95
  | `t-route-wrapper` | RouteWrapper |
@@ -1,6 +1,5 @@
1
1
  import { CableProps } from '../../core';
2
2
  declare const _default: import('vue').DefineComponent<CableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CableProps> & Readonly<{}>, {
3
3
  placement: string;
4
- keyboard: boolean;
5
4
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
5
  export default _default;
@@ -1,5 +1,6 @@
1
1
  export * from './app';
2
2
  export * from './present';
3
+ export * from './progress';
3
4
  export * from './modal';
4
5
  export * from './gesture-indicator';
5
6
  export * from './layout';
@@ -0,0 +1 @@
1
+ export { default as Progress } from './progress.vue';
@@ -0,0 +1,9 @@
1
+ import { ProgressProps } from '../../core';
2
+ declare const _default: import('vue').DefineComponent<ProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
3
+ size: import('../../core').ProgressSize;
4
+ variant: import('../../core').ProgressVariant;
5
+ value: number;
6
+ max: number;
7
+ indeterminate: boolean;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -20,8 +20,8 @@ declare const _default: import('vue').DefineComponent<SegmentedFieldProps, {}, {
20
20
  message: string;
21
21
  type: string;
22
22
  pattern: string[];
23
- modelValue: string[];
24
23
  value: string[];
24
+ modelValue: string[];
25
25
  readonly: boolean;
26
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
27
  export default _default;
@@ -7,10 +7,10 @@ declare const _default: import('vue').DefineComponent<SlideRangeProps, {}, {}, {
7
7
  "onUpdate:modelValue"?: ((value: SlideRangeValue) => any) | undefined;
8
8
  }>, {
9
9
  disabled: boolean;
10
+ max: SlideRangeValue;
10
11
  modelValue: SlideRangeValue;
11
12
  readonly: boolean;
12
13
  min: SlideRangeValue;
13
- max: SlideRangeValue;
14
14
  step: SlideRangeValue;
15
15
  unit: string;
16
16
  tick: boolean | SlideRangeValue;
@@ -1,5 +1,4 @@
1
1
  export declare const CABLE_PROVIDER_STATE_KEY = "cable-state";
2
2
  export declare const CABLE_DEFAULT_PROPS: {
3
- readonly keyboard: false;
4
3
  readonly placement: "bottom";
5
4
  };
@@ -1,5 +1,4 @@
1
1
  export type CableProps = {
2
- keyboard?: boolean;
3
2
  placement?: string;
4
3
  };
5
4
  export type CableProviderState = {
@@ -18,6 +18,7 @@ export * from './layout';
18
18
  export * from './modal';
19
19
  export * from './page';
20
20
  export * from './present';
21
+ export * from './progress';
21
22
  export * from './radio';
22
23
  export * from './refresher';
23
24
  export * from './route';
@@ -0,0 +1,3 @@
1
+ export * from './progress.constants';
2
+ export * from './progress.type';
3
+ export * from './progress.logic';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Progress Default Props
3
+ */
4
+ export declare const PROGRESS_DEFAULT_PROPS: {
5
+ readonly variant: "bar";
6
+ readonly value: 0;
7
+ readonly max: 100;
8
+ readonly indeterminate: false;
9
+ readonly size: "standard";
10
+ };
@@ -0,0 +1,32 @@
1
+ import { ProgressAttrOptions } from './progress.type';
2
+ export declare const getProgressPercent: (value: number, max: number) => number;
3
+ export declare const getProgressAttrs: (options: ProgressAttrOptions) => {
4
+ class: (string | {
5
+ bar: boolean;
6
+ circle: boolean;
7
+ indeterminate: boolean;
8
+ })[];
9
+ style: {
10
+ [x: string]: string;
11
+ };
12
+ };
13
+ export declare const getProgressTrackAttrs: () => {
14
+ class: string[];
15
+ };
16
+ export declare const getProgressBarAttrs: () => {
17
+ class: string[];
18
+ };
19
+ export declare const getProgressSvgAttrs: () => {
20
+ class: string[];
21
+ viewBox: string;
22
+ "aria-hidden": string;
23
+ };
24
+ export declare const getProgressCircleTrackAttrs: () => {
25
+ class: string[];
26
+ };
27
+ export declare const getProgressCircleBarAttrs: () => {
28
+ class: string[];
29
+ };
30
+ export declare const getProgressLabelAttrs: () => {
31
+ class: string[];
32
+ };
@@ -0,0 +1,19 @@
1
+ export type ProgressVariant = "bar" | "circle";
2
+ export type ProgressSize = string;
3
+ export type ProgressProps = {
4
+ variant?: ProgressVariant;
5
+ value?: number;
6
+ max?: number;
7
+ indeterminate?: boolean;
8
+ role?: string;
9
+ shape?: string;
10
+ size?: ProgressSize;
11
+ };
12
+ export type ProgressAttrOptions = {
13
+ role: string;
14
+ shape: string;
15
+ size: string;
16
+ variant: ProgressVariant;
17
+ indeterminate: boolean;
18
+ percent: number;
19
+ };