261116_01_ENH: 색상 선택 컴포넌트(kri-color-palette) 추가 및 선택적 투명도 지원
This commit is contained in:
@@ -22,6 +22,13 @@ When implementing or changing frontend UI, use this order:
|
||||
- `kri-auto-complete` exposes `searchMatch?: 'fuzzy' | 'contains'` on `KriSingleSelect`, `KriMultiSelect`, and `MultiSelect`. It defaults to `fuzzy` (cmdk's default subsequence scoring), preserving existing behavior.
|
||||
- `contains` keeps only options whose label or value contains the search text as a case-insensitive substring, in the original option order. It applies only when `searchMode` is `filter`.
|
||||
|
||||
### KriColorPalette
|
||||
|
||||
- `kri-color-palette` provides `KriColorPalette` with `value: string | null` and `onChange(value: string | null)`. Values are uppercase `#RRGGBB`, or `#RRGGBBAA` when they carry transparency; `null` means no color.
|
||||
- `allowAlpha?: boolean` defaults to `false`. When disabled, an incoming `#RRGGBBAA` value is still displayed and preserved until the user picks a new color, which produces an opaque `#RRGGBB`. When enabled, a transparency slider and `#RRGGBBAA` input are available.
|
||||
- `colors`, `allowCustom`, `allowClear`, `disabled`, `placeholder`, `className`, and `aria-label` are optional. A disabled palette never opens.
|
||||
- Color helpers (`parseHexColor`, `formatHexColor`, `normalizeHexColor`, `isLightHexColor`) ship in `color-palette/color.ts`. Render stored colors as solid backgrounds without extra opacity so they match the palette.
|
||||
|
||||
### KriEditor SMS Preview
|
||||
|
||||
- `changeSmsType` reports `SMS | LMS | MMS`. Update consumer callbacks to handle `MMS`; this widens the previous callback contract.
|
||||
|
||||
Reference in New Issue
Block a user