@uniformdev/design-system 20.50.2-alpha.109 → 20.50.2-alpha.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
import "./chunk-ZICJ6DRF.js";
|
|
2
3
|
|
|
3
4
|
// src/styles/Theme.tsx
|
|
4
5
|
import { Fragment, jsx as jsx2, jsxs } from "@emotion/react/jsx-runtime";
|
|
@@ -1305,7 +1306,7 @@ function IconsProvider({ children }) {
|
|
|
1305
1306
|
const [isLoading, setIsLoading] = useState(true);
|
|
1306
1307
|
const [iconsMap, setIconsMap] = useState({});
|
|
1307
1308
|
const initializeIconsMap = async () => {
|
|
1308
|
-
const { importedIcons } = await import("./importedIcons-
|
|
1309
|
+
const { importedIcons } = await import("./importedIcons-ZMQQFG4N.js");
|
|
1309
1310
|
setIconsMap({ ...importedIcons, ...customIcons });
|
|
1310
1311
|
setIsLoading(false);
|
|
1311
1312
|
};
|
|
@@ -7482,8 +7483,20 @@ var PageHeaderSection = ({
|
|
|
7482
7483
|
level = 2,
|
|
7483
7484
|
linkProps,
|
|
7484
7485
|
linkManagerComponent,
|
|
7486
|
+
afterTitle,
|
|
7487
|
+
afterTitleGap = "sm",
|
|
7488
|
+
afterTitleAlign = "center",
|
|
7485
7489
|
...htmlProps
|
|
7486
7490
|
}) => {
|
|
7491
|
+
const HeaderContent = () => {
|
|
7492
|
+
if (afterTitle) {
|
|
7493
|
+
return /* @__PURE__ */ jsxs37(HorizontalRhythm, { css: PageHeaderSectionTitle, gap: afterTitleGap, align: afterTitleAlign, children: [
|
|
7494
|
+
/* @__PURE__ */ jsx55(Heading2, { level, ...htmlProps, "data-testid": "page-header-section", withMarginBottom: false, children: title }),
|
|
7495
|
+
afterTitle
|
|
7496
|
+
] });
|
|
7497
|
+
}
|
|
7498
|
+
return /* @__PURE__ */ jsx55(Heading2, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children: title });
|
|
7499
|
+
};
|
|
7487
7500
|
if (linkText && linkProps && !linkManagerComponent) {
|
|
7488
7501
|
throw Error("You must provide a linkManagerComponent");
|
|
7489
7502
|
}
|
|
@@ -7502,7 +7515,7 @@ var PageHeaderSection = ({
|
|
|
7502
7515
|
}
|
|
7503
7516
|
)
|
|
7504
7517
|
] }) : null,
|
|
7505
|
-
/* @__PURE__ */ jsx55(
|
|
7518
|
+
/* @__PURE__ */ jsx55(HeaderContent, {}),
|
|
7506
7519
|
desc
|
|
7507
7520
|
] }),
|
|
7508
7521
|
children ? /* @__PURE__ */ jsx55("div", { css: PageHeaderSectionChildContainer, children }) : null
|
|
@@ -13615,37 +13628,45 @@ var ObjectListSubText2 = ({ children, ...props }) => {
|
|
|
13615
13628
|
import * as React20 from "react";
|
|
13616
13629
|
import Paginate from "react-paginate";
|
|
13617
13630
|
|
|
13618
|
-
// src/components/Pagination/
|
|
13619
|
-
import { css as css92 } from "@emotion/
|
|
13620
|
-
var
|
|
13631
|
+
// src/components/Pagination/Pagination.styles.ts
|
|
13632
|
+
import { css as css92 } from "@emotion/react";
|
|
13633
|
+
var container2 = "ud-pagination-container";
|
|
13634
|
+
var disabled = "ud-pagination-disabled";
|
|
13635
|
+
var disabledLink = "ud-pagination-disabled-link";
|
|
13636
|
+
var pageLink = "ud-pagination-page-link";
|
|
13637
|
+
var prevNextControls = "ud-pagination-prev-next";
|
|
13638
|
+
var active = "ud-pagination-active";
|
|
13639
|
+
var page = "ud-pagination-page";
|
|
13640
|
+
var paginationStyles = css92`
|
|
13621
13641
|
display: inline-flex;
|
|
13622
13642
|
max-width: 100%;
|
|
13623
13643
|
overflow-x: auto;
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13644
|
+
|
|
13645
|
+
.${container2} {
|
|
13646
|
+
align-items: center;
|
|
13647
|
+
display: flex;
|
|
13648
|
+
}
|
|
13649
|
+
.${container2} .${disabled} {
|
|
13650
|
+
opacity: var(--opacity-50);
|
|
13651
|
+
}
|
|
13652
|
+
.${container2} .${disabledLink} {
|
|
13653
|
+
cursor: pointer-default;
|
|
13654
|
+
}
|
|
13655
|
+
.${container2} .${pageLink} {
|
|
13656
|
+
display: block;
|
|
13657
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
13658
|
+
}
|
|
13659
|
+
.${container2} .${prevNextControls} {
|
|
13660
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
13661
|
+
}
|
|
13662
|
+
.${container2} .${active} {
|
|
13663
|
+
border-radius: var(--rounded-base);
|
|
13664
|
+
background: var(--gray-200);
|
|
13665
|
+
}
|
|
13666
|
+
.${container2} .${page} {
|
|
13667
|
+
margin-left: var(--spacing-xs);
|
|
13668
|
+
margin-right: var(--spacing-xs);
|
|
13669
|
+
}
|
|
13649
13670
|
`;
|
|
13650
13671
|
|
|
13651
13672
|
// src/components/Pagination/usePaginationDisplayRange.ts
|
|
@@ -13747,7 +13768,7 @@ function Pagination({
|
|
|
13747
13768
|
if (limit < 1 || pageCount <= 1) {
|
|
13748
13769
|
return null;
|
|
13749
13770
|
}
|
|
13750
|
-
return /* @__PURE__ */ jsx122("div", { ref: containerRef,
|
|
13771
|
+
return /* @__PURE__ */ jsx122("div", { ref: containerRef, css: paginationStyles, children: /* @__PURE__ */ jsx122(
|
|
13751
13772
|
Paginate,
|
|
13752
13773
|
{
|
|
13753
13774
|
forcePage: currentPage,
|
|
@@ -15749,7 +15770,6 @@ ParameterNumberSlider.displayName = "ParameterNumberSlider";
|
|
|
15749
15770
|
ParameterNumberSliderInner.displayName = "ParameterNumberSliderInner";
|
|
15750
15771
|
|
|
15751
15772
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
15752
|
-
import { css as css107 } from "@emotion/react";
|
|
15753
15773
|
import { ListItemNode, ListNode as ListNode3 } from "@lexical/list";
|
|
15754
15774
|
import {
|
|
15755
15775
|
CODE,
|
|
@@ -15931,245 +15951,252 @@ function DisableStylesPlugin() {
|
|
|
15931
15951
|
}
|
|
15932
15952
|
|
|
15933
15953
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
15934
|
-
import { css as css102 } from "@emotion/
|
|
15935
|
-
var textBold =
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
var
|
|
15939
|
-
|
|
15940
|
-
|
|
15941
|
-
var
|
|
15942
|
-
|
|
15943
|
-
|
|
15944
|
-
var
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
var
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
var
|
|
15951
|
-
|
|
15952
|
-
|
|
15953
|
-
|
|
15954
|
-
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
vertical-align: sub;
|
|
15967
|
-
font-size: smaller;
|
|
15968
|
-
`;
|
|
15969
|
-
var linkElement = css102`
|
|
15970
|
-
${link}
|
|
15971
|
-
${linkColorDefault}
|
|
15972
|
-
text-decoration: underline;
|
|
15973
|
-
`;
|
|
15974
|
-
var h12 = css102`
|
|
15975
|
-
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
15976
|
-
`;
|
|
15977
|
-
var h22 = css102`
|
|
15978
|
-
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
15979
|
-
`;
|
|
15980
|
-
var h32 = css102`
|
|
15981
|
-
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
15982
|
-
`;
|
|
15983
|
-
var h42 = css102`
|
|
15984
|
-
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
15985
|
-
`;
|
|
15986
|
-
var h52 = css102`
|
|
15987
|
-
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
15988
|
-
`;
|
|
15989
|
-
var h62 = css102`
|
|
15990
|
-
font-size: var(--fs-base);
|
|
15991
|
-
`;
|
|
15992
|
-
var heading1Element = css102`
|
|
15993
|
-
${h12}
|
|
15994
|
-
${commonHeadingAttr(true)}
|
|
15995
|
-
${commonLineHeight}
|
|
15996
|
-
`;
|
|
15997
|
-
var heading2Element = css102`
|
|
15998
|
-
${h22}
|
|
15999
|
-
${commonHeadingAttr(true)}
|
|
16000
|
-
${commonLineHeight}
|
|
16001
|
-
`;
|
|
16002
|
-
var heading3Element = css102`
|
|
16003
|
-
${h32}
|
|
16004
|
-
${commonHeadingAttr(true)}
|
|
16005
|
-
${commonLineHeight}
|
|
16006
|
-
`;
|
|
16007
|
-
var heading4Element = css102`
|
|
16008
|
-
${h42}
|
|
16009
|
-
${commonHeadingAttr(true)}
|
|
16010
|
-
${commonLineHeight}
|
|
16011
|
-
`;
|
|
16012
|
-
var heading5Element = css102`
|
|
16013
|
-
${h52}
|
|
16014
|
-
${commonHeadingAttr(true)}
|
|
16015
|
-
${commonLineHeight}
|
|
16016
|
-
`;
|
|
16017
|
-
var heading6Element = css102`
|
|
16018
|
-
${h62}
|
|
16019
|
-
${commonHeadingAttr(true)}
|
|
16020
|
-
${commonLineHeight}
|
|
16021
|
-
`;
|
|
16022
|
-
var paragraphElement = css102`
|
|
16023
|
-
line-height: 1.5;
|
|
16024
|
-
margin-bottom: var(--spacing-base);
|
|
16025
|
-
|
|
16026
|
-
&:last-child {
|
|
16027
|
-
margin-bottom: 0;
|
|
15954
|
+
import { css as css102 } from "@emotion/react";
|
|
15955
|
+
var textBold = "ud-editor-text-bold";
|
|
15956
|
+
var textItalic = "ud-editor-text-italic";
|
|
15957
|
+
var textUnderline = "ud-editor-text-underline";
|
|
15958
|
+
var textStrikethrough = "ud-editor-text-strikethrough";
|
|
15959
|
+
var textUnderlineStrikethrough = "ud-editor-text-underline-strikethrough";
|
|
15960
|
+
var textCode = "ud-editor-text-code";
|
|
15961
|
+
var textSuperscript = "ud-editor-text-superscript";
|
|
15962
|
+
var textSubscript = "ud-editor-text-subscript";
|
|
15963
|
+
var linkElement = "ud-editor-link";
|
|
15964
|
+
var heading1Element = "ud-editor-h1";
|
|
15965
|
+
var heading2Element = "ud-editor-h2";
|
|
15966
|
+
var heading3Element = "ud-editor-h3";
|
|
15967
|
+
var heading4Element = "ud-editor-h4";
|
|
15968
|
+
var heading5Element = "ud-editor-h5";
|
|
15969
|
+
var heading6Element = "ud-editor-h6";
|
|
15970
|
+
var paragraphElement = "ud-editor-paragraph";
|
|
15971
|
+
var orderedListElement = "ud-editor-ol";
|
|
15972
|
+
var unorderedListElement = "ud-editor-ul";
|
|
15973
|
+
var listItemElement = "ud-editor-listitem";
|
|
15974
|
+
var nestedListItemElement = "ud-editor-nested-listitem";
|
|
15975
|
+
var blockquoteElement = "ud-editor-blockquote";
|
|
15976
|
+
var codeElement = "ud-editor-code";
|
|
15977
|
+
var tableElement = "ud-editor-table";
|
|
15978
|
+
var tableCellElement = "ud-editor-table-cell";
|
|
15979
|
+
var tableHeaderElement = "ud-editor-table-header";
|
|
15980
|
+
var editorThemeStyles = css102`
|
|
15981
|
+
.${textBold} {
|
|
15982
|
+
font-weight: 700;
|
|
15983
|
+
}
|
|
15984
|
+
.${textItalic} {
|
|
15985
|
+
font-style: italic;
|
|
16028
15986
|
}
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
|
|
16037
|
-
|
|
15987
|
+
.${textUnderline} {
|
|
15988
|
+
text-decoration: underline;
|
|
15989
|
+
}
|
|
15990
|
+
.${textStrikethrough} {
|
|
15991
|
+
text-decoration: line-through;
|
|
15992
|
+
}
|
|
15993
|
+
.${textUnderlineStrikethrough} {
|
|
15994
|
+
text-decoration: underline line-through;
|
|
15995
|
+
}
|
|
15996
|
+
.${textCode} {
|
|
15997
|
+
background-color: var(--gray-100);
|
|
15998
|
+
border-radius: var(--rounded-sm);
|
|
15999
|
+
display: inline-block;
|
|
16000
|
+
font-family: var(--ff-mono);
|
|
16001
|
+
font-feature-settings: 'liga' 0;
|
|
16002
|
+
font-variant-ligatures: none;
|
|
16003
|
+
font-size: var(--fs-sm);
|
|
16004
|
+
padding-left: var(--spacing-xs);
|
|
16005
|
+
padding-right: var(--spacing-xs);
|
|
16006
|
+
}
|
|
16007
|
+
.${textSuperscript} {
|
|
16008
|
+
vertical-align: super;
|
|
16009
|
+
font-size: smaller;
|
|
16010
|
+
}
|
|
16011
|
+
.${textSubscript} {
|
|
16012
|
+
vertical-align: sub;
|
|
16013
|
+
font-size: smaller;
|
|
16014
|
+
}
|
|
16015
|
+
.${linkElement} {
|
|
16016
|
+
${link}
|
|
16017
|
+
${linkColorDefault}
|
|
16018
|
+
text-decoration: underline;
|
|
16019
|
+
}
|
|
16020
|
+
.${heading1Element} {
|
|
16021
|
+
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
16022
|
+
${commonHeadingAttr(true)}
|
|
16023
|
+
${commonLineHeight}
|
|
16024
|
+
}
|
|
16025
|
+
.${heading2Element} {
|
|
16026
|
+
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
16027
|
+
${commonHeadingAttr(true)}
|
|
16028
|
+
${commonLineHeight}
|
|
16029
|
+
}
|
|
16030
|
+
.${heading3Element} {
|
|
16031
|
+
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
16032
|
+
${commonHeadingAttr(true)}
|
|
16033
|
+
${commonLineHeight}
|
|
16034
|
+
}
|
|
16035
|
+
.${heading4Element} {
|
|
16036
|
+
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
16037
|
+
${commonHeadingAttr(true)}
|
|
16038
|
+
${commonLineHeight}
|
|
16039
|
+
}
|
|
16040
|
+
.${heading5Element} {
|
|
16041
|
+
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
16042
|
+
${commonHeadingAttr(true)}
|
|
16043
|
+
${commonLineHeight}
|
|
16044
|
+
}
|
|
16045
|
+
.${heading6Element} {
|
|
16046
|
+
font-size: var(--fs-base);
|
|
16047
|
+
${commonHeadingAttr(true)}
|
|
16048
|
+
${commonLineHeight}
|
|
16049
|
+
}
|
|
16050
|
+
.${paragraphElement} {
|
|
16051
|
+
line-height: 1.5;
|
|
16052
|
+
margin-bottom: var(--spacing-base);
|
|
16038
16053
|
|
|
16039
|
-
|
|
16040
|
-
|
|
16054
|
+
&:last-child {
|
|
16055
|
+
margin-bottom: 0;
|
|
16056
|
+
}
|
|
16041
16057
|
}
|
|
16058
|
+
.${orderedListElement} {
|
|
16059
|
+
${commonLineHeight}
|
|
16060
|
+
display: block;
|
|
16061
|
+
list-style: decimal;
|
|
16062
|
+
list-style-position: outside;
|
|
16063
|
+
margin-bottom: var(--spacing-base);
|
|
16064
|
+
margin-top: 0;
|
|
16065
|
+
padding: 0;
|
|
16042
16066
|
|
|
16043
|
-
|
|
16044
|
-
|
|
16067
|
+
&:last-child {
|
|
16068
|
+
margin-bottom: 0;
|
|
16069
|
+
}
|
|
16045
16070
|
|
|
16046
16071
|
ol {
|
|
16047
|
-
list-style-type:
|
|
16072
|
+
list-style-type: upper-alpha;
|
|
16048
16073
|
|
|
16049
16074
|
ol {
|
|
16050
|
-
list-style-type:
|
|
16075
|
+
list-style-type: lower-alpha;
|
|
16051
16076
|
|
|
16052
16077
|
ol {
|
|
16053
|
-
list-style-type:
|
|
16078
|
+
list-style-type: upper-roman;
|
|
16079
|
+
|
|
16080
|
+
ol {
|
|
16081
|
+
list-style-type: lower-roman;
|
|
16082
|
+
}
|
|
16054
16083
|
}
|
|
16055
16084
|
}
|
|
16056
16085
|
}
|
|
16057
16086
|
}
|
|
16058
|
-
|
|
16059
|
-
|
|
16060
|
-
|
|
16061
|
-
|
|
16062
|
-
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
padding: 0;
|
|
16067
|
-
|
|
16068
|
-
&:last-child {
|
|
16069
|
-
margin-bottom: 0;
|
|
16070
|
-
}
|
|
16087
|
+
.${unorderedListElement} {
|
|
16088
|
+
${commonLineHeight}
|
|
16089
|
+
display: block;
|
|
16090
|
+
list-style: disc;
|
|
16091
|
+
list-style-position: outside;
|
|
16092
|
+
margin-bottom: var(--spacing-base);
|
|
16093
|
+
margin-top: 0;
|
|
16094
|
+
padding: 0;
|
|
16071
16095
|
|
|
16072
|
-
|
|
16073
|
-
|
|
16096
|
+
&:last-child {
|
|
16097
|
+
margin-bottom: 0;
|
|
16098
|
+
}
|
|
16074
16099
|
|
|
16075
16100
|
ul {
|
|
16076
|
-
list-style-type:
|
|
16101
|
+
list-style-type: circle;
|
|
16102
|
+
|
|
16103
|
+
ul {
|
|
16104
|
+
list-style-type: square;
|
|
16105
|
+
}
|
|
16077
16106
|
}
|
|
16078
16107
|
}
|
|
16079
|
-
|
|
16080
|
-
var
|
|
16081
|
-
margin-left: var(--spacing-md);
|
|
16082
|
-
`;
|
|
16083
|
-
var nestedListItemElement = css102`
|
|
16084
|
-
list-style-type: none;
|
|
16085
|
-
`;
|
|
16086
|
-
var blockquoteElement = css102`
|
|
16087
|
-
border-left: 0.25rem solid var(--gray-300);
|
|
16088
|
-
color: var(--gray-600);
|
|
16089
|
-
margin-bottom: var(--spacing-base);
|
|
16090
|
-
padding-left: var(--spacing-base);
|
|
16091
|
-
|
|
16092
|
-
&:last-child {
|
|
16093
|
-
margin-bottom: 0;
|
|
16108
|
+
.${listItemElement} {
|
|
16109
|
+
margin-left: var(--spacing-md);
|
|
16094
16110
|
}
|
|
16095
|
-
|
|
16096
|
-
|
|
16097
|
-
|
|
16098
|
-
|
|
16099
|
-
|
|
16100
|
-
|
|
16101
|
-
|
|
16102
|
-
|
|
16103
|
-
font-size: var(--fs-sm);
|
|
16104
|
-
margin-bottom: var(--spacing-base);
|
|
16105
|
-
padding: var(--spacing-sm);
|
|
16111
|
+
.${nestedListItemElement} {
|
|
16112
|
+
list-style-type: none;
|
|
16113
|
+
}
|
|
16114
|
+
.${blockquoteElement} {
|
|
16115
|
+
border-left: 0.25rem solid var(--gray-300);
|
|
16116
|
+
color: var(--gray-600);
|
|
16117
|
+
margin-bottom: var(--spacing-base);
|
|
16118
|
+
padding-left: var(--spacing-base);
|
|
16106
16119
|
|
|
16107
|
-
|
|
16108
|
-
|
|
16120
|
+
&:last-child {
|
|
16121
|
+
margin-bottom: 0;
|
|
16122
|
+
}
|
|
16109
16123
|
}
|
|
16110
|
-
|
|
16111
|
-
var
|
|
16112
|
-
|
|
16113
|
-
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16124
|
+
.${codeElement} {
|
|
16125
|
+
background-color: var(--gray-100);
|
|
16126
|
+
border-radius: var(--rounded-sm);
|
|
16127
|
+
display: block;
|
|
16128
|
+
font-family: var(--ff-mono);
|
|
16129
|
+
font-feature-settings: 'liga' 0;
|
|
16130
|
+
font-variant-ligatures: none;
|
|
16131
|
+
font-size: var(--fs-sm);
|
|
16132
|
+
margin-bottom: var(--spacing-base);
|
|
16133
|
+
padding: var(--spacing-sm);
|
|
16119
16134
|
|
|
16120
|
-
|
|
16121
|
-
|
|
16135
|
+
&:last-child {
|
|
16136
|
+
margin-bottom: 0;
|
|
16137
|
+
}
|
|
16122
16138
|
}
|
|
16123
|
-
|
|
16124
|
-
|
|
16125
|
-
|
|
16126
|
-
|
|
16127
|
-
|
|
16128
|
-
|
|
16129
|
-
|
|
16130
|
-
|
|
16131
|
-
outline: none;
|
|
16132
|
-
padding: var(--spacing-sm);
|
|
16133
|
-
position: relative;
|
|
16134
|
-
text-align: start;
|
|
16135
|
-
vertical-align: top;
|
|
16136
|
-
width: 7rem;
|
|
16139
|
+
.${tableElement} {
|
|
16140
|
+
border-collapse: collapse;
|
|
16141
|
+
border-spacing: 0;
|
|
16142
|
+
border-color: var(--gray-300);
|
|
16143
|
+
border-width: 1px;
|
|
16144
|
+
border-style: solid;
|
|
16145
|
+
margin-bottom: var(--spacing-base);
|
|
16146
|
+
margin-top: 0;
|
|
16137
16147
|
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
|
|
16141
|
-
content: '';
|
|
16142
|
-
height: 5px;
|
|
16143
|
-
left: 0;
|
|
16144
|
-
position: absolute;
|
|
16145
|
-
top: 100%;
|
|
16146
|
-
width: 100%;
|
|
16147
|
-
z-index: 1;
|
|
16148
|
+
&:last-child {
|
|
16149
|
+
margin-bottom: 0;
|
|
16150
|
+
}
|
|
16148
16151
|
}
|
|
16152
|
+
.${tableCellElement} {
|
|
16153
|
+
background-color: var(--white);
|
|
16154
|
+
border-color: var(--gray-300);
|
|
16155
|
+
border-style: solid;
|
|
16156
|
+
border-width: 1px;
|
|
16157
|
+
box-sizing: unset;
|
|
16158
|
+
min-width: 2rem;
|
|
16159
|
+
outline: none;
|
|
16160
|
+
padding: var(--spacing-sm);
|
|
16161
|
+
position: relative;
|
|
16162
|
+
text-align: start;
|
|
16163
|
+
vertical-align: top;
|
|
16164
|
+
width: 7rem;
|
|
16149
16165
|
|
|
16150
|
-
|
|
16151
|
-
|
|
16152
|
-
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
|
|
16166
|
+
&::after {
|
|
16167
|
+
content: '';
|
|
16168
|
+
height: 5px;
|
|
16169
|
+
left: 0;
|
|
16170
|
+
position: absolute;
|
|
16171
|
+
top: 100%;
|
|
16172
|
+
width: 100%;
|
|
16173
|
+
z-index: 1;
|
|
16174
|
+
}
|
|
16175
|
+
|
|
16176
|
+
&::before {
|
|
16177
|
+
content: '';
|
|
16178
|
+
width: 5px;
|
|
16179
|
+
height: 100%;
|
|
16180
|
+
position: absolute;
|
|
16181
|
+
top: 0;
|
|
16182
|
+
left: 100%;
|
|
16183
|
+
z-index: 1;
|
|
16184
|
+
}
|
|
16185
|
+
}
|
|
16186
|
+
.${tableHeaderElement} {
|
|
16187
|
+
background-color: var(--gray-100);
|
|
16188
|
+
border-color: var(--gray-300);
|
|
16189
|
+
border-style: solid;
|
|
16190
|
+
border-width: 1px;
|
|
16191
|
+
box-sizing: unset;
|
|
16192
|
+
font-weight: normal;
|
|
16193
|
+
min-width: 2rem;
|
|
16194
|
+
outline: none;
|
|
16195
|
+
padding: var(--spacing-sm);
|
|
16196
|
+
text-align: start;
|
|
16197
|
+
vertical-align: top;
|
|
16198
|
+
width: 7rem;
|
|
16158
16199
|
}
|
|
16159
|
-
`;
|
|
16160
|
-
var tableHeaderElement = css102`
|
|
16161
|
-
background-color: var(--gray-100);
|
|
16162
|
-
border-color: var(--gray-300);
|
|
16163
|
-
border-style: solid;
|
|
16164
|
-
border-width: 1px;
|
|
16165
|
-
box-sizing: unset;
|
|
16166
|
-
font-weight: normal;
|
|
16167
|
-
min-width: 2rem;
|
|
16168
|
-
outline: none;
|
|
16169
|
-
padding: var(--spacing-sm);
|
|
16170
|
-
text-align: start;
|
|
16171
|
-
vertical-align: top;
|
|
16172
|
-
width: 7rem;
|
|
16173
16200
|
`;
|
|
16174
16201
|
|
|
16175
16202
|
// src/components/ParameterInputs/rich-text/ImprovedAssetSelectionPlugin.tsx
|
|
@@ -18248,41 +18275,8 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
18248
18275
|
};
|
|
18249
18276
|
var RichTextToolbar_default = RichTextToolbar;
|
|
18250
18277
|
|
|
18251
|
-
// src/components/ParameterInputs/ParameterRichText.
|
|
18252
|
-
import {
|
|
18253
|
-
var ParameterRichText = ({
|
|
18254
|
-
label: label2,
|
|
18255
|
-
labelLeadingIcon,
|
|
18256
|
-
hiddenLabel,
|
|
18257
|
-
id,
|
|
18258
|
-
errorMessage,
|
|
18259
|
-
caption,
|
|
18260
|
-
errorTestId,
|
|
18261
|
-
captionTestId,
|
|
18262
|
-
menuItems,
|
|
18263
|
-
children,
|
|
18264
|
-
...innerProps
|
|
18265
|
-
}) => {
|
|
18266
|
-
return /* @__PURE__ */ jsxs97(
|
|
18267
|
-
ParameterShell,
|
|
18268
|
-
{
|
|
18269
|
-
"data-testid": "parameter-richtext",
|
|
18270
|
-
label: label2,
|
|
18271
|
-
hiddenLabel,
|
|
18272
|
-
labelLeadingIcon,
|
|
18273
|
-
id,
|
|
18274
|
-
errorMessage,
|
|
18275
|
-
caption,
|
|
18276
|
-
errorTestId,
|
|
18277
|
-
captionTestId,
|
|
18278
|
-
menuItems,
|
|
18279
|
-
children: [
|
|
18280
|
-
/* @__PURE__ */ jsx144(ParameterRichTextInner, { ...innerProps, children }),
|
|
18281
|
-
menuItems ? /* @__PURE__ */ jsx144(ParameterMenuButton, { label: `${label2} menu`, children: /* @__PURE__ */ jsx144(Fragment21, { children: menuItems }) }) : null
|
|
18282
|
-
]
|
|
18283
|
-
}
|
|
18284
|
-
);
|
|
18285
|
-
};
|
|
18278
|
+
// src/components/ParameterInputs/styles/ParameterRichText.styles.ts
|
|
18279
|
+
import { css as css107 } from "@emotion/react";
|
|
18286
18280
|
var editorContainerWrapper = css107`
|
|
18287
18281
|
position: relative;
|
|
18288
18282
|
|
|
@@ -18364,6 +18358,42 @@ var editorInput = css107`
|
|
|
18364
18358
|
outline: none;
|
|
18365
18359
|
}
|
|
18366
18360
|
`;
|
|
18361
|
+
|
|
18362
|
+
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
18363
|
+
import { Fragment as Fragment21, jsx as jsx144, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
18364
|
+
var ParameterRichText = ({
|
|
18365
|
+
label: label2,
|
|
18366
|
+
labelLeadingIcon,
|
|
18367
|
+
hiddenLabel,
|
|
18368
|
+
id,
|
|
18369
|
+
errorMessage,
|
|
18370
|
+
caption,
|
|
18371
|
+
errorTestId,
|
|
18372
|
+
captionTestId,
|
|
18373
|
+
menuItems,
|
|
18374
|
+
children,
|
|
18375
|
+
...innerProps
|
|
18376
|
+
}) => {
|
|
18377
|
+
return /* @__PURE__ */ jsxs97(
|
|
18378
|
+
ParameterShell,
|
|
18379
|
+
{
|
|
18380
|
+
"data-testid": "parameter-richtext",
|
|
18381
|
+
label: label2,
|
|
18382
|
+
hiddenLabel,
|
|
18383
|
+
labelLeadingIcon,
|
|
18384
|
+
id,
|
|
18385
|
+
errorMessage,
|
|
18386
|
+
caption,
|
|
18387
|
+
errorTestId,
|
|
18388
|
+
captionTestId,
|
|
18389
|
+
menuItems,
|
|
18390
|
+
children: [
|
|
18391
|
+
/* @__PURE__ */ jsx144(ParameterRichTextInner, { ...innerProps, children }),
|
|
18392
|
+
menuItems ? /* @__PURE__ */ jsx144(ParameterMenuButton, { label: `${label2} menu`, children: /* @__PURE__ */ jsx144(Fragment21, { children: menuItems }) }) : null
|
|
18393
|
+
]
|
|
18394
|
+
}
|
|
18395
|
+
);
|
|
18396
|
+
};
|
|
18367
18397
|
var ParameterRichTextInner = ({
|
|
18368
18398
|
value,
|
|
18369
18399
|
editorFooter,
|
|
@@ -18429,7 +18459,7 @@ var ParameterRichTextInner = ({
|
|
|
18429
18459
|
editable: !richTextProps.readOnly
|
|
18430
18460
|
};
|
|
18431
18461
|
return /* @__PURE__ */ jsxs97(Fragment21, { children: [
|
|
18432
|
-
/* @__PURE__ */ jsx144("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx144(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx144(RichText, { ...richTextProps, children }) }) }),
|
|
18462
|
+
/* @__PURE__ */ jsx144("div", { css: [editorWrapper, editorThemeStyles], className: editorWrapperClassName, children: /* @__PURE__ */ jsx144(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx144(RichText, { ...richTextProps, children }) }) }),
|
|
18433
18463
|
editorFooter ? editorFooter : null
|
|
18434
18464
|
] });
|
|
18435
18465
|
};
|