forstok-ui-lib 6.2.1 → 6.2.2

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": "forstok-ui-lib",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -2560,7 +2560,7 @@ export const TableItemWrapper = styled.section<{ $mode: string, $isBorder?: bool
2560
2560
  }
2561
2561
  ${getTableItemWrapperModFunc}
2562
2562
  `
2563
- export const CollapseContainer = styled.div<{ $mode?: string }>`
2563
+ export const CollapseContainer = styled.div<{ $mode?: 'nav' }>`
2564
2564
  position: relative;
2565
2565
  top: 0;
2566
2566
  overflow-y: hidden;
@@ -2574,17 +2574,9 @@ export const CollapseContainer = styled.div<{ $mode?: string }>`
2574
2574
  &.is-loading {
2575
2575
  height: 0 !important;
2576
2576
  }
2577
- ${({ $mode }:{ $mode?: string }) => {
2578
- if ($mode === 'nav') {
2579
- return css`
2580
- display: block;
2581
- padding-top: 1.2em;
2582
- > div:last-child {
2583
- margin-bottom: 4px;
2584
- }
2585
- `
2586
- }
2587
- }}
2577
+ ${({ $mode }) => $mode === 'nav' && css`
2578
+ display: block;
2579
+ `}
2588
2580
  `
2589
2581
  export const PaginationContainer = styled.div`
2590
2582
  margin: 10px auto;