ui-arreya-components 0.0.14 → 0.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-arreya-components",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -24,7 +24,7 @@
24
24
  "build-storybook": "concurrently 'npm run build-storybook:css' 'storybook build'",
25
25
  "build-storybook:css": "tailwindcss -m -i ./src/styles/tailwind.css -o ./src/index.css",
26
26
  "prepublish": "npm run build",
27
- "test": "echo 'setup unit testing'"
27
+ "publish": "npm publish"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": "^18.0.0",
@@ -13,21 +13,21 @@ COMPONENT_OR_FEATURE_NAME=$2
13
13
  case $TEMPLATE_TYPE in
14
14
  feature)
15
15
  echo "Creating feature template..."
16
- mkdir -p src/components/feature/${COMPONENT_OR_FEATURE_NAME}
16
+ mkdir -p src/components/features/${COMPONENT_OR_FEATURE_NAME}
17
17
 
18
- cat <<EOF > src/components/feature/${COMPONENT_OR_FEATURE_NAME}/index.ts
18
+ cat <<EOF > src/components/features/${COMPONENT_OR_FEATURE_NAME}/index.ts
19
19
  export * from './${COMPONENT_OR_FEATURE_NAME}'
20
20
  EOF
21
21
 
22
- cat <<EOF >> src/components/feature/index.ts
22
+ cat <<EOF >> src/components/features/index.ts
23
23
  export * from './${COMPONENT_OR_FEATURE_NAME}'
24
24
  EOF
25
25
 
26
26
  cat <<EOF >> src/components/index.ts
27
- export * from './feature/${COMPONENT_OR_FEATURE_NAME}'
27
+ export * from './features/${COMPONENT_OR_FEATURE_NAME}'
28
28
  EOF
29
29
 
30
- touch src/components/feature/${COMPONENT_OR_FEATURE_NAME}/{${COMPONENT_OR_FEATURE_NAME}.stories.tsx,${COMPONENT_OR_FEATURE_NAME}.tsx}
30
+ touch src/components/features/${COMPONENT_OR_FEATURE_NAME}/{${COMPONENT_OR_FEATURE_NAME}.stories.tsx,${COMPONENT_OR_FEATURE_NAME}.tsx}
31
31
  ;;
32
32
  component)
33
33
  echo "Creating component template"
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react"
2
2
  import { Header } from "./header"
3
3
 
4
4
  const meta: Meta<typeof Header> = {
5
- title: "Feature/Header",
5
+ title: "Components/Header",
6
6
  component: Header,
7
7
  parameters: {
8
8
  layout: "fullscreen",
@@ -9,7 +9,7 @@ import {
9
9
  } from "@/components/ui/breadcrumb"
10
10
  import { ChevronRight, Home } from "lucide-react"
11
11
 
12
- type BreadcrumbItem = {
12
+ export type BreadcrumbItem = {
13
13
  label: string
14
14
  href?: string
15
15
  isCurrentPage?: boolean
@@ -26,7 +26,7 @@ interface HeaderProps {
26
26
  export function Header({ title, breadcrumbItems = [], showHomeLink = true, className = "", children }: HeaderProps) {
27
27
  return (
28
28
  <header className={`border-b pb-4 ${className}`}>
29
- <div className="container mx-auto p-4">
29
+ <div className="container mx-auto px-4">
30
30
  {(breadcrumbItems.length > 0 || showHomeLink) && (
31
31
  <Breadcrumb className="mb-2">
32
32
  <BreadcrumbList>
@@ -66,9 +66,10 @@ export function Header({ title, breadcrumbItems = [], showHomeLink = true, class
66
66
  </Breadcrumb>
67
67
  )}
68
68
 
69
- {title && <h1 className="text-2xl font-bold tracking-tight">{title}</h1>}
70
-
71
- {children}
69
+ <div className="flex items-center justify-between">
70
+ {title && <h1 className="text-2xl font-bold tracking-tight">{title}</h1>}
71
+ {children && <div className="flex items-center">{children}</div>}
72
+ </div>
72
73
  </div>
73
74
  </header>
74
75
  )
@@ -0,0 +1 @@
1
+ export * from './ui/accordion'
@@ -0,0 +1 @@
1
+ export * from './accordion'
@@ -8,7 +8,7 @@ const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
8
8
  <input
9
9
  type={type}
10
10
  className={cn(
11
- "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
11
+ "flex h-9 w-full rounded-md border focus:border-[--primary] border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
12
12
  className
13
13
  )}
14
14
  ref={ref}
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import * as React from "react"
2
4
  import * as SheetPrimitive from "@radix-ui/react-dialog"
3
5
  import { cva, type VariantProps } from "class-variance-authority"
@@ -3,7 +3,7 @@ import { Toaster as Sonner } from "sonner"
3
3
 
4
4
  type ToasterProps = React.ComponentProps<typeof Sonner>
5
5
 
6
- const SonnerToaster = ({ ...props }: ToasterProps) => {
6
+ const Toaster = ({ ...props }: ToasterProps) => {
7
7
  const { theme = "system" } = useTheme()
8
8
 
9
9
  return (
@@ -26,4 +26,4 @@ const SonnerToaster = ({ ...props }: ToasterProps) => {
26
26
  )
27
27
  }
28
28
 
29
- export { SonnerToaster }
29
+ export { Toaster }
package/src/index.css CHANGED
@@ -888,18 +888,6 @@ body{
888
888
  margin-bottom: 0.5rem;
889
889
  }
890
890
 
891
- .mb-4{
892
- margin-bottom: 1rem;
893
- }
894
-
895
- .mb-6{
896
- margin-bottom: 1.5rem;
897
- }
898
-
899
- .mb-8{
900
- margin-bottom: 2rem;
901
- }
902
-
903
891
  .ml-1{
904
892
  margin-left: 0.25rem;
905
893
  }
@@ -912,14 +900,6 @@ body{
912
900
  margin-right: 0.25rem;
913
901
  }
914
902
 
915
- .mt-0\.5{
916
- margin-top: 0.125rem;
917
- }
918
-
919
- .mt-1{
920
- margin-top: 0.25rem;
921
- }
922
-
923
903
  .mt-1\.5{
924
904
  margin-top: 0.375rem;
925
905
  }
@@ -936,10 +916,6 @@ body{
936
916
  margin-top: 1rem;
937
917
  }
938
918
 
939
- .mt-6{
940
- margin-top: 1.5rem;
941
- }
942
-
943
919
  .mt-auto{
944
920
  margin-top: auto;
945
921
  }
@@ -981,10 +957,6 @@ body{
981
957
  height: 1rem;
982
958
  }
983
959
 
984
- .h-0\.5{
985
- height: 0.125rem;
986
- }
987
-
988
960
  .h-1\.5{
989
961
  height: 0.375rem;
990
962
  }
@@ -1037,18 +1009,10 @@ body{
1037
1009
  height: 2.25rem;
1038
1010
  }
1039
1011
 
1040
- .h-\[180px\]{
1041
- height: 180px;
1042
- }
1043
-
1044
1012
  .h-\[1px\]{
1045
1013
  height: 1px;
1046
1014
  }
1047
1015
 
1048
- .h-\[240px\]{
1049
- height: 240px;
1050
- }
1051
-
1052
1016
  .h-\[var\(--radix-navigation-menu-viewport-height\)\]{
1053
1017
  height: var(--radix-navigation-menu-viewport-height);
1054
1018
  }
@@ -1137,10 +1101,6 @@ body{
1137
1101
  width: 1rem;
1138
1102
  }
1139
1103
 
1140
- .w-48{
1141
- width: 12rem;
1142
- }
1143
-
1144
1104
  .w-5{
1145
1105
  width: 1.25rem;
1146
1106
  }
@@ -1242,10 +1202,6 @@ body{
1242
1202
  min-width: var(--radix-select-trigger-width);
1243
1203
  }
1244
1204
 
1245
- .max-w-2xl{
1246
- max-width: 42rem;
1247
- }
1248
-
1249
1205
  .max-w-\[--skeleton-width\]{
1250
1206
  max-width: var(--skeleton-width);
1251
1207
  }
@@ -1263,10 +1219,6 @@ body{
1263
1219
  max-width: 24rem;
1264
1220
  }
1265
1221
 
1266
- .max-w-xl{
1267
- max-width: 36rem;
1268
- }
1269
-
1270
1222
  .max-w-xs{
1271
1223
  max-width: 20rem;
1272
1224
  }
@@ -1409,10 +1361,6 @@ body{
1409
1361
  list-style-type: none;
1410
1362
  }
1411
1363
 
1412
- .grid-cols-2{
1413
- grid-template-columns: repeat(2, minmax(0, 1fr));
1414
- }
1415
-
1416
1364
  .flex-row{
1417
1365
  flex-direction: row;
1418
1366
  }
@@ -1509,12 +1457,6 @@ body{
1509
1457
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
1510
1458
  }
1511
1459
 
1512
- .space-y-4 > :not([hidden]) ~ :not([hidden]){
1513
- --tw-space-y-reverse: 0;
1514
- margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
1515
- margin-bottom: calc(1rem * var(--tw-space-y-reverse));
1516
- }
1517
-
1518
1460
  .self-center{
1519
1461
  align-self: center;
1520
1462
  }
@@ -1596,10 +1538,6 @@ body{
1596
1538
  border-width: 2px;
1597
1539
  }
1598
1540
 
1599
- .border-4{
1600
- border-width: 4px;
1601
- }
1602
-
1603
1541
  .border-\[1\.5px\]{
1604
1542
  border-width: 1.5px;
1605
1543
  }
@@ -1633,11 +1571,6 @@ body{
1633
1571
  border-color: var(--color-border);
1634
1572
  }
1635
1573
 
1636
- .border-blue-100{
1637
- --tw-border-opacity: 1;
1638
- border-color: rgb(219 234 254 / var(--tw-border-opacity, 1));
1639
- }
1640
-
1641
1574
  .border-border\/50{
1642
1575
  border-color: hsl(var(--border) / 0.5);
1643
1576
  }
@@ -1650,19 +1583,10 @@ body{
1650
1583
  border-color: hsl(var(--destructive) / 0.5);
1651
1584
  }
1652
1585
 
1653
- .border-gray-200{
1654
- --tw-border-opacity: 1;
1655
- border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
1656
- }
1657
-
1658
1586
  .border-input{
1659
1587
  border-color: hsl(var(--input));
1660
1588
  }
1661
1589
 
1662
- .border-muted{
1663
- border-color: hsl(var(--muted));
1664
- }
1665
-
1666
1590
  .border-primary{
1667
1591
  border-color: var(--primary);
1668
1592
  }
@@ -1739,20 +1663,10 @@ body{
1739
1663
  background-color: hsl(var(--sidebar-border));
1740
1664
  }
1741
1665
 
1742
- .bg-slate-200{
1743
- --tw-bg-opacity: 1;
1744
- background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));
1745
- }
1746
-
1747
1666
  .bg-transparent{
1748
1667
  background-color: transparent;
1749
1668
  }
1750
1669
 
1751
- .bg-white{
1752
- --tw-bg-opacity: 1;
1753
- background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
1754
- }
1755
-
1756
1670
  .fill-current{
1757
1671
  fill: currentColor;
1758
1672
  }
@@ -1773,10 +1687,6 @@ body{
1773
1687
  padding: 0.5rem;
1774
1688
  }
1775
1689
 
1776
- .p-3{
1777
- padding: 0.75rem;
1778
- }
1779
-
1780
1690
  .p-4{
1781
1691
  padding: 1rem;
1782
1692
  }
@@ -1854,19 +1764,10 @@ body{
1854
1764
  padding-bottom: 1rem;
1855
1765
  }
1856
1766
 
1857
- .py-8{
1858
- padding-top: 2rem;
1859
- padding-bottom: 2rem;
1860
- }
1861
-
1862
1767
  .pb-0{
1863
1768
  padding-bottom: 0px;
1864
1769
  }
1865
1770
 
1866
- .pb-2{
1867
- padding-bottom: 0.5rem;
1868
- }
1869
-
1870
1771
  .pb-3{
1871
1772
  padding-bottom: 0.75rem;
1872
1773
  }
@@ -2023,25 +1924,10 @@ body{
2023
1924
  color: hsl(var(--destructive-foreground));
2024
1925
  }
2025
1926
 
2026
- .text-emerald-500{
2027
- --tw-text-opacity: 1;
2028
- color: rgb(16 185 129 / var(--tw-text-opacity, 1));
2029
- }
2030
-
2031
1927
  .text-foreground{
2032
1928
  color: var(--foreground);
2033
1929
  }
2034
1930
 
2035
- .text-gray-500{
2036
- --tw-text-opacity: 1;
2037
- color: rgb(107 114 128 / var(--tw-text-opacity, 1));
2038
- }
2039
-
2040
- .text-gray-700{
2041
- --tw-text-opacity: 1;
2042
- color: rgb(55 65 81 / var(--tw-text-opacity, 1));
2043
- }
2044
-
2045
1931
  .text-muted-foreground{
2046
1932
  color: hsl(var(--muted-foreground));
2047
1933
  }
@@ -2058,11 +1944,6 @@ body{
2058
1944
  color: hsl(var(--primary-foreground));
2059
1945
  }
2060
1946
 
2061
- .text-red-500{
2062
- --tw-text-opacity: 1;
2063
- color: rgb(239 68 68 / var(--tw-text-opacity, 1));
2064
- }
2065
-
2066
1947
  .text-secondary-foreground{
2067
1948
  color: var(--secondary-foreground);
2068
1949
  }
@@ -2445,11 +2326,6 @@ h1, h2, h3, h4 {
2445
2326
  background-color: hsl(var(--destructive) / 0.9);
2446
2327
  }
2447
2328
 
2448
- .hover\:bg-gray-50:hover{
2449
- --tw-bg-opacity: 1;
2450
- background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
2451
- }
2452
-
2453
2329
  .hover\:bg-muted:hover{
2454
2330
  background-color: hsl(var(--muted));
2455
2331
  }
@@ -2501,6 +2377,10 @@ h1, h2, h3, h4 {
2501
2377
  background-color: hsl(var(--sidebar-border));
2502
2378
  }
2503
2379
 
2380
+ .focus\:border-\[--primary\]:focus{
2381
+ border-color: var(--primary);
2382
+ }
2383
+
2504
2384
  .focus\:bg-accent:focus{
2505
2385
  background-color: var(--accent);
2506
2386
  }
@@ -2575,6 +2455,10 @@ h1, h2, h3, h4 {
2575
2455
  --tw-ring-offset-color: var(--background);
2576
2456
  }
2577
2457
 
2458
+ .active\:border-\[--primary\]:active{
2459
+ border-color: var(--primary);
2460
+ }
2461
+
2578
2462
  .active\:bg-sidebar-accent:active{
2579
2463
  background-color: hsl(var(--sidebar-accent));
2580
2464
  }
package/src/index.ts CHANGED
@@ -1,51 +1,51 @@
1
- export * from "./components/ui/accordion"
2
- export * from "./components/ui/alert-dialog"
3
- export * from "./components/ui/alert"
4
- export * from "./components/ui/aspect-ratio"
5
- export * from "./components/ui/avatar"
6
- export * from "./components/ui/badge"
7
- export * from "./components/ui/breadcrumb"
8
- export * from "./components/ui/button"
9
- export * from "./components/ui/card"
10
- export * from "./components/ui/carousel"
11
- export * from "./components/ui/chart"
12
- export * from "./components/ui/checkbox"
13
- export * from "./components/ui/collapsible"
14
- export * from "./components/ui/context-menu"
15
- export * from "./components/ui/dialog"
16
- export * from "./components/ui/drawer"
17
- export * from "./components/ui/dropdown-menu"
18
- export * from "./components/ui/form"
19
- export * from "./components/ui/hover-card"
20
- export * from "./components/ui/input-otp"
21
- export * from "./components/ui/input"
22
- export * from "./components/ui/label"
23
- export * from "./components/ui/menubar"
24
- export * from "./components/ui/navigation-menu"
25
- export * from "./components/ui/pagination"
26
- export * from "./components/ui/popover"
27
- export * from "./components/ui/progress"
28
- export * from "./components/ui/radio-group"
29
- export * from "./components/ui/resizable"
30
- export * from "./components/ui/scroll-area"
31
- export * from "./components/ui/select"
32
- export * from "./components/ui/separator"
33
- export * from "./components/ui/sheet"
34
- export * from "./components/ui/sidebar"
35
- export * from "./components/ui/skeleton"
36
- export * from "./components/ui/slider"
37
- export * from "./components/ui/sonner"
38
- export * from "./components/ui/switch"
39
- export * from "./components/ui/table"
40
- export * from "./components/ui/tabs"
41
- export * from "./components/ui/textarea"
42
- export * from "./components/ui/toast"
43
- export * from "./components/ui/toaster"
44
- export * from "./components/ui/toggle-group"
45
- export * from "./components/ui/toggle"
46
- export * from "./components/ui/tooltip"
47
- export * from "./components/feature/graph-card"
48
- export * from "./components/feature/header"
49
- export * from "./components/feature/login-form"
50
- export * from "./components/feature/search-bar"
51
- export * from "./components/feature/wizard"
1
+ export { Button } from './components/ui/button';
2
+ export {
3
+ Dialog,
4
+ DialogPortal,
5
+ DialogOverlay,
6
+ DialogTrigger,
7
+ DialogClose,
8
+ DialogContent,
9
+ DialogHeader,
10
+ DialogFooter,
11
+ DialogTitle,
12
+ DialogDescription,
13
+ } from './components/ui/dialog';
14
+ export {
15
+ Sidebar,
16
+ SidebarContent,
17
+ SidebarFooter,
18
+ SidebarGroup,
19
+ SidebarGroupAction,
20
+ SidebarGroupContent,
21
+ SidebarGroupLabel,
22
+ SidebarHeader,
23
+ SidebarInput,
24
+ SidebarInset,
25
+ SidebarMenu,
26
+ SidebarMenuAction,
27
+ SidebarMenuBadge,
28
+ SidebarMenuButton,
29
+ SidebarMenuItem,
30
+ SidebarMenuSkeleton,
31
+ SidebarMenuSub,
32
+ SidebarMenuSubButton,
33
+ SidebarMenuSubItem,
34
+ SidebarProvider,
35
+ SidebarRail,
36
+ SidebarSeparator,
37
+ SidebarTrigger,
38
+ useSidebar,
39
+ } from './components/ui/sidebar';
40
+ export {
41
+ Breadcrumb,
42
+ BreadcrumbList,
43
+ BreadcrumbItem,
44
+ BreadcrumbLink,
45
+ BreadcrumbPage,
46
+ BreadcrumbSeparator,
47
+ BreadcrumbEllipsis,
48
+ } from './components/ui/breadcrumb';
49
+ export {
50
+ Header
51
+ } from './components/feature/header'
@@ -92,3 +92,5 @@ const config: Config = {
92
92
  }
93
93
 
94
94
  export default config
95
+
96
+
@@ -1,35 +0,0 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
- name: Node.js Package
5
-
6
- on:
7
- release:
8
- types: [created]
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - uses: actions/checkout@v4
15
- - uses: actions/setup-node@v4
16
- with:
17
- node-version: 20
18
- - run: npm ci
19
- - run: npm test
20
- - run: npm prepublish
21
-
22
- publish-npm:
23
- needs: build
24
- runs-on: ubuntu-latest
25
- steps:
26
- - uses: actions/checkout@v4
27
- - uses: actions/setup-node@v4
28
- with:
29
- node-version: 20
30
- registry-url: https://registry.npmjs.org/
31
- - run: npm ci
32
- - run: npm prepublish
33
- - run: npm publish
34
- env:
35
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -1,16 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Starting fresh
4
- rm src/index.ts
5
-
6
- # Add Components
7
- for import in `ls src/components/ui/ | grep -v '.stories.' | cut -f1 -d\.`;
8
- do
9
- echo 'export * from "./components/ui/'$import'"' >> src/index.ts
10
- done
11
-
12
- # Add Features
13
- for import in `ls src/components/feature/ | grep -v '.stories.' | cut -f1 -d\.`;
14
- do
15
- echo 'export * from "./components/feature/'${import}'"' >> src/index.ts
16
- done