forlogic-core 2.1.2 → 2.1.3
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/README.md +1079 -0
- package/dist/bin/bootstrap.js +40 -0
- package/dist/bin/pull-docs.js +186 -0
- package/dist/components/ui/icon-picker.d.ts +2 -6
- package/dist/docs/KNOWLEDGE.md +109 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/docs/design-system/selectors.md +5 -8
- package/package.json +1 -1
|
@@ -304,16 +304,14 @@ const [color, setColor] = useState('#3b82f6')
|
|
|
304
304
|
|
|
305
305
|
### Icon Picker
|
|
306
306
|
|
|
307
|
-
Seletor de ícones Material Symbols Outlined com
|
|
307
|
+
Seletor de ícones Material Symbols Outlined com opção 'sem ícone'.
|
|
308
308
|
|
|
309
309
|
**Uso:**
|
|
310
310
|
```tsx
|
|
311
|
-
import { IconPicker
|
|
311
|
+
import { IconPicker } from "forlogic-core"
|
|
312
312
|
import { useState } from 'react'
|
|
313
313
|
|
|
314
|
-
const [icon, setIcon] = useState<
|
|
315
|
-
{ name: 'star_rate', filled: true }
|
|
316
|
-
)
|
|
314
|
+
const [icon, setIcon] = useState<string | null>('star_rate')
|
|
317
315
|
|
|
318
316
|
<IconPicker
|
|
319
317
|
value={icon}
|
|
@@ -325,12 +323,11 @@ const [icon, setIcon] = useState<IconPickerIcon | null>(
|
|
|
325
323
|
**Props:**
|
|
326
324
|
| Prop | Tipo | Padrão | Descrição |
|
|
327
325
|
|------|------|--------|-----------|
|
|
328
|
-
| `value` | `
|
|
329
|
-
| `onChange` | `(icon:
|
|
326
|
+
| `value` | `string | null` | null | Nome do ícone selecionado (Material Symbols Outlined). |
|
|
327
|
+
| `onChange` | `(icon: string | null) => void` | - | Callback quando o ícone é alterado. |
|
|
330
328
|
| `label` | `string` | - | Label opcional para o campo. |
|
|
331
329
|
|
|
332
330
|
**Acessibilidade:**
|
|
333
|
-
- Busca por nome do ícone
|
|
334
331
|
- Grid acessível por teclado
|
|
335
332
|
- Títulos descritivos em cada ícone
|
|
336
333
|
- Indicador visual de seleção
|