@omnifyjp/ui 0.1.7 → 0.2.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.
Files changed (93) hide show
  1. package/dist/{chunk-BEZF6UWZ.js → chunk-2C2HRGM7.js} +3 -3
  2. package/dist/{chunk-BEZF6UWZ.js.map → chunk-2C2HRGM7.js.map} +1 -1
  3. package/dist/{chunk-TX42RKQU.js → chunk-2TUWDXAC.js} +3 -3
  4. package/dist/{chunk-TX42RKQU.js.map → chunk-2TUWDXAC.js.map} +1 -1
  5. package/dist/{chunk-HY4FVDA4.js → chunk-35U6QG4P.js} +5 -5
  6. package/dist/{chunk-HY4FVDA4.js.map → chunk-35U6QG4P.js.map} +1 -1
  7. package/dist/{chunk-YT3W2URB.js → chunk-36YYHIJU.js} +3 -3
  8. package/dist/{chunk-YT3W2URB.js.map → chunk-36YYHIJU.js.map} +1 -1
  9. package/dist/{chunk-33DTBAFF.js → chunk-4MHIUUAW.js} +3 -3
  10. package/dist/{chunk-33DTBAFF.js.map → chunk-4MHIUUAW.js.map} +1 -1
  11. package/dist/chunk-55E7D2HR.js +99 -0
  12. package/dist/chunk-55E7D2HR.js.map +1 -0
  13. package/dist/{chunk-4MD7BIEK.js → chunk-6DIDQ4TB.js} +8 -8
  14. package/dist/{chunk-4MD7BIEK.js.map → chunk-6DIDQ4TB.js.map} +1 -1
  15. package/dist/{chunk-ZHP73HKU.js → chunk-7IRLBU2I.js} +3 -3
  16. package/dist/{chunk-ZHP73HKU.js.map → chunk-7IRLBU2I.js.map} +1 -1
  17. package/dist/chunk-A3BB5ZOC.js +77 -0
  18. package/dist/chunk-A3BB5ZOC.js.map +1 -0
  19. package/dist/{chunk-EIY5FVSV.js → chunk-BAQWGQJG.js} +3 -3
  20. package/dist/{chunk-EIY5FVSV.js.map → chunk-BAQWGQJG.js.map} +1 -1
  21. package/dist/{chunk-UAX7UJIJ.js → chunk-G7HTZBUR.js} +13 -13
  22. package/dist/{chunk-UAX7UJIJ.js.map → chunk-G7HTZBUR.js.map} +1 -1
  23. package/dist/{chunk-V4ZOPVXV.js → chunk-JAJMM32I.js} +3 -3
  24. package/dist/{chunk-V4ZOPVXV.js.map → chunk-JAJMM32I.js.map} +1 -1
  25. package/dist/{chunk-4SMVBJFU.js → chunk-LMT327XH.js} +4 -4
  26. package/dist/chunk-LMT327XH.js.map +1 -0
  27. package/dist/{chunk-YE7EHQ6P.js → chunk-LTTNCAAA.js} +3 -3
  28. package/dist/{chunk-YE7EHQ6P.js.map → chunk-LTTNCAAA.js.map} +1 -1
  29. package/dist/{chunk-C6EAO7IA.js → chunk-MJLFJPUG.js} +8 -8
  30. package/dist/{chunk-C6EAO7IA.js.map → chunk-MJLFJPUG.js.map} +1 -1
  31. package/dist/{chunk-QX56UQ2I.js → chunk-MZ2P566X.js} +3 -3
  32. package/dist/{chunk-QX56UQ2I.js.map → chunk-MZ2P566X.js.map} +1 -1
  33. package/dist/{chunk-C7LPAIU6.js → chunk-N47H4MHX.js} +3 -3
  34. package/dist/{chunk-C7LPAIU6.js.map → chunk-N47H4MHX.js.map} +1 -1
  35. package/dist/{chunk-UVOH3VSV.js → chunk-NPL2R5LD.js} +3 -3
  36. package/dist/{chunk-UVOH3VSV.js.map → chunk-NPL2R5LD.js.map} +1 -1
  37. package/dist/chunk-TGYQ3AKH.js +95 -0
  38. package/dist/chunk-TGYQ3AKH.js.map +1 -0
  39. package/dist/{chunk-WNKEQCXM.js → chunk-THQUH6WX.js} +4 -4
  40. package/dist/{chunk-WNKEQCXM.js.map → chunk-THQUH6WX.js.map} +1 -1
  41. package/dist/{chunk-ZB2FWKHF.js → chunk-VVYSAGB3.js} +6 -6
  42. package/dist/{chunk-ZB2FWKHF.js.map → chunk-VVYSAGB3.js.map} +1 -1
  43. package/dist/{chunk-JBQT2H4K.js → chunk-XUVLD65E.js} +3 -3
  44. package/dist/{chunk-JBQT2H4K.js.map → chunk-XUVLD65E.js.map} +1 -1
  45. package/dist/{chunk-ZYSFPIGY.js → chunk-YS3PMGYC.js} +4 -4
  46. package/dist/{chunk-ZYSFPIGY.js.map → chunk-YS3PMGYC.js.map} +1 -1
  47. package/dist/{chunk-DZ7752H3.js → chunk-ZHEKDP5X.js} +3 -3
  48. package/dist/{chunk-DZ7752H3.js.map → chunk-ZHEKDP5X.js.map} +1 -1
  49. package/dist/{chunk-BOMDCV63.js → chunk-ZYEGBF7G.js} +3 -3
  50. package/dist/{chunk-BOMDCV63.js.map → chunk-ZYEGBF7G.js.map} +1 -1
  51. package/dist/components/alert-dialog.js +2 -2
  52. package/dist/components/alert.d.ts +38 -12
  53. package/dist/components/alert.js +1 -1
  54. package/dist/components/badge.d.ts +31 -8
  55. package/dist/components/badge.js +1 -1
  56. package/dist/components/button.d.ts +43 -19
  57. package/dist/components/button.js +1 -1
  58. package/dist/components/calendar-category-badge.js +2 -2
  59. package/dist/components/calendar-event-sheet.js +4 -4
  60. package/dist/components/calendar-toolbar.js +2 -2
  61. package/dist/components/calendar.js +2 -2
  62. package/dist/components/carousel.d.ts +1 -0
  63. package/dist/components/carousel.js +2 -2
  64. package/dist/components/color-picker.js +2 -2
  65. package/dist/components/combobox.js +2 -2
  66. package/dist/components/date-picker.js +3 -3
  67. package/dist/components/file-upload.js +2 -2
  68. package/dist/components/pagination.d.ts +1 -0
  69. package/dist/components/pagination.js +2 -2
  70. package/dist/components/rating.js +1 -1
  71. package/dist/components/scope-tree.js +2 -2
  72. package/dist/components/scope-type-badge.js +2 -2
  73. package/dist/components/sidebar.d.ts +1 -0
  74. package/dist/components/sidebar.js +2 -2
  75. package/dist/components/stage-type-badge.js +2 -2
  76. package/dist/components/tag-input.js +2 -2
  77. package/dist/components/time-picker.js +2 -2
  78. package/dist/components/workflow-category-badge.js +2 -2
  79. package/dist/components/workflow-diagram.js +1 -1
  80. package/dist/components/workflow-status-badge.js +2 -2
  81. package/dist/components/workflow-stepper.js +1 -1
  82. package/dist/index.d.ts +1 -0
  83. package/dist/index.js +25 -25
  84. package/dist/types-CBVkScfB.d.ts +84 -0
  85. package/package.json +23 -13
  86. package/src/styles/theme.css +10 -0
  87. package/dist/chunk-4SMVBJFU.js.map +0 -1
  88. package/dist/chunk-L6K7UH3O.js +0 -66
  89. package/dist/chunk-L6K7UH3O.js.map +0 -1
  90. package/dist/chunk-OBZQTY3H.js +0 -41
  91. package/dist/chunk-OBZQTY3H.js.map +0 -1
  92. package/dist/chunk-Y65FNGEE.js +0 -52
  93. package/dist/chunk-Y65FNGEE.js.map +0 -1
@@ -1,9 +1,9 @@
1
- export { CalendarEventSheet } from '../chunk-WNKEQCXM.js';
1
+ export { CalendarEventSheet } from '../chunk-THQUH6WX.js';
2
2
  import '../chunk-JLTBUACL.js';
3
- import '../chunk-V4ZOPVXV.js';
3
+ import '../chunk-JAJMM32I.js';
4
4
  import '../chunk-PGWNOZDX.js';
5
- import '../chunk-Y65FNGEE.js';
6
- import '../chunk-OBZQTY3H.js';
5
+ import '../chunk-55E7D2HR.js';
6
+ import '../chunk-A3BB5ZOC.js';
7
7
  import '../chunk-DGPY4WP3.js';
8
8
  //# sourceMappingURL=calendar-event-sheet.js.map
9
9
  //# sourceMappingURL=calendar-event-sheet.js.map
@@ -1,7 +1,7 @@
1
- export { CalendarToolbar } from '../chunk-YT3W2URB.js';
1
+ export { CalendarToolbar } from '../chunk-36YYHIJU.js';
2
2
  import '../chunk-ZPMXRW2A.js';
3
3
  import '../chunk-NU56GKGM.js';
4
- import '../chunk-Y65FNGEE.js';
4
+ import '../chunk-55E7D2HR.js';
5
5
  import '../chunk-DGPY4WP3.js';
6
6
  //# sourceMappingURL=calendar-toolbar.js.map
7
7
  //# sourceMappingURL=calendar-toolbar.js.map
@@ -1,5 +1,5 @@
1
- export { Calendar } from '../chunk-33DTBAFF.js';
2
- import '../chunk-Y65FNGEE.js';
1
+ export { Calendar } from '../chunk-4MHIUUAW.js';
2
+ import '../chunk-55E7D2HR.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=calendar.js.map
5
5
  //# sourceMappingURL=calendar.js.map
@@ -4,6 +4,7 @@ import useEmblaCarousel from 'embla-carousel-react';
4
4
  import { Button } from './button.js';
5
5
  import 'class-variance-authority/types';
6
6
  import 'class-variance-authority';
7
+ import '../types-CBVkScfB.js';
7
8
 
8
9
  type CarouselApi = ReturnType<typeof useEmblaCarousel>[1];
9
10
  type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
@@ -1,5 +1,5 @@
1
- export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from '../chunk-TX42RKQU.js';
2
- import '../chunk-Y65FNGEE.js';
1
+ export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from '../chunk-2TUWDXAC.js';
2
+ import '../chunk-55E7D2HR.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=carousel.js.map
5
5
  //# sourceMappingURL=carousel.js.map
@@ -1,7 +1,7 @@
1
- export { ColorPicker } from '../chunk-C6EAO7IA.js';
1
+ export { ColorPicker } from '../chunk-MJLFJPUG.js';
2
2
  import '../chunk-3VU56V66.js';
3
3
  import '../chunk-C34KSTWA.js';
4
- import '../chunk-Y65FNGEE.js';
4
+ import '../chunk-55E7D2HR.js';
5
5
  import '../chunk-DGPY4WP3.js';
6
6
  //# sourceMappingURL=color-picker.js.map
7
7
  //# sourceMappingURL=color-picker.js.map
@@ -1,8 +1,8 @@
1
- export { Combobox, MultiCombobox } from '../chunk-UVOH3VSV.js';
1
+ export { Combobox, MultiCombobox } from '../chunk-NPL2R5LD.js';
2
2
  import '../chunk-C34KSTWA.js';
3
3
  import '../chunk-6GWVQB3Q.js';
4
4
  import '../chunk-F2ZJLKDP.js';
5
- import '../chunk-Y65FNGEE.js';
5
+ import '../chunk-55E7D2HR.js';
6
6
  import '../chunk-DGPY4WP3.js';
7
7
  //# sourceMappingURL=combobox.js.map
8
8
  //# sourceMappingURL=combobox.js.map
@@ -1,7 +1,7 @@
1
- export { DatePicker, DateRangePicker } from '../chunk-ZYSFPIGY.js';
1
+ export { DatePicker, DateRangePicker } from '../chunk-YS3PMGYC.js';
2
2
  import '../chunk-C34KSTWA.js';
3
- import '../chunk-33DTBAFF.js';
4
- import '../chunk-Y65FNGEE.js';
3
+ import '../chunk-4MHIUUAW.js';
4
+ import '../chunk-55E7D2HR.js';
5
5
  import '../chunk-DGPY4WP3.js';
6
6
  //# sourceMappingURL=date-picker.js.map
7
7
  //# sourceMappingURL=date-picker.js.map
@@ -1,5 +1,5 @@
1
- export { FileUpload } from '../chunk-UAX7UJIJ.js';
2
- import '../chunk-Y65FNGEE.js';
1
+ export { FileUpload } from '../chunk-G7HTZBUR.js';
2
+ import '../chunk-55E7D2HR.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=file-upload.js.map
5
5
  //# sourceMappingURL=file-upload.js.map
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import { Button } from './button.js';
4
4
  import 'class-variance-authority/types';
5
5
  import 'class-variance-authority';
6
+ import '../types-CBVkScfB.js';
6
7
 
7
8
  /**
8
9
  * Page navigation component with numbered links, previous/next buttons, and ellipsis indicators.
@@ -1,5 +1,5 @@
1
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from '../chunk-ZHP73HKU.js';
2
- import '../chunk-Y65FNGEE.js';
1
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from '../chunk-7IRLBU2I.js';
2
+ import '../chunk-55E7D2HR.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=pagination.js.map
5
5
  //# sourceMappingURL=pagination.js.map
@@ -1,4 +1,4 @@
1
- export { Rating } from '../chunk-HY4FVDA4.js';
1
+ export { Rating } from '../chunk-35U6QG4P.js';
2
2
  import '../chunk-DGPY4WP3.js';
3
3
  //# sourceMappingURL=rating.js.map
4
4
  //# sourceMappingURL=rating.js.map
@@ -1,5 +1,5 @@
1
- export { ScopeTree } from '../chunk-EIY5FVSV.js';
2
- import '../chunk-OBZQTY3H.js';
1
+ export { ScopeTree } from '../chunk-BAQWGQJG.js';
2
+ import '../chunk-A3BB5ZOC.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=scope-tree.js.map
5
5
  //# sourceMappingURL=scope-tree.js.map
@@ -1,5 +1,5 @@
1
- export { ScopeTypeBadge } from '../chunk-C7LPAIU6.js';
2
- import '../chunk-OBZQTY3H.js';
1
+ export { ScopeTypeBadge } from '../chunk-N47H4MHX.js';
2
+ import '../chunk-A3BB5ZOC.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=scope-type-badge.js.map
5
5
  //# sourceMappingURL=scope-type-badge.js.map
@@ -6,6 +6,7 @@ import { Button } from './button.js';
6
6
  import { Input } from './input.js';
7
7
  import { Separator } from './separator.js';
8
8
  import { TooltipContent } from './tooltip.js';
9
+ import '../types-CBVkScfB.js';
9
10
  import '@radix-ui/react-separator';
10
11
  import '@radix-ui/react-tooltip';
11
12
 
@@ -1,11 +1,11 @@
1
- export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from '../chunk-JBQT2H4K.js';
1
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from '../chunk-XUVLD65E.js';
2
2
  import '../chunk-C5NZAOA7.js';
3
3
  import '../chunk-WRCHR4AK.js';
4
4
  import '../chunk-JXGRW2MR.js';
5
5
  import '../chunk-3VU56V66.js';
6
6
  import '../chunk-JLTBUACL.js';
7
7
  import '../chunk-PGWNOZDX.js';
8
- import '../chunk-Y65FNGEE.js';
8
+ import '../chunk-55E7D2HR.js';
9
9
  import '../chunk-DGPY4WP3.js';
10
10
  //# sourceMappingURL=sidebar.js.map
11
11
  //# sourceMappingURL=sidebar.js.map
@@ -1,5 +1,5 @@
1
- export { StageTypeBadge } from '../chunk-DZ7752H3.js';
2
- import '../chunk-OBZQTY3H.js';
1
+ export { StageTypeBadge } from '../chunk-ZHEKDP5X.js';
2
+ import '../chunk-A3BB5ZOC.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=stage-type-badge.js.map
5
5
  //# sourceMappingURL=stage-type-badge.js.map
@@ -1,5 +1,5 @@
1
- export { TagInput } from '../chunk-ZB2FWKHF.js';
2
- import '../chunk-OBZQTY3H.js';
1
+ export { TagInput } from '../chunk-VVYSAGB3.js';
2
+ import '../chunk-A3BB5ZOC.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=tag-input.js.map
5
5
  //# sourceMappingURL=tag-input.js.map
@@ -1,8 +1,8 @@
1
- export { TimeInput, TimePicker } from '../chunk-4MD7BIEK.js';
1
+ export { TimeInput, TimePicker } from '../chunk-6DIDQ4TB.js';
2
2
  import '../chunk-JJSVA3TH.js';
3
3
  import '../chunk-3VU56V66.js';
4
4
  import '../chunk-C34KSTWA.js';
5
- import '../chunk-Y65FNGEE.js';
5
+ import '../chunk-55E7D2HR.js';
6
6
  import '../chunk-DGPY4WP3.js';
7
7
  //# sourceMappingURL=time-picker.js.map
8
8
  //# sourceMappingURL=time-picker.js.map
@@ -1,5 +1,5 @@
1
- export { WorkflowCategoryBadge } from '../chunk-BEZF6UWZ.js';
2
- import '../chunk-OBZQTY3H.js';
1
+ export { WorkflowCategoryBadge } from '../chunk-2C2HRGM7.js';
2
+ import '../chunk-A3BB5ZOC.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=workflow-category-badge.js.map
5
5
  //# sourceMappingURL=workflow-category-badge.js.map
@@ -1,4 +1,4 @@
1
- export { WorkflowDiagram } from '../chunk-QX56UQ2I.js';
1
+ export { WorkflowDiagram } from '../chunk-MZ2P566X.js';
2
2
  import '../chunk-Z2QAABLM.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=workflow-diagram.js.map
@@ -1,5 +1,5 @@
1
- export { WorkflowStatusBadge } from '../chunk-BOMDCV63.js';
2
- import '../chunk-OBZQTY3H.js';
1
+ export { WorkflowStatusBadge } from '../chunk-ZYEGBF7G.js';
2
+ import '../chunk-A3BB5ZOC.js';
3
3
  import '../chunk-DGPY4WP3.js';
4
4
  //# sourceMappingURL=workflow-status-badge.js.map
5
5
  //# sourceMappingURL=workflow-status-badge.js.map
@@ -1,4 +1,4 @@
1
- export { WorkflowStepper } from '../chunk-4SMVBJFU.js';
1
+ export { WorkflowStepper } from '../chunk-LMT327XH.js';
2
2
  import '../chunk-DGPY4WP3.js';
3
3
  //# sourceMappingURL=workflow-stepper.js.map
4
4
  //# sourceMappingURL=workflow-stepper.js.map
package/dist/index.d.ts CHANGED
@@ -66,6 +66,7 @@ export { PermissionDefinition, PermissionGrid, PermissionGridLabels, PermissionG
66
66
  export { ScopeTree, ScopeTreeBadge, ScopeTreeLabels, ScopeTreeNode, ScopeTreeProps, ScopeTreeSelectedScope } from './components/scope-tree.js';
67
67
  export { ScopeTypeBadge, ScopeTypeBadgeProps, ScopeTypeBadgeStyles } from './components/scope-type-badge.js';
68
68
  export { SlugInput, SlugInputLabels, SlugInputProps, generateSlug } from './components/slug-input.js';
69
+ export { U as UIColor, a as UISize, b as UIVariant } from './types-CBVkScfB.js';
69
70
  export { cn } from './lib/utils.js';
70
71
  export { useIsMobile } from './hooks/use-mobile.js';
71
72
  import 'react/jsx-runtime';
package/dist/index.js CHANGED
@@ -1,71 +1,71 @@
1
- export { WorkflowCategoryBadge } from './chunk-BEZF6UWZ.js';
2
- export { WorkflowDiagram } from './chunk-QX56UQ2I.js';
3
- export { WorkflowStatusBadge } from './chunk-BOMDCV63.js';
4
- export { WorkflowStepper } from './chunk-4SMVBJFU.js';
1
+ export { WorkflowCategoryBadge } from './chunk-2C2HRGM7.js';
2
+ export { WorkflowDiagram } from './chunk-MZ2P566X.js';
3
+ export { WorkflowStatusBadge } from './chunk-ZYEGBF7G.js';
4
+ export { WorkflowStepper } from './chunk-LMT327XH.js';
5
5
  export { Switch } from './chunk-XOJJBNDX.js';
6
6
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './chunk-S6PDRGR5.js';
7
7
  export { Tabs, TabsContent, TabsList, TabsTrigger } from './chunk-FLWMT4DB.js';
8
- export { TagInput } from './chunk-ZB2FWKHF.js';
8
+ export { TagInput } from './chunk-VVYSAGB3.js';
9
9
  export { Textarea } from './chunk-WD5KZE25.js';
10
- export { TimeInput, TimePicker } from './chunk-4MD7BIEK.js';
11
- export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from './chunk-JBQT2H4K.js';
10
+ export { TimeInput, TimePicker } from './chunk-6DIDQ4TB.js';
11
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from './chunk-XUVLD65E.js';
12
12
  export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './chunk-C5NZAOA7.js';
13
13
  export { useIsMobile } from './chunk-WRCHR4AK.js';
14
14
  export { Skeleton } from './chunk-JXGRW2MR.js';
15
15
  export { Slider } from './chunk-EWBCV7VA.js';
16
16
  export { SlugInput, generateSlug } from './chunk-75WZR6HF.js';
17
17
  export { Toaster } from './chunk-CUZR4JWM.js';
18
- export { StageTypeBadge } from './chunk-DZ7752H3.js';
18
+ export { StageTypeBadge } from './chunk-ZHEKDP5X.js';
19
19
  export { Progress } from './chunk-R2CDE5DO.js';
20
20
  export { RadioGroup, RadioGroupItem } from './chunk-BRSM3SZP.js';
21
- export { Rating } from './chunk-HY4FVDA4.js';
21
+ export { Rating } from './chunk-35U6QG4P.js';
22
22
  export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './chunk-FRKG7JQY.js';
23
- export { ScopeTree } from './chunk-EIY5FVSV.js';
24
- export { ScopeTypeBadge } from './chunk-C7LPAIU6.js';
23
+ export { ScopeTree } from './chunk-BAQWGQJG.js';
24
+ export { ScopeTypeBadge } from './chunk-N47H4MHX.js';
25
25
  export { ScrollArea, ScrollBar } from './chunk-JJSVA3TH.js';
26
26
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './chunk-NNJTKHCE.js';
27
27
  export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from './chunk-INLM7UJC.js';
28
28
  export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from './chunk-YBMEQZX7.js';
29
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from './chunk-ZHP73HKU.js';
29
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from './chunk-7IRLBU2I.js';
30
30
  export { PasswordInput } from './chunk-3UPBCOS4.js';
31
31
  export { PermissionGrid, buildPermissionId } from './chunk-TJMK2KBE.js';
32
- export { DatePicker, DateRangePicker } from './chunk-ZYSFPIGY.js';
32
+ export { DatePicker, DateRangePicker } from './chunk-YS3PMGYC.js';
33
33
  export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './chunk-7XH3MGBR.js';
34
34
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './chunk-IAWKX5W4.js';
35
- export { FileUpload } from './chunk-UAX7UJIJ.js';
35
+ export { FileUpload } from './chunk-G7HTZBUR.js';
36
36
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from './chunk-LVZNNIK4.js';
37
37
  export { Label } from './chunk-P3M5TZD2.js';
38
38
  export { HoverCard, HoverCardContent, HoverCardTrigger } from './chunk-JRU2QX7T.js';
39
39
  export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from './chunk-RQNZDWY3.js';
40
- export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from './chunk-TX42RKQU.js';
40
+ export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from './chunk-2TUWDXAC.js';
41
41
  export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from './chunk-B434PORR.js';
42
42
  export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './chunk-3EOHW4QN.js';
43
- export { ColorPicker } from './chunk-C6EAO7IA.js';
43
+ export { ColorPicker } from './chunk-MJLFJPUG.js';
44
44
  export { Input, inputVariants } from './chunk-3VU56V66.js';
45
- export { Combobox, MultiCombobox } from './chunk-UVOH3VSV.js';
45
+ export { Combobox, MultiCombobox } from './chunk-NPL2R5LD.js';
46
46
  export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './chunk-C34KSTWA.js';
47
47
  export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './chunk-6GWVQB3Q.js';
48
48
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './chunk-F2ZJLKDP.js';
49
49
  export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './chunk-USIHM7FV.js';
50
50
  export { CalendarEventChip } from './chunk-TTH7TWVX.js';
51
- export { CalendarEventSheet } from './chunk-WNKEQCXM.js';
51
+ export { CalendarEventSheet } from './chunk-THQUH6WX.js';
52
52
  export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from './chunk-JLTBUACL.js';
53
- export { CalendarCategoryBadge } from './chunk-V4ZOPVXV.js';
53
+ export { CalendarCategoryBadge } from './chunk-JAJMM32I.js';
54
54
  export { CalendarMini } from './chunk-KTBOZ4NE.js';
55
55
  export { Checkbox } from './chunk-WL4ZO2H3.js';
56
56
  export { Separator } from './chunk-PGWNOZDX.js';
57
- export { CalendarToolbar } from './chunk-YT3W2URB.js';
57
+ export { CalendarToolbar } from './chunk-36YYHIJU.js';
58
58
  export { ToggleGroup, ToggleGroupItem } from './chunk-ZPMXRW2A.js';
59
59
  export { Toggle, toggleVariants } from './chunk-NU56GKGM.js';
60
- export { Calendar } from './chunk-33DTBAFF.js';
60
+ export { Calendar } from './chunk-4MHIUUAW.js';
61
61
  export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './chunk-Z2QAABLM.js';
62
62
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './chunk-34ARZSNP.js';
63
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from './chunk-YE7EHQ6P.js';
64
- export { Button, buttonVariants } from './chunk-Y65FNGEE.js';
65
- export { Alert, AlertDescription, AlertTitle } from './chunk-L6K7UH3O.js';
63
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from './chunk-LTTNCAAA.js';
64
+ export { Button, buttonVariants } from './chunk-55E7D2HR.js';
65
+ export { Alert, AlertDescription, AlertTitle } from './chunk-TGYQ3AKH.js';
66
66
  export { AspectRatio } from './chunk-35DNN46W.js';
67
67
  export { Avatar, AvatarFallback, AvatarImage } from './chunk-67YUL2ZS.js';
68
- export { Badge, badgeVariants } from './chunk-OBZQTY3H.js';
68
+ export { Badge, badgeVariants } from './chunk-A3BB5ZOC.js';
69
69
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from './chunk-7RMTPT6O.js';
70
70
  export { cn } from './chunk-DGPY4WP3.js';
71
71
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Shared UI types for @omnifyjp/ui components.
3
+ *
4
+ * These types enforce consistent APIs across Button, Badge, Alert, and future components.
5
+ * Import from `@omnifyjp/ui` or `@omnifyjp/ui/lib/types`.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * import type { UIColor, UISize } from '@omnifyjp/ui';
10
+ * ```
11
+ */
12
+ /**
13
+ * Semantic color intent for UI components.
14
+ *
15
+ * Each color maps to a pair of CSS custom properties in theme.css:
16
+ * `--{color}` (background) and `--{color}-foreground` (text on that background).
17
+ *
18
+ * | Color | CSS Variable | Default (Light) | Use for |
19
+ * |-------|-------------|-----------------|---------|
20
+ * | `primary` | `--primary` | `#030213` | Main actions, active states |
21
+ * | `destructive` | `--destructive` | `#d4183d` | Delete, errors, dangerous actions |
22
+ * | `success` | `--success` | `#10b981` | Confirmed, approved, completed |
23
+ * | `warning` | `--warning` | `#f59e0b` | Caution, needs attention |
24
+ * | `info` | `--info` | `#3b82f6` | Informational, neutral highlights |
25
+ *
26
+ * Consumers override these via CSS custom properties:
27
+ * ```css
28
+ * :root { --primary: #dc2626; }
29
+ * ```
30
+ *
31
+ * @example
32
+ * ```tsx
33
+ * <Button color="success">Approve</Button>
34
+ * <Badge color="warning">Pending</Badge>
35
+ * <Alert color="info">Tip: use keyboard shortcuts</Alert>
36
+ * ```
37
+ */
38
+ type UIColor = 'primary' | 'destructive' | 'success' | 'warning' | 'info';
39
+ /**
40
+ * Visual display variant for UI components.
41
+ *
42
+ * Controls **how** the color is rendered, independent of **which** color.
43
+ * Combine with `color` prop for full flexibility: `variant="outline" color="destructive"`.
44
+ *
45
+ * | Variant | Description |
46
+ * |---------|-------------|
47
+ * | `default` | Solid filled background with contrasting text |
48
+ * | `secondary` | Muted/gray background (color-independent) |
49
+ * | `outline` | Border with transparent background, colored text |
50
+ * | `soft` | Light tinted background (10% opacity of color) |
51
+ * | `ghost` | Transparent, shows tinted background on hover |
52
+ * | `link` | Text-only with underline on hover |
53
+ *
54
+ * @example
55
+ * ```tsx
56
+ * <Button variant="soft" color="success">Approve</Button>
57
+ * <Button variant="outline" color="destructive">Reject</Button>
58
+ * <Badge variant="soft" color="warning">In Review</Badge>
59
+ * ```
60
+ */
61
+ type UIVariant = 'default' | 'secondary' | 'outline' | 'soft' | 'ghost' | 'link';
62
+ /**
63
+ * Standard size scale for UI components.
64
+ *
65
+ * Maps to density tokens in theme.css for consistent sizing across the system.
66
+ *
67
+ * | Size | Height Token | Pixels | Use for |
68
+ * |------|-------------|--------|---------|
69
+ * | `xs` | `h-element-xs` | 24px | Compact tables, inline actions |
70
+ * | `sm` | `h-element-sm` | 28px | Secondary actions, tight layouts |
71
+ * | `default` | `h-element` | 32px | Standard buttons, inputs |
72
+ * | `lg` | `h-element-lg` | 36px | Primary CTAs, form actions |
73
+ * | `xl` | `h-element-xl` | 44px | Login forms, hero sections |
74
+ *
75
+ * @example
76
+ * ```tsx
77
+ * <Button size="sm">Edit</Button>
78
+ * <Button size="xl" block>Sign In</Button>
79
+ * <Input size="lg" />
80
+ * ```
81
+ */
82
+ type UISize = 'xs' | 'sm' | 'default' | 'lg' | 'xl';
83
+
84
+ export type { UIColor as U, UISize as a, UIVariant as b };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnifyjp/ui",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -15,6 +15,10 @@
15
15
  "types": "./dist/components/*.d.ts",
16
16
  "import": "./dist/components/*.js"
17
17
  },
18
+ "./lib/types": {
19
+ "types": "./dist/lib/types.d.ts",
20
+ "import": "./dist/lib/types.js"
21
+ },
18
22
  "./lib/utils": {
19
23
  "types": "./dist/lib/utils.d.ts",
20
24
  "import": "./dist/lib/utils.js"
@@ -29,12 +33,20 @@
29
33
  "dist",
30
34
  "src/styles"
31
35
  ],
36
+ "scripts": {
37
+ "build": "tsup",
38
+ "dev": "tsup --watch",
39
+ "lint": "eslint src/",
40
+ "type-check": "tsc --noEmit",
41
+ "test": "vitest run",
42
+ "test:watch": "vitest"
43
+ },
32
44
  "peerDependencies": {
45
+ "date-fns": ">=3",
33
46
  "react": ">=18",
34
47
  "react-dom": ">=18",
35
- "date-fns": ">=3",
36
- "recharts": ">=2",
37
- "react-hook-form": ">=7"
48
+ "react-hook-form": ">=7",
49
+ "recharts": ">=2"
38
50
  },
39
51
  "peerDependenciesMeta": {
40
52
  "date-fns": {
@@ -87,15 +99,13 @@
87
99
  "vaul": "1.1.2"
88
100
  },
89
101
  "devDependencies": {
102
+ "@testing-library/jest-dom": "^6.9.1",
103
+ "@testing-library/react": "^16.3.2",
104
+ "@types/react": "^19.2.13",
105
+ "@types/react-dom": "^19.2.3",
106
+ "jsdom": "^28.1.0",
90
107
  "tsup": "^8.0.0",
91
108
  "typescript": "^5.9.3",
92
- "@types/react": "^19.2.13",
93
- "@types/react-dom": "^19.2.3"
94
- },
95
- "scripts": {
96
- "build": "tsup",
97
- "dev": "tsup --watch",
98
- "lint": "eslint src/",
99
- "type-check": "tsc --noEmit"
109
+ "vitest": "^4.0.18"
100
110
  }
101
- }
111
+ }
@@ -270,6 +270,16 @@
270
270
  --sidebar-border: oklch(0.269 0 0);
271
271
  --sidebar-ring: oklch(0.439 0 0);
272
272
 
273
+ /* Semantic colors (dark mode) */
274
+ --success: #34d399;
275
+ --success-foreground: #022c22;
276
+ --warning: #fbbf24;
277
+ --warning-foreground: #422006;
278
+ --info: #60a5fa;
279
+ --info-foreground: #172554;
280
+ --error: #f87171;
281
+ --error-foreground: #450a0a;
282
+
273
283
  /* Dark mode gray scale */
274
284
  --gray-50: #1f2937;
275
285
  --gray-100: #374151;
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/workflow-stepper.tsx"],"names":[],"mappings":";;;;AAqDO,SAAS,eAAA,CAAgB;AAAA,EAC9B,MAAA;AAAA,EACA,OAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAA,EAAyB;AACvB,EAAA,MAAM,YAAA,GAAe,CAAC,GAAG,MAAM,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,EAAG,CAAA,KAAM,CAAA,CAAE,KAAA,GAAQ,CAAA,CAAE,KAAK,CAAA;AACjE,EAAA,MAAM,iBAAA,GAAoB,IAAI,GAAA,CAAI,OAAA,CAAQ,IAAI,CAAC,CAAA,KAAM,CAAA,CAAE,OAAO,CAAC,CAAA;AAE/D,EAAA,uBACE,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,EAAA,CAAG,8CAAA,EAAgD,SAAS,CAAA,EACzE,QAAA,EAAA,YAAA,CAAa,GAAA,CAAI,CAAC,KAAA,EAAO,KAAA,KAAU;AAClC,IAAA,MAAM,WAAA,GAAc,iBAAA,CAAkB,GAAA,CAAI,KAAA,CAAM,EAAE,CAAA;AAClD,IAAA,MAAM,SAAA,GAAY,MAAM,EAAA,KAAO,cAAA;AAC/B,IAAA,MAAM,YAAA,GAAe,QAAQ,IAAA,CAAK,CAAC,MAAM,CAAA,CAAE,OAAA,KAAY,MAAM,EAAE,CAAA;AAC/D,IAAA,MAAM,UAAA,GAAa,cAAc,QAAA,KAAa,UAAA;AAE9C,IAAA,uBACE,IAAA,CAAC,KAAA,EAAA,EAAmB,SAAA,EAAU,iCAAA,EAC5B,QAAA,EAAA;AAAA,sBAAA,IAAA,CAAC,KAAA,EAAA,EAAI,WAAU,kCAAA,EACb,QAAA,EAAA;AAAA,wBAAA,GAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,SAAA,EAAW,EAAA;AAAA,cACT,sGAAA;AAAA,cACA,WAAA,GACI,UAAA,GACE,sCAAA,GACA,0CAAA,GACF,YACE,+EAAA,GACA;AAAA,aACR;AAAA,YAEC,wCAAc,GAAA,CAAC,KAAA,EAAA,EAAM,SAAA,EAAU,SAAA,EAAU,IAAK,KAAA,CAAM;AAAA;AAAA,SACvD;AAAA,wBACA,GAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YACC,SAAA,EAAW,EAAA;AAAA,cACT,uCAAA;AAAA,cACA,YAAY,6BAAA,GAAgC;AAAA,aAC9C;AAAA,YAEC,QAAA,EAAA,KAAA,CAAM;AAAA;AAAA;AACT,OAAA,EACF,CAAA;AAAA,MACC,KAAA,GAAQ,YAAA,CAAa,MAAA,GAAS,CAAA,oBAC7B,GAAA;AAAA,QAAC,KAAA;AAAA,QAAA;AAAA,UACC,SAAA,EAAW,EAAA;AAAA,YACT,4BAAA;AAAA,YACA,cAAc,cAAA,GAAiB;AAAA;AACjC;AAAA;AACF,KAAA,EAAA,EA/BM,MAAM,EAiChB,CAAA;AAAA,EAEJ,CAAC,CAAA,EACH,CAAA;AAEJ","file":"chunk-4SMVBJFU.js","sourcesContent":["import { Check } from 'lucide-react';\nimport { cn } from '../lib/utils';\n\n/** A single stage in the workflow stepper. */\nexport interface WorkflowStepperStage {\n /** Unique identifier for this stage. */\n id: string;\n /** Display name shown below the stage circle. */\n name: string;\n /** Numeric order used to sort stages left-to-right. */\n order: number;\n}\n\n/** A history entry representing a completed (or rejected) stage. */\nexport interface WorkflowStepperHistoryEntry {\n /** The stage ID this history entry applies to. */\n stageId: string;\n /** The decision made at this stage. \"rejected\" stages render in red. */\n decision: 'approved' | 'rejected' | 'skipped' | (string & {});\n}\n\nexport interface WorkflowStepperProps {\n /** Ordered list of stages to display. Will be sorted by `order`. */\n stages: WorkflowStepperStage[];\n /** History of completed stages. Used to determine which stages are done. */\n history: WorkflowStepperHistoryEntry[];\n /** The id of the currently active stage. */\n currentStageId: string;\n /** Optional additional className for the root container. */\n className?: string;\n}\n\n/**\n * WorkflowStepper displays a horizontal progression of workflow stages.\n *\n * Each stage is shown as a numbered circle. Completed stages show a checkmark\n * (green for approved, red for rejected). The current stage pulses with a blue\n * highlight. Stages are connected by a horizontal line that turns green once\n * the preceding stage is completed.\n *\n * @example\n * ```tsx\n * <WorkflowStepper\n * stages={[\n * { id: \"s1\", name: \"Submit\", order: 1 },\n * { id: \"s2\", name: \"Review\", order: 2 },\n * { id: \"s3\", name: \"Approve\", order: 3 },\n * ]}\n * history={[{ stageId: \"s1\", decision: \"approved\" }]}\n * currentStageId=\"s2\"\n * />\n * ```\n */\nexport function WorkflowStepper({\n stages,\n history,\n currentStageId,\n className,\n}: WorkflowStepperProps) {\n const sortedStages = [...stages].sort((a, b) => a.order - b.order);\n const completedStageIds = new Set(history.map((h) => h.stageId));\n\n return (\n <div className={cn('flex items-center gap-0 overflow-x-auto pb-2', className)}>\n {sortedStages.map((stage, index) => {\n const isCompleted = completedStageIds.has(stage.id);\n const isCurrent = stage.id === currentStageId;\n const historyEntry = history.find((h) => h.stageId === stage.id);\n const isRejected = historyEntry?.decision === 'rejected';\n\n return (\n <div key={stage.id} className=\"flex items-center flex-shrink-0\">\n <div className=\"flex flex-col items-center gap-1\">\n <div\n className={cn(\n 'w-8 h-8 rounded-full flex items-center justify-center text-sm font-medium border-2 transition-colors',\n isCompleted\n ? isRejected\n ? 'bg-red-500 border-red-500 text-white'\n : 'bg-green-500 border-green-500 text-white'\n : isCurrent\n ? 'border-blue-500 bg-blue-500/10 text-blue-600 dark:text-blue-400 animate-pulse'\n : 'border-border bg-muted text-muted-foreground',\n )}\n >\n {isCompleted ? <Check className=\"w-4 h-4\" /> : stage.order}\n </div>\n <span\n className={cn(\n 'text-xs max-w-20 text-center truncate',\n isCurrent ? 'font-medium text-foreground' : 'text-muted-foreground',\n )}\n >\n {stage.name}\n </span>\n </div>\n {index < sortedStages.length - 1 && (\n <div\n className={cn(\n 'w-12 h-0.5 mx-1 mt-[-12px]',\n isCompleted ? 'bg-green-500' : 'bg-border',\n )}\n />\n )}\n </div>\n );\n })}\n </div>\n );\n}\n"]}
@@ -1,66 +0,0 @@
1
- import { cn } from './chunk-DGPY4WP3.js';
2
- import { cva } from 'class-variance-authority';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- var alertVariants = cva(
6
- "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
7
- {
8
- variants: {
9
- variant: {
10
- default: "bg-card text-card-foreground",
11
- destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
12
- }
13
- },
14
- defaultVariants: {
15
- variant: "default"
16
- }
17
- }
18
- );
19
- function Alert({
20
- className,
21
- variant,
22
- ...props
23
- }) {
24
- return /* @__PURE__ */ jsx(
25
- "div",
26
- {
27
- "data-slot": "alert",
28
- role: "alert",
29
- className: cn(alertVariants({ variant }), className),
30
- ...props
31
- }
32
- );
33
- }
34
- function AlertTitle({ className, ...props }) {
35
- return /* @__PURE__ */ jsx(
36
- "div",
37
- {
38
- "data-slot": "alert-title",
39
- className: cn(
40
- "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
41
- className
42
- ),
43
- ...props
44
- }
45
- );
46
- }
47
- function AlertDescription({
48
- className,
49
- ...props
50
- }) {
51
- return /* @__PURE__ */ jsx(
52
- "div",
53
- {
54
- "data-slot": "alert-description",
55
- className: cn(
56
- "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
57
- className
58
- ),
59
- ...props
60
- }
61
- );
62
- }
63
-
64
- export { Alert, AlertDescription, AlertTitle };
65
- //# sourceMappingURL=chunk-L6K7UH3O.js.map
66
- //# sourceMappingURL=chunk-L6K7UH3O.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/alert.tsx"],"names":[],"mappings":";;;;AAMA,IAAM,aAAA,GAAgB,GAAA;AAAA,EACpB,mOAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,OAAA,EAAS;AAAA,QACP,OAAA,EAAS,8BAAA;AAAA,QACT,WAAA,EACE;AAAA;AACJ,KACF;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,OAAA,EAAS;AAAA;AACX;AAEJ,CAAA;AA4BA,SAAS,KAAA,CAAM;AAAA,EACb,SAAA;AAAA,EACA,OAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAqE;AACnE,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,OAAA;AAAA,MACV,IAAA,EAAK,OAAA;AAAA,MACL,WAAW,EAAA,CAAG,aAAA,CAAc,EAAE,OAAA,EAAS,GAAG,SAAS,CAAA;AAAA,MAClD,GAAG;AAAA;AAAA,GACN;AAEJ;AAGA,SAAS,UAAA,CAAW,EAAE,SAAA,EAAW,GAAG,OAAM,EAAgC;AACxE,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,aAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACT,6DAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA,GACN;AAEJ;AAGA,SAAS,gBAAA,CAAiB;AAAA,EACxB,SAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAgC;AAC9B,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,mBAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACT,gGAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA,GACN;AAEJ","file":"chunk-L6K7UH3O.js","sourcesContent":["import * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../lib/utils\";\n\n/** Style variants for the Alert component. Supports `\"default\"` and `\"destructive\"` variants. */\nconst alertVariants = cva(\n \"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n {\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n destructive:\n \"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\n/**\n * Static alert banner for displaying important messages.\n *\n * Renders an inline callout with an optional icon, title, and description.\n * Use `variant=\"destructive\"` for error or warning messages.\n * Unlike AlertDialog, this is not a modal -- it renders inline in the page.\n *\n * @example\n * ```tsx\n * <Alert>\n * <InfoIcon className=\"size-4\" />\n * <AlertTitle>Heads up!</AlertTitle>\n * <AlertDescription>\n * You can add components to your app using the CLI.\n * </AlertDescription>\n * </Alert>\n *\n * <Alert variant=\"destructive\">\n * <AlertCircleIcon className=\"size-4\" />\n * <AlertTitle>Error</AlertTitle>\n * <AlertDescription>\n * Your session has expired. Please log in again.\n * </AlertDescription>\n * </Alert>\n * ```\n */\nfunction Alert({\n className,\n variant,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof alertVariants>) {\n return (\n <div\n data-slot=\"alert\"\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\n/** Bold title text within an Alert. Rendered in the second grid column when an icon is present. */\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-title\"\n className={cn(\n \"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** Descriptive body text within an Alert, rendered below the title. */\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-description\"\n className={cn(\n \"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Alert, AlertTitle, AlertDescription };\n"]}