xmlui 0.9.13 → 0.9.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/{apiInterceptorWorker-BUaYCWe6.mjs → apiInterceptorWorker-DHw39GG3.mjs} +1 -1
  2. package/dist/{index-DiCe0Ajo.mjs → index-DFC3vDn-.mjs} +487 -232
  3. package/dist/index.css +331 -306
  4. package/dist/scripts/bin/build-lib.js +1 -1
  5. package/dist/scripts/src/components/Card/Card.js +17 -1
  6. package/dist/scripts/src/components/Card/CardNative.js +2 -3
  7. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +2 -2
  8. package/dist/scripts/src/components/List/List.js +10 -3
  9. package/dist/scripts/src/components/List/ListNative.js +8 -5
  10. package/dist/scripts/src/components/Markdown/Markdown.js +10 -9
  11. package/dist/scripts/src/components/Option/Option.js +0 -1
  12. package/dist/scripts/src/components/Select/Select.js +3 -2
  13. package/dist/scripts/src/components/Select/SelectNative.js +1 -1
  14. package/dist/scripts/src/components/Table/Table.js +7 -1
  15. package/dist/scripts/src/components/Table/TableNative.js +2 -1
  16. package/dist/scripts/src/components/Tabs/Tabs.js +6 -5
  17. package/dist/scripts/src/components/Tabs/TabsNative.js +6 -3
  18. package/dist/scripts/src/components-core/LoaderComponent.js +14 -0
  19. package/dist/scripts/src/components-core/abstractions/containers.js +1 -0
  20. package/dist/scripts/src/components-core/loader/ApiLoader.js +4 -5
  21. package/dist/scripts/src/components-core/loader/DataLoader.js +4 -4
  22. package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +4 -7
  23. package/dist/scripts/src/components-core/loader/Loader.js +23 -11
  24. package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +3 -3
  25. package/dist/scripts/src/components-core/loader/PageableLoader.js +14 -4
  26. package/dist/scripts/src/components-core/rendering/reducer.js +9 -3
  27. package/dist/scripts/src/components-core/theming/themes/root.js +4 -1
  28. package/dist/scripts/src/components-core/theming/transformThemeVars.js +8 -0
  29. package/dist/style.css +331 -298
  30. package/dist/xmlui-metadata.mjs +214 -164
  31. package/dist/xmlui-metadata.umd.js +214 -164
  32. package/dist/xmlui-standalone.umd.js +5006 -2914
  33. package/dist/xmlui.d.ts +57 -1
  34. package/dist/xmlui.mjs +6 -4
  35. package/package.json +2 -2
@@ -26,7 +26,7 @@ import toast, { Toaster, ToastBar } from "react-hot-toast";
26
26
  import { Virtualizer } from "virtua";
27
27
  import { createContext as createContext$1, useContextSelector } from "use-context-selector";
28
28
  import memoizeOne from "memoize-one";
29
- import { Portal, Root, Trigger, Value, Icon as Icon$1, Content, ScrollUpButton, Viewport, ScrollDownButton, Item as Item$1, ItemText, ItemIndicator } from "@radix-ui/react-select";
29
+ import { Portal, Root, Trigger, Value, Icon as Icon$1, Content, ScrollUpButton, Viewport, ScrollDownButton, Item as Item$1, ItemText, ItemIndicator, SelectItemText } from "@radix-ui/react-select";
30
30
  import { Popover, PopoverTrigger, PopoverContent, Portal as Portal$1 } from "@radix-ui/react-popover";
31
31
  import { Command, CommandInput, CommandList, CommandEmpty, CommandItem, CommandGroup } from "cmdk";
32
32
  import * as InnerRadioGroup from "@radix-ui/react-radio-group";
@@ -4609,7 +4609,7 @@ const MemoizedItem = memo(
4609
4609
  );
4610
4610
  const wrapper$e = "_wrapper_1c1hh_14";
4611
4611
  const rowWrapper = "_rowWrapper_1c1hh_18";
4612
- const selected$1 = "_selected_1c1hh_28";
4612
+ const selected$2 = "_selected_1c1hh_28";
4613
4613
  const gutter = "_gutter_1c1hh_42";
4614
4614
  const toggleWrapper = "_toggleWrapper_1c1hh_50";
4615
4615
  const hidden = "_hidden_1c1hh_59";
@@ -4619,7 +4619,7 @@ const labelWrapper = "_labelWrapper_1c1hh_78";
4619
4619
  const styles$T = {
4620
4620
  wrapper: wrapper$e,
4621
4621
  rowWrapper,
4622
- selected: selected$1,
4622
+ selected: selected$2,
4623
4623
  gutter,
4624
4624
  toggleWrapper,
4625
4625
  hidden,
@@ -7571,31 +7571,32 @@ const fragmentComponentRenderer = createComponentRenderer(
7571
7571
  }
7572
7572
  );
7573
7573
  const themeVars$B = `'{"textColor-pagination-Table": "var(--xmlui-textColor-pagination-Table)", "backgroundColor-Table": "var(--xmlui-backgroundColor-Table)", "textColor-Table": "var(--xmlui-textColor-Table)", "backgroundColor-row-Table": "var(--xmlui-backgroundColor-row-Table)", "backgroundColor-row-Table--hover": "var(--xmlui-backgroundColor-row-Table--hover)", "backgroundColor-selected-Table": "var(--xmlui-backgroundColor-selected-Table)", "backgroundColor-selected-Table--hover": "var(--xmlui-backgroundColor-selected-Table--hover)", "backgroundColor-heading-Table": "var(--xmlui-backgroundColor-heading-Table)", "backgroundColor-heading-Table--hover": "var(--xmlui-backgroundColor-heading-Table--hover)", "backgroundColor-heading-Table--active": "var(--xmlui-backgroundColor-heading-Table--active)", "padding-heading-Table": "var(--xmlui-padding-heading-Table)", "paddingHorizontal-heading-Table": "var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table))", "paddingVertical-heading-Table": "var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table))", "paddingLeft-heading-Table": "var(--xmlui-paddingLeft-heading-Table, var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingRight-heading-Table": "var(--xmlui-paddingRight-heading-Table, var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingTop-heading-Table": "var(--xmlui-paddingTop-heading-Table, var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingBottom-heading-Table": "var(--xmlui-paddingBottom-heading-Table, var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table)))", "padding-cell-Table": "var(--xmlui-padding-cell-Table)", "paddingHorizontal-cell-Table": "var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table))", "paddingVertical-cell-Table": "var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table))", "paddingLeft-cell-Table": "var(--xmlui-paddingLeft-cell-Table, var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingRight-cell-Table": "var(--xmlui-paddingRight-cell-Table, var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingTop-cell-Table": "var(--xmlui-paddingTop-cell-Table, var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingBottom-cell-Table": "var(--xmlui-paddingBottom-cell-Table, var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingHorizontal-cell-first-Table": "var(--xmlui-paddingHorizontal-cell-first-Table)", "paddingHorizontal-cell-last-Table": "var(--xmlui-paddingHorizontal-cell-last-Table)", "border-cell-Table": "var(--xmlui-border-cell-Table)", "borderHorizontal-cell-Table": "var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table))", "borderVertical-cell-Table": "var(--xmlui-borderVertical-cell-Table, var(--xmlui-border-cell-Table))", "borderLeft-cell-Table": "var(--xmlui-borderLeft-cell-Table, var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table)))", "borderRight-cell-Table": "var(--xmlui-borderRight-cell-Table, var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table)))", "borderTop-cell-Table": "var(--xmlui-borderTop-cell-Table, var(--xmlui-borderVertical-cell-Table, var(--xmlui-border-cell-Table)))", "borderBottom-cell-Table": "var(--xmlui-borderBottom-cell-Table)", "borderWidth-cell-Table": "var(--xmlui-borderWidth-cell-Table)", "borderHorizontalWidth-cell-Table": "var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table))", "borderLeftWidth-cell-Table": "var(--xmlui-borderLeftWidth-cell-Table, var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderRightWidth-cell-Table": "var(--xmlui-borderRightWidth-cell-Table, var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderVerticalWidth-cell-Table": "var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table))", "borderTopWidth-cell-Table": "var(--xmlui-borderTopWidth-cell-Table, var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderBottomWidth-cell-Table": "var(--xmlui-borderBottomWidth-cell-Table, var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderStyle-cell-Table": "var(--xmlui-borderStyle-cell-Table)", "borderHorizontalStyle-cell-Table": "var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table))", "borderLeftStyle-cell-Table": "var(--xmlui-borderLeftStyle-cell-Table, var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderRightStyle-cell-Table": "var(--xmlui-borderRightStyle-cell-Table, var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderVerticalStyle-cell-Table": "var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table))", "borderTopStyle-cell-Table": "var(--xmlui-borderTopStyle-cell-Table, var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderBottomStyle-cell-Table": "var(--xmlui-borderBottomStyle-cell-Table, var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderColor-cell-Table": "var(--xmlui-borderColor-cell-Table)", "borderHorizontalColor-cell-Table": "var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table))", "borderLeftColor-cell-Table": "var(--xmlui-borderLeftColor-cell-Table, var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderRightColor-cell-Table": "var(--xmlui-borderRightColor-cell-Table, var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderVerticalColor-cell-Table": "var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table))", "borderTopColor-cell-Table": "var(--xmlui-borderTopColor-cell-Table, var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderBottomColor-cell-Table": "var(--xmlui-borderBottomColor-cell-Table, var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderStartStartRadius-cell-Table": "var(--xmlui-borderStartStartRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderStartEndRadius-cell-Table": "var(--xmlui-borderStartEndRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderEndStartRadius-cell-Table": "var(--xmlui-borderEndStartRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderEndEndRadius-cell-Table": "var(--xmlui-borderEndEndRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "backgroundColor-pagination-Table": "var(--xmlui-backgroundColor-pagination-Table)", "textColor-heading-Table": "var(--xmlui-textColor-heading-Table)", "fontWeight-row-Table": "var(--xmlui-fontWeight-row-Table)", "fontSize-row-Table": "var(--xmlui-fontSize-row-Table)", "fontWeight-heading-Table": "var(--xmlui-fontWeight-heading-Table)", "fontSize-heading-Table": "var(--xmlui-fontSize-heading-Table)", "textTransform-heading-Table": "var(--xmlui-textTransform-heading-Table)", "outlineWidth-heading-Table--focus": "var(--xmlui-outlineWidth-heading-Table--focus)", "outlineColor-heading-Table--focus": "var(--xmlui-outlineColor-heading-Table--focus)", "outlineStyle-heading-Table--focus": "var(--xmlui-outlineStyle-heading-Table--focus)", "outlineOffset-heading-Table--focus": "var(--xmlui-outlineOffset-heading-Table--focus)"}'`;
7574
- const wrapper$d = "_wrapper_q25wx_13";
7575
- const noScroll = "_noScroll_q25wx_19";
7576
- const headerWrapper = "_headerWrapper_q25wx_23";
7577
- const tableBody = "_tableBody_q25wx_23";
7578
- const clickableHeader = "_clickableHeader_q25wx_29";
7579
- const headerContent = "_headerContent_q25wx_43";
7580
- const headerRow = "_headerRow_q25wx_76";
7581
- const columnCell = "_columnCell_q25wx_81";
7582
- const cell$1 = "_cell_q25wx_81";
7583
- const table$1 = "_table_q25wx_23";
7584
- const row$2 = "_row_q25wx_93";
7585
- const checkBoxWrapper = "_checkBoxWrapper_q25wx_99";
7586
- const showInHeader = "_showInHeader_q25wx_103";
7587
- const selected = "_selected_q25wx_106";
7588
- const allSelected = "_allSelected_q25wx_106";
7589
- const focused$1 = "_focused_q25wx_152";
7590
- const disabled$4 = "_disabled_q25wx_164";
7591
- const noRows$1 = "_noRows_q25wx_193";
7592
- const pagination = "_pagination_q25wx_199";
7593
- const paginationLabel = "_paginationLabel_q25wx_215";
7594
- const paginationSelect = "_paginationSelect_q25wx_220";
7595
- const paginationButtons = "_paginationButtons_q25wx_226";
7596
- const loadingWrapper$1 = "_loadingWrapper_q25wx_238";
7597
- const resizer$1 = "_resizer_q25wx_253";
7598
- const isResizing = "_isResizing_q25wx_275";
7574
+ const wrapper$d = "_wrapper_1wbg1_13";
7575
+ const noScroll = "_noScroll_1wbg1_19";
7576
+ const headerWrapper = "_headerWrapper_1wbg1_23";
7577
+ const tableBody = "_tableBody_1wbg1_23";
7578
+ const clickableHeader = "_clickableHeader_1wbg1_29";
7579
+ const headerContent = "_headerContent_1wbg1_43";
7580
+ const headerRow = "_headerRow_1wbg1_76";
7581
+ const columnCell = "_columnCell_1wbg1_81";
7582
+ const cell = "_cell_1wbg1_81";
7583
+ const table = "_table_1wbg1_23";
7584
+ const row$1 = "_row_1wbg1_93";
7585
+ const checkBoxWrapper = "_checkBoxWrapper_1wbg1_99";
7586
+ const showInHeader = "_showInHeader_1wbg1_103";
7587
+ const selected$1 = "_selected_1wbg1_106";
7588
+ const allSelected = "_allSelected_1wbg1_106";
7589
+ const focused$1 = "_focused_1wbg1_152";
7590
+ const disabled$4 = "_disabled_1wbg1_164";
7591
+ const noBottomBorder = "_noBottomBorder_1wbg1_168";
7592
+ const noRows$1 = "_noRows_1wbg1_196";
7593
+ const pagination = "_pagination_1wbg1_202";
7594
+ const paginationLabel = "_paginationLabel_1wbg1_218";
7595
+ const paginationSelect = "_paginationSelect_1wbg1_223";
7596
+ const paginationButtons = "_paginationButtons_1wbg1_229";
7597
+ const loadingWrapper$1 = "_loadingWrapper_1wbg1_241";
7598
+ const resizer$1 = "_resizer_1wbg1_256";
7599
+ const isResizing = "_isResizing_1wbg1_278";
7599
7600
  const styles$Q = {
7600
7601
  themeVars: themeVars$B,
7601
7602
  wrapper: wrapper$d,
@@ -7606,15 +7607,16 @@ const styles$Q = {
7606
7607
  headerContent,
7607
7608
  headerRow,
7608
7609
  columnCell,
7609
- cell: cell$1,
7610
- table: table$1,
7611
- row: row$2,
7610
+ cell,
7611
+ table,
7612
+ row: row$1,
7612
7613
  checkBoxWrapper,
7613
7614
  showInHeader,
7614
- selected,
7615
+ selected: selected$1,
7615
7616
  allSelected,
7616
7617
  focused: focused$1,
7617
7618
  disabled: disabled$4,
7619
+ noBottomBorder,
7618
7620
  noRows: noRows$1,
7619
7621
  pagination,
7620
7622
  paginationLabel,
@@ -8513,6 +8515,7 @@ function generateBaseTonesForColor(varName, theme2, options2 = { distributeEven:
8513
8515
  return {};
8514
8516
  }
8515
8517
  const baseColor = Color(color);
8518
+ let color0;
8516
8519
  let color50;
8517
8520
  let color100;
8518
8521
  let color200;
@@ -8524,7 +8527,9 @@ function generateBaseTonesForColor(varName, theme2, options2 = { distributeEven:
8524
8527
  let color800;
8525
8528
  let color900;
8526
8529
  let color950;
8530
+ let color1000;
8527
8531
  if (distributeEven) {
8532
+ color0 = baseColor.lightness(100);
8528
8533
  color50 = baseColor.lightness(98);
8529
8534
  color100 = baseColor.lightness(95);
8530
8535
  color200 = baseColor.lightness(83);
@@ -8536,10 +8541,12 @@ function generateBaseTonesForColor(varName, theme2, options2 = { distributeEven:
8536
8541
  color800 = baseColor.lightness(27);
8537
8542
  color900 = baseColor.lightness(16);
8538
8543
  color950 = baseColor.lightness(13);
8544
+ color1000 = baseColor.lightness(9);
8539
8545
  } else {
8540
8546
  const baseL = baseColor.hsl().l();
8541
8547
  const darkStep = baseL / 5;
8542
8548
  const lightStep = (100 - baseL) / 5;
8549
+ color0 = baseColor.lightness(100);
8543
8550
  color50 = baseColor.lightness(baseL + lightStep * 4.5);
8544
8551
  color100 = baseColor.lightness(baseL + lightStep * 4);
8545
8552
  color200 = baseColor.lightness(baseL + lightStep * 3);
@@ -8551,8 +8558,10 @@ function generateBaseTonesForColor(varName, theme2, options2 = { distributeEven:
8551
8558
  color800 = baseColor.lightness(baseL - darkStep * 3);
8552
8559
  color900 = baseColor.lightness(baseL - darkStep * 4);
8553
8560
  color950 = baseColor.lightness(baseL - darkStep * 4.5);
8561
+ color1000 = baseColor.lightness(baseL - darkStep * 5);
8554
8562
  }
8555
8563
  return {
8564
+ [`const-${varName}-0`]: color0.toString(),
8556
8565
  [`const-${varName}-50`]: color50.toString(),
8557
8566
  [`const-${varName}-100`]: color100.toString(),
8558
8567
  [`const-${varName}-200`]: color200.toString(),
@@ -8563,7 +8572,8 @@ function generateBaseTonesForColor(varName, theme2, options2 = { distributeEven:
8563
8572
  [`const-${varName}-700`]: color700.toString(),
8564
8573
  [`const-${varName}-800`]: color800.toString(),
8565
8574
  [`const-${varName}-900`]: color900.toString(),
8566
- [`const-${varName}-950`]: color950.toString()
8575
+ [`const-${varName}-950`]: color950.toString(),
8576
+ [`const-${varName}-1000`]: color1000.toString()
8567
8577
  };
8568
8578
  } catch (e) {
8569
8579
  console.error("Error generating base tones for color:", varName);
@@ -9040,7 +9050,8 @@ const Table = forwardRef(
9040
9050
  hideNoDataView = false,
9041
9051
  alwaysShowSelectionHeader = false,
9042
9052
  registerComponentApi,
9043
- onSelectionDidChange
9053
+ onSelectionDidChange,
9054
+ noBottomBorder: noBottomBorder2 = false
9044
9055
  // cols
9045
9056
  }, forwardedRef) => {
9046
9057
  var _a, _b, _c, _d;
@@ -9482,7 +9493,8 @@ const Table = forwardRef(
9482
9493
  className: classnames(styles$Q.row, {
9483
9494
  [styles$Q.selected]: row2.getIsSelected(),
9484
9495
  [styles$Q.focused]: focusedIndex === rowIndex,
9485
- [styles$Q.disabled]: rowDisabledPredicate(row2.original)
9496
+ [styles$Q.disabled]: rowDisabledPredicate(row2.original),
9497
+ [styles$Q.noBottomBorder]: noBottomBorder2
9486
9498
  }),
9487
9499
  ref: (el) => {
9488
9500
  if (el && estimatedHeightRef.current === null) {
@@ -9679,6 +9691,11 @@ const TableMd = createMetadata({
9679
9691
  description: "This property indicates when the row selection header is displayed. When the value is `true,` the selection header is always visible. Otherwise, it is displayed only when hovered.",
9680
9692
  valueType: "boolean",
9681
9693
  defaultValue: false
9694
+ },
9695
+ noBottomBorder: {
9696
+ description: `This property indicates whether the table should have a bottom border. When set to \`true\`, the table does not have a bottom border. Otherwise, it has a bottom border.`,
9697
+ valueType: "boolean",
9698
+ defaultValue: false
9682
9699
  }
9683
9700
  },
9684
9701
  events: {
@@ -9837,7 +9854,8 @@ const TableWithColumns = forwardRef(
9837
9854
  ),
9838
9855
  alwaysShowSelectionHeader: extractValue.asOptionalBoolean(
9839
9856
  node.props.alwaysShowSelectionHeader
9840
- )
9857
+ ),
9858
+ noBottomBorder: extractValue.asOptionalBoolean(node.props.noBottomBorder)
9841
9859
  }
9842
9860
  )
9843
9861
  ] });
@@ -10195,14 +10213,18 @@ const contentSeparatorComponentRenderer = createComponentRenderer(
10195
10213
  );
10196
10214
  }
10197
10215
  );
10198
- const themeVars$v = `'{"padding-Card": "var(--xmlui-padding-Card)", "paddingHorizontal-Card": "var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card))", "paddingVertical-Card": "var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card))", "paddingLeft-Card": "var(--xmlui-paddingLeft-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingRight-Card": "var(--xmlui-paddingRight-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingTop-Card": "var(--xmlui-paddingTop-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "paddingBottom-Card": "var(--xmlui-paddingBottom-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "border-Card": "var(--xmlui-border-Card)", "borderHorizontal-Card": "var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card))", "borderVertical-Card": "var(--xmlui-borderVertical-Card, var(--xmlui-border-Card))", "borderLeft-Card": "var(--xmlui-borderLeft-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderRight-Card": "var(--xmlui-borderRight-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderTop-Card": "var(--xmlui-borderTop-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderBottom-Card": "var(--xmlui-borderBottom-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderWidth-Card": "var(--xmlui-borderWidth-Card)", "borderHorizontalWidth-Card": "var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card))", "borderLeftWidth-Card": "var(--xmlui-borderLeftWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderRightWidth-Card": "var(--xmlui-borderRightWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderVerticalWidth-Card": "var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card))", "borderTopWidth-Card": "var(--xmlui-borderTopWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderBottomWidth-Card": "var(--xmlui-borderBottomWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderStyle-Card": "var(--xmlui-borderStyle-Card)", "borderHorizontalStyle-Card": "var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card))", "borderLeftStyle-Card": "var(--xmlui-borderLeftStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderRightStyle-Card": "var(--xmlui-borderRightStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderVerticalStyle-Card": "var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card))", "borderTopStyle-Card": "var(--xmlui-borderTopStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderBottomStyle-Card": "var(--xmlui-borderBottomStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderColor-Card": "var(--xmlui-borderColor-Card)", "borderHorizontalColor-Card": "var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card))", "borderLeftColor-Card": "var(--xmlui-borderLeftColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderRightColor-Card": "var(--xmlui-borderRightColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderVerticalColor-Card": "var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card))", "borderTopColor-Card": "var(--xmlui-borderTopColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderBottomColor-Card": "var(--xmlui-borderBottomColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderStartStartRadius-Card": "var(--xmlui-borderStartStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderStartEndRadius-Card": "var(--xmlui-borderStartEndRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndStartRadius-Card": "var(--xmlui-borderEndStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndEndRadius-Card": "var(--xmlui-borderEndEndRadius-Card, var(--xmlui-borderRadius-Card))", "boxShadow-Card": "var(--xmlui-boxShadow-Card)", "backgroundColor-Card": "var(--xmlui-backgroundColor-Card)", "borderRadius-Card": "var(--xmlui-borderRadius-Card)"}'`;
10199
- const wrapper$b = "_wrapper_1fkvh_13";
10200
- const horizontal$2 = "_horizontal_1fkvh_46";
10201
- const vertical$2 = "_vertical_1fkvh_51";
10202
- const isClickable = "_isClickable_1fkvh_54";
10216
+ const themeVars$v = `'{"padding-Card": "var(--xmlui-padding-Card)", "paddingHorizontal-Card": "var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card))", "paddingVertical-Card": "var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card))", "paddingLeft-Card": "var(--xmlui-paddingLeft-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingRight-Card": "var(--xmlui-paddingRight-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingTop-Card": "var(--xmlui-paddingTop-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "paddingBottom-Card": "var(--xmlui-paddingBottom-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "border-Card": "var(--xmlui-border-Card)", "borderHorizontal-Card": "var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card))", "borderVertical-Card": "var(--xmlui-borderVertical-Card, var(--xmlui-border-Card))", "borderLeft-Card": "var(--xmlui-borderLeft-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderRight-Card": "var(--xmlui-borderRight-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderTop-Card": "var(--xmlui-borderTop-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderBottom-Card": "var(--xmlui-borderBottom-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderWidth-Card": "var(--xmlui-borderWidth-Card)", "borderHorizontalWidth-Card": "var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card))", "borderLeftWidth-Card": "var(--xmlui-borderLeftWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderRightWidth-Card": "var(--xmlui-borderRightWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderVerticalWidth-Card": "var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card))", "borderTopWidth-Card": "var(--xmlui-borderTopWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderBottomWidth-Card": "var(--xmlui-borderBottomWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderStyle-Card": "var(--xmlui-borderStyle-Card)", "borderHorizontalStyle-Card": "var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card))", "borderLeftStyle-Card": "var(--xmlui-borderLeftStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderRightStyle-Card": "var(--xmlui-borderRightStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderVerticalStyle-Card": "var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card))", "borderTopStyle-Card": "var(--xmlui-borderTopStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderBottomStyle-Card": "var(--xmlui-borderBottomStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderColor-Card": "var(--xmlui-borderColor-Card)", "borderHorizontalColor-Card": "var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card))", "borderLeftColor-Card": "var(--xmlui-borderLeftColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderRightColor-Card": "var(--xmlui-borderRightColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderVerticalColor-Card": "var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card))", "borderTopColor-Card": "var(--xmlui-borderTopColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderBottomColor-Card": "var(--xmlui-borderBottomColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderStartStartRadius-Card": "var(--xmlui-borderStartStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderStartEndRadius-Card": "var(--xmlui-borderStartEndRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndStartRadius-Card": "var(--xmlui-borderEndStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndEndRadius-Card": "var(--xmlui-borderEndEndRadius-Card, var(--xmlui-borderRadius-Card))", "boxShadow-Card": "var(--xmlui-boxShadow-Card)", "backgroundColor-Card": "var(--xmlui-backgroundColor-Card)", "borderRadius-Card": "var(--xmlui-borderRadius-Card)", "gap-Card": "var(--xmlui-gap-Card)", "gap-title-Card": "var(--xmlui-gap-title-Card)", "gap-avatar-Card": "var(--xmlui-gap-avatar-Card)", "horizontalAlignment-title-Card": "var(--xmlui-horizontalAlignment-title-Card)", "verticalAlignment-title-Card": "var(--xmlui-verticalAlignment-title-Card)"}'`;
10217
+ const wrapper$b = "_wrapper_1arn2_13";
10218
+ const avatarWrapper = "_avatarWrapper_1arn2_46";
10219
+ const titleWrapper = "_titleWrapper_1arn2_52";
10220
+ const horizontal$2 = "_horizontal_1arn2_59";
10221
+ const vertical$2 = "_vertical_1arn2_63";
10222
+ const isClickable = "_isClickable_1arn2_66";
10203
10223
  const styles$K = {
10204
10224
  themeVars: themeVars$v,
10205
10225
  wrapper: wrapper$b,
10226
+ avatarWrapper,
10227
+ titleWrapper,
10206
10228
  horizontal: horizontal$2,
10207
10229
  vertical: vertical$2,
10208
10230
  isClickable
@@ -10220,6 +10242,7 @@ const Card = forwardRef(function Card2({
10220
10242
  linkTo,
10221
10243
  avatarUrl,
10222
10244
  showAvatar = !!avatarUrl || defaultProps$b.showAvatar,
10245
+ avatarSize,
10223
10246
  onClick
10224
10247
  }, forwardedRef) {
10225
10248
  const titleProps = {
@@ -10237,11 +10260,11 @@ const Card = forwardRef(function Card2({
10237
10260
  style: style2,
10238
10261
  onClick,
10239
10262
  children: [
10240
- [title2, subtitle2, avatarUrl, showAvatar].some(Boolean) && /* @__PURE__ */ jsxs(Stack, { orientation: "horizontal", verticalAlignment: "center", style: { gap: "1rem" }, children: [
10241
- showAvatar && /* @__PURE__ */ jsx(Avatar, { url: avatarUrl, name: title2 }),
10242
- /* @__PURE__ */ jsxs(Stack, { orientation: "vertical", children: [
10263
+ [title2, subtitle2, avatarUrl, showAvatar].some(Boolean) && /* @__PURE__ */ jsxs("div", { className: styles$K.avatarWrapper, children: [
10264
+ showAvatar && /* @__PURE__ */ jsx(Avatar, { url: avatarUrl, name: title2, size: avatarSize }),
10265
+ /* @__PURE__ */ jsxs("div", { className: styles$K.titleWrapper, children: [
10243
10266
  linkTo ? title2 ? /* @__PURE__ */ jsx(LocalLink, { to: linkTo + "", children: /* @__PURE__ */ jsx(Heading, { ...titleProps, children: title2 }) }) : null : title2 ? /* @__PURE__ */ jsx(Heading, { ...titleProps, children: title2 }) : null,
10244
- subtitle2 !== void 0 && /* @__PURE__ */ jsx(Text, { variant: "small", children: subtitle2 })
10267
+ subtitle2 !== void 0 && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Text, { variant: "small", children: subtitle2 }) })
10245
10268
  ] })
10246
10269
  ] }),
10247
10270
  children
@@ -10262,6 +10285,11 @@ const CardMd = createMetadata({
10262
10285
  valueType: "boolean",
10263
10286
  defaultValue: defaultProps$b.showAvatar
10264
10287
  },
10288
+ avatarSize: {
10289
+ description: `This prop sets the size of the avatar. The default value is \`sm\`.`,
10290
+ availableValues: ["xs", "sm", "md", "lg"],
10291
+ valueType: "string"
10292
+ },
10265
10293
  title: {
10266
10294
  description: `This prop sets the prestyled title.`,
10267
10295
  valueType: "string"
@@ -10290,7 +10318,18 @@ const CardMd = createMetadata({
10290
10318
  [`border-${COMP$12}`]: "1px solid $borderColor",
10291
10319
  [`borderRadius-${COMP$12}`]: "$borderRadius",
10292
10320
  [`boxShadow-${COMP$12}`]: "none",
10293
- [`backgroundColor-${COMP$12}`]: "$color-surface-raised"
10321
+ [`backgroundColor-${COMP$12}`]: "$color-surface-raised",
10322
+ [`gap-${COMP$12}`]: "var(--stack-gap-default)",
10323
+ [`gap-title-${COMP$12}`]: "$gap-normal",
10324
+ [`gap-avatar-${COMP$12}`]: "$gap-normal",
10325
+ [`verticalAlignment-title-${COMP$12}`]: "center"
10326
+ },
10327
+ themeVarDescriptions: {
10328
+ [`gap-${COMP$12}`]: "The gap between the component's children.",
10329
+ [`gap-title-${COMP$12}`]: "The gap between the title and the subtitle",
10330
+ [`gap-avatar-${COMP$12}`]: "The gap between the avatar and the title panel",
10331
+ [`horizontalAlignment-title-${COMP$12}`]: "The horizontal alignment of panel with the title and subtitle",
10332
+ [`verticalAlignment-title-${COMP$12}`]: "The vertical alignment of the title and subtitle to the avatar"
10294
10333
  }
10295
10334
  });
10296
10335
  const cardComponentRenderer = createComponentRenderer(
@@ -10306,6 +10345,7 @@ const cardComponentRenderer = createComponentRenderer(
10306
10345
  subtitle: extractValue.asOptionalString(node.props.subtitle),
10307
10346
  avatarUrl: extractValue.asOptionalString(node.props.avatarUrl),
10308
10347
  showAvatar: extractValue.asOptionalBoolean(node.props.showAvatar),
10348
+ avatarSize: extractValue.asOptionalString(node.props.avatarSize),
10309
10349
  orientation: extractValue.asOptionalString(node.props.orientation),
10310
10350
  children: renderChild2(node.children, {
10311
10351
  type: "Stack",
@@ -12424,7 +12464,7 @@ const loadingWrapper = "_loadingWrapper_5o4m3_36";
12424
12464
  const noRows = "_noRows_5o4m3_44";
12425
12465
  const borderCollapse = "_borderCollapse_5o4m3_54";
12426
12466
  const sectioned = "_sectioned_5o4m3_54";
12427
- const row$1 = "_row_5o4m3_54";
12467
+ const row = "_row_5o4m3_54";
12428
12468
  const section = "_section_5o4m3_54";
12429
12469
  const sectionFooter = "_sectionFooter_5o4m3_70";
12430
12470
  const styles$D = {
@@ -12437,7 +12477,7 @@ const styles$D = {
12437
12477
  noRows,
12438
12478
  borderCollapse,
12439
12479
  sectioned,
12440
- row: row$1,
12480
+ row,
12441
12481
  section,
12442
12482
  sectionFooter
12443
12483
  };
@@ -12751,6 +12791,7 @@ const ListNative = forwardRef(function DynamicHeightList({
12751
12791
  });
12752
12792
  }, [registerComponentApi, scrollToBottom, scrollToId, scrollToIndex, scrollToTop]);
12753
12793
  const rowTypeContextValue = useCallback((index) => rows[index]._row_type, [rows]);
12794
+ const rowCount = (rows == null ? void 0 : rows.length) ?? 0;
12754
12795
  return /* @__PURE__ */ jsx(ListItemTypeContext.Provider, { value: rowTypeContextValue, children: /* @__PURE__ */ jsx(ListContext.Provider, { value: expandContextValue, children: /* @__PURE__ */ jsxs(
12755
12796
  "div",
12756
12797
  {
@@ -12780,7 +12821,7 @@ const ListNative = forwardRef(function DynamicHeightList({
12780
12821
  onScroll,
12781
12822
  startMargin: hasOutsideScroll2 ? ((_a = parentRef.current) == null ? void 0 : _a.offsetTop) - ((_b = scrollRef.current) == null ? void 0 : _b.offsetTop) || 0 : 0,
12782
12823
  item: Item,
12783
- count: rows.length ?? 0,
12824
+ count: rowCount,
12784
12825
  children: (rowIndex) => {
12785
12826
  const row2 = rows[rowIndex];
12786
12827
  const key = row2[idKey];
@@ -12790,7 +12831,7 @@ const ListNative = forwardRef(function DynamicHeightList({
12790
12831
  case "SECTION_FOOTER":
12791
12832
  return /* @__PURE__ */ jsx(Fragment$1, { children: (sectionFooterRenderer == null ? void 0 : sectionFooterRenderer(row2, key)) || /* @__PURE__ */ jsx("div", {}) }, key);
12792
12833
  default:
12793
- return /* @__PURE__ */ jsx(Fragment$1, { children: itemRenderer(row2, key) || /* @__PURE__ */ jsx("div", {}) }, key);
12834
+ return /* @__PURE__ */ jsx(Fragment$1, { children: itemRenderer(row2, key, rowIndex, rowCount) || /* @__PURE__ */ jsx("div", {}) }, key);
12794
12835
  }
12795
12836
  }
12796
12837
  }
@@ -12804,7 +12845,8 @@ const ListNative = forwardRef(function DynamicHeightList({
12804
12845
  function MemoizedSection({
12805
12846
  node,
12806
12847
  renderChild: renderChild2,
12807
- item: item2
12848
+ item: item2,
12849
+ contextVars = EMPTY_OBJECT
12808
12850
  }) {
12809
12851
  const { isExpanded, toggleExpanded } = useContext(ListContext);
12810
12852
  const id = item2.id;
@@ -12825,7 +12867,12 @@ function MemoizedSection({
12825
12867
  item: item2,
12826
12868
  context: sectionContext,
12827
12869
  itemKey: "$group",
12828
- contextKey: "$group"
12870
+ contextKey: "$group",
12871
+ contextVars: {
12872
+ ...contextVars,
12873
+ $isFirst: item2.index === 0,
12874
+ $isLast: item2.index === item2.count - 1
12875
+ }
12829
12876
  }
12830
12877
  );
12831
12878
  }
@@ -12908,7 +12955,12 @@ const ListMd = createMetadata({
12908
12955
  )
12909
12956
  },
12910
12957
  contextVars: {
12911
- $item: d(`This property represents the value of an item in the data list.`)
12958
+ $item: d(`This property represents the value of an item in the data list.`),
12959
+ $itemIndex: dComponent(
12960
+ "This integer value represents the current row index (zero-based) while rendering children."
12961
+ ),
12962
+ $isFirst: dComponent("This boolean value indicates if the component renders its first item."),
12963
+ $isLast: dComponent("This boolean value indicates if the component renders its last item.")
12912
12964
  },
12913
12965
  themeVars: parseScssVar(styles$D.themeVars)
12914
12966
  });
@@ -12946,14 +12998,19 @@ const dynamicHeightListComponentRenderer = createComponentRenderer(
12946
12998
  groupsInitiallyExpanded: extractValue.asOptionalBoolean(node.props.groupsInitiallyExpanded),
12947
12999
  defaultGroups: extractValue(node.props.defaultGroups),
12948
13000
  borderCollapse: extractValue.asOptionalBoolean(node.props.borderCollapse, true),
12949
- itemRenderer: itemTemplate && ((item2, key) => {
13001
+ itemRenderer: itemTemplate && ((item2, key, rowIndex, count) => {
12950
13002
  return /* @__PURE__ */ jsx(
12951
13003
  MemoizedItem,
12952
13004
  {
12953
13005
  node: itemTemplate,
12954
13006
  item: item2,
12955
13007
  renderChild: renderChild2,
12956
- layoutContext
13008
+ layoutContext,
13009
+ contextVars: {
13010
+ $itemIndex: rowIndex,
13011
+ $isFirst: rowIndex === 0,
13012
+ $isLast: rowIndex === count - 1
13013
+ }
12957
13014
  },
12958
13015
  key
12959
13016
  );
@@ -15642,41 +15699,41 @@ function $d3863c46a17e8a28$var$removeLinks(items) {
15642
15699
  );
15643
15700
  }
15644
15701
  const themeVars$j = `'{"padding-item-Select": "var(--xmlui-padding-item-Select)", "paddingHorizontal-item-Select": "var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select))", "paddingVertical-item-Select": "var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select))", "paddingLeft-item-Select": "var(--xmlui-paddingLeft-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingRight-item-Select": "var(--xmlui-paddingRight-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingTop-item-Select": "var(--xmlui-paddingTop-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "paddingBottom-item-Select": "var(--xmlui-paddingBottom-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "Input:fontSize-Select-default": "var(--xmlui-fontSize-Select-default)", "Input:textColor-placeholder-Select-default": "var(--xmlui-textColor-placeholder-Select-default)", "Input:textColor-Select-default": "var(--xmlui-textColor-Select-default)", "Input:fontSize-Select-error": "var(--xmlui-fontSize-Select-error)", "Input:textColor-placeholder-Select-error": "var(--xmlui-textColor-placeholder-Select-error)", "Input:textColor-Select-error": "var(--xmlui-textColor-Select-error)", "Input:fontSize-Select-warning": "var(--xmlui-fontSize-Select-warning)", "Input:textColor-placeholder-Select-warning": "var(--xmlui-textColor-placeholder-Select-warning)", "Input:textColor-Select-warning": "var(--xmlui-textColor-Select-warning)", "Input:fontSize-Select-success": "var(--xmlui-fontSize-Select-success)", "Input:textColor-placeholder-Select-success": "var(--xmlui-textColor-placeholder-Select-success)", "Input:textColor-Select-success": "var(--xmlui-textColor-Select-success)", "Input:borderRadius-Select-default": "var(--xmlui-borderRadius-Select-default)", "Input:borderColor-Select-default": "var(--xmlui-borderColor-Select-default)", "Input:borderWidth-Select-default": "var(--xmlui-borderWidth-Select-default)", "Input:borderStyle-Select-default": "var(--xmlui-borderStyle-Select-default)", "Input:backgroundColor-Select-default": "var(--xmlui-backgroundColor-Select-default)", "Input:boxShadow-Select-default": "var(--xmlui-boxShadow-Select-default)", "Input:borderColor-Select-default--hover": "var(--xmlui-borderColor-Select-default--hover)", "Input:backgroundColor-Select-default--hover": "var(--xmlui-backgroundColor-Select-default--hover)", "Input:boxShadow-Select-default--hover": "var(--xmlui-boxShadow-Select-default--hover)", "Input:textColor-Select-default--hover": "var(--xmlui-textColor-Select-default--hover)", "Input:outlineWidth-Select-default--focus": "var(--xmlui-outlineWidth-Select-default--focus)", "Input:outlineColor-Select-default--focus": "var(--xmlui-outlineColor-Select-default--focus)", "Input:outlineStyle-Select-default--focus": "var(--xmlui-outlineStyle-Select-default--focus)", "Input:outlineOffset-Select-default--focus": "var(--xmlui-outlineOffset-Select-default--focus)", "Input:borderRadius-Select-error": "var(--xmlui-borderRadius-Select-error)", "Input:borderColor-Select-error": "var(--xmlui-borderColor-Select-error)", "Input:borderWidth-Select-error": "var(--xmlui-borderWidth-Select-error)", "Input:borderStyle-Select-error": "var(--xmlui-borderStyle-Select-error)", "Input:backgroundColor-Select-error": "var(--xmlui-backgroundColor-Select-error)", "Input:boxShadow-Select-error": "var(--xmlui-boxShadow-Select-error)", "Input:borderColor-Select-error--hover": "var(--xmlui-borderColor-Select-error--hover)", "Input:backgroundColor-Select-error--hover": "var(--xmlui-backgroundColor-Select-error--hover)", "Input:boxShadow-Select-error--hover": "var(--xmlui-boxShadow-Select-error--hover)", "Input:textColor-Select-error--hover": "var(--xmlui-textColor-Select-error--hover)", "Input:outlineWidth-Select-error--focus": "var(--xmlui-outlineWidth-Select-error--focus)", "Input:outlineColor-Select-error--focus": "var(--xmlui-outlineColor-Select-error--focus)", "Input:outlineStyle-Select-error--focus": "var(--xmlui-outlineStyle-Select-error--focus)", "Input:outlineOffset-Select-error--focus": "var(--xmlui-outlineOffset-Select-error--focus)", "Input:borderRadius-Select-warning": "var(--xmlui-borderRadius-Select-warning)", "Input:borderColor-Select-warning": "var(--xmlui-borderColor-Select-warning)", "Input:borderWidth-Select-warning": "var(--xmlui-borderWidth-Select-warning)", "Input:borderStyle-Select-warning": "var(--xmlui-borderStyle-Select-warning)", "Input:backgroundColor-Select-warning": "var(--xmlui-backgroundColor-Select-warning)", "Input:boxShadow-Select-warning": "var(--xmlui-boxShadow-Select-warning)", "Input:borderColor-Select-warning--hover": "var(--xmlui-borderColor-Select-warning--hover)", "Input:backgroundColor-Select-warning--hover": "var(--xmlui-backgroundColor-Select-warning--hover)", "Input:boxShadow-Select-warning--hover": "var(--xmlui-boxShadow-Select-warning--hover)", "Input:textColor-Select-warning--hover": "var(--xmlui-textColor-Select-warning--hover)", "Input:outlineWidth-Select-warning--focus": "var(--xmlui-outlineWidth-Select-warning--focus)", "Input:outlineColor-Select-warning--focus": "var(--xmlui-outlineColor-Select-warning--focus)", "Input:outlineStyle-Select-warning--focus": "var(--xmlui-outlineStyle-Select-warning--focus)", "Input:outlineOffset-Select-warning--focus": "var(--xmlui-outlineOffset-Select-warning--focus)", "Input:borderRadius-Select-success": "var(--xmlui-borderRadius-Select-success)", "Input:borderColor-Select-success": "var(--xmlui-borderColor-Select-success)", "Input:borderWidth-Select-success": "var(--xmlui-borderWidth-Select-success)", "Input:borderStyle-Select-success": "var(--xmlui-borderStyle-Select-success)", "Input:backgroundColor-Select-success": "var(--xmlui-backgroundColor-Select-success)", "Input:boxShadow-Select-success": "var(--xmlui-boxShadow-Select-success)", "Input:borderColor-Select-success--hover": "var(--xmlui-borderColor-Select-success--hover)", "Input:backgroundColor-Select-success--hover": "var(--xmlui-backgroundColor-Select-success--hover)", "Input:boxShadow-Select-success--hover": "var(--xmlui-boxShadow-Select-success--hover)", "Input:textColor-Select-success--hover": "var(--xmlui-textColor-Select-success--hover)", "Input:outlineWidth-Select-success--focus": "var(--xmlui-outlineWidth-Select-success--focus)", "Input:outlineColor-Select-success--focus": "var(--xmlui-outlineColor-Select-success--focus)", "Input:outlineStyle-Select-success--focus": "var(--xmlui-outlineStyle-Select-success--focus)", "Input:outlineOffset-Select-success--focus": "var(--xmlui-outlineOffset-Select-success--focus)", "opacity-Select--disabled": "var(--xmlui-opacity-Select--disabled)", "Input:backgroundColor-Select--disabled": "var(--xmlui-backgroundColor-Select--disabled)", "Input:textColor-Select--disabled": "var(--xmlui-textColor-Select--disabled)", "Input:borderColor-Select--disabled": "var(--xmlui-borderColor-Select--disabled)", "paddingVertical-Select-badge": "var(--xmlui-paddingVertical-Select-badge)", "paddingHorizontal-Select-badge": "var(--xmlui-paddingHorizontal-Select-badge)", "Input:fontSize-Select-badge": "var(--xmlui-fontSize-Select-badge)", "Input:backgroundColor-Select-badge": "var(--xmlui-backgroundColor-Select-badge)", "Input:textColor-Select-badge": "var(--xmlui-textColor-Select-badge)", "Input:backgroundColor-Select-badge--hover": "var(--xmlui-backgroundColor-Select-badge--hover)", "Input:textColor-Select-badge--hover": "var(--xmlui-textColor-Select-badge--hover)", "Input:backgroundColor-Select-badge--active": "var(--xmlui-backgroundColor-Select-badge--active)", "Input:textColor-Select-badge--active": "var(--xmlui-textColor-Select-badge--active)", "Input:textColor-placeholder-Select": "var(--xmlui-textColor-placeholder-Select)", "Input:backgroundColor-menu-Select": "var(--xmlui-backgroundColor-menu-Select)", "Input:borderRadius-menu-Select": "var(--xmlui-borderRadius-menu-Select)", "Input:boxShadow-menu-Select": "var(--xmlui-boxShadow-menu-Select)", "Input:borderWidth-menu-Select": "var(--xmlui-borderWidth-menu-Select)", "Input:borderColor-menu-Select": "var(--xmlui-borderColor-menu-Select)", "backgroundColor-item-Select": "var(--xmlui-backgroundColor-item-Select)", "backgroundColor-item-Select--hover": "var(--xmlui-backgroundColor-item-Select--hover)", "opacity-text-item-Select--disabled": "var(--xmlui-opacity-text-item-Select--disabled)", "fontSize-Select": "var(--xmlui-fontSize-Select)", "backgroundColor-item-Select--active": "var(--xmlui-backgroundColor-item-Select--active)", "textColor-indicator-Select": "var(--xmlui-textColor-indicator-Select)"}'`;
15645
- const selectValue = "_selectValue_nwesf_13";
15646
- const error$7 = "_error_nwesf_21";
15647
- const warning$7 = "_warning_nwesf_29";
15648
- const valid$7 = "_valid_nwesf_37";
15649
- const selectTrigger = "_selectTrigger_nwesf_46";
15650
- const badgeListContainer = "_badgeListContainer_nwesf_170";
15651
- const badgeList$1 = "_badgeList_nwesf_170";
15652
- const badge$1 = "_badge_nwesf_170";
15653
- const actions$1 = "_actions_nwesf_210";
15654
- const placeholder$1 = "_placeholder_nwesf_216";
15655
- const emptyList = "_emptyList_nwesf_221";
15656
- const selectScrollUpButton = "_selectScrollUpButton_nwesf_231";
15657
- const selectScrollDownButton = "_selectScrollDownButton_nwesf_240";
15658
- const command$1 = "_command_nwesf_249";
15659
- const commandInputContainer = "_commandInputContainer_nwesf_259";
15660
- const commandInput$1 = "_commandInput_nwesf_259";
15661
- const commandList$1 = "_commandList_nwesf_284";
15662
- const selectContent = "_selectContent_nwesf_289";
15663
- const fadeIn = "_fadeIn_nwesf_1";
15664
- const zoomIn = "_zoomIn_nwesf_1";
15665
- const fadeOut = "_fadeOut_nwesf_1";
15666
- const zoomOut = "_zoomOut_nwesf_1";
15667
- const slideInFromTop = "_slideInFromTop_nwesf_1";
15668
- const slideInFromRight = "_slideInFromRight_nwesf_1";
15669
- const slideInFromLeft = "_slideInFromLeft_nwesf_1";
15670
- const slideInFromBottom = "_slideInFromBottom_nwesf_1";
15671
- const multiComboboxOption = "_multiComboboxOption_nwesf_329";
15672
- const multiComboboxOptionContent = "_multiComboboxOptionContent_nwesf_329";
15673
- const selectItem = "_selectItem_nwesf_354";
15674
- const selectItemContent = "_selectItemContent_nwesf_369";
15675
- const selectItemIndicator = "_selectItemIndicator_nwesf_391";
15676
- const selectViewport = "_selectViewport_nwesf_402";
15677
- const selectEmpty = "_selectEmpty_nwesf_408";
15678
- const loading = "_loading_nwesf_419";
15679
- const srOnly = "_srOnly_nwesf_423";
15702
+ const selectValue = "_selectValue_1ept5_13";
15703
+ const error$7 = "_error_1ept5_21";
15704
+ const warning$7 = "_warning_1ept5_29";
15705
+ const valid$7 = "_valid_1ept5_37";
15706
+ const selectTrigger = "_selectTrigger_1ept5_46";
15707
+ const badgeListContainer = "_badgeListContainer_1ept5_170";
15708
+ const badgeList$1 = "_badgeList_1ept5_170";
15709
+ const badge$1 = "_badge_1ept5_170";
15710
+ const actions$1 = "_actions_1ept5_210";
15711
+ const placeholder$1 = "_placeholder_1ept5_216";
15712
+ const emptyList = "_emptyList_1ept5_221";
15713
+ const selectScrollUpButton = "_selectScrollUpButton_1ept5_231";
15714
+ const selectScrollDownButton = "_selectScrollDownButton_1ept5_240";
15715
+ const command$1 = "_command_1ept5_249";
15716
+ const commandInputContainer = "_commandInputContainer_1ept5_259";
15717
+ const commandInput$1 = "_commandInput_1ept5_259";
15718
+ const commandList$1 = "_commandList_1ept5_284";
15719
+ const selectContent = "_selectContent_1ept5_289";
15720
+ const fadeIn = "_fadeIn_1ept5_1";
15721
+ const zoomIn = "_zoomIn_1ept5_1";
15722
+ const fadeOut = "_fadeOut_1ept5_1";
15723
+ const zoomOut = "_zoomOut_1ept5_1";
15724
+ const slideInFromTop = "_slideInFromTop_1ept5_1";
15725
+ const slideInFromRight = "_slideInFromRight_1ept5_1";
15726
+ const slideInFromLeft = "_slideInFromLeft_1ept5_1";
15727
+ const slideInFromBottom = "_slideInFromBottom_1ept5_1";
15728
+ const multiComboboxOption = "_multiComboboxOption_1ept5_329";
15729
+ const multiComboboxOptionContent = "_multiComboboxOptionContent_1ept5_329";
15730
+ const selectItem = "_selectItem_1ept5_354";
15731
+ const selectItemContent = "_selectItemContent_1ept5_369";
15732
+ const selectItemIndicator = "_selectItemIndicator_1ept5_390";
15733
+ const selectViewport = "_selectViewport_1ept5_401";
15734
+ const selectEmpty = "_selectEmpty_1ept5_407";
15735
+ const loading = "_loading_1ept5_418";
15736
+ const srOnly = "_srOnly_1ept5_422";
15680
15737
  const styles$x = {
15681
15738
  themeVars: themeVars$j,
15682
15739
  selectValue,
@@ -16135,7 +16192,7 @@ const SelectOption = React__default.forwardRef(
16135
16192
  return () => onOptionRemove(option);
16136
16193
  }, [option, onOptionAdd, onOptionRemove]);
16137
16194
  return /* @__PURE__ */ jsx(Item$1, { ref, className: styles$x.selectItem, value: value + "", disabled: !enabled2, children: /* @__PURE__ */ jsx("div", { className: styles$x.selectItemContent, children: optionRenderer ? optionRenderer({
16138
- label: /* @__PURE__ */ jsx(ItemText, { children: label2 }),
16195
+ label: label2,
16139
16196
  value,
16140
16197
  enabled: enabled2
16141
16198
  }) : /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -16307,54 +16364,52 @@ const RadioGroupOption = ({
16307
16364
  })
16308
16365
  ] }) : item2 }, id);
16309
16366
  };
16310
- const themeVars$h = `'{"Input:minHeight-DatePicker": "var(--xmlui-minHeight-DatePicker)", "Input:fontSize-DatePicker": "var(--xmlui-fontSize-DatePicker)", "Input:borderRadius-DatePicker-default": "var(--xmlui-borderRadius-DatePicker-default)", "Input:borderColor-DatePicker-default": "var(--xmlui-borderColor-DatePicker-default)", "Input:borderWidth-DatePicker-default": "var(--xmlui-borderWidth-DatePicker-default)", "Input:borderStyle-DatePicker-default": "var(--xmlui-borderStyle-DatePicker-default)", "Input:backgroundColor-DatePicker-default": "var(--xmlui-backgroundColor-DatePicker-default)", "Input:boxShadow-DatePicker-default": "var(--xmlui-boxShadow-DatePicker-default)", "Input:textColor-DatePicker-default": "var(--xmlui-textColor-DatePicker-default)", "Input:padding-DatePicker-default": "var(--xmlui-padding-DatePicker-default)", "Input:borderColor-DatePicker-default--hover": "var(--xmlui-borderColor-DatePicker-default--hover)", "Input:backgroundColor-DatePicker-default--hover": "var(--xmlui-backgroundColor-DatePicker-default--hover)", "Input:boxShadow-DatePicker-default--hover": "var(--xmlui-boxShadow-DatePicker-default--hover)", "Input:textColor-DatePicker-default--hover": "var(--xmlui-textColor-DatePicker-default--hover)", "Input:outlineWidth-DatePicker-default--focus": "var(--xmlui-outlineWidth-DatePicker-default--focus)", "Input:outlineColor-DatePicker-default--focus": "var(--xmlui-outlineColor-DatePicker-default--focus)", "Input:outlineStyle-DatePicker-default--focus": "var(--xmlui-outlineStyle-DatePicker-default--focus)", "Input:outlineOffset-DatePicker-default--focus": "var(--xmlui-outlineOffset-DatePicker-default--focus)", "Input:textColor-placeholder-DatePicker-default": "var(--xmlui-textColor-placeholder-DatePicker-default)", "Input:textColor-adornment-DatePicker-default": "var(--xmlui-textColor-adornment-DatePicker-default)", "Input:borderRadius-DatePicker-error": "var(--xmlui-borderRadius-DatePicker-error)", "Input:borderColor-DatePicker-error": "var(--xmlui-borderColor-DatePicker-error)", "Input:borderWidth-DatePicker-error": "var(--xmlui-borderWidth-DatePicker-error)", "Input:borderStyle-DatePicker-error": "var(--xmlui-borderStyle-DatePicker-error)", "Input:backgroundColor-DatePicker-error": "var(--xmlui-backgroundColor-DatePicker-error)", "Input:boxShadow-DatePicker-error": "var(--xmlui-boxShadow-DatePicker-error)", "Input:textColor-DatePicker-error": "var(--xmlui-textColor-DatePicker-error)", "Input:padding-DatePicker-error": "var(--xmlui-padding-DatePicker-error)", "Input:borderColor-DatePicker-error--hover": "var(--xmlui-borderColor-DatePicker-error--hover)", "Input:backgroundColor-DatePicker-error--hover": "var(--xmlui-backgroundColor-DatePicker-error--hover)", "Input:boxShadow-DatePicker-error--hover": "var(--xmlui-boxShadow-DatePicker-error--hover)", "Input:textColor-DatePicker-error--hover": "var(--xmlui-textColor-DatePicker-error--hover)", "Input:outlineWidth-DatePicker-error--focus": "var(--xmlui-outlineWidth-DatePicker-error--focus)", "Input:outlineColor-DatePicker-error--focus": "var(--xmlui-outlineColor-DatePicker-error--focus)", "Input:outlineStyle-DatePicker-error--focus": "var(--xmlui-outlineStyle-DatePicker-error--focus)", "Input:outlineOffset-DatePicker-error--focus": "var(--xmlui-outlineOffset-DatePicker-error--focus)", "Input:textColor-placeholder-DatePicker-error": "var(--xmlui-textColor-placeholder-DatePicker-error)", "Input:textColor-adornment-DatePicker-error": "var(--xmlui-textColor-adornment-DatePicker-error)", "Input:borderRadius-DatePicker-warning": "var(--xmlui-borderRadius-DatePicker-warning)", "Input:borderColor-DatePicker-warning": "var(--xmlui-borderColor-DatePicker-warning)", "Input:borderWidth-DatePicker-warning": "var(--xmlui-borderWidth-DatePicker-warning)", "Input:borderStyle-DatePicker-warning": "var(--xmlui-borderStyle-DatePicker-warning)", "Input:backgroundColor-DatePicker-warning": "var(--xmlui-backgroundColor-DatePicker-warning)", "Input:boxShadow-DatePicker-warning": "var(--xmlui-boxShadow-DatePicker-warning)", "Input:textColor-DatePicker-warning": "var(--xmlui-textColor-DatePicker-warning)", "Input:padding-DatePicker-warning": "var(--xmlui-padding-DatePicker-warning)", "Input:borderColor-DatePicker-warning--hover": "var(--xmlui-borderColor-DatePicker-warning--hover)", "Input:backgroundColor-DatePicker-warning--hover": "var(--xmlui-backgroundColor-DatePicker-warning--hover)", "Input:boxShadow-DatePicker-warning--hover": "var(--xmlui-boxShadow-DatePicker-warning--hover)", "Input:textColor-DatePicker-warning--hover": "var(--xmlui-textColor-DatePicker-warning--hover)", "Input:outlineWidth-DatePicker-warning--focus": "var(--xmlui-outlineWidth-DatePicker-warning--focus)", "Input:outlineColor-DatePicker-warning--focus": "var(--xmlui-outlineColor-DatePicker-warning--focus)", "Input:outlineStyle-DatePicker-warning--focus": "var(--xmlui-outlineStyle-DatePicker-warning--focus)", "Input:outlineOffset-DatePicker-warning--focus": "var(--xmlui-outlineOffset-DatePicker-warning--focus)", "Input:textColor-placeholder-DatePicker-warning": "var(--xmlui-textColor-placeholder-DatePicker-warning)", "Input:textColor-adornment-DatePicker-warning": "var(--xmlui-textColor-adornment-DatePicker-warning)", "Input:borderRadius-DatePicker-success": "var(--xmlui-borderRadius-DatePicker-success)", "Input:borderColor-DatePicker-success": "var(--xmlui-borderColor-DatePicker-success)", "Input:borderWidth-DatePicker-success": "var(--xmlui-borderWidth-DatePicker-success)", "Input:borderStyle-DatePicker-success": "var(--xmlui-borderStyle-DatePicker-success)", "Input:backgroundColor-DatePicker-success": "var(--xmlui-backgroundColor-DatePicker-success)", "Input:boxShadow-DatePicker-success": "var(--xmlui-boxShadow-DatePicker-success)", "Input:textColor-DatePicker-success": "var(--xmlui-textColor-DatePicker-success)", "Input:padding-DatePicker-success": "var(--xmlui-padding-DatePicker-success)", "Input:borderColor-DatePicker-success--hover": "var(--xmlui-borderColor-DatePicker-success--hover)", "Input:backgroundColor-DatePicker-success--hover": "var(--xmlui-backgroundColor-DatePicker-success--hover)", "Input:boxShadow-DatePicker-success--hover": "var(--xmlui-boxShadow-DatePicker-success--hover)", "Input:textColor-DatePicker-success--hover": "var(--xmlui-textColor-DatePicker-success--hover)", "Input:outlineWidth-DatePicker-success--focus": "var(--xmlui-outlineWidth-DatePicker-success--focus)", "Input:outlineColor-DatePicker-success--focus": "var(--xmlui-outlineColor-DatePicker-success--focus)", "Input:outlineStyle-DatePicker-success--focus": "var(--xmlui-outlineStyle-DatePicker-success--focus)", "Input:outlineOffset-DatePicker-success--focus": "var(--xmlui-outlineOffset-DatePicker-success--focus)", "Input:textColor-placeholder-DatePicker-success": "var(--xmlui-textColor-placeholder-DatePicker-success)", "Input:textColor-adornment-DatePicker-success": "var(--xmlui-textColor-adornment-DatePicker-success)", "Input:backgroundColor-DatePicker--disabled": "var(--xmlui-backgroundColor-DatePicker--disabled)", "Input:textColor-DatePicker--disabled": "var(--xmlui-textColor-DatePicker--disabled)", "Input:borderColor-DatePicker--disabled": "var(--xmlui-borderColor-DatePicker--disabled)", "Input:boxShadow-menu-DatePicker": "var(--xmlui-boxShadow-menu-DatePicker)", "Input:backgroundColor-menu-DatePicker": "var(--xmlui-backgroundColor-menu-DatePicker)", "Input:borderRadius-menu-DatePicker": "var(--xmlui-borderRadius-menu-DatePicker)", "Input:backgroundColor-item-DatePicker--active": "var(--xmlui-backgroundColor-item-DatePicker--active)", "Input:backgroundColor-item-DatePicker--hover": "var(--xmlui-backgroundColor-item-DatePicker--hover)", "Input:textColor-value-DatePicker": "var(--xmlui-textColor-value-DatePicker)"}'`;
16311
- const datePicker = "_datePicker_1lk6v_13";
16312
- const placeholder = "_placeholder_1lk6v_47";
16313
- const adornment = "_adornment_1lk6v_50";
16314
- const error$5 = "_error_1lk6v_53";
16315
- const warning$5 = "_warning_1lk6v_81";
16316
- const valid$5 = "_valid_1lk6v_109";
16317
- const disabled$2 = "_disabled_1lk6v_137";
16318
- const indicator$1 = "_indicator_1lk6v_143";
16319
- const datePickerInput = "_datePickerInput_1lk6v_143";
16320
- const datePickerValue = "_datePickerValue_1lk6v_147";
16321
- const inlinePickerMenu = "_inlinePickerMenu_1lk6v_152";
16322
- const datePickerMenu = "_datePickerMenu_1lk6v_269";
16323
- const root$1 = "_root_1lk6v_278";
16324
- const vhidden = "_vhidden_1lk6v_284";
16325
- const button_reset = "_button_reset_1lk6v_304";
16326
- const button$1 = "_button_1lk6v_304";
16327
- const day_selected = "_day_selected_1lk6v_326";
16328
- const months = "_months_1lk6v_344";
16329
- const month = "_month_1lk6v_344";
16330
- const table = "_table_1lk6v_360";
16331
- const with_weeknumber = "_with_weeknumber_1lk6v_366";
16332
- const caption = "_caption_1lk6v_371";
16333
- const multiple_months = "_multiple_months_1lk6v_379";
16334
- const caption_dropdowns = "_caption_dropdowns_1lk6v_385";
16335
- const caption_label = "_caption_label_1lk6v_390";
16336
- const nav$1 = "_nav_1lk6v_406";
16337
- const caption_start = "_caption_start_1lk6v_410";
16338
- const caption_end = "_caption_end_1lk6v_417";
16339
- const nav_button = "_nav_button_1lk6v_424";
16340
- const dropdown_year = "_dropdown_year_1lk6v_437";
16341
- const dropdown_month = "_dropdown_month_1lk6v_438";
16342
- const dropdown = "_dropdown_1lk6v_437";
16343
- const dropdown_icon = "_dropdown_icon_1lk6v_474";
16344
- const head = "_head_1lk6v_478";
16345
- const head_row = "_head_row_1lk6v_482";
16346
- const row = "_row_1lk6v_483";
16347
- const head_cell = "_head_cell_1lk6v_487";
16348
- const tbody = "_tbody_1lk6v_498";
16349
- const tfoot = "_tfoot_1lk6v_502";
16350
- const cell = "_cell_1lk6v_506";
16351
- const weeknumber = "_weeknumber_1lk6v_514";
16352
- const day = "_day_1lk6v_326";
16353
- const day_today = "_day_today_1lk6v_533";
16354
- const day_outside = "_day_outside_1lk6v_533";
16355
- const day_range_start = "_day_range_start_1lk6v_556";
16356
- const day_range_end = "_day_range_end_1lk6v_556";
16357
- const day_range_middle = "_day_range_middle_1lk6v_580";
16367
+ const themeVars$h = `'{"Input:backgroundColor-item-DatePicker--active": "var(--xmlui-backgroundColor-item-DatePicker--active)", "Input:backgroundColor-item-DatePicker--hover": "var(--xmlui-backgroundColor-item-DatePicker--hover)", "Input:textColor-value-DatePicker": "var(--xmlui-textColor-value-DatePicker)", "Input:minHeight-DatePicker": "var(--xmlui-minHeight-DatePicker)", "Input:fontSize-DatePicker": "var(--xmlui-fontSize-DatePicker)", "Input:borderRadius-DatePicker-default": "var(--xmlui-borderRadius-DatePicker-default)", "Input:borderColor-DatePicker-default": "var(--xmlui-borderColor-DatePicker-default)", "Input:borderWidth-DatePicker-default": "var(--xmlui-borderWidth-DatePicker-default)", "Input:borderStyle-DatePicker-default": "var(--xmlui-borderStyle-DatePicker-default)", "Input:backgroundColor-DatePicker-default": "var(--xmlui-backgroundColor-DatePicker-default)", "Input:boxShadow-DatePicker-default": "var(--xmlui-boxShadow-DatePicker-default)", "Input:textColor-DatePicker-default": "var(--xmlui-textColor-DatePicker-default)", "Input:padding-DatePicker-default": "var(--xmlui-padding-DatePicker-default)", "Input:borderColor-DatePicker-default--hover": "var(--xmlui-borderColor-DatePicker-default--hover)", "Input:backgroundColor-DatePicker-default--hover": "var(--xmlui-backgroundColor-DatePicker-default--hover)", "Input:boxShadow-DatePicker-default--hover": "var(--xmlui-boxShadow-DatePicker-default--hover)", "Input:textColor-DatePicker-default--hover": "var(--xmlui-textColor-DatePicker-default--hover)", "Input:outlineWidth-DatePicker-default--focus": "var(--xmlui-outlineWidth-DatePicker-default--focus)", "Input:outlineColor-DatePicker-default--focus": "var(--xmlui-outlineColor-DatePicker-default--focus)", "Input:outlineStyle-DatePicker-default--focus": "var(--xmlui-outlineStyle-DatePicker-default--focus)", "Input:outlineOffset-DatePicker-default--focus": "var(--xmlui-outlineOffset-DatePicker-default--focus)", "Input:textColor-placeholder-DatePicker-default": "var(--xmlui-textColor-placeholder-DatePicker-default)", "Input:textColor-adornment-DatePicker-default": "var(--xmlui-textColor-adornment-DatePicker-default)", "Input:borderRadius-DatePicker-error": "var(--xmlui-borderRadius-DatePicker-error)", "Input:borderColor-DatePicker-error": "var(--xmlui-borderColor-DatePicker-error)", "Input:borderWidth-DatePicker-error": "var(--xmlui-borderWidth-DatePicker-error)", "Input:borderStyle-DatePicker-error": "var(--xmlui-borderStyle-DatePicker-error)", "Input:backgroundColor-DatePicker-error": "var(--xmlui-backgroundColor-DatePicker-error)", "Input:boxShadow-DatePicker-error": "var(--xmlui-boxShadow-DatePicker-error)", "Input:textColor-DatePicker-error": "var(--xmlui-textColor-DatePicker-error)", "Input:padding-DatePicker-error": "var(--xmlui-padding-DatePicker-error)", "Input:borderColor-DatePicker-error--hover": "var(--xmlui-borderColor-DatePicker-error--hover)", "Input:backgroundColor-DatePicker-error--hover": "var(--xmlui-backgroundColor-DatePicker-error--hover)", "Input:boxShadow-DatePicker-error--hover": "var(--xmlui-boxShadow-DatePicker-error--hover)", "Input:textColor-DatePicker-error--hover": "var(--xmlui-textColor-DatePicker-error--hover)", "Input:outlineWidth-DatePicker-error--focus": "var(--xmlui-outlineWidth-DatePicker-error--focus)", "Input:outlineColor-DatePicker-error--focus": "var(--xmlui-outlineColor-DatePicker-error--focus)", "Input:outlineStyle-DatePicker-error--focus": "var(--xmlui-outlineStyle-DatePicker-error--focus)", "Input:outlineOffset-DatePicker-error--focus": "var(--xmlui-outlineOffset-DatePicker-error--focus)", "Input:textColor-placeholder-DatePicker-error": "var(--xmlui-textColor-placeholder-DatePicker-error)", "Input:textColor-adornment-DatePicker-error": "var(--xmlui-textColor-adornment-DatePicker-error)", "Input:borderRadius-DatePicker-warning": "var(--xmlui-borderRadius-DatePicker-warning)", "Input:borderColor-DatePicker-warning": "var(--xmlui-borderColor-DatePicker-warning)", "Input:borderWidth-DatePicker-warning": "var(--xmlui-borderWidth-DatePicker-warning)", "Input:borderStyle-DatePicker-warning": "var(--xmlui-borderStyle-DatePicker-warning)", "Input:backgroundColor-DatePicker-warning": "var(--xmlui-backgroundColor-DatePicker-warning)", "Input:boxShadow-DatePicker-warning": "var(--xmlui-boxShadow-DatePicker-warning)", "Input:textColor-DatePicker-warning": "var(--xmlui-textColor-DatePicker-warning)", "Input:padding-DatePicker-warning": "var(--xmlui-padding-DatePicker-warning)", "Input:borderColor-DatePicker-warning--hover": "var(--xmlui-borderColor-DatePicker-warning--hover)", "Input:backgroundColor-DatePicker-warning--hover": "var(--xmlui-backgroundColor-DatePicker-warning--hover)", "Input:boxShadow-DatePicker-warning--hover": "var(--xmlui-boxShadow-DatePicker-warning--hover)", "Input:textColor-DatePicker-warning--hover": "var(--xmlui-textColor-DatePicker-warning--hover)", "Input:outlineWidth-DatePicker-warning--focus": "var(--xmlui-outlineWidth-DatePicker-warning--focus)", "Input:outlineColor-DatePicker-warning--focus": "var(--xmlui-outlineColor-DatePicker-warning--focus)", "Input:outlineStyle-DatePicker-warning--focus": "var(--xmlui-outlineStyle-DatePicker-warning--focus)", "Input:outlineOffset-DatePicker-warning--focus": "var(--xmlui-outlineOffset-DatePicker-warning--focus)", "Input:textColor-placeholder-DatePicker-warning": "var(--xmlui-textColor-placeholder-DatePicker-warning)", "Input:textColor-adornment-DatePicker-warning": "var(--xmlui-textColor-adornment-DatePicker-warning)", "Input:borderRadius-DatePicker-success": "var(--xmlui-borderRadius-DatePicker-success)", "Input:borderColor-DatePicker-success": "var(--xmlui-borderColor-DatePicker-success)", "Input:borderWidth-DatePicker-success": "var(--xmlui-borderWidth-DatePicker-success)", "Input:borderStyle-DatePicker-success": "var(--xmlui-borderStyle-DatePicker-success)", "Input:backgroundColor-DatePicker-success": "var(--xmlui-backgroundColor-DatePicker-success)", "Input:boxShadow-DatePicker-success": "var(--xmlui-boxShadow-DatePicker-success)", "Input:textColor-DatePicker-success": "var(--xmlui-textColor-DatePicker-success)", "Input:padding-DatePicker-success": "var(--xmlui-padding-DatePicker-success)", "Input:borderColor-DatePicker-success--hover": "var(--xmlui-borderColor-DatePicker-success--hover)", "Input:backgroundColor-DatePicker-success--hover": "var(--xmlui-backgroundColor-DatePicker-success--hover)", "Input:boxShadow-DatePicker-success--hover": "var(--xmlui-boxShadow-DatePicker-success--hover)", "Input:textColor-DatePicker-success--hover": "var(--xmlui-textColor-DatePicker-success--hover)", "Input:outlineWidth-DatePicker-success--focus": "var(--xmlui-outlineWidth-DatePicker-success--focus)", "Input:outlineColor-DatePicker-success--focus": "var(--xmlui-outlineColor-DatePicker-success--focus)", "Input:outlineStyle-DatePicker-success--focus": "var(--xmlui-outlineStyle-DatePicker-success--focus)", "Input:outlineOffset-DatePicker-success--focus": "var(--xmlui-outlineOffset-DatePicker-success--focus)", "Input:textColor-placeholder-DatePicker-success": "var(--xmlui-textColor-placeholder-DatePicker-success)", "Input:textColor-adornment-DatePicker-success": "var(--xmlui-textColor-adornment-DatePicker-success)", "Input:backgroundColor-DatePicker--disabled": "var(--xmlui-backgroundColor-DatePicker--disabled)", "Input:textColor-DatePicker--disabled": "var(--xmlui-textColor-DatePicker--disabled)", "Input:borderColor-DatePicker--disabled": "var(--xmlui-borderColor-DatePicker--disabled)", "Input:boxShadow-menu-DatePicker": "var(--xmlui-boxShadow-menu-DatePicker)", "Input:backgroundColor-menu-DatePicker": "var(--xmlui-backgroundColor-menu-DatePicker)", "Input:borderRadius-menu-DatePicker": "var(--xmlui-borderRadius-menu-DatePicker)"}'`;
16368
+ const datePicker = "_datePicker_qilmv_13";
16369
+ const placeholder = "_placeholder_qilmv_47";
16370
+ const adornment = "_adornment_qilmv_50";
16371
+ const error$5 = "_error_qilmv_53";
16372
+ const warning$5 = "_warning_qilmv_81";
16373
+ const valid$5 = "_valid_qilmv_109";
16374
+ const disabled$2 = "_disabled_qilmv_137";
16375
+ const indicator$1 = "_indicator_qilmv_143";
16376
+ const datePickerInput = "_datePickerInput_qilmv_143";
16377
+ const datePickerValue = "_datePickerValue_qilmv_147";
16378
+ const inlinePickerMenu = "_inlinePickerMenu_qilmv_152";
16379
+ const root$1 = "_root_qilmv_269";
16380
+ const datePickerMenu = "_datePickerMenu_qilmv_274";
16381
+ const vhidden = "_vhidden_qilmv_285";
16382
+ const button_reset = "_button_reset_qilmv_304";
16383
+ const button$1 = "_button_qilmv_304";
16384
+ const day_selected = "_day_selected_qilmv_322";
16385
+ const button_next = "_button_next_qilmv_336";
16386
+ const button_previous = "_button_previous_qilmv_337";
16387
+ const months = "_months_qilmv_367";
16388
+ const month = "_month_qilmv_367";
16389
+ const month_grid = "_month_grid_qilmv_383";
16390
+ const caption = "_caption_qilmv_387";
16391
+ const multiple_months = "_multiple_months_qilmv_395";
16392
+ const caption_dropdowns = "_caption_dropdowns_qilmv_401";
16393
+ const caption_label = "_caption_label_qilmv_406";
16394
+ const chevron$1 = "_chevron_qilmv_421";
16395
+ const nav$1 = "_nav_qilmv_426";
16396
+ const caption_start = "_caption_start_qilmv_430";
16397
+ const caption_end = "_caption_end_qilmv_437";
16398
+ const nav_button = "_nav_button_qilmv_444";
16399
+ const dropdowns = "_dropdowns_qilmv_457";
16400
+ const dropdown_year = "_dropdown_year_qilmv_464";
16401
+ const dropdown_month = "_dropdown_month_qilmv_465";
16402
+ const dropdown = "_dropdown_qilmv_457";
16403
+ const day = "_day_qilmv_322";
16404
+ const weekday = "_weekday_qilmv_509";
16405
+ const week_number = "_week_number_qilmv_514";
16406
+ const day_button = "_day_button_qilmv_519";
16407
+ const today = "_today_qilmv_540";
16408
+ const outside = "_outside_qilmv_540";
16409
+ const selected = "_selected_qilmv_544";
16410
+ const day_range_start = "_day_range_start_qilmv_565";
16411
+ const day_range_end = "_day_range_end_qilmv_565";
16412
+ const day_range_middle = "_day_range_middle_qilmv_589";
16358
16413
  const styles$v = {
16359
16414
  themeVars: themeVars$h,
16360
16415
  datePicker,
@@ -16368,39 +16423,37 @@ const styles$v = {
16368
16423
  datePickerInput,
16369
16424
  datePickerValue,
16370
16425
  inlinePickerMenu,
16371
- datePickerMenu,
16372
16426
  root: root$1,
16427
+ datePickerMenu,
16373
16428
  vhidden,
16374
16429
  button_reset,
16375
16430
  button: button$1,
16376
16431
  day_selected,
16432
+ button_next,
16433
+ button_previous,
16377
16434
  months,
16378
16435
  month,
16379
- table,
16380
- with_weeknumber,
16436
+ month_grid,
16381
16437
  caption,
16382
16438
  multiple_months,
16383
16439
  caption_dropdowns,
16384
16440
  caption_label,
16441
+ chevron: chevron$1,
16385
16442
  nav: nav$1,
16386
16443
  caption_start,
16387
16444
  caption_end,
16388
16445
  nav_button,
16446
+ dropdowns,
16389
16447
  dropdown_year,
16390
16448
  dropdown_month,
16391
16449
  dropdown,
16392
- dropdown_icon,
16393
- head,
16394
- head_row,
16395
- row,
16396
- head_cell,
16397
- tbody,
16398
- tfoot,
16399
- cell,
16400
- weeknumber,
16401
16450
  day,
16402
- day_today,
16403
- day_outside,
16451
+ weekday,
16452
+ week_number,
16453
+ day_button,
16454
+ today,
16455
+ outside,
16456
+ selected,
16404
16457
  day_range_start,
16405
16458
  day_range_end,
16406
16459
  day_range_middle
@@ -16561,9 +16614,11 @@ const DatePicker = forwardRef(function DatePicker2({
16561
16614
  return inline ? /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", { className: styles$v.inlinePickerMenu, children: /* @__PURE__ */ jsx(
16562
16615
  DayPicker,
16563
16616
  {
16617
+ required: void 0,
16618
+ captionLayout: "dropdown",
16564
16619
  fixedWeeks: true,
16565
- fromDate: startDate,
16566
- toDate: endDate,
16620
+ startMonth: startDate,
16621
+ endMonth: endDate,
16567
16622
  disabled: disabled2,
16568
16623
  weekStartsOn: _weekStartsOn,
16569
16624
  showWeekNumber,
@@ -16572,7 +16627,7 @@ const DatePicker = forwardRef(function DatePicker2({
16572
16627
  mode: mode === "single" ? "single" : "range",
16573
16628
  selected: selected2,
16574
16629
  onSelect: handleSelect,
16575
- initialFocus: !inline,
16630
+ autoFocus: !inline,
16576
16631
  numberOfMonths: mode === "range" ? 2 : 1
16577
16632
  }
16578
16633
  ) }) }) : /* @__PURE__ */ jsxs(ReactDropdownMenu.Root, { open: open2, onOpenChange: setOpen, modal: false, children: [
@@ -16606,6 +16661,7 @@ const DatePicker = forwardRef(function DatePicker2({
16606
16661
  ReactDropdownMenu.Content,
16607
16662
  {
16608
16663
  align: "start",
16664
+ sideOffset: 5,
16609
16665
  className: styles$v.datePickerMenu,
16610
16666
  onFocus: handleOnMenuFocus,
16611
16667
  onBlur: handleOnMenuBlur,
@@ -16613,18 +16669,20 @@ const DatePicker = forwardRef(function DatePicker2({
16613
16669
  children: /* @__PURE__ */ jsx(
16614
16670
  DayPicker,
16615
16671
  {
16672
+ required: void 0,
16616
16673
  fixedWeeks: true,
16617
- fromDate: startDate,
16618
- toDate: endDate,
16674
+ classNames: styles$v,
16675
+ captionLayout: "dropdown",
16676
+ startMonth: startDate,
16677
+ endMonth: endDate,
16619
16678
  disabled: disabled2,
16620
16679
  weekStartsOn: _weekStartsOn,
16621
16680
  showWeekNumber,
16622
16681
  showOutsideDays: true,
16623
- classNames: styles$v,
16624
16682
  mode: mode === "single" ? "single" : "range",
16625
16683
  selected: selected2,
16626
16684
  onSelect: handleSelect,
16627
- initialFocus: true,
16685
+ autoFocus: !inline,
16628
16686
  numberOfMonths: mode === "range" ? 2 : 1
16629
16687
  }
16630
16688
  )
@@ -21323,18 +21381,19 @@ const MarkdownMd = createMetadata({
21323
21381
  defaultThemeVars: {
21324
21382
  "backgroundColor-Admonition": "$color-warn-300",
21325
21383
  "borderRadius-Admonition": "$space-4",
21326
- "iconSize-Admonition": "1.5rem",
21327
- "padding-Admonition": "1rem",
21328
- "marginBottom-Admonition": "1rem",
21329
- "marginLeft-Admonition-content": ".5rem",
21384
+ "iconSize-Admonition": "$space-6",
21385
+ "padding-Admonition": "$space-4",
21386
+ "marginBottom-Admonition": "$space-4",
21387
+ "marginLeft-Admonition-content": "$space-2",
21330
21388
  "backgroundColor-Blockquote": "$color-warn-200",
21331
21389
  "accentWidth-Blockquote": "3px",
21332
21390
  "accentColor-Blockquote": "$color-surface-500",
21333
- "padding-Blockquote": ".5rem",
21334
- "marginBottom-Blockquote": "1rem",
21335
- "marginBottom-Text-codefence": ".5rem",
21336
- "marginBottom-Text-markdown": ".5rem",
21337
- "marginTop-HtmlLi": "-0.5rem",
21391
+ "padding-Blockquote": "$space-2",
21392
+ "marginBottom-Blockquote": "$space-4",
21393
+ "marginBottom-Text-codefence": "$space-2",
21394
+ "marginBottom-Text-markdown": "$space-2",
21395
+ "marginTop-HtmlLi": "$space-2",
21396
+ "marginBottom-HtmlLi": "$space-2",
21338
21397
  light: {
21339
21398
  // --- No light-specific theme vars
21340
21399
  },
@@ -21421,7 +21480,9 @@ const SelectMd = createMetadata({
21421
21480
  focus: dFocus(COMP$v),
21422
21481
  setValue: dSetValueApi(),
21423
21482
  value: dValue(),
21424
- reset: d(`This method resets the component to its initial value, or clears the selection if no initial value was provided.`)
21483
+ reset: d(
21484
+ `This method resets the component to its initial value, or clears the selection if no initial value was provided.`
21485
+ )
21425
21486
  },
21426
21487
  contextVars: {
21427
21488
  $item: d(`This property represents the value of an item in the dropdown list.`),
@@ -21473,7 +21534,9 @@ const selectComponentRenderer = createComponentRenderer(
21473
21534
  multiSelect: extractValue.asOptionalBoolean(node.props.multiSelect),
21474
21535
  style: layoutCss,
21475
21536
  inProgress: extractValue.asOptionalBoolean(node.props.inProgress),
21476
- inProgressNotificationMessage: extractValue.asOptionalString(node.props.inProgressNotificationMessage),
21537
+ inProgressNotificationMessage: extractValue.asOptionalString(
21538
+ node.props.inProgressNotificationMessage
21539
+ ),
21477
21540
  updateState,
21478
21541
  searchable: extractValue.asOptionalBoolean(node.props.searchable),
21479
21542
  initialValue: extractValue(node.props.initialValue),
@@ -21509,7 +21572,7 @@ const selectComponentRenderer = createComponentRenderer(
21509
21572
  {
21510
21573
  node: node.props.optionTemplate,
21511
21574
  item: item2,
21512
- renderChild: renderChild2
21575
+ renderChild: (...args) => /* @__PURE__ */ jsx(SelectItemText, { children: renderChild2(...args) })
21513
21576
  }
21514
21577
  );
21515
21578
  } : void 0,
@@ -22495,6 +22558,7 @@ const RootThemeDefinition = {
22495
22558
  "const-color-surface-800": "hsl(204, 30.3%, 27%)",
22496
22559
  "const-color-surface-900": "hsl(204, 30.3%, 16%)",
22497
22560
  "const-color-surface-950": "hsl(204, 30.3%, 13%)",
22561
+ "const-color-surface-1000": "hsl(204, 30.3%, 9%)",
22498
22562
  "const-color-surface": "$const-color-surface-500",
22499
22563
  // --- Primary color shades (bluish)
22500
22564
  "const-color-primary-50": "hsl(212,71.9%,94.5%)",
@@ -22703,6 +22767,7 @@ const RootThemeDefinition = {
22703
22767
  "color-surface-800": "$const-color-surface-800",
22704
22768
  "color-surface-900": "$const-color-surface-900",
22705
22769
  "color-surface-950": "$const-color-surface-950",
22770
+ "color-surface-1000": "$const-color-surface-1000",
22706
22771
  "color-surface": "$const-color-surface-500",
22707
22772
  "color-surface-base": "$color-surface-0",
22708
22773
  "color-surface-lower": "$color-surface-100",
@@ -22791,7 +22856,7 @@ const RootThemeDefinition = {
22791
22856
  dark: {
22792
22857
  themeVars: {
22793
22858
  // --- Default surface color shades (form white to black)
22794
- "color-surface-0": "$const-color-surface-950",
22859
+ "color-surface-0": "$const-color-surface-1000",
22795
22860
  "color-surface-50": "$const-color-surface-950",
22796
22861
  "color-surface-100": "$const-color-surface-900",
22797
22862
  "color-surface-200": "$const-color-surface-800",
@@ -22803,6 +22868,7 @@ const RootThemeDefinition = {
22803
22868
  "color-surface-800": "$const-color-surface-200",
22804
22869
  "color-surface-900": "$const-color-surface-100",
22805
22870
  "color-surface-950": "$const-color-surface-50",
22871
+ "color-surface-1000": "$const-color-surface-0",
22806
22872
  "color-surface": "$const-color-surface-500",
22807
22873
  "color-surface-base": "$color-surface-0",
22808
22874
  "color-surface-lower": "$color-surface-0",
@@ -25075,15 +25141,21 @@ function Loader({
25075
25141
  onLoaded,
25076
25142
  loaderLoaded: loaderLoaded2,
25077
25143
  loaderInProgressChanged: loaderInProgressChanged2,
25144
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25078
25145
  loaderError: loaderError2,
25079
25146
  transformResult
25080
25147
  }) {
25081
25148
  const { uid } = loader;
25082
25149
  const appContext = useAppContext();
25083
- const { data, status, isFetching, error: error2, refetch } = useQuery(
25084
- {
25085
- queryKey: useMemo(() => queryId ? queryId : [uid, extractParam(state, loader.props, appContext)], [appContext, loader.props, queryId, state, uid]),
25086
- queryFn: useCallback(async ({ signal }) => {
25150
+ const [isRefetching, setIsRefetching] = useState(false);
25151
+ const { data, status, isFetching, error: error2, refetch } = useQuery({
25152
+ queryKey: useMemo(
25153
+ () => queryId ? queryId : [uid, extractParam(state, loader.props, appContext)],
25154
+ [appContext, loader.props, queryId, state, uid]
25155
+ ),
25156
+ structuralSharing: false,
25157
+ queryFn: useCallback(
25158
+ async ({ signal }) => {
25087
25159
  try {
25088
25160
  const newVar = await loaderFn(signal);
25089
25161
  if (newVar === void 0) {
@@ -25093,8 +25165,11 @@ function Loader({
25093
25165
  } catch (error22) {
25094
25166
  throw error22;
25095
25167
  }
25096
- }, [loaderFn]),
25097
- select: useCallback((data2) => {
25168
+ },
25169
+ [loaderFn]
25170
+ ),
25171
+ select: useCallback(
25172
+ (data2) => {
25098
25173
  let result = data2;
25099
25174
  const resultSelector = loader.props.resultSelector;
25100
25175
  if (resultSelector) {
@@ -25105,14 +25180,16 @@ function Loader({
25105
25180
  }
25106
25181
  const finalResult = transformResult ? transformResult(result) : result;
25107
25182
  return finalResult;
25108
- }, [loader.props.resultSelector, transformResult]),
25109
- retry: false
25110
- }
25111
- );
25183
+ },
25184
+ [loader.props.resultSelector, transformResult]
25185
+ ),
25186
+ retry: false
25187
+ });
25112
25188
  useEffect(() => {
25113
25189
  let intervalId;
25114
25190
  if (pollIntervalInSeconds) {
25115
25191
  intervalId = setInterval(() => {
25192
+ setIsRefetching(true);
25116
25193
  refetch();
25117
25194
  }, pollIntervalInSeconds * 1e3);
25118
25195
  }
@@ -25127,16 +25204,21 @@ function Loader({
25127
25204
  useLayoutEffect(() => {
25128
25205
  loaderInProgressChanged2(isFetching);
25129
25206
  }, [isFetching, loaderInProgressChanged2]);
25207
+ useLayoutEffect(() => {
25208
+ loaderIsRefetchingChanged2(isRefetching);
25209
+ }, [isRefetching, loaderIsRefetchingChanged2]);
25130
25210
  useLayoutEffect(() => {
25131
25211
  if (status === "success" && data !== prevData) {
25132
25212
  loaderLoaded2(data);
25133
25213
  setTimeout(() => {
25134
- onLoaded == null ? void 0 : onLoaded(data);
25214
+ onLoaded == null ? void 0 : onLoaded(data, isRefetching);
25215
+ setIsRefetching(false);
25135
25216
  }, 0);
25136
25217
  } else if (status === "error" && error2 !== prevError) {
25137
25218
  loaderError2(error2);
25219
+ setIsRefetching(false);
25138
25220
  }
25139
- }, [data, error2, loaderError2, loaderLoaded2, onLoaded, prevData, prevError, status]);
25221
+ }, [data, error2, loaderError2, loaderLoaded2, onLoaded, prevData, prevError, status, isRefetching]);
25140
25222
  useLayoutEffect(() => {
25141
25223
  return () => {
25142
25224
  loaderLoaded2(void 0);
@@ -25144,7 +25226,10 @@ function Loader({
25144
25226
  }, [loaderLoaded2, uid]);
25145
25227
  useEffect(() => {
25146
25228
  registerComponentApi == null ? void 0 : registerComponentApi({
25147
- refetch,
25229
+ refetch: async (options2) => {
25230
+ setIsRefetching(true);
25231
+ refetch(options2);
25232
+ },
25148
25233
  update: async (updater) => {
25149
25234
  var _a, _b;
25150
25235
  const oldData = (_a = appContext.queryClient) == null ? void 0 : _a.getQueryData(queryId);
@@ -25186,6 +25271,7 @@ function Loader({
25186
25271
  function ApiLoader$1({
25187
25272
  loader,
25188
25273
  loaderInProgressChanged: loaderInProgressChanged2,
25274
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25189
25275
  loaderLoaded: loaderLoaded2,
25190
25276
  loaderError: loaderError2,
25191
25277
  state,
@@ -25198,7 +25284,6 @@ function ApiLoader$1({
25198
25284
  if (!loadable) {
25199
25285
  return;
25200
25286
  }
25201
- console.log("doLoad ", url);
25202
25287
  const response = await fetch(url);
25203
25288
  if (loader.props.raw) {
25204
25289
  return await response.text();
@@ -25215,6 +25300,7 @@ function ApiLoader$1({
25215
25300
  state,
25216
25301
  loader,
25217
25302
  loaderInProgressChanged: loaderInProgressChanged2,
25303
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25218
25304
  loaderLoaded: loaderLoaded2,
25219
25305
  loaderError: loaderError2,
25220
25306
  loaderFn: doLoad
@@ -25230,13 +25316,14 @@ const ApiLoaderMd = createMetadata({
25230
25316
  });
25231
25317
  const apiLoaderRenderer = createLoaderRenderer(
25232
25318
  "ApiLoader",
25233
- ({ loader, state, dispatch, loaderInProgressChanged: loaderInProgressChanged2, loaderLoaded: loaderLoaded2, loaderError: loaderError2 }) => {
25319
+ ({ loader, state, loaderInProgressChanged: loaderInProgressChanged2, loaderIsRefetchingChanged: loaderIsRefetchingChanged2, loaderLoaded: loaderLoaded2, loaderError: loaderError2 }) => {
25234
25320
  return /* @__PURE__ */ jsx(
25235
25321
  ApiLoader$1,
25236
25322
  {
25237
25323
  loader,
25238
25324
  state,
25239
25325
  loaderInProgressChanged: loaderInProgressChanged2,
25326
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25240
25327
  loaderLoaded: loaderLoaded2,
25241
25328
  loaderError: loaderError2
25242
25329
  }
@@ -25247,6 +25334,7 @@ const apiLoaderRenderer = createLoaderRenderer(
25247
25334
  function ExternalDataLoader({
25248
25335
  loader,
25249
25336
  loaderInProgressChanged: loaderInProgressChanged2,
25337
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25250
25338
  loaderError: loaderError2,
25251
25339
  loaderLoaded: loaderLoaded2,
25252
25340
  state,
@@ -25256,14 +25344,12 @@ function ExternalDataLoader({
25256
25344
  const method = extractParam(state, loader.props.method, appContext);
25257
25345
  const headers = extractParam(state, loader.props.headers, appContext);
25258
25346
  const data = extractParam(state, loader.props.data, appContext);
25259
- console.log("resolve");
25260
25347
  const url = extractParam(state, loader.props.url, appContext);
25261
25348
  const urlLoadable = !!url;
25262
25349
  const doLoad = useCallback(async () => {
25263
25350
  if (!urlLoadable) {
25264
25351
  return;
25265
25352
  }
25266
- console.log("doLoad ", url, data);
25267
25353
  const response = await fetch(url, {
25268
25354
  method: method || "POST",
25269
25355
  headers: {
@@ -25276,7 +25362,6 @@ function ExternalDataLoader({
25276
25362
  if (!doNotRemoveNulls) {
25277
25363
  removeNullProperties(responseObj);
25278
25364
  }
25279
- console.log("result", responseObj);
25280
25365
  return responseObj;
25281
25366
  }, [urlLoadable, headers, data, url, method, doNotRemoveNulls]);
25282
25367
  return /* @__PURE__ */ jsx(
@@ -25285,6 +25370,7 @@ function ExternalDataLoader({
25285
25370
  state,
25286
25371
  loader,
25287
25372
  loaderInProgressChanged: loaderInProgressChanged2,
25373
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25288
25374
  loaderLoaded: loaderLoaded2,
25289
25375
  loaderError: loaderError2,
25290
25376
  loaderFn: doLoad
@@ -25302,13 +25388,14 @@ const ExternalDataLoaderMd = createMetadata({
25302
25388
  });
25303
25389
  const externalDataLoaderRenderer = createLoaderRenderer(
25304
25390
  "ExternalDataLoader",
25305
- ({ loader, state, loaderInProgressChanged: loaderInProgressChanged2, loaderError: loaderError2, loaderLoaded: loaderLoaded2 }) => {
25391
+ ({ loader, state, loaderInProgressChanged: loaderInProgressChanged2, loaderIsRefetchingChanged: loaderIsRefetchingChanged2, loaderError: loaderError2, loaderLoaded: loaderLoaded2 }) => {
25306
25392
  return /* @__PURE__ */ jsx(
25307
25393
  ExternalDataLoader,
25308
25394
  {
25309
25395
  loader,
25310
25396
  state,
25311
25397
  loaderInProgressChanged: loaderInProgressChanged2,
25398
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25312
25399
  loaderLoaded: loaderLoaded2,
25313
25400
  loaderError: loaderError2
25314
25401
  }
@@ -25319,6 +25406,7 @@ const externalDataLoaderRenderer = createLoaderRenderer(
25319
25406
  function ApiLoader({
25320
25407
  loader,
25321
25408
  loaderInProgressChanged: loaderInProgressChanged2,
25409
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25322
25410
  loaderError: loaderError2,
25323
25411
  loaderLoaded: loaderLoaded2,
25324
25412
  state
@@ -25336,6 +25424,7 @@ function ApiLoader({
25336
25424
  state,
25337
25425
  loader,
25338
25426
  loaderInProgressChanged: loaderInProgressChanged2,
25427
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25339
25428
  loaderLoaded: loaderLoaded2,
25340
25429
  loaderError: loaderError2,
25341
25430
  loaderFn: doLoad
@@ -25358,6 +25447,7 @@ const mockLoaderRenderer = createLoaderRenderer(
25358
25447
  loader,
25359
25448
  state,
25360
25449
  loaderInProgressChanged: loaderInProgressChanged2,
25450
+ loaderIsRefetchingChanged: loaderInProgressChanged2,
25361
25451
  loaderLoaded: loaderLoaded2,
25362
25452
  loaderError: loaderError2
25363
25453
  }
@@ -25374,6 +25464,7 @@ function PageableLoader({
25374
25464
  pollIntervalInSeconds,
25375
25465
  onLoaded,
25376
25466
  loaderInProgressChanged: loaderInProgressChanged2,
25467
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25377
25468
  loaderLoaded: loaderLoaded2,
25378
25469
  loaderError: loaderError2,
25379
25470
  transformResult
@@ -25385,6 +25476,7 @@ function PageableLoader({
25385
25476
  [appContext, loader.props, queryId, state, uid]
25386
25477
  );
25387
25478
  const thizRef = useRef(queryKey);
25479
+ const [isRefetching, setIsRefetching] = useState(false);
25388
25480
  const getPreviousPageParam = useCallback(
25389
25481
  (firstPage) => {
25390
25482
  let prevPageParam = void 0;
@@ -25485,6 +25577,9 @@ function PageableLoader({
25485
25577
  useLayoutEffect(() => {
25486
25578
  loaderInProgressChanged2(isFetching);
25487
25579
  }, [isFetching, loaderInProgressChanged2]);
25580
+ useLayoutEffect(() => {
25581
+ loaderIsRefetchingChanged2(isRefetching);
25582
+ }, [isRefetching, loaderIsRefetchingChanged2]);
25488
25583
  const pageInfo = useMemo(() => {
25489
25584
  return {
25490
25585
  hasPrevPage: hasPreviousPage,
@@ -25498,10 +25593,12 @@ function PageableLoader({
25498
25593
  if (status === "success" && (prevData !== data || prevPageInfo !== pageInfo)) {
25499
25594
  loaderLoaded2(data, pageInfo);
25500
25595
  setTimeout(() => {
25501
- onLoaded == null ? void 0 : onLoaded(data);
25596
+ onLoaded == null ? void 0 : onLoaded(data, isRefetching);
25597
+ setIsRefetching(false);
25502
25598
  }, 0);
25503
25599
  } else if (status === "error" && prevError !== error2) {
25504
25600
  loaderError2(error2);
25601
+ setIsRefetching(false);
25505
25602
  }
25506
25603
  }, [
25507
25604
  data,
@@ -25519,6 +25616,7 @@ function PageableLoader({
25519
25616
  let intervalId;
25520
25617
  if (pollIntervalInSeconds) {
25521
25618
  intervalId = setInterval(() => {
25619
+ setIsRefetching(true);
25522
25620
  refetch();
25523
25621
  }, pollIntervalInSeconds * 1e3);
25524
25622
  }
@@ -25538,7 +25636,10 @@ function PageableLoader({
25538
25636
  registerComponentApi({
25539
25637
  fetchPrevPage,
25540
25638
  fetchNextPage: stableFetchNextPage,
25541
- refetch,
25639
+ refetch: async (options2) => {
25640
+ setIsRefetching(true);
25641
+ refetch(options2);
25642
+ },
25542
25643
  update: async (updater) => {
25543
25644
  var _a, _b;
25544
25645
  const oldData = (_a = appContext.queryClient) == null ? void 0 : _a.getQueryData(queryId);
@@ -25600,6 +25701,7 @@ function DataLoader({
25600
25701
  onLoaded,
25601
25702
  onError,
25602
25703
  loaderInProgressChanged: loaderInProgressChanged2,
25704
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25603
25705
  loaderLoaded: loaderLoaded2,
25604
25706
  loaderError: loaderError2,
25605
25707
  transformResult
@@ -25855,6 +25957,7 @@ function DataLoader({
25855
25957
  state,
25856
25958
  loader,
25857
25959
  loaderInProgressChanged: inProgress,
25960
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25858
25961
  loaderLoaded: loaded,
25859
25962
  loaderError: error2,
25860
25963
  loaderFn: doLoad,
@@ -25871,6 +25974,7 @@ function DataLoader({
25871
25974
  state,
25872
25975
  loader,
25873
25976
  loaderInProgressChanged: inProgress,
25977
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25874
25978
  loaderLoaded: loaded,
25875
25979
  loaderError: error2,
25876
25980
  loaderFn: doLoad,
@@ -25913,6 +26017,7 @@ const dataLoaderRenderer = createLoaderRenderer(
25913
26017
  state,
25914
26018
  loaderLoaded: loaderLoaded2,
25915
26019
  loaderInProgressChanged: loaderInProgressChanged2,
26020
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25916
26021
  loaderError: loaderError2,
25917
26022
  registerComponentApi,
25918
26023
  lookupAction,
@@ -25928,6 +26033,7 @@ const dataLoaderRenderer = createLoaderRenderer(
25928
26033
  loader,
25929
26034
  state,
25930
26035
  loaderInProgressChanged: loaderInProgressChanged2,
26036
+ loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
25931
26037
  loaderLoaded: loaderLoaded2,
25932
26038
  loaderError: loaderError2,
25933
26039
  registerComponentApi,
@@ -26103,17 +26209,19 @@ const redirectRenderer = createComponentRenderer(
26103
26209
  return /* @__PURE__ */ jsx(Navigate, { to: createUrlWithQueryParams(extractValue(node.props.to)) });
26104
26210
  }
26105
26211
  );
26106
- const themeVars$8 = `'{"backgroundColor-Tabs": "var(--xmlui-backgroundColor-Tabs)", "borderColor-Tabs": "var(--xmlui-borderColor-Tabs)", "borderWidth-Tabs": "var(--xmlui-borderWidth-Tabs)", "borderColor-active-Tabs": "var(--xmlui-borderColor-active-Tabs)", "backgroundColor-trigger-Tabs": "var(--xmlui-backgroundColor-trigger-Tabs)", "textColor-trigger-Tabs": "var(--xmlui-textColor-trigger-Tabs)", "backgroundColor-trigger-Tabs--hover": "var(--xmlui-backgroundColor-trigger-Tabs--hover)", "backgroundColor-list-Tabs": "var(--xmlui-backgroundColor-list-Tabs)"}'`;
26107
- const tabs = "_tabs_1mgc2_13";
26108
- const filler = "_filler_1mgc2_27";
26109
- const tabTrigger = "_tabTrigger_1mgc2_41";
26110
- const tabsList = "_tabsList_1mgc2_81";
26111
- const tabsContent = "_tabsContent_1mgc2_101";
26212
+ const themeVars$8 = `'{"padding-trigger-Tabs": "var(--xmlui-padding-trigger-Tabs)", "paddingHorizontal-trigger-Tabs": "var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs))", "paddingVertical-trigger-Tabs": "var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs))", "paddingLeft-trigger-Tabs": "var(--xmlui-paddingLeft-trigger-Tabs, var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingRight-trigger-Tabs": "var(--xmlui-paddingRight-trigger-Tabs, var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingTop-trigger-Tabs": "var(--xmlui-paddingTop-trigger-Tabs, var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingBottom-trigger-Tabs": "var(--xmlui-paddingBottom-trigger-Tabs, var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "backgroundColor-Tabs": "var(--xmlui-backgroundColor-Tabs)", "borderColor-Tabs": "var(--xmlui-borderColor-Tabs)", "borderWidth-Tabs": "var(--xmlui-borderWidth-Tabs)", "borderColor-active-Tabs": "var(--xmlui-borderColor-active-Tabs)", "backgroundColor-trigger-Tabs": "var(--xmlui-backgroundColor-trigger-Tabs)", "borderRadius-trigger-Tabs": "var(--xmlui-borderRadius-trigger-Tabs)", "border-trigger-Tabs": "var(--xmlui-border-trigger-Tabs)", "textColor-trigger-Tabs": "var(--xmlui-textColor-trigger-Tabs)", "backgroundColor-trigger-Tabs--hover": "var(--xmlui-backgroundColor-trigger-Tabs--hover)", "backgroundColor-trigger-Tabs--active": "var(--xmlui-backgroundColor-trigger-Tabs--active)", "backgroundColor-list-Tabs": "var(--xmlui-backgroundColor-list-Tabs)", "borderRadius-list-Tabs": "var(--xmlui-borderRadius-list-Tabs)", "border-list-Tabs": "var(--xmlui-border-list-Tabs)"}'`;
26213
+ const tabs = "_tabs_1ggvi_13";
26214
+ const filler = "_filler_1ggvi_26";
26215
+ const tabTrigger = "_tabTrigger_1ggvi_40";
26216
+ const distributeEvenly = "_distributeEvenly_1ggvi_57";
26217
+ const tabsList = "_tabsList_1ggvi_89";
26218
+ const tabsContent = "_tabsContent_1ggvi_111";
26112
26219
  const styles$f = {
26113
26220
  themeVars: themeVars$8,
26114
26221
  tabs,
26115
26222
  filler,
26116
26223
  tabTrigger,
26224
+ distributeEvenly,
26117
26225
  tabsList,
26118
26226
  tabsContent
26119
26227
  };
@@ -26162,11 +26270,13 @@ function useTabContext() {
26162
26270
  }
26163
26271
  const Tabs = forwardRef(function Tabs2({
26164
26272
  activeTab = 0,
26165
- orientation = "vertical",
26273
+ orientation = "horizontal",
26166
26274
  tabRenderer,
26167
26275
  style: style2,
26168
26276
  children,
26169
- registerComponentApi
26277
+ registerComponentApi,
26278
+ className,
26279
+ distributeEvenly: distributeEvenly2 = false
26170
26280
  }, forwardedRef) {
26171
26281
  const { tabItems, tabContextValue } = useTabContextValue();
26172
26282
  const [activeIndex, setActiveIndex] = useState(activeTab);
@@ -26201,7 +26311,7 @@ const Tabs = forwardRef(function Tabs2({
26201
26311
  RTabs.Root,
26202
26312
  {
26203
26313
  ref: forwardedRef,
26204
- className: styles$f.tabs,
26314
+ className: classnames(styles$f.tabs, className),
26205
26315
  value: `${currentTab}`,
26206
26316
  onValueChange: (tab) => {
26207
26317
  const newIndex = tabItems.findIndex((item2) => item2.id === tab);
@@ -26215,9 +26325,11 @@ const Tabs = forwardRef(function Tabs2({
26215
26325
  children: [
26216
26326
  /* @__PURE__ */ jsxs(RTabs.List, { className: styles$f.tabsList, children: [
26217
26327
  tabItems.map(
26218
- (tab) => tabRenderer ? /* @__PURE__ */ jsx(RTabs.Trigger, { value: tab.id, children: tabRenderer({ label: tab.label, isActive: tab.id === currentTab }) }, tab.id) : /* @__PURE__ */ jsx(RTabs.Trigger, { className: styles$f.tabTrigger, value: tab.id, children: tab.label }, tab.id)
26328
+ (tab) => tabRenderer ? /* @__PURE__ */ jsx(RTabs.Trigger, { value: tab.id, asChild: true, children: tabRenderer({ label: tab.label, isActive: tab.id === currentTab }) }, tab.id) : /* @__PURE__ */ jsx(RTabs.Trigger, { className: classnames(styles$f.tabTrigger, {
26329
+ [styles$f.distributeEvenly]: distributeEvenly2
26330
+ }), value: tab.id, children: tab.label }, tab.id)
26219
26331
  ),
26220
- /* @__PURE__ */ jsx("div", { className: styles$f.filler, "data-orientation": orientation })
26332
+ !distributeEvenly2 && !tabRenderer && /* @__PURE__ */ jsx("div", { className: styles$f.filler, "data-orientation": orientation })
26221
26333
  ] }),
26222
26334
  children
26223
26335
  ]
@@ -26245,15 +26357,16 @@ const TabsMd = createMetadata({
26245
26357
  },
26246
26358
  themeVars: parseScssVar(styles$f.themeVars),
26247
26359
  defaultThemeVars: {
26248
- [`backgroundColor-${COMP$m}`]: "$backgroundColor-primary",
26360
+ // [`backgroundColor-${COMP}`]: "transparent",
26249
26361
  [`borderStyle-${COMP$m}`]: "solid",
26250
26362
  [`borderColor-${COMP$m}`]: "$borderColor",
26251
26363
  [`borderColor-active-${COMP$m}`]: "$color-primary",
26252
26364
  [`borderWidth-${COMP$m}`]: "2px",
26253
- [`backgroundColor-trigger-${COMP$m}`]: "$backgroundColor-primary",
26254
- [`backgroundColor-trigger-${COMP$m}--hover`]: "$color-primary-50",
26255
- [`backgroundColor-list-${COMP$m}`]: "$color-primary-50",
26256
- [`textColor-trigger-${COMP$m}`]: "$color-primary-100"
26365
+ // [`backgroundColor-trigger-${COMP}`]: "transparent",
26366
+ [`backgroundColor-trigger-${COMP$m}--hover`]: "$color-surface-100",
26367
+ [`padding-trigger-${COMP$m}`]: "$space-4"
26368
+ // [`backgroundColor-list-${COMP}`]: "$color-primary-50",
26369
+ // [`textColor-trigger-${COMP}`]: "$color-primary-100",
26257
26370
  }
26258
26371
  });
26259
26372
  const tabsComponentRenderer = createComponentRenderer(
@@ -28096,8 +28209,7 @@ const OptionMd = createMetadata({
28096
28209
  ),
28097
28210
  enabled: dEnabled(),
28098
28211
  optionTemplate: d("This property is used to define a custom option template")
28099
- },
28100
- childrenAsTemplate: "optionTemplate"
28212
+ }
28101
28213
  });
28102
28214
  const OptionNative = memo((props) => {
28103
28215
  const OptionType = useOptionType();
@@ -31484,7 +31596,7 @@ function IconProvider({ children }) {
31484
31596
  /* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
31485
31597
  ] });
31486
31598
  }
31487
- const version = "0.9.13";
31599
+ const version = "0.9.15";
31488
31600
  const ApiInterceptorContext = createContext(null);
31489
31601
  function useApiInterceptorContext() {
31490
31602
  return useContext(ApiInterceptorContext);
@@ -31593,6 +31705,7 @@ const mathFunctions = {
31593
31705
  var ContainerActionKind = /* @__PURE__ */ ((ContainerActionKind2) => {
31594
31706
  ContainerActionKind2["LOADER_LOADED"] = "ContainerActionKind:LOADER_LOADED";
31595
31707
  ContainerActionKind2["LOADER_IN_PROGRESS_CHANGED"] = "ContainerActionKind:LOADER_IN_PROGRESS_CHANGED";
31708
+ ContainerActionKind2["LOADER_IS_REFETCHING_CHANGED"] = "ContainerActionKind:LOADER_IS_REFETCHING_CHANGED";
31596
31709
  ContainerActionKind2["LOADER_ERROR"] = "ContainerActionKind:LOADER_ERROR";
31597
31710
  ContainerActionKind2["EVENT_HANDLER_STARTED"] = "ContainerActionKind:EVENT_HANDLER_STARTED";
31598
31711
  ContainerActionKind2["EVENT_HANDLER_COMPLETED"] = "ContainerActionKind:EVENT_HANDLER_COMPLETED";
@@ -31651,6 +31764,11 @@ function createContainerReducer(debugView) {
31651
31764
  storeNextValue(state[uid]);
31652
31765
  break;
31653
31766
  }
31767
+ case ContainerActionKind.LOADER_IS_REFETCHING_CHANGED: {
31768
+ state[uid] = { ...state[uid], isRefetching: action.payload.isRefetching };
31769
+ storeNextValue(state[uid]);
31770
+ break;
31771
+ }
31654
31772
  case ContainerActionKind.LOADER_LOADED: {
31655
31773
  const { data, pageInfo } = action.payload;
31656
31774
  state[uid] = {
@@ -31726,7 +31844,6 @@ function createContainerReducer(debugView) {
31726
31844
  prevState,
31727
31845
  nextState
31728
31846
  };
31729
- console.log("Transition", loggedTransition);
31730
31847
  if (debugView.stateTransitions) {
31731
31848
  if (debugView.stateTransitions.length >= MAX_STATE_TRANSITION_LENGTH) {
31732
31849
  debugView.stateTransitions.shift();
@@ -33171,6 +33288,12 @@ function LoaderComponent({
33171
33288
  },
33172
33289
  [dispatch, uid]
33173
33290
  );
33291
+ const memoedLoaderIsRefetchingChanged = useCallback(
33292
+ (isRefetching) => {
33293
+ dispatch(loaderIsRefetchingChanged(uid, isRefetching));
33294
+ },
33295
+ [dispatch, uid]
33296
+ );
33174
33297
  const memoedLoaderLoaded = useCallback(
33175
33298
  (data, pageInfo) => {
33176
33299
  dispatch(loaderLoaded(uid, data, pageInfo));
@@ -33195,6 +33318,7 @@ function LoaderComponent({
33195
33318
  state,
33196
33319
  dispatch,
33197
33320
  loaderInProgressChanged: memoedLoaderInProgressChanged,
33321
+ loaderIsRefetchingChanged: memoedLoaderIsRefetchingChanged,
33198
33322
  loaderLoaded: memoedLoaderLoaded,
33199
33323
  loaderError: memoedLoaderError,
33200
33324
  extractValue: valueExtractor,
@@ -33212,6 +33336,15 @@ function loaderInProgressChanged(uid, isInProgress) {
33212
33336
  }
33213
33337
  };
33214
33338
  }
33339
+ function loaderIsRefetchingChanged(uid, isRefetching) {
33340
+ return {
33341
+ type: ContainerActionKind.LOADER_IS_REFETCHING_CHANGED,
33342
+ payload: {
33343
+ uid,
33344
+ isRefetching
33345
+ }
33346
+ };
33347
+ }
33215
33348
  function loaderLoaded(uid, data, pageInfo) {
33216
33349
  return {
33217
33350
  type: ContainerActionKind.LOADER_LOADED,
@@ -35564,7 +35697,8 @@ function AppRoot({
35564
35697
  resourceMap,
35565
35698
  sources,
35566
35699
  extensionManager,
35567
- children
35700
+ children,
35701
+ projectCompilation
35568
35702
  }) {
35569
35703
  const rootNode = useMemo(() => {
35570
35704
  const themedRoot = node.type === "Theme" ? {
@@ -35587,9 +35721,14 @@ function AppRoot({
35587
35721
  uses: []
35588
35722
  };
35589
35723
  }, [node]);
35724
+ if (projectCompilation) {
35725
+ const entryDeps = projectCompilation.entrypoint.dependencies;
35726
+ getTransitiveDependencies(entryDeps, projectCompilation.components);
35727
+ }
35590
35728
  return /* @__PURE__ */ jsx(ComponentProvider, { contributes, extensionManager, children: /* @__PURE__ */ jsx(DebugViewProvider, { debugConfig: globalProps == null ? void 0 : globalProps.debug, children: /* @__PURE__ */ jsx(
35591
35729
  AppWrapper,
35592
35730
  {
35731
+ projectCompilation,
35593
35732
  resourceMap,
35594
35733
  apiInterceptor,
35595
35734
  node: rootNode,
@@ -35609,6 +35748,26 @@ function AppRoot({
35609
35748
  }
35610
35749
  ) }) });
35611
35750
  }
35751
+ function getTransitiveDependencies(directCompDepNames, components) {
35752
+ const allDepsByCompName = components.reduce(
35753
+ function addDepsByNameToCollection(collection, { definition: { name }, dependencies }) {
35754
+ return collection.set(name, dependencies);
35755
+ },
35756
+ /* @__PURE__ */ new Map()
35757
+ );
35758
+ const transitiveDeps = /* @__PURE__ */ new Set();
35759
+ populateTransitiveDeps(directCompDepNames);
35760
+ return transitiveDeps;
35761
+ function populateTransitiveDeps(directCompDepNames2) {
35762
+ for (const directDep of directCompDepNames2) {
35763
+ if (!transitiveDeps.has(directDep)) {
35764
+ transitiveDeps.add(directDep);
35765
+ const depsOfDirectDep = allDepsByCompName.get(directDep);
35766
+ populateTransitiveDeps(depsOfDirectDep);
35767
+ }
35768
+ }
35769
+ }
35770
+ }
35612
35771
  function ApiInterceptorProvider({
35613
35772
  interceptor,
35614
35773
  children,
@@ -35622,7 +35781,7 @@ function ApiInterceptorProvider({
35622
35781
  let interceptorWorker;
35623
35782
  (async () => {
35624
35783
  if (process.env.VITE_MOCK_ENABLED) {
35625
- const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-BUaYCWe6.mjs");
35784
+ const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-DHw39GG3.mjs");
35626
35785
  if (interceptor) {
35627
35786
  interceptorWorker = await createApiInterceptorWorker(interceptor, apiWorker);
35628
35787
  if (!apiWorker) {
@@ -35953,9 +36112,16 @@ const DataSourceMd = createMetadata({
35953
36112
  },
35954
36113
  events: {
35955
36114
  loaded: d(
35956
- `The component triggers this event when the fetch operation has been completed and the data is loaded. The argument of the event is the data loaded.`
36115
+ "The component triggers this event when the fetch operation has been completed and the data is loaded. The event has two arguments. The first is the data loaded; the second indicates if the event is a result of a refetch."
35957
36116
  ),
35958
36117
  error: d(`This event fires when a request results in an error.`)
36118
+ },
36119
+ apis: {
36120
+ value: d("This property retrieves the data queried from the source after optional transformations."),
36121
+ inProgress: d("This property indicates if the data is being fetched."),
36122
+ isRefetching: d("This property indicates if the data is being re-fetched."),
36123
+ loaded: d("This property indicates if the data has been loaded."),
36124
+ refetch: d("This method requests the re-fetch of the data.")
35959
36125
  }
35960
36126
  });
35961
36127
  const collectedComponentMetadata = {
@@ -36167,7 +36333,7 @@ function StandaloneApp({
36167
36333
  runtime,
36168
36334
  extensionManager
36169
36335
  }) {
36170
- const { standaloneApp } = useStandalone(appDef, runtime, extensionManager);
36336
+ const { standaloneApp, projectCompilation } = useStandalone(appDef, runtime, extensionManager);
36171
36337
  usePrintVersionNumber(standaloneApp);
36172
36338
  if (!standaloneApp) {
36173
36339
  return null;
@@ -36195,6 +36361,7 @@ function StandaloneApp({
36195
36361
  return /* @__PURE__ */ jsx(ApiInterceptorProvider, { interceptor: mockedApi, useHashBasedRouting, children: /* @__PURE__ */ jsx(
36196
36362
  AppRoot,
36197
36363
  {
36364
+ projectCompilation,
36198
36365
  decorateComponentsWithTestId: shouldDecorateWithTestId,
36199
36366
  node: entryPoint,
36200
36367
  standalone: true,
@@ -36267,6 +36434,7 @@ async function parseCodeBehindResponse(response) {
36267
36434
  }
36268
36435
  removeCodeBehindTokensFromTree(codeBehind);
36269
36436
  return {
36437
+ src: code2,
36270
36438
  codeBehind,
36271
36439
  file: response.url
36272
36440
  };
@@ -36284,9 +36452,8 @@ function resolveRuntime(runtime) {
36284
36452
  const projectCompilation = {
36285
36453
  entrypoint: {
36286
36454
  filename: "",
36287
- componentName: "Main",
36288
36455
  definition: null,
36289
- dependencies: []
36456
+ dependencies: /* @__PURE__ */ new Set()
36290
36457
  },
36291
36458
  components: [],
36292
36459
  themes: {}
@@ -36304,11 +36471,11 @@ function resolveRuntime(runtime) {
36304
36471
  config = value.default;
36305
36472
  }
36306
36473
  if (matchesFileName(key, "Main") || matchesFileName(key, "App")) {
36307
- projectCompilation.entrypoint.filename = key;
36308
36474
  if (key.endsWith(codeBehindFileExtension)) {
36309
36475
  entryPointCodeBehind = value.default;
36310
36476
  projectCompilation.entrypoint.codeBehindSource = value.default.src;
36311
36477
  } else {
36478
+ projectCompilation.entrypoint.filename = key;
36312
36479
  entryPoint = value.default.component;
36313
36480
  projectCompilation.entrypoint.definition = entryPoint;
36314
36481
  projectCompilation.entrypoint.markupSource = value.default.src;
@@ -36323,9 +36490,25 @@ function resolveRuntime(runtime) {
36323
36490
  if (matchesFolder(key, "components")) {
36324
36491
  if (key.endsWith(`.${codeBehindFileExtension}`)) {
36325
36492
  codeBehindsByFileName[key] = value.default;
36493
+ const componentCompilationForCodeBehind = projectCompilation.components.findLast(
36494
+ ({ filename }) => {
36495
+ const idxOfCodeBehindFileExtension = key.lastIndexOf(codeBehindFileExtension);
36496
+ const idxOfComponentFileExtension = filename.lastIndexOf(componentFileExtension);
36497
+ const extensionlessFilenamesMatch = filename.substring(0, idxOfComponentFileExtension) === key.substring(0, idxOfCodeBehindFileExtension);
36498
+ return extensionlessFilenamesMatch;
36499
+ }
36500
+ );
36501
+ componentCompilationForCodeBehind.codeBehindSource = value.default.src;
36326
36502
  } else {
36327
36503
  componentsByFileName[key] = value.default.component;
36328
36504
  sources[value.default.file] = value.default.src;
36505
+ const componentCompilation = {
36506
+ definition: value.default.component,
36507
+ filename: key,
36508
+ markupSource: value.default.src,
36509
+ dependencies: /* @__PURE__ */ new Set()
36510
+ };
36511
+ projectCompilation.components.push(componentCompilation);
36329
36512
  }
36330
36513
  }
36331
36514
  if (matchesFolder(key, "themes")) {
@@ -36412,7 +36595,6 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
36412
36595
  var _a, _b, _c, _d;
36413
36596
  const resolvedRuntime = resolveRuntime(runtime);
36414
36597
  const appDef = mergeAppDefWithRuntime(resolvedRuntime.standaloneApp, standaloneAppDef);
36415
- setProjectCompilation(resolvedRuntime.projectCompilation);
36416
36598
  if ((process.env.VITE_DEV_MODE || process.env.VITE_BUILD_MODE === "INLINE_ALL") && !process.env.VITE_STANDALONE) {
36417
36599
  if (!appDef) {
36418
36600
  throw new Error("couldn't find the application metadata");
@@ -36421,6 +36603,11 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
36421
36603
  if (lintErrorComponent2) {
36422
36604
  appDef.entryPoint = lintErrorComponent2;
36423
36605
  }
36606
+ discoverCompilationDependencies({
36607
+ projectCompilation: resolvedRuntime.projectCompilation,
36608
+ extensionManager
36609
+ });
36610
+ setProjectCompilation(resolvedRuntime.projectCompilation);
36424
36611
  setStandaloneApp(appDef);
36425
36612
  return;
36426
36613
  }
@@ -36445,6 +36632,11 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
36445
36632
  if (lintErrorComponent2) {
36446
36633
  newAppDef2.entryPoint = lintErrorComponent2;
36447
36634
  }
36635
+ discoverCompilationDependencies({
36636
+ projectCompilation: resolvedRuntime.projectCompilation,
36637
+ extensionManager
36638
+ });
36639
+ setProjectCompilation(resolvedRuntime.projectCompilation);
36448
36640
  setStandaloneApp(newAppDef2);
36449
36641
  return;
36450
36642
  }
@@ -36522,6 +36714,12 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
36522
36714
  const codeBehinds = {};
36523
36715
  if (loadedEntryPoint.file) {
36524
36716
  sources[loadedEntryPoint.file] = loadedEntryPoint.src;
36717
+ resolvedRuntime.projectCompilation.entrypoint.filename = MAIN_FILE;
36718
+ resolvedRuntime.projectCompilation.entrypoint.definition = loadedEntryPoint.component;
36719
+ resolvedRuntime.projectCompilation.entrypoint.markupSource = loadedEntryPoint.src;
36720
+ if ((loadedEntryPointCodeBehind == null ? void 0 : loadedEntryPointCodeBehind.src) !== void 0) {
36721
+ resolvedRuntime.projectCompilation.entrypoint.codeBehindSource = loadedEntryPointCodeBehind.src;
36722
+ }
36525
36723
  }
36526
36724
  loadedComponents.forEach((compWrapper) => {
36527
36725
  var _a2;
@@ -36577,6 +36775,7 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
36577
36775
  const componentsFailedToLoad = /* @__PURE__ */ new Set();
36578
36776
  while (componentsToLoad.size > 0) {
36579
36777
  const componentPromises2 = [...componentsToLoad].map(async (componentPath) => {
36778
+ var _a2;
36580
36779
  try {
36581
36780
  const componentPromise = fetchWithoutCache(
36582
36781
  `components/${componentPath}.${componentFileExtension}`
@@ -36591,7 +36790,7 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
36591
36790
  errorComponents.push(codeBehindWrapper.component);
36592
36791
  }
36593
36792
  resolve(
36594
- codeBehindWrapper.hasError ? codeBehindWrapper.component : codeBehindWrapper.codeBehind
36793
+ codeBehindWrapper.hasError ? codeBehindWrapper.component : codeBehindWrapper
36595
36794
  );
36596
36795
  } catch {
36597
36796
  resolve(null);
@@ -36606,18 +36805,31 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
36606
36805
  errorComponents.push(compWrapper.component);
36607
36806
  }
36608
36807
  sources[compWrapper.file] = compWrapper.src;
36609
- return {
36808
+ const compCompilation = {
36809
+ dependencies: /* @__PURE__ */ new Set(),
36810
+ filename: compWrapper.file,
36811
+ markupSource: compWrapper.src,
36812
+ definition: compWrapper.component
36813
+ };
36814
+ if (componentCodeBehind && "src" in componentCodeBehind) {
36815
+ compCompilation.codeBehindSource = componentCodeBehind.src;
36816
+ }
36817
+ resolvedRuntime.projectCompilation.components.push(compCompilation);
36818
+ const compoundComp = {
36610
36819
  ...compWrapper.component,
36611
36820
  component: {
36612
36821
  ...compWrapper.component.component,
36613
36822
  vars: {
36614
36823
  ...compWrapper.component.component.vars,
36615
- ...componentCodeBehind == null ? void 0 : componentCodeBehind.vars
36616
- },
36617
- functions: componentCodeBehind == null ? void 0 : componentCodeBehind.functions,
36618
- scriptError: componentCodeBehind == null ? void 0 : componentCodeBehind.moduleErrors
36824
+ ...(_a2 = componentCodeBehind == null ? void 0 : componentCodeBehind.component) == null ? void 0 : _a2.vars
36825
+ }
36619
36826
  }
36620
36827
  };
36828
+ if (componentCodeBehind && "codeBehind" in componentCodeBehind) {
36829
+ compoundComp.component.functions = componentCodeBehind.codeBehind.functions;
36830
+ compoundComp.component.scriptError = componentCodeBehind.codeBehind.moduleErrors;
36831
+ }
36832
+ return compoundComp;
36621
36833
  } catch (e) {
36622
36834
  componentsFailedToLoad.add(componentPath);
36623
36835
  return null;
@@ -36653,6 +36865,11 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
36653
36865
  } else if (lintErrorComponent) {
36654
36866
  newAppDef.entryPoint = lintErrorComponent;
36655
36867
  }
36868
+ discoverCompilationDependencies({
36869
+ projectCompilation: resolvedRuntime.projectCompilation,
36870
+ extensionManager
36871
+ });
36872
+ setProjectCompilation(resolvedRuntime.projectCompilation);
36656
36873
  setStandaloneApp(newAppDef);
36657
36874
  })();
36658
36875
  }, [runtime, standaloneAppDef]);
@@ -36733,6 +36950,42 @@ function processAppLinting(appDef, metadataByComponent) {
36733
36950
  return null;
36734
36951
  }
36735
36952
  }
36953
+ function discoverCompilationDependencies({
36954
+ projectCompilation: { components, entrypoint },
36955
+ extensionManager
36956
+ }) {
36957
+ const registry = new ComponentRegistry({}, extensionManager);
36958
+ const entrypointDependencies = discoverDirectComponentDependencies(
36959
+ entrypoint.definition,
36960
+ registry
36961
+ );
36962
+ entrypoint.dependencies = entrypointDependencies;
36963
+ for (const componentCompilation of components) {
36964
+ const compDependencies = discoverDirectComponentDependencies(
36965
+ componentCompilation.definition.component,
36966
+ registry
36967
+ );
36968
+ compDependencies.delete(componentCompilation.definition.name);
36969
+ componentCompilation.dependencies = compDependencies;
36970
+ }
36971
+ registry.destroy();
36972
+ }
36973
+ function discoverDirectComponentDependencies(entrypoint, registry) {
36974
+ return discoverDirectComponentDependenciesHelp(entrypoint, registry, /* @__PURE__ */ new Set());
36975
+ }
36976
+ function discoverDirectComponentDependenciesHelp(component, registry, deps) {
36977
+ const compName = component.type;
36978
+ if (!registry.hasComponent(compName)) {
36979
+ deps.add(compName);
36980
+ }
36981
+ if (!component.children) {
36982
+ return deps;
36983
+ }
36984
+ for (const child of component.children) {
36985
+ discoverDirectComponentDependenciesHelp(child, registry, deps);
36986
+ }
36987
+ return deps;
36988
+ }
36736
36989
  export {
36737
36990
  AppRoot as A,
36738
36991
  Button as B,
@@ -36750,14 +37003,16 @@ export {
36750
37003
  Stack as h,
36751
37004
  Splitter as i,
36752
37005
  getColor as j,
36753
- useColors as k,
36754
- useDevTools as l,
37006
+ TabItemComponent as k,
37007
+ Tabs as l,
36755
37008
  miscellaneousUtils as m,
36756
- useLogger as n,
37009
+ useColors as n,
36757
37010
  orderBy as o,
36758
37011
  parseScssVar as p,
37012
+ useDevTools as q,
36759
37013
  runEventHandlerCode as r,
36760
37014
  startApp as s,
36761
37015
  toCssVar$1 as t,
36762
- useTheme as u
37016
+ useTheme as u,
37017
+ useLogger as v
36763
37018
  };