@tiddh/brave-vue 1.92.19 → 1.92.21

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 (31) hide show
  1. package/dist/brave-vue.esm.js +31 -31
  2. package/dist/brave-vue.min.js +1 -1
  3. package/dist/brave-vue.ssr.js +25 -25
  4. package/dist/src/Button.vue +23 -22
  5. package/dist/src/ButtonWithIcon.stories.js +12 -12
  6. package/dist/src/Buttons/Button.vue +23 -22
  7. package/dist/src/Buttons/ButtonWithIcon.stories.js +12 -12
  8. package/dist/src/Buttons/Primary.stories.js +2 -2
  9. package/dist/src/Buttons/ProgressiveLoading.stories.js +4 -4
  10. package/dist/src/Buttons/Secondary.stories.js +2 -2
  11. package/dist/src/Navigation/Stepper.vue +52 -46
  12. package/dist/src/Navigation/TopBar.stories.js +69 -0
  13. package/dist/src/Navigation/TopBar.vue +70 -0
  14. package/dist/src/Preview/PreviewWithTools.vue +1 -1
  15. package/dist/src/PreviewWithTools.vue +1 -1
  16. package/dist/src/Primary.stories.js +2 -2
  17. package/dist/src/ProgressiveLoading.stories.js +4 -4
  18. package/dist/src/Secondary.stories.js +2 -2
  19. package/dist/src/Stepper.vue +52 -46
  20. package/dist/src/TopBar.stories.js +69 -0
  21. package/dist/src/TopBar.vue +10 -55
  22. package/dist/src/components/Buttons/Button.vue +23 -22
  23. package/dist/src/components/Buttons/ButtonWithIcon.stories.js +12 -12
  24. package/dist/src/components/Buttons/Primary.stories.js +2 -2
  25. package/dist/src/components/Buttons/ProgressiveLoading.stories.js +4 -4
  26. package/dist/src/components/Buttons/Secondary.stories.js +2 -2
  27. package/dist/src/components/Navigation/Stepper.vue +52 -46
  28. package/dist/src/components/Navigation/TopBar.stories.js +69 -0
  29. package/dist/src/components/Navigation/TopBar.vue +70 -0
  30. package/dist/src/components/Preview/PreviewWithTools.vue +1 -1
  31. package/package.json +1 -1
@@ -270,14 +270,14 @@
270
270
  px-size("lg", $spacing-inline-lg);
271
271
 
272
272
  //ICON
273
- &.icon-left {
274
- .icon {
273
+ &.icons-left {
274
+ i.icon {
275
275
  left: px-size("lg", $spacing-inline-sm);
276
276
  }
277
277
  }
278
278
 
279
- &.icon-right {
280
- .icon {
279
+ &.icons-right {
280
+ i.icon {
281
281
  right: px-size("lg", $spacing-inline-sm);
282
282
  }
283
283
  }
@@ -327,14 +327,15 @@
327
327
  padding: px-size("lg", $spacing-stack-md)
328
328
  px-size("lg", $spacing-inline-lg);
329
329
  width: fit-content;
330
- &.icon-left {
330
+
331
+ &.icons-left {
331
332
  padding-left: px-size("lg", $spacing-inline-xxl) !important;
332
333
  .icon {
333
334
  left: px-size("lg", $spacing-inline-sm);
334
335
  }
335
336
  }
336
337
 
337
- &.icon-right {
338
+ &.icons-right {
338
339
  padding-right: px-size("lg", $spacing-inline-xxl) !important;
339
340
  .icon {
340
341
  right: px-size("lg", $spacing-inline-sm);
@@ -631,13 +632,13 @@
631
632
  padding: px-size("sm", $spacing-inset-xs);
632
633
  }
633
634
 
634
- &.icon-left {
635
+ &.icons-left {
635
636
  .icon {
636
637
  left: px-size("lg", $spacing-inline-sm) !important;
637
638
  }
638
639
  }
639
640
 
640
- &.icon-right {
641
+ &.icons-right {
641
642
  .icon {
642
643
  right: px-size("lg", $spacing-inline-sm) !important;
643
644
  }
@@ -682,14 +683,14 @@
682
683
  px-size("sm", $spacing-inline-md);
683
684
  }
684
685
 
685
- &.icon-left {
686
+ &.icons-left {
686
687
  padding-left: px-size("lg", $spacing-inline-xxl) !important;
687
688
  .icon {
688
689
  left: px-size("lg", $spacing-inline-sm);
689
690
  }
690
691
  }
691
692
 
692
- &.icon-right {
693
+ &.icons-right {
693
694
  padding-right: px-size("lg", $spacing-inline-xxl) !important;
694
695
  .icon {
695
696
  right: px-size("lg", $spacing-inline-sm);
@@ -951,12 +952,12 @@
951
952
  padding: 0px px-size("sm", $spacing-inline-xl) !important;
952
953
  font-size: px-size("sm", $font-size-xxs);
953
954
 
954
- &.icon-left {
955
+ &.icons-left {
955
956
  .icon {
956
957
  margin-right: px-size("sm", $spacing-inline-xxs) !important;
957
958
  }
958
959
  }
959
- &.icon-right {
960
+ &.icons-right {
960
961
  .icon {
961
962
  margin-left: px-size("sm", $spacing-inline-xxs) !important;
962
963
  }
@@ -975,12 +976,12 @@
975
976
  height: px-size("sm", 48px);
976
977
  padding: 0px px-size("sm", $spacing-inline-lg) !important;
977
978
  font-size: px-size("sm", $font-size-xxs);
978
- &.icon-left {
979
+ &.icons-left {
979
980
  .icon {
980
981
  margin-right: px-size("sm", $spacing-inline-xxs) !important;
981
982
  }
982
983
  }
983
- &.icon-right {
984
+ &.icons-right {
984
985
  .icon {
985
986
  margin-left: px-size("sm", $spacing-inline-xxs) !important;
986
987
  }
@@ -997,12 +998,12 @@
997
998
  height: px-size("sm", 44px);
998
999
  font-size: px-size("sm", $font-size-xxxs);
999
1000
  padding: 0px px-size("sm", $spacing-inline-md) !important;
1000
- &.icon-left {
1001
+ &.icons-left {
1001
1002
  .icon {
1002
1003
  margin-right: px-size("sm", $spacing-inline-xxs) !important;
1003
1004
  }
1004
1005
  }
1005
- &.icon-right {
1006
+ &.icons-right {
1006
1007
  .icon {
1007
1008
  margin-left: px-size("sm", $spacing-inline-xxs) !important;
1008
1009
  }
@@ -1024,12 +1025,12 @@
1024
1025
  font-size: px-size("sm", $font-size-xxxxs);
1025
1026
  padding: 0px px-size("sm", $spacing-inline-sm) !important;
1026
1027
 
1027
- &.icon-left {
1028
+ &.icons-left {
1028
1029
  .icon {
1029
1030
  margin-right: px-size("sm", $spacing-inline-xxs) !important;
1030
1031
  }
1031
1032
  }
1032
- &.icon-right {
1033
+ &.icons-right {
1033
1034
  .icon {
1034
1035
  margin-left: px-size("sm", $spacing-inline-xxs) !important;
1035
1036
  }
@@ -1041,7 +1042,7 @@
1041
1042
  // SHAPE
1042
1043
  width: 100%;
1043
1044
 
1044
- &.icon-left {
1045
+ ::v-deep &.icons-left {
1045
1046
  position: relative;
1046
1047
  .icon {
1047
1048
  left: 0;
@@ -1072,7 +1073,7 @@
1072
1073
  }
1073
1074
  }
1074
1075
 
1075
- &.icon-right {
1076
+ &.icons-right {
1076
1077
  position: relative;
1077
1078
  .icon {
1078
1079
  right: 0;
@@ -1139,7 +1140,7 @@
1139
1140
  width: px-size("sm", 24px);
1140
1141
  height: px-size("sm", 24px);
1141
1142
  }
1142
- &.icon-right {
1143
+ &.icons-right {
1143
1144
  .icon {
1144
1145
  right: 0;
1145
1146
  }
@@ -1168,7 +1169,7 @@
1168
1169
  }
1169
1170
  }
1170
1171
  }
1171
- &.icon-left {
1172
+ &.icons-left {
1172
1173
  .icon {
1173
1174
  left: 0;
1174
1175
  }
@@ -37,21 +37,21 @@ export const ButtonWithIcon = () => ({
37
37
  template: `<div :style="inverted ? 'background: #E5F1FB' : null">
38
38
  <div class="storybook-6">
39
39
  <Button kind="ghost" :size="sizes" :icon="icon" width="fluid" :disabled="disabled" :inverted="inverted"@click="action">
40
- <Icon name="check" fill="#000" stroke="transparent" size="md" />
40
+ <Icon name="check" stroke="transparent" size="md" />
41
41
  <span>Fluid - Cols 6 </span>
42
42
  </Button>
43
43
  </div>
44
44
  <br>
45
45
  <div class="storybook-12">
46
46
  <Button kind="ghost" :size="sizes" :icon="icon" width="fluid" :disabled="disabled" :inverted="inverted"@click="action">
47
- <Icon name="collapse" fill="#000" size="md" stroke="transparent" size="md" />
47
+ <Icon name="collapse" size="md" stroke="transparent" size="md" />
48
48
  <span>Fluid - Cols 12 </span>
49
49
  </Button>
50
50
  </div>
51
51
  <br>
52
52
  <div class="storybook-25">
53
53
  <Button kind="ghost" :size="sizes" :icon="icon" width="fluid" :disabled="disabled" :inverted="inverted"@click="action">
54
- <Icon name="collapse" fill="#fff" size="md" stroke="transparent" size="md" />
54
+ <Icon name="collapse" size="md" stroke="transparent" size="md" />
55
55
  <span>Fluid - Cols 25 </span>
56
56
  </Button>
57
57
  </div>
@@ -60,21 +60,21 @@ export const ButtonWithIcon = () => ({
60
60
  <div class="storybook-6">
61
61
  <Button kind="ghost" :size="sizes" icon="right" width="fluid" :disabled="disabled" :inverted="inverted"@click="action">
62
62
  <span>Fluid - Cols 6 </span>
63
- <Icon name="collapse" fill="#fff" size="md" stroke="transparent" size="md" />
63
+ <Icon name="collapse" size="md" stroke="transparent" size="md" />
64
64
  </Button>
65
65
  </div>
66
66
  <br>
67
67
  <div class="storybook-12">
68
68
  <Button kind="ghost" :size="sizes" icon="right" width="fluid" :disabled="disabled" :inverted="inverted"@click="action">
69
69
  <span>Fluid - Cols 12 </span>
70
- <Icon name="collapse" fill="#fff" size="md" stroke="transparent" size="md" />
70
+ <Icon name="collapse" size="md" stroke="transparent" size="md" />
71
71
  </Button>
72
72
  </div>
73
73
  <br>
74
74
  <div class="storybook-25">
75
75
  <Button kind="ghost" :size="sizes" icon="right" width="fluid" :disabled="disabled" :inverted="inverted"@click="action">
76
76
  <span>Fluid - Cols 25 </span>
77
- <Icon name="collapse" fill="#fff" stroke="transparent" size="md" />
77
+ <Icon name="collapse" stroke="transparent" size="md" />
78
78
  </Button>
79
79
  </div>
80
80
  <br>
@@ -82,21 +82,21 @@ export const ButtonWithIcon = () => ({
82
82
 
83
83
  <div>
84
84
  <Button kind="ghost" :size="sizes" :icon="icon" width="liquid" :disabled="disabled" :inverted="inverted" @click="action">
85
- <Icon name="collapse" fill="#fff" stroke="transparent" size="md" />
85
+ <Icon name="collapse" stroke="transparent" size="md" />
86
86
  <span>Liquid - CANCELAR</span>
87
87
  </Button>
88
88
  </div>
89
89
  <br>
90
90
  <div>
91
91
  <Button kind="ghost" :size="sizes" :icon="icon" width="liquid" :disabled="disabled" :inverted="inverted" @click="action">
92
- <Icon name="collapse" fill="#fff" stroke="transparent" size="md" />
92
+ <Icon name="collapse" stroke="transparent" size="md" />
93
93
  <span>Liquid - ESCOLHA O GENERO</span>
94
94
  </Button>
95
95
  </div>
96
96
  <br>
97
97
  <div>
98
98
  <Button kind="ghost" :size="sizes" :icon="icon" width="liquid" :disabled="disabled" :inverted="inverted" @click="action">
99
- <Icon name="collapse" fill="#fff" stroke="transparent" size="md" />
99
+ <Icon name="collapse" stroke="transparent" size="md" />
100
100
  <span>Liquid - ESCREVA O SEU DA SUA CRIANÇA</span>
101
101
  </Button>
102
102
  </div>
@@ -106,21 +106,21 @@ export const ButtonWithIcon = () => ({
106
106
  <div>
107
107
  <Button kind="ghost" :size="sizes" icon="right" width="liquid" :disabled="disabled" :inverted="inverted" @click="action">
108
108
  <span>Liquid - CANCELAR</span>
109
- <Icon name="collapse" fill="#fff" stroke="transparent" size="md" />
109
+ <Icon name="collapse" stroke="transparent" size="md" />
110
110
  </Button>
111
111
  </div>
112
112
  <br>
113
113
  <div>
114
114
  <Button kind="ghost" :size="sizes" icon="right" width="liquid" :disabled="disabled" :inverted="inverted" @click="action">
115
115
  <span>Liquid - ESCOLHA O GENERO</span>
116
- <Icon name="collapse" fill="#fff" stroke="transparent" size="md" />
116
+ <Icon name="collapse" stroke="transparent" size="md" />
117
117
  </Button>
118
118
  </div>
119
119
  <br>
120
120
  <div>
121
121
  <Button kind="ghost" :size="sizes" icon="left" width="fluid" :disabled="disabled" :inverted="inverted" @click="action">
122
122
  <span>Fluid - ESCREVA O SEU DA SUA</span>
123
- <Icon name="collapse" fill="#fff" stroke="transparent" size="md" />
123
+ <Icon name="collapse" stroke="transparent" size="md" />
124
124
  </Button>
125
125
  </div>
126
126
  <br>
@@ -34,7 +34,7 @@ export const Primary = () => ({
34
34
  <div class="storybook-12">
35
35
  <Button kind="primary" size="xl" width="fluid" icon="right" :disabled="disabled" :inverted="inverted" :shadow-color="shadowColor" @click="action">
36
36
  <span>Fluid - Cols 12</span>
37
- <Icon name="collapse" size="md" fill="#fff" stroke="transparent" />
37
+ <Icon name="collapse" size="md" stroke="transparent" />
38
38
  </Button>
39
39
  </div>
40
40
  <br>
@@ -64,7 +64,7 @@ export const Primary = () => ({
64
64
  <br>
65
65
  <div>
66
66
  <Button kind="primary" size="xl" width="circle" :disabled="disabled" :inverted="inverted" :shadow-color="shadowColor" @click="action">
67
- <Icon name="chevron-right" fill="#fff" stroke="transparent" size="md" />
67
+ <Icon name="chevron-right" stroke="transparent" size="md" />
68
68
  </Button>
69
69
  </div>
70
70
  </div>`,
@@ -46,7 +46,7 @@ export const ProgressiveLoading = () => ({
46
46
  <div class="storybook-12">
47
47
  <Button kind="secondary" size="xl" width="liquid" :isLoadingCompleted="isLoadingCompleted" :loadingProgress="loadingProgress" icon="right" :disabled="disabled" :loadingType="loadingType" :loadingText="loadingText" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
48
48
  <span>Fluid - Cols 12</span>
49
- <Icon name="collapse" fill="#fff" stroke="transparent" />
49
+ <Icon name="collapse" stroke="transparent" />
50
50
  </Button>
51
51
  </div>
52
52
  <br>
@@ -55,7 +55,7 @@ export const ProgressiveLoading = () => ({
55
55
  <div class="storybook-12">
56
56
  <Button kind="primary" size="xl" width="liquid" :isLoadingCompleted="isLoadingCompleted" :loadingProgress="loadingProgress" icon="right" :disabled="disabled" :loadingType="loadingType" :loadingText="loadingText" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
57
57
  <span>Fluid - Cols 12</span>
58
- <Icon name="collapse" fill="#fff" stroke="transparent" />
58
+ <Icon name="collapse" stroke="transparent" />
59
59
  </Button>
60
60
  </div>
61
61
  <br>
@@ -69,14 +69,14 @@ export const ProgressiveLoading = () => ({
69
69
  <div class="storybook-12">
70
70
  <Button kind="primary" size="xl" width="liquid" :loadingProgress="loadingProgress" icon="right" :disabled="disabled" :loadingType="loadingType" :loadingText="loadingText" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
71
71
  <span>Fluid - Cols 12</span>
72
- <Icon name="collapse" fill="#fff" stroke="transparent" />
72
+ <Icon name="collapse" stroke="transparent" />
73
73
  </Button>
74
74
  </div>
75
75
  <br>
76
76
  <div class="storybook-12">
77
77
  <Button kind="ghost" size="xl" width="liquid" :loadingProgress="loadingProgress" icon="right" :disabled="disabled" :loadingType="loadingType" :loadingText="loadingText" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
78
78
  <span>Fluid - Cols 12</span>
79
- <Icon name="collapse" fill="#fff" stroke="transparent" />
79
+ <Icon name="collapse" stroke="transparent" />
80
80
  </Button>
81
81
  </div>
82
82
  <br>
@@ -40,7 +40,7 @@ export const Secondary = () => ({
40
40
  <br>
41
41
  <div class="storybook-12">
42
42
  <Button kind="secondary" :size="sizes" icon="right" width="fluid" :disabled="disabled" :inverted="inverted"@click="action">
43
- <Icon name="collapse" fill="#fff" stroke="transparent" />
43
+ <Icon name="collapse" stroke="transparent" />
44
44
  Fluid - Cols 12
45
45
  </Button>
46
46
  </div>
@@ -71,7 +71,7 @@ export const Secondary = () => ({
71
71
  <br>
72
72
  <div>
73
73
  <Button kind="secondary" size="md" width="circle" :disabled="disabled" :inverted="inverted" @click="action">
74
- <Icon name="chevron-right" fill="#fff" size="md" stroke="transparent" />
74
+ <Icon name="chevron-right" size="md" stroke="transparent" />
75
75
  </Button>
76
76
  </div>
77
77
  </div>`,
@@ -8,18 +8,39 @@
8
8
  <div class="stepper-links-item-area">
9
9
  <Paragraph
10
10
  :size="'sm'"
11
- color="#AFA2BA"
11
+ :color="color"
12
12
  class="stepper-link-text"
13
- :class="routes.length - 1 == indexRoute ? 'is-current' : null"
14
- @click="routes.length - 1 == indexRoute ? click() : null"
15
- >{{ option.stepperName }}</Paragraph
13
+ :class="
14
+ routes.length - 1 == indexRoute ? 'is-current' : 'not-current'
15
+ "
16
+ @click="
17
+ routes.length - 1 == indexRoute ? onClick(option) : onClick(option)
18
+ "
19
+ >
20
+ <div
21
+ class="preview-button"
22
+ @click="onClick(option)"
23
+ :style="'color:' + color"
24
+ >
25
+ <Icon
26
+ v-if="indexRoute == 0"
27
+ name="arrow-left"
28
+ :fill="color"
29
+ :color="color"
30
+ size="sm"
31
+ stroke="transparent"
32
+ class="back-button"
33
+ />
34
+ </div>
35
+
36
+ {{ option.stepperName }}</Paragraph
16
37
  >
17
38
  </div>
18
39
 
19
40
  <Paragraph
20
41
  v-if="routes.length - 1 != indexRoute"
21
42
  :size="'sm'"
22
- color="#AFA2BA"
43
+ :color="color"
23
44
  v-html="'/'"
24
45
  class="stepper-link-divider"
25
46
  ></Paragraph>
@@ -49,38 +70,16 @@
49
70
  type: Array,
50
71
  required: true,
51
72
  },
52
- // size: {
53
- // type: String,
54
- // default: "xl",
55
- // },
56
- // heading: {
57
- // type: String,
58
- // required: true,
59
- // },
60
- // headingSize: {
61
- // type: String,
62
- // default: "sm",
63
- // },
64
- // headingColor: {
65
- // type: String,
66
- // default: "#68596E",
67
- // },
68
- // paragraph: {
69
- // type: String,
70
- // },
71
- // paragraphSize: {
72
- // type: String,
73
- // default: "lg",
74
- // },
75
- // haveClose: {
76
- // type: Boolean,
77
- // default: true,
78
- // },
73
+ color: {
74
+ type: String,
75
+ required: true,
76
+ default: "#68596E",
77
+ },
79
78
  },
80
79
 
81
80
  methods: {
82
- onClick() {
83
- this.$emit("click");
81
+ onClick(payload) {
82
+ this.$emit("click", payload);
84
83
  },
85
84
 
86
85
  action() {
@@ -126,8 +125,10 @@
126
125
  cursor: pointer;
127
126
 
128
127
  &:hover {
129
- p {
130
- color: $color-brand-primary-medium !important;
128
+ .preview-button {
129
+ .icon {
130
+ color: $color-brand-primary-medium !important;
131
+ }
131
132
  }
132
133
 
133
134
  .icon {
@@ -168,23 +169,28 @@
168
169
  }
169
170
 
170
171
  .stepper-link-text {
171
- // &:hover {
172
- // color: $color-brand-primary-medium !important;
173
- // }
172
+ display: flex;
173
+ flex-wrap: wrap;
174
+ align-content: center;
175
+ align-items: center;
174
176
 
175
177
  &.is-current {
176
178
  cursor: default;
177
- color: $color-neutral-darkest !important;
179
+ font-weight: bold;
180
+ }
181
+
182
+ &:hover {
183
+ &.not-current {
184
+ color: $color-brand-primary-medium !important;
185
+ }
178
186
  }
179
187
  }
180
188
 
181
189
  .icon {
182
- width: px-size("md", $icon-width-sm);
183
- height: px-size("md", $icon-width-sm);
184
- position: relative;
185
- svg {
186
- width: px-size("md", $icon-width-sm);
187
- height: px-size("md", $icon-width-sm);
190
+ margin-right: px-size("lg", $spacing-inline-xs);
191
+
192
+ @include media-breakpoint-down("sm") {
193
+ margin-right: px-size("lg", $spacing-inline-sm);
188
194
  }
189
195
  }
190
196
  }
@@ -0,0 +1,69 @@
1
+ import { action } from "@storybook/addon-actions";
2
+ import { linkTo } from "@storybook/addon-links";
3
+ import { withKnobs, text, object } from "@storybook/addon-knobs";
4
+
5
+ import TopBar from "./TopBar";
6
+
7
+ export default {
8
+ title: "Navigation/TopBar",
9
+ decorators: [withKnobs],
10
+ component: TopBar,
11
+ };
12
+
13
+ const routes = [
14
+ {
15
+ name: "index",
16
+ stepperName: "Etapa 2",
17
+ },
18
+ {
19
+ name: "second",
20
+ stepperName: "5 - Resumo do pedido",
21
+ },
22
+ ];
23
+
24
+ const color = "#ffffff";
25
+
26
+ export const Basic = () => ({
27
+ components: { TopBar },
28
+ props: {
29
+ breadcrumbs: {
30
+ default: routes,
31
+ },
32
+ },
33
+ template: `<div>
34
+ <div class="storybook-18">
35
+ <TopBar :breadcrumbs="breadcrumbs" />
36
+ </div>
37
+ <br>
38
+
39
+ </div>`,
40
+ methods: {
41
+ updateData(payload) {
42
+ console.log(payload);
43
+ },
44
+ },
45
+ });
46
+
47
+ export const BasicColor = () => ({
48
+ components: { TopBar },
49
+ props: {
50
+ breadcrumbs: {
51
+ default: routes,
52
+ },
53
+ color: {
54
+ default: color,
55
+ },
56
+ },
57
+ template: `<div>
58
+ <div class="storybook-18" style="background-color:#923FDA">
59
+ <TopBar :breadcrumbs="breadcrumbs" :color="color" />
60
+ </div>
61
+ <br>
62
+
63
+ </div>`,
64
+ methods: {
65
+ updateData(payload) {
66
+ console.log(payload);
67
+ },
68
+ },
69
+ });
@@ -0,0 +1,70 @@
1
+ <template>
2
+ <div class="top-bar">
3
+ <div class="steppers" v-if="breadcrumbs">
4
+ <Stepper :routes="breadcrumbs" :color="color" @click="onClick" />
5
+ </div>
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ import Button from "../Buttons/Button.vue";
11
+ import Heading from "../Typography/Heading.vue";
12
+ import Paragraph from "../Typography/Paragraph.vue";
13
+ import Icon from "../Icons/Icon.vue";
14
+ import Stepper from "./Stepper.vue";
15
+
16
+ export default {
17
+ name: "TopBar",
18
+ components: { Button, Heading, Paragraph, Icon, Stepper },
19
+ props: {
20
+ breadcrumbs: {
21
+ type: Array,
22
+ required: true,
23
+ },
24
+ color: {
25
+ type: String,
26
+ required: true,
27
+ default: "#AFA2BA",
28
+ },
29
+ },
30
+ methods: {
31
+ onClick(payload) {
32
+ this.$emit("click", payload);
33
+ },
34
+ },
35
+ computed: {
36
+ shadowVar() {
37
+ return {
38
+ "--shadow-color": this.shadowColor,
39
+ };
40
+ },
41
+ },
42
+ };
43
+ </script>
44
+
45
+ <style lang="scss" scoped>
46
+ @import "./node_modules/@tiddh/brave-tokens/dist/styles/style.scss";
47
+
48
+ .top-bar {
49
+ /* color / surface / neutral / light */
50
+
51
+ // background: #ffffff;
52
+ /* shadow / level 02 */
53
+ position: relative;
54
+ width: 100%;
55
+ top: 0;
56
+ left: 0;
57
+ // box-shadow: 0px 10px 26px rgba(104, 89, 110, 0.24);
58
+ padding-top: px-size("lg", $spacing-stack-md);
59
+ padding-bottom: px-size("lg", $spacing-stack-md);
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ align-items: center;
63
+ //max-width: px-size("lg", );
64
+ padding-left: columns("lg", 1);
65
+ }
66
+
67
+ .preview-button {
68
+ cursor: pointer;
69
+ }
70
+ </style>
@@ -68,7 +68,7 @@
68
68
  import Preview from "./Preview.vue";
69
69
  import PreviewMobile from "./PreviewMobile.vue";
70
70
  import PreviewTools from "./PreviewTools.vue";
71
- import TopBar from "./TopBar.vue";
71
+ import TopBar from "../Navigation/TopBar.vue";
72
72
  import BottomBar from "./BottomBar.vue";
73
73
 
74
74
  //const $ = jQuery
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiddh/brave-vue",
3
- "version": "1.92.19",
3
+ "version": "1.92.21",
4
4
  "private": false,
5
5
  "main": "dist/brave-vue.ssr.js",
6
6
  "browser": "dist/brave-vue.esm.js",