import { n as e } from './chunk-BneVvdWh.js';
import { t } from './jsx-runtime-Bn1Ys6_W.js';
import { n, r, t as i } from './Dropdown-CiUidz9i.js';
var a = e(() => {}),
    o,
    s,
    c,
    l,
    u,
    d,
    f,
    p;
e(() => {
    (r(),
        i(),
        a(),
        (o = t()),
        (s = {
            argTypes: {
                element: {
                    description: `The HTMLElement that will be checked to see if it is out of bounds and in what direction. Can be null or undefined.`,
                    table: { type: { summary: `object` } },
                },
            },
            component: n,
            parameters: {
                controls: { exclude: /.*/g },
                docs: {
                    description: {
                        component: `\`useIsOutOfBounds\` is a React hook that returns an object indicating if the
current component is out of the bounds of its nearest ancestor that doesn’t have overflow: visible. In other words,
it provides collision detection between an element and its bounds. The return value is

\`\`\`
type OutOfBounds = {
    bottom: boolean;
    hasLayout: boolean;
    left: boolean;
    maxHeight: null | number;
    maxWidth: null | number;
    right: boolean;
    top: boolean;
};
\`\`\`

It is used in @acusti/dropdown to automatically position the dropdown in the direction
where there is room for it to render, so this story uses \`<Dropdown>\` to illustrate that behavior.`,
                    },
                },
            },
            tags: [`autodocs`],
            title: `UIKit/Hooks/useIsOutOfBounds`,
        }),
        (c = (0, o.jsxs)(`ul`, {
            children: [
                (0, o.jsx)(`li`, { children: `Brunei Darussalam` }),
                (0, o.jsx)(`li`, { children: `Cambodia` }),
                (0, o.jsx)(`li`, { children: `Indonesia` }),
                (0, o.jsx)(`li`, { children: `Laos` }),
                (0, o.jsx)(`li`, { children: `Malaysia` }),
                (0, o.jsx)(`li`, { children: `Myanmar (Burma)` }),
                (0, o.jsx)(`li`, { children: `Philippines` }),
                (0, o.jsx)(`li`, { children: `Singapore` }),
                (0, o.jsx)(`li`, { children: `Thailand` }),
                (0, o.jsx)(`li`, { children: `Timor-Leste (East Timor)` }),
                (0, o.jsx)(`li`, { children: `Vietnam` }),
            ],
        })),
        (l = {
            args: {
                children: c,
                className: `not-out-of-bounds-example`,
                isSearchable: !0,
                name: `notoutofbounds`,
                placeholder: `Default behavior`,
            },
        }),
        (u = {
            args: {
                children: c,
                className: `out-of-bounds-example`,
                isSearchable: !0,
                name: `outofboundsatbottom`,
                placeholder: `Show above`,
            },
        }),
        (d = {
            args: {
                children: c,
                className: `out-of-bounds-example position-right`,
                isSearchable: !0,
                name: `outofboundsatright`,
                placeholder: `Show above & to the left`,
            },
        }),
        (f = {
            args: {
                children: (0, o.jsxs)(`ul`, {
                    children: [
                        (0, o.jsx)(`li`, { children: `Algeria` }),
                        (0, o.jsx)(`li`, { children: `Angola` }),
                        (0, o.jsx)(`li`, { children: `Benin` }),
                        (0, o.jsx)(`li`, { children: `Botswana` }),
                        (0, o.jsx)(`li`, { children: `Burkina Faso` }),
                        (0, o.jsx)(`li`, { children: `Burundi` }),
                        (0, o.jsx)(`li`, { children: `Cabo Verde` }),
                        (0, o.jsx)(`li`, { children: `Cameroon` }),
                        (0, o.jsx)(`li`, { children: `Central African Republic` }),
                        (0, o.jsx)(`li`, { children: `Chad` }),
                        (0, o.jsx)(`li`, { children: `Comoros` }),
                        (0, o.jsx)(`li`, {
                            children: `Congo, Democratic Republic of the`,
                        }),
                        (0, o.jsx)(`li`, { children: `Congo, Republic of the` }),
                        (0, o.jsx)(`li`, { children: `Cote d’Ivoire` }),
                        (0, o.jsx)(`li`, { children: `Djibouti` }),
                        (0, o.jsx)(`li`, { children: `Egypt` }),
                        (0, o.jsx)(`li`, { children: `Equatorial Guinea` }),
                        (0, o.jsx)(`li`, { children: `Eritrea` }),
                        (0, o.jsx)(`li`, { children: `Eswatini` }),
                        (0, o.jsx)(`li`, { children: `Ethiopia` }),
                        (0, o.jsx)(`li`, { children: `Gabon` }),
                        (0, o.jsx)(`li`, { children: `Gambia` }),
                        (0, o.jsx)(`li`, { children: `Ghana` }),
                        (0, o.jsx)(`li`, { children: `Guinea` }),
                        (0, o.jsx)(`li`, { children: `Guinea-Bissau` }),
                        (0, o.jsx)(`li`, { children: `Kenya` }),
                        (0, o.jsx)(`li`, { children: `Lesotho` }),
                        (0, o.jsx)(`li`, { children: `Liberia` }),
                        (0, o.jsx)(`li`, { children: `Libya` }),
                        (0, o.jsx)(`li`, { children: `Madagascar` }),
                        (0, o.jsx)(`li`, { children: `Malawi` }),
                        (0, o.jsx)(`li`, { children: `Mali` }),
                        (0, o.jsx)(`li`, { children: `Mauritania` }),
                        (0, o.jsx)(`li`, { children: `Mauritius` }),
                        (0, o.jsx)(`li`, { children: `Morocco` }),
                        (0, o.jsx)(`li`, { children: `Mozambique` }),
                        (0, o.jsx)(`li`, { children: `Namibia` }),
                        (0, o.jsx)(`li`, { children: `Niger` }),
                        (0, o.jsx)(`li`, { children: `Nigeria` }),
                        (0, o.jsx)(`li`, { children: `Rwanda` }),
                        (0, o.jsx)(`li`, { children: `Sao Tome and Principe` }),
                        (0, o.jsx)(`li`, { children: `Senegal` }),
                        (0, o.jsx)(`li`, { children: `Seychelles` }),
                        (0, o.jsx)(`li`, { children: `Sierra Leone` }),
                        (0, o.jsx)(`li`, { children: `Somalia` }),
                        (0, o.jsx)(`li`, { children: `South Africa` }),
                        (0, o.jsx)(`li`, { children: `South Sudan` }),
                        (0, o.jsx)(`li`, { children: `Sudan` }),
                        (0, o.jsx)(`li`, { children: `Tanzania` }),
                        (0, o.jsx)(`li`, { children: `Togo` }),
                        (0, o.jsx)(`li`, { children: `Tunisia` }),
                        (0, o.jsx)(`li`, { children: `Uganda` }),
                        (0, o.jsx)(`li`, { children: `Zambia` }),
                        (0, o.jsx)(`li`, { children: `Zimbabwe` }),
                    ],
                }),
                className: `out-of-bounds-top-and-bottom-example`,
                isSearchable: !0,
                name: `outofboundstopandbottom`,
                placeholder: `long list`,
            },
        }),
        (l.parameters = {
            ...l.parameters,
            docs: {
                ...l.parameters?.docs,
                source: {
                    originalSource: `{
  args: {
    children: list,
    className: 'not-out-of-bounds-example',
    isSearchable: true,
    name: 'notoutofbounds',
    placeholder: 'Default behavior'
  }
}`,
                    ...l.parameters?.docs?.source,
                },
            },
        }),
        (u.parameters = {
            ...u.parameters,
            docs: {
                ...u.parameters?.docs,
                source: {
                    originalSource: `{
  args: {
    children: list,
    className: 'out-of-bounds-example',
    isSearchable: true,
    name: 'outofboundsatbottom',
    placeholder: 'Show above'
  }
}`,
                    ...u.parameters?.docs?.source,
                },
            },
        }),
        (d.parameters = {
            ...d.parameters,
            docs: {
                ...d.parameters?.docs,
                source: {
                    originalSource: `{
  args: {
    children: list,
    className: 'out-of-bounds-example position-right',
    isSearchable: true,
    name: 'outofboundsatright',
    placeholder: 'Show above & to the left'
  }
}`,
                    ...d.parameters?.docs?.source,
                },
            },
        }),
        (f.parameters = {
            ...f.parameters,
            docs: {
                ...f.parameters?.docs,
                source: {
                    originalSource: `{
  args: {
    children: <ul>
                <li>Algeria</li>
                <li>Angola</li>
                <li>Benin</li>
                <li>Botswana</li>
                <li>Burkina Faso</li>
                <li>Burundi</li>
                <li>Cabo Verde</li>
                <li>Cameroon</li>
                <li>Central African Republic</li>
                <li>Chad</li>
                <li>Comoros</li>
                <li>Congo, Democratic Republic of the</li>
                <li>Congo, Republic of the</li>
                <li>Cote d’Ivoire</li>
                <li>Djibouti</li>
                <li>Egypt</li>
                <li>Equatorial Guinea</li>
                <li>Eritrea</li>
                <li>Eswatini</li>
                <li>Ethiopia</li>
                <li>Gabon</li>
                <li>Gambia</li>
                <li>Ghana</li>
                <li>Guinea</li>
                <li>Guinea-Bissau</li>
                <li>Kenya</li>
                <li>Lesotho</li>
                <li>Liberia</li>
                <li>Libya</li>
                <li>Madagascar</li>
                <li>Malawi</li>
                <li>Mali</li>
                <li>Mauritania</li>
                <li>Mauritius</li>
                <li>Morocco</li>
                <li>Mozambique</li>
                <li>Namibia</li>
                <li>Niger</li>
                <li>Nigeria</li>
                <li>Rwanda</li>
                <li>Sao Tome and Principe</li>
                <li>Senegal</li>
                <li>Seychelles</li>
                <li>Sierra Leone</li>
                <li>Somalia</li>
                <li>South Africa</li>
                <li>South Sudan</li>
                <li>Sudan</li>
                <li>Tanzania</li>
                <li>Togo</li>
                <li>Tunisia</li>
                <li>Uganda</li>
                <li>Zambia</li>
                <li>Zimbabwe</li>
            </ul>,
    className: 'out-of-bounds-top-and-bottom-example',
    isSearchable: true,
    name: 'outofboundstopandbottom',
    placeholder: 'long list'
  }
}`,
                    ...f.parameters?.docs?.source,
                },
            },
        }),
        (p = [
            `NotOutOfBounds`,
            `OutOfBoundsAtBottom`,
            `OutOfBoundsAtRight`,
            `OutOfBoundsTopAndBottom`,
        ]));
})();
export {
    l as NotOutOfBounds,
    u as OutOfBoundsAtBottom,
    d as OutOfBoundsAtRight,
    f as OutOfBoundsTopAndBottom,
    p as __namedExportsOrder,
    s as default,
};
