cynx-lib 1.3.113 → 1.3.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cynx-lib",
3
- "version": "1.3.113",
3
+ "version": "1.3.115",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -25,6 +25,8 @@ function ensureStyles() {
25
25
  }
26
26
 
27
27
  export default function Select({
28
+ label,
29
+ required = false,
28
30
  options = [],
29
31
  value,
30
32
  onChange,
@@ -204,7 +206,7 @@ export default function Select({
204
206
  : '6px')
205
207
  : (s.height <= 26 ? '4px' : s.height <= 28 ? '6px' : 'var(--rmd,var(--rads, 8px))');
206
208
 
207
- return (
209
+ const selectNode = (
208
210
  <div
209
211
  ref={wrapRef}
210
212
  style={{
@@ -465,4 +467,33 @@ export default function Select({
465
467
  )}
466
468
  </div>
467
469
  );
470
+
471
+ if (label) {
472
+ return (
473
+ <div
474
+ style={{
475
+ display: 'flex',
476
+ flexDirection: 'column',
477
+ gap: 5,
478
+ width: '100%',
479
+ }}
480
+ >
481
+ <label
482
+ style={{
483
+ fontSize: size === 'xs' ? 9 : 11,
484
+ fontWeight: 600,
485
+ color: 'var(--t2,#797b8d)',
486
+ textTransform: 'uppercase',
487
+ letterSpacing: '.08em',
488
+ }}
489
+ >
490
+ {label}
491
+ {required && <span style={{ color: 'var(--danger,#f64747)', marginLeft: 2 }}>*</span>}
492
+ </label>
493
+ {selectNode}
494
+ </div>
495
+ );
496
+ }
497
+
498
+ return selectNode;
468
499
  }
@@ -369,7 +369,7 @@ const getSkeletonWidth = (rIdx: number, cIdx: number, key: string) => {
369
369
 
370
370
  <style scoped>
371
371
  .custom-scrollbar {
372
- scrollbar-width: thin;
372
+ scrollbar-width: auto;
373
373
  }
374
374
  .custom-scrollbar::-webkit-scrollbar {
375
375
  width: 6px;
@@ -385,4 +385,9 @@ const getSkeletonWidth = (rIdx: number, cIdx: number, key: string) => {
385
385
  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
386
386
  background-color: rgba(148, 163, 184, 0.5);
387
387
  }
388
+ .custom-scrollbar::-webkit-scrollbar-button {
389
+ display: none;
390
+ width: 0;
391
+ height: 0;
392
+ }
388
393
  </style>