@kosdev-code/kos-ddk-components 3.0.6 → 3.0.7

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/index.js CHANGED
@@ -79,7 +79,7 @@ const ActionItem = styled("div", {
79
79
  user-select: none;
80
80
  white-space: nowrap;
81
81
  `;
82
- const Container$a = styled.div`
82
+ const Container$9 = styled.div`
83
83
  align-items: center;
84
84
  display: flex;
85
85
  gap: var(--ddk-component-action-item-button-container-gap);
@@ -171,7 +171,7 @@ const ActionItemButton = ({
171
171
  unitStyle = "external",
172
172
  unitValue,
173
173
  ...props
174
- }) => /* @__PURE__ */ jsxs(Container$a, { children: [
174
+ }) => /* @__PURE__ */ jsxs(Container$9, { children: [
175
175
  unitStyle === "inline" ? /* @__PURE__ */ jsxs(
176
176
  ActionItemButtonStyles,
177
177
  {
@@ -331,7 +331,7 @@ const CardButton = styled(Card, {
331
331
  height: var(--ddk-component-card-button-svg-size);
332
332
  }
333
333
  `;
334
- const Container$9 = styled.div`
334
+ const Container$8 = styled.div`
335
335
  display: flex;
336
336
  flex-direction: column;
337
337
  height: 100%;
@@ -573,6 +573,17 @@ const HeadingLarge = styled.div`
573
573
  letter-spacing: var(--ddk-component-typography-heading-large-letter-spacing);
574
574
  line-height: var(--ddk-component-typography-heading-large-line-height);
575
575
  `;
576
+ const HeadingExtraLarge = styled.div`
577
+ color: var(--ddk-component-typography-heading-x-large-color);
578
+ font-family: var(--ddk-component-typography-heading-x-large-font-family);
579
+ font-size: var(--ddk-component-typography-heading-x-large-font-size);
580
+ font-style: var(--ddk-component-typography-heading-x-large-font-style);
581
+ font-weight: var(--ddk-component-typography-heading-x-large-font-weight);
582
+ letter-spacing: var(
583
+ --ddk-component-typography-heading-x-large-letter-spacing
584
+ );
585
+ line-height: var(--ddk-component-typography-heading-x-large-line-height);
586
+ `;
576
587
  const HeadingMediumInformation = styled(HeadingMedium)`
577
588
  color: var(--ddk-component-typography-label-information-color);
578
589
  `;
@@ -609,7 +620,7 @@ const LabelInformationSmall = styled(LabelSmall)`
609
620
  const LabelInformationExtraSmall = styled(LabelExtraSmall)`
610
621
  color: var(--ddk-component-typography-label-information-color);
611
622
  `;
612
- const Container$8 = styled.div`
623
+ const Container$7 = styled.div`
613
624
  align-items: var(--ddk-component-input-container-align-items);
614
625
  display: flex;
615
626
  flex-direction: var(--ddk-component-input-container-flex-direction);
@@ -668,7 +679,7 @@ const StyledInput = styled.input`
668
679
  }
669
680
  `;
670
681
  const Input = forwardRef(
671
- ({ error, isError, ...props }, ref) => /* @__PURE__ */ jsxs(Container$8, { children: [
682
+ ({ error, isError, ...props }, ref) => /* @__PURE__ */ jsxs(Container$7, { children: [
672
683
  error && /* @__PURE__ */ jsx(ErrorText, { children: error }),
673
684
  /* @__PURE__ */ jsx(StyledInput, { ref, isError: isError || !!error, ...props })
674
685
  ] })
@@ -983,7 +994,7 @@ const ContentStyle = styled.div`
983
994
  `;
984
995
  const Content$1 = ({ align, children, className, size }) => {
985
996
  const { componentModeOverride } = useComponentConfigurationContext();
986
- return /* @__PURE__ */ jsx(Container$9, { size, children: /* @__PURE__ */ jsx(
997
+ return /* @__PURE__ */ jsx(Container$8, { size, children: /* @__PURE__ */ jsx(
987
998
  ContentStyle,
988
999
  {
989
1000
  align,
@@ -1054,7 +1065,7 @@ const HeaderContainer = styled.div`
1054
1065
  display: flex;
1055
1066
  flex-direction: var(--ddk-component-modal-header-flex-direction);
1056
1067
  gap: var(--ddk-component-modal-header-gap);
1057
- height: var(--ddk-component-modal-header-height);
1068
+ min-height: var(--ddk-component-modal-header-height);
1058
1069
  justify-content: space-between;
1059
1070
  padding: ${(props) => props.contain ? "var(--ddk-component-modal-header-padding-maximized)" : "var(--ddk-component-modal-header-padding)"};
1060
1071
  user-select: none;
@@ -4767,7 +4778,7 @@ const modalStyles = (mode, enableAnimation) => css`
4767
4778
  }
4768
4779
  }
4769
4780
  `;
4770
- const ModalContainer = styled(Container$9)`
4781
+ const ModalContainer$1 = styled(Container$8)`
4771
4782
  align-items: center;
4772
4783
  display: flex;
4773
4784
  flex-direction: column;
@@ -4808,7 +4819,7 @@ const Modal = ({
4808
4819
  style,
4809
4820
  onPointerDown: () => mode !== "maximized" && closeOnShroudClick && onClose?.(),
4810
4821
  children: /* @__PURE__ */ jsx(
4811
- ModalContainer,
4822
+ ModalContainer$1,
4812
4823
  {
4813
4824
  ...props,
4814
4825
  contain: mode !== "fullscreen",
@@ -4830,14 +4841,19 @@ const Modal = ({
4830
4841
  document.body
4831
4842
  );
4832
4843
  };
4833
- const Container$7 = styled.div`
4844
+ const ModalContainer = styled.div`
4834
4845
  display: flex;
4835
4846
  flex-direction: column;
4836
4847
  overflow-y: auto;
4837
4848
  overflow-x: hidden;
4838
- gap: 40px;
4849
+ gap: var(--ddk-component-base-modal-container-gap);
4839
4850
  height: 100%;
4840
4851
  `;
4852
+ const WorkflowModalBase = styled(Modal)`
4853
+ --ddk-component-modal-min-height: var(
4854
+ --ddk-component-workflow-modal-min-height
4855
+ );
4856
+ `;
4841
4857
  const WorkflowContent = styled(Content$1)`
4842
4858
  align-items: center;
4843
4859
  gap: 24px;
@@ -4892,13 +4908,13 @@ const WorkflowModal = ({
4892
4908
  }) => {
4893
4909
  const { componentModeOverride } = useComponentConfigurationContext();
4894
4910
  return /* @__PURE__ */ jsx(
4895
- Modal,
4911
+ WorkflowModalBase,
4896
4912
  {
4897
4913
  ...props,
4898
4914
  contain: componentModeOverride !== "compact",
4899
4915
  show,
4900
4916
  onClose,
4901
- children: /* @__PURE__ */ jsxs(Container$7, { children: [
4917
+ children: /* @__PURE__ */ jsxs(ModalContainer, { children: [
4902
4918
  (showCloseButton && !!onClose || title) && /* @__PURE__ */ jsx(
4903
4919
  Header,
4904
4920
  {
@@ -4910,10 +4926,10 @@ const WorkflowModal = ({
4910
4926
  title
4911
4927
  }
4912
4928
  ),
4913
- /* @__PURE__ */ jsx(Content$1, { children: /* @__PURE__ */ jsxs(WorkflowContent, { children: [
4929
+ /* @__PURE__ */ jsxs(WorkflowContent, { contain: componentModeOverride === "compact", children: [
4914
4930
  getIcon(status, iconStyle),
4915
4931
  information
4916
- ] }) }),
4932
+ ] }),
4917
4933
  /* @__PURE__ */ jsx(Footer, { children: footer })
4918
4934
  ] })
4919
4935
  }
@@ -5886,6 +5902,33 @@ const InfoCardContainer = (props) => {
5886
5902
  const { t } = useKosTranslation("common");
5887
5903
  return /* @__PURE__ */ jsx(InfoCard, { unavailableText: t("unavailable"), ...props });
5888
5904
  };
5905
+ const InfoMessageCard = styled(Card)`
5906
+ background-color: var(--ddk-semantic-color-system-orange-light);
5907
+ border-color: var(--ddk-semantic-color-system-orange);
5908
+ gap: var(--ddk-generic-padding-medium);
5909
+ padding: var(--ddk-generic-padding-large) var(--ddk-generic-padding-x-large);
5910
+ display: flex;
5911
+ align-items: flex-start;
5912
+ min-height: initial;
5913
+ `;
5914
+ const InfoMessageIcon = styled(ErrorIconWithBackground)`
5915
+ background-color: var(--ddk-semantic-color-system-orange);
5916
+ box-sizing: border-box;
5917
+ width: var(--ddk-component-info-message-icon-width);
5918
+ height: var(--ddk-component-info-message-icon-height);
5919
+ padding: var(--ddk-component-info-message-icon-padding);
5920
+ `;
5921
+ const Message = styled(BodyLarge)`
5922
+ color: var(--ddk-semantic-color-system-orange);
5923
+ flex: 1;
5924
+ `;
5925
+ const InfoMessage = ({ children, ...props }) => {
5926
+ const { componentModeOverride } = useComponentConfigurationContext();
5927
+ return /* @__PURE__ */ jsxs(InfoMessageCard, { ...props, children: [
5928
+ /* @__PURE__ */ jsx(InfoMessageIcon, {}),
5929
+ /* @__PURE__ */ jsx(Message, { children })
5930
+ ] });
5931
+ };
5889
5932
  var build$1 = { exports: {} };
5890
5933
  var build = build$1.exports;
5891
5934
  var hasRequiredBuild;
@@ -10729,7 +10772,7 @@ const Tabs = ({
10729
10772
  const TabContainerComponent = showBackground ? TabContainerWithBackground : TabContainer;
10730
10773
  const TabListComponent = contain ? TabListWithPadding : TabList;
10731
10774
  return /* @__PURE__ */ jsxs(Fragment, { children: [
10732
- /* @__PURE__ */ jsx(TabContainerComponent, { children: /* @__PURE__ */ jsx(Container$9, { children: /* @__PURE__ */ jsx(TabListComponent, { children: tabs.map((tab) => {
10775
+ /* @__PURE__ */ jsx(TabContainerComponent, { children: /* @__PURE__ */ jsx(Container$8, { children: /* @__PURE__ */ jsx(TabListComponent, { children: tabs.map((tab) => {
10733
10776
  const TabComponent = activeTabValue === tab.id ? ActiveTab : Tab;
10734
10777
  return /* @__PURE__ */ jsx(
10735
10778
  TabComponent,
@@ -10740,7 +10783,7 @@ const Tabs = ({
10740
10783
  tab.id
10741
10784
  );
10742
10785
  }) }) }) }),
10743
- /* @__PURE__ */ jsx(TabContent, { children: /* @__PURE__ */ jsx(Container$9, { children: activeTabValue && tabMap[activeTabValue] && /* @__PURE__ */ jsx("section", { children: tabMap[activeTabValue].content }) }) })
10786
+ /* @__PURE__ */ jsx(TabContent, { children: /* @__PURE__ */ jsx(Container$8, { children: activeTabValue && tabMap[activeTabValue] && /* @__PURE__ */ jsx("section", { children: tabMap[activeTabValue].content }) }) })
10744
10787
  ] });
10745
10788
  };
10746
10789
  const useNavigate = () => {
@@ -11050,7 +11093,7 @@ const ContainerStyles = styled.div`
11050
11093
  const TopNavigation = ({
11051
11094
  iconNavigationItems,
11052
11095
  navigationItems
11053
- }) => /* @__PURE__ */ jsx(TopNavigationStyles, { children: /* @__PURE__ */ jsx(Container$9, { children: /* @__PURE__ */ jsxs(ContainerStyles, { children: [
11096
+ }) => /* @__PURE__ */ jsx(TopNavigationStyles, { children: /* @__PURE__ */ jsx(Container$8, { children: /* @__PURE__ */ jsxs(ContainerStyles, { children: [
11054
11097
  /* @__PURE__ */ jsx(TopNavigationButtonList, { items: navigationItems }),
11055
11098
  /* @__PURE__ */ jsx(TopNavigationIconButtonList, { items: iconNavigationItems })
11056
11099
  ] }) }) });
@@ -11060,7 +11103,7 @@ const viewStyles = css`
11060
11103
  gap: var(--ddk-component-view-gap);
11061
11104
  padding: var(--ddk-component-view-padding);
11062
11105
  `;
11063
- const View = ({ children, contain = true, style }) => contain ? /* @__PURE__ */ jsx(Container$9, { children: /* @__PURE__ */ jsx("div", { css: [viewStyles, style], children }) }) : /* @__PURE__ */ jsx("div", { css: [viewStyles, style], children });
11106
+ const View = ({ children, contain = true, style }) => contain ? /* @__PURE__ */ jsx(Container$8, { children: /* @__PURE__ */ jsx("div", { css: [viewStyles, style], children }) }) : /* @__PURE__ */ jsx("div", { css: [viewStyles, style], children });
11064
11107
  const BackText = () => {
11065
11108
  const { t } = useKosTranslation("common");
11066
11109
  return t("close");
@@ -11113,7 +11156,7 @@ export {
11113
11156
  ComponentConfigurationProvider,
11114
11157
  ConfirmationModalContainer as ConfirmationModal,
11115
11158
  ConfirmationModalContainer,
11116
- Container$9 as Container,
11159
+ Container$8 as Container,
11117
11160
  Content$1 as Content,
11118
11161
  DashboardCardContainer,
11119
11162
  Description$1 as Description,
@@ -11133,6 +11176,7 @@ export {
11133
11176
  Grid,
11134
11177
  Header,
11135
11178
  Heading,
11179
+ HeadingExtraLarge,
11136
11180
  HeadingLarge,
11137
11181
  HeadingLargeInformation,
11138
11182
  HeadingMedium,
@@ -11143,6 +11187,7 @@ export {
11143
11187
  InfoCardContainer,
11144
11188
  InfoCardHead,
11145
11189
  InfoContainer,
11190
+ InfoMessage,
11146
11191
  InfoTable,
11147
11192
  InformationIconStyle,
11148
11193
  Input,
@@ -11165,6 +11210,7 @@ export {
11165
11210
  ListContainer,
11166
11211
  MenuButton,
11167
11212
  Modal,
11213
+ ModalContainer,
11168
11214
  MultiDial,
11169
11215
  MultiPicker,
11170
11216
  MultiPickerCard,