@pocketprep/ui-kit 3.5.2 → 3.5.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.
- package/dist/@pocketprep/ui-kit.css +1 -1
- package/dist/@pocketprep/ui-kit.js +862 -857
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +3 -3
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/Buttons/Button.vue +40 -1
- package/lib/components/SidePanels/SidePanel.vue +2 -0
- package/package.json +1 -1
|
@@ -45,7 +45,7 @@ import { dark } from '../../directives'
|
|
|
45
45
|
|
|
46
46
|
type TButtonType = 'primary' | 'primary-yellow' | 'primary-red' | 'secondary'
|
|
47
47
|
| 'secondary-yellow-dark' | 'tertiary' | 'tertiary-red' | 'tertiary-small' | 'tertiary-red-small' | 'icon'
|
|
48
|
-
| 'icon-yellow' | 'outline'
|
|
48
|
+
| 'icon-yellow' | 'outline' | 'oval-dark'
|
|
49
49
|
|
|
50
50
|
@Component({
|
|
51
51
|
components: {
|
|
@@ -534,6 +534,45 @@ export default class Button extends Vue {
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
+
&--oval-dark {
|
|
538
|
+
user-select: none;
|
|
539
|
+
outline: none;
|
|
540
|
+
color: $white;
|
|
541
|
+
background-color: transparent;
|
|
542
|
+
font-weight: 500;
|
|
543
|
+
font-size: 15px;
|
|
544
|
+
line-height: 20px;
|
|
545
|
+
height: 26px;
|
|
546
|
+
padding: 5px 11px;
|
|
547
|
+
display: inline-flex;
|
|
548
|
+
align-items: center;
|
|
549
|
+
border: 1px solid rgba($pewter, 0.30);
|
|
550
|
+
border-radius: 13px;
|
|
551
|
+
|
|
552
|
+
&:enabled {
|
|
553
|
+
&:hover {
|
|
554
|
+
border: 1px solid $banana-bread;
|
|
555
|
+
background: rgba($banana-bread, 0.20);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
&:focus {
|
|
559
|
+
border: 1px solid $banana-bread;
|
|
560
|
+
background: rgba($banana-bread, 0.20);
|
|
561
|
+
|
|
562
|
+
&::before {
|
|
563
|
+
content: '';
|
|
564
|
+
position: absolute;
|
|
565
|
+
top: -5px;
|
|
566
|
+
bottom: -5px;
|
|
567
|
+
left: -8px;
|
|
568
|
+
right: -8px;
|
|
569
|
+
border: 1px solid $banana-bread;
|
|
570
|
+
border-radius: 6px;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
537
576
|
&:disabled {
|
|
538
577
|
opacity: 0.4;
|
|
539
578
|
cursor: auto;
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
</div>
|
|
107
107
|
<div class="uikit-side-panel__foot-right">
|
|
108
108
|
<PocketButton
|
|
109
|
+
v-if="showCancelButton"
|
|
109
110
|
class="uikit-side-panel__foot-cancel"
|
|
110
111
|
type="secondary"
|
|
111
112
|
:is-dark-mode="isDarkMode"
|
|
@@ -149,6 +150,7 @@ export default class SidePanel extends Vue {
|
|
|
149
150
|
@Prop({ default: false }) disableTransition!: boolean
|
|
150
151
|
@Prop({ default: false }) isTeachSidePanel!: boolean
|
|
151
152
|
@Prop({ default: false }) isDarkMode!: boolean
|
|
153
|
+
@Prop({ default: true }) showCancelButton!: boolean
|
|
152
154
|
|
|
153
155
|
openSidePanel = false
|
|
154
156
|
notContentHeight = this.tabs?.length ? 262 : 218
|