@shoprenter/sr-styleguide 1.0.0 → 1.2.0

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 (77) hide show
  1. package/README.md +138 -18
  2. package/dist/demo/src/demo_bootstrap_js.css +26 -26
  3. package/dist/demo/src/demo_bootstrap_js.js +1 -1
  4. package/dist/demo/src/index.html +1 -1
  5. package/dist/stylesheet/sr-styleguide.css +6 -6
  6. package/package.json +4 -5
  7. package/src/components/app-containers/SrModule/SrModule.scss +1 -1
  8. package/src/components/app-containers/SrModule/SrModule.vue +19 -8
  9. package/src/components/app-containers/SrPage/SrPage.vue +19 -16
  10. package/src/components/app-containers/scope.js +12 -0
  11. package/src/components/breadcrumbs/SrBreadcrumbs/SrBreadcrumbs.scss +47 -0
  12. package/src/components/breadcrumbs/SrBreadcrumbs/SrBreadcrumbs.vue +46 -0
  13. package/src/components/breadcrumbs/tests/SrBreadcrumbs.spec.js +109 -0
  14. package/src/components/form/SrFormDivider/SrFormDivider.scss +4 -0
  15. package/src/components/form/SrFormDivider/SrFormDivider.vue +9 -0
  16. package/src/components/form/SrFormRow/SrFormRow.scss +21 -21
  17. package/src/components/form/SrFormRow/SrFormRow.vue +3 -2
  18. package/src/components/inputs/SrCheckbox/SrCheckbox.vue +13 -1
  19. package/src/components/inputs/SrCheckbox/tests/SrCheckbox.spec.js +39 -0
  20. package/src/components/inputs/SrDatePicker/SrDatePicker.vue +4 -1
  21. package/src/components/inputs/SrMultiCheckbox/BaseMultiCheckbox.vue +43 -0
  22. package/src/components/inputs/SrMultiCheckbox/SrMultiCheckbox.vue +10 -55
  23. package/src/components/inputs/SrMultiCheckbox/SrSimpleMultiCheckbox.vue +52 -0
  24. package/src/components/inputs/SrMultiCheckbox/mixin/SrMultiCheckboxMixin.js +26 -0
  25. package/src/components/inputs/SrMultiCheckbox/tests/SrMultiCheckbox.spec.js +49 -43
  26. package/src/components/inputs/SrMultiCheckbox/tests/SrSimpleMultiCheckbox.spec.js +104 -0
  27. package/src/components/inputs/SrRadio/SrRadioGroup.vue +7 -1
  28. package/src/components/inputs/SrRadio/tests/SrRadioGroup.spec.js +38 -0
  29. package/src/components/inputs/SrSelect/SrSelect.vue +8 -1
  30. package/src/components/inputs/SrSwitch/SrSwitch.vue +0 -1
  31. package/src/components/inputs/SrTextarea/SrTextarea.vue +20 -0
  32. package/src/components/layouts/slim/SrSlimHeading/SrSlimHeading.scss +9 -0
  33. package/src/components/layouts/slim/SrSlimHeading/SrSlimHeading.vue +2 -2
  34. package/src/components/layouts/slim/SrSlimLayout/SrSlimLayout.scss +12 -0
  35. package/src/components/layouts/slim/SrSlimLayout/SrSlimLayout.vue +8 -0
  36. package/src/components/layouts/standard/SrStandardLayout/SrStandardLayout.scss +4 -0
  37. package/src/components/layouts/standard/SrStandardLayout/SrStandardLayout.vue +21 -0
  38. package/src/components/pagination/SrPagination/SrPagination.scss +36 -0
  39. package/src/components/tables/SrSimpleTableFilterTd/SrSimpleTableFilterTd.vue +27 -0
  40. package/src/components/tabs/SrTabsItems/SrTabsItems.vue +1 -1
  41. package/src/plugins/component-library/index.js +4 -2
  42. package/src/plugins/component-library/library/SrBreadcrumbs.js +7 -0
  43. package/src/plugins/component-library/library/{SrFormRow.js → SrForm.js} +2 -0
  44. package/src/plugins/component-library/library/SrInputs.js +4 -0
  45. package/src/plugins/component-library/library/SrLayouts.js +4 -0
  46. package/src/plugins/component-library/library/SrPagination.js +1 -1
  47. package/src/plugins/component-library/library/SrTables.js +2 -1
  48. package/src/plugins/vuetify/preset/icons/index.js +4 -0
  49. package/src/plugins/vuetify/preset/locale/sr-en.js +2 -1
  50. package/src/plugins/vuetify/preset/locale/sr-hu.js +2 -1
  51. package/src/plugins/vuetify/preset/style/scss/_admin-menu.scss +0 -14
  52. package/src/plugins/vuetify/preset/style/scss/_components.scss +0 -12
  53. package/src/plugins/vuetify/preset/style/scss/_new-style.scss +0 -7
  54. package/src/plugins/vuetify/preset/style/scss/components/_input.scss +1 -32
  55. package/src/plugins/vuetify/preset/style/scss/components/_select.scss +0 -61
  56. package/src/plugins/vuetify/preset/style/scss/components/_table.scss +5 -39
  57. package/src/plugins/vuetify/preset/variables.scss +2 -2
  58. package/src/plugins/vuetify/preset/style/scss/_layout.scss +0 -140
  59. package/src/plugins/vuetify/preset/style/scss/_pages.scss +0 -5
  60. package/src/plugins/vuetify/preset/style/scss/_utility.scss +0 -14
  61. package/src/plugins/vuetify/preset/style/scss/components/_actionbar.scss +0 -31
  62. package/src/plugins/vuetify/preset/style/scss/components/_block.scss +0 -12
  63. package/src/plugins/vuetify/preset/style/scss/components/_breadcrumb.scss +0 -37
  64. package/src/plugins/vuetify/preset/style/scss/components/_copy-to-clipboard.scss +0 -16
  65. package/src/plugins/vuetify/preset/style/scss/components/_dialog.scss +0 -61
  66. package/src/plugins/vuetify/preset/style/scss/components/_icons.scss +0 -21
  67. package/src/plugins/vuetify/preset/style/scss/components/_pagination.scss +0 -36
  68. package/src/plugins/vuetify/preset/style/scss/components/_quantity-range-input.scss +0 -93
  69. package/src/plugins/vuetify/preset/style/scss/components/_select-all-plus.scss +0 -5
  70. package/src/plugins/vuetify/preset/style/scss/components/_simple-card.scss +0 -97
  71. package/src/plugins/vuetify/preset/style/scss/components/_sticky-header.scss +0 -41
  72. package/src/plugins/vuetify/preset/style/scss/pages/_apps.scss +0 -99
  73. package/src/plugins/vuetify/preset/style/scss/pages/_campaign.scss +0 -30
  74. package/src/plugins/vuetify/preset/style/scss/pages/_order-list.scss +0 -498
  75. package/src/plugins/vuetify/preset/style/scss/pages/_order-preview.scss +0 -83
  76. package/src/plugins/vuetify/preset/style/scss/pages/_product-list.scss +0 -286
  77. /package/src/components/pagination/{SrPagination.vue → SrPagination/SrPagination.vue} +0 -0
@@ -1,93 +0,0 @@
1
- .admin-quantity-range {
2
- position: relative;
3
- width: 100%;
4
- @include media-breakpoint-up(md) {
5
- width: auto;
6
- }
7
-
8
- &__fieldset {
9
- border: 1px solid var(--sr-pale-gray);
10
- border-collapse: collapse;
11
- border-radius: 3px;
12
- background: white;
13
- position: absolute;
14
- padding-left: 12px;
15
- top: 0;
16
- bottom: 0;
17
- left: 0;
18
- right: 0;
19
- transition-duration: 0.3s;
20
- transition-property: color, border-width;
21
- transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
22
-
23
- legend {
24
- line-height: 11px;
25
- padding: 0;
26
- transition: width 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
27
- }
28
- }
29
-
30
- &:hover .admin-quantity-range__fieldset {
31
- border-color: #A7ADAF;
32
- }
33
-
34
- &:focus-within {
35
- border-color: #A7ADAF;
36
- }
37
- }
38
-
39
- .admin-quantity-range__input {
40
- position: relative;
41
- display: flex;
42
-
43
- .quantity-input {
44
- font-size: 12px;
45
- border-radius: 3px;
46
- border: none;
47
- color: $sub-color;
48
- padding: 9px 10px 9px 5px;
49
- width: 49%;
50
- outline: none;
51
-
52
- @include media-breakpoint-up(md) {
53
- width: 70px;
54
- }
55
- margin: 0;
56
-
57
- &:hover,
58
- &:focus {
59
- box-shadow: none;
60
- }
61
- }
62
-
63
- .quantity-input-label {
64
- color: $sub-color;
65
- font-weight: normal;
66
- padding-right: 0.5rem;
67
- padding-left: 0.5rem;
68
- background-color: #fff;
69
- position: absolute;
70
- pointer-events: none;
71
- left: 12px;
72
- top: 8px;
73
- transition: 300ms ease all;
74
-
75
- &--shrink {
76
- transform: translate3d(-8px, -18px, 0) scale(0.75);
77
- background: transparent;
78
- }
79
-
80
- &--focused {
81
- color: var(--sr-primary);
82
- }
83
- }
84
-
85
- .quantity-divider {
86
- position: absolute;
87
- left: calc(50% - 10px);
88
- top: 50%;
89
- font-weight: bold;
90
- color: #C5CCD6;
91
- transform: translate(-50%, -50%);
92
- }
93
- }
@@ -1,5 +0,0 @@
1
- .select-all-plus {
2
- &__selected {
3
- color: var(--sr-link-grey);
4
- }
5
- }
@@ -1,97 +0,0 @@
1
- .sr-simple-card-link-wrapper {
2
- display: block;
3
- width: 100%;
4
- }
5
-
6
- .sr-simple-card {
7
- box-shadow: 0px 4px 10px rgba(212, 218, 223, 0.1);
8
- border-radius: 3px;
9
- display: flex;
10
- align-items: center;
11
- cursor: pointer;
12
- flex-grow: 0;
13
- background-color: #fff;
14
- &__icon {
15
- background-color: var(--sr-light-grey);
16
- min-height: 100px;
17
- min-width: 90px;
18
- display: flex;
19
- justify-content: center;
20
- align-items: center;
21
- svg {
22
- width: 28px;
23
- height: 28px;
24
- }
25
- }
26
- &__info {
27
- padding: 0 1rem;
28
-
29
- .v-application &__info__label,
30
- &__label {
31
- font-weight: 500;
32
- font-size: 18px;
33
- line-height: 1;
34
- color: var(--sr-black);
35
- }
36
- &-wrapper {
37
- display: flex;
38
- align-items: center;
39
- .sr-simple-card-count {
40
- font-weight: bold;
41
- font-size: 16px;
42
- line-height: 24px;
43
- margin: 0 0.5rem 0 0;
44
- background-color: var(--sr-primary);
45
- border-radius: 3px;
46
- color: #fff;
47
- width: 40px;
48
- height: 40px;
49
- display: flex;
50
- justify-content: center;
51
- align-items: center;
52
- }
53
- .sr-simple-card-info-text {
54
- font-weight: normal;
55
- font-size: 16px;
56
- }
57
- }
58
- }
59
-
60
- @include media-breakpoint-down(lg) {
61
- &__icon {
62
- min-width: 80px;
63
- }
64
- &__info {
65
- display: flex;
66
- align-items: center;
67
- flex-wrap: wrap;
68
- height: 60px;
69
- padding: 0 1rem;
70
- flex: 0;
71
- }
72
- &__info__label {
73
- min-width: 180px;
74
- }
75
- }
76
-
77
- @include media-breakpoint-up(md) {
78
- &__info__label {
79
- padding-bottom: 5px;
80
- }
81
- }
82
-
83
- @include media-breakpoint-down(sm) {
84
- &__icon {
85
- min-height: 60px;
86
- min-width: 60px;
87
- }
88
- &__info {
89
- flex: 1;
90
- }
91
- }
92
- @include media-breakpoint-down(xs) {
93
- &__info__label {
94
- display: none;
95
- }
96
- }
97
- }
@@ -1,41 +0,0 @@
1
- .sticky-header {
2
- &__wrapper {
3
- background-color: var(--sr-black);
4
- color: #fff;
5
- position: fixed;
6
- top: 0;
7
- height: var(--header-height);
8
- left: var(--header-height);
9
- width: calc(100% - var(--header-height));
10
- z-index: 200;
11
- visibility: hidden;
12
-
13
- @include media-breakpoint-down(xs) {
14
- padding-right: 20px;
15
- }
16
-
17
- @include media-breakpoint-up(md) {
18
- left: var(--sidebar-width);
19
- width: calc(100% - var(--sidebar-width));
20
- }
21
-
22
- opacity: 0;
23
- transform: translateY(-20px);
24
- transition: all .3s ease;
25
-
26
- &.sticky-header--visible {
27
- visibility: visible;
28
- opacity: 1;
29
- transform: translateY(0);
30
- }
31
- }
32
- }
33
-
34
- .admin-menu-minified ~ .admin-page__body {
35
- .sticky-header__wrapper {
36
- @include media-breakpoint-up(md) {
37
- left: var(--sidebar-small-width);
38
- width: calc(100% - var(--sidebar-small-width));
39
- }
40
- }
41
- }
@@ -1,99 +0,0 @@
1
- .admin-applist-category-card {
2
- display: flex;
3
- border-radius: 3px;
4
- box-shadow: 0 4px 10px rgba(212, 218, 223, 0.1);
5
- cursor: pointer;
6
- position: relative;
7
- &:after {
8
- content: "";
9
- display: none;
10
- border-radius: 3px;
11
- width: 100%;
12
- height: 100%;
13
- position: absolute;
14
- border: 2px solid transparent;
15
- }
16
-
17
- &__icon {
18
- background: var(--sr-light-grey);
19
- width: 80px;
20
- height: 80px;
21
- display: flex;
22
- justify-content: center;
23
- align-items: center;
24
- }
25
-
26
- &__content {
27
- width: 230px;
28
- height: 80px;
29
- display: flex;
30
- justify-content: flex-start;
31
- align-items: center;
32
- background: #fff;
33
- padding: 16px 49px 16px 20px;
34
-
35
- &__text {
36
- color: var(--sr-anchor);
37
- font-size: 16px;
38
- line-height: 24px;
39
- font-weight: 400;
40
- }
41
-
42
- }
43
- &:hover {
44
- .admin-applist-category-card__content__text {
45
- color: var(--sr-hover-green);
46
- }
47
- }
48
- &.active-card {
49
- &:after {
50
- border: 2px solid #818E9E;
51
- display: block;
52
- }
53
- box-shadow: 0px 4px 10px rgba(212, 218, 223, 0.1);
54
- border-radius: 3px;
55
-
56
- .admin-applist-category-card__content {
57
- &__text {
58
- color: var(--sr-black);
59
- }
60
- }
61
-
62
- .admin-applist-category-card__icon {
63
- path {
64
- stroke: var(--sr-black);
65
- }
66
- }
67
- }
68
- }
69
-
70
- .app-list-skeleton-wrapper {
71
- margin-top: 70px;
72
- }
73
-
74
- @include media-breakpoint-down(md) {
75
- .app-cards {
76
- grid-template-columns: 1fr 1fr;
77
- }
78
- }
79
-
80
- @include media-breakpoint-down(sm) {
81
- .admin-applist-category-card__icon {
82
- flex-shrink: 0;
83
- }
84
-
85
- .admin-applist-category-card__content {
86
- width: 100%;
87
- }
88
- }
89
- @include media-breakpoint-down(xs) {
90
- .app-cards {
91
- grid-template-columns: 1fr;
92
- margin: 0 20px;
93
- }
94
-
95
- .app-list-subtitle {
96
- margin-left: 20px;
97
- margin-right: 20px;
98
- }
99
- }
@@ -1,30 +0,0 @@
1
- .campaign-actual {
2
- .campaign-head {
3
- &__row-1 {
4
- font-size: 35px;
5
- line-height: 35px;
6
- }
7
- &__row-2 {
8
- font-size: 50px;
9
- }
10
- }
11
-
12
- .campaign-card {
13
- &__content {
14
- height: 100%
15
- }
16
- &__order-button {
17
- position: absolute;
18
- bottom: 30px;
19
- left: 0;
20
- width: 100%;
21
-
22
- }
23
- &__save-text {
24
- position: absolute;
25
- bottom: 100px;
26
- left: 0;
27
- width: 100%;
28
- }
29
- }
30
- }