@undefine-ui/design-system 3.7.0 → 3.7.2

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.cts CHANGED
@@ -2393,6 +2393,12 @@ declare module '@mui/material/TextField' {
2393
2393
  xl: true;
2394
2394
  }
2395
2395
  }
2396
+ declare module '@mui/material/Autocomplete' {
2397
+ interface AutocompletePropsSizeOverrides {
2398
+ large: true;
2399
+ xl: true;
2400
+ }
2401
+ }
2396
2402
  declare module '@mui/material/ToggleButton' {
2397
2403
  interface ToggleButtonPropsColorOverrides {
2398
2404
  neutral: true;
package/dist/index.d.ts CHANGED
@@ -2393,6 +2393,12 @@ declare module '@mui/material/TextField' {
2393
2393
  xl: true;
2394
2394
  }
2395
2395
  }
2396
+ declare module '@mui/material/Autocomplete' {
2397
+ interface AutocompletePropsSizeOverrides {
2398
+ large: true;
2399
+ xl: true;
2400
+ }
2401
+ }
2396
2402
  declare module '@mui/material/ToggleButton' {
2397
2403
  interface ToggleButtonPropsColorOverrides {
2398
2404
  neutral: true;
package/dist/index.js CHANGED
@@ -5039,7 +5039,7 @@ var MuiSelect = {
5039
5039
  * DEFAULT PROPS
5040
5040
  *************************************** */
5041
5041
  defaultProps: {
5042
- IconComponent: () => /* @__PURE__ */ jsx56(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
5042
+ IconComponent: () => /* @__PURE__ */ jsx56(Icon, { icon: "NavArrowDown", sx: { position: "absolute", right: 10 } })
5043
5043
  }
5044
5044
  };
5045
5045
  var MuiNativeSelect = {
@@ -5047,7 +5047,7 @@ var MuiNativeSelect = {
5047
5047
  * DEFAULT PROPS
5048
5048
  *************************************** */
5049
5049
  defaultProps: {
5050
- IconComponent: () => /* @__PURE__ */ jsx56(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
5050
+ IconComponent: () => /* @__PURE__ */ jsx56(Icon, { icon: "NavArrowDown", sx: { position: "absolute", right: 10 } })
5051
5051
  }
5052
5052
  };
5053
5053
  var select = { MuiSelect, MuiNativeSelect };
@@ -6172,19 +6172,31 @@ var MuiTextField = {
6172
6172
  borderColor: theme.vars.palette.surface.disable
6173
6173
  }
6174
6174
  },
6175
- // InputAdornment styling
6175
+ // InputAdornment styling (target MuiInputAdornment only, not autocomplete endAdornment)
6176
6176
  [`&.${inputBaseClasses.adornedStart}, &.${inputBaseClasses.adornedEnd}`]: {
6177
6177
  color: theme.vars.palette.icon.black,
6178
- svg: {
6178
+ [`& .${inputAdornmentClasses.root} svg`]: {
6179
6179
  width: 20,
6180
6180
  height: 20,
6181
6181
  color: theme.vars.palette.icon.black
6182
6182
  },
6183
- [`& .${inputAdornmentClasses.sizeSmall}`]: {
6184
- svg: { width: 16, height: 16 }
6185
- },
6186
- [`& .MuiInputAdornment-sizeLarge`]: {
6187
- svg: { width: 24, height: 24 }
6183
+ [`& .${inputAdornmentClasses.root} span`]: {
6184
+ ...theme.typography.h8,
6185
+ color: theme.vars.palette.icon.black
6186
+ }
6187
+ },
6188
+ // Size small - 16x16 icons
6189
+ [`&.${inputBaseClasses.sizeSmall}`]: {
6190
+ [`& .${inputAdornmentClasses.root} svg`]: {
6191
+ width: 16,
6192
+ height: 16
6193
+ }
6194
+ },
6195
+ // Size large - 24x24 icons
6196
+ [`&.MuiInputBase-sizeLarge`]: {
6197
+ [`& .${inputAdornmentClasses.root} svg`]: {
6198
+ width: 24,
6199
+ height: 24
6188
6200
  }
6189
6201
  },
6190
6202
  [`&.${inputBaseClasses.adornedStart}`]: {
@@ -6255,6 +6267,24 @@ var MuiTextField = {
6255
6267
  [`&.MuiInputBase-sizeLarge`]: {
6256
6268
  minHeight: 48
6257
6269
  }
6270
+ },
6271
+ // Select icon sizing
6272
+ [`& .MuiSelect-root`]: {
6273
+ // Default medium size - 20x20 icons
6274
+ "& svg": {
6275
+ width: 20,
6276
+ height: 20
6277
+ },
6278
+ // Size small - 16x16 icons
6279
+ [`&.${inputBaseClasses.sizeSmall} svg`]: {
6280
+ width: 16,
6281
+ height: 16
6282
+ },
6283
+ // Size large - 24x24 icons
6284
+ [`&.MuiInputBase-sizeLarge svg`]: {
6285
+ width: 24,
6286
+ height: 24
6287
+ }
6258
6288
  }
6259
6289
  })
6260
6290
  }
@@ -11397,7 +11427,6 @@ var buttonGroup = { MuiButtonGroup };
11397
11427
 
11398
11428
  // src/theme/core/components/autocomplete.tsx
11399
11429
  import { chipClasses as chipClasses2 } from "@mui/material/Chip";
11400
- import { svgIconClasses as svgIconClasses3 } from "@mui/material/SvgIcon";
11401
11430
  import { inputBaseClasses as inputBaseClasses4 } from "@mui/material/InputBase";
11402
11431
  import { autocompleteClasses as autocompleteClasses3 } from "@mui/material/Autocomplete";
11403
11432
  import { jsx as jsx107 } from "react/jsx-runtime";
@@ -11413,7 +11442,7 @@ var MuiAutocomplete = {
11413
11442
  * STYLE
11414
11443
  *************************************** */
11415
11444
  styleOverrides: {
11416
- root: ({ theme }) => ({
11445
+ root: ({ theme, ownerState }) => ({
11417
11446
  // Tag count badge (e.g., "+2")
11418
11447
  [`& span.${autocompleteClasses3.tag}`]: {
11419
11448
  ...theme.typography.subtitle2,
@@ -11434,34 +11463,49 @@ var MuiAutocomplete = {
11434
11463
  fontWeight: theme.typography.fontWeightMedium,
11435
11464
  color: theme.vars.palette.neutral[950],
11436
11465
  backgroundColor: theme.vars.palette.neutral[100]
11466
+ },
11467
+ // Default medium size - 20x20 end adornment icons
11468
+ [`& .${autocompleteClasses3.endAdornment} svg`]: {
11469
+ width: 20,
11470
+ height: 20
11471
+ },
11472
+ // Size small - 16x16 end adornment icons
11473
+ ...ownerState.size === "small" && {
11474
+ [`& .${autocompleteClasses3.endAdornment} svg`]: {
11475
+ width: 16,
11476
+ height: 16
11477
+ }
11478
+ },
11479
+ // Size large - 24x24 end adornment icons
11480
+ ...ownerState.size === "large" && {
11481
+ [`& .${autocompleteClasses3.endAdornment} svg`]: {
11482
+ width: 24,
11483
+ height: 24
11484
+ }
11437
11485
  }
11438
11486
  }),
11439
11487
  // Input root - override fixed heights for multiple mode
11440
- inputRoot: ({ theme }) => ({
11488
+ inputRoot: ({ theme, ownerState }) => ({
11441
11489
  // Allow flexible height for multiple selections
11442
11490
  height: "auto",
11443
11491
  minHeight: 44,
11444
11492
  flexWrap: "wrap",
11445
11493
  alignItems: "center",
11446
- paddingTop: theme.spacing(0.75),
11447
- paddingBottom: theme.spacing(0.75),
11494
+ paddingTop: theme.spacing(0),
11495
+ paddingBottom: theme.spacing(0),
11448
11496
  paddingLeft: theme.spacing(1),
11449
11497
  paddingRight: `${theme.spacing(4)} !important`,
11450
11498
  // Space for clear/popup icons
11451
11499
  // Size small
11452
- [`&.${inputBaseClasses4.sizeSmall}`]: {
11453
- height: "auto",
11500
+ ...ownerState.size === "small" && {
11454
11501
  minHeight: 36,
11455
- paddingTop: theme.spacing(0.5),
11456
- paddingBottom: theme.spacing(0.5),
11457
11502
  [`& .${autocompleteClasses3.tag}.${chipClasses2.root}`]: {
11458
11503
  height: 22,
11459
11504
  margin: theme.spacing(0.25, 0.25, 0.25, 0)
11460
11505
  }
11461
11506
  },
11462
11507
  // Size large
11463
- [`&.MuiInputBase-sizeLarge`]: {
11464
- height: "auto",
11508
+ ...ownerState.size === "large" && {
11465
11509
  minHeight: 48,
11466
11510
  paddingTop: theme.spacing(1),
11467
11511
  paddingBottom: theme.spacing(1),
@@ -11479,7 +11523,7 @@ var MuiAutocomplete = {
11479
11523
  input: ({ theme }) => ({
11480
11524
  padding: `${theme.spacing(0.75, 0.75)} !important`,
11481
11525
  minWidth: 80,
11482
- [`&.${inputBaseClasses4.inputSizeSmall}`]: {
11526
+ [`&.${inputBaseClasses4.sizeSmall}`]: {
11483
11527
  padding: `${theme.spacing(0.5, 0.5)} !important`
11484
11528
  }
11485
11529
  }),
@@ -11495,8 +11539,7 @@ var MuiAutocomplete = {
11495
11539
  endAdornment: ({ theme }) => ({
11496
11540
  top: "50%",
11497
11541
  transform: "translateY(-50%)",
11498
- right: theme.spacing(1),
11499
- [`& .${svgIconClasses3.root}`]: { width: 24, height: 24 }
11542
+ right: theme.spacing(1)
11500
11543
  }),
11501
11544
  clearIndicator: ({ theme }) => ({
11502
11545
  marginRight: theme.spacing(0.5)