@vcita/design-system 1.3.2 → 1.3.4

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 (56) hide show
  1. package/config/locales/ds.en.yml +4 -0
  2. package/dist/@vcita/design-system.esm.js +1882 -1140
  3. package/dist/@vcita/design-system.min.js +2 -2
  4. package/dist/@vcita/design-system.ssr.js +1688 -965
  5. package/init/DesignSystem.js +3 -1
  6. package/init/initI18n.js +24 -16
  7. package/package.json +2 -1
  8. package/src/components/VcActionList/VcActionList.spec.js +16 -7
  9. package/src/components/VcActionList/VcActionList.stories.js +16 -3
  10. package/src/components/VcActionList/VcActionList.vue +35 -11
  11. package/src/components/VcBottomActions/VcBottomActions.vue +2 -1
  12. package/src/components/VcBottomSheet/VcBottomSheet.stories.js +6 -13
  13. package/src/components/VcBottomSheet/VcBottomSheet.vue +2 -3
  14. package/src/components/VcButton/VcButton.vue +1 -1
  15. package/src/components/VcCheckbox/VcCheckbox.vue +8 -1
  16. package/src/components/VcColorPicker/VcColorPicker.spec.js +206 -0
  17. package/src/components/VcColorPicker/VcColorPicker.stories.js +107 -0
  18. package/src/components/VcColorPicker/VcColorPicker.vue +270 -0
  19. package/src/components/VcFilterPanel/VcFilterPanel.spec.js +15 -0
  20. package/src/components/VcFilterPanel/VcFilterPanel.stories.js +9 -1
  21. package/src/components/VcFilterPanel/VcFilterPanel.vue +24 -3
  22. package/src/components/VcGalleryItem/VcGalleryItem.stories.js +2 -0
  23. package/src/components/VcGroupedItems/VcGroupedItems.spec.js +148 -0
  24. package/src/components/VcGroupedItems/VcGroupedItems.stories.js +135 -0
  25. package/src/components/VcGroupedItems/VcGroupedItems.vue +155 -0
  26. package/src/components/VcLink/VcLink.spec.js +3 -3
  27. package/src/components/VcLink/VcLink.stories.js +2 -6
  28. package/src/components/VcLink/VcLink.vue +1 -18
  29. package/src/components/VcMenu/VcDropdown.spec.js +120 -0
  30. package/src/components/VcMenu/VcDropdown.stories.js +272 -0
  31. package/src/components/VcMenu/VcDropdown.vue +93 -0
  32. package/src/components/VcMenu/VcMenu.spec.js +61 -10
  33. package/src/components/VcMenu/VcMenu.stories.js +38 -33
  34. package/src/components/VcMenu/VcMenu.vue +19 -3
  35. package/src/components/VcPopover/VcPopover.stories.js +2 -2
  36. package/src/components/VcRadioGroup/VcRadioGroup.spec.js +28 -0
  37. package/src/components/VcRadioGroup/VcRadioGroup.stories.js +3 -1
  38. package/src/components/VcRadioGroup/VcRadioGroup.vue +6 -1
  39. package/src/components/VcSearchPicker/VcSearchPicker.stories.js +3 -4
  40. package/src/components/VcSelectField/VcSelectField.vue +6 -0
  41. package/src/components/VcSideNav/VcSideNav.spec.js +1 -1
  42. package/src/components/VcSideNav/VcSideNav.vue +21 -104
  43. package/src/components/VcTextField/VcTextField.spec.js +13 -0
  44. package/src/components/VcTextField/VcTextField.stories.js +2 -1
  45. package/src/components/VcTextField/VcTextField.vue +11 -0
  46. package/src/components/VcTooltip/VcTooltip.stories.js +3 -1
  47. package/src/components/VcTooltip/VcTooltip.vue +6 -1
  48. package/src/components/index.js +4 -0
  49. package/src/components/list/VcBaseListItem/VcBaseListItem.stories.js +22 -13
  50. package/src/components/list/VcBaseListItem/VcBaseListItem.vue +4 -1
  51. package/src/components/list/VcList/VcList.stories.js +245 -240
  52. package/src/components/list/VcList/VcList.vue +11 -4
  53. package/src/components/page/layouts/centeredPage/CenteredPageLayout.stories.js +17 -16
  54. package/styles/variables.scss +1 -0
  55. package/styles/vuetify-variables.scss +9 -1
  56. package/CHANGELOG.md +0 -342
@@ -1,7 +1,6 @@
1
1
  <template>
2
- <div :data-qa="dataQa">
3
- <ul v-if="!isEmptyList"
4
- class="vc-list">
2
+ <div :data-qa="dataQa" class="vc-list-container">
3
+ <ul v-if="!isEmptyList" class="vc-list">
5
4
  <VcBaseListItem v-for="item in items"
6
5
  v-bind="item"
7
6
  :key="item.identifier"
@@ -15,7 +14,7 @@
15
14
  </ul>
16
15
  <template v-else>
17
16
  <slot name="emptyList">
18
- <VcEmptyState :title="noItemsTitle" :subtitle="noItemsMsg" size="sm"
17
+ <VcEmptyState :title="noItemsTitle" :subtitle="noItemsMsg" size="sm" class="VcListEmptyState"
19
18
  :data-qa="`${dataQa}-empty`"
20
19
  :image="imagePath"/>
21
20
  </slot>
@@ -73,9 +72,17 @@ export default {
73
72
  </script>
74
73
 
75
74
  <style lang="scss" scoped>
75
+ .vc-list-container {
76
+ width: 100%;
77
+ }
76
78
 
77
79
  .vc-list {
80
+ width: 100%;
78
81
  margin: var(--size-value0);
79
82
  padding: var(--size-value0);
80
83
  }
84
+
85
+ .VcListEmptyState {
86
+ margin: var(--size-value4);
87
+ }
81
88
  </style>
@@ -9,24 +9,24 @@ const Template = (args, {argTypes}) => ({
9
9
  template: `
10
10
  <div>
11
11
  <div :style="{borderBottom: '2px solid black', paddingBottom: '5px', marginBottom: '20px'}">
12
- A simple centered layout, which expands and collapses the content area based on minimum and maximum width,
12
+ A simple centered layout, which expands and collapses the content area based on minimum and maximum width,
13
13
  and keeps the header in sync.
14
14
  <br>To use, go to "Docs" and click "show code".
15
15
  </div>
16
- <VcLayout justify-center :style="{padding: 'var(--size-value5)'}">
17
- <VcLayout column :style="{minWidth: 'var(--centered-layout-min-width)', maxWidth: 'var(--centered-layout-max-width)', flexBasis: 'var(--centered-layout-min-width)'}">
18
- <VcPageHeader :title="title"
19
- :subtitle="subtitle"
20
- :show-back-button="showBackButton"
21
- :breadcrumbs="breadcrumbs"
22
- :button-data="headerButtonData"
23
- @onSaveClicked="onSaveClicked"
24
- @onBackClicked="onBackClicked"/>
25
- <VcLayout align-center justify-center
26
- :style="{ minHeight: '300px', backgroundColor: 'var(--green-lighten-2)'}">
27
- Your content goes here
28
- </VcLayout>
16
+ <VcLayout justify-center align-start :style="{margin: 'var(--size-value5)', height: '100%'}">
17
+ <VcLayout column :style="{minWidth: 'var(--centered-layout-min-width)', maxWidth: 'var(--centered-layout-max-width)', flexBasis: 'var(--centered-layout-min-width)'}">
18
+ <VcPageHeader :title="title"
19
+ :subtitle="subtitle"
20
+ :show-back-button="showBackButton"
21
+ :breadcrumbs="breadcrumbs"
22
+ :button-data="headerButtonData"
23
+ @onSaveClicked="onSaveClicked"
24
+ @onBackClicked="onBackClicked"/>
25
+ <VcLayout align-center justify-center
26
+ :style="{ minHeight: '300px', backgroundColor: 'var(--green-lighten-2)'}">
27
+ Your content goes here
29
28
  </VcLayout>
29
+ </VcLayout>
30
30
  </VcLayout>
31
31
  </div>`,
32
32
  })
@@ -47,7 +47,7 @@ Playground.parameters = {
47
47
  source: {
48
48
  code: `
49
49
  <template>
50
- <VcLayout justify-center class="LayoutContainer">
50
+ <VcLayout justify-center align-start class="LayoutContainer">
51
51
  <VcLayout column class="MainLayout">
52
52
  <VcPageHeader :title="$t([YourPageTitle])"
53
53
  :subtitle="$t([YourPageSubtitle])"
@@ -124,7 +124,8 @@ Playground.parameters = {
124
124
 
125
125
  <style lang="scss" scoped>
126
126
  .LayoutContainer {
127
- padding: var(--size-value5);
127
+ margin: var(--size-value5);
128
+ height: 100%;
128
129
  }
129
130
 
130
131
  .MainLayout {
@@ -28,6 +28,7 @@
28
28
  }
29
29
 
30
30
  --border-radius: 6px;
31
+ --border-radius-circle: 50%;
31
32
  --border-frame: 1px solid #e0e0e0;
32
33
  --border-focused-frame: 1px solid var(--v-secondary-base);
33
34
  --shadow-focused-frame: 0px 0px 0px 3px var(--v-secondary-lighten1);
@@ -33,4 +33,12 @@ $switch-ripple-top: calc(50% - 20px);
33
33
  $snackbar-content-padding: 0;
34
34
 
35
35
  // Select Field
36
- $select-field-height: 52px;
36
+ $select-field-height: 52px;
37
+
38
+ // Color Picker
39
+ $color-picker-swatch-color-width: 24px;
40
+ $color-picker-swatch-color-height: 24px;
41
+ $color-picker-swatch-color-margin: 5px;
42
+ $color-picker-controls-padding: 8px;
43
+ $color-picker-swatch-color-border-radius: 50%;
44
+ $color-picker-border-radius: 4px;
package/CHANGELOG.md DELETED
@@ -1,342 +0,0 @@
1
- # Change log
2
- All notable changes to this project will be documented in this file.
3
-
4
- Format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
-
7
- ### Unreleased changes
8
-
9
- ### v1.3.2(2022-11-06)
10
- - VcGalleryItem - fix ui on small desktop
11
- - VcChip - added 'selected' state
12
-
13
- ### v1.3.1(2022-10-30)
14
- - VcGalleryItem - add 'selected' indication
15
- - VcGalleryItem - add ability to disable
16
- - VcRadio and VcRadioGroup - add ability to disable
17
-
18
- ### v1.3.0(2022-10-25)
19
- - Adding SideNav layout
20
- - Adding centered layout
21
- - Adding VcPageHeader
22
- - Adding VcBreadcrumbs
23
- - Ability to disable VcLink
24
- - modal container can show close button on flavor input
25
- - upsell dialog fix dimension issue
26
-
27
- ### v1.2.3 (2022-10-03)
28
- - VcMiniBanner - added new component
29
- - VcSearchPicker - removed redundant event emission from pointer
30
- - VcGalleryItem - added new component
31
- - VcGalleryList - added new component
32
-
33
- ### v1.2.2 (2022-09-19)
34
- - VcTextField - fix alignment
35
- - VcSideNav
36
- - VcIcon - fix color prop
37
-
38
- ### v1.2.1 (2022-09-08)
39
- - VcDocItem - added fileSize prop, event object added to emit
40
- - SvgIcons - added viewBox attribute on doc_Sheet
41
-
42
- ### v1.2.0 (2022-09-08)
43
- - VcChipList - added new component
44
- - VcChip - added slot
45
-
46
- ### v1.1.10 (2022-09-07)
47
- - VcTabs - fix scrollbar issue
48
-
49
- ### v1.1.9 (2022-09-07)
50
- - Adding VcTabs component
51
-
52
- ### v1.1.8 (2022-09-05)
53
- - VcInputModal - added closeOnEsc prop, passed to VcModalContainer
54
- - VcModalContainer - added closeOnEsc prop, passed to VcModalWrapper
55
- - VcModalWrapper - added closeOnEsc prop, used as condition for esc keydown event
56
- - VcSearchPicker - use secondary brand hues
57
- - VcSearchPicker - keep menu open if focusing the text input
58
-
59
- ### v1.1.7 (2022-09-04)
60
- - VcDocItem - added svg as an image type
61
- - VcSearchPicker - caret and pointer color
62
- - VcSearchPicker - add menu custom class name prop
63
- - VcSearchPicker - use brand colors
64
-
65
- ### v1.1.6 (2022-08-28)
66
- - VcDocItem - added 'xlsx' as a spreadsheet format
67
- - VcDocItem - added max width
68
- - VcSearchPicker - add background color to input
69
-
70
- ### v1.1.5 (2022-08-24)
71
- - VcDraggableList - remove hover from mobile
72
-
73
- ### v1.1.4 (2022-08-21)
74
- - Adding composition and slots examples
75
- - VcModalFooter - added disabled option to VcButton
76
-
77
- ### v1.1.3 (2022-08-21)
78
- - VcDraggableList - add story with slot and fix icon size
79
-
80
- ### v1.1.2 (2022-08-16)
81
- - VcModalHeader - add right button icon
82
- - VcList
83
- - VcBaseListItem
84
- - VcMobilePicker - new mobile picker pattern based on VcList
85
- - VcTextField - add appendIcon and readonly properties + CSS
86
- - VcInputModal - add showFooter + CSS
87
- - VcModalContainer - remove the auto height on the VcModalContainerContent class
88
- - VcDraggableList - added component
89
- - VcTextField - fix label alignment
90
- - VcWizard - add dynamic step names and description
91
- - VcTextField - add google address autocomplete
92
- - VcAvatar - fix image path prop
93
-
94
- ### 1.1.1 (2022-08-11)
95
- - Update translations
96
-
97
- ### 1.1.0 (2022-08-08)
98
- - VcDocItem - implemented uploaded and corrupted states
99
- - VcStepperContent - add link color under the description
100
- - VcWizard - BREAKING CHANGE: v-model current-step fixes
101
- - VcSearchPicker - added component
102
-
103
- ### 1.0.7 (2022-07-26)
104
- - VcEmptyState - change color for button ghost
105
-
106
- ### 1.0.6 BREAKING CHANGES (2022-07-24)
107
- - Split variables.scss into vuetify-variables.scss and variables.scss
108
- - Consuming project changes required
109
-
110
- ### 0.6.27 (2022-07-17)
111
- - VcButton - add ghost mode. fix storybook props inherit
112
- - VcEmptyState - add ability to choose ghost mode btn
113
- - VcDocItem - added document formats
114
- - VcAutoComplete, VcTextArea, VcTextField - remove branding color when not needed
115
-
116
- ### 0.6.26 (2022-07-03)
117
- - VcDocItem - component added to ds
118
- - VcTimeSince
119
- - VcSwitch - add option to show label before switch
120
- - Translations with parameters
121
-
122
- ### 0.6.25 (2022-06-23)
123
- - VcInputPopover - add click outside will not close the popover support
124
-
125
- ### 0.6.24 (2022-06-14)
126
- - VcInputBottomSheet - add switch support
127
-
128
- ### 0.6.23 (2022-06-13)
129
- - VcWizard - css fix
130
-
131
- ### 0.6.22 (2022-05-31)
132
- - VcRadioGroup - fix tooltip slots
133
-
134
- ### 0.6.21 (2022-05-16)
135
- - VcRadioGroup - create
136
- - VcRadio - create
137
- - VcTooltip - add slots and fallback icon as an activator
138
-
139
- ### 0.6.20 (2022-05-16)
140
- - VcStepperContent fix height
141
- - VcInputPopover - add toggle to header
142
-
143
- ### 0.6.19 (2022-05-10)
144
- - VcSegmentedControl added
145
-
146
- ### 0.6.18 (2022-05-02)
147
- - VcListbox - add validator
148
-
149
- ### 0.6.17 (2022-04-27)
150
- - VcListbox - improve CSS
151
-
152
- ### 0.6.16 (2022-04-27)
153
- - VcListbox - add a search bar option
154
-
155
- ### 0.6.15 (2022-04-25)
156
- - VcTooltip - opacity 100%
157
- - VcDropzone - fix active styles
158
- - VcSelectField - add error-messages, add tooltip nudge
159
- - VcTextField - add tooltip nudge
160
- - VcLink - add click action
161
- - VcSwitch - fix clickable icons
162
- - VcSearchBar
163
-
164
- ### 0.6.14 (2022-03-21)
165
- - VcDropzone - component added
166
- - VcTextField - add prefix and error-messages
167
- - VcConfirmModal - fix for rtl button position
168
-
169
- ### 0.6.13 (2022-03-14)
170
- - Updated localization files
171
-
172
- ### 0.6.12 (2022-03-14)
173
- - VcSelectField - fix border colors for some variations
174
-
175
- ### 0.6.11 (2022-03-13)
176
- - VcListbox - small fix for distinguishing data qa on the list
177
-
178
- ### 0.6.10 (2022-03-06)
179
- - VcModalContainer - fix for overflow-x scroll
180
-
181
- ### 0.6.9 (2022-03-02)
182
- - VcButton - fix for button flavor
183
-
184
- ### 0.6.8 (2022-03-02)
185
- - VcTextArea - add fixed-height state
186
- - VcPopover - fix corners radius
187
- - VcUpsellBlock - background overflow bug fix
188
- - VcLink - add target as prop
189
- - VcModalContainer - add xl size
190
-
191
- ### 0.6.7 (2022-03-01)
192
- - VcButton - fix for color flavor
193
-
194
- ### 0.6.6 (2022-03-01)
195
- - VcAvatar - support the 0 color id
196
- - VcBanner - fix background to be branded
197
-
198
- ### 0.6.4 (2022-02-28)
199
- - VcButton - add flavor prop
200
- - VcBanner - Change component design
201
-
202
- ### 0.6.3 (2022-02-23)
203
- - VcListbox - performance improve
204
-
205
- ### 0.6.2 (2022-02-22)
206
- - VcListbox - minor fix
207
-
208
- ### 0.6.1 (2022-02-21)
209
- - VcTextField - add tooltip, placeholder
210
- - VcUpsellBlock - css fixes
211
-
212
- ### 0.6.0 (2022-02-20)
213
- - VcModalHeader - add no close button new style
214
- - VcPopover - add white background color
215
- - VcActionList - fix icon size
216
- - VcListbox - fix clicking not responding on the edges of the labels
217
- - VcListbox - use v-list-item-group to get the full "checked" array
218
- - VcListbox - tooltip option for a disabled item
219
- - VcUpsellBlock
220
-
221
- ### 0.5.0 (2022-02-15)
222
- - VcButton - add outlined and prepend default icon.
223
- - VcBottomSheet
224
- - VcInputBottomSheet
225
- - VcModalHeader - add close button option
226
- - VcLink - add cursor pointer
227
- - VcModalHeader - add description
228
- - VcPopover
229
- - VcInputPopover
230
- - VcBadge - update parameters, add test, enrich the story book
231
- - VcWizard fix content height
232
- - VcExpansionCard fix color
233
-
234
-
235
- ### 0.4.0 (2022-02-08)
236
- - Added VcBadge component
237
- - fix icon name in VcActionList
238
- - add parameters to VcTextArea
239
- - add button the ability to be link
240
- - VcLink - add secondary
241
- - VcLink - add prepend icon
242
- - VcLink - change text context to label
243
- - SvgIcons - rename chevron_left to chevron_right
244
- - SvgIcons - add trash, copy, chevron_left
245
-
246
- ### 0.3.17 (2022-02-06)
247
- - VcLink - add secondary
248
- - VcLink - add prepend icon
249
- - VcLink - change text context to label
250
- - SvgIcons - rename chevron_left to chevron_right
251
- - SvgIcons - add trash, copy, chevron_left
252
-
253
- ### 0.3.16 (2022-01-31)
254
- - Center image in VcImage
255
- - bug fix in VcBanner
256
- - Bug fix in VcImage
257
- - VcChip
258
- - fix expansion card content slot to have padding
259
- - text-area auto grow
260
-
261
- ### 0.3.15 (2022-01-24)
262
- - rename wizard event to move forward
263
- - move breakpoint from mixin to wizard component
264
- - modify expansion card content slot to have padding
265
-
266
- ### 0.3.14 (2022-01-24)
267
- - add the ability to use image path or object in all relevant places
268
- - add VcImage to facilitate use of different types of images and SVGs
269
- - add title to wizard stepsBar
270
-
271
- ### 0.3.12 (2022-01-18)
272
- - add animation to shadow for hover on card
273
- - fix border radius on action list
274
- - fix v-model value in VcListEntity and VcExpansionCard
275
- - added boolean useOffset prop on VcInputModal, VcNoticeModal, VcConfirmProminentModal
276
- - VcChecklistItem
277
- - VcListbox
278
- - Add option to disable the tooltip on VcTooltip
279
- - Add option to show the avatar on black & white
280
- - Add option to remove the avatar border
281
-
282
- ### 0.2.10 (2022-01-13)
283
- - small fixes on VcActions
284
- - add icon option for switch component
285
- - VcExpansionCard
286
- - VcListEntity
287
-
288
- ### 0.2.9 (2022-01-12)
289
- - update design on list item
290
- - add loading option for confirm modal
291
-
292
- ### 0.2.4 (2022-01-05)
293
- - adding svg images to vue object
294
- - move VcSvg to global components
295
-
296
- ### 0.2.3 (2022-01-03)
297
- - bug fix related to $ds
298
-
299
- ### 0.2.2 (2022-01-03)
300
- - VcStepsBar
301
- - VcMobileWizardProgress
302
- - VcProgressCircular
303
- - Separate init of i18n for easier unit testing in consuming project
304
-
305
- ### 0.2.1 (2021-12-29)
306
- - adding mastercard and visa to icon
307
-
308
- ### 0.2.0 (2021-12-29)
309
- - Adding VcEmptyState
310
- - Adding VcLink
311
- - Adding VcFocusArea
312
- - Migrate the VcListItem component from FG
313
- - Migrate the VcGroupHeader component from FG
314
- - Adding VcEmptyState
315
- - Adding VcLink
316
- - update for VcButton - added pill (rounded) prop
317
- - Migrate VcFilterPanel component from FG
318
- - Migrate VcInfiniteScroll component from FG
319
- - Add translation utility
320
- - update VcToast
321
-
322
- ### 0.1.5 (2021-12-07)
323
- - update for VcAlert - added inline state
324
- - update for VcCard - update all design and add test and story
325
- - simplify the process of adding svg icons
326
- - Migrate the VcCheckbox component from FG
327
- - add disabled css for VcButton
328
-
329
- ## 0.1.4 (2021-11-28)
330
- - VcConfirmModal - added support for loader in modal buttons
331
- - VcConfirmModal, VcModalContainer, VcModalWrapper - added support to add or remove the offset class
332
-
333
- ## 0.1.2 (2021-11-21)
334
- ### Added components
335
- - VcActionsList
336
- - VcBottomActions
337
- - VcActions - A wrapper for VcActionsList and VcBottomActions that chooses which one to display, depending if it is used in desktop or mobile
338
- - VcTooltip
339
- - VcIconWithTooltip
340
-
341
- ### Added utilities
342
- - util/colorUtil.js - utility functions commonly used for setting the theme