summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/select-dialog.css
blob: 41d8f392190b71d54abda7a9d7027a22a4cb6c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[data-component="select-dialog-input"] {
  display: flex;
  height: 40px;
  flex-shrink: 0;
  padding: 4px 10px 4px 6px;
  align-items: center;
  gap: 12px;
  align-self: stretch;

  border-radius: 8px;
  background: var(--surface-base);

  [data-slot="input-container"] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 0 0;

    /* [data-slot="icon"] {} */

    [data-slot="input"] {
      width: 100%;
    }
  }

  /* [data-slot="clear-button"] {} */
}

[data-component="select-dialog"] {
  display: flex;
  flex-direction: column;
  gap: 8px;

  [data-slot="empty-state"] {
    display: flex;
    padding: 32px 160px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;

    [data-slot="message"] {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2px;
      color: var(--text-weak);
      text-align: center;

      /* text-14-regular */
      font-family: var(--font-family-sans);
      font-size: 14px;
      font-style: normal;
      font-weight: var(--font-weight-regular);
      line-height: var(--line-height-large); /* 142.857% */
      letter-spacing: var(--letter-spacing-normal);
    }

    [data-slot="filter"] {
      color: var(--text-strong);
    }
  }

  [data-slot="group"] {
    display: flex;
    flex-direction: column;
    gap: 4px;

    [data-slot="header"] {
      display: flex;
      padding: 4px 8px;
      justify-content: space-between;
      align-items: center;
      align-self: stretch;

      color: var(--text-weak);

      /* text-12-medium */
      font-family: var(--font-family-sans);
      font-size: var(--font-size-small);
      font-style: normal;
      font-weight: var(--font-weight-medium);
      line-height: var(--line-height-large); /* 166.667% */
      letter-spacing: var(--letter-spacing-normal);
    }

    [data-slot="list"] {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      align-self: stretch;

      [data-slot="item"] {
        display: flex;
        width: 100%;
        height: 32px;
        padding: 4px 8px 4px 4px;
        align-items: center;

        &[data-active="true"] {
          border-radius: 8px;
          background: var(--surface-raised-base-hover);
        }
      }
    }
  }
}