@secondstaxorg/sscomp 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +130 -123
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +40 -20
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +128 -121
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/MarketMovers/style.d.ts +1 -0
- package/types/components/SSXBar/SSXBar.d.ts +2 -1
- package/types/components/SSXBar/types.d.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -95,7 +95,7 @@ const ButtonComp = styled.button`
|
|
|
95
95
|
color:${theme.colors["neutral-900"]};
|
|
96
96
|
border-radius: 8px;
|
|
97
97
|
border: none;
|
|
98
|
-
width:
|
|
98
|
+
width: fit-content;
|
|
99
99
|
cursor: pointer;
|
|
100
100
|
display: flex;
|
|
101
101
|
justify-content: center;
|
|
@@ -221,13 +221,7 @@ const _jsxFileName$10 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compo
|
|
|
221
221
|
*/
|
|
222
222
|
const Button$1 = (props) => {
|
|
223
223
|
const {variant, size, disabled,children} = props;
|
|
224
|
-
return (
|
|
225
|
-
React$1.createElement(React$1.Fragment, null
|
|
226
|
-
, React$1.createElement(ButtonComp, { className: `${variant} ${size}`, disabled: disabled, ...props, __self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 12}}
|
|
227
|
-
, children
|
|
228
|
-
)
|
|
229
|
-
)
|
|
230
|
-
)
|
|
224
|
+
return React$1.createElement(ButtonComp, { className: `${variant} ${size}`, disabled: disabled, ...props, __self: undefined, __source: {fileName: _jsxFileName$10, lineNumber: 10}}, children)
|
|
231
225
|
};
|
|
232
226
|
|
|
233
227
|
const Container$b = styled.div`
|
|
@@ -1354,7 +1348,7 @@ const OutlineButtonComp = styled.button`
|
|
|
1354
1348
|
border-radius: 8px;
|
|
1355
1349
|
border: 1px solid;
|
|
1356
1350
|
text-transform: capitalize;
|
|
1357
|
-
width:
|
|
1351
|
+
width: fit-content;
|
|
1358
1352
|
cursor: pointer;
|
|
1359
1353
|
display:flex;
|
|
1360
1354
|
justify-content:center;
|
|
@@ -17001,7 +16995,7 @@ const DatePickerContainer = styled.div`
|
|
|
17001
16995
|
|
|
17002
16996
|
const InputField$3 = styled.div`
|
|
17003
16997
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
17004
|
-
width:
|
|
16998
|
+
width: 430px;
|
|
17005
16999
|
display: flex;
|
|
17006
17000
|
border-radius: 8px;
|
|
17007
17001
|
background: #ffffff;
|
|
@@ -17471,6 +17465,7 @@ const InputLabel$3 = styled.div`
|
|
|
17471
17465
|
`;
|
|
17472
17466
|
|
|
17473
17467
|
const InputField$2 = styled.div`
|
|
17468
|
+
width: 430px;
|
|
17474
17469
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
17475
17470
|
border-radius: 8px;
|
|
17476
17471
|
background: #ffffff;
|
|
@@ -18124,7 +18119,7 @@ const FieldContainer = styled.div`
|
|
|
18124
18119
|
display: flex;
|
|
18125
18120
|
flex-direction: column;
|
|
18126
18121
|
gap: 16px;
|
|
18127
|
-
width:
|
|
18122
|
+
width: 430px;
|
|
18128
18123
|
`;
|
|
18129
18124
|
|
|
18130
18125
|
const LabelContainer = styled.div`
|
|
@@ -18396,6 +18391,7 @@ const DropdownList = (props) => {
|
|
|
18396
18391
|
};
|
|
18397
18392
|
|
|
18398
18393
|
const RateContainer$1 = styled.div`
|
|
18394
|
+
width: 420px;
|
|
18399
18395
|
padding: 16px;
|
|
18400
18396
|
border-radius: 8px;
|
|
18401
18397
|
background: ${theme.colors.white};
|
|
@@ -18558,6 +18554,7 @@ const IndicesContainer = styled.div`
|
|
|
18558
18554
|
display: flex;
|
|
18559
18555
|
flex-direction: column;
|
|
18560
18556
|
gap: 8px;
|
|
18557
|
+
width: 420px;
|
|
18561
18558
|
`;
|
|
18562
18559
|
|
|
18563
18560
|
const IndicesItem = styled.div`
|
|
@@ -18894,7 +18891,7 @@ const LPRequestTable = (props) => {
|
|
|
18894
18891
|
, React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$A, lineNumber: 68}}, "Provider")
|
|
18895
18892
|
, showBroker && React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$A, lineNumber: 69}}, "Broker")
|
|
18896
18893
|
, React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$A, lineNumber: 70}}, "Client ID" )
|
|
18897
|
-
, React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$A, lineNumber: 71}}, "Transaction Amount" )
|
|
18894
|
+
, React$1.createElement('th', { style: {minWidth:400}, __self: undefined, __source: {fileName: _jsxFileName$A, lineNumber: 71}}, "Transaction Amount" )
|
|
18898
18895
|
, React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$A, lineNumber: 72}}, "Transaction ID" )
|
|
18899
18896
|
, React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$A, lineNumber: 73}}, "Status")
|
|
18900
18897
|
, React$1.createElement('th', {__self: undefined, __source: {fileName: _jsxFileName$A, lineNumber: 74}}, "Date")
|
|
@@ -19793,6 +19790,7 @@ const MarketdataWidgetContainer = styled.div`
|
|
|
19793
19790
|
display: flex;
|
|
19794
19791
|
flex-direction: column;
|
|
19795
19792
|
gap: 8px;
|
|
19793
|
+
width: 420px;
|
|
19796
19794
|
`;
|
|
19797
19795
|
|
|
19798
19796
|
const MarketDataItemContainer = styled.div`
|
|
@@ -19904,6 +19902,10 @@ const MarketData = (props) => {
|
|
|
19904
19902
|
)
|
|
19905
19903
|
};
|
|
19906
19904
|
|
|
19905
|
+
const WidgetContainer = styled.div`
|
|
19906
|
+
width: 420px;
|
|
19907
|
+
`;
|
|
19908
|
+
|
|
19907
19909
|
const MarketMoversWidget = styled.div`
|
|
19908
19910
|
display: flex;
|
|
19909
19911
|
flex-direction: column;
|
|
@@ -20168,7 +20170,7 @@ const MarketMovers = (props) => {
|
|
|
20168
20170
|
];
|
|
20169
20171
|
|
|
20170
20172
|
return (
|
|
20171
|
-
React$1.createElement(
|
|
20173
|
+
React$1.createElement(WidgetContainer, {__self: undefined, __source: {fileName: _jsxFileName$v, lineNumber: 112}}
|
|
20172
20174
|
, React$1.createElement(Tab, { tabs: tabs, __self: undefined, __source: {fileName: _jsxFileName$v, lineNumber: 113}})
|
|
20173
20175
|
, lastUpdated && React$1.createElement(LastUpdated, {__self: undefined, __source: {fileName: _jsxFileName$v, lineNumber: 114}}, "Last updated on " , lastUpdated)
|
|
20174
20176
|
)
|
|
@@ -20485,7 +20487,7 @@ const InputField$1 = styled.input`
|
|
|
20485
20487
|
|
|
20486
20488
|
const InputContainer$2 = styled.div`
|
|
20487
20489
|
height: 50px;
|
|
20488
|
-
width:
|
|
20490
|
+
width: 430px;
|
|
20489
20491
|
border-radius: 8px;
|
|
20490
20492
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
20491
20493
|
display: flex;
|
|
@@ -21204,6 +21206,7 @@ const Container$5 = styled.div`
|
|
|
21204
21206
|
display: flex;
|
|
21205
21207
|
flex-direction: column;
|
|
21206
21208
|
gap: 8px;
|
|
21209
|
+
width: 420px;
|
|
21207
21210
|
`;
|
|
21208
21211
|
|
|
21209
21212
|
const RateContainer = styled.div`
|
|
@@ -21405,7 +21408,7 @@ const InputField = styled.input`
|
|
|
21405
21408
|
const InputContainer$1 = styled.div`
|
|
21406
21409
|
position: relative;
|
|
21407
21410
|
height: 50px;
|
|
21408
|
-
width:
|
|
21411
|
+
width: 430px;
|
|
21409
21412
|
border-radius: 8px;
|
|
21410
21413
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
21411
21414
|
display: flex;
|
|
@@ -21636,6 +21639,7 @@ const SearchBarContainer = styled.div`
|
|
|
21636
21639
|
display: flex;
|
|
21637
21640
|
gap: 8px;
|
|
21638
21641
|
justify-content: space-between;
|
|
21642
|
+
width: 344px;
|
|
21639
21643
|
`;
|
|
21640
21644
|
|
|
21641
21645
|
const SearchBox = styled.input`
|
|
@@ -22921,7 +22925,7 @@ const TextAreaField = styled.textarea`
|
|
|
22921
22925
|
const InputContainer = styled.div`
|
|
22922
22926
|
position: relative;
|
|
22923
22927
|
height: auto;
|
|
22924
|
-
width:
|
|
22928
|
+
width: 430px;
|
|
22925
22929
|
border-radius: 8px;
|
|
22926
22930
|
border: 1px solid ${theme.colors["neutral-200"]};
|
|
22927
22931
|
display: flex;
|
|
@@ -24276,20 +24280,36 @@ const WidgetTitle = (props) => {
|
|
|
24276
24280
|
};
|
|
24277
24281
|
|
|
24278
24282
|
const SSXBarContainer = styled.div`
|
|
24279
|
-
|
|
24283
|
+
padding-inline: 32px;
|
|
24280
24284
|
height: 82px;
|
|
24281
24285
|
left: 0;
|
|
24282
24286
|
right: 0;
|
|
24283
24287
|
display: flex;
|
|
24284
|
-
//justify-content: space-around;
|
|
24285
24288
|
align-items: center;
|
|
24286
24289
|
`;
|
|
24287
24290
|
|
|
24288
24291
|
const _jsxFileName$1 = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\SSXBar\\SSXBar.tsx";
|
|
24292
|
+
|
|
24289
24293
|
const SSXBar = (props) => {
|
|
24290
|
-
const {children} = props;
|
|
24294
|
+
const {children,background} = props;
|
|
24295
|
+
const [bgColor,setBgColor] = React$1.useState(null);
|
|
24296
|
+
|
|
24297
|
+
const lightStyles = {
|
|
24298
|
+
background:theme.colors.white,
|
|
24299
|
+
borderBottom:`1px solid ${theme.colors["neutral-100"]}`
|
|
24300
|
+
};
|
|
24301
|
+
const darkStyles = {
|
|
24302
|
+
background:theme.colors["neutral-900"],
|
|
24303
|
+
color:theme.colors.white
|
|
24304
|
+
};
|
|
24305
|
+
|
|
24306
|
+
React$1.useEffect(()=>{
|
|
24307
|
+
if (background === 'light') setBgColor(lightStyles);
|
|
24308
|
+
if (background === 'dark') setBgColor(darkStyles);
|
|
24309
|
+
},[background]);
|
|
24310
|
+
|
|
24291
24311
|
return (
|
|
24292
|
-
React$1.createElement(SSXBarContainer, { ...props, __self: undefined, __source: {fileName: _jsxFileName$1, lineNumber:
|
|
24312
|
+
React$1.createElement(SSXBarContainer, { ...props, style: bgColor, __self: undefined, __source: {fileName: _jsxFileName$1, lineNumber: 25}}
|
|
24293
24313
|
, children
|
|
24294
24314
|
)
|
|
24295
24315
|
)
|