@norges-domstoler/dds-components 6.0.0 → 7.0.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/cjs/components/Card/Card.stories.d.ts +1 -0
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +4 -0
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/cjs/components/Checkbox/CheckboxGroup.stories.d.ts +6 -1
- package/dist/cjs/components/Checkbox/CheckboxGroup.tokens.d.ts +7 -13
- package/dist/cjs/components/Datepicker/Datepicker.stories.d.ts +1 -0
- package/dist/cjs/components/Datepicker/Datepicker.tokens.d.ts +21 -3
- package/dist/cjs/components/InputMessage/InputMessage.tokens.d.ts +11 -9
- package/dist/cjs/components/List/List.tokens.d.ts +0 -4
- package/dist/cjs/components/RadioButton/RadioButtonGroup.d.ts +5 -5
- package/dist/cjs/components/ScrollableContainer/scrollbarStyling.d.ts +1 -1
- package/dist/cjs/components/Search/Search.tokens.d.ts +51 -21
- package/dist/cjs/components/Select/CustomSelect.stories.d.ts +2 -2
- package/dist/cjs/components/Select/MultiSelect.stories.d.ts +2 -1
- package/dist/cjs/components/Select/Select.d.ts +9 -3
- package/dist/cjs/components/Select/Select.stories.d.ts +3 -1
- package/dist/cjs/components/Select/Select.styles.d.ts +6 -5
- package/dist/cjs/components/Select/Select.tokens.d.ts +215 -91
- package/dist/cjs/components/TextInput/TextInput.d.ts +5 -1
- package/dist/cjs/components/TextInput/TextInput.stories.d.ts +3 -0
- package/dist/cjs/components/TextInput/TextInput.styles.d.ts +14 -6
- package/dist/cjs/components/TextInput/TextInput.tokens.d.ts +25 -44
- package/dist/cjs/components/TextInput/TextInput.types.d.ts +3 -0
- package/dist/cjs/components/Typography/Link/Link.d.ts +1 -1
- package/dist/cjs/components/Typography/Link/Link.stories.d.ts +1 -1
- package/dist/cjs/components/Typography/Paragraph/Paragraph.d.ts +1 -1
- package/dist/cjs/components/Typography/Paragraph/Paragraph.stories.d.ts +1 -1
- package/dist/cjs/components/Typography/Typography/Typography.types.d.ts +2 -3
- package/dist/cjs/components/Typography/Typography.tokens.d.ts +3 -89
- package/dist/cjs/helpers/Input/Input.styles.d.ts +3 -5
- package/dist/cjs/helpers/Input/Input.tokens.d.ts +52 -29
- package/dist/cjs/helpers/Input/Input.types.d.ts +4 -6
- package/dist/cjs/helpers/Input/Input.utils.d.ts +3 -0
- package/dist/cjs/helpers/Input/index.d.ts +1 -0
- package/dist/cjs/helpers/SelectionControl/SelectionControl.styles.d.ts +15 -0
- package/dist/cjs/helpers/SelectionControl/SelectionControl.tokens.d.ts +83 -0
- package/dist/cjs/helpers/SelectionControl/SelectionControl.utils.d.ts +2 -0
- package/dist/cjs/helpers/SelectionControl/index.d.ts +3 -0
- package/dist/cjs/helpers/styling/hover.d.ts +0 -2
- package/dist/cjs/hooks/useFloatPosition.d.ts +22 -1
- package/dist/cjs/hooks/useIsMounted.d.ts +2 -0
- package/dist/cjs/index.js +1404 -1534
- package/dist/cjs/test/mocks/ResizeObserver.d.ts +6 -0
- package/dist/components/Card/Card.stories.d.ts +1 -0
- package/dist/components/Card/CardAccordion/CardAccordion.d.ts +4 -0
- package/dist/components/Card/CardAccordion/CardAccordion.js +10 -6
- package/dist/components/Card/CardAccordion/CardAccordionBody.js +41 -15
- package/dist/components/Checkbox/Checkbox.js +13 -6
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/components/Checkbox/CheckboxGroup.js +26 -23
- package/dist/components/Checkbox/CheckboxGroup.stories.d.ts +6 -1
- package/dist/components/Checkbox/CheckboxGroup.tokens.d.ts +7 -13
- package/dist/components/Checkbox/CheckboxGroup.tokens.js +12 -24
- package/dist/components/Datepicker/Datepicker.js +37 -29
- package/dist/components/Datepicker/Datepicker.stories.d.ts +1 -0
- package/dist/components/Datepicker/Datepicker.tokens.d.ts +21 -3
- package/dist/components/Datepicker/Datepicker.tokens.js +28 -18
- package/dist/components/InputMessage/InputMessage.js +4 -4
- package/dist/components/InputMessage/InputMessage.tokens.d.ts +11 -9
- package/dist/components/InputMessage/InputMessage.tokens.js +15 -21
- package/dist/components/List/List.tokens.d.ts +0 -4
- package/dist/components/List/List.tokens.js +0 -8
- package/dist/components/OverflowMenu/OverflowMenu.js +4 -1
- package/dist/components/Popover/Popover.js +4 -1
- package/dist/components/RadioButton/RadioButton.js +12 -4
- package/dist/components/RadioButton/RadioButtonGroup.d.ts +5 -5
- package/dist/components/RadioButton/RadioButtonGroup.js +11 -9
- package/dist/components/ScrollableContainer/scrollbarStyling.d.ts +1 -1
- package/dist/components/ScrollableContainer/scrollbarStyling.js +2 -1
- package/dist/components/Search/Search.js +32 -11
- package/dist/components/Search/Search.tokens.d.ts +51 -21
- package/dist/components/Search/Search.tokens.js +41 -49
- package/dist/components/Select/CustomSelect.stories.d.ts +2 -2
- package/dist/components/Select/MultiSelect.stories.d.ts +2 -1
- package/dist/components/Select/Select.d.ts +9 -3
- package/dist/components/Select/Select.js +88 -62
- package/dist/components/Select/Select.stories.d.ts +3 -1
- package/dist/components/Select/Select.styles.d.ts +6 -5
- package/dist/components/Select/Select.styles.js +149 -73
- package/dist/components/Select/Select.tokens.d.ts +215 -91
- package/dist/components/Select/Select.tokens.js +171 -279
- package/dist/components/Tabs/Tabs.js +3 -4
- package/dist/components/TextInput/CharCounter.js +1 -2
- package/dist/components/TextInput/TextInput.d.ts +5 -1
- package/dist/components/TextInput/TextInput.js +53 -32
- package/dist/components/TextInput/TextInput.stories.d.ts +3 -0
- package/dist/components/TextInput/TextInput.styles.d.ts +14 -6
- package/dist/components/TextInput/TextInput.styles.js +22 -19
- package/dist/components/TextInput/TextInput.tokens.d.ts +25 -44
- package/dist/components/TextInput/TextInput.tokens.js +35 -41
- package/dist/components/TextInput/TextInput.types.d.ts +3 -0
- package/dist/components/ToggleButton/ToggleButton.tokens.js +5 -4
- package/dist/components/Tooltip/Tooltip.js +3 -1
- package/dist/components/Typography/Link/Link.d.ts +1 -1
- package/dist/components/Typography/Link/Link.stories.d.ts +1 -1
- package/dist/components/Typography/Paragraph/Paragraph.d.ts +1 -1
- package/dist/components/Typography/Paragraph/Paragraph.stories.d.ts +1 -1
- package/dist/components/Typography/Typography/Typography.types.d.ts +2 -3
- package/dist/components/Typography/Typography.tokens.d.ts +3 -89
- package/dist/components/Typography/Typography.tokens.js +16 -72
- package/dist/components/Typography/Typography.utils.js +3 -8
- package/dist/helpers/Input/Input.styles.d.ts +3 -5
- package/dist/helpers/Input/Input.styles.js +20 -28
- package/dist/helpers/Input/Input.tokens.d.ts +52 -29
- package/dist/helpers/Input/Input.tokens.js +36 -54
- package/dist/helpers/Input/Input.types.d.ts +4 -6
- package/dist/helpers/Input/Input.utils.d.ts +3 -0
- package/dist/helpers/Input/Input.utils.js +14 -0
- package/dist/helpers/Input/index.d.ts +1 -0
- package/dist/helpers/SelectionControl/SelectionControl.styles.d.ts +15 -0
- package/dist/helpers/SelectionControl/SelectionControl.styles.js +36 -0
- package/dist/helpers/SelectionControl/SelectionControl.tokens.d.ts +83 -0
- package/dist/helpers/SelectionControl/SelectionControl.tokens.js +100 -0
- package/dist/helpers/SelectionControl/SelectionControl.utils.d.ts +2 -0
- package/dist/helpers/SelectionControl/SelectionControl.utils.js +4 -0
- package/dist/helpers/SelectionControl/index.d.ts +3 -0
- package/dist/helpers/styling/danger.js +1 -1
- package/dist/helpers/styling/focus.js +5 -6
- package/dist/helpers/styling/hover.d.ts +0 -2
- package/dist/helpers/styling/hover.js +2 -4
- package/dist/hooks/useFloatPosition.d.ts +22 -1
- package/dist/hooks/useFloatPosition.js +13 -13
- package/dist/hooks/useIsMounted.d.ts +2 -0
- package/dist/hooks/useIsMounted.js +16 -0
- package/dist/test/mocks/ResizeObserver.d.ts +6 -0
- package/package.json +30 -31
- package/dist/cjs/components/Checkbox/Checkbox.styles.d.ts +0 -5
- package/dist/cjs/components/Checkbox/Checkbox.tokens.d.ts +0 -65
- package/dist/cjs/components/RadioButton/RadioButton.styles.d.ts +0 -5
- package/dist/cjs/components/RadioButton/RadioButton.tokens.d.ts +0 -43
- package/dist/cjs/components/TextInput/CharCounter.tokens.d.ts +0 -4
- package/dist/components/Checkbox/Checkbox.styles.d.ts +0 -5
- package/dist/components/Checkbox/Checkbox.styles.js +0 -38
- package/dist/components/Checkbox/Checkbox.tokens.d.ts +0 -65
- package/dist/components/Checkbox/Checkbox.tokens.js +0 -132
- package/dist/components/RadioButton/RadioButton.styles.d.ts +0 -5
- package/dist/components/RadioButton/RadioButton.styles.js +0 -27
- package/dist/components/RadioButton/RadioButton.tokens.d.ts +0 -43
- package/dist/components/RadioButton/RadioButton.tokens.js +0 -100
- package/dist/components/TextInput/CharCounter.tokens.d.ts +0 -4
- package/dist/components/TextInput/CharCounter.tokens.js +0 -11
|
@@ -225,74 +225,6 @@ export declare const typographyTokens: {
|
|
|
225
225
|
marginBottom: string;
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
-
bodySerif01: {
|
|
229
|
-
base: {
|
|
230
|
-
color: string;
|
|
231
|
-
font: {
|
|
232
|
-
lineHeight: any;
|
|
233
|
-
fontSize: string;
|
|
234
|
-
letterSpacing: any;
|
|
235
|
-
fontFamily: any;
|
|
236
|
-
fontWeight: any;
|
|
237
|
-
fontStyle: any;
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
margins: {
|
|
241
|
-
marginTop: number;
|
|
242
|
-
marginBottom: string;
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
bodySerif02: {
|
|
246
|
-
base: {
|
|
247
|
-
color: string;
|
|
248
|
-
font: {
|
|
249
|
-
lineHeight: any;
|
|
250
|
-
fontSize: string;
|
|
251
|
-
letterSpacing: any;
|
|
252
|
-
fontFamily: any;
|
|
253
|
-
fontWeight: any;
|
|
254
|
-
fontStyle: any;
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
margins: {
|
|
258
|
-
marginTop: number;
|
|
259
|
-
marginBottom: string;
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
bodySerif03: {
|
|
263
|
-
base: {
|
|
264
|
-
color: string;
|
|
265
|
-
font: {
|
|
266
|
-
lineHeight: any;
|
|
267
|
-
fontSize: string;
|
|
268
|
-
letterSpacing: any;
|
|
269
|
-
fontFamily: any;
|
|
270
|
-
fontWeight: any;
|
|
271
|
-
fontStyle: any;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
margins: {
|
|
275
|
-
marginTop: number;
|
|
276
|
-
marginBottom: string;
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
bodySerif04: {
|
|
280
|
-
base: {
|
|
281
|
-
color: string;
|
|
282
|
-
font: {
|
|
283
|
-
lineHeight: any;
|
|
284
|
-
fontSize: string;
|
|
285
|
-
letterSpacing: any;
|
|
286
|
-
fontFamily: any;
|
|
287
|
-
fontWeight: any;
|
|
288
|
-
fontStyle: any;
|
|
289
|
-
};
|
|
290
|
-
};
|
|
291
|
-
margins: {
|
|
292
|
-
marginTop: number;
|
|
293
|
-
marginBottom: string;
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
228
|
leadSans01: {
|
|
297
229
|
base: {
|
|
298
230
|
color: string;
|
|
@@ -414,25 +346,7 @@ export declare const typographyTokens: {
|
|
|
414
346
|
marginBottom: string;
|
|
415
347
|
};
|
|
416
348
|
};
|
|
417
|
-
|
|
418
|
-
base: {
|
|
419
|
-
color: string;
|
|
420
|
-
font: {
|
|
421
|
-
lineHeight: any;
|
|
422
|
-
fontSize: string;
|
|
423
|
-
letterSpacing: any;
|
|
424
|
-
fontFamily: any;
|
|
425
|
-
fontWeight: any;
|
|
426
|
-
fontStyle: any;
|
|
427
|
-
};
|
|
428
|
-
margin: number;
|
|
429
|
-
};
|
|
430
|
-
margins: {
|
|
431
|
-
marginTop: string;
|
|
432
|
-
marginBottom: string;
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
supportingStyleInputText02: {
|
|
349
|
+
supportingStylePlaceholderText01: {
|
|
436
350
|
base: {
|
|
437
351
|
color: string;
|
|
438
352
|
font: {
|
|
@@ -450,7 +364,7 @@ export declare const typographyTokens: {
|
|
|
450
364
|
marginBottom: string;
|
|
451
365
|
};
|
|
452
366
|
};
|
|
453
|
-
|
|
367
|
+
supportingStylePlaceholderText02: {
|
|
454
368
|
base: {
|
|
455
369
|
color: string;
|
|
456
370
|
font: {
|
|
@@ -468,7 +382,7 @@ export declare const typographyTokens: {
|
|
|
468
382
|
marginBottom: string;
|
|
469
383
|
};
|
|
470
384
|
};
|
|
471
|
-
|
|
385
|
+
supportingStylePlaceholderText03: {
|
|
472
386
|
base: {
|
|
473
387
|
color: string;
|
|
474
388
|
font: {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { StyledLabelProps } from '.';
|
|
2
1
|
import { Property } from 'csstype';
|
|
3
2
|
export declare const Input: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
4
|
-
export declare const StatefulInput: import("styled-components").StyledComponent<"input", any, Pick<import("./Input.types").InputProps, "disabled" | "readOnly"> & {
|
|
3
|
+
export declare const StatefulInput: import("styled-components").StyledComponent<"input", any, Pick<import("./Input.types").InputProps, "disabled" | "readOnly" | "componentSize"> & {
|
|
5
4
|
hasErrorMessage: boolean;
|
|
6
|
-
hasLabel: import("./Input.types").LabelPresence;
|
|
7
5
|
}, never>;
|
|
8
|
-
export declare const Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../components/Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, any, StyledLabelProps, never>;
|
|
9
|
-
export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
6
|
declare type OuterInputContainerProps = {
|
|
11
7
|
width?: Property.Width<string>;
|
|
12
8
|
};
|
|
13
9
|
export declare const OuterInputContainer: import("styled-components").StyledComponent<"div", any, OuterInputContainerProps, never>;
|
|
10
|
+
/**Brukes som container til input og ikon for posisjonering. */
|
|
11
|
+
export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
12
|
export {};
|
|
@@ -1,13 +1,59 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
2
|
export declare const inputTokens: {
|
|
3
|
-
|
|
4
|
-
base:
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
input: {
|
|
4
|
+
base: {
|
|
5
|
+
color: string;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
border: string;
|
|
8
|
+
borderColor: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
padding: string;
|
|
7
11
|
};
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
disabled: {
|
|
13
|
+
color: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
};
|
|
16
|
+
readOnly: {
|
|
17
|
+
backgroundColor: string;
|
|
10
18
|
};
|
|
19
|
+
sizes: {
|
|
20
|
+
medium: {
|
|
21
|
+
padding: string;
|
|
22
|
+
font: {
|
|
23
|
+
lineHeight: any;
|
|
24
|
+
fontSize: string;
|
|
25
|
+
letterSpacing: any;
|
|
26
|
+
fontFamily: any;
|
|
27
|
+
fontWeight: any;
|
|
28
|
+
fontStyle: any;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
small: {
|
|
32
|
+
padding: string;
|
|
33
|
+
font: {
|
|
34
|
+
lineHeight: any;
|
|
35
|
+
fontSize: string;
|
|
36
|
+
letterSpacing: any;
|
|
37
|
+
fontFamily: any;
|
|
38
|
+
fontWeight: any;
|
|
39
|
+
fontStyle: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
tiny: {
|
|
43
|
+
padding: string;
|
|
44
|
+
font: {
|
|
45
|
+
lineHeight: any;
|
|
46
|
+
fontSize: string;
|
|
47
|
+
letterSpacing: any;
|
|
48
|
+
fontFamily: any;
|
|
49
|
+
fontWeight: any;
|
|
50
|
+
fontStyle: any;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
container: {
|
|
56
|
+
gap: string;
|
|
11
57
|
};
|
|
12
58
|
general: {
|
|
13
59
|
input: {
|
|
@@ -15,14 +61,6 @@ export declare const inputTokens: {
|
|
|
15
61
|
borderWidth: string;
|
|
16
62
|
borderColor: string;
|
|
17
63
|
textColor: string;
|
|
18
|
-
font: {
|
|
19
|
-
lineHeight: any;
|
|
20
|
-
fontSize: string;
|
|
21
|
-
letterSpacing: any;
|
|
22
|
-
fontFamily: any;
|
|
23
|
-
fontWeight: any;
|
|
24
|
-
fontStyle: any;
|
|
25
|
-
};
|
|
26
64
|
hover: {
|
|
27
65
|
backgroundColor: string;
|
|
28
66
|
borderColor: string;
|
|
@@ -48,21 +86,6 @@ export declare const inputTokens: {
|
|
|
48
86
|
noLabel: {
|
|
49
87
|
base: CSSObject;
|
|
50
88
|
};
|
|
51
|
-
readOnly: {
|
|
52
|
-
base: CSSObject;
|
|
53
|
-
};
|
|
54
|
-
disabled: {
|
|
55
|
-
base: CSSObject;
|
|
56
|
-
};
|
|
57
|
-
error: {
|
|
58
|
-
base: CSSObject;
|
|
59
|
-
hover: {
|
|
60
|
-
base: CSSObject;
|
|
61
|
-
};
|
|
62
|
-
focus: {
|
|
63
|
-
base: CSSObject;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
89
|
label: {
|
|
67
90
|
base: CSSObject;
|
|
68
91
|
hover: {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
|
+
export declare type InputSize = 'medium' | 'small' | 'tiny';
|
|
3
4
|
export declare type InputProps = {
|
|
4
5
|
/**Ledetekst for input. */
|
|
5
6
|
label?: string;
|
|
7
|
+
/**Størrelse på inputfeltet. */
|
|
8
|
+
componentSize?: InputSize;
|
|
6
9
|
/**Bredde for inputfeltet. */
|
|
7
10
|
width?: Property.Width<string>;
|
|
8
11
|
/**Hjelpetekst. */
|
|
@@ -10,11 +13,6 @@ export declare type InputProps = {
|
|
|
10
13
|
/**Feilmelding. Setter også error state. */
|
|
11
14
|
errorMessage?: string;
|
|
12
15
|
} & InputHTMLAttributes<HTMLInputElement>;
|
|
13
|
-
export declare type
|
|
14
|
-
export declare type StyledInputProps = Pick<InputProps, 'readOnly' | 'disabled'> & {
|
|
16
|
+
export declare type StyledInputProps = Pick<InputProps, 'readOnly' | 'disabled' | 'componentSize'> & {
|
|
15
17
|
hasErrorMessage: boolean;
|
|
16
|
-
hasLabel: LabelPresence;
|
|
17
|
-
};
|
|
18
|
-
export declare type StyledLabelProps = {
|
|
19
|
-
disabled?: boolean;
|
|
20
18
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare type SelectionControlType = 'radio' | 'checkbox';
|
|
2
|
+
declare type CustomSelectionControlProps = {
|
|
3
|
+
controlType?: SelectionControlType;
|
|
4
|
+
};
|
|
5
|
+
export declare const CustomSelectionControl: import("styled-components").StyledComponent<"span", any, CustomSelectionControlProps, never>;
|
|
6
|
+
declare type ContainerProps = {
|
|
7
|
+
hasLabel?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
controlType: SelectionControlType;
|
|
13
|
+
};
|
|
14
|
+
export declare const Container: import("styled-components").StyledComponent<"label", any, ContainerProps, never>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const selectionControlTokens: {
|
|
2
|
+
selectionControl: {
|
|
3
|
+
base: {
|
|
4
|
+
border: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
height: string;
|
|
9
|
+
width: string;
|
|
10
|
+
};
|
|
11
|
+
hover: {
|
|
12
|
+
base: {
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
boxShadow: string;
|
|
15
|
+
borderColor: string;
|
|
16
|
+
};
|
|
17
|
+
danger: {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
boxShadow: string;
|
|
20
|
+
borderColor: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
danger: {
|
|
24
|
+
boxShadow: string;
|
|
25
|
+
borderColor: string;
|
|
26
|
+
};
|
|
27
|
+
disabled: {
|
|
28
|
+
borderColor: string;
|
|
29
|
+
};
|
|
30
|
+
readOnly: {
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
};
|
|
33
|
+
checked: {
|
|
34
|
+
base: {
|
|
35
|
+
borderColor: string;
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
};
|
|
38
|
+
hover: {
|
|
39
|
+
backgroundColor: string;
|
|
40
|
+
boxShadow: string;
|
|
41
|
+
borderColor: string;
|
|
42
|
+
};
|
|
43
|
+
disabled: {
|
|
44
|
+
borderColor: string;
|
|
45
|
+
backgroundColor: string;
|
|
46
|
+
};
|
|
47
|
+
readOnly: {
|
|
48
|
+
borderColor: string;
|
|
49
|
+
backgroundColor: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
checkbox: {
|
|
53
|
+
indeterminate: {
|
|
54
|
+
borderColor: string;
|
|
55
|
+
backgroundColor: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
checkmark: {
|
|
60
|
+
checkbox: {
|
|
61
|
+
borderColor: string;
|
|
62
|
+
};
|
|
63
|
+
radio: {
|
|
64
|
+
backgroundColor: string;
|
|
65
|
+
height: string;
|
|
66
|
+
width: string;
|
|
67
|
+
left: string;
|
|
68
|
+
top: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
container: {
|
|
72
|
+
color: string;
|
|
73
|
+
disabled: {
|
|
74
|
+
color: string;
|
|
75
|
+
};
|
|
76
|
+
withLabel: {
|
|
77
|
+
paddingLeft: string;
|
|
78
|
+
};
|
|
79
|
+
noLabel: {
|
|
80
|
+
padding: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -5,10 +5,8 @@ export declare const hoverWithBorder: {
|
|
|
5
5
|
export declare const hoverInputfield: {
|
|
6
6
|
borderColor: string;
|
|
7
7
|
boxShadow: string;
|
|
8
|
-
backgroundColor: string;
|
|
9
8
|
};
|
|
10
9
|
export declare const hoverDangerInputfield: {
|
|
11
10
|
borderColor: string;
|
|
12
11
|
boxShadow: string;
|
|
13
|
-
backgroundColor: string;
|
|
14
12
|
};
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import { Strategy } from '@floating-ui/react-dom';
|
|
2
2
|
export declare type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
3
|
-
|
|
3
|
+
interface UseFloatPositionOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Whether to update the position of the floating element on every animation frame if required.
|
|
6
|
+
* This is optimized for performance but can still be costly.
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
animationFrame?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* `offset` is used to displace the floating element from its core placement.
|
|
12
|
+
* The value passed is logical, meaning its effect on the
|
|
13
|
+
* physical result is dependent on the writing direction (e.g. RTL).
|
|
14
|
+
* @default 8
|
|
15
|
+
*/
|
|
16
|
+
offset?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Where to place the floating element relative to its reference element.
|
|
19
|
+
* @default 'bottom'
|
|
20
|
+
*/
|
|
21
|
+
placement?: Placement;
|
|
22
|
+
}
|
|
23
|
+
export declare const useFloatPosition: (arrowRef: HTMLElement | null, options?: UseFloatPositionOptions) => {
|
|
4
24
|
reference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
5
25
|
floating: (node: HTMLElement | null) => void;
|
|
6
26
|
refs: {
|
|
@@ -22,3 +42,4 @@ export declare const useFloatPosition: (arrowRef: HTMLElement | null, placement?
|
|
|
22
42
|
} | undefined;
|
|
23
43
|
};
|
|
24
44
|
};
|
|
45
|
+
export {};
|