@feedmepos/ui-library 0.0.23 → 0.0.24

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.
Files changed (58) hide show
  1. package/dist/components/button/FmButton.stories.d.ts +60 -31
  2. package/dist/components/button/FmButton.vue.d.ts +43 -5
  3. package/dist/components/form/field/FmField.vue.d.ts +2 -2
  4. package/dist/components/form/stepper-field/FmStepperField.vue.d.ts +2 -2
  5. package/dist/components/form/text-field/FmTextField.vue.d.ts +2 -2
  6. package/dist/components/progress-indicator/FmProgress.vue.d.ts +32 -0
  7. package/dist/components.d.ts +6314 -48
  8. package/dist/composables/useDialog.d.ts +1 -1
  9. package/dist/demo/ProgressIndicator.vue.d.ts +2 -0
  10. package/dist/federation/FmButton-afd1cea0.css +1 -0
  11. package/dist/federation/FmCheckbox.vue_vue_type_style_index_0_lang-b8a5c536.js +1 -0
  12. package/dist/federation/{FmFormGroup.vue_vue_type_script_setup_true_lang-f4ecff73.js → FmFormGroup.vue_vue_type_script_setup_true_lang-0e7854d6.js} +1 -1
  13. package/dist/federation/{FmLabel.vue_vue_type_script_setup_true_lang-2cddbc91.js → FmLabel.vue_vue_type_script_setup_true_lang-394da53f.js} +1 -1
  14. package/dist/federation/FmMenuItem-1ff2c242.css +1 -0
  15. package/dist/federation/{FmRadioGroup.vue_vue_type_script_setup_true_lang-11d6d508.js → FmRadioGroup.vue_vue_type_script_setup_true_lang-8bf88b4a.js} +1 -1
  16. package/dist/federation/{FmSelect.vue_vue_type_script_setup_true_lang-8d8dcd84.js → FmSelect.vue_vue_type_script_setup_true_lang-e44b1c3e.js} +1 -1
  17. package/dist/federation/{FmStepperField-3fe87932.css → FmStepperField-62fdd552.css} +1 -1
  18. package/dist/federation/{FmTable.vue_vue_type_script_setup_true_lang-ced44eca.js → FmTable.vue_vue_type_script_setup_true_lang-0c3ac7d5.js} +2 -2
  19. package/dist/federation/{FmTabs.vue_vue_type_script_setup_true_lang-10f4545b.js → FmTabs.vue_vue_type_script_setup_true_lang-ba363af6.js} +1 -1
  20. package/dist/federation/{FmTextField.vue_vue_type_style_index_0_lang-61b39b7f.js → FmTextField.vue_vue_type_style_index_0_lang-534a781c.js} +1 -1
  21. package/dist/federation/{FmTimePicker.vue_vue_type_script_setup_true_lang-ebc23a16.js → FmTimePicker.vue_vue_type_script_setup_true_lang-b5de36fa.js} +1 -1
  22. package/dist/federation/{FmTooltip.vue_vue_type_script_setup_true_lang-67b992e5.js → FmTooltip.vue_vue_type_script_setup_true_lang-ca997db3.js} +1 -1
  23. package/dist/federation/__federation_expose_FmButton-a5e2a51f.js +9 -0
  24. package/dist/federation/{__federation_expose_FmCheckbox-b945f851.js → __federation_expose_FmCheckbox-2ff86aa2.js} +1 -1
  25. package/dist/federation/{__federation_expose_FmDatePicker-e323b476.js → __federation_expose_FmDatePicker-402fd49b.js} +1 -1
  26. package/dist/federation/{__federation_expose_FmDateRangePicker-77232298.js → __federation_expose_FmDateRangePicker-67f5732f.js} +1 -1
  27. package/dist/federation/{__federation_expose_FmDropField-167415d4.js → __federation_expose_FmDropField-7c76401d.js} +1 -1
  28. package/dist/federation/{__federation_expose_FmDynamicDialog-11c372d2.js → __federation_expose_FmDynamicDialog-02e51f7c.js} +1 -1
  29. package/dist/federation/{__federation_expose_FmFormGroup-0001f2a6.js → __federation_expose_FmFormGroup-7f69a13c.js} +1 -1
  30. package/dist/federation/{__federation_expose_FmLabel-d1710d54.js → __federation_expose_FmLabel-a57534bc.js} +1 -1
  31. package/dist/federation/{__federation_expose_FmMenuItem-ce794b1a.js → __federation_expose_FmMenuItem-41a59b64.js} +1 -1
  32. package/dist/federation/{__federation_expose_FmRadioGroup-cfc046dc.js → __federation_expose_FmRadioGroup-dedd8076.js} +1 -1
  33. package/dist/federation/{__federation_expose_FmSelect-4351c0ec.js → __federation_expose_FmSelect-2243c372.js} +1 -1
  34. package/dist/federation/__federation_expose_FmStepperField-978d9248.js +1 -0
  35. package/dist/federation/{__federation_expose_FmTab-f49fe036.js → __federation_expose_FmTab-13f768b6.js} +1 -1
  36. package/dist/federation/{__federation_expose_FmTable-87f589d9.js → __federation_expose_FmTable-12eb38a9.js} +1 -1
  37. package/dist/federation/{__federation_expose_FmTabs-ff76ac13.js → __federation_expose_FmTabs-d76cc0dc.js} +1 -1
  38. package/dist/federation/{__federation_expose_FmTextField-f4f1b730.js → __federation_expose_FmTextField-c8d3c680.js} +1 -1
  39. package/dist/federation/{__federation_expose_FmTextarea-71f50c3d.js → __federation_expose_FmTextarea-3ddf8da1.js} +1 -1
  40. package/dist/federation/{__federation_expose_FmTimePicker-6cceb316.js → __federation_expose_FmTimePicker-766e0af5.js} +1 -1
  41. package/dist/federation/{__federation_expose_FmTooltip-e1de7b1f.js → __federation_expose_FmTooltip-fb507214.js} +1 -1
  42. package/dist/federation/dialog-plugin-fa9a753b.js +1 -0
  43. package/dist/federation/feedmepos-ui-components.js +1 -1
  44. package/dist/federation/index-9483053f.css +1 -0
  45. package/dist/federation/{index-784f97f0.js → index-9e7ee072.js} +5 -5
  46. package/dist/feedmepos-ui-library.js +2260 -2241
  47. package/dist/feedmepos-ui-library.umd.cjs +11 -10
  48. package/dist/global-components.d.ts +53 -53
  49. package/dist/plugin/dialog-plugin.d.ts +1 -0
  50. package/dist/style.css +1 -1
  51. package/package.json +1 -1
  52. package/dist/federation/FmButton-f152ddf6.css +0 -1
  53. package/dist/federation/FmCheckbox.vue_vue_type_style_index_0_lang-604933bd.js +0 -1
  54. package/dist/federation/FmMenuItem-8fe418ca.css +0 -1
  55. package/dist/federation/__federation_expose_FmButton-9c05faa9.js +0 -8
  56. package/dist/federation/__federation_expose_FmStepperField-1cebbb0a.js +0 -1
  57. package/dist/federation/dialog-plugin-ee1e86ff.js +0 -1
  58. package/dist/federation/index-08830400.css +0 -1
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  component: import("vue").DefineComponent<{
5
5
  variant: {
6
- type: import("vue").PropType<"primary" | "secondary" | "tertiary" | "destructive" | "fab">;
6
+ type: import("vue").PropType<"primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab">;
7
7
  default: string;
8
8
  };
9
9
  type: {
@@ -26,10 +26,6 @@ declare const meta: {
26
26
  type: import("vue").PropType<string>;
27
27
  default: string;
28
28
  };
29
- autofocus: {
30
- type: import("vue").PropType<boolean>;
31
- default: boolean;
32
- };
33
29
  iconColor: {
34
30
  type: import("vue").PropType<string>;
35
31
  default: string;
@@ -38,9 +34,21 @@ declare const meta: {
38
34
  type: import("vue").PropType<"prepend" | "append">;
39
35
  default: string;
40
36
  };
37
+ prependIcon: {
38
+ type: import("vue").PropType<string>;
39
+ default: string;
40
+ };
41
+ appendIcon: {
42
+ type: import("vue").PropType<string>;
43
+ default: string;
44
+ };
45
+ loading: {
46
+ type: import("vue").PropType<boolean>;
47
+ default: boolean;
48
+ };
41
49
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
50
  variant: {
43
- type: import("vue").PropType<"primary" | "secondary" | "tertiary" | "destructive" | "fab">;
51
+ type: import("vue").PropType<"primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab">;
44
52
  default: string;
45
53
  };
46
54
  type: {
@@ -63,10 +71,6 @@ declare const meta: {
63
71
  type: import("vue").PropType<string>;
64
72
  default: string;
65
73
  };
66
- autofocus: {
67
- type: import("vue").PropType<boolean>;
68
- default: boolean;
69
- };
70
74
  iconColor: {
71
75
  type: import("vue").PropType<string>;
72
76
  default: string;
@@ -75,16 +79,30 @@ declare const meta: {
75
79
  type: import("vue").PropType<"prepend" | "append">;
76
80
  default: string;
77
81
  };
82
+ prependIcon: {
83
+ type: import("vue").PropType<string>;
84
+ default: string;
85
+ };
86
+ appendIcon: {
87
+ type: import("vue").PropType<string>;
88
+ default: string;
89
+ };
90
+ loading: {
91
+ type: import("vue").PropType<boolean>;
92
+ default: boolean;
93
+ };
78
94
  }>>, {
79
- variant: "primary" | "secondary" | "tertiary" | "destructive" | "fab";
95
+ variant: "primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab";
80
96
  type: "button" | "submit" | "reset";
81
97
  label: string;
82
98
  disabled: boolean;
83
99
  size: "md" | "lg";
84
100
  icon: string;
85
- autofocus: boolean;
86
101
  iconColor: string;
87
102
  iconPosition: "prepend" | "append";
103
+ prependIcon: string;
104
+ appendIcon: string;
105
+ loading: boolean;
88
106
  }, {}>;
89
107
  tags: string[];
90
108
  argTypes: {
@@ -96,19 +114,13 @@ declare const meta: {
96
114
  summary: string;
97
115
  };
98
116
  };
99
- description: string;
100
117
  };
101
118
  label: {
102
119
  control: string;
103
- description: string;
104
120
  };
105
121
  size: {
106
122
  control: string;
107
123
  options: string[];
108
- if: {
109
- arg: string;
110
- neq: string;
111
- };
112
124
  table: {
113
125
  defaultValue: {
114
126
  summary: string;
@@ -117,7 +129,6 @@ declare const meta: {
117
129
  summary: string;
118
130
  };
119
131
  };
120
- description: string;
121
132
  };
122
133
  disabled: {
123
134
  control: string;
@@ -126,40 +137,57 @@ declare const meta: {
126
137
  summary: boolean;
127
138
  };
128
139
  };
140
+ };
141
+ type: {
142
+ control: string;
143
+ options: string[];
129
144
  description: string;
145
+ table: {
146
+ defaultValue: {
147
+ summary: string;
148
+ };
149
+ type: {
150
+ summary: string;
151
+ };
152
+ };
130
153
  };
131
- icon: {
154
+ prependIcon: {
132
155
  control: string;
133
156
  table: {
134
157
  defaultValue: {
135
158
  summary: boolean;
136
159
  };
137
160
  };
138
- description: string;
139
161
  };
140
- type: {
162
+ appendIcon: {
141
163
  control: string;
142
- options: string[];
143
- description: string;
144
164
  table: {
145
165
  defaultValue: {
146
- summary: string;
147
- };
148
- type: {
149
- summary: string;
166
+ summary: boolean;
150
167
  };
151
168
  };
152
169
  };
170
+ icon: {
171
+ control: string;
172
+ description: string;
173
+ };
174
+ iconPosition: {
175
+ control: string;
176
+ description: string;
177
+ };
178
+ iconColor: {
179
+ control: string;
180
+ description: string;
181
+ };
153
182
  };
154
183
  args: {
155
184
  variant: "primary";
156
185
  label: string;
157
- icon: string;
158
- iconColor: string;
159
186
  size: "md";
160
187
  disabled: false;
161
- autofocus: true;
162
188
  type: "button";
189
+ prependIcon: string;
190
+ appendIcon: string;
163
191
  };
164
192
  };
165
193
  export default meta;
@@ -168,4 +196,5 @@ export declare const Primary: Story;
168
196
  export declare const Secondary: Story;
169
197
  export declare const Tertiary: Story;
170
198
  export declare const Destructive: Story;
199
+ export declare const Plain: Story;
171
200
  export declare const Fab: Story;
@@ -1,14 +1,46 @@
1
- type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'fab';
1
+ type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'plain' | 'fab';
2
2
  export interface FmButtonProps {
3
+ /** Variant of the button. */
3
4
  variant?: ButtonVariant;
5
+ /** Label of the button. */
4
6
  label?: string;
7
+ /**
8
+ * @deprecated
9
+ * Please use `prependIcon` and `appendIcon` from now on.
10
+ */
5
11
  icon?: string;
12
+ /**
13
+ * Size of the button.
14
+ *
15
+ * `FAB` will be size `lg` always.
16
+ */
6
17
  size?: 'md' | 'lg';
18
+ /** Specify if button is disabled. */
7
19
  disabled?: boolean;
8
- autofocus?: boolean;
20
+ /**
21
+ * @deprecated
22
+ * Design is strict on color, with icon color to be locked in by variant type.
23
+ */
9
24
  iconColor?: string;
25
+ /**
26
+ * The type of the button.
27
+ *
28
+ * Default: `button`
29
+ */
10
30
  type?: 'submit' | 'reset' | 'button';
31
+ /**
32
+ * @deprecated
33
+ * Please use `prependIcon` and `appendIcon` from now on.
34
+ *
35
+ * This option was originally to be used with `icon`.
36
+ */
11
37
  iconPosition?: 'prepend' | 'append';
38
+ /** To add icon at the front. */
39
+ prependIcon?: string;
40
+ /** To add icon at the back. */
41
+ appendIcon?: string;
42
+ /** Loading state */
43
+ loading?: boolean;
12
44
  }
13
45
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmButtonProps>, {
14
46
  variant: string;
@@ -16,20 +48,24 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
16
48
  icon: string;
17
49
  size: string;
18
50
  disabled: boolean;
19
- autofocus: boolean;
20
51
  iconColor: string;
21
52
  type: string;
22
53
  iconPosition: string;
54
+ prependIcon: string;
55
+ appendIcon: string;
56
+ loading: boolean;
23
57
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmButtonProps>, {
24
58
  variant: string;
25
59
  label: string;
26
60
  icon: string;
27
61
  size: string;
28
62
  disabled: boolean;
29
- autofocus: boolean;
30
63
  iconColor: string;
31
64
  type: string;
32
65
  iconPosition: string;
66
+ prependIcon: string;
67
+ appendIcon: string;
68
+ loading: boolean;
33
69
  }>>>, {
34
70
  variant: ButtonVariant;
35
71
  type: "button" | "submit" | "reset";
@@ -37,9 +73,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
37
73
  disabled: boolean;
38
74
  size: "md" | "lg";
39
75
  icon: string;
40
- autofocus: boolean;
41
76
  iconColor: string;
42
77
  iconPosition: "prepend" | "append";
78
+ prependIcon: string;
79
+ appendIcon: string;
80
+ loading: boolean;
43
81
  }, {}>;
44
82
  export default _default;
45
83
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -25,11 +25,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
25
25
  focused: boolean;
26
26
  }>>>, {
27
27
  disabled: boolean;
28
+ prependIcon: string;
29
+ appendIcon: string;
28
30
  invalid: boolean;
29
31
  focused: boolean;
30
32
  tag: string;
31
- prependIcon: string;
32
- appendIcon: string;
33
33
  showValidBorder: boolean;
34
34
  }, {}>, {
35
35
  prepend?(_: {}): any;
@@ -65,6 +65,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
65
65
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
66
66
  }, {
67
67
  label: string;
68
+ prependIcon: string;
69
+ appendIcon: string;
68
70
  min: number;
69
71
  max: number;
70
72
  rules: import("../../../composables/useValidation").ValidationRule[];
@@ -74,8 +76,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
74
76
  labelInfo: string;
75
77
  placeholder: string;
76
78
  step: number;
77
- prependIcon: string;
78
- appendIcon: string;
79
79
  showValidBorder: boolean;
80
80
  inputmode: "numeric" | "decimal";
81
81
  useGrouping: boolean;
@@ -63,6 +63,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
63
63
  }, {
64
64
  label: string;
65
65
  disabled: boolean;
66
+ prependIcon: string;
67
+ appendIcon: string;
66
68
  rules: import("../../../composables/useValidation").ValidationRule[];
67
69
  helperText: string;
68
70
  helperState: "success" | "warning" | "none" | "error";
@@ -71,8 +73,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
71
73
  maxLength: number;
72
74
  minLength: number;
73
75
  placeholder: string;
74
- prependIcon: string;
75
- appendIcon: string;
76
76
  showValidBorder: boolean;
77
77
  inputmode: "numeric" | "text" | "search" | "none" | "email" | "tel" | "url" | "decimal";
78
78
  readonly: boolean;
@@ -0,0 +1,32 @@
1
+ export interface FmProgressProps {
2
+ size?: 'md' | 'lg' | 'xl';
3
+ color?: string;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmProgressProps>, {
6
+ size: string;
7
+ color: string;
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmProgressProps>, {
9
+ size: string;
10
+ color: string;
11
+ }>>>, {
12
+ color: string;
13
+ size: "md" | "lg" | "xl";
14
+ }, {}>;
15
+ export default _default;
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToRuntimeProps<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};