@1doc/1ds-vue 2.14.0 → 2.15.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.
package/dist/index.d.ts CHANGED
@@ -456,11 +456,16 @@ export interface AttachmentCardProps {
456
456
  export interface AvatarProps {
457
457
  /**
458
458
  * URL da imagem. Se fornecida, o tipo será automaticamente 'Photo' visualmente.
459
- * O componente NÃO faz fallback automático quando a imagem falha ao
460
- * carregar: ele emite `onError` e o consumidor decide (ex.: limpar o
461
- * `src` para exibir as iniciais via `children`).
459
+ * Se a imagem falhar ao carregar, o avatar volta sozinho para as iniciais
460
+ * (`name` ou `children`) e emite `onError`. Um `src` novo tenta de novo.
462
461
  */
463
462
  src?: string;
463
+ /**
464
+ * Nome da pessoa: gera as iniciais (primeira letra do primeiro e do último
465
+ * nome, "Cris Lima" → "CL") e vira o nome acessível quando não há
466
+ * `ariaLabel`. Com `name`, as iniciais vêm dele, no lugar de `children`.
467
+ */
468
+ name?: string;
464
469
  /**
465
470
  * Texto alternativo para a imagem (acessibilidade).
466
471
  */
@@ -1669,6 +1674,10 @@ export interface DrawerProps {
1669
1674
  }
1670
1675
 
1671
1676
  export interface DropdownItem {
1677
+ /** Ação deste item, chamada ao escolhê-lo (antes do `onSelect` do Dropdown). */
1678
+ onSelect?: (item: DropdownItem) => void;
1679
+ /** Campos próprios do produto (`command`, `payload`...) voltam intactos no `onSelect`. */
1680
+ [campo: string]: any;
1672
1681
  key: string;
1673
1682
  label: string;
1674
1683
  icon?: IconProp;
@@ -1711,6 +1720,8 @@ export interface EmptyStateProps {
1711
1720
  actionLabel?: string;
1712
1721
  onAction?: () => void;
1713
1722
  size?: "sm" | "md" | "lg";
1723
+ /** Ocupa e centraliza no espaço disponível (coluna que rola, painel). @default false */
1724
+ fill?: boolean;
1714
1725
  className?: string;
1715
1726
  }
1716
1727
 
@@ -2090,6 +2101,8 @@ export interface ListProps {
2090
2101
  emptyIcon?: IconProp;
2091
2102
  /** Tamanho do estado vazio. @default 'sm' */
2092
2103
  emptySize?: "sm" | "md" | "lg";
2104
+ /** O estado vazio ocupa e centraliza no espaço disponível. @default false */
2105
+ emptyFill?: boolean;
2093
2106
  /** Rótulo do botão do estado vazio (exibido junto de `onEmptyAction`). */
2094
2107
  emptyActionLabel?: string;
2095
2108
  /** Chamado no botão do estado vazio. */
@@ -2122,6 +2135,12 @@ export interface ListItemProps {
2122
2135
  target?: string;
2123
2136
  /** Relação do link. Sobrescreve o padrão do `target`. */
2124
2137
  rel?: string;
2138
+ /** Superfície: `primary` é o item em destaque, azul-claro com hover próprio. Não é seleção. @default 'default' */
2139
+ variant?: "default" | "primary";
2140
+ /** Classes CSS do `li` (a linha visual), para animação de entrada. Sem efeito com `standalone`. */
2141
+ liClassName?: string;
2142
+ /** Estilo inline do `li` (variável CSS, transitionDelay). Sem efeito com `standalone`. */
2143
+ liStyle?: any;
2125
2144
  /** Item atual: fundo de seleção e `aria-current`. @default false */
2126
2145
  selected?: boolean;
2127
2146
  /** Bloqueia clique e foco. @default false */
@@ -3392,6 +3411,12 @@ export interface TextProps {
3392
3411
  /**
3393
3412
  * Cor do texto usando tokens semânticos.
3394
3413
  *
3414
+ * SEM `color`, o texto HERDA a cor do pai (é o que deixa um Text dentro de um
3415
+ * botão, alerta ou cartão colorido acompanhar a cor dele). Dentro do
3416
+ * `AppShell` o pai já tem a cor de texto do tema. Fora dele, num título solto
3417
+ * na página, passe `color="primary"` (`neutral-dark-pure`, o texto principal,
3418
+ * não o azul) para o tema escuro funcionar.
3419
+ *
3395
3420
  * `disabled` (`neutral-dark-up`, #A3A3A3, 2,5:1 sobre branco) é SÓ para
3396
3421
  * texto de controle desabilitado (rótulo, valor ou ajuda de um campo ou
3397
3422
  * botão inativo), que o WCAG 1.4.3 isenta de contraste. Em qualquer outro
@@ -3889,102 +3914,3 @@ export declare const Toast: ComponentWithProps<ToastProps>;
3889
3914
  export declare const ToastStack: ComponentWithProps<ToastStackProps>;
3890
3915
  export declare const Tooltip: ComponentWithProps<TooltipProps>;
3891
3916
  export declare const Tree: ComponentWithProps<TreeProps>;
3892
-
3893
- // Global component registration for Volar
3894
- declare module '@vue/runtime-core' {
3895
- export interface GlobalComponents {
3896
- AIContent: ComponentWithProps<AIContentProps>;
3897
- AILabel: ComponentWithProps<AILabelProps>;
3898
- Accordion: ComponentWithProps<AccordionProps>;
3899
- Alert: ComponentWithProps<AlertProps>;
3900
- AppHeader: ComponentWithProps<AppHeaderProps>;
3901
- AppHeaderAction: ComponentWithProps<AppHeaderActionProps>;
3902
- AppNavItem: ComponentWithProps<AppNavItemProps>;
3903
- AppShell: ComponentWithProps<AppShellProps>;
3904
- AppSidebar: ComponentWithProps<AppSidebarProps>;
3905
- AppSubheader: ComponentWithProps<AppSubheaderProps>;
3906
- AttachmentCard: ComponentWithProps<AttachmentCardProps>;
3907
- Avatar: ComponentWithProps<AvatarProps>;
3908
- AvatarGroup: ComponentWithProps<AvatarGroupProps>;
3909
- Badge: ComponentWithProps<BadgeProps>;
3910
- BottomNavigation: ComponentWithProps<BottomNavigationProps>;
3911
- BottomSheet: ComponentWithProps<BottomSheetProps>;
3912
- Box: ComponentWithProps<BoxProps>;
3913
- Breadcrumb: ComponentWithProps<BreadcrumbProps>;
3914
- Button: ComponentWithProps<ButtonProps>;
3915
- Calendar: ComponentWithProps<CalendarProps>;
3916
- Card: ComponentWithProps<CardProps>;
3917
- BarChart: ComponentWithProps<BarChartProps>;
3918
- DonutChart: ComponentWithProps<DonutChartProps>;
3919
- LineChart: ComponentWithProps<LineChartProps>;
3920
- Checkbox: ComponentWithProps<CheckboxProps>;
3921
- Chips: ComponentWithProps<ChipsProps>;
3922
- Coachmark: ComponentWithProps<CoachmarkProps>;
3923
- CodeBlock: ComponentWithProps<CodeBlockProps>;
3924
- ColorPicker: ComponentWithProps<ColorPickerProps>;
3925
- Combobox: ComponentWithProps<ComboboxProps>;
3926
- ConfirmAIAction: ComponentWithProps<ConfirmAIActionProps>;
3927
- ConfirmDialog: ComponentWithProps<ConfirmDialogProps>;
3928
- Container: ComponentWithProps<ContainerProps>;
3929
- Counter: ComponentWithProps<CounterProps>;
3930
- DataTable: ComponentWithProps<DataTableProps>;
3931
- DatePicker: ComponentWithProps<DatePickerProps>;
3932
- DescriptionList: ComponentWithProps<DescriptionListProps>;
3933
- Divider: ComponentWithProps<DividerProps>;
3934
- Drawer: ComponentWithProps<DrawerProps>;
3935
- Dropdown: ComponentWithProps<DropdownProps>;
3936
- EmptyState: ComponentWithProps<EmptyStateProps>;
3937
- FileInput: ComponentWithProps<FileInputProps>;
3938
- Grid: ComponentWithProps<GridProps>;
3939
- Icon: ComponentWithProps<IconProps>;
3940
- IconPicker: ComponentWithProps<IconPickerProps>;
3941
- Input: ComponentWithProps<InputProps>;
3942
- Kanban: ComponentWithProps<KanbanProps>;
3943
- KanbanCard: ComponentWithProps<KanbanCardProps>;
3944
- KanbanColumn: ComponentWithProps<KanbanColumnProps>;
3945
- Kbd: ComponentWithProps<KbdProps>;
3946
- Link: ComponentWithProps<LinkProps>;
3947
- List: ComponentWithProps<ListProps>;
3948
- ListItem: ComponentWithProps<ListItemProps>;
3949
- Logo: ComponentWithProps<LogoProps>;
3950
- Modal: ComponentWithProps<ModalProps>;
3951
- MultiSelect: ComponentWithProps<MultiSelectProps>;
3952
- OrgChart: ComponentWithProps<OrgChartProps>;
3953
- OtpInput: ComponentWithProps<OtpInputProps>;
3954
- PageHeader: ComponentWithProps<PageHeaderProps>;
3955
- Pagination: ComponentWithProps<PaginationProps>;
3956
- PhoneInput: ComponentWithProps<PhoneInputProps>;
3957
- Podium: ComponentWithProps<PodiumProps>;
3958
- Popover: ComponentWithProps<PopoverProps>;
3959
- Portal: ComponentWithProps<PortalProps>;
3960
- ProgressBar: ComponentWithProps<ProgressBarProps>;
3961
- Radio: ComponentWithProps<RadioProps>;
3962
- RadioGroup: ComponentWithProps<RadioGroupProps>;
3963
- RichTextEditor: ComponentWithProps<RichTextEditorProps>;
3964
- SegmentedControl: ComponentWithProps<SegmentedControlProps>;
3965
- Select: ComponentWithProps<SelectProps>;
3966
- SidePanel: ComponentWithProps<SidePanelProps>;
3967
- SidePanelItem: ComponentWithProps<SidePanelItemProps>;
3968
- SidePanelSearch: ComponentWithProps<SidePanelSearchProps>;
3969
- SidePanelSection: ComponentWithProps<SidePanelSectionProps>;
3970
- Skeleton: ComponentWithProps<SkeletonProps>;
3971
- Spinner: ComponentWithProps<SpinnerProps>;
3972
- Stack: ComponentWithProps<StackProps>;
3973
- StatCard: ComponentWithProps<StatCardProps>;
3974
- Stepper: ComponentWithProps<StepperProps>;
3975
- Switch: ComponentWithProps<SwitchProps>;
3976
- Tabs: ComponentWithProps<TabsProps>;
3977
- Tab: ComponentWithProps<TabProps>;
3978
- TabContent: ComponentWithProps<TabContentProps>;
3979
- TabsContent: ComponentWithProps<TabsContentProps>;
3980
- Tag: ComponentWithProps<TagProps>;
3981
- Text: ComponentWithProps<TextProps>;
3982
- Textarea: ComponentWithProps<TextareaProps>;
3983
- TimePicker: ComponentWithProps<TimePickerProps>;
3984
- Timeline: ComponentWithProps<TimelineProps>;
3985
- Toast: ComponentWithProps<ToastProps>;
3986
- ToastStack: ComponentWithProps<ToastStackProps>;
3987
- Tooltip: ComponentWithProps<TooltipProps>;
3988
- Tree: ComponentWithProps<TreeProps>;
3989
- }
3990
- }