@uniformdev/design-system 20.50.2-alpha.109 → 20.50.2-alpha.146

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
- import "./chunk-6NI3O2RY.js";
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";
@@ -897,6 +898,62 @@ var BetaDecorator = (Story) => /* @__PURE__ */ jsxs5(VerticalRhythm, { children:
897
898
  /* @__PURE__ */ jsx10(Story, {})
898
899
  ] });
899
900
 
901
+ // src/components/utils/nativeButton.ts
902
+ import * as React2 from "react";
903
+
904
+ // src/components/utils/suppressBaseUiNativeButtonWarning.ts
905
+ var NATIVE_BUTTON_WARNING_MARKER = "acts as a button expected";
906
+ var INSTALLED_FLAG = Symbol.for("uniform.designSystem.baseUiNativeButtonWarningFilterInstalled");
907
+ function installBaseUiNativeButtonWarningFilter() {
908
+ if (process.env.NODE_ENV === "production") {
909
+ return;
910
+ }
911
+ const globalScope = globalThis;
912
+ if (globalScope[INSTALLED_FLAG]) {
913
+ return;
914
+ }
915
+ globalScope[INSTALLED_FLAG] = true;
916
+ const originalConsoleError = console.error;
917
+ console.error = function filteredConsoleError(...args) {
918
+ if (typeof args[0] === "string" && args[0].includes(NATIVE_BUTTON_WARNING_MARKER)) {
919
+ return;
920
+ }
921
+ originalConsoleError.apply(console, args);
922
+ };
923
+ }
924
+
925
+ // src/components/utils/nativeButton.ts
926
+ installBaseUiNativeButtonWarningFilter();
927
+ function markNativeButton(component) {
928
+ component.renderNativeButton = true;
929
+ return component;
930
+ }
931
+ function isNativeButtonTrigger(element) {
932
+ if (!React2.isValidElement(element)) {
933
+ return false;
934
+ }
935
+ if (element.type === "button") {
936
+ return true;
937
+ }
938
+ if (typeof element.type !== "string") {
939
+ if (element.type.renderNativeButton) {
940
+ return true;
941
+ }
942
+ const props = element.props;
943
+ if ((props == null ? void 0 : props.type) === "button") {
944
+ return true;
945
+ }
946
+ const emotionType = props == null ? void 0 : props.__EMOTION_TYPE_PLEASE_DO_NOT_USE__;
947
+ if (emotionType === "button") {
948
+ return true;
949
+ }
950
+ if (emotionType && typeof emotionType !== "string" && emotionType.renderNativeButton) {
951
+ return true;
952
+ }
953
+ }
954
+ return false;
955
+ }
956
+
900
957
  // src/utils/debounce.ts
901
958
  var debounce = (fn, ms = 300) => {
902
959
  let timeoutId;
@@ -1241,7 +1298,7 @@ import { GenIcon } from "@react-icons/all-files";
1241
1298
  import { MdSettings } from "@react-icons/all-files/md/MdSettings";
1242
1299
 
1243
1300
  // src/components/Icons/Icon.tsx
1244
- import React2 from "react";
1301
+ import React3 from "react";
1245
1302
 
1246
1303
  // src/components/Icons/Icon.styles.ts
1247
1304
  import { css as css11 } from "@emotion/react";
@@ -1305,7 +1362,7 @@ function IconsProvider({ children }) {
1305
1362
  const [isLoading, setIsLoading] = useState(true);
1306
1363
  const [iconsMap, setIconsMap] = useState({});
1307
1364
  const initializeIconsMap = async () => {
1308
- const { importedIcons } = await import("./importedIcons-NFIA4IOK.js");
1365
+ const { importedIcons } = await import("./importedIcons-ZMQQFG4N.js");
1309
1366
  setIconsMap({ ...importedIcons, ...customIcons });
1310
1367
  setIsLoading(false);
1311
1368
  };
@@ -1354,7 +1411,7 @@ var IconInner = ({ icon, iconColor = "default", size = "1.5rem", ...otherProps }
1354
1411
  }
1355
1412
  );
1356
1413
  };
1357
- var Icon = React2.memo(IconInner);
1414
+ var Icon = React3.memo(IconInner);
1358
1415
 
1359
1416
  // src/components/Icons/customIcons.tsx
1360
1417
  import { jsx as jsx13 } from "@emotion/react/jsx-runtime";
@@ -3199,31 +3256,6 @@ function Tooltip({
3199
3256
  ] });
3200
3257
  }
3201
3258
 
3202
- // src/components/utils/nativeButton.ts
3203
- import * as React4 from "react";
3204
- function markNativeButton(component) {
3205
- component.renderNativeButton = true;
3206
- return component;
3207
- }
3208
- function isNativeButtonTrigger(element) {
3209
- var _a;
3210
- if (!React4.isValidElement(element)) {
3211
- return false;
3212
- }
3213
- if (element.type === "button") {
3214
- return true;
3215
- }
3216
- if (typeof element.type !== "string") {
3217
- if (element.type.renderNativeButton) {
3218
- return true;
3219
- }
3220
- if (((_a = element.props) == null ? void 0 : _a.type) === "button") {
3221
- return true;
3222
- }
3223
- }
3224
- return false;
3225
- }
3226
-
3227
3259
  // src/components/Button/hooks/useButtonStyles.ts
3228
3260
  var btnSize = {
3229
3261
  zero: "padding: 0; font-size: var(--fs-sm);",
@@ -5187,7 +5219,15 @@ var Menu = React8.forwardRef(function Menu2({
5187
5219
  );
5188
5220
  if (isNested) {
5189
5221
  return /* @__PURE__ */ jsxs17(BaseUIMenu.SubmenuRoot, { open: controlledOpen, onOpenChange: handleOpenChange, disabled: disabled2, children: [
5190
- /* @__PURE__ */ jsx28(SubmenuTriggerModeContext.Provider, { value: true, children: /* @__PURE__ */ jsx28(BaseUIMenu.SubmenuTrigger, { render: submenuTriggerElement, disabled: disabled2, closeDelay: 100 }) }),
5222
+ /* @__PURE__ */ jsx28(SubmenuTriggerModeContext.Provider, { value: true, children: /* @__PURE__ */ jsx28(
5223
+ BaseUIMenu.SubmenuTrigger,
5224
+ {
5225
+ render: submenuTriggerElement,
5226
+ disabled: disabled2,
5227
+ closeDelay: 100,
5228
+ nativeButton: isNativeButtonTrigger(submenuTriggerElement)
5229
+ }
5230
+ ) }),
5191
5231
  /* @__PURE__ */ jsx28(BaseUIMenu.Portal, { container: portalContainer, children: menuContent })
5192
5232
  ] });
5193
5233
  }
@@ -5263,6 +5303,7 @@ var MenuItem = React9.forwardRef(
5263
5303
  css: [menuItem(textColor2, active2), typeof className === "object" ? className : void 0],
5264
5304
  className: typeof className === "string" ? className : void 0,
5265
5305
  render,
5306
+ nativeButton: isNativeButtonTrigger(render),
5266
5307
  ...props,
5267
5308
  onClick: onClickHandler,
5268
5309
  disabled: disabledValue,
@@ -7482,8 +7523,20 @@ var PageHeaderSection = ({
7482
7523
  level = 2,
7483
7524
  linkProps,
7484
7525
  linkManagerComponent,
7526
+ afterTitle,
7527
+ afterTitleGap = "sm",
7528
+ afterTitleAlign = "center",
7485
7529
  ...htmlProps
7486
7530
  }) => {
7531
+ const HeaderContent = () => {
7532
+ if (afterTitle) {
7533
+ return /* @__PURE__ */ jsxs37(HorizontalRhythm, { css: PageHeaderSectionTitle, gap: afterTitleGap, align: afterTitleAlign, children: [
7534
+ /* @__PURE__ */ jsx55(Heading2, { level, ...htmlProps, "data-testid": "page-header-section", withMarginBottom: false, children: title }),
7535
+ afterTitle
7536
+ ] });
7537
+ }
7538
+ return /* @__PURE__ */ jsx55(Heading2, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children: title });
7539
+ };
7487
7540
  if (linkText && linkProps && !linkManagerComponent) {
7488
7541
  throw Error("You must provide a linkManagerComponent");
7489
7542
  }
@@ -7502,7 +7555,7 @@ var PageHeaderSection = ({
7502
7555
  }
7503
7556
  )
7504
7557
  ] }) : null,
7505
- /* @__PURE__ */ jsx55(Heading2, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children: title }),
7558
+ /* @__PURE__ */ jsx55(HeaderContent, {}),
7506
7559
  desc
7507
7560
  ] }),
7508
7561
  children ? /* @__PURE__ */ jsx55("div", { css: PageHeaderSectionChildContainer, children }) : null
@@ -8844,6 +8897,7 @@ var DateTimePicker = ({
8844
8897
  render: /* @__PURE__ */ jsx66(Button, { buttonType: "ghostUnimportant" }),
8845
8898
  disabled: disabled2,
8846
8899
  "data-testid": `${testId}-trigger`,
8900
+ nativeButton: true,
8847
8901
  children: /* @__PURE__ */ jsx66(DateTimePickerSummary, { value, placeholder })
8848
8902
  }
8849
8903
  ),
@@ -8963,8 +9017,22 @@ var DescriptionList = React14.forwardRef(
8963
9017
  css: variant === "vertical" ? descriptionListVertical : descriptionListHorizontal,
8964
9018
  ...listProps,
8965
9019
  children: items == null ? void 0 : items.map(({ label: label2, value }) => /* @__PURE__ */ jsxs45(React14.Fragment, { children: [
8966
- /* @__PURE__ */ jsx67("dt", { css: descriptionListLabelStyles, children: label2 }),
8967
- /* @__PURE__ */ jsx67("dd", { css: descriptionListValueStyles, children: typeof value === "boolean" ? /* @__PURE__ */ jsx67(DescriptionListValueBoolean, { value }) : value })
9020
+ /* @__PURE__ */ jsx67(
9021
+ "dt",
9022
+ {
9023
+ css: descriptionListLabelStyles,
9024
+ "data-testid": `meta-field-label-${label2.toLowerCase().replace(/\s+/g, "-")}`,
9025
+ children: label2
9026
+ }
9027
+ ),
9028
+ /* @__PURE__ */ jsx67(
9029
+ "dd",
9030
+ {
9031
+ css: descriptionListValueStyles,
9032
+ "data-testid": `meta-field-value-${label2.toLowerCase().replace(/\s+/g, "-")}`,
9033
+ children: typeof value === "boolean" ? /* @__PURE__ */ jsx67(DescriptionListValueBoolean, { value }) : value
9034
+ }
9035
+ )
8968
9036
  ] }, label2))
8969
9037
  }
8970
9038
  );
@@ -9737,10 +9805,12 @@ var variants = {
9737
9805
 
9738
9806
  // src/components/IconButton/IconButton.tsx
9739
9807
  import { jsx as jsx77 } from "@emotion/react/jsx-runtime";
9740
- var IconButton = forwardRef19(
9741
- ({ children, size = "md", variant = "square", ...props }, ref) => {
9742
- return /* @__PURE__ */ jsx77(Button, { ref, css: [iconButton, variants[variant], sizes2[size]], ...props, children });
9743
- }
9808
+ var IconButton = markNativeButton(
9809
+ forwardRef19(
9810
+ ({ children, size = "md", variant = "square", ...props }, ref) => {
9811
+ return /* @__PURE__ */ jsx77(Button, { ref, css: [iconButton, variants[variant], sizes2[size]], ...props, children });
9812
+ }
9813
+ )
9744
9814
  );
9745
9815
  IconButton.displayName = "IconButton";
9746
9816
 
@@ -13306,7 +13376,7 @@ var ObjectListItemTitleColumnContent = css89`
13306
13376
  `;
13307
13377
  var objectListItemContentWrapperColumns = (minContainerQueryWidth, hasCover) => css89`
13308
13378
  ${cq(minContainerQueryWidth)} {
13309
- grid-template-columns: ${hasCover ? "minmax(0, auto) " : ""}minmax (0, 1fr) minmax(0, auto);
13379
+ grid-template-columns: ${hasCover ? "minmax(0, auto) minmax(0, 1fr) minmax(0, auto)" : "minmax(0, 1fr) minmax(0, auto)"};
13310
13380
  }
13311
13381
  `;
13312
13382
  var ObjectListItemRightSlot = css89`
@@ -13314,8 +13384,8 @@ var ObjectListItemRightSlot = css89`
13314
13384
  gap: var(--spacing-sm);
13315
13385
  `;
13316
13386
  var ObjectListItemContainer = css89`
13317
- > [role='listitem']:not(:first-child) {
13318
- border-top: 1px solid var(--gray-200);
13387
+ > [role='listitem']:not(:last-child) {
13388
+ border-bottom: 1px solid var(--gray-200);
13319
13389
  }
13320
13390
  `;
13321
13391
  var ObjectListItemCover = css89`
@@ -13615,37 +13685,45 @@ var ObjectListSubText2 = ({ children, ...props }) => {
13615
13685
  import * as React20 from "react";
13616
13686
  import Paginate from "react-paginate";
13617
13687
 
13618
- // src/components/Pagination/Pagniation.styles.ts
13619
- import { css as css92 } from "@emotion/css";
13620
- var wrapper = css92`
13688
+ // src/components/Pagination/Pagination.styles.ts
13689
+ import { css as css92 } from "@emotion/react";
13690
+ var container2 = "ud-pagination-container";
13691
+ var disabled = "ud-pagination-disabled";
13692
+ var disabledLink = "ud-pagination-disabled-link";
13693
+ var pageLink = "ud-pagination-page-link";
13694
+ var prevNextControls = "ud-pagination-prev-next";
13695
+ var active = "ud-pagination-active";
13696
+ var page = "ud-pagination-page";
13697
+ var paginationStyles = css92`
13621
13698
  display: inline-flex;
13622
13699
  max-width: 100%;
13623
13700
  overflow-x: auto;
13624
- `;
13625
- var container2 = css92`
13626
- align-items: center;
13627
- display: flex;
13628
- `;
13629
- var disabled = css92`
13630
- opacity: var(--opacity-50);
13631
- `;
13632
- var disabledLink = css92`
13633
- cursor: pointer-default;
13634
- `;
13635
- var pageLink = css92`
13636
- display: block;
13637
- padding: var(--spacing-sm) var(--spacing-base);
13638
- `;
13639
- var prevNextControls = css92`
13640
- padding: var(--spacing-sm) var(--spacing-base);
13641
- `;
13642
- var active = css92`
13643
- border-radius: var(--rounded-base);
13644
- background: var(--gray-200);
13645
- `;
13646
- var page = css92`
13647
- margin-left: var(--spacing-xs);
13648
- margin-right: var(--spacing-xs);
13701
+
13702
+ .${container2} {
13703
+ align-items: center;
13704
+ display: flex;
13705
+ }
13706
+ .${container2} .${disabled} {
13707
+ opacity: var(--opacity-50);
13708
+ }
13709
+ .${container2} .${disabledLink} {
13710
+ cursor: pointer-default;
13711
+ }
13712
+ .${container2} .${pageLink} {
13713
+ display: block;
13714
+ padding: var(--spacing-sm) var(--spacing-base);
13715
+ }
13716
+ .${container2} .${prevNextControls} {
13717
+ padding: var(--spacing-sm) var(--spacing-base);
13718
+ }
13719
+ .${container2} .${active} {
13720
+ border-radius: var(--rounded-base);
13721
+ background: var(--gray-200);
13722
+ }
13723
+ .${container2} .${page} {
13724
+ margin-left: var(--spacing-xs);
13725
+ margin-right: var(--spacing-xs);
13726
+ }
13649
13727
  `;
13650
13728
 
13651
13729
  // src/components/Pagination/usePaginationDisplayRange.ts
@@ -13747,7 +13825,7 @@ function Pagination({
13747
13825
  if (limit < 1 || pageCount <= 1) {
13748
13826
  return null;
13749
13827
  }
13750
- return /* @__PURE__ */ jsx122("div", { ref: containerRef, className: wrapper, children: /* @__PURE__ */ jsx122(
13828
+ return /* @__PURE__ */ jsx122("div", { ref: containerRef, css: paginationStyles, children: /* @__PURE__ */ jsx122(
13751
13829
  Paginate,
13752
13830
  {
13753
13831
  forcePage: currentPage,
@@ -15749,7 +15827,6 @@ ParameterNumberSlider.displayName = "ParameterNumberSlider";
15749
15827
  ParameterNumberSliderInner.displayName = "ParameterNumberSliderInner";
15750
15828
 
15751
15829
  // src/components/ParameterInputs/ParameterRichText.tsx
15752
- import { css as css107 } from "@emotion/react";
15753
15830
  import { ListItemNode, ListNode as ListNode3 } from "@lexical/list";
15754
15831
  import {
15755
15832
  CODE,
@@ -15931,245 +16008,252 @@ function DisableStylesPlugin() {
15931
16008
  }
15932
16009
 
15933
16010
  // src/components/ParameterInputs/rich-text/editorStyles.ts
15934
- import { css as css102 } from "@emotion/css";
15935
- var textBold = css102`
15936
- font-weight: 700;
15937
- `;
15938
- var textItalic = css102`
15939
- font-style: italic;
15940
- `;
15941
- var textUnderline = css102`
15942
- text-decoration: underline;
15943
- `;
15944
- var textStrikethrough = css102`
15945
- text-decoration: line-through;
15946
- `;
15947
- var textUnderlineStrikethrough = css102`
15948
- text-decoration: underline line-through;
15949
- `;
15950
- var textCode = css102`
15951
- background-color: var(--gray-100);
15952
- border-radius: var(--rounded-sm);
15953
- display: inline-block;
15954
- font-family: var(--ff-mono);
15955
- font-feature-settings: 'liga' 0;
15956
- font-variant-ligatures: none;
15957
- font-size: var(--fs-sm);
15958
- padding-left: var(--spacing-xs);
15959
- padding-right: var(--spacing-xs);
15960
- `;
15961
- var textSuperscript = css102`
15962
- vertical-align: super;
15963
- font-size: smaller;
15964
- `;
15965
- var textSubscript = css102`
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;
16011
+ import { css as css102 } from "@emotion/react";
16012
+ var textBold = "ud-editor-text-bold";
16013
+ var textItalic = "ud-editor-text-italic";
16014
+ var textUnderline = "ud-editor-text-underline";
16015
+ var textStrikethrough = "ud-editor-text-strikethrough";
16016
+ var textUnderlineStrikethrough = "ud-editor-text-underline-strikethrough";
16017
+ var textCode = "ud-editor-text-code";
16018
+ var textSuperscript = "ud-editor-text-superscript";
16019
+ var textSubscript = "ud-editor-text-subscript";
16020
+ var linkElement = "ud-editor-link";
16021
+ var heading1Element = "ud-editor-h1";
16022
+ var heading2Element = "ud-editor-h2";
16023
+ var heading3Element = "ud-editor-h3";
16024
+ var heading4Element = "ud-editor-h4";
16025
+ var heading5Element = "ud-editor-h5";
16026
+ var heading6Element = "ud-editor-h6";
16027
+ var paragraphElement = "ud-editor-paragraph";
16028
+ var orderedListElement = "ud-editor-ol";
16029
+ var unorderedListElement = "ud-editor-ul";
16030
+ var listItemElement = "ud-editor-listitem";
16031
+ var nestedListItemElement = "ud-editor-nested-listitem";
16032
+ var blockquoteElement = "ud-editor-blockquote";
16033
+ var codeElement = "ud-editor-code";
16034
+ var tableElement = "ud-editor-table";
16035
+ var tableCellElement = "ud-editor-table-cell";
16036
+ var tableHeaderElement = "ud-editor-table-header";
16037
+ var editorThemeStyles = css102`
16038
+ .${textBold} {
16039
+ font-weight: 700;
16040
+ }
16041
+ .${textItalic} {
16042
+ font-style: italic;
16028
16043
  }
16029
- `;
16030
- var orderedListElement = css102`
16031
- ${commonLineHeight}
16032
- display: block;
16033
- list-style: decimal;
16034
- list-style-position: outside;
16035
- margin-bottom: var(--spacing-base);
16036
- margin-top: 0;
16037
- padding: 0;
16044
+ .${textUnderline} {
16045
+ text-decoration: underline;
16046
+ }
16047
+ .${textStrikethrough} {
16048
+ text-decoration: line-through;
16049
+ }
16050
+ .${textUnderlineStrikethrough} {
16051
+ text-decoration: underline line-through;
16052
+ }
16053
+ .${textCode} {
16054
+ background-color: var(--gray-100);
16055
+ border-radius: var(--rounded-sm);
16056
+ display: inline-block;
16057
+ font-family: var(--ff-mono);
16058
+ font-feature-settings: 'liga' 0;
16059
+ font-variant-ligatures: none;
16060
+ font-size: var(--fs-sm);
16061
+ padding-left: var(--spacing-xs);
16062
+ padding-right: var(--spacing-xs);
16063
+ }
16064
+ .${textSuperscript} {
16065
+ vertical-align: super;
16066
+ font-size: smaller;
16067
+ }
16068
+ .${textSubscript} {
16069
+ vertical-align: sub;
16070
+ font-size: smaller;
16071
+ }
16072
+ .${linkElement} {
16073
+ ${link}
16074
+ ${linkColorDefault}
16075
+ text-decoration: underline;
16076
+ }
16077
+ .${heading1Element} {
16078
+ font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
16079
+ ${commonHeadingAttr(true)}
16080
+ ${commonLineHeight}
16081
+ }
16082
+ .${heading2Element} {
16083
+ font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
16084
+ ${commonHeadingAttr(true)}
16085
+ ${commonLineHeight}
16086
+ }
16087
+ .${heading3Element} {
16088
+ font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
16089
+ ${commonHeadingAttr(true)}
16090
+ ${commonLineHeight}
16091
+ }
16092
+ .${heading4Element} {
16093
+ font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
16094
+ ${commonHeadingAttr(true)}
16095
+ ${commonLineHeight}
16096
+ }
16097
+ .${heading5Element} {
16098
+ font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
16099
+ ${commonHeadingAttr(true)}
16100
+ ${commonLineHeight}
16101
+ }
16102
+ .${heading6Element} {
16103
+ font-size: var(--fs-base);
16104
+ ${commonHeadingAttr(true)}
16105
+ ${commonLineHeight}
16106
+ }
16107
+ .${paragraphElement} {
16108
+ line-height: 1.5;
16109
+ margin-bottom: var(--spacing-base);
16038
16110
 
16039
- &:last-child {
16040
- margin-bottom: 0;
16111
+ &:last-child {
16112
+ margin-bottom: 0;
16113
+ }
16041
16114
  }
16115
+ .${orderedListElement} {
16116
+ ${commonLineHeight}
16117
+ display: block;
16118
+ list-style: decimal;
16119
+ list-style-position: outside;
16120
+ margin-bottom: var(--spacing-base);
16121
+ margin-top: 0;
16122
+ padding: 0;
16042
16123
 
16043
- ol {
16044
- list-style-type: upper-alpha;
16124
+ &:last-child {
16125
+ margin-bottom: 0;
16126
+ }
16045
16127
 
16046
16128
  ol {
16047
- list-style-type: lower-alpha;
16129
+ list-style-type: upper-alpha;
16048
16130
 
16049
16131
  ol {
16050
- list-style-type: upper-roman;
16132
+ list-style-type: lower-alpha;
16051
16133
 
16052
16134
  ol {
16053
- list-style-type: lower-roman;
16135
+ list-style-type: upper-roman;
16136
+
16137
+ ol {
16138
+ list-style-type: lower-roman;
16139
+ }
16054
16140
  }
16055
16141
  }
16056
16142
  }
16057
16143
  }
16058
- `;
16059
- var unorderedListElement = css102`
16060
- ${commonLineHeight}
16061
- display: block;
16062
- list-style: disc;
16063
- list-style-position: outside;
16064
- margin-bottom: var(--spacing-base);
16065
- margin-top: 0;
16066
- padding: 0;
16067
-
16068
- &:last-child {
16069
- margin-bottom: 0;
16070
- }
16144
+ .${unorderedListElement} {
16145
+ ${commonLineHeight}
16146
+ display: block;
16147
+ list-style: disc;
16148
+ list-style-position: outside;
16149
+ margin-bottom: var(--spacing-base);
16150
+ margin-top: 0;
16151
+ padding: 0;
16071
16152
 
16072
- ul {
16073
- list-style-type: circle;
16153
+ &:last-child {
16154
+ margin-bottom: 0;
16155
+ }
16074
16156
 
16075
16157
  ul {
16076
- list-style-type: square;
16158
+ list-style-type: circle;
16159
+
16160
+ ul {
16161
+ list-style-type: square;
16162
+ }
16077
16163
  }
16078
16164
  }
16079
- `;
16080
- var listItemElement = css102`
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;
16165
+ .${listItemElement} {
16166
+ margin-left: var(--spacing-md);
16094
16167
  }
16095
- `;
16096
- var codeElement = css102`
16097
- background-color: var(--gray-100);
16098
- border-radius: var(--rounded-sm);
16099
- display: block;
16100
- font-family: var(--ff-mono);
16101
- font-feature-settings: 'liga' 0;
16102
- font-variant-ligatures: none;
16103
- font-size: var(--fs-sm);
16104
- margin-bottom: var(--spacing-base);
16105
- padding: var(--spacing-sm);
16168
+ .${nestedListItemElement} {
16169
+ list-style-type: none;
16170
+ }
16171
+ .${blockquoteElement} {
16172
+ border-left: 0.25rem solid var(--gray-300);
16173
+ color: var(--gray-600);
16174
+ margin-bottom: var(--spacing-base);
16175
+ padding-left: var(--spacing-base);
16106
16176
 
16107
- &:last-child {
16108
- margin-bottom: 0;
16177
+ &:last-child {
16178
+ margin-bottom: 0;
16179
+ }
16109
16180
  }
16110
- `;
16111
- var tableElement = css102`
16112
- border-collapse: collapse;
16113
- border-spacing: 0;
16114
- border-color: var(--gray-300);
16115
- border-width: 1px;
16116
- border-style: solid;
16117
- margin-bottom: var(--spacing-base);
16118
- margin-top: 0;
16181
+ .${codeElement} {
16182
+ background-color: var(--gray-100);
16183
+ border-radius: var(--rounded-sm);
16184
+ display: block;
16185
+ font-family: var(--ff-mono);
16186
+ font-feature-settings: 'liga' 0;
16187
+ font-variant-ligatures: none;
16188
+ font-size: var(--fs-sm);
16189
+ margin-bottom: var(--spacing-base);
16190
+ padding: var(--spacing-sm);
16119
16191
 
16120
- &:last-child {
16121
- margin-bottom: 0;
16192
+ &:last-child {
16193
+ margin-bottom: 0;
16194
+ }
16122
16195
  }
16123
- `;
16124
- var tableCellElement = css102`
16125
- background-color: var(--white);
16126
- border-color: var(--gray-300);
16127
- border-style: solid;
16128
- border-width: 1px;
16129
- box-sizing: unset;
16130
- min-width: 2rem;
16131
- outline: none;
16132
- padding: var(--spacing-sm);
16133
- position: relative;
16134
- text-align: start;
16135
- vertical-align: top;
16136
- width: 7rem;
16196
+ .${tableElement} {
16197
+ border-collapse: collapse;
16198
+ border-spacing: 0;
16199
+ border-color: var(--gray-300);
16200
+ border-width: 1px;
16201
+ border-style: solid;
16202
+ margin-bottom: var(--spacing-base);
16203
+ margin-top: 0;
16137
16204
 
16138
- /* Used by the table resizer plugin to not change the hovered cell immediately
16139
- upon going with the mouse over the neighboring cell */
16140
- &::after {
16141
- content: '';
16142
- height: 5px;
16143
- left: 0;
16144
- position: absolute;
16145
- top: 100%;
16146
- width: 100%;
16147
- z-index: 1;
16205
+ &:last-child {
16206
+ margin-bottom: 0;
16207
+ }
16148
16208
  }
16209
+ .${tableCellElement} {
16210
+ background-color: var(--white);
16211
+ border-color: var(--gray-300);
16212
+ border-style: solid;
16213
+ border-width: 1px;
16214
+ box-sizing: unset;
16215
+ min-width: 2rem;
16216
+ outline: none;
16217
+ padding: var(--spacing-sm);
16218
+ position: relative;
16219
+ text-align: start;
16220
+ vertical-align: top;
16221
+ width: 7rem;
16149
16222
 
16150
- &::before {
16151
- content: '';
16152
- width: 5px;
16153
- height: 100%;
16154
- position: absolute;
16155
- top: 0;
16156
- left: 100%;
16157
- z-index: 1;
16223
+ &::after {
16224
+ content: '';
16225
+ height: 5px;
16226
+ left: 0;
16227
+ position: absolute;
16228
+ top: 100%;
16229
+ width: 100%;
16230
+ z-index: 1;
16231
+ }
16232
+
16233
+ &::before {
16234
+ content: '';
16235
+ width: 5px;
16236
+ height: 100%;
16237
+ position: absolute;
16238
+ top: 0;
16239
+ left: 100%;
16240
+ z-index: 1;
16241
+ }
16242
+ }
16243
+ .${tableHeaderElement} {
16244
+ background-color: var(--gray-100);
16245
+ border-color: var(--gray-300);
16246
+ border-style: solid;
16247
+ border-width: 1px;
16248
+ box-sizing: unset;
16249
+ font-weight: normal;
16250
+ min-width: 2rem;
16251
+ outline: none;
16252
+ padding: var(--spacing-sm);
16253
+ text-align: start;
16254
+ vertical-align: top;
16255
+ width: 7rem;
16158
16256
  }
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
16257
  `;
16174
16258
 
16175
16259
  // src/components/ParameterInputs/rich-text/ImprovedAssetSelectionPlugin.tsx
@@ -17914,7 +17998,7 @@ var toolbarGroup = css106`
17914
17998
  gap: var(--spacing-xs);
17915
17999
  position: relative;
17916
18000
 
17917
- &:not(:first-child)::before {
18001
+ &:not(:first-of-type)::before {
17918
18002
  background-color: var(--gray-300);
17919
18003
  content: '';
17920
18004
  display: block;
@@ -18248,41 +18332,8 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
18248
18332
  };
18249
18333
  var RichTextToolbar_default = RichTextToolbar;
18250
18334
 
18251
- // src/components/ParameterInputs/ParameterRichText.tsx
18252
- import { Fragment as Fragment21, jsx as jsx144, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
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
- };
18335
+ // src/components/ParameterInputs/styles/ParameterRichText.styles.ts
18336
+ import { css as css107 } from "@emotion/react";
18286
18337
  var editorContainerWrapper = css107`
18287
18338
  position: relative;
18288
18339
 
@@ -18364,6 +18415,42 @@ var editorInput = css107`
18364
18415
  outline: none;
18365
18416
  }
18366
18417
  `;
18418
+
18419
+ // src/components/ParameterInputs/ParameterRichText.tsx
18420
+ import { Fragment as Fragment21, jsx as jsx144, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
18421
+ var ParameterRichText = ({
18422
+ label: label2,
18423
+ labelLeadingIcon,
18424
+ hiddenLabel,
18425
+ id,
18426
+ errorMessage,
18427
+ caption,
18428
+ errorTestId,
18429
+ captionTestId,
18430
+ menuItems,
18431
+ children,
18432
+ ...innerProps
18433
+ }) => {
18434
+ return /* @__PURE__ */ jsxs97(
18435
+ ParameterShell,
18436
+ {
18437
+ "data-testid": "parameter-richtext",
18438
+ label: label2,
18439
+ hiddenLabel,
18440
+ labelLeadingIcon,
18441
+ id,
18442
+ errorMessage,
18443
+ caption,
18444
+ errorTestId,
18445
+ captionTestId,
18446
+ menuItems,
18447
+ children: [
18448
+ /* @__PURE__ */ jsx144(ParameterRichTextInner, { ...innerProps, children }),
18449
+ menuItems ? /* @__PURE__ */ jsx144(ParameterMenuButton, { label: `${label2} menu`, children: /* @__PURE__ */ jsx144(Fragment21, { children: menuItems }) }) : null
18450
+ ]
18451
+ }
18452
+ );
18453
+ };
18367
18454
  var ParameterRichTextInner = ({
18368
18455
  value,
18369
18456
  editorFooter,
@@ -18429,7 +18516,7 @@ var ParameterRichTextInner = ({
18429
18516
  editable: !richTextProps.readOnly
18430
18517
  };
18431
18518
  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 }) }) }),
18519
+ /* @__PURE__ */ jsx144("div", { css: [editorWrapper, editorThemeStyles], className: editorWrapperClassName, children: /* @__PURE__ */ jsx144(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx144(RichText, { ...richTextProps, children }) }) }),
18433
18520
  editorFooter ? editorFooter : null
18434
18521
  ] });
18435
18522
  };
@@ -20868,10 +20955,12 @@ export {
20868
20955
  input,
20869
20956
  inputError,
20870
20957
  inputSelect,
20958
+ isNativeButtonTrigger,
20871
20959
  isSecureURL,
20872
20960
  isValidUrl,
20873
20961
  jsonIcon,
20874
20962
  labelText,
20963
+ markNativeButton,
20875
20964
  mq,
20876
20965
  numberInput,
20877
20966
  popTopLayerDialog,