@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.cjs CHANGED
@@ -5052,7 +5052,7 @@ var MuiSelect = {
5052
5052
  * DEFAULT PROPS
5053
5053
  *************************************** */
5054
5054
  defaultProps: {
5055
- IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
5055
+ IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: "NavArrowDown", sx: { position: "absolute", right: 10 } })
5056
5056
  }
5057
5057
  };
5058
5058
  var MuiNativeSelect = {
@@ -5060,7 +5060,7 @@ var MuiNativeSelect = {
5060
5060
  * DEFAULT PROPS
5061
5061
  *************************************** */
5062
5062
  defaultProps: {
5063
- IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
5063
+ IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: "NavArrowDown", sx: { position: "absolute", right: 10 } })
5064
5064
  }
5065
5065
  };
5066
5066
  var select = { MuiSelect, MuiNativeSelect };
@@ -6185,19 +6185,27 @@ var MuiTextField = {
6185
6185
  borderColor: theme.vars.palette.surface.disable
6186
6186
  }
6187
6187
  },
6188
- // InputAdornment styling
6188
+ // InputAdornment styling (target MuiInputAdornment only, not autocomplete endAdornment)
6189
6189
  [`&.${import_InputBase.inputBaseClasses.adornedStart}, &.${import_InputBase.inputBaseClasses.adornedEnd}`]: {
6190
6190
  color: theme.vars.palette.icon.black,
6191
- svg: {
6191
+ [`& .${import_InputAdornment.inputAdornmentClasses.root} svg`]: {
6192
6192
  width: 20,
6193
6193
  height: 20,
6194
6194
  color: theme.vars.palette.icon.black
6195
- },
6196
- [`& .${import_InputAdornment.inputAdornmentClasses.sizeSmall}`]: {
6197
- svg: { width: 16, height: 16 }
6198
- },
6199
- [`& .MuiInputAdornment-sizeLarge`]: {
6200
- svg: { width: 24, height: 24 }
6195
+ }
6196
+ },
6197
+ // Size small - 16x16 icons
6198
+ [`&.${import_InputBase.inputBaseClasses.sizeSmall}`]: {
6199
+ [`& .${import_InputAdornment.inputAdornmentClasses.root} svg`]: {
6200
+ width: 16,
6201
+ height: 16
6202
+ }
6203
+ },
6204
+ // Size large - 24x24 icons
6205
+ [`&.MuiInputBase-sizeLarge`]: {
6206
+ [`& .${import_InputAdornment.inputAdornmentClasses.root} svg`]: {
6207
+ width: 24,
6208
+ height: 24
6201
6209
  }
6202
6210
  },
6203
6211
  [`&.${import_InputBase.inputBaseClasses.adornedStart}`]: {
@@ -6268,6 +6276,24 @@ var MuiTextField = {
6268
6276
  [`&.MuiInputBase-sizeLarge`]: {
6269
6277
  minHeight: 48
6270
6278
  }
6279
+ },
6280
+ // Select icon sizing
6281
+ [`& .MuiSelect-root`]: {
6282
+ // Default medium size - 20x20 icons
6283
+ "& svg": {
6284
+ width: 20,
6285
+ height: 20
6286
+ },
6287
+ // Size small - 16x16 icons
6288
+ [`&.${import_InputBase.inputBaseClasses.sizeSmall} svg`]: {
6289
+ width: 16,
6290
+ height: 16
6291
+ },
6292
+ // Size large - 24x24 icons
6293
+ [`&.MuiInputBase-sizeLarge svg`]: {
6294
+ width: 24,
6295
+ height: 24
6296
+ }
6271
6297
  }
6272
6298
  })
6273
6299
  }
@@ -11386,7 +11412,6 @@ var buttonGroup = { MuiButtonGroup };
11386
11412
 
11387
11413
  // src/theme/core/components/autocomplete.tsx
11388
11414
  var import_Chip2 = require("@mui/material/Chip");
11389
- var import_SvgIcon4 = require("@mui/material/SvgIcon");
11390
11415
  var import_InputBase5 = require("@mui/material/InputBase");
11391
11416
  var import_Autocomplete5 = require("@mui/material/Autocomplete");
11392
11417
  var import_jsx_runtime107 = require("react/jsx-runtime");
@@ -11402,7 +11427,7 @@ var MuiAutocomplete = {
11402
11427
  * STYLE
11403
11428
  *************************************** */
11404
11429
  styleOverrides: {
11405
- root: ({ theme }) => ({
11430
+ root: ({ theme, ownerState }) => ({
11406
11431
  // Tag count badge (e.g., "+2")
11407
11432
  [`& span.${import_Autocomplete5.autocompleteClasses.tag}`]: {
11408
11433
  ...theme.typography.subtitle2,
@@ -11423,34 +11448,49 @@ var MuiAutocomplete = {
11423
11448
  fontWeight: theme.typography.fontWeightMedium,
11424
11449
  color: theme.vars.palette.neutral[950],
11425
11450
  backgroundColor: theme.vars.palette.neutral[100]
11451
+ },
11452
+ // Default medium size - 20x20 end adornment icons
11453
+ [`& .${import_Autocomplete5.autocompleteClasses.endAdornment} svg`]: {
11454
+ width: 20,
11455
+ height: 20
11456
+ },
11457
+ // Size small - 16x16 end adornment icons
11458
+ ...ownerState.size === "small" && {
11459
+ [`& .${import_Autocomplete5.autocompleteClasses.endAdornment} svg`]: {
11460
+ width: 16,
11461
+ height: 16
11462
+ }
11463
+ },
11464
+ // Size large - 24x24 end adornment icons
11465
+ ...ownerState.size === "large" && {
11466
+ [`& .${import_Autocomplete5.autocompleteClasses.endAdornment} svg`]: {
11467
+ width: 24,
11468
+ height: 24
11469
+ }
11426
11470
  }
11427
11471
  }),
11428
11472
  // Input root - override fixed heights for multiple mode
11429
- inputRoot: ({ theme }) => ({
11473
+ inputRoot: ({ theme, ownerState }) => ({
11430
11474
  // Allow flexible height for multiple selections
11431
11475
  height: "auto",
11432
11476
  minHeight: 44,
11433
11477
  flexWrap: "wrap",
11434
11478
  alignItems: "center",
11435
- paddingTop: theme.spacing(0.75),
11436
- paddingBottom: theme.spacing(0.75),
11479
+ paddingTop: theme.spacing(0),
11480
+ paddingBottom: theme.spacing(0),
11437
11481
  paddingLeft: theme.spacing(1),
11438
11482
  paddingRight: `${theme.spacing(4)} !important`,
11439
11483
  // Space for clear/popup icons
11440
11484
  // Size small
11441
- [`&.${import_InputBase5.inputBaseClasses.sizeSmall}`]: {
11442
- height: "auto",
11485
+ ...ownerState.size === "small" && {
11443
11486
  minHeight: 36,
11444
- paddingTop: theme.spacing(0.5),
11445
- paddingBottom: theme.spacing(0.5),
11446
11487
  [`& .${import_Autocomplete5.autocompleteClasses.tag}.${import_Chip2.chipClasses.root}`]: {
11447
11488
  height: 22,
11448
11489
  margin: theme.spacing(0.25, 0.25, 0.25, 0)
11449
11490
  }
11450
11491
  },
11451
11492
  // Size large
11452
- [`&.MuiInputBase-sizeLarge`]: {
11453
- height: "auto",
11493
+ ...ownerState.size === "large" && {
11454
11494
  minHeight: 48,
11455
11495
  paddingTop: theme.spacing(1),
11456
11496
  paddingBottom: theme.spacing(1),
@@ -11468,7 +11508,7 @@ var MuiAutocomplete = {
11468
11508
  input: ({ theme }) => ({
11469
11509
  padding: `${theme.spacing(0.75, 0.75)} !important`,
11470
11510
  minWidth: 80,
11471
- [`&.${import_InputBase5.inputBaseClasses.inputSizeSmall}`]: {
11511
+ [`&.${import_InputBase5.inputBaseClasses.sizeSmall}`]: {
11472
11512
  padding: `${theme.spacing(0.5, 0.5)} !important`
11473
11513
  }
11474
11514
  }),
@@ -11484,8 +11524,7 @@ var MuiAutocomplete = {
11484
11524
  endAdornment: ({ theme }) => ({
11485
11525
  top: "50%",
11486
11526
  transform: "translateY(-50%)",
11487
- right: theme.spacing(1),
11488
- [`& .${import_SvgIcon4.svgIconClasses.root}`]: { width: 24, height: 24 }
11527
+ right: theme.spacing(1)
11489
11528
  }),
11490
11529
  clearIndicator: ({ theme }) => ({
11491
11530
  marginRight: theme.spacing(0.5)