@govuk-react/primitives 0.2.0 → 0.2.1
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/{accordion-element.d.ts → accordion/element.d.ts} +2 -5
- package/dist/accordion/element.js +302 -0
- package/dist/accordion/element.js.map +1 -0
- package/dist/accordion/index.d.ts +74 -0
- package/dist/accordion/index.js +138 -0
- package/dist/accordion/index.js.map +1 -0
- package/dist/auto-focus/element.d.ts +1 -0
- package/dist/auto-focus/element.js +75 -0
- package/dist/auto-focus/element.js.map +1 -0
- package/dist/{index-Bul0NJh_.d.ts → auto-focus/index.d.ts} +27 -40
- package/dist/auto-focus/index.js +29 -0
- package/dist/{chunk-6ZFU4VYW.js.map → auto-focus/index.js.map} +1 -1
- package/dist/{autocomplete-element.d.ts → autocomplete/element.d.ts} +4 -7
- package/dist/autocomplete/element.js +597 -0
- package/dist/autocomplete/element.js.map +1 -0
- package/dist/{index-D7lMYMUR.d.ts → autocomplete/index.d.ts} +34 -57
- package/dist/autocomplete/index.js +108 -0
- package/dist/autocomplete/index.js.map +1 -0
- package/dist/button/element.d.ts +1 -0
- package/dist/button/element.js +59 -0
- package/dist/button/element.js.map +1 -0
- package/dist/button/index.d.ts +10 -0
- package/dist/button/index.js +9 -0
- package/dist/button/index.js.map +1 -0
- package/dist/{character-count-element.d.ts → character-count/element.d.ts} +2 -5
- package/dist/character-count/element.js +287 -0
- package/dist/character-count/element.js.map +1 -0
- package/dist/character-count/index.d.ts +57 -0
- package/dist/character-count/index.js +79 -0
- package/dist/character-count/index.js.map +1 -0
- package/dist/character-count/messages.d.ts +20 -0
- package/dist/character-count/messages.js +54 -0
- package/dist/character-count/messages.js.map +1 -0
- package/dist/choices/element.d.ts +5 -0
- package/dist/choices/element.js +202 -0
- package/dist/choices/element.js.map +1 -0
- package/dist/{index-WuGvkTxu.d.ts → choices/index.d.ts} +30 -44
- package/dist/choices/index.js +37 -0
- package/dist/choices/index.js.map +1 -0
- package/dist/{disclosure-element.d.ts → disclosure/element.d.ts} +2 -5
- package/dist/disclosure/element.js +123 -0
- package/dist/disclosure/element.js.map +1 -0
- package/dist/{index-D4Gzyvfu.d.ts → disclosure/index.d.ts} +40 -54
- package/dist/disclosure/index.js +66 -0
- package/dist/disclosure/index.js.map +1 -0
- package/dist/exit-this-page/element.d.ts +19 -0
- package/dist/exit-this-page/element.js +201 -0
- package/dist/exit-this-page/element.js.map +1 -0
- package/dist/{index-qF0jIQCW.d.ts → exit-this-page/index.d.ts} +36 -60
- package/dist/exit-this-page/index.js +54 -0
- package/dist/exit-this-page/index.js.map +1 -0
- package/dist/{file-upload-element.d.ts → file-upload/element.d.ts} +5 -9
- package/dist/file-upload/element.js +270 -0
- package/dist/file-upload/element.js.map +1 -0
- package/dist/file-upload/index.d.ts +46 -0
- package/dist/file-upload/index.js +65 -0
- package/dist/file-upload/index.js.map +1 -0
- package/dist/focus-links/element.d.ts +1 -0
- package/dist/focus-links/element.js +90 -0
- package/dist/focus-links/element.js.map +1 -0
- package/dist/{index-BR3MAGF8.d.ts → focus-links/index.d.ts} +24 -35
- package/dist/focus-links/index.js +7 -0
- package/dist/focus-links/index.js.map +1 -0
- package/dist/index.d.ts +13 -17
- package/dist/index.js +13 -72
- package/dist/index.js.map +1 -1
- package/dist/inline/accordion-element.js +1 -1
- package/dist/inline/auto-focus-element.js +1 -1
- package/dist/inline/autocomplete-element.js +1 -1
- package/dist/inline/character-count-element.js +1 -1
- package/dist/inline/choices-element.js +1 -1
- package/dist/inline/disclosure-element.js +1 -1
- package/dist/inline/exit-this-page-element.js +1 -1
- package/dist/inline/file-upload-element.js +1 -1
- package/dist/inline/focus-links-element.js +1 -1
- package/dist/inline/modal-element.js +1 -1
- package/dist/inline/password-input-element.js +1 -1
- package/dist/inline/tabs-element.js +1 -1
- package/dist/inline-script/index.d.ts +26 -0
- package/dist/inline-script/index.js +31 -0
- package/dist/inline-script/index.js.map +1 -0
- package/dist/{modal-element.d.ts → modal/element.d.ts} +2 -4
- package/dist/modal/element.js +114 -0
- package/dist/modal/element.js.map +1 -0
- package/dist/modal/index.d.ts +36 -0
- package/dist/modal/index.js +109 -0
- package/dist/modal/index.js.map +1 -0
- package/dist/password-input/element.d.ts +1 -0
- package/dist/password-input/element.js +134 -0
- package/dist/password-input/element.js.map +1 -0
- package/dist/{index-sEHnx4-M.d.ts → password-input/index.d.ts} +32 -48
- package/dist/password-input/index.js +35 -0
- package/dist/password-input/index.js.map +1 -0
- package/dist/{tabs-element.d.ts → tabs/element.d.ts} +2 -5
- package/dist/tabs/element.js +416 -0
- package/dist/tabs/element.js.map +1 -0
- package/dist/tabs/index.d.ts +83 -0
- package/dist/tabs/index.js +138 -0
- package/dist/tabs/index.js.map +1 -0
- package/dist/utils/dom.d.ts +9 -0
- package/dist/utils/dom.js +27 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/on-property-set.d.ts +9 -0
- package/dist/utils/on-property-set.js +38 -0
- package/dist/utils/on-property-set.js.map +1 -0
- package/dist/utils/set-focus.d.ts +11 -0
- package/dist/utils/set-focus.js +38 -0
- package/dist/utils/set-focus.js.map +1 -0
- package/dist/utils/set-up-when-ready.d.ts +6 -0
- package/dist/utils/set-up-when-ready.js +16 -0
- package/dist/utils/set-up-when-ready.js.map +1 -0
- package/dist/utils/slot.d.ts +13 -0
- package/dist/utils/slot.js +40 -0
- package/dist/utils/slot.js.map +1 -0
- package/dist/utils/translation.d.ts +13 -0
- package/dist/utils/translation.js +57 -0
- package/dist/utils/translation.js.map +1 -0
- package/package.json +11 -4
- package/dist/accordion-element.js +0 -9
- package/dist/accordion-element.js.map +0 -1
- package/dist/accordion.d.ts +0 -2
- package/dist/accordion.js +0 -34
- package/dist/accordion.js.map +0 -1
- package/dist/auto-focus-element.d.ts +0 -3
- package/dist/auto-focus-element.js +0 -10
- package/dist/auto-focus-element.js.map +0 -1
- package/dist/auto-focus.d.ts +0 -2
- package/dist/auto-focus.js +0 -15
- package/dist/auto-focus.js.map +0 -1
- package/dist/autocomplete-element.js +0 -12
- package/dist/autocomplete-element.js.map +0 -1
- package/dist/autocomplete.d.ts +0 -4
- package/dist/autocomplete.js +0 -25
- package/dist/autocomplete.js.map +0 -1
- package/dist/button-element.d.ts +0 -2
- package/dist/button-element.js +0 -3
- package/dist/button-element.js.map +0 -1
- package/dist/button.d.ts +0 -2
- package/dist/button.js +0 -12
- package/dist/button.js.map +0 -1
- package/dist/character-count-element.js +0 -10
- package/dist/character-count-element.js.map +0 -1
- package/dist/character-count.d.ts +0 -3
- package/dist/character-count.js +0 -26
- package/dist/character-count.js.map +0 -1
- package/dist/choices-element.d.ts +0 -8
- package/dist/choices-element.js +0 -9
- package/dist/choices-element.js.map +0 -1
- package/dist/choices.d.ts +0 -2
- package/dist/choices.js +0 -16
- package/dist/choices.js.map +0 -1
- package/dist/chunk-2IHAQAYF.js +0 -23
- package/dist/chunk-2IHAQAYF.js.map +0 -1
- package/dist/chunk-2ZJVSNC2.js +0 -31
- package/dist/chunk-2ZJVSNC2.js.map +0 -1
- package/dist/chunk-47NMY4SS.js +0 -108
- package/dist/chunk-47NMY4SS.js.map +0 -1
- package/dist/chunk-4XAR4FFG.js +0 -83
- package/dist/chunk-4XAR4FFG.js.map +0 -1
- package/dist/chunk-5HWRMQK2.js +0 -91
- package/dist/chunk-5HWRMQK2.js.map +0 -1
- package/dist/chunk-6ZFU4VYW.js +0 -41
- package/dist/chunk-B2I4J5NL.js +0 -264
- package/dist/chunk-B2I4J5NL.js.map +0 -1
- package/dist/chunk-DPERPCUH.js +0 -188
- package/dist/chunk-DPERPCUH.js.map +0 -1
- package/dist/chunk-ECYGKE4D.js +0 -168
- package/dist/chunk-ECYGKE4D.js.map +0 -1
- package/dist/chunk-ESBMTI25.js +0 -11
- package/dist/chunk-ESBMTI25.js.map +0 -1
- package/dist/chunk-ET7DCQM7.js +0 -133
- package/dist/chunk-ET7DCQM7.js.map +0 -1
- package/dist/chunk-F5XFC4QJ.js +0 -177
- package/dist/chunk-F5XFC4QJ.js.map +0 -1
- package/dist/chunk-GVGBDSDN.js +0 -78
- package/dist/chunk-GVGBDSDN.js.map +0 -1
- package/dist/chunk-IZQ2C4BC.js +0 -351
- package/dist/chunk-IZQ2C4BC.js.map +0 -1
- package/dist/chunk-L7E6GN2D.js +0 -87
- package/dist/chunk-L7E6GN2D.js.map +0 -1
- package/dist/chunk-LWIA644X.js +0 -34
- package/dist/chunk-LWIA644X.js.map +0 -1
- package/dist/chunk-NX4B3NKM.js +0 -35
- package/dist/chunk-NX4B3NKM.js.map +0 -1
- package/dist/chunk-PNWPGD7B.js +0 -68
- package/dist/chunk-PNWPGD7B.js.map +0 -1
- package/dist/chunk-QLQ6O7OW.js +0 -111
- package/dist/chunk-QLQ6O7OW.js.map +0 -1
- package/dist/chunk-RDUPELOK.js +0 -55
- package/dist/chunk-RDUPELOK.js.map +0 -1
- package/dist/chunk-RPMHI67T.js +0 -104
- package/dist/chunk-RPMHI67T.js.map +0 -1
- package/dist/chunk-TE4RUYVK.js +0 -97
- package/dist/chunk-TE4RUYVK.js.map +0 -1
- package/dist/chunk-TJVBFRIE.js +0 -60
- package/dist/chunk-TJVBFRIE.js.map +0 -1
- package/dist/chunk-U5OKNKYC.js +0 -510
- package/dist/chunk-U5OKNKYC.js.map +0 -1
- package/dist/chunk-UXJO4AJP.js +0 -290
- package/dist/chunk-UXJO4AJP.js.map +0 -1
- package/dist/chunk-VNXXENCU.js +0 -39
- package/dist/chunk-VNXXENCU.js.map +0 -1
- package/dist/chunk-XGK73UCD.js +0 -62
- package/dist/chunk-XGK73UCD.js.map +0 -1
- package/dist/chunk-XJYLFTYE.js +0 -157
- package/dist/chunk-XJYLFTYE.js.map +0 -1
- package/dist/chunk-YCESNTXQ.js +0 -241
- package/dist/chunk-YCESNTXQ.js.map +0 -1
- package/dist/chunk-ZTJLVNR4.js +0 -62
- package/dist/chunk-ZTJLVNR4.js.map +0 -1
- package/dist/disclosure-element.js +0 -9
- package/dist/disclosure-element.js.map +0 -1
- package/dist/disclosure.d.ts +0 -2
- package/dist/disclosure.js +0 -16
- package/dist/disclosure.js.map +0 -1
- package/dist/exit-this-page-element.d.ts +0 -22
- package/dist/exit-this-page-element.js +0 -13
- package/dist/exit-this-page-element.js.map +0 -1
- package/dist/exit-this-page.d.ts +0 -3
- package/dist/exit-this-page.js +0 -25
- package/dist/exit-this-page.js.map +0 -1
- package/dist/file-upload-element.js +0 -14
- package/dist/file-upload-element.js.map +0 -1
- package/dist/file-upload.d.ts +0 -3
- package/dist/file-upload.js +0 -25
- package/dist/file-upload.js.map +0 -1
- package/dist/focus-links-element.d.ts +0 -3
- package/dist/focus-links-element.js +0 -10
- package/dist/focus-links-element.js.map +0 -1
- package/dist/focus-links.d.ts +0 -2
- package/dist/focus-links.js +0 -12
- package/dist/focus-links.js.map +0 -1
- package/dist/index--FxJgSOS.d.ts +0 -108
- package/dist/index-CikOyFud.d.ts +0 -54
- package/dist/index-D8N5vxTL.d.ts +0 -90
- package/dist/index-DMWpkC_d.d.ts +0 -105
- package/dist/index-DN7fGMc3.d.ts +0 -20
- package/dist/index-DPXR1Yua.d.ts +0 -69
- package/dist/inline-script.d.ts +0 -29
- package/dist/inline-script.js +0 -63
- package/dist/inline-script.js.map +0 -1
- package/dist/modal-element.js +0 -11
- package/dist/modal-element.js.map +0 -1
- package/dist/modal.d.ts +0 -2
- package/dist/modal.js +0 -20
- package/dist/modal.js.map +0 -1
- package/dist/password-input-element.d.ts +0 -3
- package/dist/password-input-element.js +0 -9
- package/dist/password-input-element.js.map +0 -1
- package/dist/password-input.d.ts +0 -2
- package/dist/password-input.js +0 -18
- package/dist/password-input.js.map +0 -1
- package/dist/tabs-element.js +0 -9
- package/dist/tabs-element.js.map +0 -1
- package/dist/tabs.d.ts +0 -2
- package/dist/tabs.js +0 -28
- package/dist/tabs.js.map +0 -1
- package/dist/translation-BnpO2mN2.d.ts +0 -4
package/dist/index--FxJgSOS.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Shows only the checked radio's panel until the element upgrades, and below its `media`.
|
|
6
|
-
* Root renders it inline; under a strict CSP, add it to a stylesheet instead.
|
|
7
|
-
*/
|
|
8
|
-
declare const radiosFallbackCss = "govuk-react-tabs:not([data-upgraded]) [data-tabs-content]:has(> input[data-tabs-fallback]):not(:has(> input:checked)){display:none}";
|
|
9
|
-
type BaseRootProps = {
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
/** The selected tab's value, to control the tabs. */
|
|
12
|
-
value?: string;
|
|
13
|
-
/** The tab selected at first, when uncontrolled. Defaults to the first tab. */
|
|
14
|
-
defaultValue?: string;
|
|
15
|
-
/** Called when the user selects a tab. */
|
|
16
|
-
onValueChange?: (value: string) => void;
|
|
17
|
-
/**
|
|
18
|
-
* When controlled, what happens to a tab the user picked before hydration: "ignore" keeps
|
|
19
|
-
* `value`, "report" calls `onValueChange` with the pick so you can adopt it.
|
|
20
|
-
*/
|
|
21
|
-
preHydration?: 'ignore' | 'report';
|
|
22
|
-
/** The axis of the arrow keys. */
|
|
23
|
-
orientation?: 'horizontal' | 'vertical';
|
|
24
|
-
/** The panels' radio group name. Defaults to a generated one. */
|
|
25
|
-
name?: string;
|
|
26
|
-
/** Only behave as tabs when this media query matches. */
|
|
27
|
-
media?: string;
|
|
28
|
-
/** Classes added to the element when it upgrades. */
|
|
29
|
-
upgradedClass?: string;
|
|
30
|
-
/** Classes added to the active item. */
|
|
31
|
-
activeItemClass?: string;
|
|
32
|
-
/** Classes added to inactive panels. */
|
|
33
|
-
hiddenContentClass?: string;
|
|
34
|
-
} & Omit<React.HTMLAttributes<HTMLElement>, 'defaultValue' | 'onChange'>;
|
|
35
|
-
type RootProps = BaseRootProps;
|
|
36
|
-
/** Tabs that are links to every panel without JavaScript. Use `Trigger` and `Content` inside it. */
|
|
37
|
-
declare function Root(props: RootProps): React.JSX.Element;
|
|
38
|
-
type RadiosRootProps = BaseRootProps & ({
|
|
39
|
-
value: string;
|
|
40
|
-
} | {
|
|
41
|
-
defaultValue: string;
|
|
42
|
-
});
|
|
43
|
-
/**
|
|
44
|
-
* Tabs that switch panels without JavaScript too, through the panels' radios. Use `RadioTrigger`
|
|
45
|
-
* and `RadioContent` inside it.
|
|
46
|
-
*/
|
|
47
|
-
declare function RadiosRoot(props: RadiosRootProps): React.JSX.Element;
|
|
48
|
-
type PartProps<E extends keyof React.JSX.IntrinsicElements> = ComponentProps<E> & {
|
|
49
|
-
/** Render the only child instead, with this part's props merged onto it. */
|
|
50
|
-
asChild?: boolean;
|
|
51
|
-
};
|
|
52
|
-
type ListProps = PartProps<'div'>;
|
|
53
|
-
declare function List({ asChild, ...props }: ListProps): React.JSX.Element;
|
|
54
|
-
type ItemProps = PartProps<'div'> & {
|
|
55
|
-
value: string;
|
|
56
|
-
};
|
|
57
|
-
/** An optional wrapper around a tab, such as a list item. */
|
|
58
|
-
declare function Item({ asChild, value, ...props }: ItemProps): React.JSX.Element;
|
|
59
|
-
/** Set by Root. Pass it to a part rendered without a Root, such as in an island. */
|
|
60
|
-
type IslandProps = {
|
|
61
|
-
/** The panels' radio group name. */
|
|
62
|
-
name?: string;
|
|
63
|
-
};
|
|
64
|
-
type TriggerProps = React.HTMLAttributes<HTMLElement> & {
|
|
65
|
-
/** Render the only child instead, with this part's props merged onto it. */
|
|
66
|
-
asChild?: boolean;
|
|
67
|
-
value: string;
|
|
68
|
-
};
|
|
69
|
-
/** A tab in a `Root`: a link to its panel. */
|
|
70
|
-
declare function Trigger({ asChild, value, ...props }: TriggerProps): React.JSX.Element;
|
|
71
|
-
type RadioTriggerProps = TriggerProps & IslandProps;
|
|
72
|
-
/** A tab in a `RadiosRoot`: a label for its panel's radio. */
|
|
73
|
-
declare function RadioTrigger({ asChild, value, name: nameProp, ...props }: RadioTriggerProps): React.JSX.Element;
|
|
74
|
-
type ContentProps = PartProps<'div'> & IslandProps & {
|
|
75
|
-
value: string;
|
|
76
|
-
/** Whether this panel's radio is checked at first. Defaults to Root's value. */
|
|
77
|
-
defaultSelected?: boolean;
|
|
78
|
-
};
|
|
79
|
-
/** A panel in a `Root`. Its id is its `value`. */
|
|
80
|
-
declare function Content(props: ContentProps): React.JSX.Element;
|
|
81
|
-
type RadioContentProps = ContentProps;
|
|
82
|
-
/** A panel in a `RadiosRoot`, shown without JavaScript only while its radio is checked. Its id is its `value`. */
|
|
83
|
-
declare function RadioContent(props: RadioContentProps): React.JSX.Element;
|
|
84
|
-
|
|
85
|
-
declare const index_Content: typeof Content;
|
|
86
|
-
type index_ContentProps = ContentProps;
|
|
87
|
-
declare const index_Item: typeof Item;
|
|
88
|
-
type index_ItemProps = ItemProps;
|
|
89
|
-
declare const index_List: typeof List;
|
|
90
|
-
type index_ListProps = ListProps;
|
|
91
|
-
declare const index_RadioContent: typeof RadioContent;
|
|
92
|
-
type index_RadioContentProps = RadioContentProps;
|
|
93
|
-
declare const index_RadioTrigger: typeof RadioTrigger;
|
|
94
|
-
type index_RadioTriggerProps = RadioTriggerProps;
|
|
95
|
-
declare const index_RadiosRoot: typeof RadiosRoot;
|
|
96
|
-
type index_RadiosRootProps = RadiosRootProps;
|
|
97
|
-
declare const index_Root: typeof Root;
|
|
98
|
-
type index_RootProps = RootProps;
|
|
99
|
-
declare const index_Trigger: typeof Trigger;
|
|
100
|
-
type index_TriggerProps = TriggerProps;
|
|
101
|
-
declare const index_radiosFallbackCss: typeof radiosFallbackCss;
|
|
102
|
-
declare namespace index {
|
|
103
|
-
export { index_Content as Content, index_Item as Item, index_List as List, index_RadioContent as RadioContent, index_RadioTrigger as RadioTrigger, index_RadiosRoot as RadiosRoot, index_Root as Root, index_Trigger as Trigger, index_radiosFallbackCss as radiosFallbackCss };
|
|
104
|
-
export type { index_ContentProps as ContentProps, index_ItemProps as ItemProps, index_ListProps as ListProps, index_RadioContentProps as RadioContentProps, index_RadioTriggerProps as RadioTriggerProps, index_RadiosRootProps as RadiosRootProps, index_RootProps as RootProps, index_TriggerProps as TriggerProps };
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export { Content as C, Item as I, List as L, RadioContent as R, Trigger as T, RadioTrigger as e, RadiosRoot as g, index as i, Root as j, radiosFallbackCss as r };
|
|
108
|
-
export type { ContentProps as a, ItemProps as b, ListProps as c, RadioContentProps as d, RadioTriggerProps as f, RadiosRootProps as h, RootProps as k, TriggerProps as l };
|
package/dist/index-CikOyFud.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
type RootProps = Omit<React.HTMLAttributes<HTMLElement>, 'onChange'> & {
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
/** Whether the dialog is open, to control it. Without it, the buttons alone open and close it. */
|
|
7
|
-
open?: boolean;
|
|
8
|
-
/** Called when the dialog opens or closes. */
|
|
9
|
-
onOpenChange?: (open: boolean) => void;
|
|
10
|
-
/** The dialog's id, which the buttons' `commandfor` names. Defaults to a generated one. */
|
|
11
|
-
dialogId?: string;
|
|
12
|
-
};
|
|
13
|
-
declare function Root({ children, open, onOpenChange, dialogId: dialogIdProp, ...props }: RootProps): React.JSX.Element;
|
|
14
|
-
type PartProps<E extends keyof React.JSX.IntrinsicElements> = ComponentProps<E> & {
|
|
15
|
-
/** Render the only child instead, with this part's props merged onto it. */
|
|
16
|
-
asChild?: boolean;
|
|
17
|
-
};
|
|
18
|
-
type CommandProps = PartProps<'button'> & {
|
|
19
|
-
/** The dialog's id. Set by Root. */
|
|
20
|
-
dialogId?: string;
|
|
21
|
-
};
|
|
22
|
-
type TriggerProps = CommandProps;
|
|
23
|
-
/** A button that opens the dialog as a modal. */
|
|
24
|
-
declare function Trigger(props: TriggerProps): React.JSX.Element;
|
|
25
|
-
type CloseProps = CommandProps;
|
|
26
|
-
/** A button that closes the dialog. */
|
|
27
|
-
declare function Close(props: CloseProps): React.JSX.Element;
|
|
28
|
-
type ContentProps = PartProps<'dialog'>;
|
|
29
|
-
/**
|
|
30
|
-
* The dialog. It's named by Title, unless you pass `aria-labelledby` or `aria-label`. Pass
|
|
31
|
-
* `closedby="any"` to also close it when the user clicks outside it.
|
|
32
|
-
*/
|
|
33
|
-
declare function Content({ asChild, id, onClose, ref, ...props }: ContentProps): React.JSX.Element;
|
|
34
|
-
type TitleProps = PartProps<'h2'>;
|
|
35
|
-
/** The dialog's heading, which names it. */
|
|
36
|
-
declare function Title({ asChild, ...props }: TitleProps): React.JSX.Element;
|
|
37
|
-
|
|
38
|
-
declare const index_Close: typeof Close;
|
|
39
|
-
type index_CloseProps = CloseProps;
|
|
40
|
-
declare const index_Content: typeof Content;
|
|
41
|
-
type index_ContentProps = ContentProps;
|
|
42
|
-
declare const index_Root: typeof Root;
|
|
43
|
-
type index_RootProps = RootProps;
|
|
44
|
-
declare const index_Title: typeof Title;
|
|
45
|
-
type index_TitleProps = TitleProps;
|
|
46
|
-
declare const index_Trigger: typeof Trigger;
|
|
47
|
-
type index_TriggerProps = TriggerProps;
|
|
48
|
-
declare namespace index {
|
|
49
|
-
export { index_Close as Close, index_Content as Content, index_Root as Root, index_Title as Title, index_Trigger as Trigger };
|
|
50
|
-
export type { index_CloseProps as CloseProps, index_ContentProps as ContentProps, index_RootProps as RootProps, index_TitleProps as TitleProps, index_TriggerProps as TriggerProps };
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { Close as C, Root as R, Title as T, Content as b, Trigger as f, index as i };
|
|
54
|
-
export type { CloseProps as a, ContentProps as c, RootProps as d, TitleProps as e, TriggerProps as g };
|
package/dist/index-D8N5vxTL.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
import { T as Translation } from './translation-BnpO2mN2.js';
|
|
4
|
-
|
|
5
|
-
type CountType = 'length' | 'characters' | 'words';
|
|
6
|
-
declare const messageNames: readonly ["characters-under-limit", "characters-at-limit", "characters-over-limit", "words-under-limit", "words-at-limit", "words-over-limit"];
|
|
7
|
-
type MessageName = (typeof messageNames)[number];
|
|
8
|
-
/** Counts the text as govuk-frontend does: UTF-16 code units, characters as users see them, or words. */
|
|
9
|
-
declare function countOf(text: string, countType: CountType, locale?: string): number;
|
|
10
|
-
/** The message for the number of characters or words left, with its state. */
|
|
11
|
-
declare function countMessage(remaining: number, countType: CountType, messages: Partial<Record<MessageName, Translation>>, locale?: string): {
|
|
12
|
-
state: string;
|
|
13
|
-
text: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
type RootProps = React.HTMLAttributes<HTMLElement> & {
|
|
17
|
-
/** The most characters, or words, the user should enter. Without it there's no count. */
|
|
18
|
-
maxLength?: number;
|
|
19
|
-
/**
|
|
20
|
-
* What to count: "length" (the default) counts UTF-16 code units, as `maxlength` does;
|
|
21
|
-
* "characters" counts characters as users see them, such as an emoji as one; "words" counts words.
|
|
22
|
-
*/
|
|
23
|
-
countType?: CountType;
|
|
24
|
-
/** The percentage of the limit from which the count is shown. */
|
|
25
|
-
threshold?: number;
|
|
26
|
-
/** Shown while under the limit. `%{count}` is the number left. */
|
|
27
|
-
charactersUnderLimit?: Translation;
|
|
28
|
-
/** Shown at the limit. */
|
|
29
|
-
charactersAtLimit?: Translation;
|
|
30
|
-
/** Shown while over the limit. `%{count}` is the number too many. */
|
|
31
|
-
charactersOverLimit?: Translation;
|
|
32
|
-
/** Shown while under the limit when counting words. `%{count}` is the number left. */
|
|
33
|
-
wordsUnderLimit?: Translation;
|
|
34
|
-
/** Shown at the limit when counting words. */
|
|
35
|
-
wordsAtLimit?: Translation;
|
|
36
|
-
/** Shown while over the limit when counting words. `%{count}` is the number too many. */
|
|
37
|
-
wordsOverLimit?: Translation;
|
|
38
|
-
/** Classes that visually hide the description once upgraded. Without them, inline styles do. */
|
|
39
|
-
hiddenDescriptionClass?: string;
|
|
40
|
-
/** Classes for the visible count while within the limit. */
|
|
41
|
-
withinLimitClass?: string;
|
|
42
|
-
/** Classes for the visible count while over the limit. */
|
|
43
|
-
overLimitClass?: string;
|
|
44
|
-
/** Classes for the visible count while below `threshold`. */
|
|
45
|
-
belowThresholdClass?: string;
|
|
46
|
-
/** Classes for the field while over the limit. */
|
|
47
|
-
inputOverLimitClass?: string;
|
|
48
|
-
};
|
|
49
|
-
declare function Root({ maxLength, countType, threshold, charactersUnderLimit, charactersAtLimit, charactersOverLimit, wordsUnderLimit, wordsAtLimit, wordsOverLimit, hiddenDescriptionClass, withinLimitClass, overLimitClass, belowThresholdClass, inputOverLimitClass, ...props }: RootProps): React.JSX.Element;
|
|
50
|
-
type PartProps<E extends keyof React.JSX.IntrinsicElements> = ComponentProps<E> & {
|
|
51
|
-
/** Render the only child instead, with this part's props merged onto it. */
|
|
52
|
-
asChild?: boolean;
|
|
53
|
-
};
|
|
54
|
-
type InputProps = PartProps<'textarea'>;
|
|
55
|
-
/** The field: a `textarea`, or an `input` with `asChild`. Its `maxlength` is removed on upgrade. */
|
|
56
|
-
declare function Input({ asChild, ...props }: InputProps): React.JSX.Element;
|
|
57
|
-
type DescriptionProps = PartProps<'div'>;
|
|
58
|
-
/**
|
|
59
|
-
* The description, such as "You can enter up to 200 characters", shown without JavaScript and
|
|
60
|
-
* visually hidden on upgrade. Give it an id and add that to the field's `aria-describedby`.
|
|
61
|
-
*/
|
|
62
|
-
declare function Description({ asChild, ...props }: DescriptionProps): React.JSX.Element;
|
|
63
|
-
type StatusProps = PartProps<'div'>;
|
|
64
|
-
/** The visible count, hidden from assistive technology. Hidden until the element upgrades. */
|
|
65
|
-
declare function Status({ asChild, children, ...props }: StatusProps): React.JSX.Element;
|
|
66
|
-
type ScreenReaderStatusProps = PartProps<'div'>;
|
|
67
|
-
/** The count for screen readers, once the user pauses typing. Make it visually hidden. */
|
|
68
|
-
declare function ScreenReaderStatus({ asChild, children, ...props }: ScreenReaderStatusProps): React.JSX.Element;
|
|
69
|
-
|
|
70
|
-
type index_CountType = CountType;
|
|
71
|
-
declare const index_Description: typeof Description;
|
|
72
|
-
type index_DescriptionProps = DescriptionProps;
|
|
73
|
-
declare const index_Input: typeof Input;
|
|
74
|
-
type index_InputProps = InputProps;
|
|
75
|
-
declare const index_Root: typeof Root;
|
|
76
|
-
type index_RootProps = RootProps;
|
|
77
|
-
declare const index_ScreenReaderStatus: typeof ScreenReaderStatus;
|
|
78
|
-
type index_ScreenReaderStatusProps = ScreenReaderStatusProps;
|
|
79
|
-
declare const index_Status: typeof Status;
|
|
80
|
-
type index_StatusProps = StatusProps;
|
|
81
|
-
declare const index_Translation: typeof Translation;
|
|
82
|
-
declare const index_countMessage: typeof countMessage;
|
|
83
|
-
declare const index_countOf: typeof countOf;
|
|
84
|
-
declare namespace index {
|
|
85
|
-
export { index_Description as Description, index_Input as Input, index_Root as Root, index_ScreenReaderStatus as ScreenReaderStatus, index_Status as Status, index_Translation as Translation, index_countMessage as countMessage, index_countOf as countOf };
|
|
86
|
-
export type { index_CountType as CountType, index_DescriptionProps as DescriptionProps, index_InputProps as InputProps, index_RootProps as RootProps, index_ScreenReaderStatusProps as ScreenReaderStatusProps, index_StatusProps as StatusProps };
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export { Description as D, Input as I, Root as R, ScreenReaderStatus as S, Status as e, countMessage as g, countOf as h, index as i };
|
|
90
|
-
export type { CountType as C, DescriptionProps as a, InputProps as b, RootProps as c, ScreenReaderStatusProps as d, StatusProps as f };
|
package/dist/index-DMWpkC_d.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Hides the parts the element hides, over styles that set their `display`. Root renders it
|
|
6
|
-
* inline; under a strict CSP, add it to a stylesheet instead.
|
|
7
|
-
*/
|
|
8
|
-
declare const accordionCss = "govuk-react-accordion :is([data-accordion-fallback],[data-accordion-trigger],[data-accordion-controls])[hidden]{display:none!important}";
|
|
9
|
-
type RootProps = Omit<React.HTMLAttributes<HTMLElement>, 'defaultValue' | 'onChange'> & {
|
|
10
|
-
/** The open sections' values, to control them once hydrated. */
|
|
11
|
-
value?: string[];
|
|
12
|
-
/** The sections open at first. */
|
|
13
|
-
defaultValue?: string[];
|
|
14
|
-
/** Called with the open sections' values when the user opens or closes a section. */
|
|
15
|
-
onValueChange?: (value: string[]) => void;
|
|
16
|
-
/** Whether to remember the open sections for the rest of the session, keyed by content id. Defaults to `true`, as in govuk-frontend. */
|
|
17
|
-
rememberExpanded?: boolean;
|
|
18
|
-
/** Each button's text while its section is closed. Defaults to "Show". */
|
|
19
|
-
showSectionText?: string;
|
|
20
|
-
/** Each button's text while its section is open. Defaults to "Hide". */
|
|
21
|
-
hideSectionText?: string;
|
|
22
|
-
/** The end of each button's accessible name while its section is closed. Defaults to "Show this section". */
|
|
23
|
-
showSectionLabel?: string;
|
|
24
|
-
/** The end of each button's accessible name while its section is open. Defaults to "Hide this section". */
|
|
25
|
-
hideSectionLabel?: string;
|
|
26
|
-
/** The "show all" button's text while a section is closed. Defaults to "Show all sections". */
|
|
27
|
-
showAllSectionsText?: string;
|
|
28
|
-
/** The "show all" button's text while every section is open. Defaults to "Hide all sections". */
|
|
29
|
-
hideAllSectionsText?: string;
|
|
30
|
-
/** Classes added to the element when it upgrades. */
|
|
31
|
-
upgradedClass?: string;
|
|
32
|
-
/** Classes added to open sections. */
|
|
33
|
-
expandedSectionClass?: string;
|
|
34
|
-
/** Classes added to the icons of closed sections, and the "show all" icon while a section is closed. */
|
|
35
|
-
collapsedIconClass?: string;
|
|
36
|
-
};
|
|
37
|
-
declare function Root({ value, defaultValue, onValueChange, rememberExpanded, showSectionText, hideSectionText, showSectionLabel, hideSectionLabel, showAllSectionsText, hideAllSectionsText, upgradedClass, expandedSectionClass, collapsedIconClass, children, ...props }: RootProps): React.JSX.Element;
|
|
38
|
-
type PartProps<E extends keyof React.JSX.IntrinsicElements> = ComponentProps<E> & {
|
|
39
|
-
/** Render the only child instead, with this part's props merged onto it. */
|
|
40
|
-
asChild?: boolean;
|
|
41
|
-
};
|
|
42
|
-
type ControlsProps = PartProps<'div'>;
|
|
43
|
-
/** Holds the "show all" button. Hidden until the element upgrades. */
|
|
44
|
-
declare function Controls({ asChild, ...props }: ControlsProps): React.JSX.Element;
|
|
45
|
-
type ShowAllProps = PartProps<'button'>;
|
|
46
|
-
/** Shows every section, or hides every section when all are open. */
|
|
47
|
-
declare function ShowAll({ asChild, ...props }: ShowAllProps): React.JSX.Element;
|
|
48
|
-
type ShowAllTextProps = PartProps<'span'>;
|
|
49
|
-
/** The "show all" button's text, which the element sets. */
|
|
50
|
-
declare function ShowAllText({ asChild, children, ...props }: ShowAllTextProps): React.JSX.Element;
|
|
51
|
-
type SectionProps = PartProps<'div'> & {
|
|
52
|
-
value: string;
|
|
53
|
-
/** Whether it's open at first. Defaults to whether Root's value includes it. */
|
|
54
|
-
defaultExpanded?: boolean;
|
|
55
|
-
};
|
|
56
|
-
declare function Section({ asChild, value, defaultExpanded, ...props }: SectionProps): React.JSX.Element;
|
|
57
|
-
type FallbackProps = PartProps<'span'>;
|
|
58
|
-
/** What shows without JavaScript in place of the trigger, such as the plain heading. Hidden on upgrade. */
|
|
59
|
-
declare function Fallback({ asChild, ...props }: FallbackProps): React.JSX.Element;
|
|
60
|
-
type TriggerProps = PartProps<'button'>;
|
|
61
|
-
/** The button that shows and hides its section. Hidden until the element upgrades. */
|
|
62
|
-
declare function Trigger({ asChild, ...props }: TriggerProps): React.JSX.Element;
|
|
63
|
-
type LabelProps = PartProps<'span'>;
|
|
64
|
-
/** Text in the trigger that names it, such as the heading or summary. */
|
|
65
|
-
declare function Label({ asChild, ...props }: LabelProps): React.JSX.Element;
|
|
66
|
-
type ToggleTextProps = PartProps<'span'>;
|
|
67
|
-
/** The trigger's show or hide text, which the element sets. */
|
|
68
|
-
declare function ToggleText({ asChild, children, ...props }: ToggleTextProps): React.JSX.Element;
|
|
69
|
-
type IconProps = PartProps<'span'>;
|
|
70
|
-
/** An icon in a trigger or the "show all" button, given `collapsedIconClass` while closed. */
|
|
71
|
-
declare function Icon({ asChild, ...props }: IconProps): React.JSX.Element;
|
|
72
|
-
type ContentProps = PartProps<'div'>;
|
|
73
|
-
/** The section's content. Give it an id, which the trigger's `aria-controls` names. */
|
|
74
|
-
declare function Content({ asChild, ...props }: ContentProps): React.JSX.Element;
|
|
75
|
-
|
|
76
|
-
declare const index_Content: typeof Content;
|
|
77
|
-
type index_ContentProps = ContentProps;
|
|
78
|
-
declare const index_Controls: typeof Controls;
|
|
79
|
-
type index_ControlsProps = ControlsProps;
|
|
80
|
-
declare const index_Fallback: typeof Fallback;
|
|
81
|
-
type index_FallbackProps = FallbackProps;
|
|
82
|
-
declare const index_Icon: typeof Icon;
|
|
83
|
-
type index_IconProps = IconProps;
|
|
84
|
-
declare const index_Label: typeof Label;
|
|
85
|
-
type index_LabelProps = LabelProps;
|
|
86
|
-
declare const index_Root: typeof Root;
|
|
87
|
-
type index_RootProps = RootProps;
|
|
88
|
-
declare const index_Section: typeof Section;
|
|
89
|
-
type index_SectionProps = SectionProps;
|
|
90
|
-
declare const index_ShowAll: typeof ShowAll;
|
|
91
|
-
type index_ShowAllProps = ShowAllProps;
|
|
92
|
-
declare const index_ShowAllText: typeof ShowAllText;
|
|
93
|
-
type index_ShowAllTextProps = ShowAllTextProps;
|
|
94
|
-
declare const index_ToggleText: typeof ToggleText;
|
|
95
|
-
type index_ToggleTextProps = ToggleTextProps;
|
|
96
|
-
declare const index_Trigger: typeof Trigger;
|
|
97
|
-
type index_TriggerProps = TriggerProps;
|
|
98
|
-
declare const index_accordionCss: typeof accordionCss;
|
|
99
|
-
declare namespace index {
|
|
100
|
-
export { index_Content as Content, index_Controls as Controls, index_Fallback as Fallback, index_Icon as Icon, index_Label as Label, index_Root as Root, index_Section as Section, index_ShowAll as ShowAll, index_ShowAllText as ShowAllText, index_ToggleText as ToggleText, index_Trigger as Trigger, index_accordionCss as accordionCss };
|
|
101
|
-
export type { index_ContentProps as ContentProps, index_ControlsProps as ControlsProps, index_FallbackProps as FallbackProps, index_IconProps as IconProps, index_LabelProps as LabelProps, index_RootProps as RootProps, index_SectionProps as SectionProps, index_ShowAllProps as ShowAllProps, index_ShowAllTextProps as ShowAllTextProps, index_ToggleTextProps as ToggleTextProps, index_TriggerProps as TriggerProps };
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export { Content as C, Fallback as F, Icon as I, Label as L, Root as R, Section as S, ToggleText as T, Controls as b, index as i, ShowAll as j, ShowAllText as l, Trigger as o, accordionCss as q };
|
|
105
|
-
export type { ContentProps as a, ControlsProps as c, FallbackProps as d, IconProps as e, LabelProps as f, RootProps as g, SectionProps as h, ShowAllProps as k, ShowAllTextProps as m, ToggleTextProps as n, TriggerProps as p };
|
package/dist/index-DN7fGMc3.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
|
|
4
|
-
type RootProps = ComponentProps<'button'> & {
|
|
5
|
-
/** Render the only child instead, such as a link with `role="button"`, with this part's props merged onto it. */
|
|
6
|
-
asChild?: boolean;
|
|
7
|
-
/** Cancel a second click within a second of the first, so a form isn't submitted twice. */
|
|
8
|
-
preventDoubleClick?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare function Root({ asChild, preventDoubleClick, ...props }: RootProps): React.JSX.Element;
|
|
11
|
-
|
|
12
|
-
declare const index_Root: typeof Root;
|
|
13
|
-
type index_RootProps = RootProps;
|
|
14
|
-
declare namespace index {
|
|
15
|
-
export { index_Root as Root };
|
|
16
|
-
export type { index_RootProps as RootProps };
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { Root as R, index as i };
|
|
20
|
-
export type { RootProps as a };
|
package/dist/index-DPXR1Yua.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
import { T as Translation } from './translation-BnpO2mN2.js';
|
|
4
|
-
|
|
5
|
-
type RootProps = React.HTMLAttributes<HTMLElement> & {
|
|
6
|
-
/** Shown while no file is chosen. Defaults to "No file chosen". */
|
|
7
|
-
noFileChosen?: string;
|
|
8
|
-
/** Shown when more than one file is chosen. `%{count}` is the number. Defaults to "%{count} files chosen". */
|
|
9
|
-
multipleFilesChosen?: Translation;
|
|
10
|
-
/** Announced when the user drags files into the drop zone. Defaults to "Entered drop zone". */
|
|
11
|
-
enteredDropZone?: string;
|
|
12
|
-
/** Announced when the user drags files out of the drop zone. Defaults to "Left drop zone". */
|
|
13
|
-
leftDropZone?: string;
|
|
14
|
-
/** Classes for the button while no file is chosen. */
|
|
15
|
-
emptyClass?: string;
|
|
16
|
-
/** Classes for the button while files are dragged over the drop zone. */
|
|
17
|
-
draggingClass?: string;
|
|
18
|
-
/** Classes for the drop zone while the input is disabled. */
|
|
19
|
-
disabledClass?: string;
|
|
20
|
-
};
|
|
21
|
-
declare function Root({ noFileChosen, multipleFilesChosen, enteredDropZone, leftDropZone, emptyClass, draggingClass, disabledClass, ...props }: RootProps): React.JSX.Element;
|
|
22
|
-
type PartProps<E extends keyof React.JSX.IntrinsicElements> = ComponentProps<E> & {
|
|
23
|
-
/** Render the only child instead, with this part's props merged onto it. */
|
|
24
|
-
asChild?: boolean;
|
|
25
|
-
};
|
|
26
|
-
type DropZoneProps = PartProps<'div'>;
|
|
27
|
-
/** The area that shows files are being dragged over it. Holds the button and the input. */
|
|
28
|
-
declare function DropZone({ asChild, ...props }: DropZoneProps): React.JSX.Element;
|
|
29
|
-
type InputProps = Omit<PartProps<'input'>, 'type'>;
|
|
30
|
-
/** The file input, with an `id` and a `label`. Shown without JavaScript, and hidden on upgrade. */
|
|
31
|
-
declare function Input({ asChild, ...props }: InputProps): React.JSX.Element;
|
|
32
|
-
type ButtonProps = PartProps<'button'>;
|
|
33
|
-
/**
|
|
34
|
-
* Opens the file picker, and takes dropped files. Hidden until the element upgrades, when it
|
|
35
|
-
* takes the input's id, so the input's label names it. Holds `Status`.
|
|
36
|
-
*/
|
|
37
|
-
declare function Button({ asChild, ...props }: ButtonProps): React.JSX.Element;
|
|
38
|
-
type StatusProps = PartProps<'span'>;
|
|
39
|
-
/** Which files are chosen: "No file chosen", the file's name, or how many files. In `Button`. */
|
|
40
|
-
declare function Status({ asChild, children, ...props }: StatusProps): React.JSX.Element;
|
|
41
|
-
type SeparatorProps = PartProps<'span'>;
|
|
42
|
-
/** Between the label and the button's text in the button's accessible name. Defaults to ", ". In `Button`. */
|
|
43
|
-
declare function Separator({ asChild, children, ...props }: SeparatorProps): React.JSX.Element;
|
|
44
|
-
type AnnouncementsProps = PartProps<'span'>;
|
|
45
|
-
/** Announces entering and leaving the drop zone. Make it visually hidden. */
|
|
46
|
-
declare function Announcements({ asChild, ...props }: AnnouncementsProps): React.JSX.Element;
|
|
47
|
-
|
|
48
|
-
declare const index_Announcements: typeof Announcements;
|
|
49
|
-
type index_AnnouncementsProps = AnnouncementsProps;
|
|
50
|
-
declare const index_Button: typeof Button;
|
|
51
|
-
type index_ButtonProps = ButtonProps;
|
|
52
|
-
declare const index_DropZone: typeof DropZone;
|
|
53
|
-
type index_DropZoneProps = DropZoneProps;
|
|
54
|
-
declare const index_Input: typeof Input;
|
|
55
|
-
type index_InputProps = InputProps;
|
|
56
|
-
declare const index_Root: typeof Root;
|
|
57
|
-
type index_RootProps = RootProps;
|
|
58
|
-
declare const index_Separator: typeof Separator;
|
|
59
|
-
type index_SeparatorProps = SeparatorProps;
|
|
60
|
-
declare const index_Status: typeof Status;
|
|
61
|
-
type index_StatusProps = StatusProps;
|
|
62
|
-
declare const index_Translation: typeof Translation;
|
|
63
|
-
declare namespace index {
|
|
64
|
-
export { index_Announcements as Announcements, index_Button as Button, index_DropZone as DropZone, index_Input as Input, index_Root as Root, index_Separator as Separator, index_Status as Status, index_Translation as Translation };
|
|
65
|
-
export type { index_AnnouncementsProps as AnnouncementsProps, index_ButtonProps as ButtonProps, index_DropZoneProps as DropZoneProps, index_InputProps as InputProps, index_RootProps as RootProps, index_SeparatorProps as SeparatorProps, index_StatusProps as StatusProps };
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export { Announcements as A, Button as B, DropZone as D, Input as I, Root as R, Separator as S, Status as g, index as i };
|
|
69
|
-
export type { AnnouncementsProps as a, ButtonProps as b, DropZoneProps as c, InputProps as d, RootProps as e, SeparatorProps as f, StatusProps as h };
|
package/dist/inline-script.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
export { default as accordion } from 'inline:accordion';
|
|
4
|
-
export { default as autocomplete } from 'inline:autocomplete';
|
|
5
|
-
export { default as autoFocus } from 'inline:auto-focus';
|
|
6
|
-
export { default as button } from 'inline:button';
|
|
7
|
-
export { default as characterCount } from 'inline:character-count';
|
|
8
|
-
export { default as choices } from 'inline:choices';
|
|
9
|
-
export { default as disclosure } from 'inline:disclosure';
|
|
10
|
-
export { default as exitThisPage } from 'inline:exit-this-page';
|
|
11
|
-
export { default as fileUpload } from 'inline:file-upload';
|
|
12
|
-
export { default as focusLinks } from 'inline:focus-links';
|
|
13
|
-
export { default as modal } from 'inline:modal';
|
|
14
|
-
export { default as passwordInput } from 'inline:password-input';
|
|
15
|
-
export { default as tabs } from 'inline:tabs';
|
|
16
|
-
|
|
17
|
-
type InlineScriptProps = Omit<ComponentProps<'script'>, 'children' | 'dangerouslySetInnerHTML' | 'src'> & {
|
|
18
|
-
/** One of this module's scripts, such as `tabs`. */
|
|
19
|
-
script: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Renders an element's script inline, such as `<InlineScript script={tabs} />` in the page's
|
|
23
|
-
* `head`. Pass `nonce` for a Content Security Policy. Rendered on the server: a script that React
|
|
24
|
-
* adds in the browser doesn't run, and isn't needed, since React's parts define their elements.
|
|
25
|
-
*/
|
|
26
|
-
declare function InlineScript({ script, ...props }: InlineScriptProps): React.JSX.Element;
|
|
27
|
-
|
|
28
|
-
export { InlineScript };
|
|
29
|
-
export type { InlineScriptProps };
|