@nar-bus/ui-kit 1.3.0 → 1.4.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/atoms/Progress.d.ts +23 -0
- package/dist/atoms/Progress.d.ts.map +1 -0
- package/dist/atoms/index.d.ts +1 -0
- package/dist/atoms/index.d.ts.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1932 -1685
- package/dist/molecules/Dropzone.d.ts +55 -0
- package/dist/molecules/Dropzone.d.ts.map +1 -0
- package/dist/molecules/KpiCard.d.ts +13 -1
- package/dist/molecules/KpiCard.d.ts.map +1 -1
- package/dist/molecules/index.d.ts +1 -0
- package/dist/molecules/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface ProgressSegment {
|
|
3
|
+
/** Portion in the same [0, max] scale as the bar. */
|
|
4
|
+
value: number;
|
|
5
|
+
/** Color override via class (e.g. "bg-[var(--color-status-success)]"). */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Inline backgroundColor (e.g. "var(--color-status-success)") — for raw token colors. */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Optional native hover tooltip (maps to the fill's `title`). NOT announced by screen readers — the bar's overall value is exposed via aria-valuenow / the root aria-label. */
|
|
10
|
+
label?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
13
|
+
/** Current value. Clamped to [0, max]. Default 0. Ignored when `segments` is set. */
|
|
14
|
+
value?: number;
|
|
15
|
+
/** Upper bound. Default 100. */
|
|
16
|
+
max?: number;
|
|
17
|
+
/** Class for the fill/indicator — override color for threshold/band/status bars. Ignored when `segments` is set. */
|
|
18
|
+
indicatorClassName?: string;
|
|
19
|
+
/** Stacked segments (composition bars: success/failure/pending). When non-empty, renders one width-% fill per segment instead of the single `value` fill. */
|
|
20
|
+
segments?: ProgressSegment[];
|
|
21
|
+
}
|
|
22
|
+
export declare const Progress: import('react').ForwardRefExoticComponent<ProgressProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
23
|
+
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../src/atoms/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGxD,MAAM,WAAW,eAAe;IAC9B,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gLAAgL;IAChL,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oHAAoH;IACpH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6JAA6J;IAC7J,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B;AAgBD,eAAO,MAAM,QAAQ,0GA6CpB,CAAC"}
|
package/dist/atoms/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { Icon, type IconProps } from './Icon';
|
|
|
11
11
|
export { Spinner, type SpinnerProps } from './Spinner';
|
|
12
12
|
export { BrandLoader, type BrandLoaderProps } from './BrandLoader';
|
|
13
13
|
export { Skeleton, type SkeletonProps } from './Skeleton';
|
|
14
|
+
export { Progress, type ProgressProps, type ProgressSegment } from './Progress';
|
|
14
15
|
export { Tooltip, type TooltipProps } from './Tooltip';
|
|
15
16
|
export { Separator, type SeparatorProps } from './Separator';
|
|
16
17
|
export { Textarea,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,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EACL,IAAI,EACJ,UAAU,EACV,SAAS,EACT,eAAe,EACf,WAAW,EACX,UAAU,EACV,UAAU,EACV,KAAK,SAAS,GACf,MAAM,QAAQ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export { i18n } from './i18n';
|
|
|
3
3
|
export { cn, formatDate, formatDateTime, formatDateTimeWithSeconds, formatNumber, formatDecimal, formatSlug, formatRelativeTime, formatPercentage, formatDuration } from './utils';
|
|
4
4
|
export { useDebounce, useCopyToClipboard, useMediaQuery, useIsMobile, useIsTablet, useIsDesktop, useDataTable, useBreadcrumb, useBreadcrumbStore } from './hooks';
|
|
5
5
|
export type { DataTableState, UseDataTableOptions } from './hooks';
|
|
6
|
-
export { Button, Input, Select, Checkbox, RadioGroup, Switch, Label, Badge, Avatar, Icon, Spinner, BrandLoader, Skeleton, Tooltip, Separator, Textarea, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, CardAction } from './atoms';
|
|
7
|
-
export type { ButtonProps, InputProps, SelectProps, SelectOption, CheckboxProps, RadioGroupProps, RadioOption, SwitchProps, LabelProps, BadgeProps, AvatarProps, IconProps, SpinnerProps, BrandLoaderProps, SkeletonProps, TooltipProps, SeparatorProps, TextareaProps, CardProps } from './atoms';
|
|
8
|
-
export { Alert, TextCell, BadgeCell, RelativeTimeCell, FormField, SearchInput, CopyableText, StatusBadge, statusColorToBadgeVariant, KpiCard, EmptyState, ConfirmDialog, DatePicker, DateRangePicker, Combobox, MetricTile, SectionCard } from './molecules';
|
|
9
|
-
export type { AlertProps, AlertTone, TextCellProps, BadgeCellProps, RelativeTimeCellProps, FormFieldProps, SearchInputProps, CopyableTextProps, StatusBadgeProps, StatusColor, StatusTone, KpiCardProps, EmptyStateProps, ConfirmDialogProps, DatePickerProps, DateRangePickerProps, DateRange, ComboboxProps, ComboboxOption, MetricTileProps, MetricTileTone, MetricTileStatus, MetricTileTrend, SectionCardProps } from './molecules';
|
|
6
|
+
export { Button, Input, Select, Checkbox, RadioGroup, Switch, Label, Badge, Avatar, Icon, Spinner, BrandLoader, Skeleton, Progress, Tooltip, Separator, Textarea, Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, CardAction } from './atoms';
|
|
7
|
+
export type { ButtonProps, InputProps, SelectProps, SelectOption, CheckboxProps, RadioGroupProps, RadioOption, SwitchProps, LabelProps, BadgeProps, AvatarProps, IconProps, SpinnerProps, BrandLoaderProps, SkeletonProps, ProgressProps, ProgressSegment, TooltipProps, SeparatorProps, TextareaProps, CardProps } from './atoms';
|
|
8
|
+
export { Alert, TextCell, BadgeCell, RelativeTimeCell, FormField, SearchInput, CopyableText, StatusBadge, statusColorToBadgeVariant, KpiCard, EmptyState, ConfirmDialog, DatePicker, DateRangePicker, Combobox, MetricTile, SectionCard, Dropzone } from './molecules';
|
|
9
|
+
export type { AlertProps, AlertTone, TextCellProps, BadgeCellProps, RelativeTimeCellProps, FormFieldProps, SearchInputProps, CopyableTextProps, StatusBadgeProps, StatusColor, StatusTone, KpiCardProps, EmptyStateProps, ConfirmDialogProps, DatePickerProps, DateRangePickerProps, DateRange, ComboboxProps, ComboboxOption, MetricTileProps, MetricTileTone, MetricTileStatus, MetricTileTrend, SectionCardProps, DropzoneProps, FileRejection } from './molecules';
|
|
10
10
|
export { Dialog, Sheet, Tabs, ToastProvider, toast, Popover, Breadcrumb, Pagination, DataTable, DataTableColumnHeader, FilterPanel, JsonEditor, PageHeader, Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption } from './organisms';
|
|
11
11
|
export type { DialogProps, SheetProps, TabsProps, TabItem, PopoverProps, BreadcrumbProps, BreadcrumbItem, PaginationProps, DataTableProps, DataTableColumnHeaderProps, BulkAction, PaginationInfo, RowAction, DataTableDensity, ToolbarVariant, FilterPanelProps, FilterField, FilterValue, FilterFieldType, JsonEditorProps, PageHeaderProps, TableProps, TableHeaderProps, TableBodyProps, TableFooterProps, TableRowProps, TableHeadProps, TableCellProps, TableCaptionProps } from './organisms';
|
|
12
12
|
export { ListPageLayout, DetailPageLayout, AuthLayout, ReportLayout } from './templates';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,yBAAyB,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGnL,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClK,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"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