@charcuterie/ui 4.26.2 → 4.27.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.
@@ -66,7 +66,7 @@ export const SegmentedOption = ({
66
66
  <button
67
67
  aria-checked={isChecked}
68
68
  className={toClassName(
69
- "cursor-pointer rounded-sm border border-transparent font-medium tabular-nums transition-colors duration-(--duration-fast) ease-standard",
69
+ "inline-flex cursor-pointer items-center justify-center rounded-sm border border-transparent font-medium tabular-nums transition-colors duration-(--duration-fast) ease-standard",
70
70
  // In a very narrow board, three full labels cannot share
71
71
  // one row. The minimum lets two fit, then the final option
72
72
  // takes a full second row instead of wrapping its label or
package/src/index.ts CHANGED
@@ -121,6 +121,12 @@ export type { ChartProps } from "./Chart/Chart.tsx"
121
121
  export { Chart } from "./Chart/Chart.tsx"
122
122
  export type { CheckboxProps } from "./Checkbox/Checkbox.tsx"
123
123
  export { Checkbox } from "./Checkbox/Checkbox.tsx"
124
+ export type {
125
+ ColorPickerProps,
126
+ ColorPreset,
127
+ } from "./ColorPicker/ColorPicker.tsx"
128
+ export { ColorPicker } from "./ColorPicker/ColorPicker.tsx"
129
+ export { parseHexColor } from "./ColorPicker/parseHexColor.ts"
124
130
  export type { ColorSchemeSwitcherProps } from "./ColorSchemeSwitcher/ColorSchemeSwitcher.tsx"
125
131
  export { ColorSchemeSwitcher } from "./ColorSchemeSwitcher/ColorSchemeSwitcher.tsx"
126
132
  export type {
@@ -627,7 +627,9 @@ test("the barrel is the only place components are re-exported", async () => {
627
627
  // and whereabouts each drew it by hand. `GroupedListRow.tsx` is its
628
628
  // member and stays out of this count by the `<Name>/<Name>.tsx` rule.
629
629
  // CommandPalette composes Modal and SearchInput into the launcher.
630
- expect(componentNames.length).toBe(79)
630
+ // ColorPicker composes Combobox and Swatch with a custom-color panel;
631
+ // `ColorPickerCustomPanel.tsx` is its member.
632
+ expect(componentNames.length).toBe(80)
631
633
 
632
634
  for (const name of componentNames) {
633
635
  expect(barrel).toContain(`export { ${name} }`)