@digigov/react-icons 1.2.0-a7ffb5dc → 2.0.0-0edebf87
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/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/AccessibilityIcon/index.test/index.js +12 -12
- package/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
- package/Base/index.d.ts +95 -0
- package/Base/index.js +69 -0
- package/Base/package.json +6 -0
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
- package/BurgerIcon/index.test/index.js +8 -8
- package/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/CancelIcon/config/index.js +9 -0
- package/CancelIcon/config/package.json +6 -0
- package/CancelIcon/config.d.ts +8 -0
- package/CancelIcon/index.d.ts +4 -0
- package/CancelIcon/index.js +9 -0
- package/CancelIcon/index.test/index.js +45 -0
- package/CancelIcon/index.test/package.json +6 -0
- package/CancelIcon/index.test.d.ts +1 -0
- package/CancelIcon/package.json +6 -0
- package/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/ChatIcon/config/index.js +17 -0
- package/ChatIcon/config/package.json +6 -0
- package/ChatIcon/config.d.ts +11 -0
- package/ChatIcon/index.d.ts +4 -0
- package/ChatIcon/index.js +9 -0
- package/ChatIcon/index.test/index.js +51 -0
- package/ChatIcon/index.test/package.json +6 -0
- package/ChatIcon/index.test.d.ts +1 -0
- package/ChatIcon/package.json +6 -0
- package/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
- package/CheckIcon/index.test/index.js +10 -10
- package/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/DownloadIcon/config/index.js +14 -0
- package/DownloadIcon/config/package.json +6 -0
- package/DownloadIcon/config.d.ts +8 -0
- package/DownloadIcon/index.d.ts +4 -0
- package/DownloadIcon/index.js +9 -0
- package/DownloadIcon/index.test/index.js +45 -0
- package/DownloadIcon/index.test/package.json +6 -0
- package/DownloadIcon/index.test.d.ts +1 -0
- package/DownloadIcon/package.json +6 -0
- package/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/ExclamationIcon/config/index.js +14 -0
- package/ExclamationIcon/config/package.json +6 -0
- package/ExclamationIcon/config.d.ts +8 -0
- package/ExclamationIcon/index.d.ts +4 -0
- package/ExclamationIcon/index.js +9 -0
- package/ExclamationIcon/index.test/index.js +45 -0
- package/ExclamationIcon/index.test/package.json +6 -0
- package/ExclamationIcon/index.test.d.ts +1 -0
- package/ExclamationIcon/package.json +6 -0
- package/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
- package/GlobeIcon/config/index.js +2 -2
- package/GlobeIcon/index.test/index.js +6 -6
- package/Icon/__snapshots__/index.test.tsx.snap +11 -12
- package/Icon/index.d.ts +1 -1
- package/Icon/index.js +1 -1
- package/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/LockIcon/config/index.js +9 -0
- package/LockIcon/config/package.json +6 -0
- package/LockIcon/config.d.ts +8 -0
- package/LockIcon/index.d.ts +4 -0
- package/LockIcon/index.js +9 -0
- package/LockIcon/index.test/index.js +45 -0
- package/LockIcon/index.test/package.json +6 -0
- package/LockIcon/index.test.d.ts +1 -0
- package/LockIcon/package.json +6 -0
- package/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/LoginIcon/config/index.js +12 -0
- package/LoginIcon/config/package.json +6 -0
- package/LoginIcon/config.d.ts +8 -0
- package/LoginIcon/index.d.ts +4 -0
- package/LoginIcon/index.js +9 -0
- package/LoginIcon/index.test/index.js +45 -0
- package/LoginIcon/index.test/package.json +6 -0
- package/LoginIcon/index.test.d.ts +1 -0
- package/LoginIcon/package.json +6 -0
- package/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/MinusIcon/config/index.js +12 -0
- package/MinusIcon/config/package.json +6 -0
- package/MinusIcon/config.d.ts +8 -0
- package/MinusIcon/index.d.ts +4 -0
- package/MinusIcon/index.js +9 -0
- package/MinusIcon/index.test/index.js +45 -0
- package/MinusIcon/index.test/package.json +6 -0
- package/MinusIcon/index.test.d.ts +1 -0
- package/MinusIcon/package.json +6 -0
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/MoreVertIcon/index.test/index.js +12 -12
- package/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
- package/PdfFileIcon/config/index.js +15 -0
- package/PdfFileIcon/config/package.json +6 -0
- package/PdfFileIcon/config.d.ts +8 -0
- package/PdfFileIcon/index.d.ts +4 -0
- package/PdfFileIcon/index.js +9 -0
- package/PdfFileIcon/index.test/index.js +45 -0
- package/PdfFileIcon/index.test/package.json +6 -0
- package/PdfFileIcon/index.test.d.ts +1 -0
- package/PdfFileIcon/package.json +6 -0
- package/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/PlusIcon/config/index.js +9 -0
- package/PlusIcon/config/package.json +6 -0
- package/PlusIcon/config.d.ts +8 -0
- package/PlusIcon/index.d.ts +4 -0
- package/PlusIcon/index.js +9 -0
- package/PlusIcon/index.test/index.js +45 -0
- package/PlusIcon/index.test/package.json +6 -0
- package/PlusIcon/index.test.d.ts +1 -0
- package/PlusIcon/package.json +6 -0
- package/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/PrintIcon/config/index.js +15 -0
- package/PrintIcon/config/package.json +6 -0
- package/PrintIcon/config.d.ts +8 -0
- package/PrintIcon/index.d.ts +4 -0
- package/PrintIcon/index.js +9 -0
- package/PrintIcon/index.test/index.js +45 -0
- package/PrintIcon/index.test/package.json +6 -0
- package/PrintIcon/index.test.d.ts +1 -0
- package/PrintIcon/package.json +6 -0
- package/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/ReplyIcon/config/index.js +9 -0
- package/ReplyIcon/config/package.json +6 -0
- package/ReplyIcon/config.d.ts +8 -0
- package/ReplyIcon/index.d.ts +4 -0
- package/ReplyIcon/index.js +9 -0
- package/ReplyIcon/index.test/index.js +45 -0
- package/ReplyIcon/index.test/package.json +6 -0
- package/ReplyIcon/index.test.d.ts +1 -0
- package/ReplyIcon/package.json +6 -0
- package/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/RestoreIcon/config/index.js +17 -0
- package/RestoreIcon/config/package.json +6 -0
- package/RestoreIcon/config.d.ts +8 -0
- package/RestoreIcon/index.d.ts +4 -0
- package/RestoreIcon/index.js +9 -0
- package/RestoreIcon/index.test/index.js +45 -0
- package/RestoreIcon/index.test/package.json +6 -0
- package/RestoreIcon/index.test.d.ts +1 -0
- package/RestoreIcon/package.json +6 -0
- package/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
- package/SvgIcon/index.d.ts +37 -0
- package/SvgIcon/index.js +26 -0
- package/SvgIcon/index.test/index.js +105 -0
- package/SvgIcon/index.test/package.json +6 -0
- package/SvgIcon/index.test.d.ts +1 -0
- package/SvgIcon/package.json +6 -0
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
- package/UncheckIcon/index.test/index.js +12 -12
- package/cjs/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/cjs/AccessibilityIcon/index.test/index.js +12 -12
- package/cjs/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
- package/cjs/Base/index.js +75 -0
- package/cjs/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
- package/cjs/BurgerIcon/index.test/index.js +8 -8
- package/cjs/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/cjs/CancelIcon/config/index.js +17 -0
- package/cjs/CancelIcon/index.js +16 -0
- package/cjs/CancelIcon/index.test/index.js +48 -0
- package/cjs/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/cjs/ChatIcon/config/index.js +24 -0
- package/cjs/ChatIcon/index.js +16 -0
- package/cjs/ChatIcon/index.test/index.js +54 -0
- package/cjs/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
- package/cjs/CheckIcon/index.test/index.js +10 -10
- package/cjs/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/cjs/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/cjs/DownloadIcon/config/index.js +22 -0
- package/cjs/DownloadIcon/index.js +16 -0
- package/cjs/DownloadIcon/index.test/index.js +48 -0
- package/cjs/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/cjs/ExclamationIcon/config/index.js +22 -0
- package/cjs/ExclamationIcon/index.js +16 -0
- package/cjs/ExclamationIcon/index.test/index.js +48 -0
- package/cjs/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
- package/cjs/GlobeIcon/config/index.js +2 -2
- package/cjs/GlobeIcon/index.test/index.js +6 -6
- package/cjs/Icon/__snapshots__/index.test.tsx.snap +11 -12
- package/cjs/Icon/index.js +1 -1
- package/cjs/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/cjs/LockIcon/config/index.js +17 -0
- package/cjs/LockIcon/index.js +16 -0
- package/cjs/LockIcon/index.test/index.js +48 -0
- package/cjs/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/cjs/LoginIcon/config/index.js +20 -0
- package/cjs/LoginIcon/index.js +16 -0
- package/cjs/LoginIcon/index.test/index.js +48 -0
- package/cjs/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/cjs/MinusIcon/config/index.js +20 -0
- package/cjs/MinusIcon/index.js +16 -0
- package/cjs/MinusIcon/index.test/index.js +48 -0
- package/cjs/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/cjs/MoreVertIcon/index.test/index.js +12 -12
- package/cjs/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
- package/cjs/PdfFileIcon/config/index.js +23 -0
- package/cjs/PdfFileIcon/index.js +16 -0
- package/cjs/PdfFileIcon/index.test/index.js +48 -0
- package/cjs/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/cjs/PlusIcon/config/index.js +17 -0
- package/cjs/PlusIcon/index.js +16 -0
- package/cjs/PlusIcon/index.test/index.js +48 -0
- package/cjs/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/cjs/PrintIcon/config/index.js +23 -0
- package/cjs/PrintIcon/index.js +16 -0
- package/cjs/PrintIcon/index.test/index.js +48 -0
- package/cjs/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/cjs/ReplyIcon/config/index.js +17 -0
- package/cjs/ReplyIcon/index.js +16 -0
- package/cjs/ReplyIcon/index.test/index.js +48 -0
- package/cjs/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/cjs/RestoreIcon/config/index.js +25 -0
- package/cjs/RestoreIcon/index.js +16 -0
- package/cjs/RestoreIcon/index.test/index.js +48 -0
- package/cjs/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
- package/cjs/SvgIcon/index.js +33 -0
- package/cjs/SvgIcon/index.test/index.js +108 -0
- package/cjs/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
- package/cjs/UncheckIcon/index.test/index.js +12 -12
- package/cjs/icons/index.js +132 -0
- package/cjs/index.js +132 -0
- package/cjs/lazy/index.js +126 -0
- package/cjs/registry/index.js +28 -0
- package/icons/index.js +12 -0
- package/icons.d.ts +36 -0
- package/index.d.ts +12 -0
- package/index.js +14 -2
- package/lazy/index.js +98 -0
- package/lazy.d.ts +14 -0
- package/package.json +4 -3
- package/registry/index.js +28 -0
- package/registry.d.ts +14 -0
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/src/AccessibilityIcon/index.test.tsx +12 -12
- package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
- package/src/Base/index.tsx +257 -0
- package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
- package/src/BurgerIcon/index.test.tsx +8 -8
- package/src/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/CancelIcon/config.tsx +15 -0
- package/src/CancelIcon/index.test.tsx +26 -0
- package/src/CancelIcon/index.tsx +8 -0
- package/src/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/src/ChatIcon/config.tsx +28 -0
- package/src/ChatIcon/index.test.tsx +29 -0
- package/src/ChatIcon/index.tsx +8 -0
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
- package/src/CheckIcon/index.test.tsx +10 -10
- package/src/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/src/DownloadIcon/config.tsx +16 -0
- package/src/DownloadIcon/index.test.tsx +26 -0
- package/src/DownloadIcon/index.tsx +8 -0
- package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/src/ExclamationIcon/config.tsx +16 -0
- package/src/ExclamationIcon/index.test.tsx +26 -0
- package/src/ExclamationIcon/index.tsx +8 -0
- package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
- package/src/GlobeIcon/config.tsx +1 -12
- package/src/GlobeIcon/index.test.tsx +6 -6
- package/src/Icon/__snapshots__/index.test.tsx.snap +11 -12
- package/src/Icon/index.tsx +1 -1
- package/src/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/LockIcon/config.tsx +15 -0
- package/src/LockIcon/index.test.tsx +26 -0
- package/src/LockIcon/index.tsx +8 -0
- package/src/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/src/LoginIcon/config.tsx +16 -0
- package/src/LoginIcon/index.test.tsx +26 -0
- package/src/LoginIcon/index.tsx +8 -0
- package/src/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/src/MinusIcon/config.tsx +15 -0
- package/src/MinusIcon/index.test.tsx +26 -0
- package/src/MinusIcon/index.tsx +8 -0
- package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/src/MoreVertIcon/index.test.tsx +12 -12
- package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
- package/src/PdfFileIcon/config.tsx +20 -0
- package/src/PdfFileIcon/index.test.tsx +26 -0
- package/src/PdfFileIcon/index.tsx +8 -0
- package/src/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/PlusIcon/config.tsx +15 -0
- package/src/PlusIcon/index.test.tsx +26 -0
- package/src/PlusIcon/index.tsx +8 -0
- package/src/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/src/PrintIcon/config.tsx +16 -0
- package/src/PrintIcon/index.test.tsx +26 -0
- package/src/PrintIcon/index.tsx +8 -0
- package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/ReplyIcon/config.tsx +15 -0
- package/src/ReplyIcon/index.test.tsx +26 -0
- package/src/ReplyIcon/index.tsx +8 -0
- package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/src/RestoreIcon/config.tsx +17 -0
- package/src/RestoreIcon/index.test.tsx +26 -0
- package/src/RestoreIcon/index.tsx +8 -0
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
- package/src/SvgIcon/index.test.tsx +68 -0
- package/src/SvgIcon/index.tsx +72 -0
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
- package/src/UncheckIcon/index.test.tsx +12 -12
- package/src/icons.ts +37 -0
- package/src/index.ts +12 -0
- package/src/lazy.js +14 -0
- package/src/registry.js +28 -0
|
@@ -41,28 +41,28 @@ exports[`renders the AccessibilityIcon with no props 1`] = `
|
|
|
41
41
|
</AccessibilityIcon>
|
|
42
42
|
`;
|
|
43
43
|
|
|
44
|
-
exports[`renders the AccessibilityIcon with prop
|
|
44
|
+
exports[`renders the AccessibilityIcon with prop color=base-content 1`] = `
|
|
45
45
|
<AccessibilityIcon
|
|
46
|
-
|
|
46
|
+
color="base-content"
|
|
47
47
|
>
|
|
48
48
|
<ForwardRef(Icon)
|
|
49
|
+
color="base-content"
|
|
49
50
|
icon="accessibility"
|
|
50
|
-
size="lg"
|
|
51
51
|
>
|
|
52
52
|
<ForwardRef(SvgIcon)
|
|
53
53
|
className="ds-svg-icon--accessibility"
|
|
54
|
-
|
|
54
|
+
color="base-content"
|
|
55
55
|
>
|
|
56
56
|
<ForwardRef(Base)
|
|
57
57
|
aria-hidden="true"
|
|
58
58
|
as="svg"
|
|
59
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
59
|
+
className="ds-svg-icon--accessibility ds-svg-icon--base-content ds-svg-icon"
|
|
60
60
|
focusable="false"
|
|
61
61
|
viewBox="0 0 24 24"
|
|
62
62
|
>
|
|
63
63
|
<svg
|
|
64
64
|
aria-hidden="true"
|
|
65
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
65
|
+
className="ds-svg-icon--accessibility ds-svg-icon--base-content ds-svg-icon"
|
|
66
66
|
focusable="false"
|
|
67
67
|
viewBox="0 0 24 24"
|
|
68
68
|
>
|
|
@@ -86,28 +86,28 @@ exports[`renders the AccessibilityIcon with prop size=l 1`] = `
|
|
|
86
86
|
</AccessibilityIcon>
|
|
87
87
|
`;
|
|
88
88
|
|
|
89
|
-
exports[`renders the AccessibilityIcon with prop
|
|
89
|
+
exports[`renders the AccessibilityIcon with prop color=error 1`] = `
|
|
90
90
|
<AccessibilityIcon
|
|
91
|
-
|
|
91
|
+
color="error"
|
|
92
92
|
>
|
|
93
93
|
<ForwardRef(Icon)
|
|
94
|
+
color="error"
|
|
94
95
|
icon="accessibility"
|
|
95
|
-
size="sm"
|
|
96
96
|
>
|
|
97
97
|
<ForwardRef(SvgIcon)
|
|
98
98
|
className="ds-svg-icon--accessibility"
|
|
99
|
-
|
|
99
|
+
color="error"
|
|
100
100
|
>
|
|
101
101
|
<ForwardRef(Base)
|
|
102
102
|
aria-hidden="true"
|
|
103
103
|
as="svg"
|
|
104
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
104
|
+
className="ds-svg-icon--accessibility ds-svg-icon--error ds-svg-icon"
|
|
105
105
|
focusable="false"
|
|
106
106
|
viewBox="0 0 24 24"
|
|
107
107
|
>
|
|
108
108
|
<svg
|
|
109
109
|
aria-hidden="true"
|
|
110
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
110
|
+
className="ds-svg-icon--accessibility ds-svg-icon--error ds-svg-icon"
|
|
111
111
|
focusable="false"
|
|
112
112
|
viewBox="0 0 24 24"
|
|
113
113
|
>
|
|
@@ -131,28 +131,31 @@ exports[`renders the AccessibilityIcon with prop size=s 1`] = `
|
|
|
131
131
|
</AccessibilityIcon>
|
|
132
132
|
`;
|
|
133
133
|
|
|
134
|
-
exports[`renders the AccessibilityIcon with prop
|
|
134
|
+
exports[`renders the AccessibilityIcon with prop color=error and size= xl 1`] = `
|
|
135
135
|
<AccessibilityIcon
|
|
136
|
-
|
|
136
|
+
color="warning"
|
|
137
|
+
size="xl"
|
|
137
138
|
>
|
|
138
139
|
<ForwardRef(Icon)
|
|
140
|
+
color="warning"
|
|
139
141
|
icon="accessibility"
|
|
140
|
-
|
|
142
|
+
size="xl"
|
|
141
143
|
>
|
|
142
144
|
<ForwardRef(SvgIcon)
|
|
143
145
|
className="ds-svg-icon--accessibility"
|
|
144
|
-
|
|
146
|
+
color="warning"
|
|
147
|
+
size="xl"
|
|
145
148
|
>
|
|
146
149
|
<ForwardRef(Base)
|
|
147
150
|
aria-hidden="true"
|
|
148
151
|
as="svg"
|
|
149
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
152
|
+
className="ds-svg-icon--accessibility ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
150
153
|
focusable="false"
|
|
151
154
|
viewBox="0 0 24 24"
|
|
152
155
|
>
|
|
153
156
|
<svg
|
|
154
157
|
aria-hidden="true"
|
|
155
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
158
|
+
className="ds-svg-icon--accessibility ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
156
159
|
focusable="false"
|
|
157
160
|
viewBox="0 0 24 24"
|
|
158
161
|
>
|
|
@@ -176,28 +179,28 @@ exports[`renders the AccessibilityIcon with prop variant=dark 1`] = `
|
|
|
176
179
|
</AccessibilityIcon>
|
|
177
180
|
`;
|
|
178
181
|
|
|
179
|
-
exports[`renders the AccessibilityIcon with prop
|
|
182
|
+
exports[`renders the AccessibilityIcon with prop color=primary 1`] = `
|
|
180
183
|
<AccessibilityIcon
|
|
181
|
-
|
|
184
|
+
color="primary"
|
|
182
185
|
>
|
|
183
186
|
<ForwardRef(Icon)
|
|
187
|
+
color="primary"
|
|
184
188
|
icon="accessibility"
|
|
185
|
-
variant="error"
|
|
186
189
|
>
|
|
187
190
|
<ForwardRef(SvgIcon)
|
|
188
191
|
className="ds-svg-icon--accessibility"
|
|
189
|
-
|
|
192
|
+
color="primary"
|
|
190
193
|
>
|
|
191
194
|
<ForwardRef(Base)
|
|
192
195
|
aria-hidden="true"
|
|
193
196
|
as="svg"
|
|
194
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
197
|
+
className="ds-svg-icon--accessibility ds-svg-icon--primary ds-svg-icon"
|
|
195
198
|
focusable="false"
|
|
196
199
|
viewBox="0 0 24 24"
|
|
197
200
|
>
|
|
198
201
|
<svg
|
|
199
202
|
aria-hidden="true"
|
|
200
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
203
|
+
className="ds-svg-icon--accessibility ds-svg-icon--primary ds-svg-icon"
|
|
201
204
|
focusable="false"
|
|
202
205
|
viewBox="0 0 24 24"
|
|
203
206
|
>
|
|
@@ -221,31 +224,28 @@ exports[`renders the AccessibilityIcon with prop variant=error 1`] = `
|
|
|
221
224
|
</AccessibilityIcon>
|
|
222
225
|
`;
|
|
223
226
|
|
|
224
|
-
exports[`renders the AccessibilityIcon with prop
|
|
227
|
+
exports[`renders the AccessibilityIcon with prop color=success 1`] = `
|
|
225
228
|
<AccessibilityIcon
|
|
226
|
-
|
|
227
|
-
variant="warning"
|
|
229
|
+
color="success"
|
|
228
230
|
>
|
|
229
231
|
<ForwardRef(Icon)
|
|
232
|
+
color="success"
|
|
230
233
|
icon="accessibility"
|
|
231
|
-
size="xl"
|
|
232
|
-
variant="warning"
|
|
233
234
|
>
|
|
234
235
|
<ForwardRef(SvgIcon)
|
|
235
236
|
className="ds-svg-icon--accessibility"
|
|
236
|
-
|
|
237
|
-
variant="warning"
|
|
237
|
+
color="success"
|
|
238
238
|
>
|
|
239
239
|
<ForwardRef(Base)
|
|
240
240
|
aria-hidden="true"
|
|
241
241
|
as="svg"
|
|
242
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
242
|
+
className="ds-svg-icon--accessibility ds-svg-icon--success ds-svg-icon"
|
|
243
243
|
focusable="false"
|
|
244
244
|
viewBox="0 0 24 24"
|
|
245
245
|
>
|
|
246
246
|
<svg
|
|
247
247
|
aria-hidden="true"
|
|
248
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
248
|
+
className="ds-svg-icon--accessibility ds-svg-icon--success ds-svg-icon"
|
|
249
249
|
focusable="false"
|
|
250
250
|
viewBox="0 0 24 24"
|
|
251
251
|
>
|
|
@@ -269,28 +269,31 @@ exports[`renders the AccessibilityIcon with prop variant=error and size= xl 1`]
|
|
|
269
269
|
</AccessibilityIcon>
|
|
270
270
|
`;
|
|
271
271
|
|
|
272
|
-
exports[`renders the AccessibilityIcon with prop
|
|
272
|
+
exports[`renders the AccessibilityIcon with prop color=warning and size=s 1`] = `
|
|
273
273
|
<AccessibilityIcon
|
|
274
|
-
|
|
274
|
+
color="warning"
|
|
275
|
+
size="sm"
|
|
275
276
|
>
|
|
276
277
|
<ForwardRef(Icon)
|
|
278
|
+
color="warning"
|
|
277
279
|
icon="accessibility"
|
|
278
|
-
|
|
280
|
+
size="sm"
|
|
279
281
|
>
|
|
280
282
|
<ForwardRef(SvgIcon)
|
|
281
283
|
className="ds-svg-icon--accessibility"
|
|
282
|
-
|
|
284
|
+
color="warning"
|
|
285
|
+
size="sm"
|
|
283
286
|
>
|
|
284
287
|
<ForwardRef(Base)
|
|
285
288
|
aria-hidden="true"
|
|
286
289
|
as="svg"
|
|
287
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
290
|
+
className="ds-svg-icon--accessibility ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
288
291
|
focusable="false"
|
|
289
292
|
viewBox="0 0 24 24"
|
|
290
293
|
>
|
|
291
294
|
<svg
|
|
292
295
|
aria-hidden="true"
|
|
293
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
296
|
+
className="ds-svg-icon--accessibility ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
294
297
|
focusable="false"
|
|
295
298
|
viewBox="0 0 24 24"
|
|
296
299
|
>
|
|
@@ -314,28 +317,28 @@ exports[`renders the AccessibilityIcon with prop variant=primary 1`] = `
|
|
|
314
317
|
</AccessibilityIcon>
|
|
315
318
|
`;
|
|
316
319
|
|
|
317
|
-
exports[`renders the AccessibilityIcon with prop
|
|
320
|
+
exports[`renders the AccessibilityIcon with prop size=l 1`] = `
|
|
318
321
|
<AccessibilityIcon
|
|
319
|
-
|
|
322
|
+
size="lg"
|
|
320
323
|
>
|
|
321
324
|
<ForwardRef(Icon)
|
|
322
325
|
icon="accessibility"
|
|
323
|
-
|
|
326
|
+
size="lg"
|
|
324
327
|
>
|
|
325
328
|
<ForwardRef(SvgIcon)
|
|
326
329
|
className="ds-svg-icon--accessibility"
|
|
327
|
-
|
|
330
|
+
size="lg"
|
|
328
331
|
>
|
|
329
332
|
<ForwardRef(Base)
|
|
330
333
|
aria-hidden="true"
|
|
331
334
|
as="svg"
|
|
332
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
335
|
+
className="ds-svg-icon--accessibility ds-svg-icon--lg ds-svg-icon"
|
|
333
336
|
focusable="false"
|
|
334
337
|
viewBox="0 0 24 24"
|
|
335
338
|
>
|
|
336
339
|
<svg
|
|
337
340
|
aria-hidden="true"
|
|
338
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
341
|
+
className="ds-svg-icon--accessibility ds-svg-icon--lg ds-svg-icon"
|
|
339
342
|
focusable="false"
|
|
340
343
|
viewBox="0 0 24 24"
|
|
341
344
|
>
|
|
@@ -359,31 +362,28 @@ exports[`renders the AccessibilityIcon with prop variant=success 1`] = `
|
|
|
359
362
|
</AccessibilityIcon>
|
|
360
363
|
`;
|
|
361
364
|
|
|
362
|
-
exports[`renders the AccessibilityIcon with prop
|
|
365
|
+
exports[`renders the AccessibilityIcon with prop size=s 1`] = `
|
|
363
366
|
<AccessibilityIcon
|
|
364
367
|
size="sm"
|
|
365
|
-
variant="warning"
|
|
366
368
|
>
|
|
367
369
|
<ForwardRef(Icon)
|
|
368
370
|
icon="accessibility"
|
|
369
371
|
size="sm"
|
|
370
|
-
variant="warning"
|
|
371
372
|
>
|
|
372
373
|
<ForwardRef(SvgIcon)
|
|
373
374
|
className="ds-svg-icon--accessibility"
|
|
374
375
|
size="sm"
|
|
375
|
-
variant="warning"
|
|
376
376
|
>
|
|
377
377
|
<ForwardRef(Base)
|
|
378
378
|
aria-hidden="true"
|
|
379
379
|
as="svg"
|
|
380
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
380
|
+
className="ds-svg-icon--accessibility ds-svg-icon--sm ds-svg-icon"
|
|
381
381
|
focusable="false"
|
|
382
382
|
viewBox="0 0 24 24"
|
|
383
383
|
>
|
|
384
384
|
<svg
|
|
385
385
|
aria-hidden="true"
|
|
386
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
386
|
+
className="ds-svg-icon--accessibility ds-svg-icon--sm ds-svg-icon"
|
|
387
387
|
focusable="false"
|
|
388
388
|
viewBox="0 0 24 24"
|
|
389
389
|
>
|
|
@@ -18,40 +18,40 @@ it('renders the AccessibilityIcon with prop size=l', function () {
|
|
|
18
18
|
expect(mount(_ref3)).toMatchSnapshot();
|
|
19
19
|
});
|
|
20
20
|
var _ref4 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
21
|
-
|
|
21
|
+
color: "base-content"
|
|
22
22
|
});
|
|
23
|
-
it('renders the AccessibilityIcon with prop
|
|
23
|
+
it('renders the AccessibilityIcon with prop color=base-content', function () {
|
|
24
24
|
expect(mount(_ref4)).toMatchSnapshot();
|
|
25
25
|
});
|
|
26
26
|
var _ref5 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
27
|
-
|
|
27
|
+
color: "primary"
|
|
28
28
|
});
|
|
29
|
-
it('renders the AccessibilityIcon with prop
|
|
29
|
+
it('renders the AccessibilityIcon with prop color=primary', function () {
|
|
30
30
|
expect(mount(_ref5)).toMatchSnapshot();
|
|
31
31
|
});
|
|
32
32
|
var _ref6 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
33
|
-
|
|
33
|
+
color: "success"
|
|
34
34
|
});
|
|
35
|
-
it('renders the AccessibilityIcon with prop
|
|
35
|
+
it('renders the AccessibilityIcon with prop color=success', function () {
|
|
36
36
|
expect(mount(_ref6)).toMatchSnapshot();
|
|
37
37
|
});
|
|
38
38
|
var _ref7 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
39
|
-
|
|
39
|
+
color: "error"
|
|
40
40
|
});
|
|
41
|
-
it('renders the AccessibilityIcon with prop
|
|
41
|
+
it('renders the AccessibilityIcon with prop color=error', function () {
|
|
42
42
|
expect(mount(_ref7)).toMatchSnapshot();
|
|
43
43
|
});
|
|
44
44
|
var _ref8 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
45
|
-
|
|
45
|
+
color: "warning",
|
|
46
46
|
size: "sm"
|
|
47
47
|
});
|
|
48
|
-
it('renders the AccessibilityIcon with prop
|
|
48
|
+
it('renders the AccessibilityIcon with prop color=warning and size=s', function () {
|
|
49
49
|
expect(mount(_ref8)).toMatchSnapshot();
|
|
50
50
|
});
|
|
51
51
|
var _ref9 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
52
|
-
|
|
52
|
+
color: "warning",
|
|
53
53
|
size: "xl"
|
|
54
54
|
});
|
|
55
|
-
it('renders the AccessibilityIcon with prop
|
|
55
|
+
it('renders the AccessibilityIcon with prop color=error and size= xl', function () {
|
|
56
56
|
expect(mount(_ref9)).toMatchSnapshot();
|
|
57
57
|
});
|
|
@@ -27,8 +27,8 @@ exports[`renders the ArrowIcon with direction down prop 1`] = `
|
|
|
27
27
|
<arrow
|
|
28
28
|
direction="down"
|
|
29
29
|
>
|
|
30
|
-
<
|
|
31
|
-
|
|
30
|
+
<polygon
|
|
31
|
+
points="19.7 9.6 13.7 15.52 13.7 2.07 10.37 2 10.32 15.52 4.4 9.6 2 12 12 22 22 12 19.7 9.6"
|
|
32
32
|
/>
|
|
33
33
|
</arrow>
|
|
34
34
|
</svg>
|
|
@@ -65,8 +65,8 @@ exports[`renders the ArrowIcon with direction left prop 1`] = `
|
|
|
65
65
|
<arrow
|
|
66
66
|
direction="left"
|
|
67
67
|
>
|
|
68
|
-
<
|
|
69
|
-
|
|
68
|
+
<polygon
|
|
69
|
+
points="14.4 19.7 8.48 13.7 21.93 13.7 22 10.37 8.48 10.32 14.4 4.4 12 2 2 12 12 22 14.4 19.7"
|
|
70
70
|
/>
|
|
71
71
|
</arrow>
|
|
72
72
|
</svg>
|
|
@@ -103,8 +103,8 @@ exports[`renders the ArrowIcon with direction up prop 1`] = `
|
|
|
103
103
|
<arrow
|
|
104
104
|
direction="up"
|
|
105
105
|
>
|
|
106
|
-
<
|
|
107
|
-
|
|
106
|
+
<polygon
|
|
107
|
+
points="22 12 12 2 2 12 4.3 14.4 10.3 8.48 10.3 21.93 13.63 22 13.68 8.48 19.6 14.4 22 12"
|
|
108
108
|
/>
|
|
109
109
|
</arrow>
|
|
110
110
|
</svg>
|
|
@@ -136,8 +136,8 @@ exports[`renders the ArrowIcon with no props, direction prop is right by default
|
|
|
136
136
|
viewBox="0 0 24 24"
|
|
137
137
|
>
|
|
138
138
|
<arrow>
|
|
139
|
-
<
|
|
140
|
-
|
|
139
|
+
<polygon
|
|
140
|
+
points="22 12 12 2 2 12 4.3 14.4 10.3 8.48 10.3 21.93 13.63 22 13.68 8.48 19.6 14.4 22 12"
|
|
141
141
|
/>
|
|
142
142
|
</arrow>
|
|
143
143
|
</svg>
|
package/Base/index.d.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type AsProp<C extends React.ElementType> = {
|
|
3
|
+
as?: C;
|
|
4
|
+
};
|
|
5
|
+
type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
6
|
+
type PolymorphicComponentProp<C extends React.ElementType, Props = Record<string, unknown>> = React.PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
7
|
+
type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = Record<string, unknown>> = PolymorphicComponentProp<C, Props> & {
|
|
8
|
+
ref?: any;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
12
|
+
*/
|
|
13
|
+
export type BaseProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, {
|
|
14
|
+
/** margin is optional. It has not a default value. */
|
|
15
|
+
margin?: spacingValues;
|
|
16
|
+
/** marginTop is optional. It has not a default value. */
|
|
17
|
+
marginTop?: spacingValues;
|
|
18
|
+
/** marginBottom is optional. It has not a default value. */
|
|
19
|
+
marginBottom?: spacingValues;
|
|
20
|
+
/** marginLeft is optional. It has not a default value. */
|
|
21
|
+
marginLeft?: spacingValues;
|
|
22
|
+
/** marginRight is optional. It has not a default value. */
|
|
23
|
+
marginRight?: spacingValues;
|
|
24
|
+
/** Alternative for margin. Margin is optional. It has not a default value. */
|
|
25
|
+
m?: spacingValues;
|
|
26
|
+
/** Alternative for marginTop. MarginTop is optional. It has not a default value. */
|
|
27
|
+
mt?: spacingValues;
|
|
28
|
+
/** Alternative for marginBottom. MarginBottom is optional. It has not a default value. */
|
|
29
|
+
mb?: spacingValues;
|
|
30
|
+
/** Alternative for marginLeft. MarginLeft is optional. It has not a default value. */
|
|
31
|
+
ml?: spacingValues;
|
|
32
|
+
/** Alternative for marginRight. MarginRight is optional. It has not a default value. */
|
|
33
|
+
mr?: spacingValues;
|
|
34
|
+
/** Alternative for marginX. MarginX is optional. It has not a default value. */
|
|
35
|
+
mx?: spacingValues;
|
|
36
|
+
/** Alternative for marginY. MarginY is optional. It has not a default value. */
|
|
37
|
+
my?: spacingValues;
|
|
38
|
+
/** padding is optional. It has not a default value. */
|
|
39
|
+
padding?: spacingValues;
|
|
40
|
+
/** paddingTop is optional. It has not a default value. */
|
|
41
|
+
paddingTop?: spacingValues;
|
|
42
|
+
/** paddingBottom is optional. It has not a default value. */
|
|
43
|
+
paddingBottom?: spacingValues;
|
|
44
|
+
/** paddingLeft is optional. It has not a default value. */
|
|
45
|
+
paddingLeft?: spacingValues;
|
|
46
|
+
/** paddingRight is optional. It has not a default value. */
|
|
47
|
+
paddingRight?: spacingValues;
|
|
48
|
+
/** Alternative for padding. Padding is optional. It has not a default value. */
|
|
49
|
+
p?: spacingValues;
|
|
50
|
+
/** Alternative for paddingTop. PaddingTop is optional. It has not a default value. */
|
|
51
|
+
pt?: spacingValues;
|
|
52
|
+
/** Alternative for paddingBottom. PaddingBottom is optional. It has not a default value. */
|
|
53
|
+
pb?: spacingValues;
|
|
54
|
+
/** Alternative for paddingLeft. PaddingLeft is optional. It has not a default value. */
|
|
55
|
+
pl?: spacingValues;
|
|
56
|
+
/** Alternative for paddingRight. PaddingRight is optional. It has not a default value. */
|
|
57
|
+
pr?: spacingValues;
|
|
58
|
+
/** Alternative for paddingX. PaddingX is optional. It has not a default value. */
|
|
59
|
+
px?: spacingValues;
|
|
60
|
+
/** Alternative for paddingY. PaddingY is optional. It has not a default value. */
|
|
61
|
+
py?: spacingValues;
|
|
62
|
+
/** printHidden is optional. Default value is false. When true, the component is hidden at print. */
|
|
63
|
+
printHidden?: boolean;
|
|
64
|
+
/** printVisible is optional. When block, the component is displayed as block. When inline, the component is displayed as inline.*/
|
|
65
|
+
printVisible?: 'block' | 'inline';
|
|
66
|
+
/** Components will be hidden at all screen sizes. */
|
|
67
|
+
hidden?: boolean;
|
|
68
|
+
/** Components will be hidden from 'xs' screen size and up. */
|
|
69
|
+
xsUpHidden?: boolean;
|
|
70
|
+
/** Components will be hidden from 'sm' screen size and up. */
|
|
71
|
+
smUpHidden?: boolean;
|
|
72
|
+
/** Components will be hidden from 'md' screen size and up. */
|
|
73
|
+
mdUpHidden?: boolean;
|
|
74
|
+
/** Components will be hidden from 'lg' screen size and up. */
|
|
75
|
+
lgUpHidden?: boolean;
|
|
76
|
+
/** Components will be hidden from 'xl' screen size and up. */
|
|
77
|
+
xlUpHidden?: boolean;
|
|
78
|
+
/** Components will be hidden between xs and sm screen size. */
|
|
79
|
+
xsHidden?: boolean;
|
|
80
|
+
/** Components will be hidden between sm and md screen size. */
|
|
81
|
+
smHidden?: boolean;
|
|
82
|
+
/** Components will be hidden between md and lg screen size. */
|
|
83
|
+
mdHidden?: boolean;
|
|
84
|
+
/** Components will be hidden between lg and xl screen size. */
|
|
85
|
+
lgHidden?: boolean;
|
|
86
|
+
/** Components will be hidden between xl and 2xl screen size. */
|
|
87
|
+
xlHidden?: boolean;
|
|
88
|
+
}>;
|
|
89
|
+
type spacingValues = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
|
90
|
+
/**
|
|
91
|
+
* This is the type used in the type annotation for the component
|
|
92
|
+
*/
|
|
93
|
+
type BaseComponent = <C extends React.ElementType = 'span'>(props: BaseProps<C>) => React.ReactElement | null;
|
|
94
|
+
export declare const Base: BaseComponent;
|
|
95
|
+
export default Base;
|
package/Base/index.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["as", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "m", "mt", "mb", "ml", "mr", "mx", "my", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "p", "pt", "pb", "pr", "pl", "px", "py", "printHidden", "printVisible", "hidden", "xsUpHidden", "smUpHidden", "mdUpHidden", "lgUpHidden", "xlUpHidden", "xsHidden", "smHidden", "mdHidden", "lgHidden", "xlHidden", "children", "className"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
|
|
7
|
+
// This is the first reusable type utility we built
|
|
8
|
+
|
|
9
|
+
// This is a new type utitlity with ref!
|
|
10
|
+
|
|
11
|
+
// This is the type for the "ref" only
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* This is the type used in the type annotation for the component
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
export var Base = /*#__PURE__*/React.forwardRef(function Base(_ref, ref) {
|
|
22
|
+
var as = _ref.as,
|
|
23
|
+
margin = _ref.margin,
|
|
24
|
+
marginTop = _ref.marginTop,
|
|
25
|
+
marginBottom = _ref.marginBottom,
|
|
26
|
+
marginLeft = _ref.marginLeft,
|
|
27
|
+
marginRight = _ref.marginRight,
|
|
28
|
+
m = _ref.m,
|
|
29
|
+
mt = _ref.mt,
|
|
30
|
+
mb = _ref.mb,
|
|
31
|
+
ml = _ref.ml,
|
|
32
|
+
mr = _ref.mr,
|
|
33
|
+
mx = _ref.mx,
|
|
34
|
+
my = _ref.my,
|
|
35
|
+
padding = _ref.padding,
|
|
36
|
+
paddingTop = _ref.paddingTop,
|
|
37
|
+
paddingBottom = _ref.paddingBottom,
|
|
38
|
+
paddingLeft = _ref.paddingLeft,
|
|
39
|
+
paddingRight = _ref.paddingRight,
|
|
40
|
+
p = _ref.p,
|
|
41
|
+
pt = _ref.pt,
|
|
42
|
+
pb = _ref.pb,
|
|
43
|
+
pr = _ref.pr,
|
|
44
|
+
pl = _ref.pl,
|
|
45
|
+
px = _ref.px,
|
|
46
|
+
py = _ref.py,
|
|
47
|
+
printHidden = _ref.printHidden,
|
|
48
|
+
printVisible = _ref.printVisible,
|
|
49
|
+
hidden = _ref.hidden,
|
|
50
|
+
xsUpHidden = _ref.xsUpHidden,
|
|
51
|
+
smUpHidden = _ref.smUpHidden,
|
|
52
|
+
mdUpHidden = _ref.mdUpHidden,
|
|
53
|
+
lgUpHidden = _ref.lgUpHidden,
|
|
54
|
+
xlUpHidden = _ref.xlUpHidden,
|
|
55
|
+
xsHidden = _ref.xsHidden,
|
|
56
|
+
smHidden = _ref.smHidden,
|
|
57
|
+
mdHidden = _ref.mdHidden,
|
|
58
|
+
lgHidden = _ref.lgHidden,
|
|
59
|
+
xlHidden = _ref.xlHidden,
|
|
60
|
+
children = _ref.children,
|
|
61
|
+
className = _ref.className,
|
|
62
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
63
|
+
var Component = as || 'span';
|
|
64
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
65
|
+
className: clsx(className, (paddingBottom !== undefined ? true : undefined) && "ds-pb-".concat(paddingBottom), (marginBottom !== undefined ? true : undefined) && "ds-mb-".concat(marginBottom), (paddingRight !== undefined ? true : undefined) && "ds-pr-".concat(paddingRight), (marginRight !== undefined ? true : undefined) && "ds-mr-".concat(marginRight), (paddingLeft !== undefined ? true : undefined) && "ds-pl-".concat(paddingLeft), (marginLeft !== undefined ? true : undefined) && "ds-ml-".concat(marginLeft), (paddingTop !== undefined ? true : undefined) && "ds-pt-".concat(paddingTop), (marginTop !== undefined ? true : undefined) && "ds-mt-".concat(marginTop), (padding !== undefined ? true : undefined) && "ds-p-".concat(padding), (margin !== undefined ? true : undefined) && "ds-m-".concat(margin), (mt !== undefined ? true : undefined) && "ds-mt-".concat(mt), (mb !== undefined ? true : undefined) && "ds-mb-".concat(mb), (mr !== undefined ? true : undefined) && "ds-mr-".concat(mr), (ml !== undefined ? true : undefined) && "ds-ml-".concat(ml), (mx !== undefined ? true : undefined) && "ds-mx-".concat(mx), (my !== undefined ? true : undefined) && "ds-my-".concat(my), (pt !== undefined ? true : undefined) && "ds-pt-".concat(pt), (pb !== undefined ? true : undefined) && "ds-pb-".concat(pb), (pr !== undefined ? true : undefined) && "ds-pr-".concat(pr), (pl !== undefined ? true : undefined) && "ds-pl-".concat(pl), (px !== undefined ? true : undefined) && "ds-px-".concat(px), (py !== undefined ? true : undefined) && "ds-py-".concat(py), (m !== undefined ? true : undefined) && "ds-m-".concat(m), (p !== undefined ? true : undefined) && "ds-p-".concat(p), printVisible === 'inline' && 'ds-print-visible-inline', printVisible === 'block' && 'ds-print-visible-block', !!printHidden && 'ds-print-hidden', !!xsUpHidden && 'ds-hidden-xs-up', !!smUpHidden && 'ds-hidden-sm-up', !!mdUpHidden && 'ds-hidden-md-up', !!lgUpHidden && 'ds-hidden-lg-up', !!xlUpHidden && 'ds-hidden-xl-up', !!xsHidden && 'ds-hidden-xs', !!smHidden && 'ds-hidden-sm', !!mdHidden && 'ds-hidden-md', !!lgHidden && 'ds-hidden-lg', !!xlHidden && 'ds-hidden-xl', !!hidden && 'ds-hidden'),
|
|
66
|
+
ref: ref
|
|
67
|
+
}, props), children);
|
|
68
|
+
});
|
|
69
|
+
export default Base;
|