norma-library 0.2.3 → 0.2.4
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/Button/index.d.ts +9 -0
- package/dist/Button/types.d.ts +18 -0
- package/dist/Card/styles.d.ts +50 -50
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +6435 -1230
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +203 -37
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
import { Button } from './index';
|
|
4
|
+
import { ButtonPropsColorOverrides, ButtonPropsSizeOverrides, ButtonPropsVariantOverrides, ButtonProps as MuiButtonProps, SxProps } from '@mui/material';
|
|
5
|
+
import { OverridableStringUnion } from '@mui/types';
|
|
6
|
+
type MuiButtonBaseProps = Pick<MuiButtonProps, 'sx' | 'color' | 'size' | 'variant'>;
|
|
7
|
+
export interface ButtonBaseProps extends MuiButtonBaseProps {
|
|
8
|
+
label: string;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
onClick?: (event: React.MouseEvent | React.KeyboardEvent | React.TouchEvent) => void;
|
|
12
|
+
color?: OverridableStringUnion<'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning', ButtonPropsColorOverrides>;
|
|
13
|
+
size?: OverridableStringUnion<'small' | 'medium' | 'large', ButtonPropsSizeOverrides>;
|
|
14
|
+
variant?: OverridableStringUnion<'text' | 'outlined' | 'contained', ButtonPropsVariantOverrides>;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
export type ButtonType = keyof typeof Button;
|
|
18
|
+
export {};
|
package/dist/Card/styles.d.ts
CHANGED
|
@@ -10,17 +10,17 @@ export declare const StyledCard: import("styled-components").IStyledComponent<"w
|
|
|
10
10
|
accessKey?: string | undefined;
|
|
11
11
|
autoFocus?: boolean | undefined;
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
contentEditable?: "inherit" | (boolean | "
|
|
13
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
|
14
14
|
contextMenu?: string | undefined;
|
|
15
15
|
dir?: string | undefined;
|
|
16
|
-
draggable?: (boolean | "
|
|
16
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
17
17
|
hidden?: boolean | undefined;
|
|
18
18
|
id?: string | undefined;
|
|
19
19
|
lang?: string | undefined;
|
|
20
20
|
nonce?: string | undefined;
|
|
21
21
|
placeholder?: string | undefined;
|
|
22
22
|
slot?: string | undefined;
|
|
23
|
-
spellCheck?: (boolean | "
|
|
23
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
24
24
|
style?: import("react").CSSProperties | undefined;
|
|
25
25
|
tabIndex?: number | undefined;
|
|
26
26
|
title?: string | undefined;
|
|
@@ -50,62 +50,62 @@ export declare const StyledCard: import("styled-components").IStyledComponent<"w
|
|
|
50
50
|
results?: number | undefined;
|
|
51
51
|
security?: string | undefined;
|
|
52
52
|
unselectable?: "on" | "off" | undefined;
|
|
53
|
-
inputMode?: "
|
|
53
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
54
54
|
is?: string | undefined;
|
|
55
|
+
children?: import("react").ReactNode | Record<string, unknown>;
|
|
55
56
|
"aria-activedescendant"?: string | undefined;
|
|
56
|
-
"aria-atomic"?: (boolean | "
|
|
57
|
-
"aria-autocomplete"?: "
|
|
57
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
58
|
+
"aria-autocomplete"?: "list" | "none" | "both" | "inline" | undefined;
|
|
58
59
|
"aria-braillelabel"?: string | undefined;
|
|
59
60
|
"aria-brailleroledescription"?: string | undefined;
|
|
60
|
-
"aria-busy"?: (boolean | "
|
|
61
|
-
"aria-checked"?: boolean | "
|
|
61
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
62
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
62
63
|
"aria-colcount"?: number | undefined;
|
|
63
64
|
"aria-colindex"?: number | undefined;
|
|
64
65
|
"aria-colindextext"?: string | undefined;
|
|
65
66
|
"aria-colspan"?: number | undefined;
|
|
66
67
|
"aria-controls"?: string | undefined;
|
|
67
|
-
"aria-current"?: boolean | "time" | "
|
|
68
|
+
"aria-current"?: boolean | "time" | "page" | "step" | "false" | "true" | "location" | "date" | undefined;
|
|
68
69
|
"aria-describedby"?: string | undefined;
|
|
69
70
|
"aria-description"?: string | undefined;
|
|
70
71
|
"aria-details"?: string | undefined;
|
|
71
|
-
"aria-disabled"?: (boolean | "
|
|
72
|
-
"aria-dropeffect"?: "
|
|
72
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
73
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
73
74
|
"aria-errormessage"?: string | undefined;
|
|
74
|
-
"aria-expanded"?: (boolean | "
|
|
75
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
75
76
|
"aria-flowto"?: string | undefined;
|
|
76
|
-
"aria-grabbed"?: (boolean | "
|
|
77
|
-
"aria-haspopup"?: boolean | "dialog" | "menu" | "
|
|
78
|
-
"aria-hidden"?: (boolean | "
|
|
79
|
-
"aria-invalid"?: boolean | "
|
|
77
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
78
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
|
|
79
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
80
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
80
81
|
"aria-keyshortcuts"?: string | undefined;
|
|
81
82
|
"aria-label"?: string | undefined;
|
|
82
83
|
"aria-labelledby"?: string | undefined;
|
|
83
84
|
"aria-level"?: number | undefined;
|
|
84
85
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
85
|
-
"aria-modal"?: (boolean | "
|
|
86
|
-
"aria-multiline"?: (boolean | "
|
|
87
|
-
"aria-multiselectable"?: (boolean | "
|
|
86
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
87
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
88
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
88
89
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
89
90
|
"aria-owns"?: string | undefined;
|
|
90
91
|
"aria-placeholder"?: string | undefined;
|
|
91
92
|
"aria-posinset"?: number | undefined;
|
|
92
|
-
"aria-pressed"?: boolean | "
|
|
93
|
-
"aria-readonly"?: (boolean | "
|
|
94
|
-
"aria-relevant"?: "text" | "
|
|
95
|
-
"aria-required"?: (boolean | "
|
|
93
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
94
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
95
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
96
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
96
97
|
"aria-roledescription"?: string | undefined;
|
|
97
98
|
"aria-rowcount"?: number | undefined;
|
|
98
99
|
"aria-rowindex"?: number | undefined;
|
|
99
100
|
"aria-rowindextext"?: string | undefined;
|
|
100
101
|
"aria-rowspan"?: number | undefined;
|
|
101
|
-
"aria-selected"?: (boolean | "
|
|
102
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
102
103
|
"aria-setsize"?: number | undefined;
|
|
103
104
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
104
105
|
"aria-valuemax"?: number | undefined;
|
|
105
106
|
"aria-valuemin"?: number | undefined;
|
|
106
107
|
"aria-valuenow"?: number | undefined;
|
|
107
108
|
"aria-valuetext"?: string | undefined;
|
|
108
|
-
children?: import("react").ReactNode;
|
|
109
109
|
dangerouslySetInnerHTML?: {
|
|
110
110
|
__html: string | TrustedHTML;
|
|
111
111
|
} | undefined;
|
|
@@ -282,17 +282,17 @@ export declare const StyledCardHeader: import("styled-components").IStyledCompon
|
|
|
282
282
|
accessKey?: string | undefined;
|
|
283
283
|
autoFocus?: boolean | undefined;
|
|
284
284
|
className?: string | undefined;
|
|
285
|
-
contentEditable?: "inherit" | (boolean | "
|
|
285
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
|
286
286
|
contextMenu?: string | undefined;
|
|
287
287
|
dir?: string | undefined;
|
|
288
|
-
draggable?: (boolean | "
|
|
288
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
289
289
|
hidden?: boolean | undefined;
|
|
290
290
|
id?: string | undefined;
|
|
291
291
|
lang?: string | undefined;
|
|
292
292
|
nonce?: string | undefined;
|
|
293
293
|
placeholder?: string | undefined;
|
|
294
294
|
slot?: string | undefined;
|
|
295
|
-
spellCheck?: (boolean | "
|
|
295
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
296
296
|
style?: import("react").CSSProperties | undefined;
|
|
297
297
|
tabIndex?: number | undefined;
|
|
298
298
|
title?: string | undefined;
|
|
@@ -322,62 +322,62 @@ export declare const StyledCardHeader: import("styled-components").IStyledCompon
|
|
|
322
322
|
results?: number | undefined;
|
|
323
323
|
security?: string | undefined;
|
|
324
324
|
unselectable?: "on" | "off" | undefined;
|
|
325
|
-
inputMode?: "
|
|
325
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
326
326
|
is?: string | undefined;
|
|
327
|
+
children?: import("react").ReactNode | Record<string, unknown>;
|
|
327
328
|
"aria-activedescendant"?: string | undefined;
|
|
328
|
-
"aria-atomic"?: (boolean | "
|
|
329
|
-
"aria-autocomplete"?: "
|
|
329
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
330
|
+
"aria-autocomplete"?: "list" | "none" | "both" | "inline" | undefined;
|
|
330
331
|
"aria-braillelabel"?: string | undefined;
|
|
331
332
|
"aria-brailleroledescription"?: string | undefined;
|
|
332
|
-
"aria-busy"?: (boolean | "
|
|
333
|
-
"aria-checked"?: boolean | "
|
|
333
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
334
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
334
335
|
"aria-colcount"?: number | undefined;
|
|
335
336
|
"aria-colindex"?: number | undefined;
|
|
336
337
|
"aria-colindextext"?: string | undefined;
|
|
337
338
|
"aria-colspan"?: number | undefined;
|
|
338
339
|
"aria-controls"?: string | undefined;
|
|
339
|
-
"aria-current"?: boolean | "time" | "
|
|
340
|
+
"aria-current"?: boolean | "time" | "page" | "step" | "false" | "true" | "location" | "date" | undefined;
|
|
340
341
|
"aria-describedby"?: string | undefined;
|
|
341
342
|
"aria-description"?: string | undefined;
|
|
342
343
|
"aria-details"?: string | undefined;
|
|
343
|
-
"aria-disabled"?: (boolean | "
|
|
344
|
-
"aria-dropeffect"?: "
|
|
344
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
345
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
345
346
|
"aria-errormessage"?: string | undefined;
|
|
346
|
-
"aria-expanded"?: (boolean | "
|
|
347
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
347
348
|
"aria-flowto"?: string | undefined;
|
|
348
|
-
"aria-grabbed"?: (boolean | "
|
|
349
|
-
"aria-haspopup"?: boolean | "dialog" | "menu" | "
|
|
350
|
-
"aria-hidden"?: (boolean | "
|
|
351
|
-
"aria-invalid"?: boolean | "
|
|
349
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
350
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
|
|
351
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
352
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
352
353
|
"aria-keyshortcuts"?: string | undefined;
|
|
353
354
|
"aria-label"?: string | undefined;
|
|
354
355
|
"aria-labelledby"?: string | undefined;
|
|
355
356
|
"aria-level"?: number | undefined;
|
|
356
357
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
357
|
-
"aria-modal"?: (boolean | "
|
|
358
|
-
"aria-multiline"?: (boolean | "
|
|
359
|
-
"aria-multiselectable"?: (boolean | "
|
|
358
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
359
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
360
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
360
361
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
361
362
|
"aria-owns"?: string | undefined;
|
|
362
363
|
"aria-placeholder"?: string | undefined;
|
|
363
364
|
"aria-posinset"?: number | undefined;
|
|
364
|
-
"aria-pressed"?: boolean | "
|
|
365
|
-
"aria-readonly"?: (boolean | "
|
|
366
|
-
"aria-relevant"?: "text" | "
|
|
367
|
-
"aria-required"?: (boolean | "
|
|
365
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
366
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
367
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
368
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
368
369
|
"aria-roledescription"?: string | undefined;
|
|
369
370
|
"aria-rowcount"?: number | undefined;
|
|
370
371
|
"aria-rowindex"?: number | undefined;
|
|
371
372
|
"aria-rowindextext"?: string | undefined;
|
|
372
373
|
"aria-rowspan"?: number | undefined;
|
|
373
|
-
"aria-selected"?: (boolean | "
|
|
374
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
374
375
|
"aria-setsize"?: number | undefined;
|
|
375
376
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
376
377
|
"aria-valuemax"?: number | undefined;
|
|
377
378
|
"aria-valuemin"?: number | undefined;
|
|
378
379
|
"aria-valuenow"?: number | undefined;
|
|
379
380
|
"aria-valuetext"?: string | undefined;
|
|
380
|
-
children?: import("react").ReactNode;
|
|
381
381
|
dangerouslySetInnerHTML?: {
|
|
382
382
|
__html: string | TrustedHTML;
|
|
383
383
|
} | undefined;
|
package/dist/index.d.ts
CHANGED