@dbcdk/react-components 0.0.101 → 0.0.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -405,7 +405,6 @@ var Button_default = {
405
405
  rounded: "Button_rounded",
406
406
  link: "Button_link",
407
407
  icon: "Button_icon",
408
- xs: "Button_xs",
409
408
  sm: "Button_sm",
410
409
  lg: "Button_lg",
411
410
  fullWidth: "Button_fullWidth",
@@ -416,7 +415,8 @@ var Button_default = {
416
415
  active: "Button_active",
417
416
  success: "Button_success",
418
417
  danger: "Button_danger",
419
- inline: "Button_inline"
418
+ inline: "Button_inline",
419
+ xs: "Button_xs"
420
420
  };
421
421
  function cx(...parts) {
422
422
  return parts.filter(Boolean).join(" ");
@@ -783,7 +783,8 @@ function Headline({
783
783
  icon,
784
784
  tone,
785
785
  variant,
786
- allowWrap = true
786
+ allowWrap = true,
787
+ id
787
788
  }) {
788
789
  const Tag = `h${size}`;
789
790
  const containerClassName = [Headline_default.headlineContainer, tone ? Headline_default[`tone-${tone}`] : ""].filter(Boolean).join(" ");
@@ -799,6 +800,7 @@ function Headline({
799
800
  /* @__PURE__ */ jsxs(
800
801
  Tag,
801
802
  {
803
+ id,
802
804
  style: {
803
805
  "--font-weight": weight,
804
806
  "--marker-color": severity ? SeverityBgColor[severity] : void 0
@@ -1333,6 +1335,48 @@ var InputContainer_default = {
1333
1335
  messageRow: "InputContainer_messageRow",
1334
1336
  inputContainer: "InputContainer_inputContainer"
1335
1337
  };
1338
+
1339
+ // src/components/inline-status/InlineStatus.module.css
1340
+ var InlineStatus_default = {
1341
+ container: "InlineStatus_container",
1342
+ fullWidth: "InlineStatus_fullWidth",
1343
+ leading: "InlineStatus_leading",
1344
+ body: "InlineStatus_body",
1345
+ sm: "InlineStatus_sm",
1346
+ md: "InlineStatus_md",
1347
+ neutral: "InlineStatus_neutral",
1348
+ success: "InlineStatus_success",
1349
+ warning: "InlineStatus_warning",
1350
+ error: "InlineStatus_error",
1351
+ info: "InlineStatus_info",
1352
+ brand: "InlineStatus_brand"
1353
+ };
1354
+ function InlineStatus({
1355
+ children,
1356
+ severity = "neutral",
1357
+ customIcon,
1358
+ disableIcon = false,
1359
+ fullWidth = false,
1360
+ size = "sm"
1361
+ }) {
1362
+ const hasLeading = Boolean(customIcon) || !disableIcon;
1363
+ return /* @__PURE__ */ jsxs(
1364
+ "div",
1365
+ {
1366
+ className: [
1367
+ InlineStatus_default.container,
1368
+ InlineStatus_default[severity],
1369
+ InlineStatus_default[size],
1370
+ fullWidth ? InlineStatus_default.fullWidth : "",
1371
+ hasLeading ? InlineStatus_default.hasLeading : ""
1372
+ ].filter(Boolean).join(" "),
1373
+ children: [
1374
+ hasLeading ? /* @__PURE__ */ jsx("span", { className: InlineStatus_default.leading, children: customIcon != null ? customIcon : /* @__PURE__ */ jsx(Icon, { severity }) }) : null,
1375
+ /* @__PURE__ */ jsx("span", { className: InlineStatus_default.body, children })
1376
+ ]
1377
+ }
1378
+ );
1379
+ }
1336
1380
  function InputContainer({
1337
1381
  label,
1338
1382
  labelAction,
@@ -1348,8 +1392,6 @@ function InputContainer({
1348
1392
  labelWidth = "160px",
1349
1393
  modified = false
1350
1394
  }) {
1351
- const message = error != null ? error : helpText;
1352
- const messageClass = error ? InputContainer_default.errorText : InputContainer_default.helpText;
1353
1395
  const renderLabelRow = (label || labelAction) && /* @__PURE__ */ jsxs("div", { className: `${InputContainer_default.labelRow} dbc-flex dbc-items-center dbc-gap-md`, children: [
1354
1396
  label && /* @__PURE__ */ jsxs("label", { className: InputContainer_default.label, htmlFor, children: [
1355
1397
  label,
@@ -1357,10 +1399,10 @@ function InputContainer({
1357
1399
  ] }),
1358
1400
  labelAction && /* @__PURE__ */ jsx("div", { className: InputContainer_default.labelAction, children: labelAction })
1359
1401
  ] });
1360
- const renderMessageRow = (message || helpTextAddition) && /* @__PURE__ */ jsxs("div", { className: `${messageClass} ${InputContainer_default.messageRow}`, children: [
1361
- /* @__PURE__ */ jsx("span", { children: message }),
1402
+ const renderMessageRow = (error || helpText || helpTextAddition) && /* @__PURE__ */ jsx("div", { className: `${error ? InputContainer_default.errorText : InputContainer_default.helpText} ${InputContainer_default.messageRow}`, children: error ? /* @__PURE__ */ jsx(InlineStatus, { severity: "error", disableIcon: true, children: error }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1403
+ /* @__PURE__ */ jsx("span", { children: helpText }),
1362
1404
  helpTextAddition && /* @__PURE__ */ jsx("span", { className: InputContainer_default.helpTextAddition, children: helpTextAddition })
1363
- ] });
1405
+ ] }) });
1364
1406
  if (orientation === "vertical") {
1365
1407
  return /* @__PURE__ */ jsxs(
1366
1408
  "div",
@@ -2510,7 +2552,7 @@ function Tabs({
2510
2552
  "div",
2511
2553
  {
2512
2554
  className: [Tabs_default.headerContainer, disableTopPadding ? Tabs_default.disableTopPadding : ""].filter(Boolean).join(" "),
2513
- children: /* @__PURE__ */ jsx(Headline, { disableMargin: true, size: 2, subheader, addition, children: header })
2555
+ children: /* @__PURE__ */ jsx(Headline, { disableMargin: true, size: 1, subheader, addition, children: header })
2514
2556
  }
2515
2557
  ) : null,
2516
2558
  /* @__PURE__ */ jsxs("div", { className: `${Tabs_default.tabs} ${Tabs_default[variant]} ${panelStyle ? Tabs_default.panelStyle : ""}`, children: [
@@ -2732,6 +2774,7 @@ var Hyperlink_default = {
2732
2774
  primary: "Hyperlink_primary",
2733
2775
  block: "Hyperlink_block",
2734
2776
  content: "Hyperlink_content",
2777
+ disabled: "Hyperlink_disabled",
2735
2778
  icon: "Hyperlink_icon"
2736
2779
  };
2737
2780
  function cx2(...parts) {
@@ -2753,13 +2796,15 @@ function Hyperlink(props) {
2753
2796
  as = "a",
2754
2797
  variant = "primary",
2755
2798
  inline = true,
2799
+ disabled = false,
2756
2800
  ...rest
2757
2801
  } = props;
2758
2802
  const linkClassName = cx2(
2759
2803
  Hyperlink_default.link,
2760
2804
  className,
2761
2805
  variant === "secondary" ? Hyperlink_default.secondary : Hyperlink_default.primary,
2762
- inline ? "" : Hyperlink_default.block
2806
+ inline ? "" : Hyperlink_default.block,
2807
+ disabled ? Hyperlink_default.disabled : ""
2763
2808
  );
2764
2809
  if (asChild) {
2765
2810
  const child = React19.Children.only(children);
@@ -2772,6 +2817,7 @@ function Hyperlink(props) {
2772
2817
  ...rest,
2773
2818
  className: cx2(childProps.className, linkClassName),
2774
2819
  children: renderInner(childProps.children, icon),
2820
+ "aria-disabled": disabled || void 0,
2775
2821
  onClick: (e) => {
2776
2822
  e.stopPropagation();
2777
2823
  if (childProps.onClick) {
@@ -2786,6 +2832,7 @@ function Hyperlink(props) {
2786
2832
  {
2787
2833
  type: "button",
2788
2834
  className: linkClassName,
2835
+ disabled,
2789
2836
  ...rest,
2790
2837
  children: renderInner(children, icon)
2791
2838
  }
@@ -2794,8 +2841,12 @@ function Hyperlink(props) {
2794
2841
  return /* @__PURE__ */ jsx(
2795
2842
  "a",
2796
2843
  {
2797
- onClick: (e) => e.stopPropagation(),
2844
+ onClick: (e) => {
2845
+ e.stopPropagation();
2846
+ if (disabled) e.preventDefault();
2847
+ },
2798
2848
  className: linkClassName,
2849
+ "aria-disabled": disabled || void 0,
2799
2850
  ...rest,
2800
2851
  children: renderInner(children, icon)
2801
2852
  }
@@ -3428,6 +3479,10 @@ function Panel({
3428
3479
  var Card_default = {
3429
3480
  outerContainer: "Card_outerContainer",
3430
3481
  container: "Card_container",
3482
+ elevationNone: "Card_elevationNone",
3483
+ elevationXs: "Card_elevationXs",
3484
+ elevationSm: "Card_elevationSm",
3485
+ elevationMd: "Card_elevationMd",
3431
3486
  variantDefault: "Card_variantDefault",
3432
3487
  variantSubtle: "Card_variantSubtle",
3433
3488
  sm: "Card_sm",
@@ -3555,6 +3610,7 @@ function CardImpl({
3555
3610
  loading = false,
3556
3611
  variant = "default",
3557
3612
  size = "md",
3613
+ elevation = "sm",
3558
3614
  headerMarker = true,
3559
3615
  headerIcon,
3560
3616
  headerAddition,
@@ -3571,6 +3627,7 @@ function CardImpl({
3571
3627
  width,
3572
3628
  headlineSize = 4
3573
3629
  }) {
3630
+ var _a;
3574
3631
  const outerStyle = width ? {
3575
3632
  ["--width"]: `${width}%`,
3576
3633
  ["--gap-share"]: getGapShare(width)
@@ -3578,6 +3635,7 @@ function CardImpl({
3578
3635
  const mediaStyle = mediaWidth ? { ["--card-media-width"]: `${mediaWidth}px` } : void 0;
3579
3636
  const innerPlacementClass = getInnerPlacementClass(imgPlacement, Card_default);
3580
3637
  const variantClass = getVariantClass(variant, Card_default);
3638
+ const elevationClass = (_a = Card_default[`elevation${elevation.charAt(0).toUpperCase()}${elevation.slice(1)}`]) != null ? _a : Card_default.elevationSm;
3581
3639
  const hasHeader = !!title || !!headerMeta;
3582
3640
  const showSection = !loading && (showSectionDivider || !!sectionTitle);
3583
3641
  const showBody = !loading && !!children;
@@ -3615,7 +3673,7 @@ function CardImpl({
3615
3673
  ] })
3616
3674
  ] });
3617
3675
  const cardContent = link ? /* @__PURE__ */ jsx(Hyperlink, { children: link }) : inner;
3618
- return /* @__PURE__ */ jsx("div", { className: `${Card_default.outerContainer} ${Card_default[size]}`, style: outerStyle, children: /* @__PURE__ */ jsx("div", { className: `${Card_default.container} ${variantClass}`, children: cardContent }) });
3676
+ return /* @__PURE__ */ jsx("div", { className: `${Card_default.outerContainer} ${Card_default[size]}`, style: outerStyle, children: /* @__PURE__ */ jsx("div", { className: `${Card_default.container} ${variantClass} ${elevationClass}`, children: cardContent }) });
3619
3677
  }
3620
3678
  var Card = Object.assign(CardImpl, {
3621
3679
  Meta: CardMeta,
@@ -3662,7 +3720,7 @@ var Page_default = {
3662
3720
  headerMain: "Page_headerMain",
3663
3721
  content: "Page_content",
3664
3722
  contentLoading: "Page_contentLoading",
3665
- disableContentBox: "Page_disableContentBox"
3723
+ contentBox: "Page_contentBox"
3666
3724
  };
3667
3725
 
3668
3726
  // src/components/breadcrumbs/Breadcrumbs.module.css
@@ -3689,12 +3747,14 @@ function Page({
3689
3747
  headerAddition,
3690
3748
  breadcrumbs,
3691
3749
  disableContentBox,
3750
+ contentBox = false,
3692
3751
  disableTopPadding = true,
3693
3752
  maxWidth,
3694
3753
  containScrolling = false,
3695
3754
  children,
3696
3755
  loading = false
3697
3756
  }) {
3757
+ const showContentBox = contentBox && !disableContentBox;
3698
3758
  const maxWidthClass = maxWidth ? Page_default[`maxWidth${maxWidth.charAt(0).toUpperCase()}${maxWidth.slice(1)}`] : "";
3699
3759
  const hasHeadline = Boolean(header || subheader || headerAddition);
3700
3760
  return /* @__PURE__ */ jsxs(
@@ -3708,7 +3768,7 @@ function Page({
3708
3768
  Headline,
3709
3769
  {
3710
3770
  disableMargin: true,
3711
- size: 2,
3771
+ size: 1,
3712
3772
  severity,
3713
3773
  icon: headerIcon,
3714
3774
  subheader,
@@ -3720,7 +3780,7 @@ function Page({
3720
3780
  /* @__PURE__ */ jsx(
3721
3781
  "div",
3722
3782
  {
3723
- className: `${Page_default.content} ${loading ? Page_default.contentLoading : ""} ${disableContentBox ? Page_default.disableContentBox : ""}`,
3783
+ className: `${Page_default.content} ${loading ? Page_default.contentLoading : ""} ${showContentBox ? Page_default.contentBox : ""}`,
3724
3784
  children: loading ? /* @__PURE__ */ jsx(SkeletonLoader, { type: "squares", rows: 1, columns: 1 }) : children
3725
3785
  }
3726
3786
  )
@@ -4292,7 +4352,7 @@ function TableRow({
4292
4352
  columns.map((column) => {
4293
4353
  var _a2, _b, _c, _d;
4294
4354
  const allowWrap = shouldAllowWrap(column.allowWrap, isSelected, viewMode);
4295
- const allowOverflow = column.allowOverflow;
4355
+ column.allowOverflow;
4296
4356
  const cellValue = getCellDisplayValue(row, column);
4297
4357
  return /* @__PURE__ */ jsx(
4298
4358
  "td",
@@ -4312,7 +4372,7 @@ function TableRow({
4312
4372
  className: Table_default.cellContent,
4313
4373
  "data-align": (_c = column.align) != null ? _c : "left",
4314
4374
  "data-vertical-align": (_d = column.verticalAlign) != null ? _d : "top",
4315
- children: allowWrap || allowOverflow ? cellValue : /* @__PURE__ */ jsx("div", { className: Table_default.cellValueEllipsis, children: cellValue })
4375
+ children: /* @__PURE__ */ jsx("div", { className: Table_default.cellValueEllipsis, children: cellValue })
4316
4376
  }
4317
4377
  )
4318
4378
  },
@@ -7545,6 +7605,14 @@ var SegmentedProgressBar_default = {
7545
7605
  progressCenterLabel: "SegmentedProgressBar_progressCenterLabel",
7546
7606
  emptySegments: "SegmentedProgressBar_emptySegments"
7547
7607
  };
7608
+ var sizeTokenMap = {
7609
+ "2xs": "var(--component-size-2xs)",
7610
+ xxs: "var(--component-size-xxs)",
7611
+ xs: "var(--component-size-xs)",
7612
+ sm: "var(--component-size-sm)",
7613
+ md: "var(--component-size-md)",
7614
+ lg: "var(--component-size-lg)"
7615
+ };
7548
7616
  function SegmentWithTooltip({
7549
7617
  seg,
7550
7618
  index,
@@ -7584,9 +7652,9 @@ var SegmentedProgressBar = ({
7584
7652
  segments,
7585
7653
  total,
7586
7654
  showRemainder = true,
7587
- remainderSeverity = "neutral",
7655
+ remainderSeverity = "missing",
7588
7656
  centerLabel,
7589
- height,
7657
+ size = "sm",
7590
7658
  rounded = true,
7591
7659
  trackColor,
7592
7660
  tooltipPlacement = "top",
@@ -7624,7 +7692,8 @@ var SegmentedProgressBar = ({
7624
7692
  className: SegmentedProgressBar_default.progressBar,
7625
7693
  "data-rounded": rounded ? "true" : "false",
7626
7694
  style: {
7627
- height: height ? `${height}px` : "24px",
7695
+ ["--progress-height"]: sizeTokenMap[size],
7696
+ height: sizeTokenMap[size],
7628
7697
  background: trackColor != null ? trackColor : "var(--color-bg-surface-subtle)"
7629
7698
  },
7630
7699
  children: [
@@ -8505,7 +8574,7 @@ function Modal({
8505
8574
  tabIndex: -1,
8506
8575
  children: [
8507
8576
  /* @__PURE__ */ jsxs("div", { className: Modal_default.header, children: [
8508
- header && /* @__PURE__ */ jsx(Headline, { severity, size: 3, disableMargin: true, subheader, children: header }),
8577
+ header && /* @__PURE__ */ jsx(Headline, { severity, size: 2, disableMargin: true, subheader, children: header }),
8509
8578
  /* @__PURE__ */ jsx(
8510
8579
  Button,
8511
8580
  {
@@ -10668,7 +10737,7 @@ function SidePanel({
10668
10737
  /* @__PURE__ */ jsx(
10669
10738
  Headline,
10670
10739
  {
10671
- size: 3,
10740
+ size: 2,
10672
10741
  disableMargin: true,
10673
10742
  severity,
10674
10743
  marker: showHeaderMarker,
@@ -11028,6 +11097,7 @@ function IntervalSelect({
11028
11097
  // src/components/accordion/Accordion.module.css
11029
11098
  var Accordion_default = {
11030
11099
  container: "Accordion_container",
11100
+ outlined: "Accordion_outlined",
11031
11101
  sm: "Accordion_sm",
11032
11102
  md: "Accordion_md",
11033
11103
  lg: "Accordion_lg"
@@ -11044,7 +11114,8 @@ var AccordionRow_default = {
11044
11114
  panel: "AccordionRow_panel",
11045
11115
  animate: "AccordionRow_animate",
11046
11116
  noAnimate: "AccordionRow_noAnimate",
11047
- content: "AccordionRow_content"
11117
+ content: "AccordionRow_content",
11118
+ item: "AccordionRow_item"
11048
11119
  };
11049
11120
  function useCollapsibleHeight(isOpen, shouldAnimate) {
11050
11121
  const innerRef = useRef(null);
@@ -11087,7 +11158,9 @@ function AccordionRow({
11087
11158
  item,
11088
11159
  isOpen,
11089
11160
  onToggle,
11090
- shouldAnimate = true
11161
+ shouldAnimate = true,
11162
+ headlineSize = 4,
11163
+ variant = "default"
11091
11164
  }) {
11092
11165
  const isDisabled = !!item.disabled;
11093
11166
  const buttonId = `${uid}-acc-btn-${index}`;
@@ -11115,8 +11188,8 @@ function AccordionRow({
11115
11188
  Headline,
11116
11189
  {
11117
11190
  disableMargin: true,
11118
- size: 4,
11119
- weight: 500,
11191
+ size: headlineSize,
11192
+ weight: variant === "outlined" ? 400 : 500,
11120
11193
  severity: item.severity,
11121
11194
  subheader: item.subheader,
11122
11195
  allowWrap: isOpen,
@@ -11155,6 +11228,7 @@ function Accordion({
11155
11228
  items,
11156
11229
  mode = "single",
11157
11230
  size = "md",
11231
+ variant = "default",
11158
11232
  defaultOpenIndex = null,
11159
11233
  defaultOpenIndexes = [],
11160
11234
  openIndex,
@@ -11164,9 +11238,9 @@ function Accordion({
11164
11238
  }) {
11165
11239
  const uid = useId();
11166
11240
  const isControlled = mode === "single" ? openIndex !== void 0 : openIndexes !== void 0;
11167
- const hasMountedRef = useRef(false);
11241
+ const [hasMounted, setHasMounted] = useState(false);
11168
11242
  useEffect(() => {
11169
- hasMountedRef.current = true;
11243
+ setHasMounted(true);
11170
11244
  }, []);
11171
11245
  const [internalSingle, setInternalSingle] = useState(
11172
11246
  mode === "single" ? defaultOpenIndex : null
@@ -11212,18 +11286,26 @@ function Accordion({
11212
11286
  if (isOpen) commit(currentOpenIndexes.filter((i) => i !== index));
11213
11287
  else commit([...currentOpenIndexes, index]);
11214
11288
  }
11215
- return /* @__PURE__ */ jsx("div", { className: `${Accordion_default.container} ${Accordion_default[size]}`, children: items.map((item, i) => /* @__PURE__ */ jsx(
11216
- AccordionRow,
11289
+ return /* @__PURE__ */ jsx(
11290
+ "div",
11217
11291
  {
11218
- uid,
11219
- index: i,
11220
- item,
11221
- isOpen: openSet.has(i),
11222
- onToggle: toggle,
11223
- shouldAnimate: hasMountedRef.current
11224
- },
11225
- i
11226
- )) });
11292
+ className: [Accordion_default.container, Accordion_default[size], variant !== "default" ? Accordion_default[variant] : ""].filter(Boolean).join(" "),
11293
+ children: items.map((item, i) => /* @__PURE__ */ jsx(
11294
+ AccordionRow,
11295
+ {
11296
+ uid,
11297
+ index: i,
11298
+ item,
11299
+ isOpen: openSet.has(i),
11300
+ onToggle: toggle,
11301
+ shouldAnimate: hasMounted,
11302
+ headlineSize: size === "sm" ? 4 : 3,
11303
+ variant
11304
+ },
11305
+ i
11306
+ ))
11307
+ }
11308
+ );
11227
11309
  }
11228
11310
  var EmptyIllustration = () => /* @__PURE__ */ jsxs(
11229
11311
  "svg",
@@ -12724,4 +12806,4 @@ function Alert({
12724
12806
  );
12725
12807
  }
12726
12808
 
12727
- export { Accordion, Alert, AppHeader, AttributeChip, Avatar, Breadcrumbs, Button, ButtonSelect, Card, CardContainer, ChartSemanticColorVar, Checkbox, CheckboxGroup, Chip, ChipMultiToggle, Circle, CodeBlock, CollapsibleHeadline, CopyButton, DateTimePicker, Divider, FadeOverlay, FilterField, Footer, Grid, GridItem, Headline, Hyperlink, Icon, Input, InputContainer, IntervalSelect, JsonViewer, Menu, MetaBar, Modal, ModalProvider, MultiSelect, NUMBER_OPERATORS, NavBar, Page, PageLayout, Pagination, Panel, Popover, RadioButton, RadioButtonGroup, SearchBox, SegmentedProgressBar, Select, SeverityIcon, SidePanel, Sidebar, SkeletonLoader, SkeletonLoaderItem, SplitButton, SplitPane, SplitPaneGutter, SplitPanePrimary, SplitPaneSecondary, Stack, StatePage, StickyFooterLayout, Table, Tabs, Textarea, ThemeButton, ThemeMenuSection, Toast, ToastProvider, Tooltip, TooltipContext, TooltipProvider, Typeahead, UserDisplay, formatDate, nestedFiltering, useDeviceSize, useModal, useOptionalToast, usePagination, useSidePanel, useSorting, useTableData, useTableSelection, useTheme, useTimeDuration, useToast, useTooltipTrigger, useViewportFill };
12809
+ export { Accordion, Alert, AppHeader, AttributeChip, Avatar, Breadcrumbs, Button, ButtonSelect, Card, CardContainer, ChartSemanticColorVar, Checkbox, CheckboxGroup, Chip, ChipMultiToggle, Circle, CodeBlock, CollapsibleHeadline, CopyButton, DateTimePicker, Divider, FadeOverlay, FilterField, Footer, Grid, GridItem, Headline, Hyperlink, Icon, InlineStatus, Input, InputContainer, IntervalSelect, JsonViewer, Menu, MetaBar, Modal, ModalProvider, MultiSelect, NUMBER_OPERATORS, NavBar, Page, PageLayout, Pagination, Panel, Popover, RadioButton, RadioButtonGroup, SearchBox, SegmentedProgressBar, Select, SeverityIcon, SidePanel, Sidebar, SkeletonLoader, SkeletonLoaderItem, SplitButton, SplitPane, SplitPaneGutter, SplitPanePrimary, SplitPaneSecondary, Stack, StatePage, StickyFooterLayout, Table, Tabs, Textarea, ThemeButton, ThemeMenuSection, Toast, ToastProvider, Tooltip, TooltipContext, TooltipProvider, Typeahead, UserDisplay, formatDate, nestedFiltering, useDeviceSize, useModal, useOptionalToast, usePagination, useSidePanel, useSorting, useTableData, useTableSelection, useTheme, useTimeDuration, useToast, useTooltipTrigger, useViewportFill };
@@ -42,15 +42,15 @@ body {
42
42
  }
43
43
 
44
44
  h1 {
45
- font-size: var(--font-size-2xl);
45
+ font-size: var(--font-size-xl);
46
46
  }
47
47
 
48
48
  h2 {
49
- font-size: var(--font-size-xl);
49
+ font-size: var(--font-size-lg);
50
50
  }
51
51
 
52
52
  h3 {
53
- font-size: var(--font-size-lg);
53
+ font-size: var(--font-size-md);
54
54
  }
55
55
 
56
56
  h4 {
@@ -240,6 +240,10 @@ body.dbc-app {
240
240
  font-size: var(--font-size-xs);
241
241
  }
242
242
 
243
+ .dbc-md-text {
244
+ font-size: var(--font-size-md);
245
+ }
246
+
243
247
  .dbc-lg-text {
244
248
  font-size: var(--font-size-lg);
245
249
  }
@@ -126,22 +126,22 @@ html {
126
126
  /* Status */
127
127
  --color-status-success: var(--dbc-green-500);
128
128
  --color-status-success-bg: var(--dbc-green-100);
129
- --color-status-success-border: var(--dbc-green-300);
129
+ --color-status-success-border: color-mix(in srgb, var(--dbc-green-500) 24%, transparent);
130
130
  --color-status-success-fg: var(--dbc-green-700);
131
131
 
132
132
  --color-status-warning: var(--dbc-amber-700);
133
133
  --color-status-warning-bg: var(--dbc-amber-100);
134
- --color-status-warning-border: var(--dbc-amber-400);
134
+ --color-status-warning-border: color-mix(in srgb, var(--dbc-amber-700) 24%, transparent);
135
135
  --color-status-warning-fg: var(--dbc-amber-800);
136
136
 
137
137
  --color-status-error: var(--dbc-red-600);
138
138
  --color-status-error-bg: var(--dbc-red-100);
139
- --color-status-error-border: var(--dbc-red-300);
139
+ --color-status-error-border: color-mix(in srgb, var(--dbc-red-600) 24%, transparent);
140
140
  --color-status-error-fg: var(--dbc-red-800);
141
141
 
142
142
  --color-status-info: var(--dbc-info-500);
143
143
  --color-status-info-bg: var(--dbc-info-100);
144
- --color-status-info-border: var(--dbc-info-300);
144
+ --color-status-info-border: color-mix(in srgb, var(--dbc-info-500) 24%, transparent);
145
145
  --color-status-info-fg: var(--dbc-info-700);
146
146
 
147
147
  /* Chart colors */
@@ -223,11 +223,16 @@ html {
223
223
  --opac-bg-dark-invert: light-dark(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.15));
224
224
 
225
225
  /* Shadows */
226
- --shadow-xs: 0 1px 2px light-dark(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
227
- --shadow-sm: 0 1px 3px light-dark(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.24));
228
- --shadow-md: 0 2px 6px light-dark(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.32));
229
- --shadow-lg: 0 4px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
230
- --shadow-xl: 0 8px 24px light-dark(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
226
+
227
+ --shadow-xs: 0 1px 1px light-dark(rgba(0, 0, 0, 0.04), transparent);
228
+
229
+ --shadow-sm: 0 1px 2px light-dark(rgba(0, 0, 0, 0.06), transparent);
230
+
231
+ --shadow-md: 0 2px 6px light-dark(rgba(0, 0, 0, 0.08), transparent);
232
+
233
+ --shadow-lg: 0 4px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
234
+
235
+ --shadow-xl: 0 8px 24px light-dark(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.45));
231
236
 
232
237
  /* Skeletons */
233
238
  --skeleton-base: light-dark(#e5e7eb, #374151);
package/dist/styles.css CHANGED
@@ -42,15 +42,15 @@ body {
42
42
  }
43
43
 
44
44
  h1 {
45
- font-size: var(--font-size-2xl);
45
+ font-size: var(--font-size-xl);
46
46
  }
47
47
 
48
48
  h2 {
49
- font-size: var(--font-size-xl);
49
+ font-size: var(--font-size-lg);
50
50
  }
51
51
 
52
52
  h3 {
53
- font-size: var(--font-size-lg);
53
+ font-size: var(--font-size-md);
54
54
  }
55
55
 
56
56
  h4 {
@@ -240,6 +240,10 @@ body.dbc-app {
240
240
  font-size: var(--font-size-xs);
241
241
  }
242
242
 
243
+ .dbc-md-text {
244
+ font-size: var(--font-size-md);
245
+ }
246
+
243
247
  .dbc-lg-text {
244
248
  font-size: var(--font-size-lg);
245
249
  }
package/dist/tanstack.cjs CHANGED
@@ -171,7 +171,6 @@ var Button_default = {
171
171
  rounded: "Button_rounded2",
172
172
  link: "Button_link2",
173
173
  icon: "Button_icon2",
174
- xs: "Button_xs2",
175
174
  sm: "Button_sm2",
176
175
  lg: "Button_lg2",
177
176
  fullWidth: "Button_fullWidth2",
@@ -182,7 +181,8 @@ var Button_default = {
182
181
  active: "Button_active2",
183
182
  success: "Button_success2",
184
183
  danger: "Button_danger2",
185
- inline: "Button_inline2"
184
+ inline: "Button_inline2",
185
+ xs: "Button_xs2"
186
186
  };
187
187
  function cx(...parts) {
188
188
  return parts.filter(Boolean).join(" ");
@@ -342,6 +342,73 @@ var InputContainer_default = {
342
342
  messageRow: "InputContainer_messageRow2",
343
343
  inputContainer: "InputContainer_inputContainer2"
344
344
  };
345
+
346
+ // src/components/inline-status/InlineStatus.module.css
347
+ var InlineStatus_default = {
348
+ container: "InlineStatus_container2",
349
+ fullWidth: "InlineStatus_fullWidth2",
350
+ leading: "InlineStatus_leading2",
351
+ body: "InlineStatus_body2",
352
+ sm: "InlineStatus_sm2",
353
+ md: "InlineStatus_md2",
354
+ neutral: "InlineStatus_neutral2",
355
+ success: "InlineStatus_success2",
356
+ warning: "InlineStatus_warning2",
357
+ error: "InlineStatus_error2",
358
+ info: "InlineStatus_info2",
359
+ brand: "InlineStatus_brand2"
360
+ };
361
+
362
+ // src/components/icon/Icon.module.css
363
+ var Icon_default = {
364
+ container: "Icon_container2",
365
+ icon: "Icon_icon2",
366
+ success: "Icon_success2",
367
+ error: "Icon_error2",
368
+ warning: "Icon_warning2",
369
+ info: "Icon_info2",
370
+ brand: "Icon_brand2"
371
+ };
372
+ var SeverityIcon = {
373
+ neutral: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleCheck, {}),
374
+ success: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleCheck, {}),
375
+ error: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleX, {}),
376
+ info: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Info, {}),
377
+ warning: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleAlert, {}),
378
+ brand: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Building2, {})
379
+ };
380
+ function Icon({ severity, label, customIcon }) {
381
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${Icon_default.container}`, children: [
382
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `${Icon_default.icon} ${severity ? Icon_default[severity] : ""} dbc-icon`, children: customIcon ? customIcon : severity ? SeverityIcon[severity] : null }),
383
+ label && /* @__PURE__ */ jsxRuntime.jsx("span", { children: label })
384
+ ] });
385
+ }
386
+ function InlineStatus({
387
+ children,
388
+ severity = "neutral",
389
+ customIcon,
390
+ disableIcon = false,
391
+ fullWidth = false,
392
+ size = "sm"
393
+ }) {
394
+ const hasLeading = Boolean(customIcon) || !disableIcon;
395
+ return /* @__PURE__ */ jsxRuntime.jsxs(
396
+ "div",
397
+ {
398
+ className: [
399
+ InlineStatus_default.container,
400
+ InlineStatus_default[severity],
401
+ InlineStatus_default[size],
402
+ fullWidth ? InlineStatus_default.fullWidth : "",
403
+ hasLeading ? InlineStatus_default.hasLeading : ""
404
+ ].filter(Boolean).join(" "),
405
+ children: [
406
+ hasLeading ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: InlineStatus_default.leading, children: customIcon != null ? customIcon : /* @__PURE__ */ jsxRuntime.jsx(Icon, { severity }) }) : null,
407
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: InlineStatus_default.body, children })
408
+ ]
409
+ }
410
+ );
411
+ }
345
412
  function InputContainer({
346
413
  label,
347
414
  labelAction,
@@ -357,8 +424,6 @@ function InputContainer({
357
424
  labelWidth = "160px",
358
425
  modified = false
359
426
  }) {
360
- const message = error != null ? error : helpText;
361
- const messageClass = error ? InputContainer_default.errorText : InputContainer_default.helpText;
362
427
  const renderLabelRow = (label || labelAction) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${InputContainer_default.labelRow} dbc-flex dbc-items-center dbc-gap-md`, children: [
363
428
  label && /* @__PURE__ */ jsxRuntime.jsxs("label", { className: InputContainer_default.label, htmlFor, children: [
364
429
  label,
@@ -366,10 +431,10 @@ function InputContainer({
366
431
  ] }),
367
432
  labelAction && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InputContainer_default.labelAction, children: labelAction })
368
433
  ] });
369
- const renderMessageRow = (message || helpTextAddition) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${messageClass} ${InputContainer_default.messageRow}`, children: [
370
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: message }),
434
+ const renderMessageRow = (error || helpText || helpTextAddition) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${error ? InputContainer_default.errorText : InputContainer_default.helpText} ${InputContainer_default.messageRow}`, children: error ? /* @__PURE__ */ jsxRuntime.jsx(InlineStatus, { severity: "error", disableIcon: true, children: error }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
435
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: helpText }),
371
436
  helpTextAddition && /* @__PURE__ */ jsxRuntime.jsx("span", { className: InputContainer_default.helpTextAddition, children: helpTextAddition })
372
- ] });
437
+ ] }) });
373
438
  if (orientation === "vertical") {
374
439
  return /* @__PURE__ */ jsxRuntime.jsxs(
375
440
  "div",
@@ -1658,7 +1723,7 @@ function TableRow({
1658
1723
  columns.map((column) => {
1659
1724
  var _a2, _b, _c, _d;
1660
1725
  const allowWrap = shouldAllowWrap(column.allowWrap, isSelected, viewMode);
1661
- const allowOverflow = column.allowOverflow;
1726
+ column.allowOverflow;
1662
1727
  const cellValue = getCellDisplayValue(row, column);
1663
1728
  return /* @__PURE__ */ jsxRuntime.jsx(
1664
1729
  "td",
@@ -1678,7 +1743,7 @@ function TableRow({
1678
1743
  className: Table_default.cellContent,
1679
1744
  "data-align": (_c = column.align) != null ? _c : "left",
1680
1745
  "data-vertical-align": (_d = column.verticalAlign) != null ? _d : "top",
1681
- children: allowWrap || allowOverflow ? cellValue : /* @__PURE__ */ jsxRuntime.jsx("div", { className: Table_default.cellValueEllipsis, children: cellValue })
1746
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: Table_default.cellValueEllipsis, children: cellValue })
1682
1747
  }
1683
1748
  )
1684
1749
  },