@graphty/compact-mantine 0.9.18 → 0.9.20

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
@@ -1016,10 +1016,38 @@ export declare interface CompactMantineLabels {
1016
1016
  * @returns The button's accessible name
1017
1017
  */
1018
1018
  resetToDefault: (label: string) => string;
1019
- /** Accessible name of the swatch button that opens the color picker. */
1019
+ /**
1020
+ * Accessible name of the swatch button that opens the color picker, when
1021
+ * the control has no label. With a label, `pickColor` names it instead.
1022
+ */
1020
1023
  colorSwatch: string;
1021
- /** Accessible name of the text box holding the color's hex value. */
1024
+ /**
1025
+ * Accessible name of the text box holding the color's hex value, when the
1026
+ * control has no label. With a label, `colorValue` names it instead.
1027
+ */
1022
1028
  colorHexValue: string;
1029
+ /**
1030
+ * Accessible name of the swatch button that opens the color picker, saying
1031
+ * what pressing it does: "Pick Fill color".
1032
+ * @param label - The control's own label, as drawn above it
1033
+ * @returns The button's accessible name
1034
+ */
1035
+ pickColor: (label: string) => string;
1036
+ /**
1037
+ * Accessible name of the text box holding the color's hex value, naming
1038
+ * the property it sets: "Fill color". The box's own value, the hex, is
1039
+ * announced after it.
1040
+ * @param label - The control's own label, as drawn above it
1041
+ * @returns The text box's accessible name
1042
+ */
1043
+ colorValue: (label: string) => string;
1044
+ /**
1045
+ * Accessible name of the number box holding the color's opacity
1046
+ * percentage, when the control has a label: "Fill opacity".
1047
+ * @param label - The control's own label, as drawn above it
1048
+ * @returns The number box's accessible name
1049
+ */
1050
+ colorOpacity: (label: string) => string;
1023
1051
  /** Accessible name of the number box holding the color's opacity percentage. */
1024
1052
  opacity: string;
1025
1053
  /** Title of the color picker pop-out when the caller supplied no label. */
@@ -1046,6 +1074,19 @@ export declare interface CompactMantineLabels {
1046
1074
  * @returns The button's accessible name
1047
1075
  */
1048
1076
  removeColorStop: (position: string) => string;
1077
+ /**
1078
+ * Accessible name of the swatch button that selects one stop so the
1079
+ * picker edits its color.
1080
+ * @param position - The stop's position in the list, counting from one, already formatted for the active locale
1081
+ * @returns The button's accessible name
1082
+ */
1083
+ editColorStop: (position: string) => string;
1084
+ /**
1085
+ * Accessible name of the text box holding one stop's hex color.
1086
+ * @param position - The stop's position in the list, counting from one, already formatted for the active locale
1087
+ * @returns The text box's accessible name
1088
+ */
1089
+ colorStopColor: (position: string) => string;
1049
1090
  /** Heading above the gradient editor's direction slider. */
1050
1091
  direction: string;
1051
1092
  /** Accessible name of the gradient editor's direction slider. */
@@ -1764,9 +1805,10 @@ export declare interface ControlSectionProps extends DisclosureProps {
1764
1805
  /**
1765
1806
  * Whether the section is set up at all.
1766
1807
  *
1767
- * An empty section is drawn as one 32px row: the name in the secondary text
1768
- * color, no chevron, and a single "+" in the trailing slot. It shows no
1769
- * content and no empty-state sentence, and its children are not rendered.
1808
+ * An empty section is drawn as its 40px header alone, with the 1px rule
1809
+ * below it (41px in all): the name in the secondary text color, no chevron,
1810
+ * and a single "+" in the trailing slot. It shows no content and no
1811
+ * empty-state sentence, and its children are not rendered.
1770
1812
  *
1771
1813
  * The dimmed name is never the only thing that says so. The chevron is
1772
1814
  * gone, the "+" is there, and the group holds nothing, so the state still
@@ -6465,7 +6507,7 @@ export declare interface ToggleRowProps {
6465
6507
  * 1. **The verb is deleted from the label.** The checkbox already says
6466
6508
  * "enable", so `Enable glow` is written `Glow`.
6467
6509
  * 2. **A boolean with nothing underneath it is not this component.** Use
6468
- * `ToggleRow`, which packs a lone boolean onto a 24px row with a slot at its
6510
+ * `ToggleRow`, which packs a lone boolean onto a 32px row with a slot at its
6469
6511
  * end, and use two or more of those inside a `ToggleRowGroup`.
6470
6512
  *
6471
6513
  * The checkbox says out loud that it opens something: it is marked as expanded
package/dist/index.d.ts CHANGED
@@ -1016,10 +1016,38 @@ export declare interface CompactMantineLabels {
1016
1016
  * @returns The button's accessible name
1017
1017
  */
1018
1018
  resetToDefault: (label: string) => string;
1019
- /** Accessible name of the swatch button that opens the color picker. */
1019
+ /**
1020
+ * Accessible name of the swatch button that opens the color picker, when
1021
+ * the control has no label. With a label, `pickColor` names it instead.
1022
+ */
1020
1023
  colorSwatch: string;
1021
- /** Accessible name of the text box holding the color's hex value. */
1024
+ /**
1025
+ * Accessible name of the text box holding the color's hex value, when the
1026
+ * control has no label. With a label, `colorValue` names it instead.
1027
+ */
1022
1028
  colorHexValue: string;
1029
+ /**
1030
+ * Accessible name of the swatch button that opens the color picker, saying
1031
+ * what pressing it does: "Pick Fill color".
1032
+ * @param label - The control's own label, as drawn above it
1033
+ * @returns The button's accessible name
1034
+ */
1035
+ pickColor: (label: string) => string;
1036
+ /**
1037
+ * Accessible name of the text box holding the color's hex value, naming
1038
+ * the property it sets: "Fill color". The box's own value, the hex, is
1039
+ * announced after it.
1040
+ * @param label - The control's own label, as drawn above it
1041
+ * @returns The text box's accessible name
1042
+ */
1043
+ colorValue: (label: string) => string;
1044
+ /**
1045
+ * Accessible name of the number box holding the color's opacity
1046
+ * percentage, when the control has a label: "Fill opacity".
1047
+ * @param label - The control's own label, as drawn above it
1048
+ * @returns The number box's accessible name
1049
+ */
1050
+ colorOpacity: (label: string) => string;
1023
1051
  /** Accessible name of the number box holding the color's opacity percentage. */
1024
1052
  opacity: string;
1025
1053
  /** Title of the color picker pop-out when the caller supplied no label. */
@@ -1046,6 +1074,19 @@ export declare interface CompactMantineLabels {
1046
1074
  * @returns The button's accessible name
1047
1075
  */
1048
1076
  removeColorStop: (position: string) => string;
1077
+ /**
1078
+ * Accessible name of the swatch button that selects one stop so the
1079
+ * picker edits its color.
1080
+ * @param position - The stop's position in the list, counting from one, already formatted for the active locale
1081
+ * @returns The button's accessible name
1082
+ */
1083
+ editColorStop: (position: string) => string;
1084
+ /**
1085
+ * Accessible name of the text box holding one stop's hex color.
1086
+ * @param position - The stop's position in the list, counting from one, already formatted for the active locale
1087
+ * @returns The text box's accessible name
1088
+ */
1089
+ colorStopColor: (position: string) => string;
1049
1090
  /** Heading above the gradient editor's direction slider. */
1050
1091
  direction: string;
1051
1092
  /** Accessible name of the gradient editor's direction slider. */
@@ -1764,9 +1805,10 @@ export declare interface ControlSectionProps extends DisclosureProps {
1764
1805
  /**
1765
1806
  * Whether the section is set up at all.
1766
1807
  *
1767
- * An empty section is drawn as one 32px row: the name in the secondary text
1768
- * color, no chevron, and a single "+" in the trailing slot. It shows no
1769
- * content and no empty-state sentence, and its children are not rendered.
1808
+ * An empty section is drawn as its 40px header alone, with the 1px rule
1809
+ * below it (41px in all): the name in the secondary text color, no chevron,
1810
+ * and a single "+" in the trailing slot. It shows no content and no
1811
+ * empty-state sentence, and its children are not rendered.
1770
1812
  *
1771
1813
  * The dimmed name is never the only thing that says so. The chevron is
1772
1814
  * gone, the "+" is there, and the group holds nothing, so the state still
@@ -6465,7 +6507,7 @@ export declare interface ToggleRowProps {
6465
6507
  * 1. **The verb is deleted from the label.** The checkbox already says
6466
6508
  * "enable", so `Enable glow` is written `Glow`.
6467
6509
  * 2. **A boolean with nothing underneath it is not this component.** Use
6468
- * `ToggleRow`, which packs a lone boolean onto a 24px row with a slot at its
6510
+ * `ToggleRow`, which packs a lone boolean onto a 32px row with a slot at its
6469
6511
  * end, and use two or more of those inside a `ToggleRowGroup`.
6470
6512
  *
6471
6513
  * The checkbox says out loud that it opens something: it is marked as expanded