@digdir/designsystemet-react 1.0.0-next.39 → 1.0.0-next.40
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/cjs/components/{Accordion/AccordionItem.js → Details/Details.js} +8 -8
- package/dist/cjs/components/Details/DetailsContent.js +16 -0
- package/dist/cjs/components/{Accordion/AccordionHeading.js → Details/DetailsSummary.js} +4 -4
- package/dist/cjs/components/Details/index.js +25 -0
- package/dist/cjs/components/HelpText/HelpText.js +1 -1
- package/dist/cjs/components/Modal/Modal.js +1 -1
- package/dist/cjs/components/ValidationMessage/ValidationMessage.js +2 -2
- package/dist/cjs/components/form/Field/FieldCounter.js +1 -1
- package/dist/cjs/index.js +6 -8
- package/dist/esm/components/{Accordion/AccordionItem.js → Details/Details.js} +8 -8
- package/dist/esm/components/Details/DetailsContent.js +14 -0
- package/dist/esm/components/Details/DetailsSummary.js +15 -0
- package/dist/esm/components/Details/index.js +21 -0
- package/dist/esm/components/HelpText/HelpText.js +1 -1
- package/dist/esm/components/Modal/Modal.js +1 -1
- package/dist/esm/components/ValidationMessage/ValidationMessage.js +2 -2
- package/dist/esm/components/form/Field/FieldCounter.js +1 -1
- package/dist/esm/index.js +3 -4
- package/dist/types/components/Details/Details.d.ts +37 -0
- package/dist/types/components/Details/Details.d.ts.map +1 -0
- package/dist/types/components/Details/DetailsContent.d.ts +9 -0
- package/dist/types/components/Details/DetailsContent.d.ts.map +1 -0
- package/dist/types/components/Details/DetailsSummary.d.ts +15 -0
- package/dist/types/components/Details/DetailsSummary.d.ts.map +1 -0
- package/dist/types/components/Details/index.d.ts +21 -0
- package/dist/types/components/Details/index.d.ts.map +1 -0
- package/dist/types/components/HelpText/HelpText.d.ts +1 -5
- package/dist/types/components/HelpText/HelpText.d.ts.map +1 -1
- package/dist/types/components/Popover/Popover.d.ts +0 -1
- package/dist/types/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/ValidationMessage/ValidationMessage.d.ts +7 -4
- package/dist/types/components/ValidationMessage/ValidationMessage.d.ts.map +1 -1
- package/dist/types/components/form/Field/FieldCounter.d.ts +1 -2
- package/dist/types/components/form/Field/FieldCounter.d.ts.map +1 -1
- package/dist/types/components/form/Field/index.d.ts +1 -2
- package/dist/types/components/form/Field/index.d.ts.map +1 -1
- package/dist/types/components/form/Fieldset/Fieldset.d.ts +3 -282
- package/dist/types/components/form/Fieldset/Fieldset.d.ts.map +1 -1
- package/dist/types/components/form/Fieldset/index.d.ts +1 -274
- package/dist/types/components/form/Fieldset/index.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/cjs/components/Accordion/Accordion.js +0 -15
- package/dist/cjs/components/Accordion/AccordionContent.js +0 -16
- package/dist/cjs/components/Accordion/index.js +0 -30
- package/dist/esm/components/Accordion/Accordion.js +0 -13
- package/dist/esm/components/Accordion/AccordionContent.js +0 -14
- package/dist/esm/components/Accordion/AccordionHeading.js +0 -15
- package/dist/esm/components/Accordion/index.js +0 -25
- package/dist/types/components/Accordion/Accordion.d.ts +0 -293
- package/dist/types/components/Accordion/Accordion.d.ts.map +0 -1
- package/dist/types/components/Accordion/AccordionContent.d.ts +0 -9
- package/dist/types/components/Accordion/AccordionContent.d.ts.map +0 -1
- package/dist/types/components/Accordion/AccordionHeading.d.ts +0 -15
- package/dist/types/components/Accordion/AccordionHeading.d.ts.map +0 -1
- package/dist/types/components/Accordion/AccordionItem.d.ts +0 -37
- package/dist/types/components/Accordion/AccordionItem.d.ts.map +0 -1
- package/dist/types/components/Accordion/index.d.ts +0 -26
- package/dist/types/components/Accordion/index.d.ts.map +0 -1
- package/dist/types/components/form/CharacterCounter.d.ts +0 -22
- package/dist/types/components/form/CharacterCounter.d.ts.map +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var react = require('react');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Accordion content component, contains the content of the accordion item.
|
|
9
|
-
* @example
|
|
10
|
-
* <AccordionContent>Content</AccordionContent>
|
|
11
|
-
*/
|
|
12
|
-
const AccordionContent = react.forwardRef(function AccordionContent(rest, ref) {
|
|
13
|
-
return jsxRuntime.jsx("div", { ref: ref, ...rest });
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
exports.AccordionContent = AccordionContent;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var Accordion$1 = require('./Accordion.js');
|
|
5
|
-
var AccordionContent = require('./AccordionContent.js');
|
|
6
|
-
var AccordionHeading = require('./AccordionHeading.js');
|
|
7
|
-
var AccordionItem = require('./AccordionItem.js');
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Accordions are used to toggle the visibility of content.
|
|
11
|
-
* @example
|
|
12
|
-
* <Accordion>
|
|
13
|
-
* <Accordion.Item>
|
|
14
|
-
* <Accordion.Heading>Heading 1</Accordion.Heading>
|
|
15
|
-
* <Accordion.Content>Content 1</Accordion.Content>
|
|
16
|
-
* </Accordion.Item>
|
|
17
|
-
* <Accordion>
|
|
18
|
-
*/
|
|
19
|
-
const Accordion = Accordion$1.Accordion;
|
|
20
|
-
Accordion.Heading = AccordionHeading.AccordionHeading;
|
|
21
|
-
Accordion.Content = AccordionContent.AccordionContent;
|
|
22
|
-
Accordion.Item = AccordionItem.AccordionItem;
|
|
23
|
-
Accordion.Heading.displayName = 'Accordion.Heading';
|
|
24
|
-
Accordion.Content.displayName = 'Accordion.Content';
|
|
25
|
-
Accordion.Item.displayName = 'Accordion.Item';
|
|
26
|
-
|
|
27
|
-
exports.AccordionContent = AccordionContent.AccordionContent;
|
|
28
|
-
exports.AccordionHeading = AccordionHeading.AccordionHeading;
|
|
29
|
-
exports.AccordionItem = AccordionItem.AccordionItem;
|
|
30
|
-
exports.Accordion = Accordion;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import cl from 'clsx/lite';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Accordion component, contains `Accordion.Item` components.
|
|
8
|
-
*/
|
|
9
|
-
const Accordion = forwardRef(function Accordion({ border = false, 'data-color': color = 'neutral', className, ...rest }, ref) {
|
|
10
|
-
return (jsx("div", { className: cl('ds-accordion-group', className), "data-border": border || undefined, "data-color": color, ref: ref, ...rest }));
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export { Accordion };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Accordion content component, contains the content of the accordion item.
|
|
7
|
-
* @example
|
|
8
|
-
* <AccordionContent>Content</AccordionContent>
|
|
9
|
-
*/
|
|
10
|
-
const AccordionContent = forwardRef(function AccordionContent(rest, ref) {
|
|
11
|
-
return jsx("div", { ref: ref, ...rest });
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
export { AccordionContent };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Accordion heading component, contains a button to toggle the content.
|
|
7
|
-
* @example
|
|
8
|
-
* <AccordionHeading>Heading</AccordionHeading>
|
|
9
|
-
*/
|
|
10
|
-
const AccordionHeading = forwardRef(function AccordionHeading({ className, ...rest }, ref) {
|
|
11
|
-
/* Set `className` as `class` so react is happy */
|
|
12
|
-
return jsx("u-summary", { ref: ref, class: className, ...rest });
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export { AccordionHeading };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { Accordion as Accordion$1 } from './Accordion.js';
|
|
3
|
-
import { AccordionContent } from './AccordionContent.js';
|
|
4
|
-
import { AccordionHeading } from './AccordionHeading.js';
|
|
5
|
-
import { AccordionItem } from './AccordionItem.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Accordions are used to toggle the visibility of content.
|
|
9
|
-
* @example
|
|
10
|
-
* <Accordion>
|
|
11
|
-
* <Accordion.Item>
|
|
12
|
-
* <Accordion.Heading>Heading 1</Accordion.Heading>
|
|
13
|
-
* <Accordion.Content>Content 1</Accordion.Content>
|
|
14
|
-
* </Accordion.Item>
|
|
15
|
-
* <Accordion>
|
|
16
|
-
*/
|
|
17
|
-
const Accordion = Accordion$1;
|
|
18
|
-
Accordion.Heading = AccordionHeading;
|
|
19
|
-
Accordion.Content = AccordionContent;
|
|
20
|
-
Accordion.Item = AccordionItem;
|
|
21
|
-
Accordion.Heading.displayName = 'Accordion.Heading';
|
|
22
|
-
Accordion.Content.displayName = 'Accordion.Content';
|
|
23
|
-
Accordion.Item.displayName = 'Accordion.Item';
|
|
24
|
-
|
|
25
|
-
export { Accordion, AccordionContent, AccordionHeading, AccordionItem };
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import type { Color } from '../../colors';
|
|
3
|
-
import type { DefaultProps } from '../../types';
|
|
4
|
-
import type { MergeRight } from '../../utilities';
|
|
5
|
-
export type AccordionProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
6
|
-
/**
|
|
7
|
-
* Accordion background color.
|
|
8
|
-
* @default neutral
|
|
9
|
-
*/
|
|
10
|
-
'data-color'?: 'subtle' | Color;
|
|
11
|
-
/**
|
|
12
|
-
* Show border
|
|
13
|
-
* @default false
|
|
14
|
-
**/
|
|
15
|
-
border?: boolean;
|
|
16
|
-
/** Instances of `Accordion.Item` */
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* Accordion component, contains `Accordion.Item` components.
|
|
21
|
-
*/
|
|
22
|
-
export declare const Accordion: React.ForwardRefExoticComponent<{
|
|
23
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
24
|
-
onBlur?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
25
|
-
onFocus?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
26
|
-
defaultChecked?: boolean | undefined;
|
|
27
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
28
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
29
|
-
accessKey?: string | undefined;
|
|
30
|
-
autoFocus?: boolean | undefined;
|
|
31
|
-
className?: string | undefined;
|
|
32
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
33
|
-
contextMenu?: string | undefined;
|
|
34
|
-
dir?: string | undefined;
|
|
35
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
36
|
-
hidden?: boolean | undefined;
|
|
37
|
-
id?: string | undefined;
|
|
38
|
-
lang?: string | undefined;
|
|
39
|
-
nonce?: string | undefined;
|
|
40
|
-
slot?: string | undefined;
|
|
41
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
42
|
-
style?: React.CSSProperties | undefined;
|
|
43
|
-
tabIndex?: number | undefined;
|
|
44
|
-
title?: string | undefined;
|
|
45
|
-
translate?: "yes" | "no" | undefined;
|
|
46
|
-
radioGroup?: string | undefined;
|
|
47
|
-
role?: React.AriaRole | undefined;
|
|
48
|
-
about?: string | undefined;
|
|
49
|
-
content?: string | undefined;
|
|
50
|
-
datatype?: string | undefined;
|
|
51
|
-
inlist?: any;
|
|
52
|
-
prefix?: string | undefined;
|
|
53
|
-
property?: string | undefined;
|
|
54
|
-
rel?: string | undefined;
|
|
55
|
-
resource?: string | undefined;
|
|
56
|
-
rev?: string | undefined;
|
|
57
|
-
typeof?: string | undefined;
|
|
58
|
-
vocab?: string | undefined;
|
|
59
|
-
autoCapitalize?: string | undefined;
|
|
60
|
-
autoCorrect?: string | undefined;
|
|
61
|
-
autoSave?: string | undefined;
|
|
62
|
-
color?: string | undefined;
|
|
63
|
-
itemProp?: string | undefined;
|
|
64
|
-
itemScope?: boolean | undefined;
|
|
65
|
-
itemType?: string | undefined;
|
|
66
|
-
itemID?: string | undefined;
|
|
67
|
-
itemRef?: string | undefined;
|
|
68
|
-
results?: number | undefined;
|
|
69
|
-
security?: string | undefined;
|
|
70
|
-
unselectable?: "on" | "off" | undefined;
|
|
71
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
72
|
-
is?: string | undefined;
|
|
73
|
-
popovertarget?: string | undefined;
|
|
74
|
-
'data-size'?: "sm" | "md" | "lg" | undefined;
|
|
75
|
-
"aria-activedescendant"?: string | undefined;
|
|
76
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
77
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
78
|
-
"aria-braillelabel"?: string | undefined;
|
|
79
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
80
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
81
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
82
|
-
"aria-colcount"?: number | undefined;
|
|
83
|
-
"aria-colindex"?: number | undefined;
|
|
84
|
-
"aria-colindextext"?: string | undefined;
|
|
85
|
-
"aria-colspan"?: number | undefined;
|
|
86
|
-
"aria-controls"?: string | undefined;
|
|
87
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
88
|
-
"aria-describedby"?: string | undefined;
|
|
89
|
-
"aria-description"?: string | undefined;
|
|
90
|
-
"aria-details"?: string | undefined;
|
|
91
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
92
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
93
|
-
"aria-errormessage"?: string | undefined;
|
|
94
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
95
|
-
"aria-flowto"?: string | undefined;
|
|
96
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
97
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
98
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
99
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
100
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
101
|
-
"aria-label"?: string | undefined;
|
|
102
|
-
"aria-labelledby"?: string | undefined;
|
|
103
|
-
"aria-level"?: number | undefined;
|
|
104
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
105
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
106
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
107
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
108
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
109
|
-
"aria-owns"?: string | undefined;
|
|
110
|
-
"aria-placeholder"?: string | undefined;
|
|
111
|
-
"aria-posinset"?: number | undefined;
|
|
112
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
113
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
114
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
115
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
116
|
-
"aria-roledescription"?: string | undefined;
|
|
117
|
-
"aria-rowcount"?: number | undefined;
|
|
118
|
-
"aria-rowindex"?: number | undefined;
|
|
119
|
-
"aria-rowindextext"?: string | undefined;
|
|
120
|
-
"aria-rowspan"?: number | undefined;
|
|
121
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
122
|
-
"aria-setsize"?: number | undefined;
|
|
123
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
124
|
-
"aria-valuemax"?: number | undefined;
|
|
125
|
-
"aria-valuemin"?: number | undefined;
|
|
126
|
-
"aria-valuenow"?: number | undefined;
|
|
127
|
-
"aria-valuetext"?: string | undefined;
|
|
128
|
-
dangerouslySetInnerHTML?: {
|
|
129
|
-
__html: string | TrustedHTML;
|
|
130
|
-
} | undefined;
|
|
131
|
-
onCopy?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
132
|
-
onCopyCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
133
|
-
onCut?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
134
|
-
onCutCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
135
|
-
onPaste?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
136
|
-
onPasteCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
137
|
-
onCompositionEnd?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
138
|
-
onCompositionEndCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
139
|
-
onCompositionStart?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
140
|
-
onCompositionStartCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
141
|
-
onCompositionUpdate?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
142
|
-
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
143
|
-
onFocusCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
144
|
-
onBlurCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
145
|
-
onChange?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
146
|
-
onChangeCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
147
|
-
onBeforeInput?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
148
|
-
onBeforeInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
149
|
-
onInput?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
150
|
-
onInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
151
|
-
onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
152
|
-
onResetCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
153
|
-
onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
154
|
-
onSubmitCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
155
|
-
onInvalid?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
156
|
-
onInvalidCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
157
|
-
onLoad?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
158
|
-
onLoadCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
159
|
-
onError?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
160
|
-
onErrorCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
161
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
162
|
-
onKeyDownCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
163
|
-
onKeyPress?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
164
|
-
onKeyPressCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
165
|
-
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
166
|
-
onKeyUpCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
167
|
-
onAbort?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
168
|
-
onAbortCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
169
|
-
onCanPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
170
|
-
onCanPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
171
|
-
onCanPlayThrough?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
172
|
-
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
173
|
-
onDurationChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
174
|
-
onDurationChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
175
|
-
onEmptied?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
176
|
-
onEmptiedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
177
|
-
onEncrypted?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
178
|
-
onEncryptedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
179
|
-
onEnded?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
180
|
-
onEndedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
181
|
-
onLoadedData?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
|
-
onLoadedDataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
|
-
onLoadedMetadata?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
|
-
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
185
|
-
onLoadStart?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
186
|
-
onLoadStartCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
187
|
-
onPause?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
188
|
-
onPauseCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
189
|
-
onPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
190
|
-
onPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
191
|
-
onPlaying?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
192
|
-
onPlayingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
193
|
-
onProgress?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
194
|
-
onProgressCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
195
|
-
onRateChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
196
|
-
onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
197
|
-
onResize?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
198
|
-
onResizeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
199
|
-
onSeeked?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
200
|
-
onSeekedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
201
|
-
onSeeking?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
202
|
-
onSeekingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
203
|
-
onStalled?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
204
|
-
onStalledCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
205
|
-
onSuspend?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
206
|
-
onSuspendCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
207
|
-
onTimeUpdate?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
208
|
-
onTimeUpdateCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
209
|
-
onVolumeChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
210
|
-
onVolumeChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
211
|
-
onWaiting?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
212
|
-
onWaitingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
213
|
-
onAuxClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
214
|
-
onAuxClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
215
|
-
onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
216
|
-
onClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
217
|
-
onContextMenu?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
218
|
-
onContextMenuCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
219
|
-
onDoubleClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
220
|
-
onDoubleClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
221
|
-
onDrag?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
222
|
-
onDragCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
223
|
-
onDragEnd?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
224
|
-
onDragEndCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
225
|
-
onDragEnter?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
226
|
-
onDragEnterCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
227
|
-
onDragExit?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
228
|
-
onDragExitCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
229
|
-
onDragLeave?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
230
|
-
onDragLeaveCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
231
|
-
onDragOver?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
232
|
-
onDragOverCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
233
|
-
onDragStart?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
234
|
-
onDragStartCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
235
|
-
onDrop?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
236
|
-
onDropCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
237
|
-
onMouseDown?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
238
|
-
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
239
|
-
onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
240
|
-
onMouseLeave?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
241
|
-
onMouseMove?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
242
|
-
onMouseMoveCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
243
|
-
onMouseOut?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
244
|
-
onMouseOutCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
245
|
-
onMouseOver?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
246
|
-
onMouseOverCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
247
|
-
onMouseUp?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
248
|
-
onMouseUpCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
249
|
-
onSelect?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
250
|
-
onSelectCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
251
|
-
onTouchCancel?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
252
|
-
onTouchCancelCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
253
|
-
onTouchEnd?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
254
|
-
onTouchEndCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
255
|
-
onTouchMove?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
256
|
-
onTouchMoveCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
257
|
-
onTouchStart?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
258
|
-
onTouchStartCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
259
|
-
onPointerDown?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
260
|
-
onPointerDownCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
261
|
-
onPointerMove?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
262
|
-
onPointerMoveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
263
|
-
onPointerUp?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
264
|
-
onPointerUpCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
265
|
-
onPointerCancel?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
266
|
-
onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
267
|
-
onPointerEnter?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
268
|
-
onPointerLeave?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
269
|
-
onPointerOver?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
270
|
-
onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
271
|
-
onPointerOut?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
272
|
-
onPointerOutCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
273
|
-
onGotPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
274
|
-
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
275
|
-
onLostPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
276
|
-
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
277
|
-
onScroll?: React.UIEventHandler<HTMLDivElement> | undefined;
|
|
278
|
-
onScrollCapture?: React.UIEventHandler<HTMLDivElement> | undefined;
|
|
279
|
-
onWheel?: React.WheelEventHandler<HTMLDivElement> | undefined;
|
|
280
|
-
onWheelCapture?: React.WheelEventHandler<HTMLDivElement> | undefined;
|
|
281
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
282
|
-
onAnimationStartCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
283
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
284
|
-
onAnimationEndCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
285
|
-
onAnimationIteration?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
286
|
-
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
287
|
-
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
288
|
-
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
289
|
-
'data-color'?: ("subtle" | Color) | undefined;
|
|
290
|
-
border?: boolean | undefined;
|
|
291
|
-
children: ReactNode;
|
|
292
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
293
|
-
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,UAAU,CACrC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;OAGG;IACH,YAAY,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAChC;;;QAGI;IACJ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oCAAoC;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB,CACF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAdH,QAAQ,GAAG,KAAK;aAKtB,OAAO;cAEN,SAAS;wCAsBtB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'react';
|
|
2
|
-
export type AccordionContentProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
-
/**
|
|
4
|
-
* Accordion content component, contains the content of the accordion item.
|
|
5
|
-
* @example
|
|
6
|
-
* <AccordionContent>Content</AccordionContent>
|
|
7
|
-
*/
|
|
8
|
-
export declare const AccordionContent: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
//# sourceMappingURL=AccordionContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionContent.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,8FAK3B,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export type AccordionHeadingProps = {
|
|
3
|
-
/** Heading text */
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
} & HTMLAttributes<HTMLElement>;
|
|
6
|
-
/**
|
|
7
|
-
* Accordion heading component, contains a button to toggle the content.
|
|
8
|
-
* @example
|
|
9
|
-
* <AccordionHeading>Heading</AccordionHeading>
|
|
10
|
-
*/
|
|
11
|
-
export declare const AccordionHeading: React.ForwardRefExoticComponent<{
|
|
12
|
-
/** Heading text */
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
} & HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
15
|
-
//# sourceMappingURL=AccordionHeading.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionHeading.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,MAAM,MAAM,qBAAqB,GAAG;IAClC,mBAAmB;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;IAT3B,mBAAmB;cACT,SAAS;mEAapB,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import '@u-elements/u-details';
|
|
3
|
-
export type AccordionItemProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Controls open-state.
|
|
6
|
-
*
|
|
7
|
-
* Using this removes automatic control of open-state
|
|
8
|
-
*
|
|
9
|
-
* @default undefined
|
|
10
|
-
*/
|
|
11
|
-
open?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Defaults the accordion to open if not controlled
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
defaultOpen?: boolean;
|
|
17
|
-
/** Callback function when AccordionItem toggles due to click on summary or find in page-search */
|
|
18
|
-
onToggle?: (event: Event) => void;
|
|
19
|
-
/** Content should be one `<Accordion.Heading>` and `<Accordion.Content>` */
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
} & Omit<HTMLAttributes<HTMLDetailsElement>, 'onToggle'> & ({
|
|
22
|
-
open: boolean;
|
|
23
|
-
onToggle: (event: Event) => void;
|
|
24
|
-
} | {
|
|
25
|
-
open?: never;
|
|
26
|
-
onToggle?: (event: Event) => void;
|
|
27
|
-
});
|
|
28
|
-
/**
|
|
29
|
-
* Accordion item component, contains `Accordion.Heading` and `Accordion.Content` components.
|
|
30
|
-
* @example
|
|
31
|
-
* <AccordionItem>
|
|
32
|
-
* <AccordionHeading>Header</AccordionHeading>
|
|
33
|
-
* <AccordionContent>Content</AccordionContent>
|
|
34
|
-
* </AccordionItem>
|
|
35
|
-
*/
|
|
36
|
-
export declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDetailsElement>>;
|
|
37
|
-
//# sourceMappingURL=AccordionItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,uBAAuB,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kGAAkG;IAClG,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC,GACtD,CACI;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,GACnD;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,CACtD,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,+FAmCzB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Accordion as AccordionParent } from './Accordion';
|
|
2
|
-
import { AccordionContent } from './AccordionContent';
|
|
3
|
-
import { AccordionHeading } from './AccordionHeading';
|
|
4
|
-
import { AccordionItem } from './AccordionItem';
|
|
5
|
-
type AccordionComponent = typeof AccordionParent & {
|
|
6
|
-
Item: typeof AccordionItem;
|
|
7
|
-
Heading: typeof AccordionHeading;
|
|
8
|
-
Content: typeof AccordionContent;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Accordions are used to toggle the visibility of content.
|
|
12
|
-
* @example
|
|
13
|
-
* <Accordion>
|
|
14
|
-
* <Accordion.Item>
|
|
15
|
-
* <Accordion.Heading>Heading 1</Accordion.Heading>
|
|
16
|
-
* <Accordion.Content>Content 1</Accordion.Content>
|
|
17
|
-
* </Accordion.Item>
|
|
18
|
-
* <Accordion>
|
|
19
|
-
*/
|
|
20
|
-
declare const Accordion: AccordionComponent;
|
|
21
|
-
export type { AccordionContentProps } from './AccordionContent';
|
|
22
|
-
export type { AccordionHeadingProps } from './AccordionHeading';
|
|
23
|
-
export type { AccordionItemProps } from './AccordionItem';
|
|
24
|
-
export type { AccordionProps } from './Accordion';
|
|
25
|
-
export { Accordion, AccordionItem, AccordionContent, AccordionHeading };
|
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,KAAK,kBAAkB,GAAG,OAAO,eAAe,GAAG;IACjD,IAAI,EAAE,OAAO,aAAa,CAAC;IAC3B,OAAO,EAAE,OAAO,gBAAgB,CAAC;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC;CAClC,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAA,MAAM,SAAS,EAAsB,kBAAkB,CAAC;AAUxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { TextfieldProps } from './Textfield';
|
|
2
|
-
export type CharacterLimitProps = Omit<CharacterCounterProps, 'id' | 'value' | 'size'>;
|
|
3
|
-
type CharacterCounterProps = {
|
|
4
|
-
/** The message indicating the remaining character limit. */
|
|
5
|
-
label?: (count: number) => string;
|
|
6
|
-
/** The description of the maximum character limit for screen readers. */
|
|
7
|
-
srLabel?: string;
|
|
8
|
-
/** The maximum allowed character count. */
|
|
9
|
-
maxCount: number;
|
|
10
|
-
/** The current value. */
|
|
11
|
-
value: string;
|
|
12
|
-
/** The ID of the element that describes the maximum character limit for accessibility purposes. */
|
|
13
|
-
id: string;
|
|
14
|
-
/** Text size */
|
|
15
|
-
'data-size'?: TextfieldProps['data-size'];
|
|
16
|
-
};
|
|
17
|
-
export declare const CharacterCounter: {
|
|
18
|
-
({ label, srLabel: propsSrLabel, maxCount, value, "data-size": size, id, }: CharacterCounterProps): JSX.Element;
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=CharacterCounter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CharacterCounter.d.ts","sourceRoot":"","sources":["../../../src/components/form/CharacterCounter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,qBAAqB,EACrB,IAAI,GAAG,OAAO,GAAG,MAAM,CACxB,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CAC3C,CAAC;AAQF,eAAO,MAAM,gBAAgB;gFAO1B,qBAAqB,GAAG,GAAG,CAAC,OAAO;;CAiBrC,CAAC"}
|