@stn-uiux/pub-ui-react 0.1.77 → 0.1.78

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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import react__default, { ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, HTMLAttributes, CSSProperties, ComponentPropsWithoutRef, ThHTMLAttributes, TdHTMLAttributes, ElementType, FormHTMLAttributes, MouseEvent, TextareaHTMLAttributes, SVGAttributes } from 'react';
3
+ import react__default, { ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, HTMLAttributes, CSSProperties, ComponentPropsWithoutRef, ThHTMLAttributes, TdHTMLAttributes, AllHTMLAttributes, ElementType, FormHTMLAttributes, MouseEvent, TextareaHTMLAttributes, SVGAttributes } from 'react';
4
4
  import { StnInputWidthValue } from '@stn-uiux/pub-ui/data/stnInputWidth';
5
5
  export { resolveSystemIconSrcFromName, systemIconSrc } from '@stn-uiux/pub-ui/data/stnSystemIcons';
6
6
  export { STN_PAGINATION_EXAMPLE, STN_PAGINATION_FIGMA, STN_PAGINATION_INTRO, STN_PAGINATION_REACT } from '@stn-uiux/pub-ui/data/stnPagination';
@@ -23,7 +23,7 @@ export { STN_SEARCH_REQUIREMENT_DEMO_FIELDS, STN_SEARCH_REQUIREMENT_FIGMA, STN_S
23
23
  import { StnHeaderVariant, StnHeaderPadding, StnHeaderGap } from '@stn-uiux/pub-ui/data/stnHeader';
24
24
  export { STN_HEADER_INTRO, STN_HEADER_PAGE_TITLE_DEMO, STN_HEADER_USAGE, STN_HEADER_VARIANT_ROWS, STN_SYSTEM_CHIP_DEMO, StnHeaderGap, StnHeaderPadding, StnHeaderVariant } from '@stn-uiux/pub-ui/data/stnHeader';
25
25
  import { StnLayer0BackgroundPreset, StnLayer0BackgroundKind } from '@stn-uiux/pub-ui/data/stnLayer0Background';
26
- export { STN_LAYER0_BACKGROUND_DEMO_IMAGES, STN_LAYER0_BACKGROUND_FIGMA, STN_LAYER0_BACKGROUND_INTRO, STN_LAYER0_BACKGROUND_USAGE, STN_LAYER0_BACKGROUND_VARIANT_ROWS, STN_LAYER0_MAP_LIGHT_OVERLAY, StnLayer0BackgroundKind, StnLayer0BackgroundPreset } from '@stn-uiux/pub-ui/data/stnLayer0Background';
26
+ export { STN_LAYER0_BACKGROUND_DEMO_IMAGES, STN_LAYER0_BACKGROUND_INTRO, STN_LAYER0_BACKGROUND_USAGE, STN_LAYER0_BACKGROUND_VARIANT_ROWS, STN_LAYER0_MAP_LIGHT_OVERLAY, StnLayer0BackgroundKind, StnLayer0BackgroundPreset } from '@stn-uiux/pub-ui/data/stnLayer0Background';
27
27
  import { StnDateRange } from '@stn-uiux/pub-ui/data/stnDatePicker';
28
28
  export { STN_DATE_PICKER_INTRO, STN_DATE_PICKER_KO_NAME, STN_DATE_PICKER_NAME, STN_DATE_PICKER_PANEL_USAGE, STN_DATE_PICKER_PART_ROWS, STN_DATE_PICKER_SPEC, STN_DATE_PICKER_USAGE, STN_DATE_PICKER_WEEKDAYS, StnDateRange } from '@stn-uiux/pub-ui/data/stnDatePicker';
29
29
  import { StnWidgetShell, StnWidgetAppearance, StnWidgetBackgroundMode, StnWidgetGradeRowGrade } from '@stn-uiux/pub-ui/data/stnWidget';
@@ -1640,7 +1640,7 @@ declare const StnCard: StnCardComponent;
1640
1640
  type StnTextVariant = 'display-1' | 'display-2' | 'display-3' | 'heading-1' | 'heading-2' | 'heading-3' | 'title-1' | 'title-2' | 'title-3' | 'body-1' | 'body-2' | 'body-3' | 'body-small' | 'label-1' | 'label-2' | 'label-3' | 'label-4' | 'caption-large' | 'caption';
1641
1641
  type StnTextWeight = 'regular' | 'medium' | 'semibold' | 'bold';
1642
1642
  type StnTextColor = 'primary' | 'secondary' | 'tertiary' | 'muted' | 'success' | 'error' | 'info' | 'critical' | 'major' | 'minor' | 'warning';
1643
- type StnTextProps = HTMLAttributes<HTMLElement> & {
1643
+ type StnTextProps = AllHTMLAttributes<HTMLElement> & {
1644
1644
  /** Type Scale (기본: body-3) */
1645
1645
  variant?: StnTextVariant;
1646
1646
  /** 렌더링할 태그 — 미지정 시 variant에 맞는 시맨틱 태그 자동 선택 */
@@ -1658,7 +1658,7 @@ type StnTextProps = HTMLAttributes<HTMLElement> & {
1658
1658
  * @example <StnText variant="heading-1">페이지 제목</StnText>
1659
1659
  * @example <StnText variant="caption" color="critical">오류 메시지</StnText>
1660
1660
  */
1661
- declare const StnText: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
1661
+ declare const StnText: react.ForwardRefExoticComponent<AllHTMLAttributes<HTMLElement> & {
1662
1662
  /** Type Scale (기본: body-3) */
1663
1663
  variant?: StnTextVariant;
1664
1664
  /** 렌더링할 태그 — 미지정 시 variant에 맞는 시맨틱 태그 자동 선택 */
@@ -1672,12 +1672,9 @@ declare const StnText: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElemen
1672
1672
  children?: ReactNode;
1673
1673
  } & react.RefAttributes<HTMLElement>>;
1674
1674
 
1675
- type StnSectionSideVariant = 'solid' | 'translucent';
1676
1675
  type StnSectionSideProps = Omit<HTMLAttributes<HTMLElement>, 'className' | 'children'> & {
1677
1676
  children?: ReactNode;
1678
1677
  className?: string;
1679
- /** 외형 모드 — solid(기본 불투명 면) | translucent(글래스모피즘 반투명 블러) */
1680
- variant?: StnSectionSideVariant;
1681
1678
  /** 상단 고정 헤더 영역 (검색창, 탭, 타이틀 등) */
1682
1679
  header?: ReactNode;
1683
1680
  /** 하단 고정 푸터 영역 (스위치, 액션 등) */
@@ -1698,8 +1695,6 @@ type StnSectionSideProps = Omit<HTMLAttributes<HTMLElement>, 'className' | 'chil
1698
1695
  declare const StnSectionSide: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "children" | "className"> & {
1699
1696
  children?: ReactNode;
1700
1697
  className?: string;
1701
- /** 외형 모드 — solid(기본 불투명 면) | translucent(글래스모피즘 반투명 블러) */
1702
- variant?: StnSectionSideVariant;
1703
1698
  /** 상단 고정 헤더 영역 (검색창, 탭, 타이틀 등) */
1704
1699
  header?: ReactNode;
1705
1700
  /** 하단 고정 푸터 영역 (스위치, 액션 등) */
@@ -2772,7 +2767,7 @@ declare function StnHeaderToolbar({ children, className, ...rest }: StnHeaderToo
2772
2767
  /** 단색 L0 — 지금은 default만. 장면이 생기면 타입을 추가합니다. */
2773
2768
  type StnLayer0BackgroundColor = 'default';
2774
2769
  type StnLayer0BackgroundProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
2775
- /** 디자인 시스템 사전 정의 프리셋 ('dashboard' | 'login' | 'map-light' | 'showroom-a' | 'showroom-b' | 'none') */
2770
+ /** 디자인 시스템 사전 정의 프리셋 ('dashboard' | 'list' | 'login' | 'map-light' | 'showroom-a' | 'showroom-b' | 'none') */
2776
2771
  variant?: StnLayer0BackgroundPreset;
2777
2772
  /** 채움 방식. 기본 color. `src`가 있으면 image로 봅니다. */
2778
2773
  kind?: StnLayer0BackgroundKind;
@@ -2791,10 +2786,12 @@ type StnLayer0BackgroundProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'>
2791
2786
  className?: string;
2792
2787
  };
2793
2788
  /**
2794
- * Layer 0 page background — 프리셋은 `variant`, 단색은 `color`, 임의 URL은 `src`.
2795
- * `src` + `srcDark` 를 같이 주면 `data-mode` 에 맞춰 전환합니다.
2789
+ * Layer 0 page background — 순수 CSS 토큰(Token-driven) 아키텍처
2790
+ *
2791
+ * 프리셋('dashboard', 'list', 'showroom-a' 등)은 CSS 클래스 하나로
2792
+ * 테마(Default/Blue) 및 모드(Light/Dark)에 맞춰 CSS 변수(--stn-l0-*-bg)로 즉시 전환됩니다.
2796
2793
  */
2797
- declare function StnLayer0Background({ variant, kind: kindProp, color, src: srcProp, srcDark: srcDarkProp, overlay: overlayProp, overlayDarkRadial: overlayDarkRadialProp, alt, className, style, ...rest }: StnLayer0BackgroundProps): react_jsx_runtime.JSX.Element;
2794
+ declare function StnLayer0Background({ variant, kind: kindProp, color, src, srcDark, overlay: overlayProp, overlayDarkRadial: overlayDarkRadialProp, alt, className, style, ...rest }: StnLayer0BackgroundProps): react_jsx_runtime.JSX.Element | null;
2798
2795
 
2799
2796
  type StnDateRangePickerProps = {
2800
2797
  open: boolean;
@@ -4583,4 +4580,4 @@ interface StnEventBannerProps extends Omit<react__default.HTMLAttributes<HTMLDiv
4583
4580
  /** 위험도별 이벤트 배너. placement와 severity로 배치·스타일을 고릅니다. */
4584
4581
  declare const StnEventBanner: react__default.ForwardRefExoticComponent<StnEventBannerProps & react__default.RefAttributes<HTMLDivElement>>;
4585
4582
 
4586
- export { AlertCenterDashboard, type AlertCenterDashboardProps, AlertCenterPageScaffold, type AlertCenterPageScaffoldProps, DashboardPageScaffold, type DashboardPageScaffoldProps, type DashboardType, LoginPageScaffold, type LoginPageScaffoldProps, PubChartSample, type PubDisabilityStatusItem, PubDisabilityStatusList, type PubTop5BarRow, PubTop5EquipmentBars, type PubTrafficTop5BarRow, PubTrafficTop5Bars, STN_TABLE_FOOTER_MAX_ACTIONS, STN_TOPOLOGY_NODE_ICONS, STN_TOPOLOGY_NODE_SHAPES, STN_TOPOLOGY_NODE_SIZE, STN_TOPOLOGY_NODE_SIZES, STN_TOPOLOGY_NODE_STATUSES, STN_TOPOLOGY_STATUS_COLORS, SideNavContext, type SideNavContextValue, StnAlertCard, type StnAlertCardProps, StnAlertCenterDocPreview, type StnAlertCenterDocPreviewProps, StnAlertCenterPanel, type StnAlertCenterPanelProps, StnBadge, type StnBadgeAnchorOrigin, type StnBadgeColor, type StnBadgeProps, type StnBadgeVariant, StnBreadcrumb, type StnBreadcrumbItem, type StnBreadcrumbMenuItem, type StnBreadcrumbProps, type StnBreadcrumbSize, type StnBreadcrumbVariant, StnButton, type StnButtonColor, type StnButtonIconPosition, type StnButtonProps, type StnButtonShape, type StnButtonSize, type StnButtonVariant, StnCard, StnCardBody, type StnCardBodyProps, StnCardFooter, type StnCardFooterProps, StnCardHeader, type StnCardHeaderProps, type StnCardProps, StnCheckbox, type StnCheckboxColor, type StnCheckboxLabelPlacement, type StnCheckboxProps, type StnCheckboxSize, type StnCheckboxVariant, StnChip, type StnChipColor, type StnChipIconPosition, type StnChipLabelPosition, type StnChipProps, type StnChipShape, type StnChipSize, type StnChipVariant, StnCircularProgress, type StnCircularProgressGradient, type StnCircularProgressLabelPosition, type StnCircularProgressProps, type StnCircularProgressSize, type StnCircularProgressTone, type StnCircularProgressTrack, StnContainer, type StnContainerMaxWidth, type StnContainerProps, StnContext, type StnContextValue, StnDashboard, type StnDashboardProps, type StnDashboardRegionProps, type StnDashboardWidgetPosition, StnDateRangeField, type StnDateRangeFieldProps, type StnDateRangeFieldVariant, StnDateRangePicker, StnDateRangePickerField, type StnDateRangePickerFieldProps, type StnDateRangePickerProps, StnDrawer, StnDrawerBody, type StnDrawerBodyPadding, type StnDrawerBodyProps, StnDrawerFooter, type StnDrawerFooterProps, type StnDrawerGap, StnDrawerHeader, type StnDrawerHeaderProps, type StnDrawerPadding, type StnDrawerPlacement, type StnDrawerProps, type StnDrawerSize, StnDropdown, StnDropdownMenu, type StnDropdownMenuProps, type StnDropdownProps, StnEventBanner, type StnEventBannerGap, type StnEventBannerPlacement, type StnEventBannerProps, type StnEventBannerSeverity, StnFloatingToolbar, type StnFloatingToolbarPlacement, StnFloatingToolbarPreset, type StnFloatingToolbarPresetProps, type StnFloatingToolbarProps, StnGrid, type StnGridBreakpoint, type StnGridDirection, type StnGridProps, type StnGridResponsive, type StnGridSize, type StnGridSpacing, StnHeader, StnHeaderContextTitle, StnHeaderPageTitle, type StnHeaderPageTitleProps, type StnHeaderProps, type StnHeaderRegionProps, StnHeaderSubTitle, StnHeaderTitle, type StnHeaderTitleClockProps, StnHeaderTitleDate, type StnHeaderTitleDateOptions, type StnHeaderTitleDualProps, StnHeaderTitleFramePreview, StnHeaderTitleMainText, type StnHeaderTitleProps, type StnHeaderTitleSize, StnHeaderTitleSubText, StnHeaderTitleTime, type StnHeaderTitleTimeOptions, type StnHeaderTitleTitleProps, type StnHeaderTitleVariant, StnHeaderTitleWeekday, StnHeaderToolbar, type StnHeaderToolbarProps, StnIcon, StnIconBox, type StnIconBoxColor, type StnIconBoxProps, type StnIconBoxSize, type StnIconProps, StnLabelPrefix, type StnLabelPrefixPosition, type StnLabelPrefixProps, type StnLabelPrefixRadius, type StnLabelPrefixSize, type StnLabelPrefixVariant, StnLayer, StnLayer0Background, type StnLayer0BackgroundColor, type StnLayer0BackgroundProps, StnLayerBackground, StnLayerContent, StnLayerDim, StnLayerModal, type StnLayerProps, type StnLayerRoleProps, StnLayerShell, type StnLayerShellProps, StnListViewLayout, StnListViewLayoutBody, type StnListViewLayoutBodyProps, StnListViewLayoutContent, StnListViewLayoutHeader, StnListViewLayoutPagination, type StnListViewLayoutProps, StnListViewLayoutSearch, StnListViewLayoutSidebar, StnListViewLayoutTable, StnLoadingSkeleton, StnLoadingSkeletonBlock, type StnLoadingSkeletonBlockProps, StnLoadingSkeletonCircle, type StnLoadingSkeletonCircleProps, StnLoadingSkeletonLine, type StnLoadingSkeletonLineProps, StnLoadingSkeletonProfile, type StnLoadingSkeletonProfileProps, type StnLoadingSkeletonProps, type StnLoadingSkeletonRootProps, StnLoadingSkeletonTable, type StnLoadingSkeletonTableProps, type StnLoadingSkeletonVariant, StnLoadingSkeletonWidget, type StnLoadingSkeletonWidgetProps, StnLoginBrandStack, type StnLoginBrandStackProps, StnLoginCard, type StnLoginCardBrandPosition, StnLoginCardGlowWrapper, type StnLoginCardGlowWrapperProps, type StnLoginCardProps, type StnLoginCardVariant, StnLoginFormFields, type StnLoginFormFieldsProps, StnLoginFormLinks, type StnLoginFormLinksProps, StnLoginFormStack, type StnLoginFormStackProps, StnLoginPlaceholder, type StnLoginPlaceholderProps, StnLoginTextField, type StnLoginTextFieldProps, StnLogo, type StnLogoProps, type StnLogoSize, type StnLogoTheme, type StnLogoVariant, StnMapCanvas, type StnMapCanvasProps, StnMapToolbar, type StnMapToolbarProps, StnModal, type StnModalProps, type StnModalSize, type StnMode, StnPageScaffold, StnPageScaffoldLayer, type StnPageScaffoldLayerProps, StnPageScaffoldMapCanvas, type StnPageScaffoldMapCanvasProps, StnPageScaffoldMapPlaceholder, type StnPageScaffoldMapPlaceholderProps, StnPageScaffoldRegion, type StnPageScaffoldRegionProps, StnPageScaffoldRoot, type StnPageScaffoldRootProps, StnPagination, type StnPaginationColor, type StnPaginationItem, type StnPaginationProps, type StnPaginationSize, type StnPaginationVariant, StnPopup, type StnPopupProps, type StnPopupSize, StnProgressBar, type StnProgressBarGradient, type StnProgressBarLabelAlign, type StnProgressBarLabelPosition, type StnProgressBarProps, type StnProgressBarSize, type StnProgressBarTone, type StnProgressBarTrack, StnProvider, type StnProviderProps, StnRadio, type StnRadioColor, StnRadioGroup, type StnRadioGroupLayout, type StnRadioGroupOption, type StnRadioGroupOrientation, type StnRadioGroupProps, type StnRadioLabelPlacement, type StnRadioProps, type StnRadioSize, StnScroll, type StnScrollColor, type StnScrollOrientation, type StnScrollProps, type StnScrollSize, type StnScrollVariant, StnSearchRequirementBar, StnSearchRequirementBarDemo, type StnSearchRequirementBarDemoProps, type StnSearchRequirementBarDividerProps, type StnSearchRequirementBarExportProps, type StnSearchRequirementBarFieldProps, type StnSearchRequirementBarFieldsProps, type StnSearchRequirementBarProps, type StnSearchRequirementBarSearchButtonProps, StnSectionSide, StnSectionSidePreset, type StnSectionSidePresetProps, type StnSectionSideProps, type StnSectionSideVariant, StnSegmented, type StnSegmentedMultipleProps, type StnSegmentedOption, type StnSegmentedProps, type StnSegmentedSingleProps, StnSeverityBadge, type StnSeverityBadgeProps, type StnSeverityLevel, type StnSeveritySize, type StnSeverityVariant, type StnSideNavDropdownVariant, StnSideNavFooter, type StnSideNavFooterProps, StnSideNavGroup, type StnSideNavGroupProps, StnSideNavHeader, type StnSideNavHeaderProps, StnSideNavItem, type StnSideNavItemProps, type StnSideNavItemVariant, StnSideNavLogo, type StnSideNavLogoProps, StnSideNavMenu, type StnSideNavMenuProps, StnSideNavMobileTrigger, type StnSideNavMobileTriggerProps, StnSideNavSpacer, type StnSideNavSpacerProps, StnSideNavSub, StnSideNavSubItem, type StnSideNavSubItemProps, StnSideNavSubNav, type StnSideNavSubNavProps, type StnSideNavSubNavVariant, type StnSideNavSubProps, StnSideNavToggle, type StnSideNavToggleProps, StnSideNavWatermark, type StnSideNavWatermarkProps, StnSideNavigation, type StnSideNavigationProps, type StnSideNavigationVariant, StnSlider, type StnSliderColor, type StnSliderGradient, type StnSliderLabelAlign, type StnSliderLabelPosition, type StnSliderProps, type StnSliderSize, StnStack, type StnStackBreakpoint, type StnStackDirection, type StnStackProps, type StnStackResponsive, type StnStackScrollable, type StnStackWrap, StnStatus, StnStatusDot, type StnStatusDotGap, StnStatusDotGroup, type StnStatusDotGroupItem, type StnStatusDotGroupProps, type StnStatusDotPosition, type StnStatusDotProps, type StnStatusDotSize, StnStatusFlow, type StnStatusFlowProps, type StnStatusFlowSize, type StnStatusProps, StnStatusSeverity, type StnStatusSeverityProps, StnStatusSwitch, type StnStatusSwitchProps, StnSwitch, type StnSwitchColor, type StnSwitchGradient, type StnSwitchLabelPosition, type StnSwitchProps, type StnSwitchSize, StnTab, StnTabContextProvider, type StnTabContextProviderProps, type StnTabContextValue, StnTabPanel, type StnTabPanelProps, type StnTabProps, StnTable, type StnTableAlign, StnTableBody, type StnTableBodyProps, StnTableGrid, type StnTableGridProps, StnTableHead, type StnTableHeadProps, type StnTableProps, StnTableRow, type StnTableRowProps, StnTableSort, type StnTableSortProps, StnTableTd, StnTableTdCheck, type StnTableTdCheckProps, type StnTableTdProps, StnTableTh, StnTableThCheck, type StnTableThCheckProps, type StnTableThProps, StnTabs, type StnTabsProps, StnTabsRoot, StnText, StnTextArea, type StnTextAreaColor, type StnTextAreaLabelPosition, type StnTextAreaProps, type StnTextAreaResize, type StnTextAreaSizeProp, type StnTextAreaVariant, type StnTextColor, StnTextField, type StnTextFieldColor, type StnTextFieldIconPosition, type StnTextFieldLabelPosition, type StnTextFieldProps, type StnTextFieldVariant, type StnTextProps, type StnTextVariant, type StnTextWeight, type StnTheme, StnToastCloseButton, StnToastIcon, type StnToastIconProps, StnToggleButton, type StnToggleButtonColor, type StnToggleButtonIconPosition, type StnToggleButtonProps, type StnToggleButtonSize, type StnToolbarOrientation, StnTooltip, type StnTooltipPlacement, type StnTooltipProps, type StnTooltipSize, type StnTooltipTone, type StnTooltipVariant, type StnTopologyCore, StnTopologyGraph, type StnTopologyGraphLink, type StnTopologyGraphNode, type StnTopologyGraphProps, type StnTopologyNode, type StnTopologyNodeContent, type StnTopologyNodeIcon, StnTopologyNodeMark, type StnTopologyNodeMarkProps, StnTopologyNodePreview, type StnTopologyNodePreviewProps, type StnTopologyNodeShape, type StnTopologyNodeSize, type StnTopologyNodeStatus, StnTopologyRing, type StnTopologyRingProps, StnTree, type StnTreeDocRowState, StnTreeItem, type StnTreeItemData, type StnTreeItemDocState, type StnTreeItemProps, StnTreeNode, type StnTreeNodeDocState, type StnTreeNodeKind, type StnTreeNodeProps, type StnTreeProps, type StnTreeRadius, type StnTreeSize, type StnTreeWidth, StnWidget, StnWidgetActions, type StnWidgetBackground, StnWidgetBody, StnWidgetChartSlot, type StnWidgetChartSlotProps, StnWidgetEmpty, StnWidgetFooter, StnWidgetGradeRow, StnWidgetGradeRowList, type StnWidgetGradeRowProps, StnWidgetHeader, StnWidgetInsetIcon, type StnWidgetInsetIconProps, StnWidgetLoading, type StnWidgetPadding, StnWidgetPlaceholder, type StnWidgetProps, StnWidgetStatCard, type StnWidgetStatCardProps, StnWidgetStatGroup, type StnWidgetStatus, type StnWidgetStatusGrade, StnWidgetStatusItem, type StnWidgetStatusItemProps, StnWidgetStatusList, StnWidgetTitle, buildPaginationItems, buildStnTreeNodeCells, cn, collectExpandableIds, flattenStnTree, formatStnHeaderTitleDate, formatStnHeaderTitleTime, formatStnHeaderTitleWeekday, formatTopologyCount, useSideNav, useStn, useStnOptional, useStnTabsContext };
4583
+ export { AlertCenterDashboard, type AlertCenterDashboardProps, AlertCenterPageScaffold, type AlertCenterPageScaffoldProps, DashboardPageScaffold, type DashboardPageScaffoldProps, type DashboardType, LoginPageScaffold, type LoginPageScaffoldProps, PubChartSample, type PubDisabilityStatusItem, PubDisabilityStatusList, type PubTop5BarRow, PubTop5EquipmentBars, type PubTrafficTop5BarRow, PubTrafficTop5Bars, STN_TABLE_FOOTER_MAX_ACTIONS, STN_TOPOLOGY_NODE_ICONS, STN_TOPOLOGY_NODE_SHAPES, STN_TOPOLOGY_NODE_SIZE, STN_TOPOLOGY_NODE_SIZES, STN_TOPOLOGY_NODE_STATUSES, STN_TOPOLOGY_STATUS_COLORS, SideNavContext, type SideNavContextValue, StnAlertCard, type StnAlertCardProps, StnAlertCenterDocPreview, type StnAlertCenterDocPreviewProps, StnAlertCenterPanel, type StnAlertCenterPanelProps, StnBadge, type StnBadgeAnchorOrigin, type StnBadgeColor, type StnBadgeProps, type StnBadgeVariant, StnBreadcrumb, type StnBreadcrumbItem, type StnBreadcrumbMenuItem, type StnBreadcrumbProps, type StnBreadcrumbSize, type StnBreadcrumbVariant, StnButton, type StnButtonColor, type StnButtonIconPosition, type StnButtonProps, type StnButtonShape, type StnButtonSize, type StnButtonVariant, StnCard, StnCardBody, type StnCardBodyProps, StnCardFooter, type StnCardFooterProps, StnCardHeader, type StnCardHeaderProps, type StnCardProps, StnCheckbox, type StnCheckboxColor, type StnCheckboxLabelPlacement, type StnCheckboxProps, type StnCheckboxSize, type StnCheckboxVariant, StnChip, type StnChipColor, type StnChipIconPosition, type StnChipLabelPosition, type StnChipProps, type StnChipShape, type StnChipSize, type StnChipVariant, StnCircularProgress, type StnCircularProgressGradient, type StnCircularProgressLabelPosition, type StnCircularProgressProps, type StnCircularProgressSize, type StnCircularProgressTone, type StnCircularProgressTrack, StnContainer, type StnContainerMaxWidth, type StnContainerProps, StnContext, type StnContextValue, StnDashboard, type StnDashboardProps, type StnDashboardRegionProps, type StnDashboardWidgetPosition, StnDateRangeField, type StnDateRangeFieldProps, type StnDateRangeFieldVariant, StnDateRangePicker, StnDateRangePickerField, type StnDateRangePickerFieldProps, type StnDateRangePickerProps, StnDrawer, StnDrawerBody, type StnDrawerBodyPadding, type StnDrawerBodyProps, StnDrawerFooter, type StnDrawerFooterProps, type StnDrawerGap, StnDrawerHeader, type StnDrawerHeaderProps, type StnDrawerPadding, type StnDrawerPlacement, type StnDrawerProps, type StnDrawerSize, StnDropdown, StnDropdownMenu, type StnDropdownMenuProps, type StnDropdownProps, StnEventBanner, type StnEventBannerGap, type StnEventBannerPlacement, type StnEventBannerProps, type StnEventBannerSeverity, StnFloatingToolbar, type StnFloatingToolbarPlacement, StnFloatingToolbarPreset, type StnFloatingToolbarPresetProps, type StnFloatingToolbarProps, StnGrid, type StnGridBreakpoint, type StnGridDirection, type StnGridProps, type StnGridResponsive, type StnGridSize, type StnGridSpacing, StnHeader, StnHeaderContextTitle, StnHeaderPageTitle, type StnHeaderPageTitleProps, type StnHeaderProps, type StnHeaderRegionProps, StnHeaderSubTitle, StnHeaderTitle, type StnHeaderTitleClockProps, StnHeaderTitleDate, type StnHeaderTitleDateOptions, type StnHeaderTitleDualProps, StnHeaderTitleFramePreview, StnHeaderTitleMainText, type StnHeaderTitleProps, type StnHeaderTitleSize, StnHeaderTitleSubText, StnHeaderTitleTime, type StnHeaderTitleTimeOptions, type StnHeaderTitleTitleProps, type StnHeaderTitleVariant, StnHeaderTitleWeekday, StnHeaderToolbar, type StnHeaderToolbarProps, StnIcon, StnIconBox, type StnIconBoxColor, type StnIconBoxProps, type StnIconBoxSize, type StnIconProps, StnLabelPrefix, type StnLabelPrefixPosition, type StnLabelPrefixProps, type StnLabelPrefixRadius, type StnLabelPrefixSize, type StnLabelPrefixVariant, StnLayer, StnLayer0Background, type StnLayer0BackgroundColor, type StnLayer0BackgroundProps, StnLayerBackground, StnLayerContent, StnLayerDim, StnLayerModal, type StnLayerProps, type StnLayerRoleProps, StnLayerShell, type StnLayerShellProps, StnListViewLayout, StnListViewLayoutBody, type StnListViewLayoutBodyProps, StnListViewLayoutContent, StnListViewLayoutHeader, StnListViewLayoutPagination, type StnListViewLayoutProps, StnListViewLayoutSearch, StnListViewLayoutSidebar, StnListViewLayoutTable, StnLoadingSkeleton, StnLoadingSkeletonBlock, type StnLoadingSkeletonBlockProps, StnLoadingSkeletonCircle, type StnLoadingSkeletonCircleProps, StnLoadingSkeletonLine, type StnLoadingSkeletonLineProps, StnLoadingSkeletonProfile, type StnLoadingSkeletonProfileProps, type StnLoadingSkeletonProps, type StnLoadingSkeletonRootProps, StnLoadingSkeletonTable, type StnLoadingSkeletonTableProps, type StnLoadingSkeletonVariant, StnLoadingSkeletonWidget, type StnLoadingSkeletonWidgetProps, StnLoginBrandStack, type StnLoginBrandStackProps, StnLoginCard, type StnLoginCardBrandPosition, StnLoginCardGlowWrapper, type StnLoginCardGlowWrapperProps, type StnLoginCardProps, type StnLoginCardVariant, StnLoginFormFields, type StnLoginFormFieldsProps, StnLoginFormLinks, type StnLoginFormLinksProps, StnLoginFormStack, type StnLoginFormStackProps, StnLoginPlaceholder, type StnLoginPlaceholderProps, StnLoginTextField, type StnLoginTextFieldProps, StnLogo, type StnLogoProps, type StnLogoSize, type StnLogoTheme, type StnLogoVariant, StnMapCanvas, type StnMapCanvasProps, StnMapToolbar, type StnMapToolbarProps, StnModal, type StnModalProps, type StnModalSize, type StnMode, StnPageScaffold, StnPageScaffoldLayer, type StnPageScaffoldLayerProps, StnPageScaffoldMapCanvas, type StnPageScaffoldMapCanvasProps, StnPageScaffoldMapPlaceholder, type StnPageScaffoldMapPlaceholderProps, StnPageScaffoldRegion, type StnPageScaffoldRegionProps, StnPageScaffoldRoot, type StnPageScaffoldRootProps, StnPagination, type StnPaginationColor, type StnPaginationItem, type StnPaginationProps, type StnPaginationSize, type StnPaginationVariant, StnPopup, type StnPopupProps, type StnPopupSize, StnProgressBar, type StnProgressBarGradient, type StnProgressBarLabelAlign, type StnProgressBarLabelPosition, type StnProgressBarProps, type StnProgressBarSize, type StnProgressBarTone, type StnProgressBarTrack, StnProvider, type StnProviderProps, StnRadio, type StnRadioColor, StnRadioGroup, type StnRadioGroupLayout, type StnRadioGroupOption, type StnRadioGroupOrientation, type StnRadioGroupProps, type StnRadioLabelPlacement, type StnRadioProps, type StnRadioSize, StnScroll, type StnScrollColor, type StnScrollOrientation, type StnScrollProps, type StnScrollSize, type StnScrollVariant, StnSearchRequirementBar, StnSearchRequirementBarDemo, type StnSearchRequirementBarDemoProps, type StnSearchRequirementBarDividerProps, type StnSearchRequirementBarExportProps, type StnSearchRequirementBarFieldProps, type StnSearchRequirementBarFieldsProps, type StnSearchRequirementBarProps, type StnSearchRequirementBarSearchButtonProps, StnSectionSide, StnSectionSidePreset, type StnSectionSidePresetProps, type StnSectionSideProps, StnSegmented, type StnSegmentedMultipleProps, type StnSegmentedOption, type StnSegmentedProps, type StnSegmentedSingleProps, StnSeverityBadge, type StnSeverityBadgeProps, type StnSeverityLevel, type StnSeveritySize, type StnSeverityVariant, type StnSideNavDropdownVariant, StnSideNavFooter, type StnSideNavFooterProps, StnSideNavGroup, type StnSideNavGroupProps, StnSideNavHeader, type StnSideNavHeaderProps, StnSideNavItem, type StnSideNavItemProps, type StnSideNavItemVariant, StnSideNavLogo, type StnSideNavLogoProps, StnSideNavMenu, type StnSideNavMenuProps, StnSideNavMobileTrigger, type StnSideNavMobileTriggerProps, StnSideNavSpacer, type StnSideNavSpacerProps, StnSideNavSub, StnSideNavSubItem, type StnSideNavSubItemProps, StnSideNavSubNav, type StnSideNavSubNavProps, type StnSideNavSubNavVariant, type StnSideNavSubProps, StnSideNavToggle, type StnSideNavToggleProps, StnSideNavWatermark, type StnSideNavWatermarkProps, StnSideNavigation, type StnSideNavigationProps, type StnSideNavigationVariant, StnSlider, type StnSliderColor, type StnSliderGradient, type StnSliderLabelAlign, type StnSliderLabelPosition, type StnSliderProps, type StnSliderSize, StnStack, type StnStackBreakpoint, type StnStackDirection, type StnStackProps, type StnStackResponsive, type StnStackScrollable, type StnStackWrap, StnStatus, StnStatusDot, type StnStatusDotGap, StnStatusDotGroup, type StnStatusDotGroupItem, type StnStatusDotGroupProps, type StnStatusDotPosition, type StnStatusDotProps, type StnStatusDotSize, StnStatusFlow, type StnStatusFlowProps, type StnStatusFlowSize, type StnStatusProps, StnStatusSeverity, type StnStatusSeverityProps, StnStatusSwitch, type StnStatusSwitchProps, StnSwitch, type StnSwitchColor, type StnSwitchGradient, type StnSwitchLabelPosition, type StnSwitchProps, type StnSwitchSize, StnTab, StnTabContextProvider, type StnTabContextProviderProps, type StnTabContextValue, StnTabPanel, type StnTabPanelProps, type StnTabProps, StnTable, type StnTableAlign, StnTableBody, type StnTableBodyProps, StnTableGrid, type StnTableGridProps, StnTableHead, type StnTableHeadProps, type StnTableProps, StnTableRow, type StnTableRowProps, StnTableSort, type StnTableSortProps, StnTableTd, StnTableTdCheck, type StnTableTdCheckProps, type StnTableTdProps, StnTableTh, StnTableThCheck, type StnTableThCheckProps, type StnTableThProps, StnTabs, type StnTabsProps, StnTabsRoot, StnText, StnTextArea, type StnTextAreaColor, type StnTextAreaLabelPosition, type StnTextAreaProps, type StnTextAreaResize, type StnTextAreaSizeProp, type StnTextAreaVariant, type StnTextColor, StnTextField, type StnTextFieldColor, type StnTextFieldIconPosition, type StnTextFieldLabelPosition, type StnTextFieldProps, type StnTextFieldVariant, type StnTextProps, type StnTextVariant, type StnTextWeight, type StnTheme, StnToastCloseButton, StnToastIcon, type StnToastIconProps, StnToggleButton, type StnToggleButtonColor, type StnToggleButtonIconPosition, type StnToggleButtonProps, type StnToggleButtonSize, type StnToolbarOrientation, StnTooltip, type StnTooltipPlacement, type StnTooltipProps, type StnTooltipSize, type StnTooltipTone, type StnTooltipVariant, type StnTopologyCore, StnTopologyGraph, type StnTopologyGraphLink, type StnTopologyGraphNode, type StnTopologyGraphProps, type StnTopologyNode, type StnTopologyNodeContent, type StnTopologyNodeIcon, StnTopologyNodeMark, type StnTopologyNodeMarkProps, StnTopologyNodePreview, type StnTopologyNodePreviewProps, type StnTopologyNodeShape, type StnTopologyNodeSize, type StnTopologyNodeStatus, StnTopologyRing, type StnTopologyRingProps, StnTree, type StnTreeDocRowState, StnTreeItem, type StnTreeItemData, type StnTreeItemDocState, type StnTreeItemProps, StnTreeNode, type StnTreeNodeDocState, type StnTreeNodeKind, type StnTreeNodeProps, type StnTreeProps, type StnTreeRadius, type StnTreeSize, type StnTreeWidth, StnWidget, StnWidgetActions, type StnWidgetBackground, StnWidgetBody, StnWidgetChartSlot, type StnWidgetChartSlotProps, StnWidgetEmpty, StnWidgetFooter, StnWidgetGradeRow, StnWidgetGradeRowList, type StnWidgetGradeRowProps, StnWidgetHeader, StnWidgetInsetIcon, type StnWidgetInsetIconProps, StnWidgetLoading, type StnWidgetPadding, StnWidgetPlaceholder, type StnWidgetProps, StnWidgetStatCard, type StnWidgetStatCardProps, StnWidgetStatGroup, type StnWidgetStatus, type StnWidgetStatusGrade, StnWidgetStatusItem, type StnWidgetStatusItemProps, StnWidgetStatusList, StnWidgetTitle, buildPaginationItems, buildStnTreeNodeCells, cn, collectExpandableIds, flattenStnTree, formatStnHeaderTitleDate, formatStnHeaderTitleTime, formatStnHeaderTitleWeekday, formatTopologyCount, useSideNav, useStn, useStnOptional, useStnTabsContext };
package/dist/index.js CHANGED
@@ -997,23 +997,24 @@ var StnModal = forwardRef6(function StnModal2({
997
997
  ...rest,
998
998
  children: /* @__PURE__ */ jsx9("div", { className: "stn-pop__cont", children: /* @__PURE__ */ jsxs5("div", { className: "stn-pop__panel", children: [
999
999
  /* @__PURE__ */ jsxs5("div", { className: "stn-pop__head", id: titleId, children: [
1000
- /* @__PURE__ */ jsxs5("div", { className: "stn-pop__head-row", children: [
1001
- /* @__PURE__ */ jsx9("h4", { children: title }),
1002
- headerExtra ? /* @__PURE__ */ jsx9("div", { className: "stn-pop__head-extra", children: headerExtra }) : null
1000
+ /* @__PURE__ */ jsxs5("div", { className: "stn-pop__head-start", children: [
1001
+ /* @__PURE__ */ jsxs5("div", { className: "stn-pop__head-row", children: [
1002
+ /* @__PURE__ */ jsx9("h4", { children: title }),
1003
+ headerExtra ? /* @__PURE__ */ jsx9("div", { className: "stn-pop__head-extra", children: headerExtra }) : null
1004
+ ] }),
1005
+ subtitle ? /* @__PURE__ */ jsx9("p", { className: "stn-pop__subtitle", children: subtitle }) : null
1003
1006
  ] }),
1004
- subtitle ? /* @__PURE__ */ jsx9("p", { className: "stn-pop__subtitle", children: subtitle }) : null
1007
+ onClose ? /* @__PURE__ */ jsx9(
1008
+ StnButton,
1009
+ {
1010
+ icon: "line/x",
1011
+ variant: "ghost",
1012
+ size: "sm",
1013
+ "aria-label": "\uB2EB\uAE30",
1014
+ onClick: onClose
1015
+ }
1016
+ ) : null
1005
1017
  ] }),
1006
- /* @__PURE__ */ jsx9(
1007
- StnButton,
1008
- {
1009
- icon: "line/x",
1010
- variant: "ghost",
1011
- size: "sm",
1012
- className: "stn-pop__close",
1013
- "aria-label": "\uB2EB\uAE30",
1014
- onClick: onClose
1015
- }
1016
- ),
1017
1018
  /* @__PURE__ */ jsx9("div", { className: cn("stn-pop__body", bodyClassName), children }),
1018
1019
  actions ? /* @__PURE__ */ jsx9(
1019
1020
  "div",
@@ -3144,7 +3145,6 @@ var StnSectionSide = forwardRef18(function StnSectionSide2({
3144
3145
  header,
3145
3146
  footer,
3146
3147
  className,
3147
- variant = "solid",
3148
3148
  fill = true,
3149
3149
  fullWidth = false,
3150
3150
  collapsed = false,
@@ -3158,7 +3158,6 @@ var StnSectionSide = forwardRef18(function StnSectionSide2({
3158
3158
  ref,
3159
3159
  className: cn(
3160
3160
  "stn-section-side",
3161
- variant === "translucent" && "stn-section-side--translucent",
3162
3161
  fill && "stn-section-side--fill",
3163
3162
  fullWidth && "is-full-width",
3164
3163
  collapsed && "is-collapsed",
@@ -5957,17 +5956,15 @@ function StnHeaderToolbar({ children, className, ...rest }) {
5957
5956
 
5958
5957
  // src/index.ts
5959
5958
  import {
5960
- STN_LAYER0_BACKGROUND_FIGMA,
5961
5959
  STN_LAYER0_BACKGROUND_INTRO,
5962
5960
  STN_LAYER0_BACKGROUND_USAGE,
5963
5961
  STN_LAYER0_BACKGROUND_VARIANT_ROWS,
5964
- STN_LAYER0_BACKGROUND_DEMO_IMAGES as STN_LAYER0_BACKGROUND_DEMO_IMAGES2,
5962
+ STN_LAYER0_BACKGROUND_DEMO_IMAGES,
5965
5963
  STN_LAYER0_MAP_LIGHT_OVERLAY as STN_LAYER0_MAP_LIGHT_OVERLAY2
5966
5964
  } from "@stn-uiux/pub-ui/data/stnLayer0Background";
5967
5965
 
5968
5966
  // src/patterns/background/StnLayer0Background.tsx
5969
5967
  import {
5970
- STN_LAYER0_BACKGROUND_DEMO_IMAGES,
5971
5968
  STN_LAYER0_MAP_LIGHT_OVERLAY
5972
5969
  } from "@stn-uiux/pub-ui/data/stnLayer0Background";
5973
5970
  import { jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
@@ -5976,12 +5973,21 @@ function overlayStyle(overlay) {
5976
5973
  const pct = `${Math.min(100, Math.max(0, overlay * 100))}%`;
5977
5974
  return { "--stn-layer0-overlay-opacity": pct };
5978
5975
  }
5976
+ function handleImageError(e) {
5977
+ const currentSrc = e.currentTarget.src;
5978
+ if (currentSrc && currentSrc.startsWith("http") && currentSrc.includes("/images/layer0/")) {
5979
+ const fallback = currentSrc.substring(currentSrc.indexOf("/images/layer0/"));
5980
+ if (typeof window !== "undefined" && currentSrc !== window.location.origin + fallback) {
5981
+ e.currentTarget.src = fallback;
5982
+ }
5983
+ }
5984
+ }
5979
5985
  function StnLayer0Background({
5980
5986
  variant,
5981
5987
  kind: kindProp,
5982
5988
  color = "default",
5983
- src: srcProp,
5984
- srcDark: srcDarkProp,
5989
+ src,
5990
+ srcDark,
5985
5991
  overlay: overlayProp,
5986
5992
  overlayDarkRadial: overlayDarkRadialProp,
5987
5993
  alt = "",
@@ -5989,92 +5995,23 @@ function StnLayer0Background({
5989
5995
  style,
5990
5996
  ...rest
5991
5997
  }) {
5992
- let src = srcProp;
5993
- let srcDark = srcDarkProp;
5994
5998
  let overlay = overlayProp;
5995
5999
  let overlayDarkRadial = overlayDarkRadialProp;
5996
- let isPresetImage = false;
5997
- if (variant && variant !== "none" && variant !== "color" && variant !== "gradient") {
5998
- isPresetImage = true;
5999
- if (variant === "dashboard") {
6000
- src = src ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.dashboard;
6001
- srcDark = srcDark ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.dashboardDark;
6002
- } else if (variant === "infomap") {
6003
- src = src ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.infomap;
6004
- srcDark = srcDark ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.infomapDark;
6005
- } else if (variant === "infomap-none") {
6006
- src = src ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.infomapNone;
6007
- srcDark = srcDark ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.infomapNoneDark;
6008
- } else if (variant === "showroom-a") {
6009
- src = src ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.showroomA;
6010
- srcDark = srcDark ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.showroomADark;
6011
- } else if (variant === "showroom-b") {
6012
- src = src ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.showroomB;
6013
- srcDark = srcDark ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.showroomBDark;
6014
- overlayDarkRadial = overlayDarkRadial ?? true;
6015
- } else if (variant === "login") {
6016
- src = src ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.login;
6017
- srcDark = srcDark ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.loginDark;
6018
- } else if (variant === "map-light") {
6019
- src = src ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.mapLight;
6020
- srcDark = srcDark ?? STN_LAYER0_BACKGROUND_DEMO_IMAGES.mapDark;
6021
- overlay = overlay ?? STN_LAYER0_MAP_LIGHT_OVERLAY;
6022
- }
6000
+ if (variant === "none") {
6001
+ return null;
6023
6002
  }
6024
- const kind = kindProp ?? (isPresetImage ? "image" : void 0);
6025
- const isImage = kind === "image" || Boolean(src || srcDark);
6026
- if (isImage) {
6027
- const paired = Boolean(src && srcDark);
6003
+ if (variant === "color" || kindProp === "color") {
6028
6004
  return /* @__PURE__ */ jsx48(
6029
6005
  "div",
6030
6006
  {
6031
- className: cn("stn-layer0-bg", "image", className),
6032
- "aria-hidden": alt === "" ? true : void 0,
6033
- style: { ...overlayStyle(overlay), ...style },
6034
- ...rest,
6035
- children: /* @__PURE__ */ jsxs37("div", { className: "stn-layer0-bg__media", children: [
6036
- src ? /* @__PURE__ */ jsx48(
6037
- "img",
6038
- {
6039
- className: cn("stn-layer0-bg__img", paired && "light"),
6040
- src,
6041
- alt,
6042
- decoding: "async",
6043
- onError: (e) => {
6044
- if (src && src.startsWith("http") && src.includes("/images/layer0/")) {
6045
- const fallback = src.substring(src.indexOf("/images/layer0/"));
6046
- if (typeof window !== "undefined" && e.currentTarget.src !== window.location.origin + fallback) {
6047
- e.currentTarget.src = fallback;
6048
- }
6049
- }
6050
- }
6051
- }
6052
- ) : null,
6053
- srcDark ? /* @__PURE__ */ jsx48(
6054
- "img",
6055
- {
6056
- className: cn("stn-layer0-bg__img", paired ? "dark" : void 0),
6057
- src: srcDark,
6058
- alt,
6059
- decoding: "async",
6060
- onError: (e) => {
6061
- if (srcDark && srcDark.startsWith("http") && srcDark.includes("/images/layer0/")) {
6062
- const fallback = srcDark.substring(srcDark.indexOf("/images/layer0/"));
6063
- if (typeof window !== "undefined" && e.currentTarget.src !== window.location.origin + fallback) {
6064
- e.currentTarget.src = fallback;
6065
- }
6066
- }
6067
- }
6068
- }
6069
- ) : null,
6070
- overlay != null && overlay > 0 ? /* @__PURE__ */ jsx48("div", { className: "stn-layer0-bg__overlay", "aria-hidden": "true" }) : null,
6071
- overlayDarkRadial ? /* @__PURE__ */ jsx48("div", { className: "stn-layer0-bg__overlay radial", "aria-hidden": "true" }) : null
6072
- ] })
6007
+ className: cn("stn-layer0-bg", "color", color, className),
6008
+ "aria-hidden": "true",
6009
+ style,
6010
+ ...rest
6073
6011
  }
6074
6012
  );
6075
6013
  }
6076
- const isGradient = kind === "gradient" || variant === "gradient";
6077
- if (isGradient) {
6014
+ if (variant === "gradient" || kindProp === "gradient") {
6078
6015
  return /* @__PURE__ */ jsx48(
6079
6016
  "div",
6080
6017
  {
@@ -6085,13 +6022,61 @@ function StnLayer0Background({
6085
6022
  }
6086
6023
  );
6087
6024
  }
6088
- return /* @__PURE__ */ jsx48(
6025
+ if (src || srcDark) {
6026
+ const paired = Boolean(src && srcDark);
6027
+ return /* @__PURE__ */ jsxs37(
6028
+ "div",
6029
+ {
6030
+ className: cn("stn-layer0-bg", "image", className),
6031
+ "aria-hidden": alt === "" ? true : void 0,
6032
+ style: { ...overlayStyle(overlay), ...style },
6033
+ ...rest,
6034
+ children: [
6035
+ /* @__PURE__ */ jsxs37("div", { className: "stn-layer0-bg__media", children: [
6036
+ src ? /* @__PURE__ */ jsx48(
6037
+ "img",
6038
+ {
6039
+ className: cn("stn-layer0-bg__img", paired && "light"),
6040
+ src,
6041
+ alt,
6042
+ decoding: "async",
6043
+ onError: handleImageError
6044
+ }
6045
+ ) : null,
6046
+ srcDark ? /* @__PURE__ */ jsx48(
6047
+ "img",
6048
+ {
6049
+ className: cn("stn-layer0-bg__img", paired ? "dark" : void 0),
6050
+ src: srcDark,
6051
+ alt,
6052
+ decoding: "async",
6053
+ onError: handleImageError
6054
+ }
6055
+ ) : null
6056
+ ] }),
6057
+ overlay != null && overlay > 0 ? /* @__PURE__ */ jsx48("div", { className: "stn-layer0-bg__overlay", "aria-hidden": "true" }) : null,
6058
+ overlayDarkRadial ? /* @__PURE__ */ jsx48("div", { className: "stn-layer0-bg__overlay radial", "aria-hidden": "true" }) : null
6059
+ ]
6060
+ }
6061
+ );
6062
+ }
6063
+ const presetKey = variant ?? "dashboard";
6064
+ if (presetKey === "map-light") {
6065
+ overlay = overlay ?? STN_LAYER0_MAP_LIGHT_OVERLAY;
6066
+ } else if (presetKey === "showroom-b") {
6067
+ overlayDarkRadial = overlayDarkRadial ?? true;
6068
+ }
6069
+ return /* @__PURE__ */ jsxs37(
6089
6070
  "div",
6090
6071
  {
6091
- className: cn("stn-layer0-bg", "color", color, className),
6092
- "aria-hidden": "true",
6093
- style,
6094
- ...rest
6072
+ className: cn("stn-layer0-bg", presetKey, className),
6073
+ "aria-hidden": alt === "" ? true : void 0,
6074
+ style: { ...overlayStyle(overlay), ...style },
6075
+ ...rest,
6076
+ children: [
6077
+ overlay != null && overlay > 0 ? /* @__PURE__ */ jsx48("div", { className: "stn-layer0-bg__overlay", "aria-hidden": "true" }) : null,
6078
+ overlayDarkRadial ? /* @__PURE__ */ jsx48("div", { className: "stn-layer0-bg__overlay radial", "aria-hidden": "true" }) : null
6079
+ ]
6095
6080
  }
6096
6081
  );
6097
6082
  }
@@ -9581,7 +9566,6 @@ function StnLayerShell({
9581
9566
  "div",
9582
9567
  {
9583
9568
  id: wrapId,
9584
- "data-stn-layer-mode": "v2",
9585
9569
  "data-stn-gnb-side": gnbSide,
9586
9570
  className: cn("stn-wrap", isGnbRight && "stn-wrap--gnb-right", wrapClassName),
9587
9571
  children: [
@@ -10275,7 +10259,6 @@ function LoginPageScaffold({
10275
10259
  "div",
10276
10260
  {
10277
10261
  className: cn("stn-wrap stn-page--login", wrapClassName),
10278
- "data-stn-layer-mode": "v2",
10279
10262
  ...shellProps,
10280
10263
  children: [
10281
10264
  resolvedLayer0,
@@ -10504,8 +10487,7 @@ export {
10504
10487
  STN_HEADER_PAGE_TITLE_DEMO,
10505
10488
  STN_HEADER_USAGE,
10506
10489
  STN_HEADER_VARIANT_ROWS,
10507
- STN_LAYER0_BACKGROUND_DEMO_IMAGES2 as STN_LAYER0_BACKGROUND_DEMO_IMAGES,
10508
- STN_LAYER0_BACKGROUND_FIGMA,
10490
+ STN_LAYER0_BACKGROUND_DEMO_IMAGES,
10509
10491
  STN_LAYER0_BACKGROUND_INTRO,
10510
10492
  STN_LAYER0_BACKGROUND_USAGE,
10511
10493
  STN_LAYER0_BACKGROUND_VARIANT_ROWS,