efficient-shell 12.20.0 → 12.21.0

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.
Files changed (63) hide show
  1. package/README.md +9 -3
  2. package/dist/{Browser-Z7NIFAGY.js → Browser-ZR4RSWBV.js} +11 -11
  3. package/dist/{Files-KOUPCFRC.js → Files-54RPAKLE.js} +45 -45
  4. package/dist/{Notepad-Y37G5PTB.js → Notepad-JZ5UMA6T.js} +6 -6
  5. package/dist/{Preview-GB33WBQY.js → Preview-WHZ4O6UT.js} +25 -25
  6. package/dist/apps/index.js +1 -1
  7. package/dist/bin/media-host-check.js +1 -1
  8. package/dist/bin/ui-check.js +1 -1
  9. package/dist/{chunk-F4XGUOVL.js → chunk-4BKJ6A5H.js} +4 -4
  10. package/dist/chunk-63TCQAGE.js +6 -0
  11. package/dist/{chunk-BDGYRQQE.js → chunk-B4GCTNGM.js} +3 -3
  12. package/dist/{chunk-P54AD2EM.js → chunk-C6W5P6CY.js} +3 -3
  13. package/dist/chunk-G2Y5I5OR.js +2 -0
  14. package/dist/{chunk-EEGTFJUQ.js → chunk-JUXPKGO3.js} +6 -6
  15. package/dist/chunk-LBKKKZ4M.js +3 -0
  16. package/dist/{chunk-L2Y6FZTA.js → chunk-ME7XHU3P.js} +6 -6
  17. package/dist/{chunk-TKUJUQK4.js → chunk-MEN4B6NP.js} +11 -11
  18. package/dist/chunk-OM42AUMS.js +4 -0
  19. package/dist/chunk-TLNZ5KEO.js +1 -0
  20. package/dist/chunk-TOVEZAIM.js +5 -0
  21. package/dist/{chunk-WLX24TG6.js → chunk-TUPPFC74.js} +4 -4
  22. package/dist/chunk-WBGJ4XB7.js +4 -0
  23. package/dist/{chunk-QTXXHKAV.js → chunk-XACIU7IR.js} +1 -1
  24. package/dist/{chunk-MFEPLP7Y.js → chunk-XHZVUO6F.js} +5 -5
  25. package/dist/{chunk-NAN2IW2H.js → chunk-YW3UKSON.js} +2 -2
  26. package/dist/format/index.js +1 -1
  27. package/dist/forms/BorderInput.d.ts +7 -1
  28. package/dist/forms/BorderInput.js +1 -1
  29. package/dist/forms/BrandAssetEditor.js +1 -1
  30. package/dist/forms/ColorPicker.js +1 -1
  31. package/dist/forms/CornersInput.d.ts +10 -1
  32. package/dist/forms/CornersInput.js +1 -1
  33. package/dist/forms/InputNumber.d.ts +12 -0
  34. package/dist/forms/InputNumber.js +1 -1
  35. package/dist/forms/LinkPicker.js +1 -1
  36. package/dist/forms/MediaLibrary.js +1 -1
  37. package/dist/forms/MediaUploadField.js +1 -1
  38. package/dist/forms/PositionInput.d.ts +8 -1
  39. package/dist/forms/PositionInput.js +1 -1
  40. package/dist/forms/SidesInput.d.ts +3 -6
  41. package/dist/forms/SidesInput.js +1 -1
  42. package/dist/forms/Slider.d.ts +19 -1
  43. package/dist/forms/Slider.js +1 -1
  44. package/dist/forms/UnitMenu.d.ts +24 -1
  45. package/dist/forms/UnitMenu.js +2 -1
  46. package/dist/forms/WidthsBar.js +1 -1
  47. package/dist/icons/index.js +1 -1
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.js +72 -72
  50. package/dist/shell/LanguageSelect.js +1 -1
  51. package/dist/shell/SettingRow.js +1 -1
  52. package/dist/telemetry/index.js +1 -1
  53. package/dist/ui/index.d.ts +1 -1
  54. package/dist/ui/index.js +1 -1
  55. package/dist/version.js +1 -1
  56. package/package.json +1 -1
  57. package/dist/chunk-DTSOYFQE.js +0 -4
  58. package/dist/chunk-FBUFB536.js +0 -6
  59. package/dist/chunk-FE5DH5OM.js +0 -3
  60. package/dist/chunk-L4QGZ26E.js +0 -1
  61. package/dist/chunk-QI4235JY.js +0 -2
  62. package/dist/chunk-S7MNRAYS.js +0 -4
  63. package/dist/chunk-SET3R227.js +0 -4
@@ -1,4 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { UnitChoice } from './UnitMenu.js';
3
+ import 'react';
2
4
 
3
5
  type Side = 'top' | 'right' | 'bottom' | 'left';
4
6
  type SidesValue = Record<Side, number | null>;
@@ -36,12 +38,7 @@ interface SidesInputProps {
36
38
  * out, the unit is plain text. `words.unit` stays the unit in force, and the
37
39
  * host gives `min`, `max` and `step` for it.
38
40
  */
39
- units?: {
40
- options: readonly string[];
41
- onChange: (unit: string) => void;
42
- /** The control's name ("Unit"). */
43
- label: string;
44
- };
41
+ units?: UnitChoice;
45
42
  }
46
43
  type SidesGlyphs = 'padding' | 'crop';
47
44
  /** Where a host starts `each`: on when a pair reads as two different numbers. */
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SidesEachToggle,SidesInput as default,sidesStartEach}from"../chunk-DTSOYFQE.js";import"../chunk-SET3R227.js";import"../chunk-FE5DH5OM.js";import"../chunk-2NMW66P5.js";import"../chunk-SFULX4E3.js";import"../chunk-FTMCNC66.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-DWGYC7OD.js";import"../chunk-THLXDI76.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-XZXFUZIK.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-JSHMIMAJ.js";import"../chunk-C3QOHMR6.js";
2
+ export{SidesEachToggle,SidesInput as default,sidesStartEach}from"../chunk-OM42AUMS.js";import"../chunk-LBKKKZ4M.js";import"../chunk-TOVEZAIM.js";import"../chunk-2NMW66P5.js";import"../chunk-SFULX4E3.js";import"../chunk-FTMCNC66.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-DWGYC7OD.js";import"../chunk-THLXDI76.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-XZXFUZIK.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-JSHMIMAJ.js";import"../chunk-C3QOHMR6.js";
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
+ import { UnitChoice } from './UnitMenu.js';
3
4
 
4
5
  type SliderSize = 'sm' | 'md';
5
6
  interface SliderProps {
@@ -26,6 +27,23 @@ interface SliderProps {
26
27
  inputMax?: number;
27
28
  /** A unit drawn inside the box's right edge — "px", "%". */
28
29
  suffix?: ReactNode;
30
+ /**
31
+ * The units this row offers (`UnitChoice`): the box's unit (`suffix`, which
32
+ * must then be a string; a non-string `suffix` draws no menu) becomes the
33
+ * one unit menu. Left out, or one unit, it is plain text. The host gives
34
+ * `min`, `max` and `step` for the unit in force.
35
+ */
36
+ units?: UnitChoice;
37
+ /**
38
+ * The value is final: the range's own `change` (let go after a drag, or a
39
+ * key that moved it), or the box left or given Enter. Called only when the
40
+ * value differs from the one at the last commit or at the start of the
41
+ * gesture, so a Tab through or a key at the end of the range commits
42
+ * nothing. `null` is an emptied box on a slider that may be empty
43
+ * (`emptyLabel`, `placeholderValue`). A host that writes on release needs no
44
+ * listener of its own on the range.
45
+ */
46
+ onCommit?: (value: number | null) => void;
29
47
  /** Show the typed box. Default true. */
30
48
  showInput?: boolean;
31
49
  /**
@@ -90,6 +108,6 @@ declare function settleSliderValue(value: number, lo: number, hi: number, places
90
108
  declare function SliderGroup({ children }: {
91
109
  children: ReactNode;
92
110
  }): react_jsx_runtime.JSX.Element;
93
- declare function Slider({ value, onChange, min, max, step, shiftStep, precision, inputMin, inputMax, suffix, showInput, emptyLabel, placeholderValue, stepFrom, label, 'aria-labelledby': labelledBy, valueText, id, disabled, size, boxSize, className, auto: autoProp, }: SliderProps): react_jsx_runtime.JSX.Element;
111
+ declare function Slider({ value, onChange: onChangeProp, min, max, step, shiftStep, precision, inputMin, inputMax, suffix, units, onCommit, showInput, emptyLabel, placeholderValue, stepFrom, label, 'aria-labelledby': labelledBy, valueText, id, disabled, size, boxSize, className, auto: autoProp, }: SliderProps): react_jsx_runtime.JSX.Element;
94
112
 
95
113
  export { SliderGroup, type SliderProps, type SliderSize, Slider as default, settleSliderValue, sliderBoxChars, stepDecimals };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SliderGroup,Slider as default,settleSliderValue,sliderBoxChars,stepDecimals}from"../chunk-FBUFB536.js";import"../chunk-FE5DH5OM.js";import"../chunk-2NMW66P5.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-M5K4AX4E.js";import"../chunk-XZXFUZIK.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-JSHMIMAJ.js";import"../chunk-C3QOHMR6.js";
2
+ export{SliderGroup,Slider as default,settleSliderValue,sliderBoxChars,stepDecimals}from"../chunk-63TCQAGE.js";import"../chunk-LBKKKZ4M.js";import"../chunk-TOVEZAIM.js";import"../chunk-2NMW66P5.js";import"../chunk-SFULX4E3.js";import"../chunk-FTMCNC66.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-DWGYC7OD.js";import"../chunk-THLXDI76.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-XZXFUZIK.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-JSHMIMAJ.js";import"../chunk-C3QOHMR6.js";
@@ -1,5 +1,28 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
2
3
 
4
+ /**
5
+ * The units a length box offers: ONE shape for every length input (`Slider`,
6
+ * `SidesInput`, `CornersInput`, `BorderInput`, `PositionInput`). The unit in
7
+ * force is the input's own unit text (its `suffix`, `words.unit` or
8
+ * `radiusUnit`); this names the others it may change to.
9
+ */
10
+ interface UnitChoice {
11
+ /** The units this row offers, in the order the list shows them. */
12
+ options: readonly string[];
13
+ /** A different unit was chosen. */
14
+ onChange: (unit: string) => void;
15
+ /** The control's name ("Unit"). */
16
+ label: string;
17
+ }
18
+ /**
19
+ * What a length box draws for its unit — THE one place `units` turns into the
20
+ * box's unit. `InputNumber` calls it; every length input passes `units`
21
+ * there. `unit` is the box's `suffix` and stays it, so a typed "5%" still parses. With
22
+ * two or more units it is the `UnitMenu`; with one, or none, it is plain text
23
+ * (a list of one entry is no choice).
24
+ */
25
+ declare function unitBox(unit: string, units: UnitChoice | undefined, disabled?: boolean): ReactNode | undefined;
3
26
  interface UnitMenuProps {
4
27
  /** The unit in force, drawn as the trigger. */
5
28
  value: string;
@@ -13,4 +36,4 @@ interface UnitMenuProps {
13
36
  }
14
37
  declare function UnitMenu({ value, options, onChange, label, disabled }: UnitMenuProps): react_jsx_runtime.JSX.Element;
15
38
 
16
- export { type UnitMenuProps, UnitMenu as default };
39
+ export { type UnitChoice, type UnitMenuProps, UnitMenu as default, unitBox };
@@ -1 +1,2 @@
1
- export{UnitMenu as default}from"../chunk-SET3R227.js";import"../chunk-SFULX4E3.js";import"../chunk-FTMCNC66.js";import"../chunk-DWGYC7OD.js";import"../chunk-THLXDI76.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-XZXFUZIK.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
1
+ "use client";
2
+ export{UnitMenu as default,unitBox}from"../chunk-TOVEZAIM.js";import"../chunk-SFULX4E3.js";import"../chunk-FTMCNC66.js";import"../chunk-DWGYC7OD.js";import"../chunk-THLXDI76.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-XZXFUZIK.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{WidthsBar as default}from"../chunk-MFEPLP7Y.js";import"../chunk-PLGJOHEG.js";import"../chunk-FE5DH5OM.js";import"../chunk-2NMW66P5.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-M5K4AX4E.js";import"../chunk-XZXFUZIK.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-JSHMIMAJ.js";import"../chunk-C3QOHMR6.js";
2
+ export{WidthsBar as default}from"../chunk-XHZVUO6F.js";import"../chunk-PLGJOHEG.js";import"../chunk-LBKKKZ4M.js";import"../chunk-TOVEZAIM.js";import"../chunk-2NMW66P5.js";import"../chunk-SFULX4E3.js";import"../chunk-FTMCNC66.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-DWGYC7OD.js";import"../chunk-THLXDI76.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-XZXFUZIK.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-JSHMIMAJ.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-HNBMBC77.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{Icon}from"../chunk-XZXFUZIK.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";
2
+ export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-HNBMBC77.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{Icon}from"../chunk-XZXFUZIK.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";
package/dist/index.d.ts CHANGED
@@ -42,7 +42,7 @@ export { default as TileButton, TileButtonProps, TileSize } from './forms/TileBu
42
42
  export { default as Segmented, SegmentedOption, SegmentedProps, SegmentedSize } from './forms/Segmented.js';
43
43
  export { default as IconPicker, IconPickerOption, IconPickerProps } from './forms/IconPicker.js';
44
44
  export { Side, SidesEachToggle, SidesGlyphs, default as SidesInput, SidesInputProps, SidesValue, sidesStartEach } from './forms/SidesInput.js';
45
- export { default as UnitMenu, UnitMenuProps } from './forms/UnitMenu.js';
45
+ export { UnitChoice, default as UnitMenu, UnitMenuProps } from './forms/UnitMenu.js';
46
46
  export { PositionAxis, default as PositionInput, PositionInputProps, PositionValue } from './forms/PositionInput.js';
47
47
  export { default as BorderInput, BorderInputProps, BorderValue, borderSides, borderStartEach } from './forms/BorderInput.js';
48
48
  export { default as Switch, SwitchProps, SwitchSize } from './forms/Switch.js';