@pareto-engineering/design-system 4.0.0-alpha.68 → 4.0.0-alpha.70
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/.storybook/preview.js +29 -12
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +0 -1
- package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +0 -1
- package/dist/cjs/a/AppContext/ContextProvider.js +2 -0
- package/dist/cjs/a/ProgressBar/ProgressBar.js +0 -1
- package/dist/cjs/a/XMLEditor/XMLEditor.js +115 -0
- package/dist/cjs/a/XMLEditor/common/index.js +13 -0
- package/dist/cjs/a/XMLEditor/common/theme.js +186 -0
- package/dist/cjs/a/XMLEditor/index.js +13 -0
- package/dist/cjs/a/XMLEditor/styles.scss +17 -0
- package/dist/cjs/a/index.js +8 -1
- package/dist/cjs/b/Logo/Logo.js +0 -1
- package/dist/cjs/b/Title/Title.js +0 -1
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +2 -0
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +2 -0
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +0 -2
- package/dist/cjs/f/FormInput/FormInput.js +2 -0
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +11 -1
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +32 -3
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +0 -1
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -1
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +0 -1
- package/dist/es/a/AnimatedGradient/webGIRenderer.js +0 -1
- package/dist/es/a/BlurOverlay/BlurOverlay.js +0 -1
- package/dist/es/a/DotInfo/DotInfo.js +0 -1
- package/dist/es/a/ProgressBar/ProgressBar.js +0 -1
- package/dist/es/a/XMLEditor/XMLEditor.js +106 -0
- package/dist/es/a/XMLEditor/common/index.js +1 -0
- package/dist/es/a/XMLEditor/common/theme.js +180 -0
- package/dist/es/a/XMLEditor/index.js +1 -0
- package/dist/es/a/XMLEditor/styles.scss +17 -0
- package/dist/es/a/index.js +2 -1
- package/dist/es/b/Logo/Logo.js +0 -1
- package/dist/es/b/Title/Title.js +0 -1
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +0 -2
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +11 -1
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +32 -3
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +0 -1
- package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -1
- package/package.json +6 -4
- package/src/stories/StyleGuide/ai-icons.stories.mdx +27 -0
- package/src/stories/StyleGuide/icons.stories.mdx +22 -22
- package/src/stories/a/CodeEditor.stories.jsx +21 -0
- package/src/stories/f/QueryCombobox.stories.jsx +22 -0
- package/src/ui/a/XMLEditor/XMLEditor.jsx +171 -0
- package/src/ui/a/XMLEditor/common/index.js +1 -0
- package/src/ui/a/XMLEditor/common/theme.jsx +184 -0
- package/src/ui/a/XMLEditor/index.js +1 -0
- package/src/ui/a/XMLEditor/styles.scss +17 -0
- package/src/ui/a/index.js +1 -0
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +12 -0
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +38 -1
- package/tests/__snapshots__/Storyshots.test.js.snap +166 -25
|
@@ -3264,6 +3264,18 @@ exports[`Storyshots a/ToggleSwitch Base 1`] = `
|
|
|
3264
3264
|
</button>
|
|
3265
3265
|
`;
|
|
3266
3266
|
|
|
3267
|
+
exports[`Storyshots a/XMLEditor Base 1`] = `
|
|
3268
|
+
<div
|
|
3269
|
+
className="base code-editor"
|
|
3270
|
+
style={
|
|
3271
|
+
{
|
|
3272
|
+
"--gutter-width": "3em",
|
|
3273
|
+
"--height": "20em",
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
/>
|
|
3277
|
+
`;
|
|
3278
|
+
|
|
3267
3279
|
exports[`Storyshots b/Button Arrow Left 1`] = `
|
|
3268
3280
|
[
|
|
3269
3281
|
<button
|
|
@@ -18869,7 +18881,7 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select With Default Formik S
|
|
|
18869
18881
|
</form>
|
|
18870
18882
|
`;
|
|
18871
18883
|
|
|
18872
|
-
exports[`Storyshots f/fields/QueryCombobox Multiple Select With
|
|
18884
|
+
exports[`Storyshots f/fields/QueryCombobox Multiple Select With Get Tag Color Function 1`] = `
|
|
18873
18885
|
<form
|
|
18874
18886
|
action="#"
|
|
18875
18887
|
onReset={[Function]}
|
|
@@ -18898,6 +18910,52 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select With Prompt For New O
|
|
|
18898
18910
|
>
|
|
18899
18911
|
Search for a team
|
|
18900
18912
|
</label>
|
|
18913
|
+
<div
|
|
18914
|
+
className="selected-items"
|
|
18915
|
+
>
|
|
18916
|
+
<div
|
|
18917
|
+
className="item"
|
|
18918
|
+
onClick={[Function]}
|
|
18919
|
+
onKeyDown={[Function]}
|
|
18920
|
+
tabIndex={-1}
|
|
18921
|
+
>
|
|
18922
|
+
<button
|
|
18923
|
+
className="base button x-red modifierCompact"
|
|
18924
|
+
onClick={[Function]}
|
|
18925
|
+
type="button"
|
|
18926
|
+
>
|
|
18927
|
+
<span>
|
|
18928
|
+
Apple
|
|
18929
|
+
</span>
|
|
18930
|
+
<span
|
|
18931
|
+
className="icon close"
|
|
18932
|
+
>
|
|
18933
|
+
Y
|
|
18934
|
+
</span>
|
|
18935
|
+
</button>
|
|
18936
|
+
</div>
|
|
18937
|
+
<div
|
|
18938
|
+
className="item"
|
|
18939
|
+
onClick={[Function]}
|
|
18940
|
+
onKeyDown={[Function]}
|
|
18941
|
+
tabIndex={-1}
|
|
18942
|
+
>
|
|
18943
|
+
<button
|
|
18944
|
+
className="base button x-green modifierCompact"
|
|
18945
|
+
onClick={[Function]}
|
|
18946
|
+
type="button"
|
|
18947
|
+
>
|
|
18948
|
+
<span>
|
|
18949
|
+
Pear
|
|
18950
|
+
</span>
|
|
18951
|
+
<span
|
|
18952
|
+
className="icon close"
|
|
18953
|
+
>
|
|
18954
|
+
Y
|
|
18955
|
+
</span>
|
|
18956
|
+
</button>
|
|
18957
|
+
</div>
|
|
18958
|
+
</div>
|
|
18901
18959
|
<div
|
|
18902
18960
|
className="input-container"
|
|
18903
18961
|
>
|
|
@@ -18952,7 +19010,7 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select With Prompt For New O
|
|
|
18952
19010
|
</form>
|
|
18953
19011
|
`;
|
|
18954
19012
|
|
|
18955
|
-
exports[`Storyshots f/fields/QueryCombobox
|
|
19013
|
+
exports[`Storyshots f/fields/QueryCombobox Multiple Select With Prompt For New Options 1`] = `
|
|
18956
19014
|
<form
|
|
18957
19015
|
action="#"
|
|
18958
19016
|
onReset={[Function]}
|
|
@@ -18971,16 +19029,15 @@ exports[`Storyshots f/fields/QueryCombobox Optional 1`] = `
|
|
|
18971
19029
|
aria-expanded={false}
|
|
18972
19030
|
aria-haspopup="listbox"
|
|
18973
19031
|
aria-owns="downshift-5-menu"
|
|
18974
|
-
className="base combobox
|
|
19032
|
+
className="base multiple-combobox"
|
|
18975
19033
|
role="combobox"
|
|
18976
19034
|
>
|
|
18977
19035
|
<label
|
|
18978
|
-
className="base form-label x-paragraph"
|
|
18979
|
-
htmlFor="
|
|
19036
|
+
className="base form-label base multiple-combobox x-paragraph"
|
|
19037
|
+
htmlFor="teams"
|
|
18980
19038
|
id="downshift-5-label"
|
|
18981
19039
|
>
|
|
18982
19040
|
Search for a team
|
|
18983
|
-
(Optional)
|
|
18984
19041
|
</label>
|
|
18985
19042
|
<div
|
|
18986
19043
|
className="input-container"
|
|
@@ -18995,6 +19052,7 @@ exports[`Storyshots f/fields/QueryCombobox Optional 1`] = `
|
|
|
18995
19052
|
id="downshift-5-input"
|
|
18996
19053
|
onBlur={[Function]}
|
|
18997
19054
|
onChange={[Function]}
|
|
19055
|
+
onClick={[Function]}
|
|
18998
19056
|
onKeyDown={[Function]}
|
|
18999
19057
|
value=""
|
|
19000
19058
|
/>
|
|
@@ -19028,14 +19086,14 @@ exports[`Storyshots f/fields/QueryCombobox Optional 1`] = `
|
|
|
19028
19086
|
onClick={[Function]}
|
|
19029
19087
|
type="button"
|
|
19030
19088
|
>
|
|
19031
|
-
|
|
19089
|
+
Add formik values
|
|
19032
19090
|
</button>
|
|
19033
19091
|
</div>
|
|
19034
19092
|
</div>
|
|
19035
19093
|
</form>
|
|
19036
19094
|
`;
|
|
19037
19095
|
|
|
19038
|
-
exports[`Storyshots f/fields/QueryCombobox
|
|
19096
|
+
exports[`Storyshots f/fields/QueryCombobox Optional 1`] = `
|
|
19039
19097
|
<form
|
|
19040
19098
|
action="#"
|
|
19041
19099
|
onReset={[Function]}
|
|
@@ -19063,6 +19121,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
|
|
|
19063
19121
|
id="downshift-6-label"
|
|
19064
19122
|
>
|
|
19065
19123
|
Search for a team
|
|
19124
|
+
(Optional)
|
|
19066
19125
|
</label>
|
|
19067
19126
|
<div
|
|
19068
19127
|
className="input-container"
|
|
@@ -19117,7 +19176,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
|
|
|
19117
19176
|
</form>
|
|
19118
19177
|
`;
|
|
19119
19178
|
|
|
19120
|
-
exports[`Storyshots f/fields/QueryCombobox Single Select
|
|
19179
|
+
exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
|
|
19121
19180
|
<form
|
|
19122
19181
|
action="#"
|
|
19123
19182
|
onReset={[Function]}
|
|
@@ -19160,6 +19219,88 @@ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik Sta
|
|
|
19160
19219
|
onBlur={[Function]}
|
|
19161
19220
|
onChange={[Function]}
|
|
19162
19221
|
onKeyDown={[Function]}
|
|
19222
|
+
value=""
|
|
19223
|
+
/>
|
|
19224
|
+
</div>
|
|
19225
|
+
<div
|
|
19226
|
+
className="base popover x-background-near bottom left"
|
|
19227
|
+
>
|
|
19228
|
+
<ul
|
|
19229
|
+
aria-labelledby="downshift-7-label"
|
|
19230
|
+
className="base menu y-interactive"
|
|
19231
|
+
id="downshift-7-menu"
|
|
19232
|
+
onMouseLeave={[Function]}
|
|
19233
|
+
role="listbox"
|
|
19234
|
+
/>
|
|
19235
|
+
</div>
|
|
19236
|
+
</div>
|
|
19237
|
+
<div>
|
|
19238
|
+
<div
|
|
19239
|
+
className="debugger"
|
|
19240
|
+
>
|
|
19241
|
+
<button
|
|
19242
|
+
className="base button x-main2"
|
|
19243
|
+
onClick={[Function]}
|
|
19244
|
+
type="button"
|
|
19245
|
+
>
|
|
19246
|
+
Open FormDebugger
|
|
19247
|
+
</button>
|
|
19248
|
+
</div>
|
|
19249
|
+
<button
|
|
19250
|
+
className="base button x-main"
|
|
19251
|
+
onClick={[Function]}
|
|
19252
|
+
type="button"
|
|
19253
|
+
>
|
|
19254
|
+
Replace formik value
|
|
19255
|
+
</button>
|
|
19256
|
+
</div>
|
|
19257
|
+
</div>
|
|
19258
|
+
</form>
|
|
19259
|
+
`;
|
|
19260
|
+
|
|
19261
|
+
exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik State 1`] = `
|
|
19262
|
+
<form
|
|
19263
|
+
action="#"
|
|
19264
|
+
onReset={[Function]}
|
|
19265
|
+
onSubmit={[Function]}
|
|
19266
|
+
>
|
|
19267
|
+
<div
|
|
19268
|
+
style={
|
|
19269
|
+
{
|
|
19270
|
+
"display": "flex",
|
|
19271
|
+
"flexDirection": "column",
|
|
19272
|
+
"gap": "1rem",
|
|
19273
|
+
}
|
|
19274
|
+
}
|
|
19275
|
+
>
|
|
19276
|
+
<div
|
|
19277
|
+
aria-expanded={false}
|
|
19278
|
+
aria-haspopup="listbox"
|
|
19279
|
+
aria-owns="downshift-8-menu"
|
|
19280
|
+
className="base combobox y-interactive"
|
|
19281
|
+
role="combobox"
|
|
19282
|
+
>
|
|
19283
|
+
<label
|
|
19284
|
+
className="base form-label x-paragraph"
|
|
19285
|
+
htmlFor="team"
|
|
19286
|
+
id="downshift-8-label"
|
|
19287
|
+
>
|
|
19288
|
+
Search for a team
|
|
19289
|
+
</label>
|
|
19290
|
+
<div
|
|
19291
|
+
className="input-container"
|
|
19292
|
+
>
|
|
19293
|
+
<input
|
|
19294
|
+
aria-autocomplete="list"
|
|
19295
|
+
aria-controls="downshift-8-menu"
|
|
19296
|
+
aria-labelledby="downshift-8-label"
|
|
19297
|
+
autoComplete="off"
|
|
19298
|
+
className="input"
|
|
19299
|
+
disabled={false}
|
|
19300
|
+
id="downshift-8-input"
|
|
19301
|
+
onBlur={[Function]}
|
|
19302
|
+
onChange={[Function]}
|
|
19303
|
+
onKeyDown={[Function]}
|
|
19163
19304
|
value="Apple"
|
|
19164
19305
|
/>
|
|
19165
19306
|
<button
|
|
@@ -19182,9 +19323,9 @@ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik Sta
|
|
|
19182
19323
|
className="base popover x-background-near bottom left"
|
|
19183
19324
|
>
|
|
19184
19325
|
<ul
|
|
19185
|
-
aria-labelledby="downshift-
|
|
19326
|
+
aria-labelledby="downshift-8-label"
|
|
19186
19327
|
className="base menu y-interactive"
|
|
19187
|
-
id="downshift-
|
|
19328
|
+
id="downshift-8-menu"
|
|
19188
19329
|
onMouseLeave={[Function]}
|
|
19189
19330
|
role="listbox"
|
|
19190
19331
|
/>
|
|
@@ -19232,14 +19373,14 @@ exports[`Storyshots f/fields/QueryCombobox With Placeholder 1`] = `
|
|
|
19232
19373
|
<div
|
|
19233
19374
|
aria-expanded={false}
|
|
19234
19375
|
aria-haspopup="listbox"
|
|
19235
|
-
aria-owns="downshift-
|
|
19376
|
+
aria-owns="downshift-9-menu"
|
|
19236
19377
|
className="base combobox y-interactive"
|
|
19237
19378
|
role="combobox"
|
|
19238
19379
|
>
|
|
19239
19380
|
<label
|
|
19240
19381
|
className="base form-label x-paragraph"
|
|
19241
19382
|
htmlFor="team"
|
|
19242
|
-
id="downshift-
|
|
19383
|
+
id="downshift-9-label"
|
|
19243
19384
|
>
|
|
19244
19385
|
Search for a team
|
|
19245
19386
|
</label>
|
|
@@ -19248,12 +19389,12 @@ exports[`Storyshots f/fields/QueryCombobox With Placeholder 1`] = `
|
|
|
19248
19389
|
>
|
|
19249
19390
|
<input
|
|
19250
19391
|
aria-autocomplete="list"
|
|
19251
|
-
aria-controls="downshift-
|
|
19252
|
-
aria-labelledby="downshift-
|
|
19392
|
+
aria-controls="downshift-9-menu"
|
|
19393
|
+
aria-labelledby="downshift-9-label"
|
|
19253
19394
|
autoComplete="off"
|
|
19254
19395
|
className="input"
|
|
19255
19396
|
disabled={false}
|
|
19256
|
-
id="downshift-
|
|
19397
|
+
id="downshift-9-input"
|
|
19257
19398
|
onBlur={[Function]}
|
|
19258
19399
|
onChange={[Function]}
|
|
19259
19400
|
onKeyDown={[Function]}
|
|
@@ -19265,9 +19406,9 @@ exports[`Storyshots f/fields/QueryCombobox With Placeholder 1`] = `
|
|
|
19265
19406
|
className="base popover x-background-near bottom left"
|
|
19266
19407
|
>
|
|
19267
19408
|
<ul
|
|
19268
|
-
aria-labelledby="downshift-
|
|
19409
|
+
aria-labelledby="downshift-9-label"
|
|
19269
19410
|
className="base menu y-interactive"
|
|
19270
|
-
id="downshift-
|
|
19411
|
+
id="downshift-9-menu"
|
|
19271
19412
|
onMouseLeave={[Function]}
|
|
19272
19413
|
role="listbox"
|
|
19273
19414
|
/>
|
|
@@ -19315,14 +19456,14 @@ exports[`Storyshots f/fields/QueryCombobox With Prompt To Create New Option 1`]
|
|
|
19315
19456
|
<div
|
|
19316
19457
|
aria-expanded={false}
|
|
19317
19458
|
aria-haspopup="listbox"
|
|
19318
|
-
aria-owns="downshift-
|
|
19459
|
+
aria-owns="downshift-10-menu"
|
|
19319
19460
|
className="base combobox y-interactive"
|
|
19320
19461
|
role="combobox"
|
|
19321
19462
|
>
|
|
19322
19463
|
<label
|
|
19323
19464
|
className="base form-label x-paragraph"
|
|
19324
19465
|
htmlFor="team"
|
|
19325
|
-
id="downshift-
|
|
19466
|
+
id="downshift-10-label"
|
|
19326
19467
|
>
|
|
19327
19468
|
Search for a team
|
|
19328
19469
|
</label>
|
|
@@ -19331,12 +19472,12 @@ exports[`Storyshots f/fields/QueryCombobox With Prompt To Create New Option 1`]
|
|
|
19331
19472
|
>
|
|
19332
19473
|
<input
|
|
19333
19474
|
aria-autocomplete="list"
|
|
19334
|
-
aria-controls="downshift-
|
|
19335
|
-
aria-labelledby="downshift-
|
|
19475
|
+
aria-controls="downshift-10-menu"
|
|
19476
|
+
aria-labelledby="downshift-10-label"
|
|
19336
19477
|
autoComplete="off"
|
|
19337
19478
|
className="input"
|
|
19338
19479
|
disabled={false}
|
|
19339
|
-
id="downshift-
|
|
19480
|
+
id="downshift-10-input"
|
|
19340
19481
|
onBlur={[Function]}
|
|
19341
19482
|
onChange={[Function]}
|
|
19342
19483
|
onKeyDown={[Function]}
|
|
@@ -19348,9 +19489,9 @@ exports[`Storyshots f/fields/QueryCombobox With Prompt To Create New Option 1`]
|
|
|
19348
19489
|
className="base popover x-background-near bottom left"
|
|
19349
19490
|
>
|
|
19350
19491
|
<ul
|
|
19351
|
-
aria-labelledby="downshift-
|
|
19492
|
+
aria-labelledby="downshift-10-label"
|
|
19352
19493
|
className="base menu y-interactive"
|
|
19353
|
-
id="downshift-
|
|
19494
|
+
id="downshift-10-menu"
|
|
19354
19495
|
onMouseLeave={[Function]}
|
|
19355
19496
|
role="listbox"
|
|
19356
19497
|
/>
|