@policystudio/policy-studio-ui-vue 1.0.30 → 1.0.33

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 (78) hide show
  1. package/.eslintrc.js +36 -35
  2. package/.storybook/preview.js +7 -1
  3. package/README.md +6 -2
  4. package/babel.config.js +1 -1
  5. package/dist/css/psui_styles.css +483 -143
  6. package/package.json +16 -5
  7. package/postcss.config.js +1 -1
  8. package/src/assets/images/multifamily-units.svg +10 -0
  9. package/src/assets/scss/base.scss +2 -0
  10. package/src/assets/scss/components/PsAccordion.scss +28 -11
  11. package/src/assets/scss/components/PsButton.scss +21 -4
  12. package/src/assets/scss/components/PsCardInfos.scss +1 -1
  13. package/src/assets/scss/components/PsCheckbox.scss +4 -5
  14. package/src/assets/scss/components/PsChips.scss +17 -12
  15. package/src/assets/scss/components/PsDataTable.scss +17 -0
  16. package/src/assets/scss/components/PsDialog.scss +5 -2
  17. package/src/assets/scss/components/PsDraggable.scss +64 -0
  18. package/src/assets/scss/components/PsDropdown.scss +9 -24
  19. package/src/assets/scss/components/PsDropdownList.scss +19 -0
  20. package/src/assets/scss/components/PsInput.scss +8 -3
  21. package/src/assets/scss/components/PsInputSelect.scss +6 -3
  22. package/src/assets/scss/components/PsInputTextArea.scss +5 -2
  23. package/src/assets/scss/components/PsRadioButton.scss +5 -5
  24. package/src/assets/scss/components/PsSwitch.scss +4 -4
  25. package/src/assets/scss/components/PsTabHeader.scss +14 -0
  26. package/src/assets/scss/components/PsToast.scss +3 -3
  27. package/src/assets/scss/components/PsToggle.scss +6 -2
  28. package/src/assets/scss/components/PsTooltip.scss +50 -18
  29. package/src/components/accordion/PsAccordion.vue +7 -23
  30. package/src/components/accordion/PsAccordionItem.vue +42 -26
  31. package/src/components/badges-and-tags/PsCardInfos.vue +12 -0
  32. package/src/components/badges-and-tags/PsChartLegend.vue +13 -0
  33. package/src/components/badges-and-tags/PsClimateZoneBadge.vue +7 -0
  34. package/src/components/badges-and-tags/PsCostEffectBar.vue +6 -0
  35. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -1
  36. package/src/components/badges-and-tags/PsMiniTag.vue +6 -0
  37. package/src/components/badges-and-tags/PsProgressBar.vue +17 -9
  38. package/src/components/buttons/PsButton.vue +22 -1
  39. package/src/components/chips/PsChips.vue +33 -12
  40. package/src/components/controls/PsCheckbox.vue +32 -16
  41. package/src/components/controls/PsDraggable.vue +39 -150
  42. package/src/components/controls/PsInlineSelector.vue +30 -0
  43. package/src/components/controls/PsRadioButton.vue +28 -15
  44. package/src/components/controls/PsSwitch.vue +17 -11
  45. package/src/components/controls/PsToggle.vue +33 -12
  46. package/src/components/datatable/PsDataTable.vue +21 -1
  47. package/src/components/datatable/PsDataTableItem.vue +1 -1
  48. package/src/components/forms/PsDropdown.vue +73 -101
  49. package/src/components/forms/PsDropdownList.vue +82 -0
  50. package/src/components/forms/PsInput.vue +28 -1
  51. package/src/components/forms/PsInputSelect.vue +21 -0
  52. package/src/components/forms/PsInputTextArea.vue +54 -41
  53. package/src/components/notifications/PsDialog.vue +15 -0
  54. package/src/components/notifications/PsToast.vue +12 -0
  55. package/src/components/playground/PsScrollBar.vue +248 -0
  56. package/src/components/tabs/PsTabHeader.vue +31 -5
  57. package/src/components/tooltip/PsDialogTooltip.vue +107 -24
  58. package/src/components/tooltip/PsRichTooltip.vue +12 -9
  59. package/src/components/tooltip/PsTooltip.vue +27 -11
  60. package/src/components/ui/PsIcon.vue +30 -0
  61. package/src/index.js +30 -2
  62. package/src/stories/Accordion.stories.js +12 -48
  63. package/src/stories/Button.stories.js +30 -7
  64. package/src/stories/Chips.stories.js +11 -24
  65. package/src/stories/Dropdown.stories.js +81 -14
  66. package/src/stories/Icon.stories.js +21 -0
  67. package/src/stories/InlineSelector.stories.js +1 -1
  68. package/src/stories/Playground.stories.js +16 -0
  69. package/src/stories/Switch.stories.js +8 -2
  70. package/src/stories/Toast.stories.js +16 -16
  71. package/src/stories/Tooltip.stories.js +6 -6
  72. package/src/stories/Typography.stories.mdx +22 -18
  73. package/src/util/GeneralFunctions.js +8 -0
  74. package/src/util/imageLoader.js +1 -1
  75. package/tailwind.config.js +7 -3
  76. package/vetur/attributes.json +1376 -0
  77. package/vetur/tags.json +632 -0
  78. package/src/components/forms/PsDropdownCopy.vue +0 -212
@@ -0,0 +1,632 @@
1
+ {
2
+ "ps-accordion": {
3
+ "attributes": [
4
+ "layout"
5
+ ],
6
+ "description": ""
7
+ },
8
+ "PsAccordion": {
9
+ "attributes": [
10
+ "layout"
11
+ ],
12
+ "description": ""
13
+ },
14
+ "ps-accordion-item": {
15
+ "attributes": [
16
+ "title",
17
+ "opened",
18
+ "icon"
19
+ ],
20
+ "description": ""
21
+ },
22
+ "PsAccordionItem": {
23
+ "attributes": [
24
+ "title",
25
+ "opened",
26
+ "icon"
27
+ ],
28
+ "description": ""
29
+ },
30
+ "ps-card-infos": {
31
+ "attributes": [
32
+ "title",
33
+ "subtitle",
34
+ "icon",
35
+ "total"
36
+ ],
37
+ "description": ""
38
+ },
39
+ "PsCardInfos": {
40
+ "attributes": [
41
+ "title",
42
+ "subtitle",
43
+ "icon",
44
+ "total"
45
+ ],
46
+ "description": ""
47
+ },
48
+ "ps-chart-legend": {
49
+ "attributes": [
50
+ "text",
51
+ "total",
52
+ "percentage",
53
+ "dotColor"
54
+ ],
55
+ "description": ""
56
+ },
57
+ "PsChartLegend": {
58
+ "attributes": [
59
+ "text",
60
+ "total",
61
+ "percentage",
62
+ "dotColor"
63
+ ],
64
+ "description": ""
65
+ },
66
+ "ps-climate-zone-badge": {
67
+ "attributes": [
68
+ "icon",
69
+ "content"
70
+ ],
71
+ "description": ""
72
+ },
73
+ "PsClimateZoneBadge": {
74
+ "attributes": [
75
+ "icon",
76
+ "content"
77
+ ],
78
+ "description": ""
79
+ },
80
+ "ps-cost-effect-bar": {
81
+ "attributes": [
82
+ "value",
83
+ "breakEven"
84
+ ],
85
+ "description": ""
86
+ },
87
+ "PsCostEffectBar": {
88
+ "attributes": [
89
+ "value",
90
+ "breakEven"
91
+ ],
92
+ "description": ""
93
+ },
94
+ "ps-highlight-ripple-dot": {
95
+ "attributes": [],
96
+ "description": ""
97
+ },
98
+ "PsHighlightRippleDot": {
99
+ "attributes": [],
100
+ "description": ""
101
+ },
102
+ "ps-mini-tag": {
103
+ "attributes": [
104
+ "layout",
105
+ "message"
106
+ ],
107
+ "description": ""
108
+ },
109
+ "PsMiniTag": {
110
+ "attributes": [
111
+ "layout",
112
+ "message"
113
+ ],
114
+ "description": ""
115
+ },
116
+ "ps-progress-bar": {
117
+ "attributes": [
118
+ "value",
119
+ "percentageColor",
120
+ "bgColor"
121
+ ],
122
+ "description": ""
123
+ },
124
+ "PsProgressBar": {
125
+ "attributes": [
126
+ "value",
127
+ "percentageColor",
128
+ "bgColor"
129
+ ],
130
+ "description": ""
131
+ },
132
+ "ps-button": {
133
+ "attributes": [
134
+ "label",
135
+ "layout",
136
+ "icon",
137
+ "iconPosition",
138
+ "size",
139
+ "disabled",
140
+ "iconClass"
141
+ ],
142
+ "description": ""
143
+ },
144
+ "PsButton": {
145
+ "attributes": [
146
+ "label",
147
+ "layout",
148
+ "icon",
149
+ "iconPosition",
150
+ "size",
151
+ "disabled",
152
+ "iconClass"
153
+ ],
154
+ "description": ""
155
+ },
156
+ "ps-chips": {
157
+ "attributes": [
158
+ "label",
159
+ "type",
160
+ "layout",
161
+ "icon",
162
+ "checked",
163
+ "disabled",
164
+ "active"
165
+ ],
166
+ "description": ""
167
+ },
168
+ "PsChips": {
169
+ "attributes": [
170
+ "label",
171
+ "type",
172
+ "layout",
173
+ "icon",
174
+ "checked",
175
+ "disabled",
176
+ "active"
177
+ ],
178
+ "description": ""
179
+ },
180
+ "ps-checkbox": {
181
+ "attributes": [
182
+ "label",
183
+ "inputValue",
184
+ "value",
185
+ "disabled",
186
+ "size",
187
+ "layout"
188
+ ],
189
+ "description": ""
190
+ },
191
+ "PsCheckbox": {
192
+ "attributes": [
193
+ "label",
194
+ "inputValue",
195
+ "value",
196
+ "disabled",
197
+ "size",
198
+ "layout"
199
+ ],
200
+ "description": ""
201
+ },
202
+ "ps-draggable": {
203
+ "attributes": [
204
+ "getColumns",
205
+ "module"
206
+ ],
207
+ "description": ""
208
+ },
209
+ "PsDraggable": {
210
+ "attributes": [
211
+ "getColumns",
212
+ "module"
213
+ ],
214
+ "description": ""
215
+ },
216
+ "ps-inline-selector": {
217
+ "attributes": [
218
+ "width",
219
+ "focusOnMount",
220
+ "shouldScroll",
221
+ "label",
222
+ "selectOnlyFirstClimateZone",
223
+ "jurisdictionSelected",
224
+ "search",
225
+ "jurisdictions",
226
+ "requestFetched",
227
+ "showDropDown",
228
+ "currentSelected",
229
+ "isFocused",
230
+ "placeholder"
231
+ ],
232
+ "description": ""
233
+ },
234
+ "PsInlineSelector": {
235
+ "attributes": [
236
+ "width",
237
+ "focusOnMount",
238
+ "shouldScroll",
239
+ "label",
240
+ "selectOnlyFirstClimateZone",
241
+ "jurisdictionSelected",
242
+ "search",
243
+ "jurisdictions",
244
+ "requestFetched",
245
+ "showDropDown",
246
+ "currentSelected",
247
+ "isFocused",
248
+ "placeholder"
249
+ ],
250
+ "description": ""
251
+ },
252
+ "ps-radio-button": {
253
+ "attributes": [
254
+ "label",
255
+ "inputValue",
256
+ "value",
257
+ "disabled",
258
+ "size"
259
+ ],
260
+ "description": ""
261
+ },
262
+ "PsRadioButton": {
263
+ "attributes": [
264
+ "label",
265
+ "inputValue",
266
+ "value",
267
+ "disabled",
268
+ "size"
269
+ ],
270
+ "description": ""
271
+ },
272
+ "ps-slider": {
273
+ "attributes": [
274
+ "min",
275
+ "max",
276
+ "label",
277
+ "value",
278
+ "baseValue",
279
+ "labelPosition",
280
+ "step",
281
+ "bubble"
282
+ ],
283
+ "description": ""
284
+ },
285
+ "PsSlider": {
286
+ "attributes": [
287
+ "min",
288
+ "max",
289
+ "label",
290
+ "value",
291
+ "baseValue",
292
+ "labelPosition",
293
+ "step",
294
+ "bubble"
295
+ ],
296
+ "description": ""
297
+ },
298
+ "ps-switch": {
299
+ "attributes": [
300
+ "label",
301
+ "value",
302
+ "size"
303
+ ],
304
+ "description": ""
305
+ },
306
+ "PsSwitch": {
307
+ "attributes": [
308
+ "label",
309
+ "value",
310
+ "size"
311
+ ],
312
+ "description": ""
313
+ },
314
+ "ps-toggle": {
315
+ "attributes": [
316
+ "items",
317
+ "selected",
318
+ "keyLabel",
319
+ "keyValue"
320
+ ],
321
+ "description": ""
322
+ },
323
+ "PsToggle": {
324
+ "attributes": [
325
+ "items",
326
+ "selected",
327
+ "keyLabel",
328
+ "keyValue"
329
+ ],
330
+ "description": ""
331
+ },
332
+ "ps-data-table": {
333
+ "attributes": [
334
+ "type",
335
+ "header",
336
+ "data",
337
+ "footer",
338
+ "align",
339
+ "cssStyle"
340
+ ],
341
+ "description": ""
342
+ },
343
+ "PsDataTable": {
344
+ "attributes": [
345
+ "type",
346
+ "header",
347
+ "data",
348
+ "footer",
349
+ "align",
350
+ "cssStyle"
351
+ ],
352
+ "description": ""
353
+ },
354
+ "ps-data-table-item": {
355
+ "attributes": [
356
+ "data"
357
+ ],
358
+ "description": ""
359
+ },
360
+ "PsDataTableItem": {
361
+ "attributes": [
362
+ "data"
363
+ ],
364
+ "description": ""
365
+ },
366
+ "ps-dropdown": {
367
+ "attributes": [
368
+ "minWidthDropDown",
369
+ "buttonLabelOnShow",
370
+ "toggleWhenActive"
371
+ ],
372
+ "description": ""
373
+ },
374
+ "PsDropdown": {
375
+ "attributes": [
376
+ "minWidthDropDown",
377
+ "buttonLabelOnShow",
378
+ "toggleWhenActive"
379
+ ],
380
+ "description": ""
381
+ },
382
+ "ps-dropdown-simple": {
383
+ "attributes": [
384
+ "icon",
385
+ "items",
386
+ "selected",
387
+ "keyLabel",
388
+ "keyValue"
389
+ ],
390
+ "description": ""
391
+ },
392
+ "PsDropdownSimple": {
393
+ "attributes": [
394
+ "icon",
395
+ "items",
396
+ "selected",
397
+ "keyLabel",
398
+ "keyValue"
399
+ ],
400
+ "description": ""
401
+ },
402
+ "ps-input": {
403
+ "attributes": [
404
+ "type",
405
+ "placeholder",
406
+ "label",
407
+ "hint",
408
+ "layout",
409
+ "value",
410
+ "disabled",
411
+ "hasError",
412
+ "active"
413
+ ],
414
+ "description": ""
415
+ },
416
+ "PsInput": {
417
+ "attributes": [
418
+ "type",
419
+ "placeholder",
420
+ "label",
421
+ "hint",
422
+ "layout",
423
+ "value",
424
+ "disabled",
425
+ "hasError",
426
+ "active"
427
+ ],
428
+ "description": ""
429
+ },
430
+ "ps-select-input": {
431
+ "attributes": [
432
+ "items",
433
+ "value",
434
+ "label",
435
+ "optionalLabel",
436
+ "keyLabel",
437
+ "keyValue",
438
+ "disabled",
439
+ "layout"
440
+ ],
441
+ "description": ""
442
+ },
443
+ "PsSelectInput": {
444
+ "attributes": [
445
+ "items",
446
+ "value",
447
+ "label",
448
+ "optionalLabel",
449
+ "keyLabel",
450
+ "keyValue",
451
+ "disabled",
452
+ "layout"
453
+ ],
454
+ "description": ""
455
+ },
456
+ "ps-input-text-area": {
457
+ "attributes": [
458
+ "placeholder",
459
+ "value",
460
+ "label",
461
+ "optionalLabel",
462
+ "required",
463
+ "autocapitalize",
464
+ "rows",
465
+ "disabled"
466
+ ],
467
+ "description": ""
468
+ },
469
+ "PsInputTextArea": {
470
+ "attributes": [
471
+ "placeholder",
472
+ "value",
473
+ "label",
474
+ "optionalLabel",
475
+ "required",
476
+ "autocapitalize",
477
+ "rows",
478
+ "disabled"
479
+ ],
480
+ "description": ""
481
+ },
482
+ "ps-dialog": {
483
+ "attributes": [
484
+ "theme",
485
+ "message",
486
+ "layout",
487
+ "hasClose",
488
+ "icon"
489
+ ],
490
+ "description": ""
491
+ },
492
+ "PsDialog": {
493
+ "attributes": [
494
+ "theme",
495
+ "message",
496
+ "layout",
497
+ "hasClose",
498
+ "icon"
499
+ ],
500
+ "description": ""
501
+ },
502
+ "ps-toast": {
503
+ "attributes": [
504
+ "layout",
505
+ "fill",
506
+ "message",
507
+ "icon"
508
+ ],
509
+ "description": ""
510
+ },
511
+ "PsToast": {
512
+ "attributes": [
513
+ "layout",
514
+ "fill",
515
+ "message",
516
+ "icon"
517
+ ],
518
+ "description": ""
519
+ },
520
+ "ps-tab-header": {
521
+ "attributes": [
522
+ "layout",
523
+ "items",
524
+ "keyLabel",
525
+ "keyValue",
526
+ "disabled",
527
+ "selected"
528
+ ],
529
+ "description": ""
530
+ },
531
+ "PsTabHeader": {
532
+ "attributes": [
533
+ "layout",
534
+ "items",
535
+ "keyLabel",
536
+ "keyValue",
537
+ "disabled",
538
+ "selected"
539
+ ],
540
+ "description": ""
541
+ },
542
+ "ps-dialog-tooltip": {
543
+ "attributes": [
544
+ "title",
545
+ "buttonText",
546
+ "layout",
547
+ "cssClass"
548
+ ],
549
+ "description": ""
550
+ },
551
+ "PsDialogTooltip": {
552
+ "attributes": [
553
+ "title",
554
+ "buttonText",
555
+ "layout",
556
+ "cssClass"
557
+ ],
558
+ "description": ""
559
+ },
560
+ "ps-rich-tooltip": {
561
+ "attributes": [
562
+ "title",
563
+ "layout",
564
+ "cssClass"
565
+ ],
566
+ "description": ""
567
+ },
568
+ "PsRichTooltip": {
569
+ "attributes": [
570
+ "title",
571
+ "layout",
572
+ "cssClass"
573
+ ],
574
+ "description": ""
575
+ },
576
+ "ps-tooltip": {
577
+ "attributes": [
578
+ "title",
579
+ "ignoreDialog",
580
+ "layout",
581
+ "cssClass"
582
+ ],
583
+ "description": ""
584
+ },
585
+ "PsTooltip": {
586
+ "attributes": [
587
+ "title",
588
+ "ignoreDialog",
589
+ "layout",
590
+ "cssClass"
591
+ ],
592
+ "description": ""
593
+ },
594
+ "ps-dot-loader": {
595
+ "attributes": [],
596
+ "description": ""
597
+ },
598
+ "PsDotLoader": {
599
+ "attributes": [],
600
+ "description": ""
601
+ },
602
+ "app-icon": {
603
+ "attributes": [
604
+ "icon",
605
+ "type",
606
+ "iconClasses",
607
+ "size",
608
+ "width",
609
+ "height",
610
+ "stroke",
611
+ "color",
612
+ "loaderIcon",
613
+ "loaderErrorIcon"
614
+ ],
615
+ "description": ""
616
+ },
617
+ "AppIcon": {
618
+ "attributes": [
619
+ "icon",
620
+ "type",
621
+ "iconClasses",
622
+ "size",
623
+ "width",
624
+ "height",
625
+ "stroke",
626
+ "color",
627
+ "loaderIcon",
628
+ "loaderErrorIcon"
629
+ ],
630
+ "description": ""
631
+ }
632
+ }