@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.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,31 @@ 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
6195
  },
6196
- [`& .${import_InputAdornment.inputAdornmentClasses.sizeSmall}`]: {
6197
- svg: { width: 16, height: 16 }
6198
- },
6199
- [`& .MuiInputAdornment-sizeLarge`]: {
6200
- svg: { width: 24, height: 24 }
6196
+ [`& .${import_InputAdornment.inputAdornmentClasses.root} span`]: {
6197
+ ...theme.typography.h8,
6198
+ color: theme.vars.palette.icon.black
6199
+ }
6200
+ },
6201
+ // Size small - 16x16 icons
6202
+ [`&.${import_InputBase.inputBaseClasses.sizeSmall}`]: {
6203
+ [`& .${import_InputAdornment.inputAdornmentClasses.root} svg`]: {
6204
+ width: 16,
6205
+ height: 16
6206
+ }
6207
+ },
6208
+ // Size large - 24x24 icons
6209
+ [`&.MuiInputBase-sizeLarge`]: {
6210
+ [`& .${import_InputAdornment.inputAdornmentClasses.root} svg`]: {
6211
+ width: 24,
6212
+ height: 24
6201
6213
  }
6202
6214
  },
6203
6215
  [`&.${import_InputBase.inputBaseClasses.adornedStart}`]: {
@@ -6268,6 +6280,24 @@ var MuiTextField = {
6268
6280
  [`&.MuiInputBase-sizeLarge`]: {
6269
6281
  minHeight: 48
6270
6282
  }
6283
+ },
6284
+ // Select icon sizing
6285
+ [`& .MuiSelect-root`]: {
6286
+ // Default medium size - 20x20 icons
6287
+ "& svg": {
6288
+ width: 20,
6289
+ height: 20
6290
+ },
6291
+ // Size small - 16x16 icons
6292
+ [`&.${import_InputBase.inputBaseClasses.sizeSmall} svg`]: {
6293
+ width: 16,
6294
+ height: 16
6295
+ },
6296
+ // Size large - 24x24 icons
6297
+ [`&.MuiInputBase-sizeLarge svg`]: {
6298
+ width: 24,
6299
+ height: 24
6300
+ }
6271
6301
  }
6272
6302
  })
6273
6303
  }
@@ -11386,7 +11416,6 @@ var buttonGroup = { MuiButtonGroup };
11386
11416
 
11387
11417
  // src/theme/core/components/autocomplete.tsx
11388
11418
  var import_Chip2 = require("@mui/material/Chip");
11389
- var import_SvgIcon4 = require("@mui/material/SvgIcon");
11390
11419
  var import_InputBase5 = require("@mui/material/InputBase");
11391
11420
  var import_Autocomplete5 = require("@mui/material/Autocomplete");
11392
11421
  var import_jsx_runtime107 = require("react/jsx-runtime");
@@ -11402,7 +11431,7 @@ var MuiAutocomplete = {
11402
11431
  * STYLE
11403
11432
  *************************************** */
11404
11433
  styleOverrides: {
11405
- root: ({ theme }) => ({
11434
+ root: ({ theme, ownerState }) => ({
11406
11435
  // Tag count badge (e.g., "+2")
11407
11436
  [`& span.${import_Autocomplete5.autocompleteClasses.tag}`]: {
11408
11437
  ...theme.typography.subtitle2,
@@ -11423,34 +11452,49 @@ var MuiAutocomplete = {
11423
11452
  fontWeight: theme.typography.fontWeightMedium,
11424
11453
  color: theme.vars.palette.neutral[950],
11425
11454
  backgroundColor: theme.vars.palette.neutral[100]
11455
+ },
11456
+ // Default medium size - 20x20 end adornment icons
11457
+ [`& .${import_Autocomplete5.autocompleteClasses.endAdornment} svg`]: {
11458
+ width: 20,
11459
+ height: 20
11460
+ },
11461
+ // Size small - 16x16 end adornment icons
11462
+ ...ownerState.size === "small" && {
11463
+ [`& .${import_Autocomplete5.autocompleteClasses.endAdornment} svg`]: {
11464
+ width: 16,
11465
+ height: 16
11466
+ }
11467
+ },
11468
+ // Size large - 24x24 end adornment icons
11469
+ ...ownerState.size === "large" && {
11470
+ [`& .${import_Autocomplete5.autocompleteClasses.endAdornment} svg`]: {
11471
+ width: 24,
11472
+ height: 24
11473
+ }
11426
11474
  }
11427
11475
  }),
11428
11476
  // Input root - override fixed heights for multiple mode
11429
- inputRoot: ({ theme }) => ({
11477
+ inputRoot: ({ theme, ownerState }) => ({
11430
11478
  // Allow flexible height for multiple selections
11431
11479
  height: "auto",
11432
11480
  minHeight: 44,
11433
11481
  flexWrap: "wrap",
11434
11482
  alignItems: "center",
11435
- paddingTop: theme.spacing(0.75),
11436
- paddingBottom: theme.spacing(0.75),
11483
+ paddingTop: theme.spacing(0),
11484
+ paddingBottom: theme.spacing(0),
11437
11485
  paddingLeft: theme.spacing(1),
11438
11486
  paddingRight: `${theme.spacing(4)} !important`,
11439
11487
  // Space for clear/popup icons
11440
11488
  // Size small
11441
- [`&.${import_InputBase5.inputBaseClasses.sizeSmall}`]: {
11442
- height: "auto",
11489
+ ...ownerState.size === "small" && {
11443
11490
  minHeight: 36,
11444
- paddingTop: theme.spacing(0.5),
11445
- paddingBottom: theme.spacing(0.5),
11446
11491
  [`& .${import_Autocomplete5.autocompleteClasses.tag}.${import_Chip2.chipClasses.root}`]: {
11447
11492
  height: 22,
11448
11493
  margin: theme.spacing(0.25, 0.25, 0.25, 0)
11449
11494
  }
11450
11495
  },
11451
11496
  // Size large
11452
- [`&.MuiInputBase-sizeLarge`]: {
11453
- height: "auto",
11497
+ ...ownerState.size === "large" && {
11454
11498
  minHeight: 48,
11455
11499
  paddingTop: theme.spacing(1),
11456
11500
  paddingBottom: theme.spacing(1),
@@ -11468,7 +11512,7 @@ var MuiAutocomplete = {
11468
11512
  input: ({ theme }) => ({
11469
11513
  padding: `${theme.spacing(0.75, 0.75)} !important`,
11470
11514
  minWidth: 80,
11471
- [`&.${import_InputBase5.inputBaseClasses.inputSizeSmall}`]: {
11515
+ [`&.${import_InputBase5.inputBaseClasses.sizeSmall}`]: {
11472
11516
  padding: `${theme.spacing(0.5, 0.5)} !important`
11473
11517
  }
11474
11518
  }),
@@ -11484,8 +11528,7 @@ var MuiAutocomplete = {
11484
11528
  endAdornment: ({ theme }) => ({
11485
11529
  top: "50%",
11486
11530
  transform: "translateY(-50%)",
11487
- right: theme.spacing(1),
11488
- [`& .${import_SvgIcon4.svgIconClasses.root}`]: { width: 24, height: 24 }
11531
+ right: theme.spacing(1)
11489
11532
  }),
11490
11533
  clearIndicator: ({ theme }) => ({
11491
11534
  marginRight: theme.spacing(0.5)