@bi-digital/react 0.2.19 → 0.2.21
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/{alert-footer-7-gjIxda.d.ts → alert-footer-KRDyyLma.d.ts} +43 -35
- package/dist/components/alert/alert-footer.d.ts +5 -5
- package/dist/components/alert/alert.d.ts +5 -5
- package/dist/components/alert/index.d.ts +5 -5
- package/dist/components/avatar/avatar.d.ts +5 -5
- package/dist/components/avatar/index.d.ts +5 -5
- package/dist/components/badge/badge.d.ts +5 -5
- package/dist/components/badge/index.d.ts +5 -5
- package/dist/components/button/button.d.ts +5 -5
- package/dist/components/button/index.d.ts +5 -5
- package/dist/components/card/card-action.d.ts +5 -5
- package/dist/components/card/card-actions.d.ts +5 -5
- package/dist/components/card/card-content.d.ts +5 -5
- package/dist/components/card/card-date.d.ts +5 -5
- package/dist/components/card/card-header.d.ts +5 -5
- package/dist/components/card/card-media.d.ts +5 -5
- package/dist/components/card/card.d.ts +5 -5
- package/dist/components/card/index.d.ts +5 -5
- package/dist/components/checkbox/checkbox-subsection.d.ts +5 -5
- package/dist/components/checkbox/checkbox.d.ts +5 -5
- package/dist/components/checkbox/index.d.ts +5 -5
- package/dist/components/chip/chip.d.ts +5 -5
- package/dist/components/chip/index.d.ts +5 -5
- package/dist/components/dialog/dialog-close-button.d.ts +5 -5
- package/dist/components/dialog/dialog-content.d.ts +5 -5
- package/dist/components/dialog/dialog-footer.d.ts +5 -5
- package/dist/components/dialog/dialog-header.d.ts +5 -5
- package/dist/components/dialog/dialog-trigger.d.ts +5 -5
- package/dist/components/dialog/dialog.d.ts +5 -5
- package/dist/components/dialog/index.d.ts +5 -5
- package/dist/components/drawer/drawer-close-button.d.ts +5 -5
- package/dist/components/drawer/drawer-content.d.ts +5 -5
- package/dist/components/drawer/drawer-footer.d.ts +5 -5
- package/dist/components/drawer/drawer-header.d.ts +5 -5
- package/dist/components/drawer/drawer-trigger.d.ts +5 -5
- package/dist/components/drawer/drawer.d.ts +5 -5
- package/dist/components/drawer/index.d.ts +5 -5
- package/dist/components/dropdown/dropdown-button.d.ts +5 -5
- package/dist/components/dropdown/dropdown-trigger.d.ts +5 -5
- package/dist/components/dropdown/dropdown.d.ts +5 -5
- package/dist/components/dropdown/index.d.ts +5 -5
- package/dist/components/field/field-affix.d.ts +5 -5
- package/dist/components/field/field-description.d.ts +5 -5
- package/dist/components/field/field.d.ts +5 -5
- package/dist/components/field/index.d.ts +5 -5
- package/dist/components/fieldset/fieldset-description.d.ts +5 -5
- package/dist/components/fieldset/fieldset-legend.d.ts +5 -5
- package/dist/components/fieldset/fieldset.d.ts +5 -5
- package/dist/components/fieldset/index.d.ts +5 -5
- package/dist/components/filter-group/filter-group.d.ts +5 -5
- package/dist/components/filter-group/index.d.ts +5 -5
- package/dist/components/footer/footer-links.d.ts +1 -1
- package/dist/components/footer/footer.d.ts +5 -5
- package/dist/components/footer/index.d.ts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +1 -1
- package/dist/components/input/index.d.ts +5 -5
- package/dist/components/input/input.d.ts +5 -5
- package/dist/components/label/index.d.ts +5 -5
- package/dist/components/label/label.d.ts +5 -5
- package/dist/components/link/index.d.ts +5 -5
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -5
- package/dist/components/link/link.js +1 -1
- package/dist/components/logo/index.d.ts +5 -5
- package/dist/components/logo/logo.d.ts +5 -5
- package/dist/components/navbar/index.d.ts +5 -5
- package/dist/components/navbar/navbar.d.ts +5 -5
- package/dist/components/navbar/sub-navbar.d.ts +5 -5
- package/dist/components/pagination/index.d.ts +5 -5
- package/dist/components/pagination/pagination-button.d.ts +5 -5
- package/dist/components/pagination/pagination-item.d.ts +1 -1
- package/dist/components/pagination/pagination.d.ts +5 -5
- package/dist/components/popover/index.d.ts +5 -5
- package/dist/components/popover/popover-trigger-context.d.ts +1 -1
- package/dist/components/popover/popover-trigger.d.ts +5 -5
- package/dist/components/popover/popover.d.ts +5 -5
- package/dist/components/radio/index.d.ts +5 -5
- package/dist/components/radio/radio.d.ts +5 -5
- package/dist/components/search/index.d.ts +5 -5
- package/dist/components/search/search.d.ts +5 -5
- package/dist/components/select/index.d.ts +5 -5
- package/dist/components/select/select-optgroup.d.ts +5 -5
- package/dist/components/select/select-option.d.ts +5 -5
- package/dist/components/select/select.d.ts +5 -5
- package/dist/components/skip-link/index.d.ts +5 -5
- package/dist/components/skip-link/skip-link.d.ts +5 -5
- package/dist/components/spinner/index.d.ts +5 -5
- package/dist/components/spinner/spinner.d.ts +5 -5
- package/dist/components/sticky-header/index.d.ts +1 -1
- package/dist/components/sticky-header/sticky-header.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +5 -5
- package/dist/components/tabs/tab.d.ts +5 -5
- package/dist/components/tabs/tabs-list.d.ts +5 -5
- package/dist/components/tabs/tabs-panel.d.ts +5 -5
- package/dist/components/tabs/tabs.d.ts +5 -5
- package/dist/components/textarea/index.d.ts +5 -5
- package/dist/components/textarea/textarea.d.ts +5 -5
- package/dist/components/textfield/index.d.ts +5 -5
- package/dist/components/textfield/textfield.d.ts +5 -5
- package/dist/components/validation-message/index.d.ts +5 -5
- package/dist/components/validation-message/validation-message.d.ts +5 -5
- package/dist/field-DFMMLG-d.js.map +1 -1
- package/dist/{footer-links-Drm2LFnw.d.ts → footer-links-B237uv2H.d.ts} +3 -3
- package/dist/{link-ZiUFZak1.js → link-BdmxFMOF.js} +3 -2
- package/dist/link-BdmxFMOF.js.map +1 -0
- package/dist/main.d.ts +5 -5
- package/dist/main.js +1 -1
- package/dist/{pagination-item-mKQyvHV9.d.ts → pagination-item-CEfdaSuS.d.ts} +3 -3
- package/dist/{popover-trigger-context-C3QaiCth.d.ts → popover-trigger-context-CQKQbCmr.d.ts} +5 -5
- package/dist/{sticky-header-DBX-P8xm.d.ts → sticky-header-CPHxBupp.d.ts} +3 -3
- package/dist/utilities/hooks/index.d.ts +5 -5
- package/dist/utilities/hooks/usePagination/usePagination.d.ts +5 -5
- package/dist/utilities/index.d.ts +5 -5
- package/package.json +4 -4
- package/dist/link-ZiUFZak1.js.map +0 -1
|
@@ -2,16 +2,16 @@ import "../../useCheckboxGroup-DRhqch1m.js";
|
|
|
2
2
|
import "../../useIsomorphicLayoutEffect-BMdz-mee.js";
|
|
3
3
|
import "../../useMergeRefs-iCenhgmf.js";
|
|
4
4
|
import "../../types-Mj1poXVf.js";
|
|
5
|
-
import { Textfield, TextfieldProps } from "../../alert-footer-
|
|
5
|
+
import { Textfield, TextfieldProps } from "../../alert-footer-KRDyyLma.js";
|
|
6
6
|
import "../../dialog-trigger-context-BkQSJ-rX.js";
|
|
7
7
|
import "../../drawer-trigger-context-B3X3kUrY.js";
|
|
8
|
-
import "../../popover-trigger-context-
|
|
8
|
+
import "../../popover-trigger-context-CQKQbCmr.js";
|
|
9
9
|
import "../../dropdown-item-Bhw9nhOp.js";
|
|
10
10
|
import "../../dropdown-list-XN8RJ-SS.js";
|
|
11
11
|
import "../../dropdown-trigger-context-D0QMaRYY.js";
|
|
12
|
-
import "../../footer-links-
|
|
13
|
-
import "../../pagination-item-
|
|
14
|
-
import "../../sticky-header-
|
|
12
|
+
import "../../footer-links-B237uv2H.js";
|
|
13
|
+
import "../../pagination-item-CEfdaSuS.js";
|
|
14
|
+
import "../../sticky-header-CPHxBupp.js";
|
|
15
15
|
import "../../index-CTw2zfCM.js";
|
|
16
16
|
import "../../types-DC-FPmDA.js";
|
|
17
17
|
export { Textfield, TextfieldProps };
|
|
@@ -2,16 +2,16 @@ import "../../useCheckboxGroup-DRhqch1m.js";
|
|
|
2
2
|
import "../../useIsomorphicLayoutEffect-BMdz-mee.js";
|
|
3
3
|
import "../../useMergeRefs-iCenhgmf.js";
|
|
4
4
|
import "../../types-Mj1poXVf.js";
|
|
5
|
-
import { ValidationMessage, ValidationMessageProps } from "../../alert-footer-
|
|
5
|
+
import { ValidationMessage, ValidationMessageProps } from "../../alert-footer-KRDyyLma.js";
|
|
6
6
|
import "../../dialog-trigger-context-BkQSJ-rX.js";
|
|
7
7
|
import "../../drawer-trigger-context-B3X3kUrY.js";
|
|
8
|
-
import "../../popover-trigger-context-
|
|
8
|
+
import "../../popover-trigger-context-CQKQbCmr.js";
|
|
9
9
|
import "../../dropdown-item-Bhw9nhOp.js";
|
|
10
10
|
import "../../dropdown-list-XN8RJ-SS.js";
|
|
11
11
|
import "../../dropdown-trigger-context-D0QMaRYY.js";
|
|
12
|
-
import "../../footer-links-
|
|
13
|
-
import "../../pagination-item-
|
|
14
|
-
import "../../sticky-header-
|
|
12
|
+
import "../../footer-links-B237uv2H.js";
|
|
13
|
+
import "../../pagination-item-CEfdaSuS.js";
|
|
14
|
+
import "../../sticky-header-CPHxBupp.js";
|
|
15
15
|
import "../../index-CTw2zfCM.js";
|
|
16
16
|
import "../../types-DC-FPmDA.js";
|
|
17
17
|
export { ValidationMessage, ValidationMessageProps };
|
|
@@ -2,16 +2,16 @@ import "../../useCheckboxGroup-DRhqch1m.js";
|
|
|
2
2
|
import "../../useIsomorphicLayoutEffect-BMdz-mee.js";
|
|
3
3
|
import "../../useMergeRefs-iCenhgmf.js";
|
|
4
4
|
import "../../types-Mj1poXVf.js";
|
|
5
|
-
import { ValidationMessage, ValidationMessageProps } from "../../alert-footer-
|
|
5
|
+
import { ValidationMessage, ValidationMessageProps } from "../../alert-footer-KRDyyLma.js";
|
|
6
6
|
import "../../dialog-trigger-context-BkQSJ-rX.js";
|
|
7
7
|
import "../../drawer-trigger-context-B3X3kUrY.js";
|
|
8
|
-
import "../../popover-trigger-context-
|
|
8
|
+
import "../../popover-trigger-context-CQKQbCmr.js";
|
|
9
9
|
import "../../dropdown-item-Bhw9nhOp.js";
|
|
10
10
|
import "../../dropdown-list-XN8RJ-SS.js";
|
|
11
11
|
import "../../dropdown-trigger-context-D0QMaRYY.js";
|
|
12
|
-
import "../../footer-links-
|
|
13
|
-
import "../../pagination-item-
|
|
14
|
-
import "../../sticky-header-
|
|
12
|
+
import "../../footer-links-B237uv2H.js";
|
|
13
|
+
import "../../pagination-item-CEfdaSuS.js";
|
|
14
|
+
import "../../sticky-header-CPHxBupp.js";
|
|
15
15
|
import "../../index-CTw2zfCM.js";
|
|
16
16
|
import "../../types-DC-FPmDA.js";
|
|
17
17
|
export { ValidationMessage, ValidationMessageProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-DFMMLG-d.js","names":[],"sources":["../src/components/field/field.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps, AsChildProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type FieldProps = MergeRight<\n DefaultProps & AsChildProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * Position of toggle-type inputs (radio, checkbox) in the field\n * @default start\n */\n position?: 'start' | 'end';\n /**
|
|
1
|
+
{"version":3,"file":"field-DFMMLG-d.js","names":[],"sources":["../src/components/field/field.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps, AsChildProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type FieldProps = MergeRight<\n DefaultProps & AsChildProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * Position of toggle-type inputs (radio, checkbox) in the field\n * @default start\n */\n position?: 'start' | 'end';\n /** Set width: 100% */\n fullwidth?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\n/**\n * The Field component is used to wrap a form field.\n *\n * @example\n * <Field>\n * <Label>Kort beskrivelse</Label>\n * <FieldDescription>Beskrivelse</FieldDescription>\n * <Input />\n * <ValidationMessage>Feilmelding</ValidationMessage>\n * </Field>\n */\nexport const Field = ({ className, dark, position, fullwidth, asChild, ref, ...props }: FieldProps) => {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component\n className={clsx('bi-field', className)}\n data-dark={dark}\n data-position={position}\n data-fullwidth={fullwidth}\n ref={ref}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;AA+BA,MAAa,QAAQ,CAAC,EAAE,WAAW,MAAM,UAAU,WAAW,SAAS,IAAK,GAAG,OAAmB,KAAK;CACrG,MAAM,YAAY,UAAU,OAAO;AAEnC,wBACE,IAAC;EACC,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,iBAAe;EACf,kBAAgB;EACX;EACL,GAAI;GACJ;AAEL"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
2
2
|
import { HTMLAttributes, Ref } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/footer/footer-links.d.ts
|
|
@@ -14,7 +14,7 @@ declare const FooterLinks: ({
|
|
|
14
14
|
children,
|
|
15
15
|
ref,
|
|
16
16
|
...props
|
|
17
|
-
}: FooterLinksProps) =>
|
|
17
|
+
}: FooterLinksProps) => react_jsx_runtime57.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { FooterLinks, FooterLinksProps };
|
|
20
|
-
//# sourceMappingURL=footer-links-
|
|
20
|
+
//# sourceMappingURL=footer-links-B237uv2H.d.ts.map
|
|
@@ -3,12 +3,13 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
|
|
5
5
|
//#region src/components/link/link.tsx
|
|
6
|
-
const Link = ({ asChild, className, color, dark, ref,...rest }) => {
|
|
6
|
+
const Link = ({ asChild, className, color, dark, underline, ref,...rest }) => {
|
|
7
7
|
const Component = asChild ? Slot : "a";
|
|
8
8
|
return /* @__PURE__ */ jsx(Component, {
|
|
9
9
|
className: clsx("bi-link", className),
|
|
10
10
|
"data-color": color,
|
|
11
11
|
"data-dark": dark,
|
|
12
|
+
"data-underline": underline,
|
|
12
13
|
ref,
|
|
13
14
|
...rest
|
|
14
15
|
});
|
|
@@ -16,4 +17,4 @@ const Link = ({ asChild, className, color, dark, ref,...rest }) => {
|
|
|
16
17
|
|
|
17
18
|
//#endregion
|
|
18
19
|
export { Link };
|
|
19
|
-
//# sourceMappingURL=link-
|
|
20
|
+
//# sourceMappingURL=link-BdmxFMOF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-BdmxFMOF.js","names":[],"sources":["../src/components/link/link.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\nimport type { AnchorHTMLAttributes, ReactNode, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type LinkProps = MergeRight<\n DefaultProps & AnchorHTMLAttributes<HTMLAnchorElement>,\n {\n /**\n * Set the color of the link.\n * @default 'primary'\n */\n color?: 'primary' | 'neutral';\n /**\n * Control the underline style of the link.\n * - 'always': The link is always underlined.\n * - 'hover': The link is underlined only on hover.\n * @default 'always'\n */\n underline?: 'always' | 'hover';\n children: ReactNode;\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLAnchorElement>;\n }\n>;\n\nexport const Link = ({ asChild, className, color, dark, underline, ref, ...rest }: LinkProps) => {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={clsx('bi-link', className)}\n data-color={color}\n data-dark={dark}\n data-underline={underline}\n ref={ref}\n {...rest}\n />\n );\n};\n"],"mappings":";;;;;AA+BA,MAAa,OAAO,CAAC,EAAE,SAAS,WAAW,OAAO,MAAM,WAAW,IAAK,GAAG,MAAiB,KAAK;CAC/F,MAAM,YAAY,UAAU,OAAO;AAEnC,wBACE,IAAC;EACC,WAAW,KAAK,WAAW,UAAU;EACrC,cAAY;EACZ,aAAW;EACX,kBAAgB;EACX;EACL,GAAI;GACJ;AAEL"}
|
package/dist/main.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { UseCheckboxGroupOptions, useCheckboxGroup } from "./useCheckboxGroup-DR
|
|
|
2
2
|
import { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect-BMdz-mee.js";
|
|
3
3
|
import "./useMergeRefs-iCenhgmf.js";
|
|
4
4
|
import "./types-Mj1poXVf.js";
|
|
5
|
-
import { Alert, AlertFooter, AlertFooterProps, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Button, ButtonProps, Card, CardAction, CardActionProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardDate, CardDateProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps, Checkbox, CheckboxProps, CheckboxSubsection, CheckboxSubsectionProps, Chip, ChipProps, Dialog, DialogCloseButton, DialogCloseButtonProps, DialogContent, DialogContentProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTrigger, DialogTriggerProps, Drawer, DrawerCloseButton, DrawerCloseButtonProps, DrawerContent, DrawerContentProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerProps, DrawerTrigger, DrawerTriggerProps, Dropdown, DropdownButton, DropdownButtonProps, DropdownProps, DropdownTrigger, DropdownTriggerProps, Field, FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps, FieldDescription, FieldDescriptionProps, FieldProps, Fieldset, FieldsetDescription, FieldsetDescriptionProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps, FilterGroup, FilterGroupProps, Footer, FooterProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Logo, LogoProps, Navbar, NavbarProps, Pagination, PaginationButton, PaginationButtonProps, PaginationProps, Popover, PopoverProps, PopoverTrigger, PopoverTriggerProps, Radio, RadioProps, Search, SearchProps, Select, SelectOptgroup, SelectOptgroupProps, SelectOption, SelectOptionProps, SelectProps, SkipLink, SkipLinkProps, Spinner, SpinnerProps, SubNavbar, SubNavbarProps, Tab, TabProps, Tabs, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps, Textarea, TextareaProps, Textfield, TextfieldProps, UsePaginationProps, ValidationMessage, ValidationMessageProps, usePagination } from "./alert-footer-
|
|
5
|
+
import { Alert, AlertFooter, AlertFooterProps, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Button, ButtonProps, Card, CardAction, CardActionProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardDate, CardDateProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps, Checkbox, CheckboxProps, CheckboxSubsection, CheckboxSubsectionProps, Chip, ChipProps, Dialog, DialogCloseButton, DialogCloseButtonProps, DialogContent, DialogContentProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTrigger, DialogTriggerProps, Drawer, DrawerCloseButton, DrawerCloseButtonProps, DrawerContent, DrawerContentProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerProps, DrawerTrigger, DrawerTriggerProps, Dropdown, DropdownButton, DropdownButtonProps, DropdownProps, DropdownTrigger, DropdownTriggerProps, Field, FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps, FieldDescription, FieldDescriptionProps, FieldProps, Fieldset, FieldsetDescription, FieldsetDescriptionProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps, FilterGroup, FilterGroupProps, Footer, FooterProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Logo, LogoProps, Navbar, NavbarProps, Pagination, PaginationButton, PaginationButtonProps, PaginationProps, Popover, PopoverProps, PopoverTrigger, PopoverTriggerProps, Radio, RadioProps, Search, SearchProps, Select, SelectOptgroup, SelectOptgroupProps, SelectOption, SelectOptionProps, SelectProps, SkipLink, SkipLinkProps, Spinner, SpinnerProps, SubNavbar, SubNavbarProps, Tab, TabProps, Tabs, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps, Textarea, TextareaProps, Textfield, TextfieldProps, UsePaginationProps, ValidationMessage, ValidationMessageProps, usePagination } from "./alert-footer-KRDyyLma.js";
|
|
6
6
|
import { Context, DialogTriggerContext, DialogTriggerContextProps } from "./dialog-trigger-context-BkQSJ-rX.js";
|
|
7
7
|
import { DrawerTriggerContext, DrawerTriggerContextProps } from "./drawer-trigger-context-B3X3kUrY.js";
|
|
8
|
-
import { PopoverTriggerContext, PopoverTriggerContextProps } from "./popover-trigger-context-
|
|
8
|
+
import { PopoverTriggerContext, PopoverTriggerContextProps } from "./popover-trigger-context-CQKQbCmr.js";
|
|
9
9
|
import { DropdownItem, DropdownItemProps } from "./dropdown-item-Bhw9nhOp.js";
|
|
10
10
|
import { DropdownList, DropdownListProps } from "./dropdown-list-XN8RJ-SS.js";
|
|
11
11
|
import { DropdownTriggerContext, DropdownTriggerContextProps } from "./dropdown-trigger-context-D0QMaRYY.js";
|
|
12
|
-
import { FooterLinks, FooterLinksProps } from "./footer-links-
|
|
13
|
-
import { PaginationItem, PaginationItemProps } from "./pagination-item-
|
|
14
|
-
import { StickyHeader, StickyHeaderProps } from "./sticky-header-
|
|
12
|
+
import { FooterLinks, FooterLinksProps } from "./footer-links-B237uv2H.js";
|
|
13
|
+
import { PaginationItem, PaginationItemProps } from "./pagination-item-CEfdaSuS.js";
|
|
14
|
+
import { StickyHeader, StickyHeaderProps } from "./sticky-header-CPHxBupp.js";
|
|
15
15
|
import "./index-CTw2zfCM.js";
|
|
16
16
|
import { MergeRight } from "./types-DC-FPmDA.js";
|
|
17
17
|
export { Alert, AlertFooter, AlertFooterProps, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Button, ButtonProps, Card, CardAction, CardActionProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardDate, CardDateProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps, Checkbox, CheckboxProps, CheckboxSubsection, CheckboxSubsectionProps, Chip, ChipProps, Context, Dialog, DialogCloseButton, DialogCloseButtonProps, DialogContent, DialogContentProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTrigger, DialogTriggerContext, DialogTriggerContextProps, DialogTriggerProps, Drawer, DrawerCloseButton, DrawerCloseButtonProps, DrawerContent, DrawerContentProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerProps, DrawerTrigger, DrawerTriggerContext, DrawerTriggerContextProps, DrawerTriggerProps, Dropdown, DropdownButton, DropdownButtonProps, DropdownItem, DropdownItemProps, DropdownList, DropdownListProps, DropdownProps, DropdownTrigger, DropdownTriggerContext, DropdownTriggerContextProps, DropdownTriggerProps, Field, FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps, FieldDescription, FieldDescriptionProps, FieldProps, Fieldset, FieldsetDescription, FieldsetDescriptionProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps, FilterGroup, FilterGroupProps, Footer, FooterLinks, FooterLinksProps, FooterProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Logo, LogoProps, MergeRight, Navbar, NavbarProps, Pagination, PaginationButton, PaginationButtonProps, PaginationItem, PaginationItemProps, PaginationProps, Popover, PopoverProps, PopoverTrigger, PopoverTriggerContext, PopoverTriggerContextProps, PopoverTriggerProps, Radio, RadioProps, Search, SearchProps, Select, SelectOptgroup, SelectOptgroupProps, SelectOption, SelectOptionProps, SelectProps, SkipLink, SkipLinkProps, Spinner, SpinnerProps, StickyHeader, StickyHeaderProps, SubNavbar, SubNavbarProps, Tab, TabProps, Tabs, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps, Textarea, TextareaProps, Textfield, TextfieldProps, UseCheckboxGroupOptions, UsePaginationProps, ValidationMessage, ValidationMessageProps, useCheckboxGroup, useIsomorphicLayoutEffect, usePagination };
|
package/dist/main.js
CHANGED
|
@@ -71,7 +71,7 @@ import "./filter-group-MjaWbeZO.js";
|
|
|
71
71
|
import { Footer } from "./footer-CXKRhzUT.js";
|
|
72
72
|
import { FooterLinks } from "./footer-links-Dz1UwVuf.js";
|
|
73
73
|
import "./footer-Cq6w0v2j.js";
|
|
74
|
-
import { Link } from "./link-
|
|
74
|
+
import { Link } from "./link-BdmxFMOF.js";
|
|
75
75
|
import "./link-CKJeUW0o.js";
|
|
76
76
|
import { Logo } from "./logo-cfY7Ilvc.js";
|
|
77
77
|
import "./logo-CIDSfhf9.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
2
2
|
import { HTMLAttributes, Ref } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination-item.d.ts
|
|
@@ -15,7 +15,7 @@ declare const PaginationItem: ({
|
|
|
15
15
|
asChild,
|
|
16
16
|
children,
|
|
17
17
|
...rest
|
|
18
|
-
}: PaginationItemProps) =>
|
|
18
|
+
}: PaginationItemProps) => react_jsx_runtime51.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { PaginationItem, PaginationItemProps };
|
|
21
|
-
//# sourceMappingURL=pagination-item-
|
|
21
|
+
//# sourceMappingURL=pagination-item-CEfdaSuS.d.ts.map
|
package/dist/{popover-trigger-context-C3QaiCth.d.ts → popover-trigger-context-CQKQbCmr.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime54 from "react/jsx-runtime";
|
|
2
|
+
import * as react53 from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/popover-trigger-context.d.ts
|
|
6
|
-
declare const Context:
|
|
6
|
+
declare const Context: react53.Context<{
|
|
7
7
|
popoverId?: string;
|
|
8
8
|
setPopoverId?: (id: string) => void;
|
|
9
9
|
popoverOpen?: boolean;
|
|
@@ -25,7 +25,7 @@ type PopoverTriggerContextProps = {
|
|
|
25
25
|
*/
|
|
26
26
|
declare const PopoverTriggerContext: ({
|
|
27
27
|
children
|
|
28
|
-
}: PopoverTriggerContextProps) =>
|
|
28
|
+
}: PopoverTriggerContextProps) => react_jsx_runtime54.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Context, PopoverTriggerContext, PopoverTriggerContextProps };
|
|
31
|
-
//# sourceMappingURL=popover-trigger-context-
|
|
31
|
+
//# sourceMappingURL=popover-trigger-context-CQKQbCmr.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime66 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/sticky-header/sticky-header.d.ts
|
|
@@ -13,7 +13,7 @@ type StickyHeaderProps = {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const StickyHeader: ({
|
|
15
15
|
children
|
|
16
|
-
}: StickyHeaderProps) =>
|
|
16
|
+
}: StickyHeaderProps) => react_jsx_runtime66.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { StickyHeader, StickyHeaderProps };
|
|
19
|
-
//# sourceMappingURL=sticky-header-
|
|
19
|
+
//# sourceMappingURL=sticky-header-CPHxBupp.d.ts.map
|
|
@@ -2,16 +2,16 @@ import { UseCheckboxGroupOptions, useCheckboxGroup } from "../../useCheckboxGrou
|
|
|
2
2
|
import { useIsomorphicLayoutEffect } from "../../useIsomorphicLayoutEffect-BMdz-mee.js";
|
|
3
3
|
import { useMergeRefs } from "../../useMergeRefs-iCenhgmf.js";
|
|
4
4
|
import "../../types-Mj1poXVf.js";
|
|
5
|
-
import { UsePaginationProps, usePagination } from "../../alert-footer-
|
|
5
|
+
import { UsePaginationProps, usePagination } from "../../alert-footer-KRDyyLma.js";
|
|
6
6
|
import "../../dialog-trigger-context-BkQSJ-rX.js";
|
|
7
7
|
import "../../drawer-trigger-context-B3X3kUrY.js";
|
|
8
|
-
import "../../popover-trigger-context-
|
|
8
|
+
import "../../popover-trigger-context-CQKQbCmr.js";
|
|
9
9
|
import "../../dropdown-item-Bhw9nhOp.js";
|
|
10
10
|
import "../../dropdown-list-XN8RJ-SS.js";
|
|
11
11
|
import "../../dropdown-trigger-context-D0QMaRYY.js";
|
|
12
|
-
import "../../footer-links-
|
|
13
|
-
import "../../pagination-item-
|
|
14
|
-
import "../../sticky-header-
|
|
12
|
+
import "../../footer-links-B237uv2H.js";
|
|
13
|
+
import "../../pagination-item-CEfdaSuS.js";
|
|
14
|
+
import "../../sticky-header-CPHxBupp.js";
|
|
15
15
|
import "../../index-CTw2zfCM.js";
|
|
16
16
|
import "../../types-DC-FPmDA.js";
|
|
17
17
|
export { UseCheckboxGroupOptions, UsePaginationProps, useCheckboxGroup, useIsomorphicLayoutEffect, useMergeRefs, usePagination };
|
|
@@ -2,16 +2,16 @@ import "../../../useCheckboxGroup-DRhqch1m.js";
|
|
|
2
2
|
import "../../../useIsomorphicLayoutEffect-BMdz-mee.js";
|
|
3
3
|
import "../../../useMergeRefs-iCenhgmf.js";
|
|
4
4
|
import "../../../types-Mj1poXVf.js";
|
|
5
|
-
import { UsePaginationProps, usePagination } from "../../../alert-footer-
|
|
5
|
+
import { UsePaginationProps, usePagination } from "../../../alert-footer-KRDyyLma.js";
|
|
6
6
|
import "../../../dialog-trigger-context-BkQSJ-rX.js";
|
|
7
7
|
import "../../../drawer-trigger-context-B3X3kUrY.js";
|
|
8
|
-
import "../../../popover-trigger-context-
|
|
8
|
+
import "../../../popover-trigger-context-CQKQbCmr.js";
|
|
9
9
|
import "../../../dropdown-item-Bhw9nhOp.js";
|
|
10
10
|
import "../../../dropdown-list-XN8RJ-SS.js";
|
|
11
11
|
import "../../../dropdown-trigger-context-D0QMaRYY.js";
|
|
12
|
-
import "../../../footer-links-
|
|
13
|
-
import "../../../pagination-item-
|
|
14
|
-
import "../../../sticky-header-
|
|
12
|
+
import "../../../footer-links-B237uv2H.js";
|
|
13
|
+
import "../../../pagination-item-CEfdaSuS.js";
|
|
14
|
+
import "../../../sticky-header-CPHxBupp.js";
|
|
15
15
|
import "../../../index-CTw2zfCM.js";
|
|
16
16
|
import "../../../types-DC-FPmDA.js";
|
|
17
17
|
export { UsePaginationProps, usePagination };
|
|
@@ -2,16 +2,16 @@ import { UseCheckboxGroupOptions, useCheckboxGroup } from "../useCheckboxGroup-D
|
|
|
2
2
|
import { useIsomorphicLayoutEffect } from "../useIsomorphicLayoutEffect-BMdz-mee.js";
|
|
3
3
|
import "../useMergeRefs-iCenhgmf.js";
|
|
4
4
|
import "../types-Mj1poXVf.js";
|
|
5
|
-
import { UsePaginationProps, usePagination } from "../alert-footer-
|
|
5
|
+
import { UsePaginationProps, usePagination } from "../alert-footer-KRDyyLma.js";
|
|
6
6
|
import "../dialog-trigger-context-BkQSJ-rX.js";
|
|
7
7
|
import "../drawer-trigger-context-B3X3kUrY.js";
|
|
8
|
-
import "../popover-trigger-context-
|
|
8
|
+
import "../popover-trigger-context-CQKQbCmr.js";
|
|
9
9
|
import "../dropdown-item-Bhw9nhOp.js";
|
|
10
10
|
import "../dropdown-list-XN8RJ-SS.js";
|
|
11
11
|
import "../dropdown-trigger-context-D0QMaRYY.js";
|
|
12
|
-
import "../footer-links-
|
|
13
|
-
import "../pagination-item-
|
|
14
|
-
import "../sticky-header-
|
|
12
|
+
import "../footer-links-B237uv2H.js";
|
|
13
|
+
import "../pagination-item-CEfdaSuS.js";
|
|
14
|
+
import "../sticky-header-CPHxBupp.js";
|
|
15
15
|
import "../index-CTw2zfCM.js";
|
|
16
16
|
import { MergeRight } from "../types-DC-FPmDA.js";
|
|
17
17
|
export { MergeRight, UseCheckboxGroupOptions, UsePaginationProps, useCheckboxGroup, useIsomorphicLayoutEffect, usePagination };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bi-digital/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React components from BI Digital",
|
|
6
6
|
"author": "BI Digital",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"tsdown": "^0.12.7",
|
|
48
48
|
"typescript": "^5.7.2",
|
|
49
49
|
"vitest": "^3.2.1",
|
|
50
|
-
"@bi-digital/icons-react": "0.2.
|
|
50
|
+
"@bi-digital/icons-react": "0.2.21"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "^19",
|
|
54
54
|
"react-dom": "^19",
|
|
55
|
-
"@bi-digital/css": "0.2.
|
|
56
|
-
"@bi-digital/icons-react": "0.2.
|
|
55
|
+
"@bi-digital/css": "0.2.21",
|
|
56
|
+
"@bi-digital/icons-react": "0.2.21"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsdown",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-ZiUFZak1.js","names":[],"sources":["../src/components/link/link.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\nimport type { AnchorHTMLAttributes, ReactNode, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type LinkProps = MergeRight<\n DefaultProps & AnchorHTMLAttributes<HTMLAnchorElement>,\n {\n /**\n * Set the color of the link.\n * @default 'primary'\n */\n color?: 'primary' | 'neutral';\n children: ReactNode;\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLAnchorElement>;\n }\n>;\n\nexport const Link = ({ asChild, className, color, dark, ref, ...rest }: LinkProps) => {\n const Component = asChild ? Slot : 'a';\n\n return <Component className={clsx('bi-link', className)} data-color={color} data-dark={dark} ref={ref} {...rest} />;\n};\n"],"mappings":";;;;;AAwBA,MAAa,OAAO,CAAC,EAAE,SAAS,WAAW,OAAO,MAAM,IAAK,GAAG,MAAiB,KAAK;CACpF,MAAM,YAAY,UAAU,OAAO;AAEnC,wBAAO,IAAC;EAAU,WAAW,KAAK,WAAW,UAAU;EAAE,cAAY;EAAO,aAAW;EAAW;EAAK,GAAI;GAAQ;AACpH"}
|