@teammodlr/ui-kit 3.0.0-beta.23 → 3.0.0-beta.24

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.
@@ -6,7 +6,7 @@ import {
6
6
  } from '@vanilla-extract/css';
7
7
  import { themeVars } from '../../../styles/theme.css';
8
8
 
9
- const sizes = {
9
+ const heights = {
10
10
  xs: '26px',
11
11
  sm: '30px',
12
12
  md: '38px',
@@ -42,7 +42,7 @@ export const wrapper = style({
42
42
 
43
43
  export const base = style({
44
44
  vars: {
45
- [vars.height]: sizes.md,
45
+ [vars.height]: heights.md,
46
46
  [vars.radius]: borderRadiuses.md,
47
47
  [vars.paddingX]: themeVars.space[2],
48
48
  [vars.paddingY]: themeVars.space[0],
@@ -371,12 +371,104 @@ export const arrow = style({
371
371
  height: themeVars.space[4],
372
372
  position: 'absolute',
373
373
  right: themeVars.space[3],
374
- top: themeVars.space[3],
374
+ top: '50%',
375
+ transform: 'translateY(-50%)',
375
376
  display: 'flex',
376
377
  color: themeVars.color.gray[500],
377
378
  transition: 'transform 0.3s ease',
378
379
  });
379
380
 
380
381
  export const arrowOpen = style({
381
- transform: 'rotate(180deg)',
382
+ transform: 'translateY(-50%) rotate(180deg)',
382
383
  })
384
+
385
+ export const fillRoot = style({
386
+ display: 'flex',
387
+ flexDirection: 'column',
388
+ height: '100%',
389
+ width: '100%'
390
+ });
391
+
392
+ export const fill = style({
393
+ flexGrow: 1,
394
+ width: '100%',
395
+ minHeight: 0
396
+ });
397
+
398
+ export const sizes = styleVariants({
399
+ xs: {
400
+ vars: {
401
+ [vars.height]: heights.xs,
402
+ [vars.radius]: borderRadiuses.xs,
403
+ [vars.paddingX]: themeVars.space[1]
404
+ },
405
+ fontSize: themeVars.fontSize.small
406
+ },
407
+ sm: {
408
+ vars: {
409
+ [vars.height]: heights.sm,
410
+ [vars.radius]: borderRadiuses.sm,
411
+ [vars.paddingX]: themeVars.space[1.5]
412
+ },
413
+ fontSize: themeVars.fontSize.small
414
+ },
415
+ md: {
416
+ vars: {
417
+ [vars.height]: heights.md,
418
+ [vars.radius]: borderRadiuses.md
419
+ }
420
+ },
421
+ lg: {
422
+ vars: {
423
+ [vars.height]: heights.lg,
424
+ [vars.radius]: borderRadiuses.lg,
425
+ [vars.paddingX]: themeVars.space[2.5]
426
+ },
427
+ fontSize: themeVars.fontSize.large
428
+ },
429
+ xl: {
430
+ vars: {
431
+ [vars.height]: heights.xl,
432
+ [vars.radius]: borderRadiuses.xl,
433
+ [vars.paddingX]: themeVars.space[3]
434
+ },
435
+ fontSize: themeVars.fontSize.large
436
+ }
437
+ });
438
+
439
+ export const fillBase = style({
440
+ minHeight: 'unset',
441
+ height: '100%',
442
+ lineHeight: 'normal',
443
+ display: 'flex',
444
+ alignItems: 'center',
445
+ overflow: 'hidden',
446
+ paddingRight: '2rem'
447
+ });
448
+
449
+ export const fillLabel = style({
450
+ overflow: 'hidden',
451
+ whiteSpace: 'nowrap',
452
+ textOverflow: 'ellipsis',
453
+ flex: 1,
454
+ minWidth: 0
455
+ });
456
+
457
+ export const noBorder = style({
458
+ vars: {
459
+ [vars.borderColor]: 'transparent'
460
+ },
461
+ borderRadius: 0,
462
+ boxShadow: 'none',
463
+ ':hover': {
464
+ vars: {
465
+ [vars.borderColor]: 'transparent'
466
+ }
467
+ },
468
+ ':focus': {
469
+ vars: {
470
+ [vars.borderColor]: 'transparent'
471
+ },
472
+ boxShadow: 'none'
473
+ }
474
+ });