@uniformdev/design-system 20.66.6 → 20.66.7-alpha.10
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
|
|
@@ -13351,7 +13364,7 @@ var ObjectListItemTitleColumnContent = css89`
|
|
|
13351
13364
|
`;
|
|
13352
13365
|
var objectListItemContentWrapperColumns = (minContainerQueryWidth, hasCover) => css89`
|
|
13353
13366
|
${cq(minContainerQueryWidth)} {
|
|
13354
|
-
grid-template-columns: ${hasCover ? "minmax(0, auto) " : "
|
|
13367
|
+
grid-template-columns: ${hasCover ? "minmax(0, auto) minmax(0, 1fr) minmax(0, auto)" : "minmax(0, 1fr) minmax(0, auto)"};
|
|
13355
13368
|
}
|
|
13356
13369
|
`;
|
|
13357
13370
|
var ObjectListItemRightSlot = css89`
|
|
@@ -13660,37 +13673,45 @@ var ObjectListSubText2 = ({ children, ...props }) => {
|
|
|
13660
13673
|
import * as React20 from "react";
|
|
13661
13674
|
import Paginate from "react-paginate";
|
|
13662
13675
|
|
|
13663
|
-
// src/components/Pagination/
|
|
13664
|
-
import { css as css92 } from "@emotion/
|
|
13665
|
-
var
|
|
13676
|
+
// src/components/Pagination/Pagination.styles.ts
|
|
13677
|
+
import { css as css92 } from "@emotion/react";
|
|
13678
|
+
var container2 = "ud-pagination-container";
|
|
13679
|
+
var disabled = "ud-pagination-disabled";
|
|
13680
|
+
var disabledLink = "ud-pagination-disabled-link";
|
|
13681
|
+
var pageLink = "ud-pagination-page-link";
|
|
13682
|
+
var prevNextControls = "ud-pagination-prev-next";
|
|
13683
|
+
var active = "ud-pagination-active";
|
|
13684
|
+
var page = "ud-pagination-page";
|
|
13685
|
+
var paginationStyles = css92`
|
|
13666
13686
|
display: inline-flex;
|
|
13667
13687
|
max-width: 100%;
|
|
13668
13688
|
overflow-x: auto;
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
|
|
13689
|
-
|
|
13690
|
-
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
|
|
13689
|
+
|
|
13690
|
+
.${container2} {
|
|
13691
|
+
align-items: center;
|
|
13692
|
+
display: flex;
|
|
13693
|
+
}
|
|
13694
|
+
.${container2} .${disabled} {
|
|
13695
|
+
opacity: var(--opacity-50);
|
|
13696
|
+
}
|
|
13697
|
+
.${container2} .${disabledLink} {
|
|
13698
|
+
cursor: pointer-default;
|
|
13699
|
+
}
|
|
13700
|
+
.${container2} .${pageLink} {
|
|
13701
|
+
display: block;
|
|
13702
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
13703
|
+
}
|
|
13704
|
+
.${container2} .${prevNextControls} {
|
|
13705
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
13706
|
+
}
|
|
13707
|
+
.${container2} .${active} {
|
|
13708
|
+
border-radius: var(--rounded-base);
|
|
13709
|
+
background: var(--gray-200);
|
|
13710
|
+
}
|
|
13711
|
+
.${container2} .${page} {
|
|
13712
|
+
margin-left: var(--spacing-xs);
|
|
13713
|
+
margin-right: var(--spacing-xs);
|
|
13714
|
+
}
|
|
13694
13715
|
`;
|
|
13695
13716
|
|
|
13696
13717
|
// src/components/Pagination/usePaginationDisplayRange.ts
|
|
@@ -13792,7 +13813,7 @@ function Pagination({
|
|
|
13792
13813
|
if (limit < 1 || pageCount <= 1) {
|
|
13793
13814
|
return null;
|
|
13794
13815
|
}
|
|
13795
|
-
return /* @__PURE__ */ jsx122("div", { ref: containerRef,
|
|
13816
|
+
return /* @__PURE__ */ jsx122("div", { ref: containerRef, css: paginationStyles, children: /* @__PURE__ */ jsx122(
|
|
13796
13817
|
Paginate,
|
|
13797
13818
|
{
|
|
13798
13819
|
forcePage: currentPage,
|
|
@@ -15794,7 +15815,6 @@ ParameterNumberSlider.displayName = "ParameterNumberSlider";
|
|
|
15794
15815
|
ParameterNumberSliderInner.displayName = "ParameterNumberSliderInner";
|
|
15795
15816
|
|
|
15796
15817
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
15797
|
-
import { css as css107 } from "@emotion/react";
|
|
15798
15818
|
import { ListItemNode, ListNode as ListNode3 } from "@lexical/list";
|
|
15799
15819
|
import {
|
|
15800
15820
|
CODE,
|
|
@@ -15976,245 +15996,252 @@ function DisableStylesPlugin() {
|
|
|
15976
15996
|
}
|
|
15977
15997
|
|
|
15978
15998
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
15979
|
-
import { css as css102 } from "@emotion/
|
|
15980
|
-
var textBold =
|
|
15981
|
-
|
|
15982
|
-
|
|
15983
|
-
var
|
|
15984
|
-
|
|
15985
|
-
|
|
15986
|
-
var
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
var
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
var
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
var
|
|
15996
|
-
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
vertical-align: sub;
|
|
16012
|
-
font-size: smaller;
|
|
16013
|
-
`;
|
|
16014
|
-
var linkElement = css102`
|
|
16015
|
-
${link}
|
|
16016
|
-
${linkColorDefault}
|
|
16017
|
-
text-decoration: underline;
|
|
16018
|
-
`;
|
|
16019
|
-
var h12 = css102`
|
|
16020
|
-
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
16021
|
-
`;
|
|
16022
|
-
var h22 = css102`
|
|
16023
|
-
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
16024
|
-
`;
|
|
16025
|
-
var h32 = css102`
|
|
16026
|
-
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
16027
|
-
`;
|
|
16028
|
-
var h42 = css102`
|
|
16029
|
-
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
16030
|
-
`;
|
|
16031
|
-
var h52 = css102`
|
|
16032
|
-
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
16033
|
-
`;
|
|
16034
|
-
var h62 = css102`
|
|
16035
|
-
font-size: var(--fs-base);
|
|
16036
|
-
`;
|
|
16037
|
-
var heading1Element = css102`
|
|
16038
|
-
${h12}
|
|
16039
|
-
${commonHeadingAttr(true)}
|
|
16040
|
-
${commonLineHeight}
|
|
16041
|
-
`;
|
|
16042
|
-
var heading2Element = css102`
|
|
16043
|
-
${h22}
|
|
16044
|
-
${commonHeadingAttr(true)}
|
|
16045
|
-
${commonLineHeight}
|
|
16046
|
-
`;
|
|
16047
|
-
var heading3Element = css102`
|
|
16048
|
-
${h32}
|
|
16049
|
-
${commonHeadingAttr(true)}
|
|
16050
|
-
${commonLineHeight}
|
|
16051
|
-
`;
|
|
16052
|
-
var heading4Element = css102`
|
|
16053
|
-
${h42}
|
|
16054
|
-
${commonHeadingAttr(true)}
|
|
16055
|
-
${commonLineHeight}
|
|
16056
|
-
`;
|
|
16057
|
-
var heading5Element = css102`
|
|
16058
|
-
${h52}
|
|
16059
|
-
${commonHeadingAttr(true)}
|
|
16060
|
-
${commonLineHeight}
|
|
16061
|
-
`;
|
|
16062
|
-
var heading6Element = css102`
|
|
16063
|
-
${h62}
|
|
16064
|
-
${commonHeadingAttr(true)}
|
|
16065
|
-
${commonLineHeight}
|
|
16066
|
-
`;
|
|
16067
|
-
var paragraphElement = css102`
|
|
16068
|
-
line-height: 1.5;
|
|
16069
|
-
margin-bottom: var(--spacing-base);
|
|
16070
|
-
|
|
16071
|
-
&:last-child {
|
|
16072
|
-
margin-bottom: 0;
|
|
15999
|
+
import { css as css102 } from "@emotion/react";
|
|
16000
|
+
var textBold = "ud-editor-text-bold";
|
|
16001
|
+
var textItalic = "ud-editor-text-italic";
|
|
16002
|
+
var textUnderline = "ud-editor-text-underline";
|
|
16003
|
+
var textStrikethrough = "ud-editor-text-strikethrough";
|
|
16004
|
+
var textUnderlineStrikethrough = "ud-editor-text-underline-strikethrough";
|
|
16005
|
+
var textCode = "ud-editor-text-code";
|
|
16006
|
+
var textSuperscript = "ud-editor-text-superscript";
|
|
16007
|
+
var textSubscript = "ud-editor-text-subscript";
|
|
16008
|
+
var linkElement = "ud-editor-link";
|
|
16009
|
+
var heading1Element = "ud-editor-h1";
|
|
16010
|
+
var heading2Element = "ud-editor-h2";
|
|
16011
|
+
var heading3Element = "ud-editor-h3";
|
|
16012
|
+
var heading4Element = "ud-editor-h4";
|
|
16013
|
+
var heading5Element = "ud-editor-h5";
|
|
16014
|
+
var heading6Element = "ud-editor-h6";
|
|
16015
|
+
var paragraphElement = "ud-editor-paragraph";
|
|
16016
|
+
var orderedListElement = "ud-editor-ol";
|
|
16017
|
+
var unorderedListElement = "ud-editor-ul";
|
|
16018
|
+
var listItemElement = "ud-editor-listitem";
|
|
16019
|
+
var nestedListItemElement = "ud-editor-nested-listitem";
|
|
16020
|
+
var blockquoteElement = "ud-editor-blockquote";
|
|
16021
|
+
var codeElement = "ud-editor-code";
|
|
16022
|
+
var tableElement = "ud-editor-table";
|
|
16023
|
+
var tableCellElement = "ud-editor-table-cell";
|
|
16024
|
+
var tableHeaderElement = "ud-editor-table-header";
|
|
16025
|
+
var editorThemeStyles = css102`
|
|
16026
|
+
.${textBold} {
|
|
16027
|
+
font-weight: 700;
|
|
16028
|
+
}
|
|
16029
|
+
.${textItalic} {
|
|
16030
|
+
font-style: italic;
|
|
16073
16031
|
}
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
16032
|
+
.${textUnderline} {
|
|
16033
|
+
text-decoration: underline;
|
|
16034
|
+
}
|
|
16035
|
+
.${textStrikethrough} {
|
|
16036
|
+
text-decoration: line-through;
|
|
16037
|
+
}
|
|
16038
|
+
.${textUnderlineStrikethrough} {
|
|
16039
|
+
text-decoration: underline line-through;
|
|
16040
|
+
}
|
|
16041
|
+
.${textCode} {
|
|
16042
|
+
background-color: var(--gray-100);
|
|
16043
|
+
border-radius: var(--rounded-sm);
|
|
16044
|
+
display: inline-block;
|
|
16045
|
+
font-family: var(--ff-mono);
|
|
16046
|
+
font-feature-settings: 'liga' 0;
|
|
16047
|
+
font-variant-ligatures: none;
|
|
16048
|
+
font-size: var(--fs-sm);
|
|
16049
|
+
padding-left: var(--spacing-xs);
|
|
16050
|
+
padding-right: var(--spacing-xs);
|
|
16051
|
+
}
|
|
16052
|
+
.${textSuperscript} {
|
|
16053
|
+
vertical-align: super;
|
|
16054
|
+
font-size: smaller;
|
|
16055
|
+
}
|
|
16056
|
+
.${textSubscript} {
|
|
16057
|
+
vertical-align: sub;
|
|
16058
|
+
font-size: smaller;
|
|
16059
|
+
}
|
|
16060
|
+
.${linkElement} {
|
|
16061
|
+
${link}
|
|
16062
|
+
${linkColorDefault}
|
|
16063
|
+
text-decoration: underline;
|
|
16064
|
+
}
|
|
16065
|
+
.${heading1Element} {
|
|
16066
|
+
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
16067
|
+
${commonHeadingAttr(true)}
|
|
16068
|
+
${commonLineHeight}
|
|
16069
|
+
}
|
|
16070
|
+
.${heading2Element} {
|
|
16071
|
+
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
16072
|
+
${commonHeadingAttr(true)}
|
|
16073
|
+
${commonLineHeight}
|
|
16074
|
+
}
|
|
16075
|
+
.${heading3Element} {
|
|
16076
|
+
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
16077
|
+
${commonHeadingAttr(true)}
|
|
16078
|
+
${commonLineHeight}
|
|
16079
|
+
}
|
|
16080
|
+
.${heading4Element} {
|
|
16081
|
+
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
16082
|
+
${commonHeadingAttr(true)}
|
|
16083
|
+
${commonLineHeight}
|
|
16084
|
+
}
|
|
16085
|
+
.${heading5Element} {
|
|
16086
|
+
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
16087
|
+
${commonHeadingAttr(true)}
|
|
16088
|
+
${commonLineHeight}
|
|
16089
|
+
}
|
|
16090
|
+
.${heading6Element} {
|
|
16091
|
+
font-size: var(--fs-base);
|
|
16092
|
+
${commonHeadingAttr(true)}
|
|
16093
|
+
${commonLineHeight}
|
|
16094
|
+
}
|
|
16095
|
+
.${paragraphElement} {
|
|
16096
|
+
line-height: 1.5;
|
|
16097
|
+
margin-bottom: var(--spacing-base);
|
|
16083
16098
|
|
|
16084
|
-
|
|
16085
|
-
|
|
16099
|
+
&:last-child {
|
|
16100
|
+
margin-bottom: 0;
|
|
16101
|
+
}
|
|
16086
16102
|
}
|
|
16103
|
+
.${orderedListElement} {
|
|
16104
|
+
${commonLineHeight}
|
|
16105
|
+
display: block;
|
|
16106
|
+
list-style: decimal;
|
|
16107
|
+
list-style-position: outside;
|
|
16108
|
+
margin-bottom: var(--spacing-base);
|
|
16109
|
+
margin-top: 0;
|
|
16110
|
+
padding: 0;
|
|
16087
16111
|
|
|
16088
|
-
|
|
16089
|
-
|
|
16112
|
+
&:last-child {
|
|
16113
|
+
margin-bottom: 0;
|
|
16114
|
+
}
|
|
16090
16115
|
|
|
16091
16116
|
ol {
|
|
16092
|
-
list-style-type:
|
|
16117
|
+
list-style-type: upper-alpha;
|
|
16093
16118
|
|
|
16094
16119
|
ol {
|
|
16095
|
-
list-style-type:
|
|
16120
|
+
list-style-type: lower-alpha;
|
|
16096
16121
|
|
|
16097
16122
|
ol {
|
|
16098
|
-
list-style-type:
|
|
16123
|
+
list-style-type: upper-roman;
|
|
16124
|
+
|
|
16125
|
+
ol {
|
|
16126
|
+
list-style-type: lower-roman;
|
|
16127
|
+
}
|
|
16099
16128
|
}
|
|
16100
16129
|
}
|
|
16101
16130
|
}
|
|
16102
16131
|
}
|
|
16103
|
-
|
|
16104
|
-
|
|
16105
|
-
|
|
16106
|
-
|
|
16107
|
-
|
|
16108
|
-
|
|
16109
|
-
|
|
16110
|
-
|
|
16111
|
-
padding: 0;
|
|
16112
|
-
|
|
16113
|
-
&:last-child {
|
|
16114
|
-
margin-bottom: 0;
|
|
16115
|
-
}
|
|
16132
|
+
.${unorderedListElement} {
|
|
16133
|
+
${commonLineHeight}
|
|
16134
|
+
display: block;
|
|
16135
|
+
list-style: disc;
|
|
16136
|
+
list-style-position: outside;
|
|
16137
|
+
margin-bottom: var(--spacing-base);
|
|
16138
|
+
margin-top: 0;
|
|
16139
|
+
padding: 0;
|
|
16116
16140
|
|
|
16117
|
-
|
|
16118
|
-
|
|
16141
|
+
&:last-child {
|
|
16142
|
+
margin-bottom: 0;
|
|
16143
|
+
}
|
|
16119
16144
|
|
|
16120
16145
|
ul {
|
|
16121
|
-
list-style-type:
|
|
16146
|
+
list-style-type: circle;
|
|
16147
|
+
|
|
16148
|
+
ul {
|
|
16149
|
+
list-style-type: square;
|
|
16150
|
+
}
|
|
16122
16151
|
}
|
|
16123
16152
|
}
|
|
16124
|
-
|
|
16125
|
-
var
|
|
16126
|
-
margin-left: var(--spacing-md);
|
|
16127
|
-
`;
|
|
16128
|
-
var nestedListItemElement = css102`
|
|
16129
|
-
list-style-type: none;
|
|
16130
|
-
`;
|
|
16131
|
-
var blockquoteElement = css102`
|
|
16132
|
-
border-left: 0.25rem solid var(--gray-300);
|
|
16133
|
-
color: var(--gray-600);
|
|
16134
|
-
margin-bottom: var(--spacing-base);
|
|
16135
|
-
padding-left: var(--spacing-base);
|
|
16136
|
-
|
|
16137
|
-
&:last-child {
|
|
16138
|
-
margin-bottom: 0;
|
|
16153
|
+
.${listItemElement} {
|
|
16154
|
+
margin-left: var(--spacing-md);
|
|
16139
16155
|
}
|
|
16140
|
-
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
|
|
16146
|
-
|
|
16147
|
-
|
|
16148
|
-
font-size: var(--fs-sm);
|
|
16149
|
-
margin-bottom: var(--spacing-base);
|
|
16150
|
-
padding: var(--spacing-sm);
|
|
16156
|
+
.${nestedListItemElement} {
|
|
16157
|
+
list-style-type: none;
|
|
16158
|
+
}
|
|
16159
|
+
.${blockquoteElement} {
|
|
16160
|
+
border-left: 0.25rem solid var(--gray-300);
|
|
16161
|
+
color: var(--gray-600);
|
|
16162
|
+
margin-bottom: var(--spacing-base);
|
|
16163
|
+
padding-left: var(--spacing-base);
|
|
16151
16164
|
|
|
16152
|
-
|
|
16153
|
-
|
|
16165
|
+
&:last-child {
|
|
16166
|
+
margin-bottom: 0;
|
|
16167
|
+
}
|
|
16154
16168
|
}
|
|
16155
|
-
|
|
16156
|
-
var
|
|
16157
|
-
|
|
16158
|
-
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
|
|
16163
|
-
|
|
16169
|
+
.${codeElement} {
|
|
16170
|
+
background-color: var(--gray-100);
|
|
16171
|
+
border-radius: var(--rounded-sm);
|
|
16172
|
+
display: block;
|
|
16173
|
+
font-family: var(--ff-mono);
|
|
16174
|
+
font-feature-settings: 'liga' 0;
|
|
16175
|
+
font-variant-ligatures: none;
|
|
16176
|
+
font-size: var(--fs-sm);
|
|
16177
|
+
margin-bottom: var(--spacing-base);
|
|
16178
|
+
padding: var(--spacing-sm);
|
|
16164
16179
|
|
|
16165
|
-
|
|
16166
|
-
|
|
16180
|
+
&:last-child {
|
|
16181
|
+
margin-bottom: 0;
|
|
16182
|
+
}
|
|
16167
16183
|
}
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
|
|
16171
|
-
|
|
16172
|
-
|
|
16173
|
-
|
|
16174
|
-
|
|
16175
|
-
|
|
16176
|
-
outline: none;
|
|
16177
|
-
padding: var(--spacing-sm);
|
|
16178
|
-
position: relative;
|
|
16179
|
-
text-align: start;
|
|
16180
|
-
vertical-align: top;
|
|
16181
|
-
width: 7rem;
|
|
16184
|
+
.${tableElement} {
|
|
16185
|
+
border-collapse: collapse;
|
|
16186
|
+
border-spacing: 0;
|
|
16187
|
+
border-color: var(--gray-300);
|
|
16188
|
+
border-width: 1px;
|
|
16189
|
+
border-style: solid;
|
|
16190
|
+
margin-bottom: var(--spacing-base);
|
|
16191
|
+
margin-top: 0;
|
|
16182
16192
|
|
|
16183
|
-
|
|
16184
|
-
|
|
16185
|
-
|
|
16186
|
-
content: '';
|
|
16187
|
-
height: 5px;
|
|
16188
|
-
left: 0;
|
|
16189
|
-
position: absolute;
|
|
16190
|
-
top: 100%;
|
|
16191
|
-
width: 100%;
|
|
16192
|
-
z-index: 1;
|
|
16193
|
+
&:last-child {
|
|
16194
|
+
margin-bottom: 0;
|
|
16195
|
+
}
|
|
16193
16196
|
}
|
|
16197
|
+
.${tableCellElement} {
|
|
16198
|
+
background-color: var(--white);
|
|
16199
|
+
border-color: var(--gray-300);
|
|
16200
|
+
border-style: solid;
|
|
16201
|
+
border-width: 1px;
|
|
16202
|
+
box-sizing: unset;
|
|
16203
|
+
min-width: 2rem;
|
|
16204
|
+
outline: none;
|
|
16205
|
+
padding: var(--spacing-sm);
|
|
16206
|
+
position: relative;
|
|
16207
|
+
text-align: start;
|
|
16208
|
+
vertical-align: top;
|
|
16209
|
+
width: 7rem;
|
|
16194
16210
|
|
|
16195
|
-
|
|
16196
|
-
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
16211
|
+
&::after {
|
|
16212
|
+
content: '';
|
|
16213
|
+
height: 5px;
|
|
16214
|
+
left: 0;
|
|
16215
|
+
position: absolute;
|
|
16216
|
+
top: 100%;
|
|
16217
|
+
width: 100%;
|
|
16218
|
+
z-index: 1;
|
|
16219
|
+
}
|
|
16220
|
+
|
|
16221
|
+
&::before {
|
|
16222
|
+
content: '';
|
|
16223
|
+
width: 5px;
|
|
16224
|
+
height: 100%;
|
|
16225
|
+
position: absolute;
|
|
16226
|
+
top: 0;
|
|
16227
|
+
left: 100%;
|
|
16228
|
+
z-index: 1;
|
|
16229
|
+
}
|
|
16230
|
+
}
|
|
16231
|
+
.${tableHeaderElement} {
|
|
16232
|
+
background-color: var(--gray-100);
|
|
16233
|
+
border-color: var(--gray-300);
|
|
16234
|
+
border-style: solid;
|
|
16235
|
+
border-width: 1px;
|
|
16236
|
+
box-sizing: unset;
|
|
16237
|
+
font-weight: normal;
|
|
16238
|
+
min-width: 2rem;
|
|
16239
|
+
outline: none;
|
|
16240
|
+
padding: var(--spacing-sm);
|
|
16241
|
+
text-align: start;
|
|
16242
|
+
vertical-align: top;
|
|
16243
|
+
width: 7rem;
|
|
16203
16244
|
}
|
|
16204
|
-
`;
|
|
16205
|
-
var tableHeaderElement = css102`
|
|
16206
|
-
background-color: var(--gray-100);
|
|
16207
|
-
border-color: var(--gray-300);
|
|
16208
|
-
border-style: solid;
|
|
16209
|
-
border-width: 1px;
|
|
16210
|
-
box-sizing: unset;
|
|
16211
|
-
font-weight: normal;
|
|
16212
|
-
min-width: 2rem;
|
|
16213
|
-
outline: none;
|
|
16214
|
-
padding: var(--spacing-sm);
|
|
16215
|
-
text-align: start;
|
|
16216
|
-
vertical-align: top;
|
|
16217
|
-
width: 7rem;
|
|
16218
16245
|
`;
|
|
16219
16246
|
|
|
16220
16247
|
// src/components/ParameterInputs/rich-text/ImprovedAssetSelectionPlugin.tsx
|
|
@@ -18293,41 +18320,8 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
18293
18320
|
};
|
|
18294
18321
|
var RichTextToolbar_default = RichTextToolbar;
|
|
18295
18322
|
|
|
18296
|
-
// src/components/ParameterInputs/ParameterRichText.
|
|
18297
|
-
import {
|
|
18298
|
-
var ParameterRichText = ({
|
|
18299
|
-
label: label2,
|
|
18300
|
-
labelLeadingIcon,
|
|
18301
|
-
hiddenLabel,
|
|
18302
|
-
id,
|
|
18303
|
-
errorMessage,
|
|
18304
|
-
caption,
|
|
18305
|
-
errorTestId,
|
|
18306
|
-
captionTestId,
|
|
18307
|
-
menuItems,
|
|
18308
|
-
children,
|
|
18309
|
-
...innerProps
|
|
18310
|
-
}) => {
|
|
18311
|
-
return /* @__PURE__ */ jsxs97(
|
|
18312
|
-
ParameterShell,
|
|
18313
|
-
{
|
|
18314
|
-
"data-testid": "parameter-richtext",
|
|
18315
|
-
label: label2,
|
|
18316
|
-
hiddenLabel,
|
|
18317
|
-
labelLeadingIcon,
|
|
18318
|
-
id,
|
|
18319
|
-
errorMessage,
|
|
18320
|
-
caption,
|
|
18321
|
-
errorTestId,
|
|
18322
|
-
captionTestId,
|
|
18323
|
-
menuItems,
|
|
18324
|
-
children: [
|
|
18325
|
-
/* @__PURE__ */ jsx144(ParameterRichTextInner, { ...innerProps, children }),
|
|
18326
|
-
menuItems ? /* @__PURE__ */ jsx144(ParameterMenuButton, { label: `${label2} menu`, children: /* @__PURE__ */ jsx144(Fragment21, { children: menuItems }) }) : null
|
|
18327
|
-
]
|
|
18328
|
-
}
|
|
18329
|
-
);
|
|
18330
|
-
};
|
|
18323
|
+
// src/components/ParameterInputs/styles/ParameterRichText.styles.ts
|
|
18324
|
+
import { css as css107 } from "@emotion/react";
|
|
18331
18325
|
var editorContainerWrapper = css107`
|
|
18332
18326
|
position: relative;
|
|
18333
18327
|
|
|
@@ -18409,6 +18403,42 @@ var editorInput = css107`
|
|
|
18409
18403
|
outline: none;
|
|
18410
18404
|
}
|
|
18411
18405
|
`;
|
|
18406
|
+
|
|
18407
|
+
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
18408
|
+
import { Fragment as Fragment21, jsx as jsx144, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
18409
|
+
var ParameterRichText = ({
|
|
18410
|
+
label: label2,
|
|
18411
|
+
labelLeadingIcon,
|
|
18412
|
+
hiddenLabel,
|
|
18413
|
+
id,
|
|
18414
|
+
errorMessage,
|
|
18415
|
+
caption,
|
|
18416
|
+
errorTestId,
|
|
18417
|
+
captionTestId,
|
|
18418
|
+
menuItems,
|
|
18419
|
+
children,
|
|
18420
|
+
...innerProps
|
|
18421
|
+
}) => {
|
|
18422
|
+
return /* @__PURE__ */ jsxs97(
|
|
18423
|
+
ParameterShell,
|
|
18424
|
+
{
|
|
18425
|
+
"data-testid": "parameter-richtext",
|
|
18426
|
+
label: label2,
|
|
18427
|
+
hiddenLabel,
|
|
18428
|
+
labelLeadingIcon,
|
|
18429
|
+
id,
|
|
18430
|
+
errorMessage,
|
|
18431
|
+
caption,
|
|
18432
|
+
errorTestId,
|
|
18433
|
+
captionTestId,
|
|
18434
|
+
menuItems,
|
|
18435
|
+
children: [
|
|
18436
|
+
/* @__PURE__ */ jsx144(ParameterRichTextInner, { ...innerProps, children }),
|
|
18437
|
+
menuItems ? /* @__PURE__ */ jsx144(ParameterMenuButton, { label: `${label2} menu`, children: /* @__PURE__ */ jsx144(Fragment21, { children: menuItems }) }) : null
|
|
18438
|
+
]
|
|
18439
|
+
}
|
|
18440
|
+
);
|
|
18441
|
+
};
|
|
18412
18442
|
var ParameterRichTextInner = ({
|
|
18413
18443
|
value,
|
|
18414
18444
|
editorFooter,
|
|
@@ -18474,7 +18504,7 @@ var ParameterRichTextInner = ({
|
|
|
18474
18504
|
editable: !richTextProps.readOnly
|
|
18475
18505
|
};
|
|
18476
18506
|
return /* @__PURE__ */ jsxs97(Fragment21, { children: [
|
|
18477
|
-
/* @__PURE__ */ jsx144("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx144(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx144(RichText, { ...richTextProps, children }) }) }),
|
|
18507
|
+
/* @__PURE__ */ jsx144("div", { css: [editorWrapper, editorThemeStyles], className: editorWrapperClassName, children: /* @__PURE__ */ jsx144(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx144(RichText, { ...richTextProps, children }) }) }),
|
|
18478
18508
|
editorFooter ? editorFooter : null
|
|
18479
18509
|
] });
|
|
18480
18510
|
};
|