@giro-ds/react 7.0.0 → 8.0.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
@@ -3,6 +3,7 @@ import React__default, { ReactNode, ReactElement, ComponentPropsWithoutRef, CSSP
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { Matcher } from 'react-day-picker';
5
5
  import { RowData, ColumnDef } from '@tanstack/react-table';
6
+ export { ColumnDef as TableColumnDefinition, createColumnHelper as createTableColumnHelper } from '@tanstack/react-table';
6
7
  import { Toast as Toast$1 } from 'radix-ui';
7
8
 
8
9
  /** Tamanho do componente: 'sm' (pequeno) ou 'lg' (grande) */
package/dist/index.esm.js CHANGED
@@ -8,6 +8,7 @@ import { DayPicker } from 'react-day-picker';
8
8
  import { format, addDays, addMonths, addWeeks, addYears, differenceInCalendarDays, differenceInCalendarMonths, eachMonthOfInterval, eachYearOfInterval, endOfISOWeek, endOfMonth, endOfWeek, endOfYear, getISOWeek, getMonth, getYear, getWeek, isAfter, isBefore, isDate, isSameDay, isSameMonth, isSameYear, max, min, setMonth, setYear, startOfDay, startOfISOWeek, startOfMonth, startOfWeek, startOfYear } from 'date-fns';
9
9
  import { createPortal } from 'react-dom';
10
10
  import { useReactTable, getSortedRowModel, getPaginationRowModel, getFilteredRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
11
+ export { createColumnHelper as createTableColumnHelper } from '@tanstack/react-table';
11
12
  import Skeleton from 'react-loading-skeleton';
12
13
 
13
14
  var styles$s = {"AvatarRoot":"Avatar-module__AvatarRoot___7eNx7","AvatarRoot--sm":"Avatar-module__AvatarRoot--sm___LVHoe","AvatarRoot--lg":"Avatar-module__AvatarRoot--lg___QWux5","AvatarImage":"Avatar-module__AvatarImage___-H6iH","AvatarFallback":"Avatar-module__AvatarFallback___RDyNV"};
@@ -2536,7 +2537,7 @@ const Calendar = ({ selected, currentDate, defaultMonth, startMonth, endMonth, o
2536
2537
 
2537
2538
  var styles$n = {"container":"Callout-module__container___dggFW","withTitle":"Callout-module__withTitle___e-HEg","brand":"Callout-module__brand___YHDPQ","success":"Callout-module__success___RPS0Q","alert":"Callout-module__alert___LVlJM","content":"Callout-module__content___g44Qz","icon":"Callout-module__icon___4CBkz","subcontent":"Callout-module__subcontent___5hz-f","title":"Callout-module__title___IPSdE","text":"Callout-module__text___0Ys48","dismiss":"Callout-module__dismiss___ZaycS"};
2538
2539
 
2539
- const Callout = ({ variant = 'neutral', title, text, icon, onDismiss, dismiss, backgroundColor, textColor, className, id, ...rest }) => {
2540
+ const Callout = ({ variant = 'neutral', title, text, icon, onDismiss, dismiss, backgroundColor, textColor, className, id, style, ...rest }) => {
2540
2541
  if (process.env.NODE_ENV !== 'production' && (text === '' || (typeof text === 'string' && !text.trim()))) {
2541
2542
  console.warn('[Callout] A prop `text` não pode ser uma string vazia.');
2542
2543
  }
@@ -2546,6 +2547,7 @@ const Callout = ({ variant = 'neutral', title, text, icon, onDismiss, dismiss, b
2546
2547
  const isAlert = variant === 'alert';
2547
2548
  const containerClass = clsx(styles$n.container, styles$n[variant], { [styles$n.withTitle]: title }, className);
2548
2549
  const customStyle = {
2550
+ ...style,
2549
2551
  ...(backgroundColor && { '--callout-bg': `var(--${backgroundColor})` }),
2550
2552
  ...(textColor && { '--callout-text': `var(--${textColor})` }),
2551
2553
  };