@tiddh/brave-vue 1.93.54 → 1.93.55

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.
@@ -1,108 +1,26 @@
1
1
  import { action } from '@storybook/addon-actions';
2
- import { linkTo } from '@storybook/addon-links';
3
- import { withKnobs, text, boolean, select } from '@storybook/addon-knobs';
2
+ import { withKnobs, text } from '@storybook/addon-knobs';
4
3
 
5
- import Button from './Button';
6
- import Icon from '../Icons/Icon';
4
+ import Loading from './Loading';
7
5
 
8
6
  export default {
9
- title: 'Buttons/Loading',
7
+ title: 'Loading',
10
8
  decorators: [withKnobs],
11
- component: [Button, Icon]
9
+ component: [Loading]
12
10
  };
13
11
 
14
12
 
15
- export const Loading = () => ({
16
- components: { Button, Icon },
13
+ export const Primary = () => ({
14
+ components: { Loading },
17
15
  props: {
18
- disabled: {
19
- default: boolean('Disabled', true)
20
- },
21
- inverted: {
22
- default: boolean('Inverted', false)
23
- },
24
- shadowColor: {
25
- default: text('Shadow color', '175, 162, 186')
26
- },
27
- loadingType: {
28
- default: text('Loading Type', 'spinner')
29
- },
30
- isLoading:{
31
- default: boolean('isLoading', true)
32
- }
33
-
16
+ // title: {
17
+ // default: text('Title', 'mochila-biscoito')
18
+ // },
34
19
  },
35
20
  template: `<div>
36
21
  <div class="storybook-6">
37
- <Button kind="primary" size="xl" width="fluid" :disabled="disabled" :loadingType="loadingType" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
38
- Fluid - Cols 6
39
- </Button>
40
- </div>
41
- <br>
42
- <div class="storybook-12">
43
- <Button kind="primary" size="xl" width="fluid" icon="right" :disabled="disabled" :loadingType="loadingType" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
44
- <span>Fluid - Cols 12</span>
45
- <Icon name="collapse" fill="#fff" stroke="transparent" />
46
- </Button>
47
- </div>
48
-
49
- <br>
50
-
51
- <div class="storybook-12">
52
- <Button kind="ghost" size="md" width="fluid" icon="right" :disabled="disabled" :loadingType="loadingType" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
53
- <span>Fluid - Cols 12</span>
54
- <Icon name="collapse" fill="#fff" stroke="transparent" />
55
- </Button>
56
- </div>
57
- <br>
58
- <div class="storybook-12">
59
- <Button kind="ghost" size="sm" width="fluid" icon="right" :disabled="disabled" :loadingType="loadingType" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
60
- <span>Fluid - Cols 12</span>
61
- <Icon name="collapse" fill="#fff" stroke="transparent" />
62
- </Button>
63
- </div>
64
-
65
- <br>
66
-
67
- <div class="storybook-12">
68
- <Button kind="ghost" size="xl" width="fluid" icon="right" :disabled="disabled" :loadingType="loadingType" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
69
- <span>Fluid - Cols 12</span>
70
- <Icon name="collapse" fill="#fff" stroke="transparent" />
71
- </Button>
22
+ <Loading />
72
23
  </div>
73
- <br>
74
- <div class="storybook-12">
75
- <Button kind="ghost" size="xl" width="fluid" icon="right" :disabled="disabled" :loadingType="loadingType" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
76
- <span>Fluid - Cols 12</span>
77
- <Icon name="collapse" fill="#fff" stroke="transparent" />
78
- </Button>
79
- </div>
80
-
81
-
82
- <br>
83
-
84
- <div class="storybook-12">
85
- <Button kind="secondary" size="xl" width="fluid" icon="right" :disabled="disabled" :loadingType="loadingType" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
86
- <span>Fluid - Cols 12</span>
87
- <Icon name="collapse" fill="#fff" stroke="transparent" />
88
- </Button>
89
- </div>
90
- <br>
91
- <div class="storybook-12">
92
- <Button kind="secondary" size="xl" width="fluid" icon="right" :disabled="disabled" :loadingType="loadingType" :isLoading="isLoading" :inverted="inverted" :shadow-color="shadowColor" @click="action">
93
- <span>Fluid - Cols 12</span>
94
- <Icon name="collapse" fill="#fff" stroke="transparent" />
95
- </Button>
96
- </div>
97
-
98
-
99
24
  </div>`,
100
25
  methods: { action: action('clicked') },
101
- });
102
-
103
- const sizeList = {
104
- XLarge: 'xl',
105
- Large: 'lg',
106
- Medium: 'md',
107
- Small: 'sm'
108
- }
26
+ });
@@ -5,7 +5,7 @@
5
5
  class="sidebar-brave"
6
6
  :class="sidebarOpen ? 'open-sidebar' : 'close-sidebar'"
7
7
  >
8
- <div class="overlay" v-if="sidebarOpen"></div>
8
+ <div class="overlay"></div>
9
9
 
10
10
  <div class="sidebar">
11
11
  <div class="sidebar-close" @click="closeSidebar()">
@@ -506,7 +506,7 @@
506
506
  .sidebar-brave {
507
507
  width: 100%;
508
508
  position: fixed;
509
- right: 0px;
509
+ left: 100%;
510
510
  top: 0;
511
511
  height: 100%;
512
512
  z-index: 999;
@@ -539,6 +539,7 @@
539
539
 
540
540
  &.open-sidebar {
541
541
  display: block;
542
+ left: 0;
542
543
  .sidebar {
543
544
  right: 0px;
544
545
  opacity: 1;
@@ -5,7 +5,7 @@
5
5
  class="sidebar-brave"
6
6
  :class="sidebarOpen ? 'open-sidebar' : 'close-sidebar'"
7
7
  >
8
- <div class="overlay" v-if="sidebarOpen"></div>
8
+ <div class="overlay"></div>
9
9
 
10
10
  <div class="sidebar">
11
11
  <div class="sidebar-close" @click="closeSidebar()">
@@ -506,7 +506,7 @@
506
506
  .sidebar-brave {
507
507
  width: 100%;
508
508
  position: fixed;
509
- right: 0px;
509
+ left: 100%;
510
510
  top: 0;
511
511
  height: 100%;
512
512
  z-index: 999;
@@ -539,6 +539,7 @@
539
539
 
540
540
  &.open-sidebar {
541
541
  display: block;
542
+ left: 0;
542
543
  .sidebar {
543
544
  right: 0px;
544
545
  opacity: 1;
@@ -5,7 +5,7 @@
5
5
  class="sidebar-brave"
6
6
  :class="sidebarOpen ? 'open-sidebar' : 'close-sidebar'"
7
7
  >
8
- <div class="overlay" v-if="sidebarOpen"></div>
8
+ <div class="overlay"></div>
9
9
 
10
10
  <div class="sidebar">
11
11
  <div class="sidebar-close" @click="closeSidebar()">
@@ -506,7 +506,7 @@
506
506
  .sidebar-brave {
507
507
  width: 100%;
508
508
  position: fixed;
509
- right: 0px;
509
+ left: 100%;
510
510
  top: 0;
511
511
  height: 100%;
512
512
  z-index: 999;
@@ -539,6 +539,7 @@
539
539
 
540
540
  &.open-sidebar {
541
541
  display: block;
542
+ left: 0;
542
543
  .sidebar {
543
544
  right: 0px;
544
545
  opacity: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiddh/brave-vue",
3
- "version": "1.93.54",
3
+ "version": "1.93.55",
4
4
  "private": false,
5
5
  "main": "dist/brave-vue.ssr.js",
6
6
  "browser": "dist/brave-vue.esm.js",