forstok-ui-lib 6.2.11 → 6.3.1

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.
@@ -1,5 +1,6 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { responseWidth, formLabel, elipsis, multiElipsis, headTable, clearList, dropBase, buttonStyle, buttonActiveStyle, buttonHoverStyle } from './bases.styles';
3
+ import { ModeListTableColumn } from '../../typeds';
3
4
 
4
5
  const initialStyles = css `
5
6
  width: 32px;
@@ -77,46 +78,6 @@ const getInputGroupModFunc = ({ $mode, $required }:{ $mode?: string, $required?:
77
78
  }
78
79
  return style
79
80
  }
80
- const getBulkActionWrapperModifiedStyled = ({ $isOpen }:{ $isOpen?: boolean }) => {
81
- let style = ``
82
- if ($isOpen) {
83
- style += `
84
- transition: bottom .2s;
85
- bottom: 0;
86
- @media (max-width: 767.9px) {
87
- @keyframes droptoup {
88
- 50% {
89
- bottom: -100px;
90
- }
91
- 50% {
92
- bottom: -50px;
93
- }
94
- 100% {
95
- bottom: 0px;
96
- }
97
- }
98
- &._refMasterTableBulkWrapper {
99
- display: grid;
100
- left: 0;
101
- animation: droptoup .075s linear;
102
- bottom: 0;
103
- overflow-x: hidden;
104
- & + ._refDropdownOverlay {
105
- display: block;
106
- width: 100%;
107
- height: 100%;
108
- position: fixed;
109
- top: 0;
110
- left: 0;
111
- z-index: 100;
112
- background-color: rgba(0, 0, 0, .5);
113
- }
114
- }
115
- }
116
- `
117
- }
118
- return style
119
- }
120
81
  const getTableHeaderModFunc = ({ $mode, $isPlayground }:{ $mode?: string, $isPlayground?: boolean }) => {
121
82
  let style = `
122
83
  & ${TableHeadLabel} {
@@ -1164,6 +1125,7 @@ const getTableItemModFunc = ({ $mode }:{ $mode?: string }) => {
1164
1125
  style +=`
1165
1126
  grid-auto-flow: column;
1166
1127
  grid-template-columns: 1fr;
1128
+ margin-top: 16px;
1167
1129
  > aside {
1168
1130
  padding: 20px 10px;
1169
1131
  }
@@ -1793,18 +1755,18 @@ export const HeaderContainer = styled.aside`
1793
1755
  grid-gap: 8px;
1794
1756
  grid-template-columns: max-content max-content;
1795
1757
  align-items: center;
1796
- position: relative;
1797
- margin-top: 10px;
1798
1758
  @media only screen and (min-width: 768px) {
1799
- margin-top: 0px;
1800
- top: 10px;
1801
1759
  position: absolute;
1802
- right: 0;
1760
+ right: 20px;
1761
+ top: 10px;
1803
1762
  }
1804
1763
  @media only screen and (min-width: 1366px) {
1805
1764
  right: 20px;
1806
1765
  }
1807
- `
1766
+ @media only screen and (min-width: 1800px) {
1767
+ right: 28px;
1768
+ }
1769
+ `
1808
1770
  export const Title = styled.h1`
1809
1771
  font-size: 22px;
1810
1772
  color: var(--ter-clr);
@@ -1814,7 +1776,6 @@ export const Title = styled.h1`
1814
1776
  font-weight: 400;
1815
1777
  margin-top: 5px;
1816
1778
  letter-spacing: normal;
1817
- line-height: normal;
1818
1779
  }
1819
1780
  @media only screen and (min-width: 768px) {
1820
1781
  font-size: 1.5rem;
@@ -1823,23 +1784,19 @@ export const Title = styled.h1`
1823
1784
  }
1824
1785
  }
1825
1786
  `
1826
- export const PanelWrapper = styled.section<{ $mode?: string }>`
1787
+ export const PanelWrapper = styled.section<{ $mode?: 'full' }>`
1827
1788
  ${responseWidth}
1828
1789
  position: relative;
1829
1790
  min-height: 1px;
1830
1791
  margin: 0 auto;
1831
- padding-top: 8px;
1792
+ padding-top: 4px;
1832
1793
  padding-bottom: 10px;
1833
1794
  @media only screen and (min-width: 768px) {
1834
- padding: 8px 30px 16px;
1795
+ padding: 4px 30px 16px;
1835
1796
  }
1836
- ${({ $mode }:{ $mode?: string }) => {
1837
- if ($mode === 'full') {
1838
- return css`
1839
- width: 100%;
1840
- `
1841
- }
1842
- }}
1797
+ ${({ $mode }) => $mode === 'full' && css`
1798
+ width: 100%;
1799
+ `}
1843
1800
  `
1844
1801
  export const PanelContainer = styled.section<{ $mode?: string }>`
1845
1802
  position: relative;
@@ -1912,6 +1869,16 @@ export const ListContainer = styled.section`
1912
1869
  &:first-child {
1913
1870
  margin-top: -4px;
1914
1871
  }
1872
+ > aside:first-child {
1873
+ @media only screen and (min-width: 768px) {
1874
+ padding-left: 16px;
1875
+ padding-right: 16px;
1876
+ }
1877
+ @media only screen and (min-width: 1024px) {
1878
+ padding-left: 0;
1879
+ padding-right: 0;
1880
+ }
1881
+ }
1915
1882
  `
1916
1883
  export const TabsContainer = styled.section<{ $mode?: string }>`
1917
1884
  width: 100%;
@@ -1927,9 +1894,6 @@ export const TabsContainer = styled.section<{ $mode?: string }>`
1927
1894
  } else if ($mode === 'no-header') {
1928
1895
  return css`
1929
1896
  padding-top: 0;
1930
- @media only screen and (min-width: 1366px) {
1931
- padding-top: 12px;
1932
- }
1933
1897
  `
1934
1898
  }
1935
1899
  }}
@@ -1937,17 +1901,16 @@ export const TabsContainer = styled.section<{ $mode?: string }>`
1937
1901
  export const TabsContent = styled.div<{ $mode?: string }>`
1938
1902
  padding-top: 16px;
1939
1903
  &._refNoTab {
1940
- padding-top: 9px;
1941
- @media only screen and (min-width: 768px) {
1942
- padding-top: 11px;
1943
- }
1904
+ padding-top: 0;
1944
1905
  }
1945
1906
  @media only screen and (min-width: 768px) {
1946
- padding-top: 24px;
1907
+ &._refNoTab {
1908
+ padding-top: 16px;
1909
+ }
1947
1910
  }
1948
1911
  ${getTabsContentModFunc}
1949
1912
  `
1950
- export const FoContainer = styled.section<{ $mode?: string }>`
1913
+ export const FoContainer = styled.section<{ $mode?: 'detail' }>`
1951
1914
  position: relative;
1952
1915
  > section,
1953
1916
  > article {
@@ -1959,38 +1922,35 @@ export const FoContainer = styled.section<{ $mode?: string }>`
1959
1922
  }
1960
1923
  }
1961
1924
  > article {
1962
- height: calc(100vh - 50px);
1925
+ height: calc(100vh - 48px);
1963
1926
  }
1964
- ${({ $mode }:{ $mode?: string }) => {
1965
- if ($mode === 'detail') {
1966
- return css`
1967
- margin-top: -4px;
1968
- @media only screen and (min-width: 768px) {
1969
- > section,
1970
- > article {
1971
- > aside {
1972
- padding-left: 16px;
1973
- padding-right: 16px;
1974
- }
1975
- }
1927
+ ${({ $mode }) => $mode === 'detail' && css`
1928
+ margin-top: -4px;
1929
+ @media only screen and (min-width: 768px) {
1930
+ > section,
1931
+ > article {
1932
+ > aside {
1933
+ padding-left: 0;
1934
+ padding-right: 0;
1976
1935
  }
1977
- @media only screen and (min-width: 1024px) {
1978
- > section,
1979
- > article {
1980
- > aside {
1981
- padding-left: 0;
1982
- padding-right: 0;
1983
- }
1984
- }
1936
+ }
1937
+ }
1938
+ @media only screen and (min-width: 1024px) {
1939
+ > section,
1940
+ > article {
1941
+ > aside {
1942
+ padding-left: 0;
1943
+ padding-right: 0;
1985
1944
  }
1986
- `
1945
+ }
1987
1946
  }
1988
- }}
1947
+ `}
1989
1948
  `
1990
1949
  export const BreadcrumbContainer = styled.aside`
1991
1950
  position: relative;
1992
- padding: 18px 16px;
1951
+ padding: 0;
1993
1952
  text-align: center;
1953
+ margin-left: 9px !important;
1994
1954
  > a {
1995
1955
  &:first-child {
1996
1956
  display: none;
@@ -1998,8 +1958,8 @@ export const BreadcrumbContainer = styled.aside`
1998
1958
  &:nth-child(2) {
1999
1959
  display: inline;
2000
1960
  position: absolute;
2001
- top: 20px;
2002
- left: .625em;
1961
+ top: 0;
1962
+ left: 0;
2003
1963
  }
2004
1964
  > i {
2005
1965
  float: left;
@@ -2010,14 +1970,15 @@ export const BreadcrumbContainer = styled.aside`
2010
1970
  display: none;
2011
1971
  }
2012
1972
  @media only screen and (min-width: 375px) {
1973
+ margin-left: 16px !important;
2013
1974
  > a {
2014
1975
  &:nth-child(2) {
2015
- left: 16px;
1976
+ left: 4px;
2016
1977
  }
2017
1978
  }
2018
1979
  }
2019
1980
  @media only screen and (min-width: 768px) {
2020
- padding: 8px 30px 20px;
1981
+ padding: 8px 30px 0;
2021
1982
  text-align: left;
2022
1983
  b {
2023
1984
  font-size: .875rem;
@@ -2035,16 +1996,19 @@ export const BreadcrumbContainer = styled.aside`
2035
1996
  }
2036
1997
  }
2037
1998
  }
1999
+ @media (min-width: 1366px) {
2000
+ margin-left: 28px !important;
2001
+ }
2038
2002
  `
2039
2003
  export const InfoGroup = styled.div`
2040
2004
  display: inline-grid;
2041
2005
  grid-auto-flow: column;
2042
- grid-template-columns: minmax(140px, 150px) minmax(140px, 1fr);
2006
+ grid-template-columns: minmax(140px, 165px) minmax(140px, 1fr);
2043
2007
  grid-gap: 5px;
2044
2008
  width: 100%;
2045
2009
  justify-content: left;
2046
2010
  margin-bottom: 14px;
2047
- > span:first-child {
2011
+ span {
2048
2012
  position: relative;
2049
2013
  &:after {
2050
2014
  position: absolute;
@@ -2057,7 +2021,7 @@ export const InfoGroup = styled.div`
2057
2021
  word-break: break-word;
2058
2022
  }
2059
2023
  `
2060
- export const MuteLabel = styled.span<{ $size?: string }>`
2024
+ export const MuteLabel = styled.span<{ $size?: 'medium' }>`
2061
2025
  color: var(--mt-clr);
2062
2026
  font-size: 12px;
2063
2027
  word-break: break-all;
@@ -2070,16 +2034,13 @@ export const MuteLabel = styled.span<{ $size?: string }>`
2070
2034
  margin-right: 0;
2071
2035
  }
2072
2036
  }
2073
- ${({ $size }:{ $size?: string }) => {
2074
- if ($size === 'medium')
2075
- return css`
2076
- font-size: 13px;
2077
- line-height: 12px;
2078
- * {
2079
- margin-right: 4px;
2080
- }
2081
- `
2082
- }}
2037
+ ${({ $size }) => $size === 'medium' && css`
2038
+ font-size: 13px;
2039
+ line-height: 12px;
2040
+ * {
2041
+ margin-right: 4px;
2042
+ }
2043
+ `}
2083
2044
  `
2084
2045
  export const InputGroup = styled.article<{ $mode?: string, $required?: boolean }>`
2085
2046
  > label,
@@ -2088,11 +2049,13 @@ export const InputGroup = styled.article<{ $mode?: string, $required?: boolean }
2088
2049
  margin-bottom: 6px;
2089
2050
  padding: 0 6px;
2090
2051
  display: block;
2091
- font-size: 14px;
2092
2052
  }
2093
2053
  > div {
2094
2054
  display: grid;
2095
2055
  }
2056
+ ._refRangeContainer {
2057
+ width: 100%;
2058
+ }
2096
2059
  ${getInputGroupModFunc}
2097
2060
  `
2098
2061
  export const BoxContainer = styled.aside`
@@ -2117,6 +2080,10 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
2117
2080
  transition: bottom .2s ease-in-out;
2118
2081
  overflow: auto;
2119
2082
  white-space: nowrap;
2083
+ &.is-active {
2084
+ transition: bottom .2s;
2085
+ bottom: 0;
2086
+ }
2120
2087
  i {
2121
2088
  position: relative;
2122
2089
  top: 5px;
@@ -2125,7 +2092,8 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
2125
2092
  position: relative;
2126
2093
  top: 7px;
2127
2094
  }
2128
- button, a {
2095
+ button,
2096
+ a {
2129
2097
  padding: 6px 16px;
2130
2098
  font-size: 13px;
2131
2099
  min-height: unset;
@@ -2142,10 +2110,14 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
2142
2110
  box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
2143
2111
  border-radius: 10px 10px 0px 0px;
2144
2112
  display: none;
2145
- >i, >span, >button { display: none; }
2146
- >section {
2113
+ > i,
2114
+ > span,
2115
+ > button {
2116
+ display: none;
2117
+ }
2118
+ > section {
2147
2119
  padding: 1em;
2148
- >section >article {
2120
+ > section > article {
2149
2121
  display: inline-grid;
2150
2122
  grid-auto-flow: row;
2151
2123
  grid-gap: 12px;
@@ -2156,18 +2128,83 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
2156
2128
  display:none;
2157
2129
  }
2158
2130
  }
2131
+ &.is-active {
2132
+ @keyframes droptoup {
2133
+ 50% {
2134
+ bottom: -100px;
2135
+ }
2136
+ 50% {
2137
+ bottom: -50px;
2138
+ }
2139
+ 100% {
2140
+ bottom: 0px;
2141
+ }
2142
+ }
2143
+ &._refMasterTableBulkWrapper {
2144
+ display: grid;
2145
+ left: 0;
2146
+ animation: droptoup .075s linear;
2147
+ bottom: 0;
2148
+ overflow-x: hidden;
2149
+ & + ._refDropdownOverlay {
2150
+ display: block;
2151
+ width: 100%;
2152
+ height: 100%;
2153
+ position: fixed;
2154
+ top: 0;
2155
+ left: 0;
2156
+ z-index: 100;
2157
+ background-color: rgba(0, 0, 0, .1);
2158
+ }
2159
+ }
2160
+ }
2159
2161
  }
2160
- ${getBulkActionWrapperModifiedStyled}
2162
+ ${({ $isOpen }) => $isOpen && css`
2163
+ transition: bottom .2s;
2164
+ bottom: 0;
2165
+ @media (max-width: 767.9px) {
2166
+ @keyframes droptoup {
2167
+ 50% {
2168
+ bottom: -100px;
2169
+ }
2170
+ 50% {
2171
+ bottom: -50px;
2172
+ }
2173
+ 100% {
2174
+ bottom: 0px;
2175
+ }
2176
+ }
2177
+ &._refMasterTableBulkWrapper {
2178
+ display: grid;
2179
+ left: 0;
2180
+ animation: droptoup .075s linear;
2181
+ bottom: 0;
2182
+ overflow-x: hidden;
2183
+ & + ._refDropdownOverlay {
2184
+ display: block;
2185
+ width: 100%;
2186
+ height: 100%;
2187
+ position: fixed;
2188
+ top: 0;
2189
+ left: 0;
2190
+ z-index: 100;
2191
+ background-color: rgba(0, 0, 0, .1);
2192
+ }
2193
+ }
2194
+ }
2195
+ `}
2161
2196
  `
2162
2197
  export const InitialContainer = styled.span`
2163
- ${initialStyles}
2198
+ height: 32px;
2199
+ background-color: #000;
2164
2200
  align-items: center;
2165
2201
  display: grid;
2166
2202
  color: #fff;
2167
- text-align: center;
2203
+ text-align: center !important;
2168
2204
  border-radius: var(--ter-rd);
2205
+ width: 100%;
2169
2206
  `
2170
- export const MasterTableActionWrapper = styled.section<{ $mode?: string }>`
2207
+ export const MasterTableActionWrapper = styled.section<{ $mode?: 'picklist' }>`
2171
2208
  height: 35px;
2172
2209
  border-bottom: 1px solid var(--tab-clr-ln);
2173
2210
  background-color: var(--pri-clr-bg);
@@ -2181,20 +2218,16 @@ export const MasterTableActionWrapper = styled.section<{ $mode?: string }>`
2181
2218
  grid-gap: 5px;
2182
2219
  }
2183
2220
  }
2184
- ${({ $mode }:{ $mode?: string }) => {
2185
- if ($mode === 'picklist') {
2186
- return css`
2187
- background-color: var(--ter-clr-bg);
2188
- border-top: 1px solid var(--tab-clr-ln);
2189
- height: 50px;
2190
- > div {
2191
- height: 50px !important;
2192
- }
2193
- `
2221
+ ${({ $mode }) => $mode === 'picklist' && css`
2222
+ background-color: var(--ter-clr-bg);
2223
+ border-top: 1px solid var(--tab-clr-ln);
2224
+ height: 50px;
2225
+ > div {
2226
+ height: 50px !important;
2194
2227
  }
2195
- }}
2228
+ `}
2196
2229
  `
2197
- export const FigureWraper = styled.figure<{ $size?: string, $mode?: string }>`
2230
+ export const FigureWraper = styled.figure<{ $size?: string }>`
2198
2231
  margin: 0;
2199
2232
  position: relative;
2200
2233
  overflow: hidden;
@@ -2210,16 +2243,11 @@ export const FigureWraper = styled.figure<{ $size?: string, $mode?: string }>`
2210
2243
  height: 100%;
2211
2244
  background-color: var(--pri-clr-bg);
2212
2245
  }
2213
- ${({ $size }:{ $size?: string }) => {
2214
- let style = ``;
2215
- if ($size) {
2216
- style += `
2217
- width: ${$size};
2218
- height: ${$size};
2219
- `
2220
- }
2221
- return style;
2222
- }}
2246
+
2247
+ ${({ $size }) => $size && css`
2248
+ width:${$size};
2249
+ height:${$size};
2250
+ `}
2223
2251
  `
2224
2252
  export const PanelBody = styled.section`
2225
2253
  height: 100%;
@@ -2260,10 +2288,13 @@ export const RightPanelContainer = styled.section`
2260
2288
  `
2261
2289
  export const SearchFormWrapper = styled.div<{ $mode?: string }>`
2262
2290
  position: relative;
2291
+ input[name='search'] {
2292
+ font-size: 13px;
2293
+ }
2263
2294
  i {
2264
2295
  position: absolute;
2265
- left: 12px;
2266
2296
  top: 6px;
2297
+ left: 12px;
2267
2298
  pointer-events: none;
2268
2299
  z-index: 1;
2269
2300
  &:last-child {
@@ -2298,8 +2329,6 @@ export const SearchFormWrapper = styled.div<{ $mode?: string }>`
2298
2329
  `
2299
2330
  }
2300
2331
  }}
2301
-
2302
-
2303
2332
  `
2304
2333
  export const TableHeadLabel = styled.span`
2305
2334
  color: var(--mt-clr);
@@ -2310,6 +2339,7 @@ export const TableHeadLabel = styled.span`
2310
2339
  display: inline-block;
2311
2340
  vertical-align: text-top;
2312
2341
  margin-left: 2px;
2342
+ margin-top: 3px;
2313
2343
  }
2314
2344
  dt {
2315
2345
  display: inline;
@@ -2444,7 +2474,6 @@ export const TabsHeader = styled.article`
2444
2474
  `
2445
2475
  export const TabsItem = styled.div<{ $activated?: boolean }>`
2446
2476
  cursor: pointer;
2447
- letter-spacing: 0.6px;
2448
2477
  position: relative;
2449
2478
  padding: 9px;
2450
2479
  color: ${({ $activated }:{ $activated?: boolean }) => $activated ? 'var(--sec-clr-lnk__hvr)' : 'var(--pri-clr-lnk)'};
@@ -2479,9 +2508,9 @@ export const TabsWrapper = styled.section<{ $mode?: string }>`
2479
2508
  overflow: auto;
2480
2509
  &.is-sticky {
2481
2510
  position: fixed;
2482
- top: 0;
2483
- z-index: 9;
2484
- background-color:#FFF;
2511
+ top: 48px;
2512
+ z-index: 9;
2513
+ background-color: var(--sec-clr-bg);
2485
2514
  & + div {
2486
2515
  margin-top: 40px;
2487
2516
  }
@@ -2489,14 +2518,26 @@ export const TabsWrapper = styled.section<{ $mode?: string }>`
2489
2518
  position: relative;
2490
2519
  z-index: 10;
2491
2520
  }
2492
- @media only screen and (min-width: 768px) {
2493
- top: 50px;
2521
+ @media only screen and (min-width: 1280px) {
2522
+ width: calc(100vw - 187px);
2523
+ left: 202px;
2524
+ }
2525
+ @media only screen and (min-width: 1366px) {
2526
+ width: calc(100vw - 220px);
2527
+ left: 220px;
2528
+ }
2529
+ @media only screen and (min-width: 1800px) {
2530
+ padding: 0 20px 0 28px;
2494
2531
  }
2495
2532
  }
2496
2533
  ${getTabsWrapperModFunc}
2497
2534
  `
2498
2535
  export const TableItemColumn = styled.div<{ $mode?: string }>`
2499
2536
  display: grid;
2537
+ &._refFooterContainer {
2538
+ font-weight: 600;
2539
+ border-top: 1px solid var(--pri-clr-ln);
2540
+ }
2500
2541
  > div {
2501
2542
  padding: 10px 0;
2502
2543
  &:last-child {
@@ -2514,16 +2555,9 @@ export const TableItemColumn = styled.div<{ $mode?: string }>`
2514
2555
  }
2515
2556
  &.cell-action {
2516
2557
  display: grid;
2558
+ grid-gap: 4px;
2517
2559
  align-items: start;
2518
- }
2519
- }
2520
- &._refFooterContainer {
2521
- font-weight: 600;
2522
- border-top: 1px solid var(--pri-clr-ln);
2523
- }
2524
- &._refItemContainer {
2525
- ${TableColumnGroup} {
2526
- grid-gap: 10px;
2560
+ align-content: start;
2527
2561
  }
2528
2562
  }
2529
2563
  ${getTableItemModFunc}
@@ -2634,15 +2668,17 @@ export const CollapseContainer = styled.div<{ $mode?: 'nav' }>`
2634
2668
  `}
2635
2669
  `
2636
2670
  export const PaginationContainer = styled.div`
2637
- margin: 10px auto;
2671
+ margin: 9px auto 10px;
2638
2672
  display: inline-grid;
2639
2673
  width: 100%;
2640
2674
  grid-gap: 12px;
2675
+ padding: 8px 0 8px;
2641
2676
  @media only screen and (min-width: 768px) {
2642
- margin: 20px auto 60px;
2677
+ margin: 9px auto 30px;
2678
+ padding: 16px 0 16px;
2643
2679
  }
2644
2680
  `
2645
- export const PageWrapper = styled.div<{ $mode?: string }>`
2681
+ export const PageWrapper = styled.div<{ $mode?: 'noPageOption' }>`
2646
2682
  display: grid;
2647
2683
  grid-auto-flow: row;
2648
2684
  grid-gap: 10px;
@@ -2677,9 +2713,15 @@ export const PageWrapper = styled.div<{ $mode?: string }>`
2677
2713
  justify-content: start;
2678
2714
  }
2679
2715
  }
2680
- ${getPageWrapperModFunc}
2716
+ ${({ $mode }) => $mode === 'noPageOption' && css`
2717
+ @media only screen and (min-width: 768px) {
2718
+ > div:first-child {
2719
+ justify-content: center;
2720
+ }
2721
+ }
2722
+ `}
2681
2723
  `
2682
- export const PageButton = styled.div<{ $activated?: boolean, $disabled?: boolean }>`
2724
+ export const PageButton = styled.div<{ $activated?: boolean, disabled?: boolean }>`
2683
2725
  display: grid;
2684
2726
  justify-content: center;
2685
2727
  align-content: center;
@@ -2687,10 +2729,6 @@ export const PageButton = styled.div<{ $activated?: boolean, $disabled?: boolean
2687
2729
  height: 28px;
2688
2730
  width: auto;
2689
2731
  min-width: 28px;
2690
- border: 1px solid var(--ck-clr-ln);
2691
- cursor: pointer;
2692
- border-radius: var(--ter-rd);
2693
- box-shadow: none;
2694
2732
  ${buttonStyle}
2695
2733
  &:hover {
2696
2734
  ${buttonHoverStyle}
@@ -2701,7 +2739,19 @@ export const PageButton = styled.div<{ $activated?: boolean, $disabled?: boolean
2701
2739
  i {
2702
2740
  margin-top: -3px;
2703
2741
  }
2704
- ${getPageButtonModFunc}
2742
+
2743
+ ${({ $activated }) => $activated && css`
2744
+ ${buttonActiveStyle}
2745
+ `}
2746
+
2747
+ ${({ disabled }) => disabled && css`
2748
+ &, &:hover {
2749
+ background: var(--mt-clr-bg);
2750
+ border-color: var(--ck-clr-ln);
2751
+ opacity: .5;
2752
+ cursor: default;
2753
+ }
2754
+ `}
2705
2755
  `
2706
2756
  export const PageLabel = styled.span`
2707
2757
  font-size: 12px;
@@ -2739,7 +2789,7 @@ export const FilterContainer = styled.article`
2739
2789
  justify-content: left;
2740
2790
  }
2741
2791
  `
2742
- export const SearchFilterContainer = styled.div<{ $mode?: string }>`
2792
+ export const SearchFilterContainer = styled.div<{ $mode?: 'detail' }>`
2743
2793
  width: 100%;
2744
2794
  margin-bottom: 16px !important;
2745
2795
  > article {
@@ -2759,9 +2809,11 @@ export const SearchFilterContainer = styled.div<{ $mode?: string }>`
2759
2809
  justify-items: unset;
2760
2810
  }
2761
2811
  }
2762
- ${getSearchFilterContainerModFunc}
2812
+ ${({ $mode }) => $mode === 'detail' && css`
2813
+ padding-bottom: 10px;
2814
+ `}
2763
2815
  `
2764
- export const SearchWrapper = styled.div<{ width?: string }>`
2816
+ export const SearchWrapper = styled.div<{ $width?: string }>`
2765
2817
  display: grid;
2766
2818
  grid-template-columns: 148px 1fr;
2767
2819
  position: relative;
@@ -2792,7 +2844,17 @@ export const SearchWrapper = styled.div<{ width?: string }>`
2792
2844
  @media only screen and (min-width: 1366px) {
2793
2845
  width: 400px;
2794
2846
  }
2795
- ${getSearchWrapperModFunc}
2847
+ ${({ $width }) => {
2848
+ if ($width) {
2849
+ const _width = $width ? parseInt($width) : 0;
2850
+ return css`
2851
+ grid-template-columns: ${(_width)+'px'} 1fr;
2852
+ button {
2853
+ width: ${$width};
2854
+ }
2855
+ `
2856
+ }
2857
+ }}
2796
2858
  `
2797
2859
  export const ButtonGroup = styled.div`
2798
2860
  position: relative;
@@ -2807,16 +2869,28 @@ export const ButtonGroup = styled.div`
2807
2869
  color: var(--mt-clr);
2808
2870
  padding: 0 12px;
2809
2871
  }
2810
- > button ,
2872
+ > button,
2811
2873
  ._refContainer {
2812
2874
  border-right: 1px solid var(--sec-clr-ln);
2813
- &:last-child {
2875
+ &:last-child{
2814
2876
  border-right: 0;
2815
2877
  }
2816
2878
  }
2817
2879
  ._refContainer {
2818
2880
  max-width: 200px;
2819
2881
  }
2882
+ @media only screen and (min-width: 768px) {
2883
+ > button {
2884
+ padding: 0 10px;
2885
+ font-size: 13px;
2886
+ }
2887
+ }
2888
+ @media only screen and (min-width: 1280px) {
2889
+ > button {
2890
+ padding: 0 12px;
2891
+ font-size: var(--pri-ft-sz);
2892
+ }
2893
+ }
2820
2894
  `
2821
2895
  export const FilterWrapper = styled.section`
2822
2896
  display: inline-block;
@@ -2856,6 +2930,10 @@ export const FilterWrapper = styled.section`
2856
2930
  max-width: 100%;
2857
2931
  }
2858
2932
  }
2933
+ > div:nth-child(n+2) {
2934
+ display: inline-block;
2935
+ width: 48.35% !important;
2936
+ }
2859
2937
  > article {
2860
2938
  float: left
2861
2939
  }
@@ -2869,7 +2947,7 @@ export const FilterWrapper = styled.section`
2869
2947
  margin-top: 0;
2870
2948
  padding-left: 8px;
2871
2949
  grid-auto-flow: column;
2872
- grid-gap: 10px;
2950
+ grid-gap: 8px;
2873
2951
  display: grid;
2874
2952
  > section {
2875
2953
  width: auto !important;
@@ -2879,6 +2957,9 @@ export const FilterWrapper = styled.section`
2879
2957
  align-items: center;
2880
2958
  margin-top: 0px;
2881
2959
  }
2960
+ &:first-child {
2961
+ padding-left: 0;
2962
+ }
2882
2963
  ${ButtonGroup} {
2883
2964
  margin-bottom: 0;
2884
2965
  }
@@ -2886,27 +2967,482 @@ export const FilterWrapper = styled.section`
2886
2967
  `
2887
2968
  export const ListTableContainer = styled.div`
2888
2969
  display: grid;
2889
- grid-gap: 16px;
2890
2970
  padding: 0 .625em 10px;
2891
- overflow: hidden;
2892
2971
  @media only screen and (min-width: 375px) {
2893
- padding: 0 16px 10px;
2972
+ padding: 0 20px;
2894
2973
  }
2895
2974
  @media only screen and (min-width: 1024px) {
2896
2975
  padding: 0;
2897
2976
  }
2977
+ @media only screen and (min-width: 1800px) {
2978
+ padding: 0 16px 0 9px;
2979
+ }
2898
2980
  `
2899
2981
  export const ItemTable = styled.section``
2900
- export const ListTable = styled.main<{ $mode?: string }>`
2982
+
2983
+ const overflowStyle = css`
2984
+ overflow: hidden;
2985
+ > div {
2986
+ overflow: auto;
2987
+ }
2988
+ @media only screen and (min-width: 1024px) {
2989
+ > div {
2990
+ margin: 0px 9px 0px 9px;
2991
+ }
2992
+ }
2993
+ `
2994
+ const overflowItemTableStyle = css`
2995
+ width: 100%;
2996
+ display: flex;
2997
+ margin: 0;
2998
+ padding: 0;
2999
+ grid-gap: 0;
3000
+ &[role=rowheader] > div[role=group],
3001
+ &[role=row] > div[role=group],
3002
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
3003
+ &[role=row] > div[role=cellgroup],
3004
+ ._refCollapse > div:not(._refCollapseContainer),
3005
+ ._refCollapseContainer > div {
3006
+ display: flex;
3007
+ flex: 2;
3008
+ grid-gap: 0;
3009
+ }
3010
+ &[role=row] > div[role=cellgroup] {
3011
+ flex-direction: column;
3012
+ }
3013
+ &[role=rowheader] > div[role=columnheader],
3014
+ &[role=rowheader] > div[role=group] > div[role=cell],
3015
+ &[role=row] > div[role=cell],
3016
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup] > div[role=cell],
3017
+ ._refCollapse > div:not(._refCollapseContainer) > div[role=cell],
3018
+ ._refCollapseContainer > div > div[role=cell] {
3019
+ align-self: stretch;
3020
+ width: 100%;
3021
+ }
3022
+ &[role=rowheader] > div[role=columnheader],
3023
+ &[role=rowheader] > div[role=group] > div[role=cell] {
3024
+ padding-top: 1em;
3025
+ padding-bottom: 1em;
3026
+ border-bottom: 1px solid var(--ter-clr-ln);
3027
+ }
3028
+ &[role=row] > div[role=cell],
3029
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup] > div[role=cell],
3030
+ ._refCollapse > div:not(._refCollapseContainer) > div[role=cell],
3031
+ ._refCollapseContainer > div > div[role=cell] {
3032
+ padding-top: 1.25em;
3033
+ padding-bottom: 1.25em;
3034
+ }
3035
+ &[role=rowheader], &[role=row] {
3036
+ padding: 0;
3037
+ margin: 0;
3038
+ > div {
3039
+ padding-right: 12px;
3040
+ &:first-child {
3041
+ padding-left: 0;
3042
+ }
3043
+ &:last-child {
3044
+ padding-right: 0;
3045
+ }
3046
+ }
3047
+ }
3048
+ &[role=rowheader] > div[role=group] > div[role=cell], &[role=row] > div[role=cellgroup] > div[role=rowgroup] > div[role=cell] {
3049
+ padding-right: 12px;
3050
+ &:last-child {
3051
+
3052
+ }
3053
+ }
3054
+ &[role=rowheader] {
3055
+ border: none;
3056
+ }
3057
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
3058
+ ._refCollapse > div, ._refCollapseContainer > div {
3059
+ padding-bottom: 0;
3060
+ padding-top: 0;
3061
+ &:nth-child(n+2) {
3062
+ padding-top: 0;
3063
+ }
3064
+ &:last-child {
3065
+ padding-bottom: 0;
3066
+ }
3067
+ }
3068
+ &:last-child {
3069
+ margin-bottom: 0;
3070
+ }
3071
+ @media only screen and (min-width: 1024px) {
3072
+ &[role=rowheader], &[role=row] {
3073
+ > div {
3074
+ &:first-child {
3075
+ padding-left: 9px;
3076
+ }
3077
+ &:last-child {
3078
+ padding-right: 9px;
3079
+ }
3080
+ }
3081
+ }
3082
+ }
3083
+ `
3084
+ const listTableStyles = {
3085
+ item: css`
3086
+ ${ItemTable} {
3087
+ grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) var(--time) minmax(88px, auto);
3088
+ &[role=rowheader] > div[role=group],
3089
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
3090
+ ._refCollapse > div:not(._refCollapseContainer),
3091
+ ._refCollapseContainer > div {
3092
+ grid-template-columns: var(--variant) var(--sku) var(--qty-big) var(--price) var(--status-big);
3093
+ }
3094
+ input[name=checkbox-list] {
3095
+ & + span {
3096
+ top: 8px;
3097
+ }
3098
+ }
3099
+ }
3100
+ `,
3101
+ listing: css`
3102
+ ${ItemTable} {
3103
+ grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) minmax(88px, auto);
3104
+ &[role=rowheader] > div[role=group],
3105
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
3106
+ ._refCollapse > div:not(._refCollapseContainer),
3107
+ ._refCollapseContainer > div {
3108
+ grid-template-columns: var(--variant) var(--sku) var(--sku) minmax(95px, 115px) var(--price) var(--status-small);
3109
+ }
3110
+ input[name=checkbox-list] {
3111
+ & + span {
3112
+ top: 8px;
3113
+ }
3114
+ }
3115
+ }
3116
+ `,
3117
+ quantity: css`
3118
+ ${overflowStyle}
3119
+ ${ItemTable} {
3120
+ ${overflowItemTableStyle}
3121
+ .column-product {
3122
+ min-width: calc(var(--item-min) + 25px);
3123
+ max-width: calc(var(--item-max) + 25px);
3124
+ flex: 1;
3125
+ }
3126
+ .column-master-sku {
3127
+ min-width: calc(var(--sku-min) + 12px);
3128
+ max-width: calc(var(--sku-max) + 12px);
3129
+ flex: 1;
3130
+ }
3131
+ .column-warehouse {
3132
+ min-width: calc(var(--warehouse-min) + 12px);
3133
+ max-width: calc(var(--warehouse-max) + 12px);
3134
+ flex: 3;
3135
+ }
3136
+ .column-on-hand-total {
3137
+ min-width: 87px;
3138
+ max-width: 97px;
3139
+ flex: 2;
3140
+ }
3141
+ .column-on-hand-damage {
3142
+ min-width: 97px;
3143
+ max-width: 102px;
3144
+ flex: 2;
3145
+ }
3146
+ .column-on-hand-normal {
3147
+ min-width: 97px;
3148
+ max-width: 102px;
3149
+ flex: 2;
3150
+ }
3151
+ .column-reserved-orders {
3152
+ min-width: 87px;
3153
+ max-width: 97px;
3154
+ flex: 2;
3155
+ }
3156
+ .column-picked {
3157
+ min-width: 87px;
3158
+ max-width: 97px;
3159
+ flex: 2;
3160
+ }
3161
+ .column-packed {
3162
+ min-width: 87px;
3163
+ max-width: 97px;
3164
+ flex: 2;
3165
+ }
3166
+ .column-handover {
3167
+ min-width: calc(var(--qty-big-min) + 12px);
3168
+ max-width: calc(var(--qty-big-max) + 12px);
3169
+ flex: 2;
3170
+ }
3171
+ .column-promotion-allocation {
3172
+ min-width: calc(var(--qty-big-min) + 12px);
3173
+ max-width: calc(var(--qty-big-max) + 12px);
3174
+ flex: 2;
3175
+ }
3176
+ .column-available-to-sell {
3177
+ min-width: 95px;
3178
+ max-width: 97px;
3179
+ flex: 2;
3180
+ }
3181
+ .column-in-transit {
3182
+ min-width: 95px;
3183
+ max-width: 105px;
3184
+ flex: 2;
3185
+ }
3186
+ .column-waiting-inbound {
3187
+ min-width: 95px;
3188
+ max-width: 98px;
3189
+ flex: 2;
3190
+ }
3191
+ .column-inbounded {
3192
+ min-width: 110px;
3193
+ max-width: 115px;
3194
+ flex: 2;
3195
+ }
3196
+ .column-waiting-outbound {
3197
+ min-width: 110px;
3198
+ max-width: 112px;
3199
+ flex: 2;
3200
+ }
3201
+ .column-last-updated {
3202
+ min-width: calc(var(--time-min) + 12px);
3203
+ max-width: calc(var(--time-max) + 12px);
3204
+ flex: 2;
3205
+ }
3206
+ .column-actions {
3207
+ min-width: 96px;
3208
+ flex: 1;
3209
+ padding-right: 12px !important;
3210
+ }
3211
+ }
3212
+ `,
3213
+ picklist: css`
3214
+ ${ItemTable} {
3215
+ grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--ref) var(--time) minmax(185px, auto);
3216
+ }
3217
+ `,
3218
+ package: css`
3219
+ ${ItemTable} {
3220
+ grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--person) var(--ref) var(--time) minmax(110px, auto);
3221
+ }
3222
+ `,
3223
+ shipment: css`
3224
+ ${ItemTable} {
3225
+ grid-template-columns: var(--checkbox) var(--time) var(--id-big) var(--status) minmax(80px, 160px) minmax(80px, 160px) minmax(95px, 160px) var(--ref) minmax(140px, auto);
3226
+ }
3227
+ `,
3228
+ invoice: css`
3229
+ ${ItemTable} {
3230
+ grid-template-columns: var(--checkbox) var(--id-big) var(--status-small) var(--store) var(--price) var(--price) var(--ref) var(--person) var(--time) minmax(180px, auto);
3231
+ @media only screen and (max-width: 1279px) {
3232
+ width: unset;
3233
+ }
3234
+ }
3235
+ `,
3236
+ 'payment-receive': css`
3237
+ ${ItemTable} {
3238
+ grid-template-columns: var(--time) 155px var(--person) var(--qty) var(--price) minmax(110px, auto);
3239
+ }
3240
+ `,
3241
+ 'sales-return': css`
3242
+ ${ItemTable} {
3243
+ grid-template-columns: var(--id-big) var(--status) var(--warehouse) var(--person) var(--person) var(--ref-big) var(--time) minmax(120px, auto);
3244
+ }
3245
+ `,
3246
+ activity: css`
3247
+ ${ItemTable} {
3248
+ grid-template-columns: var(--time) var(--id-big) var(--item) var(--status) var(--email) var(--status) var(--status) minmax(110px, auto);
3249
+ }
3250
+ `,
3251
+ putaway: css`
3252
+ ${ItemTable} {
3253
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) var(--person) var(--time) minmax(60px, auto);
3254
+ }
3255
+ `,
3256
+ inbound: css`
3257
+ ${ItemTable} {
3258
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 160px) var(--person) var(--time) minmax(170px, auto);
3259
+ }
3260
+ `,
3261
+ lowstock: css`
3262
+ ${ItemTable} {
3263
+ grid-template-columns: var(--checkbox) var(--item) var(--variant) var(--sku) var(--warehouse) var(--qty-big) var(--statusnow) var(--time) minmax(60px, auto);
3264
+ }
3265
+ `,
3266
+ price: css`
3267
+ ${ItemTable} {
3268
+ grid-template-columns: var(--time) var(--id-big) var(--status) var(--qty) var(--email) var(--status) minmax(60px, auto);
3269
+ }
3270
+ `,
3271
+ 'stock-adjustment': css`
3272
+ ${ItemTable} {
3273
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 150px) var(--person) var(--time) minmax(160px, auto);
3274
+ }
3275
+ `,
3276
+ 'stock-outbound': css`
3277
+ ${ItemTable} {
3278
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(150px,160px) var(--person) var(--time) minmax(160px, auto);
3279
+ }
3280
+ `,
3281
+ 'stock-transfer': css`
3282
+ ${ItemTable} {
3283
+ grid-template-columns: var(--id) var(--status-big) var(--warehouse) var(--warehouse) minmax(90px, 100px) var(--person) var(--time) minmax(160px, auto);
3284
+ }
3285
+ `,
3286
+ promotion: css`
3287
+ ${ItemTable} {
3288
+ grid-template-columns: var(--store) var(--id-big) var(--ref-big) minmax(100px,160px) var(--status-small) var(--time) var(--time) minmax(42px, 88px) var(--time) minmax(62px, auto);
3289
+ }
3290
+ `,
3291
+ 'stock-history': css`
3292
+ ${ItemTable} {
3293
+ grid-template-columns: minmax(120px, 360px) var(--sku) var(--warehouse) minmax(85px,120px) minmax(105px,190px) var(--qty-small) var(--qty-small) minmax(68px, 100px) var(--time) minmax(75px, 88px);
3294
+ > *:last-child {
3295
+ display: unset;
3296
+ justify-content: unset;
3297
+ }
3298
+ @media only screen and (max-width: 1279px) {
3299
+ width: unset;
3300
+ }
3301
+ }
3302
+ `,
3303
+ 'price-history': css`
3304
+ ${ItemTable} {
3305
+ @media only screen and (max-width: 1279px) {
3306
+ width: unset;
3307
+ }
3308
+ > *:last-child {
3309
+ display: unset;
3310
+ justify-content: unset;
3311
+ }
3312
+ grid-template-columns: minmax(110px,146px) minmax(120px,360px) var(--sku) var(--store) minmax(75px,120px) minmax(85px,120px) minmax(75px,120px) minmax(80px,120px) var(--time) var(--status) minmax(75px,88px);
3313
+ }
3314
+ `,
3315
+ turnover: css`
3316
+ ${ItemTable} {
3317
+ @media only screen and (max-width: 1279px) {
3318
+ width: unset;
3319
+ }
3320
+ > *:last-child {
3321
+ display: unset;
3322
+ justify-content: unset;
3323
+ }
3324
+ grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) repeat(4, var(--qty)) minmax(75px,88px);
3325
+ }
3326
+ `,
3327
+ 'days-outofstock': css`
3328
+ ${ItemTable} {
3329
+ @media only screen and (max-width: 1279px) {
3330
+ width: unset;
3331
+ }
3332
+ > *:last-child {
3333
+ display: unset;
3334
+ justify-content: unset;
3335
+ }
3336
+ grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) var(--qty-big) var(--qty) var(--qty-big) var(--time) minmax(75px,88px);
3337
+ }
3338
+ `,
3339
+ warehouses: css`
3340
+ ${ItemTable} {
3341
+ grid-template-columns: var(--warehouse) var(--status) var(--id-big) var(--qty-big) var(--time) minmax(110px, auto);
3342
+ }
3343
+ `,
3344
+ archived: css`
3345
+ ${ItemTable} {
3346
+ grid-template-columns: var(--time-pd20) minmax(auto, max-content) minmax(88px, auto);
3347
+ &[role=rowheader] > div[role=group],
3348
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
3349
+ ._refCollapse > div:not(._refCollapseContainer),
3350
+ ._refCollapseContainer > div {
3351
+ grid-template-columns: var(--sku) var(--item);
3352
+ }
3353
+ }
3354
+ `,
3355
+ order: css`
3356
+ ${ItemTable} {
3357
+ grid-template-columns: var(--checkbox) 118px 90px minmax(auto, max-content);
3358
+ input[name=checkbox-list]{
3359
+ & + span {
3360
+ top: 8px;
3361
+ }
3362
+ }
3363
+ &[role=rowheader] > div[role=group] {
3364
+ grid-template-columns: var(--order) 40px 80px 80px 88px minmax(145px, auto);
3365
+ }
3366
+ ._refCollapse > div:not(._refCollapseContainer),
3367
+ ._refCollapseContainer > div {
3368
+ grid-template-columns: var(--order) 40px 80px 80px;
3369
+ }
3370
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
3371
+ ._refCollapse > div,
3372
+ ._refCollapseContainer > div {
3373
+ &:nth-child(n+2) {
3374
+ border-top: none;
3375
+ }
3376
+ }
3377
+ }
3378
+ @media only screen and (min-width: 1280px) {
3379
+ ${ItemTable} {
3380
+ grid-template-columns: var(--checkbox) 118px 118px minmax(auto, max-content);
3381
+ &[role=rowheader] > div[role=group] {
3382
+ grid-template-columns: var(--order) 40px 80px 80px 107px minmax(145px, auto);
3383
+ }
3384
+ ._refCollapse > div:not(._refCollapseContainer),
3385
+ ._refCollapseContainer > div {
3386
+ grid-template-columns: var(--order) 40px 80px 80px;
3387
+ }
3388
+ }
3389
+ }
3390
+ @media only screen and (min-width: 1366px) {
3391
+ ${ItemTable} {
3392
+ grid-template-columns: var(--checkbox) 120px 118px minmax(auto, max-content);
3393
+ &[role=rowheader] > div[role=group] {
3394
+ grid-template-columns: var(--order) 40px 90px 80px 130px minmax(150px, auto);
3395
+ }
3396
+ ._refCollapse > div:not(._refCollapseContainer),
3397
+ ._refCollapseContainer > div {
3398
+ grid-template-columns: var(--order) 40px 90px 80px;
3399
+ }
3400
+ }
3401
+ }
3402
+ @media only screen and (min-width: 1800px) {
3403
+ ${ItemTable} {
3404
+ grid-template-columns: var(--checkbox) minmax(125px, 170px) minmax(85px, 145px) minmax(auto, max-content);
3405
+ &[role=rowheader] > div[role=group] {
3406
+ grid-template-columns: var(--order) 50px 110px 130px 130px minmax(50px, 2000px);
3407
+ }
3408
+ ._refCollapse > div:not(._refCollapseContainer),
3409
+ ._refCollapseContainer > div {
3410
+ grid-template-columns: var(--order) 50px 110px 130px;
3411
+ }
3412
+ }
3413
+ }
3414
+ @media only screen and (min-width: 1920px) {
3415
+ ${ItemTable} {
3416
+ &[role=rowheader] > div[role=group] {
3417
+ grid-template-columns: var(--order) 50px 110px 145px 130px minmax(50px, 2000px);
3418
+ }
3419
+ ._refCollapse > div:not(._refCollapseContainer),
3420
+ ._refCollapseContainer > div {
3421
+ grid-template-columns: var(--order) 50px 110px 145px;
3422
+ }
3423
+ }
3424
+ }
3425
+ `,
3426
+ 'table-customheader': css`
3427
+ ${overflowStyle}
3428
+ ${ItemTable} {
3429
+ ${overflowItemTableStyle}
3430
+ > *:last-child {
3431
+ display: block;
3432
+ justify-content: inherit;
3433
+ }
3434
+ }
3435
+ `,
3436
+ } as const
3437
+ export const ListTable = styled.main<{ $mode?: ModeListTableColumn }>`
2901
3438
  position: relative;
2902
3439
  width: 100%;
2903
3440
  overflow-x: auto;
2904
3441
  ${ItemTable} {
2905
- width: calc(100% - 19px);
3442
+ padding: 8px 0 8px 0;
3443
+ width: calc(100% - 20px);
2906
3444
  min-width: 975px;
2907
3445
  border-bottom: 1px solid var(--ter-clr-ln);
2908
- margin: 9px 9px 9px 10px;
2909
- padding: 16px 12px 16px 19px;
2910
3446
  display: inline-grid;
2911
3447
  grid-gap: 12px;
2912
3448
  align-items: start;
@@ -2918,12 +3454,11 @@ export const ListTable = styled.main<{ $mode?: string }>`
2918
3454
  align-items: start;
2919
3455
  grid-gap: 12px;
2920
3456
  }
2921
- &[role=rowheader],
2922
- &:nth-child(2) {
3457
+ &[role=rowheader], &:nth-child(2) {
2923
3458
  border-top: 0;
2924
3459
  }
2925
3460
  &[role=rowheader] {
2926
- padding: 18px 12px 18px 19px;
3461
+ padding: 1em 0 1em 0;
2927
3462
  border-bottom: 1px solid #e8e8ec;
2928
3463
  color: var(--mt-clr);
2929
3464
  position: relative;
@@ -2933,40 +3468,45 @@ export const ListTable = styled.main<{ $mode?: string }>`
2933
3468
  font-size: .875rem;
2934
3469
  }
2935
3470
  &[role=row] {
2936
- margin-top: 0;
2937
- margin-bottom: 0;
3471
+ padding: 1.25em 0 1.25em 0;
2938
3472
  }
2939
3473
  &[role=row] > div[role=cellgroup] > div[role=rowgroup],
2940
3474
  ._refCollapse > div,
2941
3475
  ._refCollapseContainer > div {
2942
- padding-bottom: 1em;
2943
3476
  &:nth-child(n+2) {
2944
3477
  border-top: 1px solid rgba(227, 227, 227, .7);
2945
3478
  padding-top: 16px;
2946
3479
  }
2947
- &:last-child {
2948
- padding-bottom: 0;
2949
- }
2950
3480
  }
2951
- > *:last-child {
2952
- display: grid;
2953
- justify-content: end;
3481
+ ._refCollapseContainer {
3482
+ padding-bottom: 0;
2954
3483
  }
2955
3484
  input[name=checkbox-selectAll] {
2956
3485
  & + span {
2957
3486
  top: 50%;
2958
3487
  }
2959
3488
  }
2960
- input[name=checkbox-list] {
3489
+ input[name=checkbox-list]{
2961
3490
  & + span {
2962
3491
  top: 0;
2963
3492
  }
2964
3493
  }
2965
- ._refCollapseContainer {
2966
- padding-bottom: 0;
3494
+ > *:last-child {
3495
+ display: grid;
3496
+ justify-content: end;
2967
3497
  }
2968
3498
  }
2969
- ${getListTableFunc}
3499
+ @media only screen and (min-width: 1024px) {
3500
+ ${ItemTable} {
3501
+ &[role=rowheader],
3502
+ &[role=row] {
3503
+ margin: 0 10px;
3504
+ padding-left: 9px;
3505
+ padding-right: 9px;
3506
+ }
3507
+ }
3508
+ }
3509
+ ${({ $mode }) => $mode && $mode in listTableStyles ? listTableStyles[$mode] : ''}
2970
3510
  `
2971
3511
  export const DateWrapper = styled.div`
2972
3512
  display: grid;
@@ -2998,13 +3538,13 @@ export const DropdownTitle = styled.div`
2998
3538
  font-style: normal;
2999
3539
  }
3000
3540
  `
3001
- export const DropdownList = styled.ul<{ $mode?: string }>`
3541
+ export const DropdownList = styled.ul<{ $mode?: 'no-border' }>`
3002
3542
  ${clearList}
3003
3543
  max-height: 44vh;
3004
3544
  overflow: auto;
3005
3545
  > li {
3006
3546
  padding: 8px 1em;
3007
- border-bottom: ${({ $mode }:{ $mode?: string }) => $mode === 'no-border' ? 'none' : '1px solid var(--pri-clr-ln)'};
3547
+ border-bottom: ${({ $mode }:{ $mode?: 'no-border' }) => $mode === 'no-border' ? 'none' : '1px solid var(--pri-clr-ln)'};
3008
3548
  &:last-child {
3009
3549
  border-bottom: 0;
3010
3550
  }
@@ -3013,7 +3553,7 @@ export const DropdownList = styled.ul<{ $mode?: string }>`
3013
3553
  max-height: 50vh;
3014
3554
  }
3015
3555
  `
3016
- export const DropdownItem = styled.li<{ $mode?: string }>`
3556
+ export const DropdownItem = styled.li<{ $mode?: 'categories' }>`
3017
3557
  display: inline-grid;
3018
3558
  width: 100%;
3019
3559
  grid-gap: 10px;
@@ -3023,60 +3563,84 @@ export const DropdownItem = styled.li<{ $mode?: string }>`
3023
3563
  grid-auto-flow: column;
3024
3564
  grid-template-columns: 100px auto;
3025
3565
  }
3026
- ${({ $mode }:{ $mode?: string }) => {
3027
- if ($mode === 'categories') {
3028
- return css`
3029
- grid-auto-flow: column;
3030
- grid-template-columns: 22px auto;
3031
- min-height: 33px;
3032
- align-items: center;
3033
- grid-gap: 0;
3034
- > label {
3035
- cursor: pointer;
3036
- text-transform: capitalize;
3037
- }
3038
- @media only screen and (min-width: 768px) {
3039
- grid-template-columns: 22px auto;
3040
- }
3041
- `
3566
+ ${({ $mode }) => $mode === 'categories' && css`
3567
+ grid-auto-flow: column;
3568
+ grid-template-columns: 22px auto;
3569
+ min-height: 33px;
3570
+ align-items: center;
3571
+ grid-gap: 0;
3572
+ > label {
3573
+ cursor: pointer;
3574
+ text-transform: capitalize;
3042
3575
  }
3043
- }}
3576
+ @media only screen and (min-width: 768px) {
3577
+ grid-template-columns: 22px auto;
3578
+ }
3579
+ `}
3044
3580
  `
3045
3581
  export const DropdownAction = styled.div`
3046
3582
  padding: .8em 1em 1em;
3047
3583
  display: grid;
3048
3584
  grid-auto-flow: column;
3049
3585
  justify-content: end;
3050
- grid-gap: 8px;
3586
+ grid-gap: 4px;
3051
3587
  border-top: 1px solid var(--sec-clr-ln);
3052
3588
  `
3053
3589
  export const FilterList = styled.ul`
3054
3590
  ${clearList}
3055
3591
  `
3056
3592
  export const FilterItem = styled.li`
3057
- > input {
3058
- display: none;
3059
- }
3060
- > label {
3593
+ &._refCheckbox {
3061
3594
  display: block;
3062
3595
  float: left;
3063
- padding: 8px 10px;
3064
3596
  margin-right: 4px;
3065
3597
  margin-bottom: 8px;
3066
- border: 1px solid transparent;
3067
- outline: 1px solid transparent;
3068
- cursor: pointer;
3069
- font-size: 13px;
3598
+ > label {
3599
+ padding-left: 0 !important;
3600
+ input, span {
3601
+ display: none !important;
3602
+ }
3603
+ aside {
3604
+ padding: 8px 10px;
3605
+ border: 1px solid transparent;
3606
+ outline: 1px solid transparent;
3607
+ cursor: pointer;
3608
+ font-size: 13px;
3609
+ }
3610
+ input:checked~aside {
3611
+ border: 1px solid var(--sel-clr-ln);
3612
+ outline: 1px solid var(--sel-clr-ln);
3613
+ color: var(--ter-clr);
3614
+ border-radius: var(--sec-rd);
3615
+ }
3616
+ }
3070
3617
  }
3071
- > input:checked + label {
3072
- border: 1px solid var(--sel-clr-ln);
3073
- outline: 1px solid var(--sel-clr-ln);
3074
- color: var(--ter-clr);
3075
- border-radius: var(--sec-rd);
3618
+ &:not(._refCheckbox) {
3619
+ > input {
3620
+ display: none;
3621
+ }
3622
+ > label {
3623
+ display: block;
3624
+ float: left;
3625
+ padding: 8px 10px;
3626
+ margin-right: 4px;
3627
+ margin-bottom: 8px;
3628
+ border: 1px solid transparent;
3629
+ outline: 1px solid transparent;
3630
+ cursor: pointer;
3631
+ font-size: 13px;
3632
+ }
3633
+ > input:checked + label {
3634
+ border: 1px solid var(--sel-clr-ln);
3635
+ outline: 1px solid var(--sel-clr-ln);
3636
+ color: var(--ter-clr);
3637
+ border-radius: var(--sec-rd);
3638
+ }
3076
3639
  }
3077
3640
  `
3078
3641
  export const FilterListTitle = styled.strong`
3079
3642
  padding-top: 8px;
3643
+ font-size: 13px;
3080
3644
  `
3081
3645
  export const FilterButton = styled.div`
3082
3646
  display: grid;
@@ -3084,7 +3648,7 @@ export const FilterButton = styled.div`
3084
3648
  grid-template-columns: 1fr auto;
3085
3649
  gap: 4px;
3086
3650
  `
3087
- export const IconDot = styled.span<{ $mode?: string }>`
3651
+ export const IconDot = styled.span<{ $mode?: 'list' | 'header' }>`
3088
3652
  display: grid;
3089
3653
  min-width: 18px;
3090
3654
  height: 18px;
@@ -3096,13 +3660,27 @@ export const IconDot = styled.span<{ $mode?: string }>`
3096
3660
  text-align: center;
3097
3661
  padding: 0px 4px;
3098
3662
  border-radius: var(--ter-rd);
3099
- ${getIconDotModifiedStyled}
3663
+ ${({ $mode }) => ($mode === 'list' || $mode === 'header') && css`
3664
+ position: absolute;
3665
+ top: 0;
3666
+ left: 0;
3667
+ transform: scale(1) translate(-50%, -50%);
3668
+ transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
3669
+ transform-origin: 100% 0%;
3670
+ ${($mode === 'header') && css`
3671
+ left: unset;
3672
+ right: 0;
3673
+ z-index: 99;
3674
+ transform: scale(1) translate(50%, -50%);
3675
+ `}
3676
+ `}
3100
3677
  `
3101
3678
  export const SortByWrapper = styled.section`
3102
3679
  justify-self: end;
3103
3680
  margin-top: 10px;
3104
3681
  display: grid;
3105
3682
  justify-content: end;
3683
+ max-width: 280px;
3106
3684
  @media only screen and (min-width: 768px) {
3107
3685
  margin-top: 0;
3108
3686
  padding-left: 10px;
@@ -3110,7 +3688,6 @@ export const SortByWrapper = styled.section`
3110
3688
  `
3111
3689
  export const DetailWrapper = styled.section`
3112
3690
  width: 100%;
3113
- border-top: 1px solid var(--lay-clr-ln);
3114
3691
  padding-bottom: 16px;
3115
3692
  @media only screen and (min-width: 768px) {
3116
3693
  padding-bottom: 16px;
@@ -3120,11 +3697,10 @@ export const DetailWrapper = styled.section`
3120
3697
  }
3121
3698
  `
3122
3699
  export const CardContainer = styled.section`
3123
- margin-bottom: 16px;
3124
- background: #FFFFFF;
3700
+ background: var(--ter-clr-bg);
3125
3701
  border: 1px solid rgb(232, 232, 232);
3126
3702
  border-radius: var(--sec-rd);
3127
- margin-bottom: 20px;
3703
+ margin-bottom: 16px;
3128
3704
  min-height: 72px;
3129
3705
  display: grid;
3130
3706
  align-items: center;
@@ -3133,8 +3709,30 @@ export const CardContainer = styled.section`
3133
3709
  min-height: 92px;
3134
3710
  }
3135
3711
  `
3136
- export const CardWrapper = styled.div<{ $mode?: string }>`
3137
- ${getCardModFunc}
3712
+ const globalEmptyCss = css`
3713
+ text-align: center;
3714
+ color: var(--mt-clr);
3715
+ `
3716
+ export const CardWrapper = styled.div<{ $mode?: 'empty' | 'empty-invoice' }>`
3717
+ ${({ $mode }) => ($mode === 'empty' || $mode === 'empty-invoice') && css`
3718
+ ${globalEmptyCss}
3719
+ `}
3720
+
3721
+ ${({ $mode }) => $mode === 'empty-invoice' && css`
3722
+ > div {
3723
+ display: grid;
3724
+ align-content: center;
3725
+ grid-gap: 4px;
3726
+ margin: 0 16px;
3727
+ }
3728
+ `}
3729
+
3730
+ ${({ $mode }) => !$mode && css`
3731
+ width: 958px;
3732
+ @media only screen and (min-width: 1024px) {
3733
+ width: unset;
3734
+ }
3735
+ `}
3138
3736
  `
3139
3737
  export const DetailList = styled.ul<{ $mode?: string }>`
3140
3738
  ${clearList}
@@ -3191,6 +3789,7 @@ export const DetailItemInfo = styled.article`
3191
3789
  span {
3192
3790
  text-transform: capitalize;
3193
3791
  overflow-wrap: anywhere;
3792
+ line-height: 16px;
3194
3793
  }
3195
3794
  `
3196
3795
  export const DetailItem = styled.li`
@@ -3225,6 +3824,13 @@ export const DetailItemWrapper = styled.article`
3225
3824
  `
3226
3825
  export const DetailPanelWrapper = styled.section`
3227
3826
  min-height: 66px;
3827
+ padding-left: 10px !important;
3828
+ padding-right: 9px !important;
3829
+ @media only screen and (min-width: 1024px) {
3830
+ > section {
3831
+ margin: 0 10px;
3832
+ }
3833
+ }
3228
3834
  `
3229
3835
  export const PopupBoxWrapper = styled.article`
3230
3836
  display: grid;
@@ -3255,8 +3861,9 @@ export const CreateContainer = styled.section<{ $mode?: string }>`
3255
3861
  background-color: var(--pri-clr-bg);
3256
3862
  ${getCreateContainerModFunc}
3257
3863
  `
3258
- export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
3259
- ${fullGrid}
3864
+ export const CreateHeaderWrapper = styled.article<{ $mode?: 'edit-master' }>`
3865
+ display: inline-grid;
3866
+ width: 100%;
3260
3867
  padding: 26px 15px 14px;
3261
3868
  background-color: var(--hd-clr-bg);
3262
3869
  grid-auto-flow: row;
@@ -3265,8 +3872,8 @@ export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
3265
3872
  article {
3266
3873
  display: grid;
3267
3874
  grid-auto-flow: column;
3268
- grid-template-columns: 350px 1fr;
3269
- grid-gap: 10;
3875
+ grid-template-columns: max-content 1fr;
3876
+ grid-gap: 10px;
3270
3877
  align-items: center;
3271
3878
  label {
3272
3879
  font-weight: 600;
@@ -3291,10 +3898,14 @@ export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
3291
3898
  grid-auto-flow: column;
3292
3899
  }
3293
3900
  .title {
3294
- font-size: 1.5rem;
3901
+ font-size: 30px;
3295
3902
  }
3296
3903
  }
3297
- ${getCreateHeaderWrapperModFunc}
3904
+ ${({ $mode }) => $mode === 'edit-master' && css`
3905
+ aside {
3906
+ grid-template-rows: none;
3907
+ }
3908
+ `}
3298
3909
  `
3299
3910
  export const CreateToolWrapper = styled.article<{ $mode?: string, $type?: string }>`
3300
3911
  padding: 20px 15px;
@@ -3439,7 +4050,7 @@ export const SearchResultList = styled.section`
3439
4050
  overflow-y: auto;
3440
4051
  overflow-x: hidden;
3441
4052
  height: auto;
3442
- max-height: 300px;
4053
+ max-height: 360px;
3443
4054
  `
3444
4055
  export const SearchResultItem = styled.div`
3445
4056
  border-bottom: 1px solid var(--ter-clr-ln);
@@ -3456,6 +4067,7 @@ export const SearchResultItem = styled.div`
3456
4067
  export const ListAddItemContainer = styled.div`
3457
4068
  overflow: auto;
3458
4069
  height: 400px;
4070
+ font-size: 13px;
3459
4071
  `
3460
4072
  export const SearchWrapperPopup = styled.div`
3461
4073
  position: relative;
@@ -3476,14 +4088,19 @@ export const SearchWrapperPopup = styled.div`
3476
4088
  export const PopupAddProductContainer = styled.section`
3477
4089
  margin-top: 1em;
3478
4090
  `
3479
- export const PopupCard = styled.section<{ $mode?: string }>`
4091
+ export const PopupCard = styled.section<{ $mode?: 'mass-payment' }>`
3480
4092
  padding: 1em;
3481
4093
  background-color: var(--sec-clr-bg);
3482
4094
  margin-bottom: 1em;
3483
4095
  @media only screen and (min-width: 768px) {
3484
4096
  padding: 1em 120px;
3485
4097
  }
3486
- ${getPopupCardModFunc}
4098
+ ${({ $mode }) => $mode === 'mass-payment' && css`
4099
+ margin: 0;
4100
+ @media only screen and (min-width: 768px) {
4101
+ padding: 1em 24px;
4102
+ }
4103
+ `}
3487
4104
  `
3488
4105
  export const PopupExportCardWrapper = styled.article`
3489
4106
  display: grid;
@@ -3563,7 +4180,6 @@ export const NavContainerStyles = css`
3563
4180
  }
3564
4181
  }
3565
4182
  `
3566
-
3567
4183
  export const NavContainer = styled.nav`
3568
4184
  ${NavContainerStyles}
3569
4185
  `
@@ -3683,9 +4299,9 @@ export const NavMainItemWrapper = styled.div`
3683
4299
  }
3684
4300
  `
3685
4301
  export const TotalLabel = styled.span`
3686
- letter-spacing: 1.25px;
3687
- display: inline;
3688
- `
4302
+ font-weight: 600;
4303
+ padding-top: 6px;
4304
+ `
3689
4305
  export const FilterColumnContainer = styled.section`
3690
4306
  display: grid;
3691
4307
  justify-content: end;