@segmentify/ui 0.0.39 → 0.0.40

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.
Files changed (29) hide show
  1. package/dist/components/atoms/button.d.ts +2 -2
  2. package/dist/components/atoms/content-wrapper.d.ts +1 -1
  3. package/dist/components/molecules/combobox-field.d.ts +24 -19
  4. package/dist/components/molecules/confirmation-dialog.d.ts +24 -0
  5. package/dist/components/molecules/date-range-picker.d.ts +8 -10
  6. package/dist/components/organisms/data-table/column-visibility.d.ts +2 -1
  7. package/dist/components/organisms/data-table/context.d.ts +2 -2
  8. package/dist/components/organisms/data-table/index.d.ts +1 -2
  9. package/dist/components/organisms/data-table/pagination.d.ts +1 -5
  10. package/dist/components/organisms/data-table/root.d.ts +3 -3
  11. package/dist/components/organisms/form-combobox.d.ts +14 -9
  12. package/dist/components/organisms/form-file-upload.d.ts +1 -3
  13. package/dist/hooks/use-data-table.d.ts +8 -9
  14. package/dist/index.d.ts +2 -14
  15. package/dist/lib/design-variants.d.ts +1 -1
  16. package/dist/lib/utils.d.ts +1 -27
  17. package/dist/segmentify-ui.cjs +72 -98
  18. package/dist/segmentify-ui.js +24794 -30238
  19. package/dist/ui.css +16 -34
  20. package/package.json +1 -1
  21. package/dist/components/atoms/alert-dialog.d.ts +0 -18
  22. package/dist/components/atoms/combobox.d.ts +0 -24
  23. package/dist/components/atoms/input-group.d.ts +0 -16
  24. package/dist/components/organisms/date-preset/context.d.ts +0 -8
  25. package/dist/components/organisms/date-preset/date-preset.d.ts +0 -11
  26. package/dist/components/organisms/date-preset/index.d.ts +0 -8
  27. package/dist/components/organisms/date-preset/presets.d.ts +0 -21
  28. package/dist/components/organisms/date-preset/root.d.ts +0 -9
  29. package/dist/components/organisms/timeline.d.ts +0 -25
package/dist/ui.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.2.0 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
3
  :root, :host {
4
4
  --ui-font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
@@ -93,7 +93,6 @@
93
93
  --ui-aspect-video: 16 / 9;
94
94
  --ui-default-transition-duration: 150ms;
95
95
  --ui-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
96
- --ui-default-font-family: var(--ui-font-sans);
97
96
  --ui-animate-accordion-down: accordion-down 0.2s ease-out;
98
97
  --ui-animate-accordion-up: accordion-up 0.6s ease-out;
99
98
  --ui-color-background: hsl(var(--ui-background));
@@ -353,9 +352,6 @@
353
352
  .ui\:mb-2 {
354
353
  margin-bottom: calc(var(--ui-spacing) * 2);
355
354
  }
356
- .ui\:mb-2\.5 {
357
- margin-bottom: calc(var(--ui-spacing) * 2.5);
358
- }
359
355
  .ui\:mb-4 {
360
356
  margin-bottom: calc(var(--ui-spacing) * 4);
361
357
  }
@@ -365,9 +361,6 @@
365
361
  .ui\:mb-8 {
366
362
  margin-bottom: calc(var(--ui-spacing) * 8);
367
363
  }
368
- .ui\:mb-16 {
369
- margin-bottom: calc(var(--ui-spacing) * 16);
370
- }
371
364
  .ui\:-ml-1 {
372
365
  margin-left: calc(var(--ui-spacing) * -1);
373
366
  }
@@ -535,6 +528,9 @@
535
528
  .ui\:h-\[calc\(--spacing\(5\.5\)\)\] {
536
529
  height: calc(calc(var(--ui-spacing) * 5.5));
537
530
  }
531
+ .ui\:h-\[calc\(100\%-1px\)\] {
532
+ height: calc(100% - 1px);
533
+ }
538
534
  .ui\:h-auto {
539
535
  height: auto;
540
536
  }
@@ -993,6 +989,13 @@
993
989
  margin-block-end: calc(calc(var(--ui-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
994
990
  }
995
991
  }
992
+ .ui\:space-y-2\.5 {
993
+ :where(& > :not(:last-child)) {
994
+ --tw-space-y-reverse: 0;
995
+ margin-block-start: calc(calc(var(--ui-spacing) * 2.5) * var(--tw-space-y-reverse));
996
+ margin-block-end: calc(calc(var(--ui-spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)));
997
+ }
998
+ }
996
999
  .ui\:space-y-3 {
997
1000
  :where(& > :not(:last-child)) {
998
1001
  --tw-space-y-reverse: 0;
@@ -1111,14 +1114,6 @@
1111
1114
  border-top-right-radius: var(--ui-radius-md);
1112
1115
  border-bottom-right-radius: var(--ui-radius-md);
1113
1116
  }
1114
- .ui\:rounded-b-lg {
1115
- border-bottom-right-radius: var(--ui-radius-lg);
1116
- border-bottom-left-radius: var(--ui-radius-lg);
1117
- }
1118
- .ui\:rounded-b-none {
1119
- border-bottom-right-radius: 0;
1120
- border-bottom-left-radius: 0;
1121
- }
1122
1117
  .ui\:border {
1123
1118
  border-style: var(--tw-border-style);
1124
1119
  border-width: 1px;
@@ -1143,10 +1138,6 @@
1143
1138
  border-top-style: var(--tw-border-style);
1144
1139
  border-top-width: 1px;
1145
1140
  }
1146
- .ui\:border-t-0 {
1147
- border-top-style: var(--tw-border-style);
1148
- border-top-width: 0px;
1149
- }
1150
1141
  .ui\:border-r {
1151
1142
  border-right-style: var(--tw-border-style);
1152
1143
  border-right-width: 1px;
@@ -1506,6 +1497,9 @@
1506
1497
  .ui\:p-8 {
1507
1498
  padding: calc(var(--ui-spacing) * 8);
1508
1499
  }
1500
+ .ui\:p-\[3px\] {
1501
+ padding: 3px;
1502
+ }
1509
1503
  .ui\:p-px {
1510
1504
  padding: 1px;
1511
1505
  }
@@ -1560,9 +1554,6 @@
1560
1554
  .ui\:py-6 {
1561
1555
  padding-block: calc(var(--ui-spacing) * 6);
1562
1556
  }
1563
- .ui\:py-7 {
1564
- padding-block: calc(var(--ui-spacing) * 7);
1565
- }
1566
1557
  .ui\:py-8 {
1567
1558
  padding-block: calc(var(--ui-spacing) * 8);
1568
1559
  }
@@ -3623,14 +3614,9 @@
3623
3614
  }
3624
3615
  }
3625
3616
  }
3626
- .ui\:data-\[state\=active\]\:bg-segmentify-200 {
3617
+ .ui\:data-\[state\=active\]\:bg-background {
3627
3618
  &[data-state="active"] {
3628
- background-color: var(--ui-color-segmentify-200);
3629
- }
3630
- }
3631
- .ui\:data-\[state\=active\]\:text-primary {
3632
- &[data-state="active"] {
3633
- color: var(--ui-color-primary);
3619
+ background-color: var(--ui-color-background);
3634
3620
  }
3635
3621
  }
3636
3622
  .ui\:data-\[state\=active\]\:shadow-sm {
@@ -4888,10 +4874,6 @@
4888
4874
  .ui-lib-root {
4889
4875
  background-color: var(--ui-color-background);
4890
4876
  color: var(--ui-color-foreground);
4891
- line-height: 1.5;
4892
- -webkit-text-size-adjust: 100%;
4893
- tab-size: 4;
4894
- font-family: var(--ui-default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
4895
4877
  }
4896
4878
  }
4897
4879
  @property --tw-animation-delay {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentify/ui",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "A collection of reusable React UI components built with Tailwind CSS and Radix UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
3
- import { Button } from '../../components/atoms/button';
4
- declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
- declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
- declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
- declare function AlertDialogContent({ className, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
9
- size?: 'default' | 'sm';
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
12
- declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
13
- declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
14
- declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
15
- declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
16
- declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'>): import("react/jsx-runtime").JSX.Element;
17
- declare function AlertDialogCancel({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'>): import("react/jsx-runtime").JSX.Element;
18
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
- import { Combobox as ComboboxPrimitive } from '@base-ui/react';
3
- declare const Combobox: typeof ComboboxPrimitive.Root;
4
- declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
5
- declare function ComboboxTrigger({ className, children, ...props }: ComboboxPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
6
- declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: ComboboxPrimitive.Input.Props & {
7
- showTrigger?: boolean;
8
- showClear?: boolean;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, 'side' | 'align' | 'sideOffset' | 'alignOffset' | 'anchor'>): import("react/jsx-runtime").JSX.Element;
11
- declare function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props): import("react/jsx-runtime").JSX.Element;
12
- declare function ComboboxItem({ className, children, ...props }: ComboboxPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
13
- declare function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
14
- declare function ComboboxLabel({ className, ...props }: ComboboxPrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
15
- declare function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props): import("react/jsx-runtime").JSX.Element;
16
- declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): import("react/jsx-runtime").JSX.Element;
17
- declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
18
- declare function ComboboxChips({ className, ...props }: React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitive.Chips.Props): import("react/jsx-runtime").JSX.Element;
19
- declare function ComboboxChip({ className, children, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
20
- showRemove?: boolean;
21
- }): import("react/jsx-runtime").JSX.Element;
22
- declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): import("react/jsx-runtime").JSX.Element;
23
- declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
24
- export { Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxGroup, ComboboxLabel, ComboboxCollection, ComboboxEmpty, ComboboxSeparator, ComboboxChips, ComboboxChip, ComboboxChipsInput, ComboboxTrigger, ComboboxValue, useComboboxAnchor, };
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { type VariantProps } from 'class-variance-authority';
3
- import { Button } from '../../components/atoms/button';
4
- declare function InputGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
5
- declare const inputGroupAddonVariants: (props?: ({
6
- align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
7
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
9
- declare const inputGroupButtonVariants: (props?: ({
10
- size?: "xs" | "sm" | "icon-sm" | "icon-xs" | null | undefined;
11
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
- declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
13
- declare function InputGroupText({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
14
- declare function InputGroupInput({ className, ...props }: React.ComponentProps<'input'>): import("react/jsx-runtime").JSX.Element;
15
- declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<'textarea'>): import("react/jsx-runtime").JSX.Element;
16
- export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea };
@@ -1,8 +0,0 @@
1
- import { type DateRange } from './presets';
2
- export interface DatePresetContextValue {
3
- range: DateRange;
4
- preset: string | null;
5
- setRange: (range: DateRange, preset?: string | null) => void;
6
- }
7
- export declare const DatePresetContext: import("react").Context<DatePresetContextValue | null>;
8
- export declare function useDatePreset(): DatePresetContextValue;
@@ -1,11 +0,0 @@
1
- import { type Locale } from 'date-fns';
2
- import { type DatePresetItem } from './presets';
3
- export interface DatePresetProps {
4
- presets?: Record<string, DatePresetItem>;
5
- className?: string;
6
- confirmLabel?: string;
7
- placeholder?: string;
8
- disabledCondition?: boolean | ((date: Date) => boolean);
9
- dateLocale?: Locale;
10
- }
11
- export declare function DatePreset({ presets, className, confirmLabel, placeholder, disabledCondition, dateLocale, }: DatePresetProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- export type { DateRange, DatePresetItem } from './presets';
2
- export type { DatePresetContextValue } from './context';
3
- export type { DatePresetProps } from './date-preset';
4
- export type { DatePresetProviderProps } from './root';
5
- export { DATE_PRESETS, DEFAULT_PRESET_KEY, findMatchingPreset } from './presets';
6
- export { useDatePreset } from './context';
7
- export { DatePreset } from './date-preset';
8
- export { DatePresetProvider } from './root';
@@ -1,21 +0,0 @@
1
- export interface DateRange {
2
- from: Date;
3
- to: Date;
4
- }
5
- export interface DateRangeOptional {
6
- from?: Date;
7
- to?: Date;
8
- }
9
- export interface DatePresetItem {
10
- key: string;
11
- label: string;
12
- getRange: () => DateRange;
13
- }
14
- export declare const DATE_PRESETS: Record<string, DatePresetItem>;
15
- export declare const DEFAULT_PRESET_KEY = "LAST_7_DAYS";
16
- /**
17
- * Finds a matching preset for a given date range.
18
- * Compares dates by day (ignores time).
19
- * @returns The matching preset key or null if no match found.
20
- */
21
- export declare function findMatchingPreset(range: DateRange, presets?: Record<string, DatePresetItem>): string | null;
@@ -1,9 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import { type DateRange } from './presets';
3
- export interface DatePresetProviderProps {
4
- children: ReactNode;
5
- initialRange?: DateRange;
6
- initialPreset?: string | null;
7
- onRangeChange?: (range: DateRange, preset: string | null) => void;
8
- }
9
- export declare function DatePresetProvider({ children, initialRange, initialPreset, onRangeChange, }: DatePresetProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,25 +0,0 @@
1
- import { type Locale } from 'date-fns';
2
- import { type LucideIcon } from 'lucide-react';
3
- import { type ReactNode } from 'react';
4
- export interface IconConfig {
5
- icon: LucideIcon;
6
- bg?: string;
7
- text?: string;
8
- }
9
- export interface TimelineItem {
10
- iconConfig: IconConfig;
11
- title: string;
12
- description: string;
13
- timestamp: number;
14
- tags?: string[];
15
- topRightSlot?: ReactNode;
16
- bottomRightSlot?: ReactNode;
17
- }
18
- export interface TimelineProps {
19
- items: TimelineItem[];
20
- header?: ReactNode;
21
- className?: string;
22
- onItemClick?: (item: TimelineItem, index: number) => void;
23
- dateLocale?: Locale;
24
- }
25
- export declare const Timeline: ({ items, header, className, onItemClick, dateLocale }: TimelineProps) => import("react/jsx-runtime").JSX.Element;