@instructure/ui-instructure 10.21.1-snapshot-11

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +30 -0
  3. package/es/AiInformation/index.js +179 -0
  4. package/es/AiInformation/props.js +26 -0
  5. package/es/AiInformation/styles.js +85 -0
  6. package/es/AiInformation/theme.js +52 -0
  7. package/es/DataPermissionLevels/index.js +144 -0
  8. package/es/DataPermissionLevels/props.js +26 -0
  9. package/es/DataPermissionLevels/styles.js +96 -0
  10. package/es/DataPermissionLevels/theme.js +54 -0
  11. package/es/NutritionFacts/index.js +152 -0
  12. package/es/NutritionFacts/props.js +26 -0
  13. package/es/NutritionFacts/styles.js +72 -0
  14. package/es/NutritionFacts/theme.js +49 -0
  15. package/es/index.js +26 -0
  16. package/lib/AiInformation/index.js +185 -0
  17. package/lib/AiInformation/props.js +31 -0
  18. package/lib/AiInformation/styles.js +91 -0
  19. package/lib/AiInformation/theme.js +58 -0
  20. package/lib/DataPermissionLevels/index.js +151 -0
  21. package/lib/DataPermissionLevels/props.js +31 -0
  22. package/lib/DataPermissionLevels/styles.js +102 -0
  23. package/lib/DataPermissionLevels/theme.js +60 -0
  24. package/lib/NutritionFacts/index.js +159 -0
  25. package/lib/NutritionFacts/props.js +31 -0
  26. package/lib/NutritionFacts/styles.js +78 -0
  27. package/lib/NutritionFacts/theme.js +55 -0
  28. package/lib/index.js +26 -0
  29. package/lib/package.json +1 -0
  30. package/package.json +54 -0
  31. package/src/AiInformation/README.md +298 -0
  32. package/src/AiInformation/index.tsx +182 -0
  33. package/src/AiInformation/props.ts +163 -0
  34. package/src/AiInformation/styles.ts +92 -0
  35. package/src/AiInformation/theme.ts +58 -0
  36. package/src/DataPermissionLevels/README.md +47 -0
  37. package/src/DataPermissionLevels/index.tsx +137 -0
  38. package/src/DataPermissionLevels/props.ts +109 -0
  39. package/src/DataPermissionLevels/styles.ts +106 -0
  40. package/src/DataPermissionLevels/theme.ts +59 -0
  41. package/src/NutritionFacts/README.md +99 -0
  42. package/src/NutritionFacts/index.tsx +147 -0
  43. package/src/NutritionFacts/props.ts +106 -0
  44. package/src/NutritionFacts/styles.ts +79 -0
  45. package/src/NutritionFacts/theme.ts +52 -0
  46. package/src/index.ts +29 -0
  47. package/tsconfig.build.json +50 -0
  48. package/tsconfig.build.tsbuildinfo +1 -0
  49. package/tsconfig.json +4 -0
  50. package/types/AiInformation/index.d.ts +10 -0
  51. package/types/AiInformation/index.d.ts.map +1 -0
  52. package/types/AiInformation/props.d.ts +92 -0
  53. package/types/AiInformation/props.d.ts.map +1 -0
  54. package/types/AiInformation/styles.d.ts +14 -0
  55. package/types/AiInformation/styles.d.ts.map +1 -0
  56. package/types/AiInformation/theme.d.ts +10 -0
  57. package/types/AiInformation/theme.d.ts.map +1 -0
  58. package/types/DataPermissionLevels/index.d.ts +10 -0
  59. package/types/DataPermissionLevels/index.d.ts.map +1 -0
  60. package/types/DataPermissionLevels/props.d.ts +55 -0
  61. package/types/DataPermissionLevels/props.d.ts.map +1 -0
  62. package/types/DataPermissionLevels/styles.d.ts +14 -0
  63. package/types/DataPermissionLevels/styles.d.ts.map +1 -0
  64. package/types/DataPermissionLevels/theme.d.ts +10 -0
  65. package/types/DataPermissionLevels/theme.d.ts.map +1 -0
  66. package/types/NutritionFacts/index.d.ts +10 -0
  67. package/types/NutritionFacts/index.d.ts.map +1 -0
  68. package/types/NutritionFacts/props.d.ts +55 -0
  69. package/types/NutritionFacts/props.d.ts.map +1 -0
  70. package/types/NutritionFacts/styles.d.ts +14 -0
  71. package/types/NutritionFacts/styles.d.ts.map +1 -0
  72. package/types/NutritionFacts/theme.d.ts +10 -0
  73. package/types/NutritionFacts/theme.d.ts.map +1 -0
  74. package/types/index.d.ts +7 -0
  75. package/types/index.d.ts.map +1 -0
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.allowedProps = void 0;
7
+ /*
8
+ * The MIT License (MIT)
9
+ *
10
+ * Copyright (c) 2015 - present Instructure, Inc.
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+
31
+ const allowedProps = exports.allowedProps = ['fullscreen', 'modalLabel', 'title', 'featureName', 'data', 'closeButtonText', 'closeIconButtonScreenReaderLabel', 'triggerText'];
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /*
8
+ * The MIT License (MIT)
9
+ *
10
+ * Copyright (c) 2015 - present Instructure, Inc.
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+
31
+ /**
32
+ * ---
33
+ * private: true
34
+ * ---
35
+ * Generates the style object from the theme and provided additional information
36
+ * @param {Object} componentTheme The theme variable object.
37
+ * @param {Object} props the props of the component, the style is applied to
38
+ * @return {Object} The final style object, which will be used in the component
39
+ */
40
+ const generateStyle = (componentTheme, _props) => {
41
+ return {
42
+ segmentCard: {
43
+ label: 'nutrition-facts__segment-card',
44
+ borderStyle: 'solid',
45
+ borderWidth: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.cardBorderWidth,
46
+ borderColor: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.cardBorderColor,
47
+ borderRadius: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.cardBorderRadius,
48
+ padding: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.cardPadding,
49
+ display: 'flex',
50
+ flexDirection: 'column'
51
+ },
52
+ segmentCardExplainerContainer: {
53
+ label: 'nutrition-facts__segment-card-explainer-container',
54
+ marginBottom: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.cardExplainerContainerBottomMargin
55
+ },
56
+ segmentContainer: {
57
+ label: 'nutrition-facts__segment-container',
58
+ display: 'flex',
59
+ flexDirection: 'column',
60
+ gap: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.cardGap
61
+ },
62
+ blockContainer: {
63
+ label: 'nutrition-facts__block-container',
64
+ display: 'flex',
65
+ flexDirection: 'column',
66
+ gap: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.cardGap
67
+ },
68
+ body: {
69
+ label: 'nutrition-facts__body',
70
+ display: 'flex',
71
+ flexDirection: 'column',
72
+ gap: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.blockGap,
73
+ padding: componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.bodyPadding,
74
+ boxSizing: 'border-box'
75
+ }
76
+ };
77
+ };
78
+ var _default = exports.default = generateStyle;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /*
8
+ * The MIT License (MIT)
9
+ *
10
+ * Copyright (c) 2015 - present Instructure, Inc.
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+
31
+ /**
32
+ * Generates the theme object for the component from the theme and provided additional information
33
+ * @param {Object} theme The actual theme object.
34
+ * @return {Object} The final theme object with the overrides and component variables
35
+ */
36
+ const generateComponentTheme = theme => {
37
+ var _colors$ui;
38
+ const colors = theme.colors,
39
+ spacing = theme.spacing,
40
+ borders = theme.borders;
41
+ const componentVariables = {
42
+ cardBorderRadius: borders === null || borders === void 0 ? void 0 : borders.radiusMedium,
43
+ cardBorderColor: colors === null || colors === void 0 ? void 0 : (_colors$ui = colors.ui) === null || _colors$ui === void 0 ? void 0 : _colors$ui.lineStroke,
44
+ cardBorderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
45
+ cardPadding: spacing === null || spacing === void 0 ? void 0 : spacing.space12,
46
+ cardExplainerContainerBottomMargin: spacing === null || spacing === void 0 ? void 0 : spacing.space8,
47
+ cardGap: spacing === null || spacing === void 0 ? void 0 : spacing.modalElements,
48
+ bodyPadding: spacing === null || spacing === void 0 ? void 0 : spacing.paddingCardLarge,
49
+ blockGap: spacing === null || spacing === void 0 ? void 0 : spacing.sectionElements
50
+ };
51
+ return {
52
+ ...componentVariables
53
+ };
54
+ };
55
+ var _default = exports.default = generateComponentTheme;
package/lib/index.js ADDED
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "AiInformation", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _AiInformation.AiInformation;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "DataPermissionLevels", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _DataPermissionLevels.DataPermissionLevels;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "NutritionFacts", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _NutritionFacts.NutritionFacts;
22
+ }
23
+ });
24
+ var _NutritionFacts = require("./NutritionFacts");
25
+ var _DataPermissionLevels = require("./DataPermissionLevels");
26
+ var _AiInformation = require("./AiInformation");
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@instructure/ui-instructure",
3
+ "version": "10.21.1-snapshot-11",
4
+ "description": "Collection of specific components for Instructure products",
5
+ "author": "Instructure, Inc. Engineering and Product Design",
6
+ "module": "./es/index.js",
7
+ "main": "./lib/index.js",
8
+ "types": "./types/index.d.ts",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/instructure/instructure-ui.git"
12
+ },
13
+ "homepage": "https://instructure.github.io/instructure-ui/",
14
+ "bugs": "https://github.com/instructure/instructure-ui/issues",
15
+ "scripts": {
16
+ "lint": "ui-scripts lint",
17
+ "lint:fix": "ui-scripts lint --fix",
18
+ "clean": "ui-scripts clean",
19
+ "build": "ui-scripts build --modules es,cjs",
20
+ "build:watch": "npm run ts:check -- --watch & ui-scripts build --watch",
21
+ "build:types": "tsc -p tsconfig.build.json",
22
+ "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
23
+ },
24
+ "license": "MIT",
25
+ "dependencies": {
26
+ "@babel/runtime": "^7.27.6",
27
+ "@instructure/emotion": "10.21.1-snapshot-11",
28
+ "@instructure/shared-types": "10.21.1-snapshot-11",
29
+ "@instructure/ui-heading": "10.21.1-snapshot-11",
30
+ "@instructure/ui-modal": "10.21.1-snapshot-11",
31
+ "@instructure/ui-popover": "10.21.1-snapshot-11",
32
+ "@instructure/ui-react-utils": "10.21.1-snapshot-11",
33
+ "@instructure/ui-testable": "10.21.1-snapshot-11",
34
+ "@instructure/ui-text": "10.21.1-snapshot-11",
35
+ "@instructure/ui-view": "10.21.1-snapshot-11",
36
+ "prop-types": "^15.8.1"
37
+ },
38
+ "devDependencies": {
39
+ "@instructure/ui-axe-check": "10.21.1-snapshot-11",
40
+ "@instructure/ui-babel-preset": "10.21.1-snapshot-11",
41
+ "@instructure/ui-color-utils": "10.21.1-snapshot-11",
42
+ "@instructure/ui-themes": "10.21.1-snapshot-11",
43
+ "@testing-library/jest-dom": "^6.6.3",
44
+ "@testing-library/react": "^16.0.1",
45
+ "vitest": "^3.2.2"
46
+ },
47
+ "peerDependencies": {
48
+ "react": ">=16.14 <=18"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public"
52
+ },
53
+ "sideEffects": false
54
+ }
@@ -0,0 +1,298 @@
1
+ ---
2
+ describes: AiInformation
3
+ ---
4
+
5
+ This component is made to display specific AI related data in Instructure products.
6
+
7
+ This component is composed from
8
+
9
+ - `NutritionFacts`
10
+ - `DataPermissionLevels`
11
+
12
+ It copies their API exactly, with their name as prefix (e.g.: dataPermissionLevels' `title` becomes `dataPermissionLevelsTitle`). This leads to some redundancy of the data, but makes it easier to use the component.
13
+
14
+ ```js
15
+ ---
16
+ type: example
17
+ readonly: true
18
+ ---
19
+ <div>
20
+ <AiInformation
21
+ trigger={<Button>AI information</Button>}
22
+ title="Features"
23
+ data={[
24
+ {
25
+ featureName: "Feature name",
26
+ permissionLevelText: "Permission Level",
27
+ permissionLevel: "LEVEL 1",
28
+ description: "We leverage anonymized aggregate data for detailed analytics to inform model development and product improvements. No AI models are used at this level.",
29
+ permissionLevelsModalTriggerText: "Permission Levels",
30
+ modelNameText: "Base Model",
31
+ modelName: "Claude 3 Haiku",
32
+ nutritionFactsModalTriggerText: "AI Nutrition Facts"
33
+ }
34
+ ]}
35
+
36
+ dataPermissionLevelsTitle="Data Permission Levels"
37
+ dataPermissionLevelsCurrentFeatureText="Current Feature:"
38
+ dataPermissionLevelsCurrentFeature="Feature name"
39
+ dataPermissionLevelsCloseIconButtonScreenReaderLabel="Close"
40
+ dataPermissionLevelsCloseButtonText="Close"
41
+ dataPermissionLevelsModalLabel="This is a Data Permission Levels modal"
42
+ dataPermissionLevelsTriggerText="Data Permission Levels"
43
+ dataPermissionLevelsData={[
44
+ {
45
+ level: "LEVEL 1",
46
+ title: "Descriptive Analytics and Research",
47
+ description: "We leverage anonymized aggregate data for detailed analytics to inform model development and product improvements. No AI models are used at this level.",
48
+ highlighted:true
49
+ },
50
+ {
51
+ level: "LEVEL 2",
52
+ title: "AI-Powered Features Without Data Retention",
53
+ description: "We utilize off-the-shelf AI models and customer data as input to provide AI-powered features. No data is used for training this model."
54
+ },
55
+ {
56
+ level: "LEVEL 3",
57
+ title: "AI Customization for Individual Institutions",
58
+ description: "We customize AI solutions tailored to the unique needs and resources of educational institutions. We use customer data to fine-tune data and train AI models that only serve your institution. Your institution’s data only serves them through trained models."
59
+ },
60
+ {
61
+ level: "LEVEL 4",
62
+ title: "Collaborative AI Consortium",
63
+ description: "We established a consortium with educational institutions that shares anonymized data, best practices, and research findings. This fosters collaboration and accelerates the responsible development of AI in education. Specialized AI models are created for better outcomes in education, cost savings, and more."
64
+ },
65
+ ]}
66
+
67
+ nutritionFactsModalLabel="This is a modal for AI facts"
68
+ nutritionFactsTitle="Nutrition Facts"
69
+ nutritionFactsFeatureName="Feature Name"
70
+ nutritionFactsCloseButtonText="Close"
71
+ nutritionFactsCloseIconButtonScreenReaderLabel="Close"
72
+ nutritionFactsTriggerText="Nutrition Facts"
73
+ nutritionFactsData={[
74
+ {
75
+ blockTitle: "Model & Data",
76
+ segmentData:[
77
+ {
78
+ segmentTitle: "Base Model",
79
+ description: "The foundational AI on which further training and customizations are built.",
80
+ value: "Value",
81
+ valueDescription: "Description"
82
+ },
83
+ {
84
+ segmentTitle: "Trained with User Data",
85
+ description: "Indicates the AI model has been given customer data in order to improve its results.",
86
+ value: "Value",
87
+ },
88
+ {
89
+ segmentTitle: "Data Shared with Model",
90
+ description: "Indicates which training or operational content was given to the model.",
91
+ value: "Value",
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ blockTitle: "Privacy & Compliance",
97
+ segmentData:[
98
+ {
99
+ segmentTitle: "Data Retention",
100
+ description: "How long the model stores customer data.",
101
+ value: "Value",
102
+ },
103
+ {
104
+ segmentTitle: "Data Logging",
105
+ description: "Recording the AI's performance for auditing, analysis, and improvement.",
106
+ value: "Value",
107
+ },
108
+ {
109
+ segmentTitle: "Regions Supported",
110
+ description: "The locations where the AI model is officially available and supported.",
111
+ value: "Value",
112
+ },
113
+ {
114
+ segmentTitle: "PII",
115
+ description: "Sensitive data that can be used to identify an individual.",
116
+ value: "Value",
117
+ },
118
+ ]
119
+ },
120
+ {
121
+ blockTitle: "Outputs",
122
+ segmentData:[
123
+ {
124
+ segmentTitle: "AI Settings Control",
125
+ description: "The ability to turn the AI on or off within the product.",
126
+ value: "Value",
127
+ },
128
+ {
129
+ segmentTitle: "Human in the Loop",
130
+ description: "Indicates if a human is involved in the AI's process or output.",
131
+ value: "Value",
132
+ },
133
+ {
134
+ segmentTitle: "Guardrails",
135
+ description: "Preventative safety mechanisms or limitations built into the AI model.",
136
+ value: "Value",
137
+ },
138
+ {
139
+ segmentTitle: "Expected Risks",
140
+ description: "Any risks the model may pose to the user.",
141
+ value: "Value",
142
+ },
143
+ {
144
+ segmentTitle: "Intended Outcomes",
145
+ description: "The specific results the AI model is meant to achieve.",
146
+ value: "Value",
147
+ }
148
+ ]
149
+ }
150
+ ]}
151
+ />
152
+ </div>
153
+ ```
154
+
155
+ ### Small Viewport
156
+
157
+ For mobile and other small viewport devices, modals should be fullscreen. Set the `fullscreenModals` prop to make them so.
158
+
159
+ ```js
160
+ ---
161
+ type: example
162
+ readonly: true
163
+ ---
164
+ <div>
165
+ <AiInformation
166
+ fullscreenModals
167
+ trigger={<Button>AI information</Button>}
168
+ title="Features"
169
+ data={[
170
+ {
171
+ featureName: "Feature name",
172
+ permissionLevelText: "Permission Level",
173
+ permissionLevel: "LEVEL 1",
174
+ description: "We leverage anonymized aggregate data for detailed analytics to inform model development and product improvements. No AI models are used at this level.",
175
+ permissionLevelsModalTriggerText: "Permission Levels",
176
+ modelNameText: "Base Model",
177
+ modelName: "Claude 3 Haiku",
178
+ nutritionFactsModalTriggerText: "AI Nutrition Facts"
179
+ }
180
+ ]}
181
+
182
+ dataPermissionLevelsTitle="Data Permission Levels"
183
+ dataPermissionLevelsCurrentFeatureText="Current Feature:"
184
+ dataPermissionLevelsCurrentFeature="Feature name"
185
+ dataPermissionLevelsCloseIconButtonScreenReaderLabel="Close"
186
+ dataPermissionLevelsCloseButtonText="Close"
187
+ dataPermissionLevelsModalLabel="This is a Data Permission Levels modal"
188
+ dataPermissionLevelsTriggerText="Data Permission Levels"
189
+ dataPermissionLevelsData={[
190
+ {
191
+ level: "LEVEL 1",
192
+ title: "Descriptive Analytics and Research",
193
+ description: "We leverage anonymized aggregate data for detailed analytics to inform model development and product improvements. No AI models are used at this level.",
194
+ highlighted:true
195
+ },
196
+ {
197
+ level: "LEVEL 2",
198
+ title: "AI-Powered Features Without Data Retention",
199
+ description: "We utilize off-the-shelf AI models and customer data as input to provide AI-powered features. No data is used for training this model."
200
+ },
201
+ {
202
+ level: "LEVEL 3",
203
+ title: "AI Customization for Individual Institutions",
204
+ description: "We customize AI solutions tailored to the unique needs and resources of educational institutions. We use customer data to fine-tune data and train AI models that only serve your institution. Your institution’s data only serves them through trained models."
205
+ },
206
+ {
207
+ level: "LEVEL 4",
208
+ title: "Collaborative AI Consortium",
209
+ description: "We established a consortium with educational institutions that shares anonymized data, best practices, and research findings. This fosters collaboration and accelerates the responsible development of AI in education. Specialized AI models are created for better outcomes in education, cost savings, and more."
210
+ },
211
+ ]}
212
+
213
+ nutritionFactsModalLabel="This is a modal for AI facts"
214
+ nutritionFactsTitle="Nutrition Facts"
215
+ nutritionFactsFeatureName="Feature Name"
216
+ nutritionFactsCloseButtonText="Close"
217
+ nutritionFactsCloseIconButtonScreenReaderLabel="Close"
218
+ nutritionFactsTriggerText="Nutrition Facts"
219
+ nutritionFactsData={[
220
+ {
221
+ blockTitle: "Model & Data",
222
+ segmentData:[
223
+ {
224
+ segmentTitle: "Base Model",
225
+ description: "The foundational AI on which further training and customizations are built.",
226
+ value: "Value",
227
+ },
228
+ {
229
+ segmentTitle: "Trained with User Data",
230
+ description: "Indicates the AI model has been given customer data in order to improve its results.",
231
+ value: "Value",
232
+ },
233
+ {
234
+ segmentTitle: "Data Shared with Model",
235
+ description: "Indicates which training or operational content was given to the model.",
236
+ value: "Value",
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ blockTitle: "Privacy & Compliance",
242
+ segmentData:[
243
+ {
244
+ segmentTitle: "Data Retention",
245
+ description: "How long the model stores customer data.",
246
+ value: "Value",
247
+ },
248
+ {
249
+ segmentTitle: "Data Logging",
250
+ description: "Recording the AI's performance for auditing, analysis, and improvement.",
251
+ value: "Value",
252
+ },
253
+ {
254
+ segmentTitle: "Regions Supported",
255
+ description: "The locations where the AI model is officially available and supported.",
256
+ value: "Value",
257
+ },
258
+ {
259
+ segmentTitle: "PII",
260
+ description: "Sensitive data that can be used to identify an individual.",
261
+ value: "Value",
262
+ },
263
+ ]
264
+ },
265
+ {
266
+ blockTitle: "Outputs",
267
+ segmentData:[
268
+ {
269
+ segmentTitle: "AI Settings Control",
270
+ description: "The ability to turn the AI on or off within the product.",
271
+ value: "Value",
272
+ },
273
+ {
274
+ segmentTitle: "Human in the Loop",
275
+ description: "Indicates if a human is involved in the AI's process or output.",
276
+ value: "Value",
277
+ },
278
+ {
279
+ segmentTitle: "Guardrails",
280
+ description: "Preventative safety mechanisms or limitations built into the AI model.",
281
+ value: "Value",
282
+ },
283
+ {
284
+ segmentTitle: "Expected Risks",
285
+ description: "Any risks the model may pose to the user.",
286
+ value: "Value",
287
+ },
288
+ {
289
+ segmentTitle: "Intended Outcomes",
290
+ description: "The specific results the AI model is meant to achieve.",
291
+ value: "Value",
292
+ }
293
+ ]
294
+ }
295
+ ]}
296
+ />
297
+ </div>
298
+ ```