paris 0.18.0 → 0.19.0

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.
@@ -32,8 +32,11 @@
32
32
 
33
33
  .tabBackground {
34
34
  &.glass {
35
- position: absolute;
35
+ position: sticky;
36
+ top: 0;
36
37
  width: 100%;
38
+ z-index: 1;
39
+ background: var(--pte-new-materials-primaryThin-background);
37
40
  }
38
41
  }
39
42
 
@@ -44,32 +47,11 @@
44
47
 
45
48
  &.glass {
46
49
  position: relative;
47
- overflow: hidden;
48
- display: flex;
50
+ overflow-y: auto;
51
+ overflow-x: hidden;
49
52
  }
50
53
  }
51
54
 
52
- .glassContainer {
53
- position: absolute;
54
- width: 100%;
55
- height: 100%;
56
- }
57
-
58
- .glassBlend {
59
- position: absolute;
60
- width: 100%;
61
- height: 100%;
62
- background: var(--pte-new-materials-secondaryRegular-backgroundBlend);
63
- mix-blend-mode: var(--pte-new-materials-secondaryRegular-mixBlendMode);
64
- }
65
-
66
- .glassOpacity {
67
- position: absolute;
68
- width: 100%;
69
- height: 100%;
70
- background: var(--pte-new-materials-secondaryRegular-background);
71
- backdrop-filter: var(--pte-new-blurs-strong);
72
- }
73
55
 
74
56
  .tabListBorder {
75
57
  width: 100%;
@@ -197,49 +179,7 @@
197
179
  width: 100%;
198
180
 
199
181
  &.glass {
200
- &.full {
201
- &.thick {
202
- padding-top: 64px;
203
- }
204
- &.thin {
205
- padding-top: 61px;
206
- }
207
- }
208
- &.fixed {
209
- &.thick {
210
- padding-top: 56px;
211
- }
212
- &.thin {
213
- padding-top: 53px;
214
- }
215
- }
216
- &.compact {
217
- &.thick {
218
- padding-top: 48px;
219
- }
220
- &.thin {
221
- padding-top: 45px;
222
- }
223
- }
224
- @container (min-width: 641px) {
225
- &.auto {
226
- &.thick {
227
- padding-top: 56px;
228
- }
229
- &.thin {
230
- padding-top: 53px;
231
- }
232
- }
233
- }
234
- @container (max-width: 640px) {
235
- &.auto {
236
- &.thick {
237
- padding-top: 48px;
238
- }
239
- &.thin {
240
- padding-top: 45px;
241
- }
242
- }
243
- }
182
+ overflow-y: visible;
183
+ height: auto;
244
184
  }
245
185
  }
@@ -71,7 +71,86 @@ export const Glass: Story = {
71
71
  barStyle: 'thin',
72
72
  backgroundStyle: 'glass',
73
73
  tabs: [
74
- { title: 'Albums', content: 'Tab 1 content' },
74
+ {
75
+ title: 'Albums',
76
+ content: (
77
+ <div style={{ padding: '16px', display: 'flex', flexDirection: 'column', gap: '12px' }}>
78
+ <p>Scroll down to see the glass blur effect on the tab bar.</p>
79
+ <div
80
+ style={{
81
+ padding: '12px',
82
+ background: 'var(--pte-new-colors-overlayMedium)',
83
+ borderRadius: '8px',
84
+ }}
85
+ >
86
+ Item 1
87
+ </div>
88
+ <div
89
+ style={{
90
+ padding: '12px',
91
+ background: 'var(--pte-new-colors-overlayMedium)',
92
+ borderRadius: '8px',
93
+ }}
94
+ >
95
+ Item 2
96
+ </div>
97
+ <div
98
+ style={{
99
+ padding: '12px',
100
+ background: 'var(--pte-new-colors-overlayMedium)',
101
+ borderRadius: '8px',
102
+ }}
103
+ >
104
+ Item 3
105
+ </div>
106
+ <div
107
+ style={{
108
+ padding: '12px',
109
+ background: 'var(--pte-new-colors-overlayMedium)',
110
+ borderRadius: '8px',
111
+ }}
112
+ >
113
+ Item 4
114
+ </div>
115
+ <div
116
+ style={{
117
+ padding: '12px',
118
+ background: 'var(--pte-new-colors-overlayMedium)',
119
+ borderRadius: '8px',
120
+ }}
121
+ >
122
+ Item 5
123
+ </div>
124
+ <div
125
+ style={{
126
+ padding: '12px',
127
+ background: 'var(--pte-new-colors-overlayMedium)',
128
+ borderRadius: '8px',
129
+ }}
130
+ >
131
+ Item 6
132
+ </div>
133
+ <div
134
+ style={{
135
+ padding: '12px',
136
+ background: 'var(--pte-new-colors-overlayMedium)',
137
+ borderRadius: '8px',
138
+ }}
139
+ >
140
+ Item 7
141
+ </div>
142
+ <div
143
+ style={{
144
+ padding: '12px',
145
+ background: 'var(--pte-new-colors-overlayMedium)',
146
+ borderRadius: '8px',
147
+ }}
148
+ >
149
+ Item 8
150
+ </div>
151
+ </div>
152
+ ),
153
+ },
75
154
  {
76
155
  title: 'EPs',
77
156
  content:
@@ -101,7 +180,7 @@ export const Glass: Story = {
101
180
  },
102
181
  render: (args) => (
103
182
  <div style={{ background: 'var(--pte-new-colors-backgroundPrimary)' }}>
104
- <div style={{ height: '120px' }}>
183
+ <div style={{ height: '300px' }}>
105
184
  <Tabs {...args} />
106
185
  </div>
107
186
  </div>
@@ -112,13 +112,16 @@ export const Tabs: FC<TabsProps> = ({
112
112
  <div
113
113
  {...overrides?.tabBackground}
114
114
  className={clsx(styles.tabBackground, styles[backgroundStyle], overrides?.tabBackground?.className)}
115
+ style={{
116
+ ...(backgroundStyle === 'glass'
117
+ ? {
118
+ backdropFilter: 'var(--pte-new-blurs-strong)',
119
+ WebkitBackdropFilter: 'var(--pte-new-blurs-strong)',
120
+ }
121
+ : {}),
122
+ ...overrides?.tabBackground?.style,
123
+ }}
115
124
  >
116
- {backgroundStyle === 'glass' && (
117
- <div className={styles.glassContainer}>
118
- <div className={styles.glassOpacity} />
119
- <div className={styles.glassBlend} />
120
- </div>
121
- )}
122
125
  <TabList
123
126
  {...overrides?.tabList}
124
127
  style={