@undefine-ui/design-system 3.7.0 → 3.7.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.
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,27 @@ 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
- },
6183
- [`& .${inputAdornmentClasses.sizeSmall}`]: {
6184
- svg: { width: 16, height: 16 }
6185
- },
6186
- [`& .MuiInputAdornment-sizeLarge`]: {
6187
- svg: { width: 24, height: 24 }
6182
+ }
6183
+ },
6184
+ // Size small - 16x16 icons
6185
+ [`&.${inputBaseClasses.sizeSmall}`]: {
6186
+ [`& .${inputAdornmentClasses.root} svg`]: {
6187
+ width: 16,
6188
+ height: 16
6189
+ }
6190
+ },
6191
+ // Size large - 24x24 icons
6192
+ [`&.MuiInputBase-sizeLarge`]: {
6193
+ [`& .${inputAdornmentClasses.root} svg`]: {
6194
+ width: 24,
6195
+ height: 24
6188
6196
  }
6189
6197
  },
6190
6198
  [`&.${inputBaseClasses.adornedStart}`]: {
@@ -6255,6 +6263,24 @@ var MuiTextField = {
6255
6263
  [`&.MuiInputBase-sizeLarge`]: {
6256
6264
  minHeight: 48
6257
6265
  }
6266
+ },
6267
+ // Select icon sizing
6268
+ [`& .MuiSelect-root`]: {
6269
+ // Default medium size - 20x20 icons
6270
+ "& svg": {
6271
+ width: 20,
6272
+ height: 20
6273
+ },
6274
+ // Size small - 16x16 icons
6275
+ [`&.${inputBaseClasses.sizeSmall} svg`]: {
6276
+ width: 16,
6277
+ height: 16
6278
+ },
6279
+ // Size large - 24x24 icons
6280
+ [`&.MuiInputBase-sizeLarge svg`]: {
6281
+ width: 24,
6282
+ height: 24
6283
+ }
6258
6284
  }
6259
6285
  })
6260
6286
  }
@@ -11397,7 +11423,6 @@ var buttonGroup = { MuiButtonGroup };
11397
11423
 
11398
11424
  // src/theme/core/components/autocomplete.tsx
11399
11425
  import { chipClasses as chipClasses2 } from "@mui/material/Chip";
11400
- import { svgIconClasses as svgIconClasses3 } from "@mui/material/SvgIcon";
11401
11426
  import { inputBaseClasses as inputBaseClasses4 } from "@mui/material/InputBase";
11402
11427
  import { autocompleteClasses as autocompleteClasses3 } from "@mui/material/Autocomplete";
11403
11428
  import { jsx as jsx107 } from "react/jsx-runtime";
@@ -11413,7 +11438,7 @@ var MuiAutocomplete = {
11413
11438
  * STYLE
11414
11439
  *************************************** */
11415
11440
  styleOverrides: {
11416
- root: ({ theme }) => ({
11441
+ root: ({ theme, ownerState }) => ({
11417
11442
  // Tag count badge (e.g., "+2")
11418
11443
  [`& span.${autocompleteClasses3.tag}`]: {
11419
11444
  ...theme.typography.subtitle2,
@@ -11434,34 +11459,49 @@ var MuiAutocomplete = {
11434
11459
  fontWeight: theme.typography.fontWeightMedium,
11435
11460
  color: theme.vars.palette.neutral[950],
11436
11461
  backgroundColor: theme.vars.palette.neutral[100]
11462
+ },
11463
+ // Default medium size - 20x20 end adornment icons
11464
+ [`& .${autocompleteClasses3.endAdornment} svg`]: {
11465
+ width: 20,
11466
+ height: 20
11467
+ },
11468
+ // Size small - 16x16 end adornment icons
11469
+ ...ownerState.size === "small" && {
11470
+ [`& .${autocompleteClasses3.endAdornment} svg`]: {
11471
+ width: 16,
11472
+ height: 16
11473
+ }
11474
+ },
11475
+ // Size large - 24x24 end adornment icons
11476
+ ...ownerState.size === "large" && {
11477
+ [`& .${autocompleteClasses3.endAdornment} svg`]: {
11478
+ width: 24,
11479
+ height: 24
11480
+ }
11437
11481
  }
11438
11482
  }),
11439
11483
  // Input root - override fixed heights for multiple mode
11440
- inputRoot: ({ theme }) => ({
11484
+ inputRoot: ({ theme, ownerState }) => ({
11441
11485
  // Allow flexible height for multiple selections
11442
11486
  height: "auto",
11443
11487
  minHeight: 44,
11444
11488
  flexWrap: "wrap",
11445
11489
  alignItems: "center",
11446
- paddingTop: theme.spacing(0.75),
11447
- paddingBottom: theme.spacing(0.75),
11490
+ paddingTop: theme.spacing(0),
11491
+ paddingBottom: theme.spacing(0),
11448
11492
  paddingLeft: theme.spacing(1),
11449
11493
  paddingRight: `${theme.spacing(4)} !important`,
11450
11494
  // Space for clear/popup icons
11451
11495
  // Size small
11452
- [`&.${inputBaseClasses4.sizeSmall}`]: {
11453
- height: "auto",
11496
+ ...ownerState.size === "small" && {
11454
11497
  minHeight: 36,
11455
- paddingTop: theme.spacing(0.5),
11456
- paddingBottom: theme.spacing(0.5),
11457
11498
  [`& .${autocompleteClasses3.tag}.${chipClasses2.root}`]: {
11458
11499
  height: 22,
11459
11500
  margin: theme.spacing(0.25, 0.25, 0.25, 0)
11460
11501
  }
11461
11502
  },
11462
11503
  // Size large
11463
- [`&.MuiInputBase-sizeLarge`]: {
11464
- height: "auto",
11504
+ ...ownerState.size === "large" && {
11465
11505
  minHeight: 48,
11466
11506
  paddingTop: theme.spacing(1),
11467
11507
  paddingBottom: theme.spacing(1),
@@ -11479,7 +11519,7 @@ var MuiAutocomplete = {
11479
11519
  input: ({ theme }) => ({
11480
11520
  padding: `${theme.spacing(0.75, 0.75)} !important`,
11481
11521
  minWidth: 80,
11482
- [`&.${inputBaseClasses4.inputSizeSmall}`]: {
11522
+ [`&.${inputBaseClasses4.sizeSmall}`]: {
11483
11523
  padding: `${theme.spacing(0.5, 0.5)} !important`
11484
11524
  }
11485
11525
  }),
@@ -11495,8 +11535,7 @@ var MuiAutocomplete = {
11495
11535
  endAdornment: ({ theme }) => ({
11496
11536
  top: "50%",
11497
11537
  transform: "translateY(-50%)",
11498
- right: theme.spacing(1),
11499
- [`& .${svgIconClasses3.root}`]: { width: 24, height: 24 }
11538
+ right: theme.spacing(1)
11500
11539
  }),
11501
11540
  clearIndicator: ({ theme }) => ({
11502
11541
  marginRight: theme.spacing(0.5)