forstok-ui-lib 5.11.0 → 5.11.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": "5.11.0",
3
+ "version": "5.11.2",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -2195,12 +2195,12 @@ export const RightPanelContainer = styled.section`
2195
2195
  display: inline-grid !important;
2196
2196
  }
2197
2197
  `
2198
- export const SearchFormWrapper = styled.div`
2198
+ export const SearchFormWrapper = styled.div<{ $mode?: string }>`
2199
2199
  position: relative;
2200
2200
  i {
2201
2201
  position: absolute;
2202
2202
  left: 12px;
2203
- top: 7px;
2203
+ top: 6px;
2204
2204
  pointer-events: none;
2205
2205
  z-index: 1;
2206
2206
  &:last-child {
@@ -2213,19 +2213,30 @@ export const SearchFormWrapper = styled.div`
2213
2213
  right: 12px;
2214
2214
  top: 6px;
2215
2215
  }
2216
- > input {
2217
- width: calc(100vw - 100px);
2218
- height: 32px;
2219
- }
2220
- @media only screen and (min-width: 768px) {
2221
- i {
2222
- top: 11px;
2223
- }
2224
- > input {
2225
- width: 300px;
2226
- height: 40px;
2216
+ ${({ $mode }:{ $mode?: string }) => {
2217
+ if ($mode === 'pos') {
2218
+ return css`
2219
+ i {
2220
+ top: 7px;
2221
+ }
2222
+ > input {
2223
+ width: calc(100vw - 100px);
2224
+ height: 32px;
2225
+ }
2226
+ @media only screen and (min-width: 768px) {
2227
+ i {
2228
+ top: 11px;
2229
+ }
2230
+ > input {
2231
+ width: 300px;
2232
+ height: 40px;
2233
+ }
2234
+ }
2235
+ `
2227
2236
  }
2228
- }
2237
+ }}
2238
+
2239
+
2229
2240
  `
2230
2241
  export const TableHeadLabel = styled.span`
2231
2242
  color: var(--mt-clr);
@@ -2458,13 +2469,15 @@ export const TableItemWrapper = styled.section<{ $mode: string, $isBorder?: bool
2458
2469
  ${TableItemColumn} {
2459
2470
  width: 960px;
2460
2471
  border-bottom: 1px solid var(--pri-clr-ln);
2461
- >* {
2472
+ > * {
2462
2473
  padding: 15px 10px;
2463
2474
  }
2464
2475
  &:first-child {
2465
2476
  border-bottom: 1px solid var(--sec-clr-ln);
2466
2477
  display: grid;
2467
- > * { padding: 0 10px 12px; }
2478
+ > * {
2479
+ padding: 0 10px 12px;
2480
+ }
2468
2481
  }
2469
2482
  &:last-child { border-bottom: none; }
2470
2483
  &[role='rowheader'] {
@@ -2472,9 +2485,14 @@ export const TableItemWrapper = styled.section<{ $mode: string, $isBorder?: bool
2472
2485
  color: var(--mt-clr);
2473
2486
  }
2474
2487
  }
2488
+ @media only screen and (min-width: 768px) {
2489
+ width: auto !important;
2490
+ }
2475
2491
  @media only screen and (min-width: 1024px) {
2476
2492
  overflow-x: unset;
2477
- ${TableItemColumn} { width: unset; }
2493
+ ${TableItemColumn} {
2494
+ width: unset;
2495
+ }
2478
2496
  }
2479
2497
  ${getTableItemWrapperModFunc}
2480
2498
  `