@weni/unnnic-system 3.1.2-alpha.2 → 3.1.2

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 (35) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -2
  3. package/dist/components/DropArea/DropArea.vue.d.ts +0 -2
  4. package/dist/components/DropArea/DropArea.vue.d.ts.map +1 -1
  5. package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +3 -3
  6. package/dist/components/ModalDialog/ModalDialog.vue.d.ts +1 -1
  7. package/dist/components/ModalDialog/ModalDialog.vue.d.ts.map +1 -1
  8. package/dist/components/ModalUpload/ModalUpload.vue.d.ts +0 -6
  9. package/dist/components/UploadArea/UploadArea.vue.d.ts +0 -6
  10. package/dist/components/index.d.ts +40344 -0
  11. package/dist/components/index.d.ts.map +1 -0
  12. package/dist/{es-447c22a1.mjs → es-b95265ef.mjs} +1 -1
  13. package/dist/{index-7ff7db46.mjs → index-d6c4fffb.mjs} +9108 -9268
  14. package/dist/{pt-br-b9850dfb.mjs → pt-br-80b6b07a.mjs} +1 -1
  15. package/dist/style.css +1 -1
  16. package/dist/unnnic.mjs +24 -26
  17. package/dist/unnnic.umd.js +43 -44
  18. package/package.json +2 -2
  19. package/src/assets/scss/colors.scss +58 -26
  20. package/src/components/DropArea/DropArea.vue +2 -26
  21. package/src/components/ModalDialog/ModalDialog.vue +29 -27
  22. package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +1 -1
  23. package/src/components/index.ts +2 -8
  24. package/dist/components/TemplatePreview/TemplatePreview.vue.d.ts +0 -9
  25. package/dist/components/TemplatePreview/TemplatePreview.vue.d.ts.map +0 -1
  26. package/dist/components/TemplatePreview/TemplatePreviewModal.vue.d.ts +0 -15
  27. package/dist/components/TemplatePreview/TemplatePreviewModal.vue.d.ts.map +0 -1
  28. package/src/assets/img/previews/doc-preview.png +0 -0
  29. package/src/assets/img/previews/image-preview.png +0 -0
  30. package/src/assets/img/previews/video-preview.png +0 -0
  31. package/src/components/TemplatePreview/TemplatePreview.vue +0 -249
  32. package/src/components/TemplatePreview/TemplatePreviewModal.vue +0 -51
  33. package/src/components/TemplatePreview/types.d.ts +0 -16
  34. package/src/stories/TemplatePreview.stories.js +0 -94
  35. package/src/stories/TemplatePreviewModal.stories.js +0 -110
package/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+
9
+
10
+ ## 3.1.2 (2025-01-16)
11
+
12
+ ### Added
13
+
14
+ - **Semantic Color Tokens**: Added comprehensive semantic color token system with dedicated `$unnnic-color-` variables:
15
+ - **Background Semantic Tokens**: `$unnnic-color-bg-base`, `$unnnic-color-bg-soft`, `$unnnic-color-bg-muted`, `$unnnic-color-bg-active`, `$unnnic-color-bg-info`, `$unnnic-color-bg-success`, `$unnnic-color-bg-warning`, `$unnnic-color-bg-critical`
16
+ - **Text Semantic Tokens**: `$unnnic-color-fg-base`, `$unnnic-color-fg-muted`, `$unnnic-color-fg-emphasized`, `$unnnic-color-fg-inverted`, `$unnnic-color-fg-active`, `$unnnic-color-fg-info`, `$unnnic-color-fg-success`, `$unnnic-color-fg-warning`, `$unnnic-color-fg-critical`
17
+ - **Border Semantic Tokens**: `$unnnic-color-border-base`, `$unnnic-color-border-soft`, `$unnnic-color-border-muted`, `$unnnic-color-border-emphasized`, `$unnnic-color-border-active`, `$unnnic-color-border-info`, `$unnnic-color-border-success`, `$unnnic-color-border-warning`, `$unnnic-color-border-critical`
18
+
19
+ ### Changed
20
+
21
+ - **Color System Refactoring**: Updated `$scheme-colors` map to reference the new semantic tokens instead of direct color values for improved maintainability and consistency
22
+
8
23
  ## 3.1.1 (2025-08-29)
9
24
 
10
25
  ### Added
@@ -75,8 +75,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
75
75
  }, {
76
76
  openMonths(): string[];
77
77
  value(): {
78
- startDate: string;
79
- endDate: string;
78
+ startDate: any;
79
+ endDate: any;
80
80
  };
81
81
  i18nLocale(): string;
82
82
  monthsLocale(): any;
@@ -5,7 +5,6 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
5
5
  });
6
6
  declare const __VLS_component: import('vue').DefineComponent<{}, {
7
7
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
8
- disabled: boolean;
9
8
  subtitle: string;
10
9
  acceptMultiple: boolean;
11
10
  supportedFormats: string;
@@ -14,7 +13,6 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
14
13
  maximumUploads: number;
15
14
  maxFileSize?: number | undefined;
16
15
  $props: {
17
- readonly disabled?: boolean | undefined;
18
16
  readonly subtitle?: string | undefined;
19
17
  readonly acceptMultiple?: boolean | undefined;
20
18
  readonly supportedFormats?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"DropArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropArea/DropArea.vue"],"names":[],"mappings":"AAgEA;wBAkvBqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAbjC;;;;;;;;;;;;;;;;;;;;;;;gBAUG"}
1
+ {"version":3,"file":"DropArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropArea/DropArea.vue"],"names":[],"mappings":"AAgEA;wBAisBqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAbjC;;;;;;;;;;;;;;;;;;;;;gBAUG"}
@@ -72,7 +72,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
72
72
  showCalendarFilter: boolean;
73
73
  overwrittenValue: string;
74
74
  }, {
75
- filterText(): string;
75
+ filterText(): any;
76
76
  initialStartDate(): string | null;
77
77
  initialEndDate(): string | null;
78
78
  }, {
@@ -665,8 +665,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
665
665
  }, {
666
666
  openMonths(): string[];
667
667
  value(): {
668
- startDate: string;
669
- endDate: string;
668
+ startDate: any;
669
+ endDate: any;
670
670
  };
671
671
  i18nLocale(): string;
672
672
  monthsLocale(): any;
@@ -52,7 +52,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
52
52
  }>, {}, {
53
53
  defaultTranslations: {
54
54
  cancel: {
55
- "pt-br": string;
55
+ 'pt-br': string;
56
56
  en: string;
57
57
  es: string;
58
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModalDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ModalDialog/ModalDialog.vue"],"names":[],"mappings":"AAgGA;"}
1
+ {"version":3,"file":"ModalDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ModalDialog/ModalDialog.vue"],"names":[],"mappings":"AAkGA;"}
@@ -237,7 +237,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
237
237
  UnnnicDropArea: {
238
238
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
239
239
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
240
- disabled: boolean;
241
240
  subtitle: string;
242
241
  acceptMultiple: boolean;
243
242
  supportedFormats: string;
@@ -246,7 +245,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
246
245
  maximumUploads: number;
247
246
  maxFileSize?: number | undefined;
248
247
  $props: {
249
- readonly disabled?: boolean | undefined;
250
248
  readonly subtitle?: string | undefined;
251
249
  readonly acceptMultiple?: boolean | undefined;
252
250
  readonly supportedFormats?: string | undefined;
@@ -267,7 +265,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
267
265
  Defaults: {};
268
266
  }, Readonly<{}> & Readonly<{}>, {
269
267
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
270
- disabled: boolean;
271
268
  subtitle: string;
272
269
  acceptMultiple: boolean;
273
270
  supportedFormats: string;
@@ -276,7 +273,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
276
273
  maximumUploads: number;
277
274
  maxFileSize?: number | undefined;
278
275
  $props: {
279
- readonly disabled?: boolean | undefined;
280
276
  readonly subtitle?: string | undefined;
281
277
  readonly acceptMultiple?: boolean | undefined;
282
278
  readonly supportedFormats?: string | undefined;
@@ -291,7 +287,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
291
287
  __isSuspense?: never;
292
288
  } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
293
289
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
294
- disabled: boolean;
295
290
  subtitle: string;
296
291
  acceptMultiple: boolean;
297
292
  supportedFormats: string;
@@ -300,7 +295,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
300
295
  maximumUploads: number;
301
296
  maxFileSize?: number | undefined;
302
297
  $props: {
303
- readonly disabled?: boolean | undefined;
304
298
  readonly subtitle?: string | undefined;
305
299
  readonly acceptMultiple?: boolean | undefined;
306
300
  readonly supportedFormats?: string | undefined;
@@ -114,7 +114,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
114
114
  UnnnicDropArea: {
115
115
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
116
116
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
117
- disabled: boolean;
118
117
  subtitle: string;
119
118
  acceptMultiple: boolean;
120
119
  supportedFormats: string;
@@ -123,7 +122,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
123
122
  maximumUploads: number;
124
123
  maxFileSize?: number | undefined;
125
124
  $props: {
126
- readonly disabled?: boolean | undefined;
127
125
  readonly subtitle?: string | undefined;
128
126
  readonly acceptMultiple?: boolean | undefined;
129
127
  readonly supportedFormats?: string | undefined;
@@ -144,7 +142,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
144
142
  Defaults: {};
145
143
  }, Readonly<{}> & Readonly<{}>, {
146
144
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
147
- disabled: boolean;
148
145
  subtitle: string;
149
146
  acceptMultiple: boolean;
150
147
  supportedFormats: string;
@@ -153,7 +150,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
153
150
  maximumUploads: number;
154
151
  maxFileSize?: number | undefined;
155
152
  $props: {
156
- readonly disabled?: boolean | undefined;
157
153
  readonly subtitle?: string | undefined;
158
154
  readonly acceptMultiple?: boolean | undefined;
159
155
  readonly supportedFormats?: string | undefined;
@@ -168,7 +164,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
168
164
  __isSuspense?: never;
169
165
  } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
170
166
  $emit: (event: "update:currentFiles" | "fileChange" | "unsupportedFormat" | "exceededTheMaximumFileSizeLimit", ...args: any[]) => void;
171
- disabled: boolean;
172
167
  subtitle: string;
173
168
  acceptMultiple: boolean;
174
169
  supportedFormats: string;
@@ -177,7 +172,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
177
172
  maximumUploads: number;
178
173
  maxFileSize?: number | undefined;
179
174
  $props: {
180
- readonly disabled?: boolean | undefined;
181
175
  readonly subtitle?: string | undefined;
182
176
  readonly acceptMultiple?: boolean | undefined;
183
177
  readonly supportedFormats?: string | undefined;