@weni/unnnic-system 3.9.1-alpha.1 → 3.9.1-alpha.3

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 (83) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  3. package/dist/components/DateFilter/DateFilter.vue.d.ts +3 -82
  4. package/dist/components/Input/BaseInput.vue.d.ts +0 -22
  5. package/dist/components/Input/BaseInput.vue.d.ts.map +1 -1
  6. package/dist/components/Input/Input.vue.d.ts +3 -82
  7. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  8. package/dist/components/Input/TextInput.vue.d.ts +2 -53
  9. package/dist/components/Input/TextInput.vue.d.ts.map +1 -1
  10. package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +4 -83
  11. package/dist/components/InputNext/InputNext.vue.d.ts +1 -1
  12. package/dist/components/ModalDialog/ModalDialog.vue.d.ts +29 -203
  13. package/dist/components/ModalDialog/ModalDialog.vue.d.ts.map +1 -1
  14. package/dist/components/ModalNext/ModalNext.vue.d.ts +3 -82
  15. package/dist/components/SelectSmart/SelectSmart.vue.d.ts +2 -53
  16. package/dist/components/SelectTime/index.vue.d.ts +2 -53
  17. package/dist/components/index.d.ts +116 -1568
  18. package/dist/components/index.d.ts.map +1 -1
  19. package/dist/{es-de156c12.mjs → es-4ab705d8.mjs} +1 -1
  20. package/dist/{index-21cbba5d.mjs → index-fca1e425.mjs} +10495 -11246
  21. package/dist/locales/en.json.d.ts +1 -2
  22. package/dist/locales/es.json.d.ts +1 -2
  23. package/dist/locales/pt_br.json.d.ts +1 -2
  24. package/dist/{pt-br-5fa49a3e.mjs → pt-br-b286b97c.mjs} +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/unnnic.mjs +180 -194
  27. package/dist/unnnic.umd.js +35 -39
  28. package/package.json +1 -1
  29. package/src/assets/scss/tailwind.scss +0 -8
  30. package/src/components/Alert/__tests__/__snapshots__/Version1dot1.spec.js.snap +1 -1
  31. package/src/components/Button/Button.vue +0 -1
  32. package/src/components/Input/BaseInput.vue +2 -21
  33. package/src/components/Input/Input.scss +3 -3
  34. package/src/components/Input/Input.vue +1 -19
  35. package/src/components/Input/TextInput.vue +21 -62
  36. package/src/components/ModalDialog/ModalDialog.vue +148 -62
  37. package/src/components/ModalDialog/__tests__/ModalDialog.spec.js +221 -11
  38. package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +22 -1
  39. package/src/components/Radio/__test__/__snapshots__/Radio.spec.js.snap +1 -0
  40. package/src/components/index.ts +8 -36
  41. package/src/locales/en.json +1 -2
  42. package/src/locales/es.json +1 -2
  43. package/src/locales/pt_br.json +1 -2
  44. package/src/stories/ModalDialog.mdx +0 -3
  45. package/src/stories/ModalDialog.stories.js +1 -1
  46. package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -23
  47. package/dist/components/ui/dialog/Dialog.vue.d.ts.map +0 -1
  48. package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -19
  49. package/dist/components/ui/dialog/DialogClose.vue.d.ts.map +0 -1
  50. package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -43
  51. package/dist/components/ui/dialog/DialogContent.vue.d.ts.map +0 -1
  52. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -25
  53. package/dist/components/ui/dialog/DialogFooter.vue.d.ts.map +0 -1
  54. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -29
  55. package/dist/components/ui/dialog/DialogHeader.vue.d.ts.map +0 -1
  56. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -23
  57. package/dist/components/ui/dialog/DialogTitle.vue.d.ts.map +0 -1
  58. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -19
  59. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts.map +0 -1
  60. package/dist/components/ui/dialog/index.d.ts +0 -8
  61. package/dist/components/ui/dialog/index.d.ts.map +0 -1
  62. package/src/components/Alert/SIMPLE_MIGRATION_GUIDE.md +0 -152
  63. package/src/components/Popover/__tests__/Popover.spec.js +0 -147
  64. package/src/components/Popover/__tests__/__snapshots__/Popover.spec.js.snap +0 -8
  65. package/src/components/Popover/index.vue +0 -146
  66. package/src/components/Select/SelectOption.vue +0 -65
  67. package/src/components/Select/__tests__/Select.spec.js +0 -412
  68. package/src/components/Select/__tests__/SelectItem.spec.js +0 -330
  69. package/src/components/Select/__tests__/SelectOption.spec.js +0 -174
  70. package/src/components/Select/__tests__/__snapshots__/Select.spec.js.snap +0 -97
  71. package/src/components/Select/__tests__/__snapshots__/SelectItem.spec.js.snap +0 -15
  72. package/src/components/Select/__tests__/__snapshots__/SelectOption.spec.js.snap +0 -25
  73. package/src/components/Select/index.vue +0 -245
  74. package/src/components/ui/dialog/Dialog.vue +0 -15
  75. package/src/components/ui/dialog/DialogClose.vue +0 -25
  76. package/src/components/ui/dialog/DialogContent.vue +0 -133
  77. package/src/components/ui/dialog/DialogFooter.vue +0 -46
  78. package/src/components/ui/dialog/DialogHeader.vue +0 -79
  79. package/src/components/ui/dialog/DialogTitle.vue +0 -34
  80. package/src/components/ui/dialog/DialogTrigger.vue +0 -12
  81. package/src/components/ui/dialog/index.ts +0 -7
  82. package/src/stories/Dialog.stories.js +0 -832
  83. package/src/stories/Select.stories.js +0 -158
@@ -1,158 +0,0 @@
1
- import UnnnicSelect from '../components/Select/index.vue';
2
-
3
- const options = [
4
- { label: 'Option 1', value: 'option1', altValue: 'alt_value_option1' },
5
- { label: 'Option 2', value: 'option2', altValue: 'alt_value_option2' },
6
- { label: 'Option 3', value: 'option3', altValue: 'alt_value_option3' },
7
- { label: 'Option 4', value: 'option4', altValue: 'alt_value_option4' },
8
- { label: 'Option 5', value: 'option5', altValue: 'alt_value_option5' },
9
- { label: 'Option 6', value: 'option6', altValue: 'alt_value_option6' },
10
- { label: 'Option 7', value: 'option7', altValue: 'alt_value_option7' },
11
- { label: 'Option 8', value: 'option8', altValue: 'alt_value_option8' },
12
- { label: 'Option 9', value: 'option9', altValue: 'alt_value_option9' },
13
- { label: 'Option 10', value: 'option10', disabled: true },
14
- ];
15
-
16
- export default {
17
- title: 'Form/Select',
18
- component: UnnnicSelect,
19
- tags: ['autodocs'],
20
- parameters: {
21
- docs: {
22
- description: {
23
- component:
24
- 'Select is designed to solve common problems related to option selection.',
25
- },
26
- },
27
- },
28
- argTypes: {
29
- options: {
30
- description:
31
- 'List of items to be displayed in the options. If an item has a `disabled` key set to `true`, that item will be disabled. By default, the component looks for the `label` and `value` keys to display and update the model, but these are not required if you wish to customize them using the `itemLabel` and `itemValue` props, respectively.',
32
- },
33
- placeholder: {
34
- description: 'Text to be displayed in the placeholder.',
35
- },
36
- label: {
37
- description: 'Text to be displayed in the label.',
38
- },
39
- modelValue: {
40
- description:
41
- 'Model variable. Its type will always match the return type of the key specified by `itemValue`, or the entire options object when `returnObject` prop is set to `true`.',
42
- },
43
- returnObject: {
44
- description:
45
- 'Prop to indicate that the full option object should be returned in the v-model.',
46
- },
47
- itemLabel: {
48
- description:
49
- 'Field of the option item that should be used to render the option label.',
50
- },
51
- itemValue: {
52
- description:
53
- 'Field of the option item that should be used to return value to v-model.',
54
- },
55
- type: {
56
- description: 'Select state type',
57
- },
58
- errors: {
59
- description:
60
- "Error message or messages. When it's an array, the messages will be separated by commas.",
61
- },
62
- message: {
63
- description: 'Help or hint message.',
64
- },
65
- size: {
66
- description: 'Select size',
67
- },
68
- optionsLines: {
69
- description:
70
- 'Number of options to display at most; if exceeded, scrolling will be enabled.',
71
- },
72
- enableSearch: {
73
- description:
74
- 'If true, enables a search field displayed inside the options popover. The `update:search` event is emitted on each input.',
75
- },
76
- search: {
77
- description: 'Search value.',
78
- },
79
- locale: {
80
- description: 'Locale for i18n translations.',
81
- },
82
- disabled: {
83
- description: 'Disable the select.',
84
- },
85
- },
86
- render: (args) => ({
87
- components: { UnnnicSelect },
88
- setup() {
89
- const handleSearch = (value) => {
90
- args.search = value;
91
- };
92
- return { args, handleSearch };
93
- },
94
- data() {
95
- return {
96
- exampleValue: null,
97
- };
98
- },
99
- template: `
100
- <p>modelValue: {{ exampleValue }}</p>
101
- <unnnic-select v-model="exampleValue" v-bind="args" @update:search="handleSearch" />
102
- `,
103
- }),
104
- };
105
-
106
- export const Default = {
107
- args: {
108
- placeholder: 'Placeholder',
109
- label: 'Label',
110
- options,
111
- },
112
- };
113
-
114
- export const ReturnObject = {
115
- args: {
116
- returnObject: true,
117
- placeholder: 'Placeholder',
118
- label: 'Label',
119
- options,
120
- },
121
- };
122
-
123
- export const AlternativeValueKey = {
124
- args: {
125
- itemValue: 'altValue',
126
- placeholder: 'Placeholder',
127
- label: 'Label',
128
- options,
129
- },
130
- };
131
-
132
- export const AlternativeValueLabel = {
133
- args: {
134
- itemLabel: 'altValue',
135
- placeholder: 'Placeholder',
136
- label: 'Label',
137
- options,
138
- },
139
- };
140
-
141
- export const Disabled = {
142
- args: {
143
- placeholder: 'Placeholder',
144
- label: 'Label',
145
- options,
146
- disabled: true,
147
- },
148
- };
149
-
150
- export const WithSearch = {
151
- args: {
152
- placeholder: 'Placeholder',
153
- label: 'Label',
154
- options,
155
- enableSearch: true,
156
- search: '',
157
- },
158
- };