jac-uk / jac-kit

Library of shared components and helpers. WIP :)
MIT License
1 stars 0 forks source link

Feature/Update table filters #212

Closed HalcyonJAC closed 3 months ago

HalcyonJAC commented 3 months ago

What's included?

  1. Update the style of LoadingMessage component to make the spinner vertically align with the text.

  2. Update the z-index of SidePanel component.

    Before:

    image

    After:

    image

  3. Add the filter type groupOption to the table filters.

    Usage:

    const filters = [
      {
        title: '',
        type: 'groupOption',
        groups: [
          {
            title: 'Senior Selection Exercise Manager',
            field: 'seniorSelectionExerciseManager',
            type: 'option',
            options: [{ label: '', value: '' }],
          },
          {
            title: 'Selection Exercise Manager',
            field: 'selectionExerciseManager',
            type: 'option',
            options: [{ label: '', value: '' }],
          },
        ],
      }
    ]

    Demo:

    video-29884748-1e14e09c13392a2426deb8f43f05f0de.webm