@kaizen/components 1.78.3 → 1.78.4
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/dist/styles.css
CHANGED
|
@@ -3861,6 +3861,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
3861
3861
|
}
|
|
3862
3862
|
.MenuPopup-module_menuPopup__QgGEa {
|
|
3863
3863
|
/* from $ca-z-index-dropdown */
|
|
3864
|
+
position: absolute;
|
|
3864
3865
|
z-index: 1000;
|
|
3865
3866
|
box-sizing: border-box;
|
|
3866
3867
|
background: var(--color-white);
|
|
@@ -3871,10 +3872,10 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
3871
3872
|
margin-top: var(--spacing-6);
|
|
3872
3873
|
text-align: start;
|
|
3873
3874
|
width: var(--menu-container-width, 294px);
|
|
3874
|
-
max-height: var(--menu-container-height, 500px);
|
|
3875
3875
|
}
|
|
3876
3876
|
|
|
3877
3877
|
.MenuPopup-module_menuPopup__QgGEa[popover]:popover-open {
|
|
3878
|
+
max-height: var(--menu-container-height, 500px);
|
|
3878
3879
|
z-index: unset;
|
|
3879
3880
|
margin: 0;
|
|
3880
3881
|
inset: unset;
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import type { Selection } from '@react-types/shared'
|
|
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react'
|
|
4
4
|
import { expect, userEvent, waitFor, within } from '@storybook/test'
|
|
5
5
|
import isChromatic from 'chromatic'
|
|
6
|
+
import { Card } from '~components/Card'
|
|
6
7
|
import { InlineNotification } from '~components/Notification'
|
|
7
8
|
import { TextField } from '~components/TextField'
|
|
8
9
|
import { FilterMultiSelect, getSelectedOptionLabels } from '..'
|
|
@@ -323,6 +324,39 @@ const sourceCode = `
|
|
|
323
324
|
</FilterMultiSelect>
|
|
324
325
|
`
|
|
325
326
|
|
|
327
|
+
export const WithContentBelow: Story = {
|
|
328
|
+
...FilterMultiSelectTemplate,
|
|
329
|
+
decorators: [
|
|
330
|
+
(Story) => (
|
|
331
|
+
<div>
|
|
332
|
+
<Story />
|
|
333
|
+
<Card classNameOverride="mt-24 p-12" isElevated>
|
|
334
|
+
<p>
|
|
335
|
+
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Veritatis libero dolore
|
|
336
|
+
pariatur enim voluptates aperiam, delectus, harum cum earum quibusdam quos porro
|
|
337
|
+
explicabo quisquam sapiente cupiditate quae hic, minus nam.
|
|
338
|
+
</p>
|
|
339
|
+
</Card>
|
|
340
|
+
</div>
|
|
341
|
+
),
|
|
342
|
+
],
|
|
343
|
+
parameters: {
|
|
344
|
+
chromatic: {
|
|
345
|
+
disable: false,
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
play: async ({ canvasElement, step }) => {
|
|
349
|
+
const canvas = within(canvasElement.parentElement!)
|
|
350
|
+
const triggerButton = await canvas.findByRole('button', {
|
|
351
|
+
name: /Engineer/i,
|
|
352
|
+
})
|
|
353
|
+
await step('Trigger opens the FilterMultiSelect dialog', async () => {
|
|
354
|
+
await userEvent.click(triggerButton)
|
|
355
|
+
await waitFor(() => expect(canvas.getByRole('option', { name: /Front-End/i })).toBeVisible())
|
|
356
|
+
})
|
|
357
|
+
},
|
|
358
|
+
}
|
|
359
|
+
|
|
326
360
|
export const AboveIfAvailable: Story = {
|
|
327
361
|
...WithSectionNotification,
|
|
328
362
|
name: 'With customMenuPopup and vertical placement',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.menuPopup {
|
|
2
2
|
/* from $ca-z-index-dropdown */
|
|
3
|
+
position: absolute;
|
|
3
4
|
z-index: 1000;
|
|
4
5
|
box-sizing: border-box;
|
|
5
6
|
background: var(--color-white);
|
|
@@ -10,10 +11,10 @@
|
|
|
10
11
|
margin-top: var(--spacing-6);
|
|
11
12
|
text-align: start;
|
|
12
13
|
width: var(--menu-container-width, 294px);
|
|
13
|
-
max-height: var(--menu-container-height, 500px);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.menuPopup[popover]:popover-open {
|
|
17
|
+
max-height: var(--menu-container-height, 500px);
|
|
17
18
|
z-index: unset;
|
|
18
19
|
margin: 0;
|
|
19
20
|
inset: unset;
|