@instructure/ui-instructure 11.7.8 → 11.7.9-pr-snapshot-1792147648392
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/CHANGELOG.md +13 -0
- package/es/AiInformation/v1/index.js +152 -180
- package/es/AiInformation/v1/props.js +20 -26
- package/es/AiInformation/v1/styles.js +55 -88
- package/es/AiInformation/v1/theme.js +20 -52
- package/es/AiInformation/v2/index.js +154 -181
- package/es/AiInformation/v2/props.js +20 -26
- package/es/AiInformation/v2/styles.js +58 -90
- package/es/DataPermissionLevels/v1/index.js +106 -127
- package/es/DataPermissionLevels/v1/props.js +12 -26
- package/es/DataPermissionLevels/v1/styles.js +59 -92
- package/es/DataPermissionLevels/v1/theme.js +21 -54
- package/es/DataPermissionLevels/v2/index.js +119 -133
- package/es/DataPermissionLevels/v2/props.js +12 -26
- package/es/DataPermissionLevels/v2/styles.js +68 -102
- package/es/NutritionFacts/v1/index.js +134 -136
- package/es/NutritionFacts/v1/props.js +11 -26
- package/es/NutritionFacts/v1/styles.js +38 -71
- package/es/NutritionFacts/v1/theme.js +16 -49
- package/es/NutritionFacts/v2/index.js +140 -137
- package/es/NutritionFacts/v2/props.js +11 -26
- package/es/NutritionFacts/v2/styles.js +44 -78
- package/es/exports/a.js +1 -24
- package/es/exports/b.js +1 -24
- package/package.json +18 -24
- package/tsconfig.build.json +0 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/lib/AiInformation/v1/index.js +0 -200
- package/lib/AiInformation/v1/props.js +0 -31
- package/lib/AiInformation/v1/styles.js +0 -95
- package/lib/AiInformation/v1/theme.js +0 -59
- package/lib/AiInformation/v2/index.js +0 -200
- package/lib/AiInformation/v2/props.js +0 -31
- package/lib/AiInformation/v2/styles.js +0 -97
- package/lib/DataPermissionLevels/v1/index.js +0 -143
- package/lib/DataPermissionLevels/v1/props.js +0 -31
- package/lib/DataPermissionLevels/v1/styles.js +0 -102
- package/lib/DataPermissionLevels/v1/theme.js +0 -61
- package/lib/DataPermissionLevels/v2/index.js +0 -150
- package/lib/DataPermissionLevels/v2/props.js +0 -31
- package/lib/DataPermissionLevels/v2/styles.js +0 -112
- package/lib/NutritionFacts/v1/index.js +0 -152
- package/lib/NutritionFacts/v1/props.js +0 -31
- package/lib/NutritionFacts/v1/styles.js +0 -78
- package/lib/NutritionFacts/v1/theme.js +0 -56
- package/lib/NutritionFacts/v2/index.js +0 -154
- package/lib/NutritionFacts/v2/props.js +0 -31
- package/lib/NutritionFacts/v2/styles.js +0 -85
- package/lib/exports/a.js +0 -26
- package/lib/exports/b.js +0 -26
- package/lib/package.json +0 -1
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* The MIT License (MIT)
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2015 - present Instructure, Inc.
|
|
5
|
-
*
|
|
6
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
* in the Software without restriction, including without limitation the rights
|
|
9
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
12
|
-
*
|
|
13
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
* copies or substantial portions of the Software.
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
23
|
-
*/
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
24
2
|
import { useState } from 'react';
|
|
25
3
|
import { Popover } from '@instructure/ui-popover/latest';
|
|
26
4
|
import { CloseButton } from '@instructure/ui-buttons/latest';
|
|
@@ -32,163 +10,158 @@ import { useStyleNew } from '@instructure/emotion';
|
|
|
32
10
|
import { NutritionFacts } from '../../NutritionFacts/v2/index.js';
|
|
33
11
|
import { DataPermissionLevels } from '../../DataPermissionLevels/v2/index.js';
|
|
34
12
|
import generateStyle from './styles.js';
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
})
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}, index))
|
|
188
|
-
})]
|
|
189
|
-
})
|
|
190
|
-
})
|
|
191
|
-
});
|
|
13
|
+
const AiInformation = ({ title, data, trigger, fullscreenModals = false, dataPermissionLevelsModalLabel, dataPermissionLevelsTitle, dataPermissionLevelsData, dataPermissionLevelsCloseButtonText, dataPermissionLevelsCloseIconButtonScreenReaderLabel, dataPermissionLevelsCurrentFeature, dataPermissionLevelsCurrentFeatureText, nutritionFactsModalLabel, nutritionFactsTitle, nutritionFactsFeatureName, nutritionFactsData, nutritionFactsCloseButtonText, nutritionFactsCloseIconButtonScreenReaderLabel, themeOverride })=>{
|
|
14
|
+
const [open, setOpen] = useState(false);
|
|
15
|
+
const styles = useStyleNew({
|
|
16
|
+
generateStyle,
|
|
17
|
+
themeOverride,
|
|
18
|
+
componentId: 'AiInformation',
|
|
19
|
+
displayName: 'AiInformation'
|
|
20
|
+
});
|
|
21
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
22
|
+
children: /*#__PURE__*/ _jsx(Popover, {
|
|
23
|
+
renderTrigger: trigger,
|
|
24
|
+
isShowingContent: open,
|
|
25
|
+
on: "click",
|
|
26
|
+
screenReaderLabel: `IgniteAI, ${title}`,
|
|
27
|
+
shouldContainFocus: true,
|
|
28
|
+
shouldReturnFocus: true,
|
|
29
|
+
shouldCloseOnDocumentClick: true,
|
|
30
|
+
offsetY: "1rem",
|
|
31
|
+
onShowContent: ()=>setOpen(true),
|
|
32
|
+
onHideContent: ()=>setOpen(false),
|
|
33
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
34
|
+
css: styles?.aiInformation,
|
|
35
|
+
children: [
|
|
36
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
37
|
+
css: styles?.header,
|
|
38
|
+
children: [
|
|
39
|
+
/*#__PURE__*/ _jsx(Heading, {
|
|
40
|
+
level: "h2",
|
|
41
|
+
aiVariant: "stacked",
|
|
42
|
+
variant: "titleModule",
|
|
43
|
+
children: title
|
|
44
|
+
}),
|
|
45
|
+
/*#__PURE__*/ _jsx(CloseButton, {
|
|
46
|
+
placement: "end",
|
|
47
|
+
offset: "small",
|
|
48
|
+
onClick: ()=>setOpen(false),
|
|
49
|
+
screenReaderLabel: "Close"
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
}),
|
|
53
|
+
/*#__PURE__*/ _jsx("div", {
|
|
54
|
+
children: data.map(({ featureName, privacyNoticeText, privacyNoticeUrl, privacyNoticeScreenReaderLabel, permissionLevelText, permissionLevel, description, permissionLevelsModalTriggerText, modelNameText, modelName, nutritionFactsModalTriggerText }, index)=>/*#__PURE__*/ _jsxs("div", {
|
|
55
|
+
children: [
|
|
56
|
+
/*#__PURE__*/ _jsx("div", {
|
|
57
|
+
css: styles?.privacyNotice,
|
|
58
|
+
children: /*#__PURE__*/ _jsx(Link, {
|
|
59
|
+
href: privacyNoticeUrl,
|
|
60
|
+
"aria-label": privacyNoticeScreenReaderLabel,
|
|
61
|
+
renderIcon: /*#__PURE__*/ _jsx(ExternalLinkInstUIIcon, {
|
|
62
|
+
size: "sm"
|
|
63
|
+
}),
|
|
64
|
+
target: "_blank",
|
|
65
|
+
iconPlacement: "end",
|
|
66
|
+
variant: "standalone",
|
|
67
|
+
children: privacyNoticeText
|
|
68
|
+
})
|
|
69
|
+
}),
|
|
70
|
+
/*#__PURE__*/ _jsx("div", {
|
|
71
|
+
css: styles?.featureName,
|
|
72
|
+
children: /*#__PURE__*/ _jsx(Heading, {
|
|
73
|
+
level: "h3",
|
|
74
|
+
variant: "titleCardRegular",
|
|
75
|
+
children: featureName
|
|
76
|
+
})
|
|
77
|
+
}),
|
|
78
|
+
/*#__PURE__*/ _jsx("div", {
|
|
79
|
+
css: styles?.permissionLevelText,
|
|
80
|
+
children: /*#__PURE__*/ _jsx(Heading, {
|
|
81
|
+
level: "h4",
|
|
82
|
+
variant: "label",
|
|
83
|
+
children: permissionLevelText
|
|
84
|
+
})
|
|
85
|
+
}),
|
|
86
|
+
/*#__PURE__*/ _jsx("div", {
|
|
87
|
+
css: styles?.permissionLevel,
|
|
88
|
+
children: /*#__PURE__*/ _jsxs(Text, {
|
|
89
|
+
variant: "legend",
|
|
90
|
+
children: [
|
|
91
|
+
" ",
|
|
92
|
+
permissionLevel,
|
|
93
|
+
" "
|
|
94
|
+
]
|
|
95
|
+
})
|
|
96
|
+
}),
|
|
97
|
+
/*#__PURE__*/ _jsx("div", {
|
|
98
|
+
css: styles?.description,
|
|
99
|
+
children: /*#__PURE__*/ _jsxs(Text, {
|
|
100
|
+
variant: "contentSmall",
|
|
101
|
+
children: [
|
|
102
|
+
" ",
|
|
103
|
+
description,
|
|
104
|
+
" "
|
|
105
|
+
]
|
|
106
|
+
})
|
|
107
|
+
}),
|
|
108
|
+
/*#__PURE__*/ _jsx("div", {
|
|
109
|
+
css: styles?.permissionLevelsModalTriggerText,
|
|
110
|
+
children: /*#__PURE__*/ _jsx(DataPermissionLevels, {
|
|
111
|
+
fullscreen: fullscreenModals,
|
|
112
|
+
title: dataPermissionLevelsTitle,
|
|
113
|
+
currentFeatureText: dataPermissionLevelsCurrentFeatureText,
|
|
114
|
+
currentFeature: dataPermissionLevelsCurrentFeature,
|
|
115
|
+
closeIconButtonScreenReaderLabel: dataPermissionLevelsCloseIconButtonScreenReaderLabel,
|
|
116
|
+
closeButtonText: dataPermissionLevelsCloseButtonText,
|
|
117
|
+
modalLabel: dataPermissionLevelsModalLabel,
|
|
118
|
+
triggerText: permissionLevelsModalTriggerText,
|
|
119
|
+
data: dataPermissionLevelsData
|
|
120
|
+
})
|
|
121
|
+
}),
|
|
122
|
+
/*#__PURE__*/ _jsx("div", {
|
|
123
|
+
css: styles?.modelNameText,
|
|
124
|
+
children: /*#__PURE__*/ _jsxs(Heading, {
|
|
125
|
+
level: "h4",
|
|
126
|
+
variant: "label",
|
|
127
|
+
children: [
|
|
128
|
+
' ',
|
|
129
|
+
modelNameText,
|
|
130
|
+
' '
|
|
131
|
+
]
|
|
132
|
+
})
|
|
133
|
+
}),
|
|
134
|
+
/*#__PURE__*/ _jsx("div", {
|
|
135
|
+
css: styles?.modelName,
|
|
136
|
+
children: /*#__PURE__*/ _jsxs(Text, {
|
|
137
|
+
variant: "contentSmall",
|
|
138
|
+
children: [
|
|
139
|
+
" ",
|
|
140
|
+
modelName,
|
|
141
|
+
" "
|
|
142
|
+
]
|
|
143
|
+
})
|
|
144
|
+
}),
|
|
145
|
+
/*#__PURE__*/ _jsx(NutritionFacts, {
|
|
146
|
+
fullscreen: fullscreenModals,
|
|
147
|
+
modalLabel: nutritionFactsModalLabel,
|
|
148
|
+
title: nutritionFactsTitle,
|
|
149
|
+
featureName: nutritionFactsFeatureName,
|
|
150
|
+
closeButtonText: nutritionFactsCloseButtonText,
|
|
151
|
+
closeIconButtonScreenReaderLabel: nutritionFactsCloseIconButtonScreenReaderLabel,
|
|
152
|
+
triggerText: nutritionFactsModalTriggerText,
|
|
153
|
+
data: nutritionFactsData
|
|
154
|
+
}),
|
|
155
|
+
data.length !== index + 1 ? /*#__PURE__*/ _jsx("div", {
|
|
156
|
+
css: styles?.divider
|
|
157
|
+
}) : null
|
|
158
|
+
]
|
|
159
|
+
}, index))
|
|
160
|
+
})
|
|
161
|
+
]
|
|
162
|
+
})
|
|
163
|
+
})
|
|
164
|
+
});
|
|
192
165
|
};
|
|
193
166
|
export default AiInformation;
|
|
194
|
-
export { AiInformation };
|
|
167
|
+
export { AiInformation };
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
const allowedProps = ['fullscreenModals', 'title', 'data', 'trigger', 'dataPermissionLevelsModalLabel', 'dataPermissionLevelsTitle', 'dataPermissionLevelsData', 'dataPermissionLevelsCloseButtonText', 'dataPermissionLevelsCloseIconButtonScreenReaderLabel', 'dataPermissionLevelsCurrentFeatureText', 'dataPermissionLevelsCurrentFeature', 'nutritionFactsModalLabel', 'nutritionFactsTitle', 'nutritionFactsFeatureName', 'nutritionFactsData', 'nutritionFactsCloseButtonText', 'nutritionFactsCloseIconButtonScreenReaderLabel'];
|
|
26
|
-
export { allowedProps };
|
|
1
|
+
const allowedProps = [
|
|
2
|
+
'fullscreenModals',
|
|
3
|
+
'title',
|
|
4
|
+
'data',
|
|
5
|
+
'trigger',
|
|
6
|
+
'dataPermissionLevelsModalLabel',
|
|
7
|
+
'dataPermissionLevelsTitle',
|
|
8
|
+
'dataPermissionLevelsData',
|
|
9
|
+
'dataPermissionLevelsCloseButtonText',
|
|
10
|
+
'dataPermissionLevelsCloseIconButtonScreenReaderLabel',
|
|
11
|
+
'dataPermissionLevelsCurrentFeatureText',
|
|
12
|
+
'dataPermissionLevelsCurrentFeature',
|
|
13
|
+
'nutritionFactsModalLabel',
|
|
14
|
+
'nutritionFactsTitle',
|
|
15
|
+
'nutritionFactsFeatureName',
|
|
16
|
+
'nutritionFactsData',
|
|
17
|
+
'nutritionFactsCloseButtonText',
|
|
18
|
+
'nutritionFactsCloseIconButtonScreenReaderLabel'
|
|
19
|
+
];
|
|
20
|
+
export { allowedProps };
|
|
@@ -1,91 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
label: 'ai-information__permission-level',
|
|
59
|
-
marginBottom: componentTheme.permissionLevelBottomMargin,
|
|
60
|
-
color: componentTheme.levelColor,
|
|
61
|
-
'& > *': {
|
|
62
|
-
color: `${componentTheme.levelColor} !important`
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
description: {
|
|
66
|
-
label: 'ai-information__description',
|
|
67
|
-
marginBottom: componentTheme.descriptionBottomMargin
|
|
68
|
-
},
|
|
69
|
-
permissionLevelsModalTriggerText: {
|
|
70
|
-
label: 'ai-information__permission-levels-modal-trigger-text',
|
|
71
|
-
marginBottom: componentTheme.permissionLevelsModalTriggerBottomMargin
|
|
72
|
-
},
|
|
73
|
-
modelNameText: {
|
|
74
|
-
label: 'ai-information__model-name-text',
|
|
75
|
-
marginBottom: componentTheme.modelNameTextBottomMargin
|
|
76
|
-
},
|
|
77
|
-
modelName: {
|
|
78
|
-
label: 'ai-information__model-name',
|
|
79
|
-
marginBottom: componentTheme.modelNameBottomMargin
|
|
80
|
-
},
|
|
81
|
-
divider: {
|
|
82
|
-
label: 'ai-information__divider',
|
|
83
|
-
marginBottom: componentTheme.dividerMargin,
|
|
84
|
-
marginTop: componentTheme.dividerMargin,
|
|
85
|
-
borderTop: 'solid 1px',
|
|
86
|
-
width: '100%',
|
|
87
|
-
borderColor: componentTheme.dividerColor
|
|
88
|
-
}
|
|
89
|
-
};
|
|
1
|
+
const generateStyle = (componentTheme)=>{
|
|
2
|
+
return {
|
|
3
|
+
aiInformation: {
|
|
4
|
+
label: 'ai-information',
|
|
5
|
+
width: '18.5rem',
|
|
6
|
+
padding: componentTheme.bodyPadding,
|
|
7
|
+
boxSizing: 'border-box'
|
|
8
|
+
},
|
|
9
|
+
header: {
|
|
10
|
+
label: 'ai-information__header',
|
|
11
|
+
marginBottom: componentTheme.headingBottomMargin
|
|
12
|
+
},
|
|
13
|
+
privacyNotice: {
|
|
14
|
+
label: 'ai-information__privacyNotice',
|
|
15
|
+
marginBottom: componentTheme.headingBottomMargin
|
|
16
|
+
},
|
|
17
|
+
featureName: {
|
|
18
|
+
label: 'ai-information__feature-name',
|
|
19
|
+
marginBottom: componentTheme.featureNameBottomMargin
|
|
20
|
+
},
|
|
21
|
+
permissionLevelText: {
|
|
22
|
+
label: 'ai-information__permission-level-text',
|
|
23
|
+
marginBottom: componentTheme.permissionLevelTextBottomMargin
|
|
24
|
+
},
|
|
25
|
+
permissionLevel: {
|
|
26
|
+
label: 'ai-information__permission-level',
|
|
27
|
+
marginBottom: componentTheme.permissionLevelBottomMargin,
|
|
28
|
+
color: componentTheme.levelColor,
|
|
29
|
+
'& > *': {
|
|
30
|
+
color: `${componentTheme.levelColor} !important`
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
description: {
|
|
34
|
+
label: 'ai-information__description',
|
|
35
|
+
marginBottom: componentTheme.descriptionBottomMargin
|
|
36
|
+
},
|
|
37
|
+
permissionLevelsModalTriggerText: {
|
|
38
|
+
label: 'ai-information__permission-levels-modal-trigger-text',
|
|
39
|
+
marginBottom: componentTheme.permissionLevelsModalTriggerBottomMargin
|
|
40
|
+
},
|
|
41
|
+
modelNameText: {
|
|
42
|
+
label: 'ai-information__model-name-text',
|
|
43
|
+
marginBottom: componentTheme.modelNameTextBottomMargin
|
|
44
|
+
},
|
|
45
|
+
modelName: {
|
|
46
|
+
label: 'ai-information__model-name',
|
|
47
|
+
marginBottom: componentTheme.modelNameBottomMargin
|
|
48
|
+
},
|
|
49
|
+
divider: {
|
|
50
|
+
label: 'ai-information__divider',
|
|
51
|
+
marginBottom: componentTheme.dividerMargin,
|
|
52
|
+
marginTop: componentTheme.dividerMargin,
|
|
53
|
+
borderTop: 'solid 1px',
|
|
54
|
+
width: '100%',
|
|
55
|
+
borderColor: componentTheme.dividerColor
|
|
56
|
+
}
|
|
57
|
+
};
|
|
90
58
|
};
|
|
91
|
-
export default generateStyle;
|
|
59
|
+
export default generateStyle;
|