ketekny-ui-kit 1.0.128 → 1.0.129

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/README.md CHANGED
@@ -205,7 +205,7 @@ Components:
205
205
  - `kSelectButton`, `kTags`, `kSearch`, `kArrayList`, `kList`, `kTextArea`
206
206
  - `kDialog`, `kDrawer`
207
207
  - `kAppHeader`, `kAppFooter`, `kAppMain`, `kHero`
208
- - `kSingleColPage`, `kMultiColPage`, `kTwoColPage` (backwards-compatible alias), `twoColLayout`, `legacyTwoColLayout`
208
+ - `kSingleColPage`, `kMultiColPage`, `twoColLayout`, `legacyTwoColLayout`
209
209
 
210
210
  Other exports:
211
211
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ketekny-ui-kit",
3
3
  "type": "module",
4
- "version": "1.0.128",
4
+ "version": "1.0.129",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -97,11 +97,11 @@
97
97
  <div class="mx-auto flex min-h-0 w-full max-w-none flex-1 gap-2">
98
98
  <aside
99
99
  v-if="showLeftSidebar"
100
- class="min-h-0 shrink-0 overflow-y-auto bg-slate-100 px-4 sm:px-6 lg:ml-8 lg:pr-4 lg:pl-0"
101
- :class="mobileSidebarClass('left')"
100
+ class="min-h-0 shrink-0 overflow-y-auto bg-slate-100"
101
+ :class="[mobileSidebarClass('left'), sidebarSurfaceClass('left')]"
102
102
  :style="mobileSidebarStyle('left')"
103
103
  >
104
- <div v-if="effectiveSidebarLeftTitle" class="pb-3">
104
+ <div v-if="effectiveSidebarLeftTitle" :class="sidebarTitleWrapClass('left')">
105
105
  <p class="text-xs font-semibold uppercase tracking-[0.22em] text-slate-500">
106
106
  {{ effectiveSidebarLeftTitle }}
107
107
  </p>
@@ -115,11 +115,11 @@
115
115
  </section>
116
116
  <aside
117
117
  v-if="showRightSidebar"
118
- class="min-h-0 shrink-0 overflow-y-auto bg-slate-100 px-4 sm:px-6 lg:mr-8 lg:pl-4 lg:pr-0"
119
- :class="mobileSidebarClass('right')"
118
+ class="min-h-0 shrink-0 overflow-y-auto bg-slate-100"
119
+ :class="[mobileSidebarClass('right'), sidebarSurfaceClass('right')]"
120
120
  :style="mobileSidebarStyle('right')"
121
121
  >
122
- <div v-if="sidebarRightTitle" class="pb-3">
122
+ <div v-if="sidebarRightTitle" :class="sidebarTitleWrapClass('right')">
123
123
  <p class="text-xs font-semibold uppercase tracking-[0.22em] text-slate-500">
124
124
  {{ sidebarRightTitle }}
125
125
  </p>
@@ -170,6 +170,14 @@ export default {
170
170
  type: String,
171
171
  default: '',
172
172
  },
173
+ sidebarDense: {
174
+ type: Boolean,
175
+ default: false,
176
+ },
177
+ sidebarLeftDense: {
178
+ type: Boolean,
179
+ default: false,
180
+ },
173
181
  sidebarTitle: {
174
182
  type: String,
175
183
  default: '',
@@ -182,6 +190,10 @@ export default {
182
190
  type: String,
183
191
  default: '',
184
192
  },
193
+ sidebarRightDense: {
194
+ type: Boolean,
195
+ default: false,
196
+ },
185
197
  sidebarRightTitle: {
186
198
  type: String,
187
199
  default: '',
@@ -228,6 +240,9 @@ export default {
228
240
  effectiveSidebarLeftTitle() {
229
241
  return this.sidebarLeftTitle || this.sidebarTitle
230
242
  },
243
+ effectiveSidebarLeftDense() {
244
+ return this.sidebarLeftDense || this.sidebarDense
245
+ },
231
246
  effectiveSidebarRightWidth() {
232
247
  return this.sidebarRightWidth || this.effectiveSidebarLeftWidth
233
248
  },
@@ -286,6 +301,7 @@ export default {
286
301
  return {
287
302
  side,
288
303
  title: side === 'right' ? this.sidebarRightTitle : this.effectiveSidebarLeftTitle,
304
+ dense: side === 'right' ? this.sidebarRightDense : this.effectiveSidebarLeftDense,
289
305
  isDesktopViewport: this.isDesktopViewport,
290
306
  mobileSidebarOpen: this.mobileSidebarOpen,
291
307
  mobileSidebarSide: this.mobileSidebarSide,
@@ -349,6 +365,20 @@ export default {
349
365
  sidebarTitleForSide(side) {
350
366
  return side === 'right' ? this.sidebarRightTitle : this.effectiveSidebarLeftTitle
351
367
  },
368
+ sidebarDenseForSide(side) {
369
+ return side === 'right' ? this.sidebarRightDense : this.effectiveSidebarLeftDense
370
+ },
371
+ sidebarSurfaceClass(side) {
372
+ if (this.sidebarDenseForSide(side)) {
373
+ return ''
374
+ }
375
+ return side === 'right'
376
+ ? 'px-4 sm:px-6 lg:mr-8 lg:pl-4 lg:pr-0'
377
+ : 'px-4 sm:px-6 lg:ml-8 lg:pr-4 lg:pl-0'
378
+ },
379
+ sidebarTitleWrapClass(side) {
380
+ return this.sidebarDenseForSide(side) ? '' : 'pb-3'
381
+ },
352
382
  mobileSidebarButtonLabel(side) {
353
383
  if (this.mobileSidebarOpen && this.mobileSidebarSide === side) {
354
384
  return 'Hide sidebar'