@finema/finework-layer 0.2.46 → 0.2.48

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.
@@ -217,7 +217,6 @@ const sidebarItems: NavigationMenuItem[] = [
217
217
  {
218
218
  label: 'Submenu 2-2',
219
219
  to: '/layout-admin/2',
220
- icon: 'i-heroicons-outline:home',
221
220
  },
222
221
  ],
223
222
  },
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.48](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.47...0.2.48) (2025-11-07)
4
+
5
+ ## [0.2.47](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.46...0.2.47) (2025-11-06)
6
+
7
+ ### Bug Fixes
8
+
9
+ * sidebar child don't have icon ([179de46](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/179de46d2bbc061ed3cdc735f9bfe50d7a1019f5))
10
+
3
11
  ## [0.2.46](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.45...0.2.46) (2025-11-06)
4
12
 
5
13
  ## [0.2.45](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.44...0.2.45) (2025-11-05)
package/app/app.config.ts CHANGED
@@ -123,7 +123,7 @@ export default defineAppConfig({
123
123
  },
124
124
  table: {
125
125
  slots: {
126
- th: 'text-[#222222] whitespace-nowrap border-r border-[#EAECF0] last:border-0 ',
126
+ th: 'text-[#222222] whitespace-nowrap border-r border-[#EAECF0] last:border-0 bg-[#F9FAFB]',
127
127
  td: 'text-[#222222] border-r border-[#EAECF0] last:border-0 align-top',
128
128
  },
129
129
  },
@@ -1,6 +1,7 @@
1
1
  @import "tailwindcss";
2
2
 
3
3
  :root {
4
+ --color-main-50: #EFF8FF;
4
5
  --color-background: var(--color-gray-50);
5
6
  }
6
7
 
@@ -207,11 +207,17 @@ const mappedItems = (items: NavigationMenuItem[]): NavigationMenuItem[] => {
207
207
  isAnyChildActive = true
208
208
  }
209
209
 
210
+ const baseClass
211
+ = 'hover:bg-[#F9FAFB] hover:text-gray-700 hover:font-bold py-2 pl-8 data-active:before:bg-[#F9FAFB] data-active:text-primary data-active:font-bold'
212
+
213
+ const hasIcon = !!child.icon
214
+ const className = hasIcon ? baseClass : `${baseClass} gap-0 data-active:text-gray-500!`
215
+ const icon = hasIcon ? child.icon : 'ph:dot-outline-fill'
216
+
210
217
  return {
211
218
  active: isChildCurrentlyActive,
212
- class:
213
- 'hover:bg-[#F9FAFB] hover:text-gray-700 hover:font-bold py-2 pl-8 data-active:before:bg-[#F9FAFB] data-active:text-primary data-active:font-bold',
214
- icon: '',
219
+ class: className,
220
+ icon,
215
221
  ...child,
216
222
  }
217
223
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.46",
4
+ "version": "0.2.48",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",