cetec-design-system 1.2.0 → 1.2.1

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.
@@ -280,6 +280,27 @@ const keyframes = defineKeyframes({
280
280
  opacity: "0",
281
281
  transform: "translate(-50%, -50%) scale(0.95) translateY(-10px)"
282
282
  }
283
+ },
284
+ /** Top-aligned modal: horizontal center only (see modal recipe `position: top`) */
285
+ modalScaleInTop: {
286
+ "0%": {
287
+ opacity: "0",
288
+ transform: "translateX(-50%) scale(0.95) translateY(-10px)"
289
+ },
290
+ "100%": {
291
+ opacity: "1",
292
+ transform: "translateX(-50%) scale(1) translateY(0)"
293
+ }
294
+ },
295
+ modalScaleOutTop: {
296
+ "0%": {
297
+ opacity: "1",
298
+ transform: "translateX(-50%) scale(1) translateY(0)"
299
+ },
300
+ "100%": {
301
+ opacity: "0",
302
+ transform: "translateX(-50%) scale(0.95) translateY(-10px)"
303
+ }
283
304
  }
284
305
  });
285
306
  const fontVariants = {
@@ -5228,6 +5249,11 @@ const listItemRecipe = defineSlotRecipe({
5228
5249
  "itemDescription",
5229
5250
  "divider"
5230
5251
  ],
5252
+ staticCss: [
5253
+ {
5254
+ selected: ["*"]
5255
+ }
5256
+ ],
5231
5257
  base: {
5232
5258
  wrapper: {
5233
5259
  ...globalBaseStyles,
@@ -7040,14 +7066,6 @@ const textInputBase = {
7040
7066
  borderColor: "border.input"
7041
7067
  }
7042
7068
  },
7043
- _readOnly: {
7044
- opacity: 0.4,
7045
- cursor: "not-allowed",
7046
- _focusWithin: {
7047
- outlineColor: "transparent",
7048
- borderColor: "border.input"
7049
- }
7050
- },
7051
7069
  _groupDisabled: {
7052
7070
  opacity: 1
7053
7071
  // let FormField handle disabled state opacity
@@ -7870,25 +7888,17 @@ const modalBase = {
7870
7888
  container: {
7871
7889
  ...globalBaseStyles,
7872
7890
  position: "fixed",
7873
- top: "50%",
7874
7891
  left: "50%",
7875
7892
  display: "flex",
7876
7893
  flexDirection: "column",
7877
7894
  width: "full",
7895
+ maxW: "95vw",
7878
7896
  maxHeight: "95vh",
7879
7897
  bg: "surface.overlay",
7880
7898
  borderRadius: "12",
7881
7899
  boxShadow: "overlay",
7882
7900
  outline: "none",
7883
- zIndex: 1101,
7884
- // Initial state matches animation start
7885
- opacity: "0",
7886
- transform: "translate(-50%, -50%) scale(0.95) translateY(-10px)",
7887
- // Animation handled via data-state
7888
- animation: "modalScaleIn 150ms ease-out forwards",
7889
- '&[data-state="closing"]': {
7890
- animation: "modalScaleOut 150ms ease-out forwards"
7891
- }
7901
+ zIndex: 1101
7892
7902
  },
7893
7903
  header: {
7894
7904
  display: "flex",
@@ -7926,31 +7936,39 @@ const modalBase = {
7926
7936
  borderTop: "default"
7927
7937
  }
7928
7938
  };
7939
+ const modalContainerCenteredOverlay = {
7940
+ top: "50%",
7941
+ transform: "translate(-50%, -50%) scale(0.95) translateY(-10px)",
7942
+ animation: "modalScaleIn 150ms ease-out forwards",
7943
+ '&[data-state="closing"]': {
7944
+ animation: "modalScaleOut 150ms ease-out forwards"
7945
+ }
7946
+ };
7929
7947
  const modalVariants = {
7930
7948
  size: {
7931
7949
  sm: {
7932
7950
  container: {
7933
- maxWidth: "md"
7951
+ w: "md"
7934
7952
  }
7935
7953
  },
7936
7954
  md: {
7937
7955
  container: {
7938
- maxWidth: "xl"
7956
+ w: "xl"
7939
7957
  }
7940
7958
  },
7941
7959
  lg: {
7942
7960
  container: {
7943
- maxWidth: "3xl"
7961
+ w: "3xl"
7944
7962
  }
7945
7963
  },
7946
7964
  xl: {
7947
7965
  container: {
7948
- maxWidth: "5xl"
7966
+ w: "5xl"
7949
7967
  }
7950
7968
  },
7951
7969
  full: {
7952
7970
  container: {
7953
- maxWidth: "95vw"
7971
+ w: "95vw"
7954
7972
  }
7955
7973
  },
7956
7974
  mobile: {
@@ -7963,6 +7981,24 @@ const modalVariants = {
7963
7981
  }
7964
7982
  }
7965
7983
  },
7984
+ position: {
7985
+ centered: {
7986
+ container: modalContainerCenteredOverlay
7987
+ },
7988
+ top: {
7989
+ container: {
7990
+ top: "min(2.5vh, token(spacing.64))",
7991
+ transform: "translate(-50%, 0) scale(0.95) translateY(-10px)",
7992
+ animation: "modalScaleInTop 150ms ease-out forwards",
7993
+ '&[data-state="closing"]': {
7994
+ animation: "modalScaleOutTop 150ms ease-out forwards"
7995
+ },
7996
+ // Align with default centered overlay at `xsDown` (full-viewport sheet):
7997
+ // without this, `top` + fixed offset leaves a gap above the sheet.
7998
+ xsDown: modalContainerCenteredOverlay
7999
+ }
8000
+ }
8001
+ },
7966
8002
  variant: {
7967
8003
  default: {
7968
8004
  container: {
@@ -7998,9 +8034,19 @@ const modalRecipe = defineSlotRecipe({
7998
8034
  ],
7999
8035
  base: modalBase,
8000
8036
  variants: modalVariants,
8037
+ compoundVariants: [
8038
+ {
8039
+ position: "top",
8040
+ size: "mobile",
8041
+ css: {
8042
+ container: modalContainerCenteredOverlay
8043
+ }
8044
+ }
8045
+ ],
8001
8046
  defaultVariants: {
8002
8047
  variant: "default",
8003
- size: "md"
8048
+ size: "md",
8049
+ position: "centered"
8004
8050
  }
8005
8051
  });
8006
8052
  const datePickerBase = {
@@ -9723,4 +9769,4 @@ export {
9723
9769
  breakpoints as b,
9724
9770
  containerSizes as c
9725
9771
  };
9726
- //# sourceMappingURL=cetec-preset-kUkA_FyU.js.map
9772
+ //# sourceMappingURL=cetec-preset-D3bQHejk.js.map