@citizenplane/pimp 18.9.32 → 18.9.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenplane/pimp",
3
- "version": "18.9.32",
3
+ "version": "18.9.34",
4
4
  "scripts": {
5
5
  "dev": "storybook dev -p 8081",
6
6
  "build-storybook": "storybook build --output-dir ./docs",
@@ -81,6 +81,7 @@ export type CpMenuPlacement = 'start' | 'end'
81
81
 
82
82
  export interface Props {
83
83
  class?: string
84
+ drawerClass?: string
84
85
  forcePopover?: boolean
85
86
  isFullHeightDrawer?: boolean
86
87
  items?: MenuItem[]
@@ -90,6 +91,7 @@ export interface Props {
90
91
 
91
92
  const props = withDefaults(defineProps<Props>(), {
92
93
  class: undefined,
94
+ drawerClass: undefined,
93
95
  isFullHeightDrawer: false,
94
96
  items: undefined,
95
97
  keepOpenOnClick: false,
@@ -124,10 +126,23 @@ const drawerOverlayDynamicClass = computed(() => ({
124
126
  }))
125
127
 
126
128
  const drawerPt = {
127
- root: { class: ['cpMenu__drawer', { 'cpMenu__drawer--isFullHeight': props.isFullHeightDrawer }] },
128
- content: { class: 'cpMenu__drawerContent' },
129
- header: { class: 'cpMenu__drawerHeader' },
130
- transition: { name: 'drawer', duration: 300 },
129
+ root: {
130
+ class: [
131
+ 'cpMenu__drawer',
132
+ { 'cpMenu__drawer--isFullHeight': props.isFullHeightDrawer },
133
+ props.drawerClass,
134
+ ],
135
+ },
136
+ content: {
137
+ class: 'cpMenu__drawerContent'
138
+ },
139
+ header: {
140
+ class: 'cpMenu__drawerHeader'
141
+ },
142
+ transition: {
143
+ name: 'drawer',
144
+ duration: 300
145
+ },
131
146
  }
132
147
 
133
148
  const isPopoverPlacementEnd = computed(() => props.placement === 'end')
@@ -97,7 +97,8 @@ const pageLastResultIndex = computed(() => {
97
97
 
98
98
  <style scoped lang="scss">
99
99
  .cpTableFooter {
100
- padding: 0 var(--cp-spacing-xl) 0;
100
+ z-index: auto;
101
+ padding: var(--cp-spacing-xl) var(--cp-spacing-lg) 0;
101
102
 
102
103
  &__loader {
103
104
  display: inline-flex;
@@ -109,11 +110,11 @@ const pageLastResultIndex = computed(() => {
109
110
  }
110
111
 
111
112
  &__desktop {
112
- display: none;
113
+ display: flex;
113
114
  }
114
115
 
115
116
  &__mobile {
116
- display: flex;
117
+ display: none;
117
118
  margin-block: var(--cp-spacing-lg);
118
119
 
119
120
  .cpTableFooter__loader {
@@ -123,17 +124,16 @@ const pageLastResultIndex = computed(() => {
123
124
  }
124
125
  }
125
126
 
126
- @media (min-width: 769px) {
127
+ @media (max-width: 768px) {
127
128
  .cpTableFooter {
128
- z-index: auto;
129
- padding: var(--cp-spacing-xl) var(--cp-spacing-lg) 0;
129
+ padding: 0 var(--cp-spacing-lg) 0;
130
130
 
131
131
  &__desktop {
132
- display: flex;
132
+ display: none;
133
133
  }
134
134
 
135
135
  &__mobile {
136
- display: none;
136
+ display: flex;
137
137
  }
138
138
  }
139
139
  }