sposchedule

Форк
1
102 строки · 2.3 Кб
1
export default {
2
  root: {
3
    class: [
4
      //Shape
5
      'rounded-md',
6

7
      //Colors
8
      'border border-surface-200 dark:border-surface-700',
9
      'bg-surface-0 dark:bg-surface-900',
10
    ],
11
  },
12
  header: ({ props }) => ({
13
    class: [
14
      // Flex
15
      'flex items-center justify-between',
16

17
      // Colors
18
      'text-surface-700 dark:text-surface-0/80',
19
      'bg-transparent',
20

21
      //Shape
22
      'rounded-tl-md rounded-tr-md',
23
      'border-0',
24

25
      // Conditional Spacing
26
      {
27
        'p-[1.125rem]': !props.toggleable,
28
        'py-3 px-[1.125rem]': props.toggleable,
29
      },
30
    ],
31
  }),
32
  title: {
33
    class: 'leading-none font-semibold',
34
  },
35
  toggler: {
36
    class: [
37
      // Alignments
38
      'inline-flex items-center justify-center',
39
      'relative',
40

41
      // Sized
42
      'w-7 h-7',
43
      'm-0 p-0',
44

45
      //Shape
46
      'border-0 rounded-full',
47

48
      //Color
49
      'bg-transparent',
50
      'text-surface-600 dark:text-surface-0/80',
51

52
      // States
53
      'hover:text-surface-800 dark:hover:text-surface-0',
54
      'hover:bg-surface-50 dark:hover:bg-[rgba(255,255,255,0.03)]',
55
      'focus:outline-none focus:outline-offset-0 focus-visible:ring-1 focus-visible:ring-primary-400 dark:focus-visible:ring-primary-300',
56

57
      // Transitions
58
      'transition-all duration-200 ease-in-out',
59

60
      // Misc
61
      'overflow-hidden no-underline',
62
      'cursor-pointer',
63
    ],
64
  },
65
  togglerIcon: {
66
    class: 'inline-block w-4 h-4',
67
  },
68
  content: {
69
    class: [
70
      // Spacing
71
      'p-[1.125rem] pt-0',
72

73
      // Shape
74
      'border-0 border-t-0 last:rounded-br-md last:rounded-bl-md',
75

76
      //Color
77
      'text-surface-700 dark:text-surface-0/80',
78
    ],
79
  },
80
  footer: {
81
    class: [
82
      // Spacing
83
      'p-[1.125rem] pt-0',
84

85
      // Shape
86
      'border-0 border-t-0 rounded-br-lg rounded-bl-lg',
87

88
      //Color
89
      'text-surface-700 dark:text-surface-0/80',
90
    ],
91
  },
92
  transition: {
93
    enterFromClass: 'max-h-0',
94
    enterActiveClass:
95
      'overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]',
96
    enterToClass: 'max-h-[1000px]',
97
    leaveFromClass: 'max-h-[1000px]',
98
    leaveActiveClass:
99
      'overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]',
100
    leaveToClass: 'max-h-0',
101
  },
102
};
103

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.