forstok-ui-lib 6.2.10 → 6.2.12

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.
@@ -77,46 +77,6 @@ const getInputGroupModFunc = ({ $mode, $required }:{ $mode?: string, $required?:
77
77
  }
78
78
  return style
79
79
  }
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
80
  const getTableHeaderModFunc = ({ $mode, $isPlayground }:{ $mode?: string, $isPlayground?: boolean }) => {
121
81
  let style = `
122
82
  & ${TableHeadLabel} {
@@ -1164,6 +1124,7 @@ const getTableItemModFunc = ({ $mode }:{ $mode?: string }) => {
1164
1124
  style +=`
1165
1125
  grid-auto-flow: column;
1166
1126
  grid-template-columns: 1fr;
1127
+ margin-top: 16px;
1167
1128
  > aside {
1168
1129
  padding: 20px 10px;
1169
1130
  }
@@ -1793,18 +1754,18 @@ export const HeaderContainer = styled.aside`
1793
1754
  grid-gap: 8px;
1794
1755
  grid-template-columns: max-content max-content;
1795
1756
  align-items: center;
1796
- position: relative;
1797
- margin-top: 10px;
1798
1757
  @media only screen and (min-width: 768px) {
1799
- margin-top: 0px;
1800
- top: 10px;
1801
1758
  position: absolute;
1802
- right: 0;
1759
+ right: 20px;
1760
+ top: 10px;
1803
1761
  }
1804
1762
  @media only screen and (min-width: 1366px) {
1805
1763
  right: 20px;
1806
1764
  }
1807
- `
1765
+ @media only screen and (min-width: 1800px) {
1766
+ right: 28px;
1767
+ }
1768
+ `
1808
1769
  export const Title = styled.h1`
1809
1770
  font-size: 22px;
1810
1771
  color: var(--ter-clr);
@@ -1814,7 +1775,6 @@ export const Title = styled.h1`
1814
1775
  font-weight: 400;
1815
1776
  margin-top: 5px;
1816
1777
  letter-spacing: normal;
1817
- line-height: normal;
1818
1778
  }
1819
1779
  @media only screen and (min-width: 768px) {
1820
1780
  font-size: 1.5rem;
@@ -1823,23 +1783,19 @@ export const Title = styled.h1`
1823
1783
  }
1824
1784
  }
1825
1785
  `
1826
- export const PanelWrapper = styled.section<{ $mode?: string }>`
1786
+ export const PanelWrapper = styled.section<{ $mode?: 'full' }>`
1827
1787
  ${responseWidth}
1828
1788
  position: relative;
1829
1789
  min-height: 1px;
1830
1790
  margin: 0 auto;
1831
- padding-top: 8px;
1791
+ padding-top: 4px;
1832
1792
  padding-bottom: 10px;
1833
1793
  @media only screen and (min-width: 768px) {
1834
- padding: 8px 30px 16px;
1794
+ padding: 4px 30px 16px;
1835
1795
  }
1836
- ${({ $mode }:{ $mode?: string }) => {
1837
- if ($mode === 'full') {
1838
- return css`
1839
- width: 100%;
1840
- `
1841
- }
1842
- }}
1796
+ ${({ $mode }) => $mode === 'full' && css`
1797
+ width: 100%;
1798
+ `}
1843
1799
  `
1844
1800
  export const PanelContainer = styled.section<{ $mode?: string }>`
1845
1801
  position: relative;
@@ -1912,6 +1868,16 @@ export const ListContainer = styled.section`
1912
1868
  &:first-child {
1913
1869
  margin-top: -4px;
1914
1870
  }
1871
+ > aside:first-child {
1872
+ @media only screen and (min-width: 768px) {
1873
+ padding-left: 16px;
1874
+ padding-right: 16px;
1875
+ }
1876
+ @media only screen and (min-width: 1024px) {
1877
+ padding-left: 0;
1878
+ padding-right: 0;
1879
+ }
1880
+ }
1915
1881
  `
1916
1882
  export const TabsContainer = styled.section<{ $mode?: string }>`
1917
1883
  width: 100%;
@@ -1927,9 +1893,6 @@ export const TabsContainer = styled.section<{ $mode?: string }>`
1927
1893
  } else if ($mode === 'no-header') {
1928
1894
  return css`
1929
1895
  padding-top: 0;
1930
- @media only screen and (min-width: 1366px) {
1931
- padding-top: 12px;
1932
- }
1933
1896
  `
1934
1897
  }
1935
1898
  }}
@@ -1937,17 +1900,16 @@ export const TabsContainer = styled.section<{ $mode?: string }>`
1937
1900
  export const TabsContent = styled.div<{ $mode?: string }>`
1938
1901
  padding-top: 16px;
1939
1902
  &._refNoTab {
1940
- padding-top: 9px;
1941
- @media only screen and (min-width: 768px) {
1942
- padding-top: 11px;
1943
- }
1903
+ padding-top: 0;
1944
1904
  }
1945
1905
  @media only screen and (min-width: 768px) {
1946
- padding-top: 24px;
1906
+ &._refNoTab {
1907
+ padding-top: 16px;
1908
+ }
1947
1909
  }
1948
1910
  ${getTabsContentModFunc}
1949
1911
  `
1950
- export const FoContainer = styled.section<{ $mode?: string }>`
1912
+ export const FoContainer = styled.section<{ $mode?: 'detail' }>`
1951
1913
  position: relative;
1952
1914
  > section,
1953
1915
  > article {
@@ -1959,38 +1921,35 @@ export const FoContainer = styled.section<{ $mode?: string }>`
1959
1921
  }
1960
1922
  }
1961
1923
  > article {
1962
- height: calc(100vh - 50px);
1924
+ height: calc(100vh - 48px);
1963
1925
  }
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
- }
1926
+ ${({ $mode }) => $mode === 'detail' && css`
1927
+ margin-top: -4px;
1928
+ @media only screen and (min-width: 768px) {
1929
+ > section,
1930
+ > article {
1931
+ > aside {
1932
+ padding-left: 0;
1933
+ padding-right: 0;
1976
1934
  }
1977
- @media only screen and (min-width: 1024px) {
1978
- > section,
1979
- > article {
1980
- > aside {
1981
- padding-left: 0;
1982
- padding-right: 0;
1983
- }
1984
- }
1935
+ }
1936
+ }
1937
+ @media only screen and (min-width: 1024px) {
1938
+ > section,
1939
+ > article {
1940
+ > aside {
1941
+ padding-left: 0;
1942
+ padding-right: 0;
1985
1943
  }
1986
- `
1944
+ }
1987
1945
  }
1988
- }}
1946
+ `}
1989
1947
  `
1990
1948
  export const BreadcrumbContainer = styled.aside`
1991
1949
  position: relative;
1992
- padding: 18px 16px;
1950
+ padding: 0;
1993
1951
  text-align: center;
1952
+ margin-left: 9px !important;
1994
1953
  > a {
1995
1954
  &:first-child {
1996
1955
  display: none;
@@ -1998,8 +1957,8 @@ export const BreadcrumbContainer = styled.aside`
1998
1957
  &:nth-child(2) {
1999
1958
  display: inline;
2000
1959
  position: absolute;
2001
- top: 20px;
2002
- left: .625em;
1960
+ top: 0;
1961
+ left: 0;
2003
1962
  }
2004
1963
  > i {
2005
1964
  float: left;
@@ -2010,14 +1969,15 @@ export const BreadcrumbContainer = styled.aside`
2010
1969
  display: none;
2011
1970
  }
2012
1971
  @media only screen and (min-width: 375px) {
1972
+ margin-left: 16px !important;
2013
1973
  > a {
2014
1974
  &:nth-child(2) {
2015
- left: 16px;
1975
+ left: 4px;
2016
1976
  }
2017
1977
  }
2018
1978
  }
2019
1979
  @media only screen and (min-width: 768px) {
2020
- padding: 8px 30px 20px;
1980
+ padding: 8px 30px 0;
2021
1981
  text-align: left;
2022
1982
  b {
2023
1983
  font-size: .875rem;
@@ -2035,16 +1995,19 @@ export const BreadcrumbContainer = styled.aside`
2035
1995
  }
2036
1996
  }
2037
1997
  }
1998
+ @media (min-width: 1366px) {
1999
+ margin-left: 28px !important;
2000
+ }
2038
2001
  `
2039
2002
  export const InfoGroup = styled.div`
2040
2003
  display: inline-grid;
2041
2004
  grid-auto-flow: column;
2042
- grid-template-columns: minmax(140px, 150px) minmax(140px, 1fr);
2005
+ grid-template-columns: minmax(140px, 165px) minmax(140px, 1fr);
2043
2006
  grid-gap: 5px;
2044
2007
  width: 100%;
2045
2008
  justify-content: left;
2046
2009
  margin-bottom: 14px;
2047
- > span:first-child {
2010
+ span {
2048
2011
  position: relative;
2049
2012
  &:after {
2050
2013
  position: absolute;
@@ -2057,7 +2020,7 @@ export const InfoGroup = styled.div`
2057
2020
  word-break: break-word;
2058
2021
  }
2059
2022
  `
2060
- export const MuteLabel = styled.span<{ $size?: string }>`
2023
+ export const MuteLabel = styled.span<{ $size?: 'medium' }>`
2061
2024
  color: var(--mt-clr);
2062
2025
  font-size: 12px;
2063
2026
  word-break: break-all;
@@ -2070,16 +2033,13 @@ export const MuteLabel = styled.span<{ $size?: string }>`
2070
2033
  margin-right: 0;
2071
2034
  }
2072
2035
  }
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
- }}
2036
+ ${({ $size }) => $size === 'medium' && css`
2037
+ font-size: 13px;
2038
+ line-height: 12px;
2039
+ * {
2040
+ margin-right: 4px;
2041
+ }
2042
+ `}
2083
2043
  `
2084
2044
  export const InputGroup = styled.article<{ $mode?: string, $required?: boolean }>`
2085
2045
  > label,
@@ -2088,11 +2048,13 @@ export const InputGroup = styled.article<{ $mode?: string, $required?: boolean }
2088
2048
  margin-bottom: 6px;
2089
2049
  padding: 0 6px;
2090
2050
  display: block;
2091
- font-size: 14px;
2092
2051
  }
2093
2052
  > div {
2094
2053
  display: grid;
2095
2054
  }
2055
+ ._refRangeContainer {
2056
+ width: 100%;
2057
+ }
2096
2058
  ${getInputGroupModFunc}
2097
2059
  `
2098
2060
  export const BoxContainer = styled.aside`
@@ -2117,6 +2079,10 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
2117
2079
  transition: bottom .2s ease-in-out;
2118
2080
  overflow: auto;
2119
2081
  white-space: nowrap;
2082
+ &.is-active {
2083
+ transition: bottom .2s;
2084
+ bottom: 0;
2085
+ }
2120
2086
  i {
2121
2087
  position: relative;
2122
2088
  top: 5px;
@@ -2125,7 +2091,8 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
2125
2091
  position: relative;
2126
2092
  top: 7px;
2127
2093
  }
2128
- button, a {
2094
+ button,
2095
+ a {
2129
2096
  padding: 6px 16px;
2130
2097
  font-size: 13px;
2131
2098
  min-height: unset;
@@ -2142,10 +2109,14 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
2142
2109
  box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
2143
2110
  border-radius: 10px 10px 0px 0px;
2144
2111
  display: none;
2145
- >i, >span, >button { display: none; }
2146
- >section {
2112
+ > i,
2113
+ > span,
2114
+ > button {
2115
+ display: none;
2116
+ }
2117
+ > section {
2147
2118
  padding: 1em;
2148
- >section >article {
2119
+ > section > article {
2149
2120
  display: inline-grid;
2150
2121
  grid-auto-flow: row;
2151
2122
  grid-gap: 12px;
@@ -2156,18 +2127,83 @@ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
2156
2127
  display:none;
2157
2128
  }
2158
2129
  }
2130
+ &.is-active {
2131
+ @keyframes droptoup {
2132
+ 50% {
2133
+ bottom: -100px;
2134
+ }
2135
+ 50% {
2136
+ bottom: -50px;
2137
+ }
2138
+ 100% {
2139
+ bottom: 0px;
2140
+ }
2141
+ }
2142
+ &._refMasterTableBulkWrapper {
2143
+ display: grid;
2144
+ left: 0;
2145
+ animation: droptoup .075s linear;
2146
+ bottom: 0;
2147
+ overflow-x: hidden;
2148
+ & + ._refDropdownOverlay {
2149
+ display: block;
2150
+ width: 100%;
2151
+ height: 100%;
2152
+ position: fixed;
2153
+ top: 0;
2154
+ left: 0;
2155
+ z-index: 100;
2156
+ background-color: rgba(0, 0, 0, .1);
2157
+ }
2158
+ }
2159
+ }
2159
2160
  }
2160
- ${getBulkActionWrapperModifiedStyled}
2161
+ ${({ $isOpen }) => $isOpen && css`
2162
+ transition: bottom .2s;
2163
+ bottom: 0;
2164
+ @media (max-width: 767.9px) {
2165
+ @keyframes droptoup {
2166
+ 50% {
2167
+ bottom: -100px;
2168
+ }
2169
+ 50% {
2170
+ bottom: -50px;
2171
+ }
2172
+ 100% {
2173
+ bottom: 0px;
2174
+ }
2175
+ }
2176
+ &._refMasterTableBulkWrapper {
2177
+ display: grid;
2178
+ left: 0;
2179
+ animation: droptoup .075s linear;
2180
+ bottom: 0;
2181
+ overflow-x: hidden;
2182
+ & + ._refDropdownOverlay {
2183
+ display: block;
2184
+ width: 100%;
2185
+ height: 100%;
2186
+ position: fixed;
2187
+ top: 0;
2188
+ left: 0;
2189
+ z-index: 100;
2190
+ background-color: rgba(0, 0, 0, .1);
2191
+ }
2192
+ }
2193
+ }
2194
+ `}
2161
2195
  `
2162
2196
  export const InitialContainer = styled.span`
2163
- ${initialStyles}
2197
+ height: 32px;
2198
+ background-color: #000;
2164
2199
  align-items: center;
2165
2200
  display: grid;
2166
2201
  color: #fff;
2167
- text-align: center;
2202
+ text-align: center !important;
2168
2203
  border-radius: var(--ter-rd);
2204
+ width: 100%;
2169
2205
  `
2170
- export const MasterTableActionWrapper = styled.section<{ $mode?: string }>`
2206
+ export const MasterTableActionWrapper = styled.section<{ $mode?: 'picklist' }>`
2171
2207
  height: 35px;
2172
2208
  border-bottom: 1px solid var(--tab-clr-ln);
2173
2209
  background-color: var(--pri-clr-bg);
@@ -2181,20 +2217,16 @@ export const MasterTableActionWrapper = styled.section<{ $mode?: string }>`
2181
2217
  grid-gap: 5px;
2182
2218
  }
2183
2219
  }
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
- `
2220
+ ${({ $mode }) => $mode === 'picklist' && css`
2221
+ background-color: var(--ter-clr-bg);
2222
+ border-top: 1px solid var(--tab-clr-ln);
2223
+ height: 50px;
2224
+ > div {
2225
+ height: 50px !important;
2194
2226
  }
2195
- }}
2227
+ `}
2196
2228
  `
2197
- export const FigureWraper = styled.figure<{ $size?: string, $mode?: string }>`
2229
+ export const FigureWraper = styled.figure<{ $size?: string }>`
2198
2230
  margin: 0;
2199
2231
  position: relative;
2200
2232
  overflow: hidden;
@@ -2210,16 +2242,11 @@ export const FigureWraper = styled.figure<{ $size?: string, $mode?: string }>`
2210
2242
  height: 100%;
2211
2243
  background-color: var(--pri-clr-bg);
2212
2244
  }
2213
- ${({ $size }:{ $size?: string }) => {
2214
- let style = ``;
2215
- if ($size) {
2216
- style += `
2217
- width: ${$size};
2218
- height: ${$size};
2219
- `
2220
- }
2221
- return style;
2222
- }}
2245
+
2246
+ ${({ $size }) => $size && css`
2247
+ width:${$size};
2248
+ height:${$size};
2249
+ `}
2223
2250
  `
2224
2251
  export const PanelBody = styled.section`
2225
2252
  height: 100%;
@@ -2260,10 +2287,13 @@ export const RightPanelContainer = styled.section`
2260
2287
  `
2261
2288
  export const SearchFormWrapper = styled.div<{ $mode?: string }>`
2262
2289
  position: relative;
2290
+ input[name='search'] {
2291
+ font-size: 13px;
2292
+ }
2263
2293
  i {
2264
2294
  position: absolute;
2265
- left: 12px;
2266
2295
  top: 6px;
2296
+ left: 12px;
2267
2297
  pointer-events: none;
2268
2298
  z-index: 1;
2269
2299
  &:last-child {
@@ -2298,8 +2328,6 @@ export const SearchFormWrapper = styled.div<{ $mode?: string }>`
2298
2328
  `
2299
2329
  }
2300
2330
  }}
2301
-
2302
-
2303
2331
  `
2304
2332
  export const TableHeadLabel = styled.span`
2305
2333
  color: var(--mt-clr);
@@ -2310,6 +2338,7 @@ export const TableHeadLabel = styled.span`
2310
2338
  display: inline-block;
2311
2339
  vertical-align: text-top;
2312
2340
  margin-left: 2px;
2341
+ margin-top: 3px;
2313
2342
  }
2314
2343
  dt {
2315
2344
  display: inline;
@@ -2444,7 +2473,6 @@ export const TabsHeader = styled.article`
2444
2473
  `
2445
2474
  export const TabsItem = styled.div<{ $activated?: boolean }>`
2446
2475
  cursor: pointer;
2447
- letter-spacing: 0.6px;
2448
2476
  position: relative;
2449
2477
  padding: 9px;
2450
2478
  color: ${({ $activated }:{ $activated?: boolean }) => $activated ? 'var(--sec-clr-lnk__hvr)' : 'var(--pri-clr-lnk)'};
@@ -2479,9 +2507,9 @@ export const TabsWrapper = styled.section<{ $mode?: string }>`
2479
2507
  overflow: auto;
2480
2508
  &.is-sticky {
2481
2509
  position: fixed;
2482
- top: 0;
2483
- z-index: 9;
2484
- background-color:#FFF;
2510
+ top: 48px;
2511
+ z-index: 9;
2512
+ background-color: var(--sec-clr-bg);
2485
2513
  & + div {
2486
2514
  margin-top: 40px;
2487
2515
  }
@@ -2489,14 +2517,26 @@ export const TabsWrapper = styled.section<{ $mode?: string }>`
2489
2517
  position: relative;
2490
2518
  z-index: 10;
2491
2519
  }
2492
- @media only screen and (min-width: 768px) {
2493
- top: 50px;
2520
+ @media only screen and (min-width: 1280px) {
2521
+ width: calc(100vw - 187px);
2522
+ left: 202px;
2523
+ }
2524
+ @media only screen and (min-width: 1366px) {
2525
+ width: calc(100vw - 220px);
2526
+ left: 220px;
2527
+ }
2528
+ @media only screen and (min-width: 1800px) {
2529
+ padding: 0 20px 0 28px;
2494
2530
  }
2495
2531
  }
2496
2532
  ${getTabsWrapperModFunc}
2497
2533
  `
2498
2534
  export const TableItemColumn = styled.div<{ $mode?: string }>`
2499
2535
  display: grid;
2536
+ &._refFooterContainer {
2537
+ font-weight: 600;
2538
+ border-top: 1px solid var(--pri-clr-ln);
2539
+ }
2500
2540
  > div {
2501
2541
  padding: 10px 0;
2502
2542
  &:last-child {
@@ -2514,16 +2554,9 @@ export const TableItemColumn = styled.div<{ $mode?: string }>`
2514
2554
  }
2515
2555
  &.cell-action {
2516
2556
  display: grid;
2557
+ grid-gap: 4px;
2517
2558
  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;
2559
+ align-content: start;
2527
2560
  }
2528
2561
  }
2529
2562
  ${getTableItemModFunc}
@@ -2560,6 +2593,61 @@ export const TableItemWrapper = styled.section<{ $mode: string, $isBorder?: bool
2560
2593
  }
2561
2594
  ${getTableItemWrapperModFunc}
2562
2595
  `
2596
+ export const UpdateContainer = styled.section<{ $mode?: 'notif' }>`
2597
+ ${responseWidth}
2598
+ position: relative;
2599
+ display: grid;
2600
+ grid-auto-flow: column;
2601
+ text-align: right;
2602
+ grid-gap: 5px;
2603
+ margin: 0 0.625em;
2604
+ justify-content: center;
2605
+ width: auto;
2606
+ border-radius: .5rem;
2607
+ align-items: center;
2608
+ align-content: center;
2609
+ padding: .5em 10px;
2610
+ > section {
2611
+ justify-content: center;
2612
+ }
2613
+ > div {
2614
+ display: grid;
2615
+ grid-gap: 6px;
2616
+ grid-auto-flow: column;
2617
+ line-height: 20px;
2618
+ align-items: center;
2619
+ }
2620
+ @media only screen and (min-width: 375px) {
2621
+ margin: 0 20px;
2622
+ }
2623
+ @media only screen and (min-width: 1024px) {
2624
+ margin: 0 18px;
2625
+ }
2626
+ @media only screen and (min-width: 1800px) {
2627
+ margin: 0 29px;
2628
+ }
2629
+
2630
+ ${({ $mode }) => $mode === 'notif' && css`
2631
+ background-color: #FBE3E1;
2632
+ border: 1px solid var(--act-clr-ln);
2633
+ > section {
2634
+ color: #FF585C;
2635
+ text-align: center;
2636
+ align-items: center;
2637
+ span {
2638
+ line-height: 20px;
2639
+ }
2640
+ > a {
2641
+ justify-self: center;
2642
+ }
2643
+ }
2644
+ `}
2645
+
2646
+ ${({ $mode }) => !$mode && css`
2647
+ background-color: #FFFFEE;
2648
+ border: 1px solid var(--lay-clr-ln);
2649
+ `}
2650
+ `
2563
2651
  export const CollapseContainer = styled.div<{ $mode?: 'nav' }>`
2564
2652
  position: relative;
2565
2653
  top: 0;
@@ -2579,15 +2667,17 @@ export const CollapseContainer = styled.div<{ $mode?: 'nav' }>`
2579
2667
  `}
2580
2668
  `
2581
2669
  export const PaginationContainer = styled.div`
2582
- margin: 10px auto;
2670
+ margin: 9px auto 10px;
2583
2671
  display: inline-grid;
2584
2672
  width: 100%;
2585
2673
  grid-gap: 12px;
2674
+ padding: 8px 0 8px;
2586
2675
  @media only screen and (min-width: 768px) {
2587
- margin: 20px auto 60px;
2676
+ margin: 9px auto 30px;
2677
+ padding: 16px 0 16px;
2588
2678
  }
2589
2679
  `
2590
- export const PageWrapper = styled.div<{ $mode?: string }>`
2680
+ export const PageWrapper = styled.div<{ $mode?: 'noPageOption' }>`
2591
2681
  display: grid;
2592
2682
  grid-auto-flow: row;
2593
2683
  grid-gap: 10px;
@@ -2622,9 +2712,15 @@ export const PageWrapper = styled.div<{ $mode?: string }>`
2622
2712
  justify-content: start;
2623
2713
  }
2624
2714
  }
2625
- ${getPageWrapperModFunc}
2715
+ ${({ $mode }) => $mode === 'noPageOption' && css`
2716
+ @media only screen and (min-width: 768px) {
2717
+ > div:first-child {
2718
+ justify-content: center;
2719
+ }
2720
+ }
2721
+ `}
2626
2722
  `
2627
- export const PageButton = styled.div<{ $activated?: boolean, $disabled?: boolean }>`
2723
+ export const PageButton = styled.div<{ $activated?: boolean, disabled?: boolean }>`
2628
2724
  display: grid;
2629
2725
  justify-content: center;
2630
2726
  align-content: center;
@@ -2632,10 +2728,6 @@ export const PageButton = styled.div<{ $activated?: boolean, $disabled?: boolean
2632
2728
  height: 28px;
2633
2729
  width: auto;
2634
2730
  min-width: 28px;
2635
- border: 1px solid var(--ck-clr-ln);
2636
- cursor: pointer;
2637
- border-radius: var(--ter-rd);
2638
- box-shadow: none;
2639
2731
  ${buttonStyle}
2640
2732
  &:hover {
2641
2733
  ${buttonHoverStyle}
@@ -2646,7 +2738,19 @@ export const PageButton = styled.div<{ $activated?: boolean, $disabled?: boolean
2646
2738
  i {
2647
2739
  margin-top: -3px;
2648
2740
  }
2649
- ${getPageButtonModFunc}
2741
+
2742
+ ${({ $activated }) => $activated && css`
2743
+ ${buttonActiveStyle}
2744
+ `}
2745
+
2746
+ ${({ disabled }) => disabled && css`
2747
+ &, &:hover {
2748
+ background: var(--mt-clr-bg);
2749
+ border-color: var(--ck-clr-ln);
2750
+ opacity: .5;
2751
+ cursor: default;
2752
+ }
2753
+ `}
2650
2754
  `
2651
2755
  export const PageLabel = styled.span`
2652
2756
  font-size: 12px;
@@ -2684,7 +2788,7 @@ export const FilterContainer = styled.article`
2684
2788
  justify-content: left;
2685
2789
  }
2686
2790
  `
2687
- export const SearchFilterContainer = styled.div<{ $mode?: string }>`
2791
+ export const SearchFilterContainer = styled.div<{ $mode?: 'detail' }>`
2688
2792
  width: 100%;
2689
2793
  margin-bottom: 16px !important;
2690
2794
  > article {
@@ -2704,9 +2808,11 @@ export const SearchFilterContainer = styled.div<{ $mode?: string }>`
2704
2808
  justify-items: unset;
2705
2809
  }
2706
2810
  }
2707
- ${getSearchFilterContainerModFunc}
2811
+ ${({ $mode }) => $mode === 'detail' && css`
2812
+ padding-bottom: 10px;
2813
+ `}
2708
2814
  `
2709
- export const SearchWrapper = styled.div<{ width?: string }>`
2815
+ export const SearchWrapper = styled.div<{ $width?: string }>`
2710
2816
  display: grid;
2711
2817
  grid-template-columns: 148px 1fr;
2712
2818
  position: relative;
@@ -2737,7 +2843,17 @@ export const SearchWrapper = styled.div<{ width?: string }>`
2737
2843
  @media only screen and (min-width: 1366px) {
2738
2844
  width: 400px;
2739
2845
  }
2740
- ${getSearchWrapperModFunc}
2846
+ ${({ $width }) => {
2847
+ if ($width) {
2848
+ const _width = $width ? parseInt($width) : 0;
2849
+ return css`
2850
+ grid-template-columns: ${(_width)+'px'} 1fr;
2851
+ button {
2852
+ width: ${$width};
2853
+ }
2854
+ `
2855
+ }
2856
+ }}
2741
2857
  `
2742
2858
  export const ButtonGroup = styled.div`
2743
2859
  position: relative;
@@ -2752,16 +2868,28 @@ export const ButtonGroup = styled.div`
2752
2868
  color: var(--mt-clr);
2753
2869
  padding: 0 12px;
2754
2870
  }
2755
- > button ,
2871
+ > button,
2756
2872
  ._refContainer {
2757
2873
  border-right: 1px solid var(--sec-clr-ln);
2758
- &:last-child {
2874
+ &:last-child{
2759
2875
  border-right: 0;
2760
2876
  }
2761
2877
  }
2762
2878
  ._refContainer {
2763
2879
  max-width: 200px;
2764
2880
  }
2881
+ @media only screen and (min-width: 768px) {
2882
+ > button {
2883
+ padding: 0 10px;
2884
+ font-size: 13px;
2885
+ }
2886
+ }
2887
+ @media only screen and (min-width: 1280px) {
2888
+ > button {
2889
+ padding: 0 12px;
2890
+ font-size: var(--pri-ft-sz);
2891
+ }
2892
+ }
2765
2893
  `
2766
2894
  export const FilterWrapper = styled.section`
2767
2895
  display: inline-block;
@@ -2801,6 +2929,10 @@ export const FilterWrapper = styled.section`
2801
2929
  max-width: 100%;
2802
2930
  }
2803
2931
  }
2932
+ > div:nth-child(n+2) {
2933
+ display: inline-block;
2934
+ width: 48.35% !important;
2935
+ }
2804
2936
  > article {
2805
2937
  float: left
2806
2938
  }
@@ -2814,7 +2946,7 @@ export const FilterWrapper = styled.section`
2814
2946
  margin-top: 0;
2815
2947
  padding-left: 8px;
2816
2948
  grid-auto-flow: column;
2817
- grid-gap: 10px;
2949
+ grid-gap: 8px;
2818
2950
  display: grid;
2819
2951
  > section {
2820
2952
  width: auto !important;
@@ -2824,6 +2956,9 @@ export const FilterWrapper = styled.section`
2824
2956
  align-items: center;
2825
2957
  margin-top: 0px;
2826
2958
  }
2959
+ &:first-child {
2960
+ padding-left: 0;
2961
+ }
2827
2962
  ${ButtonGroup} {
2828
2963
  margin-bottom: 0;
2829
2964
  }
@@ -2831,27 +2966,380 @@ export const FilterWrapper = styled.section`
2831
2966
  `
2832
2967
  export const ListTableContainer = styled.div`
2833
2968
  display: grid;
2834
- grid-gap: 16px;
2835
2969
  padding: 0 .625em 10px;
2836
- overflow: hidden;
2837
2970
  @media only screen and (min-width: 375px) {
2838
- padding: 0 16px 10px;
2971
+ padding: 0 20px;
2839
2972
  }
2840
2973
  @media only screen and (min-width: 1024px) {
2841
2974
  padding: 0;
2842
2975
  }
2976
+ @media only screen and (min-width: 1800px) {
2977
+ padding: 0 16px 0 9px;
2978
+ }
2843
2979
  `
2844
2980
  export const ItemTable = styled.section``
2845
- export const ListTable = styled.main<{ $mode?: string }>`
2981
+ const listTableStyles = {
2982
+ item: css`
2983
+ ${ItemTable} {
2984
+ grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) var(--time) minmax(88px, auto);
2985
+ &[role=rowheader] > div[role=group],
2986
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
2987
+ ._refCollapse > div:not(._refCollapseContainer),
2988
+ ._refCollapseContainer > div {
2989
+ grid-template-columns: var(--variant) var(--sku) var(--qty-big) var(--price) var(--status-big);
2990
+ }
2991
+ input[name=checkbox-list] {
2992
+ & + span {
2993
+ top: 8px;
2994
+ }
2995
+ }
2996
+ }
2997
+ `,
2998
+ listing: css`
2999
+ ${ItemTable} {
3000
+ grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) minmax(88px, auto);
3001
+ &[role=rowheader] > div[role=group],
3002
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
3003
+ ._refCollapse > div:not(._refCollapseContainer),
3004
+ ._refCollapseContainer > div {
3005
+ grid-template-columns: var(--variant) var(--sku) var(--sku) minmax(95px, 115px) var(--price) var(--status-small);
3006
+ }
3007
+ input[name=checkbox-list] {
3008
+ & + span {
3009
+ top: 8px;
3010
+ }
3011
+ }
3012
+ }
3013
+ `,
3014
+ quantity: css`
3015
+ ${overflowStyle}
3016
+ ${ItemTable} {
3017
+ ${overflowItemTableStyle}
3018
+ .column-product {
3019
+ min-width: calc(var(--item-min) + 25px);
3020
+ max-width: calc(var(--item-max) + 25px);
3021
+ flex: 1;
3022
+ }
3023
+ .column-master-sku {
3024
+ min-width: calc(var(--sku-min) + 12px);
3025
+ max-width: calc(var(--sku-max) + 12px);
3026
+ flex: 1;
3027
+ }
3028
+ .column-warehouse {
3029
+ min-width: calc(var(--warehouse-min) + 12px);
3030
+ max-width: calc(var(--warehouse-max) + 12px);
3031
+ flex: 3;
3032
+ }
3033
+ .column-on-hand-total {
3034
+ min-width: 87px;
3035
+ max-width: 97px;
3036
+ flex: 2;
3037
+ }
3038
+ .column-on-hand-damage {
3039
+ min-width: 97px;
3040
+ max-width: 102px;
3041
+ flex: 2;
3042
+ }
3043
+ .column-on-hand-normal {
3044
+ min-width: 97px;
3045
+ max-width: 102px;
3046
+ flex: 2;
3047
+ }
3048
+ .column-reserved-orders {
3049
+ min-width: 87px;
3050
+ max-width: 97px;
3051
+ flex: 2;
3052
+ }
3053
+ .column-picked {
3054
+ min-width: 87px;
3055
+ max-width: 97px;
3056
+ flex: 2;
3057
+ }
3058
+ .column-packed {
3059
+ min-width: 87px;
3060
+ max-width: 97px;
3061
+ flex: 2;
3062
+ }
3063
+ .column-handover {
3064
+ min-width: calc(var(--qty-big-min) + 12px);
3065
+ max-width: calc(var(--qty-big-max) + 12px);
3066
+ flex: 2;
3067
+ }
3068
+ .column-promotion-allocation {
3069
+ min-width: calc(var(--qty-big-min) + 12px);
3070
+ max-width: calc(var(--qty-big-max) + 12px);
3071
+ flex: 2;
3072
+ }
3073
+ .column-available-to-sell {
3074
+ min-width: 95px;
3075
+ max-width: 97px;
3076
+ flex: 2;
3077
+ }
3078
+ .column-in-transit {
3079
+ min-width: 95px;
3080
+ max-width: 105px;
3081
+ flex: 2;
3082
+ }
3083
+ .column-waiting-inbound {
3084
+ min-width: 95px;
3085
+ max-width: 98px;
3086
+ flex: 2;
3087
+ }
3088
+ .column-inbounded {
3089
+ min-width: 110px;
3090
+ max-width: 115px;
3091
+ flex: 2;
3092
+ }
3093
+ .column-waiting-outbound {
3094
+ min-width: 110px;
3095
+ max-width: 112px;
3096
+ flex: 2;
3097
+ }
3098
+ .column-last-updated {
3099
+ min-width: calc(var(--time-min) + 12px);
3100
+ max-width: calc(var(--time-max) + 12px);
3101
+ flex: 2;
3102
+ }
3103
+ .column-actions {
3104
+ min-width: 96px;
3105
+ flex: 1;
3106
+ padding-right: 12px !important;
3107
+ }
3108
+ }
3109
+ `,
3110
+ picklist: css`
3111
+ ${ItemTable} {
3112
+ grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--ref) var(--time) minmax(185px, auto);
3113
+ }
3114
+ `,
3115
+ package: css`
3116
+ ${ItemTable} {
3117
+ grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--person) var(--ref) var(--time) minmax(110px, auto);
3118
+ }
3119
+ `,
3120
+ shipment: css`
3121
+ ${ItemTable} {
3122
+ 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);
3123
+ }
3124
+ `,
3125
+ invoice: css`
3126
+ ${ItemTable} {
3127
+ 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);
3128
+ @media only screen and (max-width: 1279px) {
3129
+ width: unset;
3130
+ }
3131
+ }
3132
+ `,
3133
+ 'payment-receive': css`
3134
+ ${ItemTable} {
3135
+ grid-template-columns: var(--time) 155px var(--person) var(--qty) var(--price) minmax(110px, auto);
3136
+ }
3137
+ `,
3138
+ 'sales-return': css`
3139
+ ${ItemTable} {
3140
+ grid-template-columns: var(--id-big) var(--status) var(--warehouse) var(--person) var(--person) var(--ref-big) var(--time) minmax(120px, auto);
3141
+ }
3142
+ `,
3143
+ activity: css`
3144
+ ${ItemTable} {
3145
+ grid-template-columns: var(--time) var(--id-big) var(--item) var(--status) var(--email) var(--status) var(--status) minmax(110px, auto);
3146
+ }
3147
+ `,
3148
+ putaway: css`
3149
+ ${ItemTable} {
3150
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) var(--person) var(--time) minmax(60px, auto);
3151
+ }
3152
+ `,
3153
+ inbound: css`
3154
+ ${ItemTable} {
3155
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 160px) var(--person) var(--time) minmax(170px, auto);
3156
+ }
3157
+ `,
3158
+ lowstock: css`
3159
+ ${ItemTable} {
3160
+ grid-template-columns: var(--checkbox) var(--item) var(--variant) var(--sku) var(--warehouse) var(--qty-big) var(--statusnow) var(--time) minmax(60px, auto);
3161
+ }
3162
+ `,
3163
+ price: css`
3164
+ ${ItemTable} {
3165
+ grid-template-columns: var(--time) var(--id-big) var(--status) var(--qty) var(--email) var(--status) minmax(60px, auto);
3166
+ }
3167
+ `,
3168
+ 'stock-adjustment': css`
3169
+ ${ItemTable} {
3170
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 150px) var(--person) var(--time) minmax(160px, auto);
3171
+ }
3172
+ `,
3173
+ 'stock-outbound': css`
3174
+ ${ItemTable} {
3175
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(150px,160px) var(--person) var(--time) minmax(160px, auto);
3176
+ }
3177
+ `,
3178
+ 'stock-transfer': css`
3179
+ ${ItemTable} {
3180
+ grid-template-columns: var(--id) var(--status-big) var(--warehouse) var(--warehouse) minmax(90px, 100px) var(--person) var(--time) minmax(160px, auto);
3181
+ }
3182
+ `,
3183
+ promotion: css`
3184
+ ${ItemTable} {
3185
+ 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);
3186
+ }
3187
+ `,
3188
+ 'stock-history': css`
3189
+ ${ItemTable} {
3190
+ 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);
3191
+ > *:last-child {
3192
+ display: unset;
3193
+ justify-content: unset;
3194
+ }
3195
+ @media only screen and (max-width: 1279px) {
3196
+ width: unset;
3197
+ }
3198
+ }
3199
+ `,
3200
+ 'price-history': css`
3201
+ ${ItemTable} {
3202
+ @media only screen and (max-width: 1279px) {
3203
+ width: unset;
3204
+ }
3205
+ > *:last-child {
3206
+ display: unset;
3207
+ justify-content: unset;
3208
+ }
3209
+ 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);
3210
+ }
3211
+ `,
3212
+ turnover: css`
3213
+ ${ItemTable} {
3214
+ @media only screen and (max-width: 1279px) {
3215
+ width: unset;
3216
+ }
3217
+ > *:last-child {
3218
+ display: unset;
3219
+ justify-content: unset;
3220
+ }
3221
+ grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) repeat(4, var(--qty)) minmax(75px,88px);
3222
+ }
3223
+ `,
3224
+ 'days-outofstock': css`
3225
+ ${ItemTable} {
3226
+ @media only screen and (max-width: 1279px) {
3227
+ width: unset;
3228
+ }
3229
+ > *:last-child {
3230
+ display: unset;
3231
+ justify-content: unset;
3232
+ }
3233
+ grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) var(--qty-big) var(--qty) var(--qty-big) var(--time) minmax(75px,88px);
3234
+ }
3235
+ `,
3236
+ warehouses: css`
3237
+ ${ItemTable} {
3238
+ grid-template-columns: var(--warehouse) var(--status) var(--id-big) var(--qty-big) var(--time) minmax(110px, auto);
3239
+ }
3240
+ `,
3241
+ archived: css`
3242
+ ${ItemTable} {
3243
+ grid-template-columns: var(--time-pd20) minmax(auto, max-content) minmax(88px, auto);
3244
+ &[role=rowheader] > div[role=group],
3245
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
3246
+ ._refCollapse > div:not(._refCollapseContainer),
3247
+ ._refCollapseContainer > div {
3248
+ grid-template-columns: var(--sku) var(--item);
3249
+ }
3250
+ }
3251
+ `,
3252
+ order: css`
3253
+ ${ItemTable} {
3254
+ grid-template-columns: var(--checkbox) 118px 90px minmax(auto, max-content);
3255
+ input[name=checkbox-list]{
3256
+ & + span {
3257
+ top: 8px;
3258
+ }
3259
+ }
3260
+ &[role=rowheader] > div[role=group] {
3261
+ grid-template-columns: var(--order) 40px 80px 80px 88px minmax(145px, auto);
3262
+ }
3263
+ ._refCollapse > div:not(._refCollapseContainer),
3264
+ ._refCollapseContainer > div {
3265
+ grid-template-columns: var(--order) 40px 80px 80px;
3266
+ }
3267
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
3268
+ ._refCollapse > div,
3269
+ ._refCollapseContainer > div {
3270
+ &:nth-child(n+2) {
3271
+ border-top: none;
3272
+ }
3273
+ }
3274
+ }
3275
+ @media only screen and (min-width: 1280px) {
3276
+ ${ItemTable} {
3277
+ grid-template-columns: var(--checkbox) 118px 118px minmax(auto, max-content);
3278
+ &[role=rowheader] > div[role=group] {
3279
+ grid-template-columns: var(--order) 40px 80px 80px 107px minmax(145px, auto);
3280
+ }
3281
+ ._refCollapse > div:not(._refCollapseContainer),
3282
+ ._refCollapseContainer > div {
3283
+ grid-template-columns: var(--order) 40px 80px 80px;
3284
+ }
3285
+ }
3286
+ }
3287
+ @media only screen and (min-width: 1366px) {
3288
+ ${ItemTable} {
3289
+ grid-template-columns: var(--checkbox) 120px 118px minmax(auto, max-content);
3290
+ &[role=rowheader] > div[role=group] {
3291
+ grid-template-columns: var(--order) 40px 90px 80px 130px minmax(150px, auto);
3292
+ }
3293
+ ._refCollapse > div:not(._refCollapseContainer),
3294
+ ._refCollapseContainer > div {
3295
+ grid-template-columns: var(--order) 40px 90px 80px;
3296
+ }
3297
+ }
3298
+ }
3299
+ @media only screen and (min-width: 1800px) {
3300
+ ${ItemTable} {
3301
+ grid-template-columns: var(--checkbox) minmax(125px, 170px) minmax(85px, 145px) minmax(auto, max-content);
3302
+ &[role=rowheader] > div[role=group] {
3303
+ grid-template-columns: var(--order) 50px 110px 130px 130px minmax(50px, 2000px);
3304
+ }
3305
+ ._refCollapse > div:not(._refCollapseContainer),
3306
+ ._refCollapseContainer > div {
3307
+ grid-template-columns: var(--order) 50px 110px 130px;
3308
+ }
3309
+ }
3310
+ }
3311
+ @media only screen and (min-width: 1920px) {
3312
+ ${ItemTable} {
3313
+ &[role=rowheader] > div[role=group] {
3314
+ grid-template-columns: var(--order) 50px 110px 145px 130px minmax(50px, 2000px);
3315
+ }
3316
+ ._refCollapse > div:not(._refCollapseContainer),
3317
+ ._refCollapseContainer > div {
3318
+ grid-template-columns: var(--order) 50px 110px 145px;
3319
+ }
3320
+ }
3321
+ }
3322
+ `,
3323
+ 'table-customheader': css`
3324
+ ${overflowStyle}
3325
+ ${ItemTable} {
3326
+ ${overflowItemTableStyle}
3327
+ > *:last-child {
3328
+ display: block;
3329
+ justify-content: inherit;
3330
+ }
3331
+ }
3332
+ `,
3333
+ } as const
3334
+ export const ListTable = styled.main<{ $mode?: ModeListTableColumn }>`
2846
3335
  position: relative;
2847
3336
  width: 100%;
2848
3337
  overflow-x: auto;
2849
3338
  ${ItemTable} {
2850
- width: calc(100% - 19px);
3339
+ padding: 8px 0 8px 0;
3340
+ width: calc(100% - 20px);
2851
3341
  min-width: 975px;
2852
3342
  border-bottom: 1px solid var(--ter-clr-ln);
2853
- margin: 9px 9px 9px 10px;
2854
- padding: 16px 12px 16px 19px;
2855
3343
  display: inline-grid;
2856
3344
  grid-gap: 12px;
2857
3345
  align-items: start;
@@ -2863,12 +3351,11 @@ export const ListTable = styled.main<{ $mode?: string }>`
2863
3351
  align-items: start;
2864
3352
  grid-gap: 12px;
2865
3353
  }
2866
- &[role=rowheader],
2867
- &:nth-child(2) {
3354
+ &[role=rowheader], &:nth-child(2) {
2868
3355
  border-top: 0;
2869
3356
  }
2870
3357
  &[role=rowheader] {
2871
- padding: 18px 12px 18px 19px;
3358
+ padding: 1em 0 1em 0;
2872
3359
  border-bottom: 1px solid #e8e8ec;
2873
3360
  color: var(--mt-clr);
2874
3361
  position: relative;
@@ -2878,40 +3365,45 @@ export const ListTable = styled.main<{ $mode?: string }>`
2878
3365
  font-size: .875rem;
2879
3366
  }
2880
3367
  &[role=row] {
2881
- margin-top: 0;
2882
- margin-bottom: 0;
3368
+ padding: 1.25em 0 1.25em 0;
2883
3369
  }
2884
3370
  &[role=row] > div[role=cellgroup] > div[role=rowgroup],
2885
3371
  ._refCollapse > div,
2886
3372
  ._refCollapseContainer > div {
2887
- padding-bottom: 1em;
2888
3373
  &:nth-child(n+2) {
2889
3374
  border-top: 1px solid rgba(227, 227, 227, .7);
2890
3375
  padding-top: 16px;
2891
3376
  }
2892
- &:last-child {
2893
- padding-bottom: 0;
2894
- }
2895
3377
  }
2896
- > *:last-child {
2897
- display: grid;
2898
- justify-content: end;
3378
+ ._refCollapseContainer {
3379
+ padding-bottom: 0;
2899
3380
  }
2900
3381
  input[name=checkbox-selectAll] {
2901
3382
  & + span {
2902
3383
  top: 50%;
2903
3384
  }
2904
3385
  }
2905
- input[name=checkbox-list] {
3386
+ input[name=checkbox-list]{
2906
3387
  & + span {
2907
3388
  top: 0;
2908
3389
  }
2909
3390
  }
2910
- ._refCollapseContainer {
2911
- padding-bottom: 0;
3391
+ > *:last-child {
3392
+ display: grid;
3393
+ justify-content: end;
2912
3394
  }
2913
3395
  }
2914
- ${getListTableFunc}
3396
+ @media only screen and (min-width: 1024px) {
3397
+ ${ItemTable} {
3398
+ &[role=rowheader],
3399
+ &[role=row] {
3400
+ margin: 0 10px;
3401
+ padding-left: 9px;
3402
+ padding-right: 9px;
3403
+ }
3404
+ }
3405
+ }
3406
+ ${({ $mode }) => $mode && $mode in listTableStyles ? listTableStyles[$mode] : ''}
2915
3407
  `
2916
3408
  export const DateWrapper = styled.div`
2917
3409
  display: grid;
@@ -2943,13 +3435,13 @@ export const DropdownTitle = styled.div`
2943
3435
  font-style: normal;
2944
3436
  }
2945
3437
  `
2946
- export const DropdownList = styled.ul<{ $mode?: string }>`
3438
+ export const DropdownList = styled.ul<{ $mode?: 'no-border' }>`
2947
3439
  ${clearList}
2948
3440
  max-height: 44vh;
2949
3441
  overflow: auto;
2950
3442
  > li {
2951
3443
  padding: 8px 1em;
2952
- border-bottom: ${({ $mode }:{ $mode?: string }) => $mode === 'no-border' ? 'none' : '1px solid var(--pri-clr-ln)'};
3444
+ border-bottom: ${({ $mode }:{ $mode?: 'no-border' }) => $mode === 'no-border' ? 'none' : '1px solid var(--pri-clr-ln)'};
2953
3445
  &:last-child {
2954
3446
  border-bottom: 0;
2955
3447
  }
@@ -2958,7 +3450,7 @@ export const DropdownList = styled.ul<{ $mode?: string }>`
2958
3450
  max-height: 50vh;
2959
3451
  }
2960
3452
  `
2961
- export const DropdownItem = styled.li<{ $mode?: string }>`
3453
+ export const DropdownItem = styled.li<{ $mode?: 'categories' }>`
2962
3454
  display: inline-grid;
2963
3455
  width: 100%;
2964
3456
  grid-gap: 10px;
@@ -2968,60 +3460,84 @@ export const DropdownItem = styled.li<{ $mode?: string }>`
2968
3460
  grid-auto-flow: column;
2969
3461
  grid-template-columns: 100px auto;
2970
3462
  }
2971
- ${({ $mode }:{ $mode?: string }) => {
2972
- if ($mode === 'categories') {
2973
- return css`
2974
- grid-auto-flow: column;
2975
- grid-template-columns: 22px auto;
2976
- min-height: 33px;
2977
- align-items: center;
2978
- grid-gap: 0;
2979
- > label {
2980
- cursor: pointer;
2981
- text-transform: capitalize;
2982
- }
2983
- @media only screen and (min-width: 768px) {
2984
- grid-template-columns: 22px auto;
2985
- }
2986
- `
3463
+ ${({ $mode }) => $mode === 'categories' && css`
3464
+ grid-auto-flow: column;
3465
+ grid-template-columns: 22px auto;
3466
+ min-height: 33px;
3467
+ align-items: center;
3468
+ grid-gap: 0;
3469
+ > label {
3470
+ cursor: pointer;
3471
+ text-transform: capitalize;
2987
3472
  }
2988
- }}
3473
+ @media only screen and (min-width: 768px) {
3474
+ grid-template-columns: 22px auto;
3475
+ }
3476
+ `}
2989
3477
  `
2990
3478
  export const DropdownAction = styled.div`
2991
3479
  padding: .8em 1em 1em;
2992
3480
  display: grid;
2993
3481
  grid-auto-flow: column;
2994
3482
  justify-content: end;
2995
- grid-gap: 8px;
3483
+ grid-gap: 4px;
2996
3484
  border-top: 1px solid var(--sec-clr-ln);
2997
3485
  `
2998
3486
  export const FilterList = styled.ul`
2999
3487
  ${clearList}
3000
3488
  `
3001
- export const FilterItem = styled.li`
3002
- > input {
3003
- display: none;
3004
- }
3005
- > label {
3489
+ rt const FilterItem = styled.li`
3490
+ &._refCheckbox {
3006
3491
  display: block;
3007
3492
  float: left;
3008
- padding: 8px 10px;
3009
3493
  margin-right: 4px;
3010
3494
  margin-bottom: 8px;
3011
- border: 1px solid transparent;
3012
- outline: 1px solid transparent;
3013
- cursor: pointer;
3014
- font-size: 13px;
3495
+ > label {
3496
+ padding-left: 0 !important;
3497
+ input, span {
3498
+ display: none !important;
3499
+ }
3500
+ aside {
3501
+ padding: 8px 10px;
3502
+ border: 1px solid transparent;
3503
+ outline: 1px solid transparent;
3504
+ cursor: pointer;
3505
+ font-size: 13px;
3506
+ }
3507
+ input:checked~aside {
3508
+ border: 1px solid var(--sel-clr-ln);
3509
+ outline: 1px solid var(--sel-clr-ln);
3510
+ color: var(--ter-clr);
3511
+ border-radius: var(--sec-rd);
3512
+ }
3513
+ }
3015
3514
  }
3016
- > input:checked + label {
3017
- border: 1px solid var(--sel-clr-ln);
3018
- outline: 1px solid var(--sel-clr-ln);
3019
- color: var(--ter-clr);
3020
- border-radius: var(--sec-rd);
3515
+ &:not(._refCheckbox) {
3516
+ > input {
3517
+ display: none;
3518
+ }
3519
+ > label {
3520
+ display: block;
3521
+ float: left;
3522
+ padding: 8px 10px;
3523
+ margin-right: 4px;
3524
+ margin-bottom: 8px;
3525
+ border: 1px solid transparent;
3526
+ outline: 1px solid transparent;
3527
+ cursor: pointer;
3528
+ font-size: 13px;
3529
+ }
3530
+ > input:checked + label {
3531
+ border: 1px solid var(--sel-clr-ln);
3532
+ outline: 1px solid var(--sel-clr-ln);
3533
+ color: var(--ter-clr);
3534
+ border-radius: var(--sec-rd);
3535
+ }
3021
3536
  }
3022
3537
  `
3023
3538
  export const FilterListTitle = styled.strong`
3024
3539
  padding-top: 8px;
3540
+ font-size: 13px;
3025
3541
  `
3026
3542
  export const FilterButton = styled.div`
3027
3543
  display: grid;
@@ -3029,7 +3545,7 @@ export const FilterButton = styled.div`
3029
3545
  grid-template-columns: 1fr auto;
3030
3546
  gap: 4px;
3031
3547
  `
3032
- export const IconDot = styled.span<{ $mode?: string }>`
3548
+ export const IconDot = styled.span<{ $mode?: 'list' | 'header' }>`
3033
3549
  display: grid;
3034
3550
  min-width: 18px;
3035
3551
  height: 18px;
@@ -3041,13 +3557,27 @@ export const IconDot = styled.span<{ $mode?: string }>`
3041
3557
  text-align: center;
3042
3558
  padding: 0px 4px;
3043
3559
  border-radius: var(--ter-rd);
3044
- ${getIconDotModifiedStyled}
3560
+ ${({ $mode }) => ($mode === 'list' || $mode === 'header') && css`
3561
+ position: absolute;
3562
+ top: 0;
3563
+ left: 0;
3564
+ transform: scale(1) translate(-50%, -50%);
3565
+ transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
3566
+ transform-origin: 100% 0%;
3567
+ ${($mode === 'header') && css`
3568
+ left: unset;
3569
+ right: 0;
3570
+ z-index: 99;
3571
+ transform: scale(1) translate(50%, -50%);
3572
+ `}
3573
+ `}
3045
3574
  `
3046
3575
  export const SortByWrapper = styled.section`
3047
3576
  justify-self: end;
3048
3577
  margin-top: 10px;
3049
3578
  display: grid;
3050
3579
  justify-content: end;
3580
+ max-width: 280px;
3051
3581
  @media only screen and (min-width: 768px) {
3052
3582
  margin-top: 0;
3053
3583
  padding-left: 10px;
@@ -3055,7 +3585,6 @@ export const SortByWrapper = styled.section`
3055
3585
  `
3056
3586
  export const DetailWrapper = styled.section`
3057
3587
  width: 100%;
3058
- border-top: 1px solid var(--lay-clr-ln);
3059
3588
  padding-bottom: 16px;
3060
3589
  @media only screen and (min-width: 768px) {
3061
3590
  padding-bottom: 16px;
@@ -3065,11 +3594,10 @@ export const DetailWrapper = styled.section`
3065
3594
  }
3066
3595
  `
3067
3596
  export const CardContainer = styled.section`
3068
- margin-bottom: 16px;
3069
- background: #FFFFFF;
3597
+ background: var(--ter-clr-bg);
3070
3598
  border: 1px solid rgb(232, 232, 232);
3071
3599
  border-radius: var(--sec-rd);
3072
- margin-bottom: 20px;
3600
+ margin-bottom: 16px;
3073
3601
  min-height: 72px;
3074
3602
  display: grid;
3075
3603
  align-items: center;
@@ -3078,8 +3606,30 @@ export const CardContainer = styled.section`
3078
3606
  min-height: 92px;
3079
3607
  }
3080
3608
  `
3081
- export const CardWrapper = styled.div<{ $mode?: string }>`
3082
- ${getCardModFunc}
3609
+ const globalEmptyCss = css`
3610
+ text-align: center;
3611
+ color: var(--mt-clr);
3612
+ `
3613
+ export const CardWrapper = styled.div<{ $mode?: 'empty' | 'empty-invoice' }>`
3614
+ ${({ $mode }) => ($mode === 'empty' || $mode === 'empty-invoice') && css`
3615
+ ${globalEmptyCss}
3616
+ `}
3617
+
3618
+ ${({ $mode }) => $mode === 'empty-invoice' && css`
3619
+ > div {
3620
+ display: grid;
3621
+ align-content: center;
3622
+ grid-gap: 4px;
3623
+ margin: 0 16px;
3624
+ }
3625
+ `}
3626
+
3627
+ ${({ $mode }) => !$mode && css`
3628
+ width: 958px;
3629
+ @media only screen and (min-width: 1024px) {
3630
+ width: unset;
3631
+ }
3632
+ `}
3083
3633
  `
3084
3634
  export const DetailList = styled.ul<{ $mode?: string }>`
3085
3635
  ${clearList}
@@ -3136,6 +3686,7 @@ export const DetailItemInfo = styled.article`
3136
3686
  span {
3137
3687
  text-transform: capitalize;
3138
3688
  overflow-wrap: anywhere;
3689
+ line-height: 16px;
3139
3690
  }
3140
3691
  `
3141
3692
  export const DetailItem = styled.li`
@@ -3170,6 +3721,13 @@ export const DetailItemWrapper = styled.article`
3170
3721
  `
3171
3722
  export const DetailPanelWrapper = styled.section`
3172
3723
  min-height: 66px;
3724
+ padding-left: 10px !important;
3725
+ padding-right: 9px !important;
3726
+ @media only screen and (min-width: 1024px) {
3727
+ > section {
3728
+ margin: 0 10px;
3729
+ }
3730
+ }
3173
3731
  `
3174
3732
  export const PopupBoxWrapper = styled.article`
3175
3733
  display: grid;
@@ -3200,8 +3758,9 @@ export const CreateContainer = styled.section<{ $mode?: string }>`
3200
3758
  background-color: var(--pri-clr-bg);
3201
3759
  ${getCreateContainerModFunc}
3202
3760
  `
3203
- export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
3204
- ${fullGrid}
3761
+ export const CreateHeaderWrapper = styled.article<{ $mode?: 'edit-master' }>`
3762
+ display: inline-grid;
3763
+ width: 100%;
3205
3764
  padding: 26px 15px 14px;
3206
3765
  background-color: var(--hd-clr-bg);
3207
3766
  grid-auto-flow: row;
@@ -3210,8 +3769,8 @@ export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
3210
3769
  article {
3211
3770
  display: grid;
3212
3771
  grid-auto-flow: column;
3213
- grid-template-columns: 350px 1fr;
3214
- grid-gap: 10;
3772
+ grid-template-columns: max-content 1fr;
3773
+ grid-gap: 10px;
3215
3774
  align-items: center;
3216
3775
  label {
3217
3776
  font-weight: 600;
@@ -3236,10 +3795,14 @@ export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
3236
3795
  grid-auto-flow: column;
3237
3796
  }
3238
3797
  .title {
3239
- font-size: 1.5rem;
3798
+ font-size: 30px;
3240
3799
  }
3241
3800
  }
3242
- ${getCreateHeaderWrapperModFunc}
3801
+ ${({ $mode }) => $mode === 'edit-master' && css`
3802
+ aside {
3803
+ grid-template-rows: none;
3804
+ }
3805
+ `}
3243
3806
  `
3244
3807
  export const CreateToolWrapper = styled.article<{ $mode?: string, $type?: string }>`
3245
3808
  padding: 20px 15px;
@@ -3384,7 +3947,7 @@ export const SearchResultList = styled.section`
3384
3947
  overflow-y: auto;
3385
3948
  overflow-x: hidden;
3386
3949
  height: auto;
3387
- max-height: 300px;
3950
+ max-height: 360px;
3388
3951
  `
3389
3952
  export const SearchResultItem = styled.div`
3390
3953
  border-bottom: 1px solid var(--ter-clr-ln);
@@ -3401,6 +3964,7 @@ export const SearchResultItem = styled.div`
3401
3964
  export const ListAddItemContainer = styled.div`
3402
3965
  overflow: auto;
3403
3966
  height: 400px;
3967
+ font-size: 13px;
3404
3968
  `
3405
3969
  export const SearchWrapperPopup = styled.div`
3406
3970
  position: relative;
@@ -3421,14 +3985,19 @@ export const SearchWrapperPopup = styled.div`
3421
3985
  export const PopupAddProductContainer = styled.section`
3422
3986
  margin-top: 1em;
3423
3987
  `
3424
- export const PopupCard = styled.section<{ $mode?: string }>`
3988
+ export const PopupCard = styled.section<{ $mode?: 'mass-payment' }>`
3425
3989
  padding: 1em;
3426
3990
  background-color: var(--sec-clr-bg);
3427
3991
  margin-bottom: 1em;
3428
3992
  @media only screen and (min-width: 768px) {
3429
3993
  padding: 1em 120px;
3430
3994
  }
3431
- ${getPopupCardModFunc}
3995
+ ${({ $mode }) => $mode === 'mass-payment' && css`
3996
+ margin: 0;
3997
+ @media only screen and (min-width: 768px) {
3998
+ padding: 1em 24px;
3999
+ }
4000
+ `}
3432
4001
  `
3433
4002
  export const PopupExportCardWrapper = styled.article`
3434
4003
  display: grid;
@@ -3508,7 +4077,6 @@ export const NavContainerStyles = css`
3508
4077
  }
3509
4078
  }
3510
4079
  `
3511
-
3512
4080
  export const NavContainer = styled.nav`
3513
4081
  ${NavContainerStyles}
3514
4082
  `
@@ -3628,9 +4196,9 @@ export const NavMainItemWrapper = styled.div`
3628
4196
  }
3629
4197
  `
3630
4198
  export const TotalLabel = styled.span`
3631
- letter-spacing: 1.25px;
3632
- display: inline;
3633
- `
4199
+ font-weight: 600;
4200
+ padding-top: 6px;
4201
+ `
3634
4202
  export const FilterColumnContainer = styled.section`
3635
4203
  display: grid;
3636
4204
  justify-content: end;