@alepha/ui 0.13.1 → 0.13.2

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
@@ -7,7 +7,7 @@
7
7
  "mantine"
8
8
  ],
9
9
  "author": "Nicolas Foures",
10
- "version": "0.13.1",
10
+ "version": "0.13.2",
11
11
  "type": "module",
12
12
  "engines": {
13
13
  "node": ">=22.0.0"
@@ -21,7 +21,7 @@
21
21
  "src"
22
22
  ],
23
23
  "dependencies": {
24
- "@alepha/react": "0.13.1",
24
+ "@alepha/react": "0.13.2",
25
25
  "@mantine/core": "^8.3.9",
26
26
  "@mantine/dates": "^8.3.9",
27
27
  "@mantine/hooks": "^8.3.9",
@@ -30,7 +30,7 @@
30
30
  "@mantine/nprogress": "^8.3.9",
31
31
  "@mantine/spotlight": "^8.3.9",
32
32
  "@tabler/icons-react": "^3.35.0",
33
- "alepha": "0.13.1",
33
+ "alepha": "0.13.2",
34
34
  "dayjs": "^1.11.19"
35
35
  },
36
36
  "devDependencies": {
@@ -56,15 +56,18 @@
56
56
  "exports": {
57
57
  "./admin": {
58
58
  "types": "./dist/admin/index.js",
59
- "import": "./dist/admin/index.js"
59
+ "import": "./dist/admin/index.js",
60
+ "default": "./dist/admin/index.js"
60
61
  },
61
62
  "./auth": {
62
63
  "types": "./dist/auth/index.js",
63
- "import": "./dist/auth/index.js"
64
+ "import": "./dist/auth/index.js",
65
+ "default": "./dist/auth/index.js"
64
66
  },
65
67
  ".": {
66
68
  "types": "./dist/core/index.js",
67
- "import": "./dist/core/index.js"
69
+ "import": "./dist/core/index.js",
70
+ "default": "./dist/core/index.js"
68
71
  },
69
72
  "./styles": "./styles.css"
70
73
  },
@@ -14,7 +14,7 @@ const AdminParameters = () => {
14
14
  <Text c="dimmed">Parameter Management</Text>
15
15
  <Text size="xs" c="dimmed" ta="center" maw={400}>
16
16
  Application parameters and configuration settings. Define parameters
17
- using the $config descriptor to manage dynamic application settings.
17
+ using the $config primitive to manage dynamic application settings.
18
18
  </Text>
19
19
  </Stack>
20
20
  </Flex>
@@ -12,18 +12,23 @@ const OmnibarButton = (props: OmnibarButtonProps) => {
12
12
  return (
13
13
  <ActionButton
14
14
  variant={"default"}
15
- miw={256}
16
15
  onClick={spotlight.open}
17
16
  justify={"space-between"}
18
- rightSection={<Kbd size={"sm"}>⌘+K</Kbd>}
17
+ rightSection={
18
+ <Kbd visibleFrom={"sm"} size={"sm"}>
19
+ ⌘+K
20
+ </Kbd>
21
+ }
19
22
  radius={"md"}
20
23
  {...props.actionProps}
21
24
  >
22
25
  <Flex align={"center"} gap={"xs"}>
23
26
  <IconSearch size={16} color={"gray"} />
24
- <Text size={"xs"} c={"dimmed"}>
25
- Search...
26
- </Text>
27
+ <Flex visibleFrom={"sm"} miw={192}>
28
+ <Text size={"xs"} c={"dimmed"}>
29
+ Search...
30
+ </Text>
31
+ </Flex>
27
32
  </Flex>
28
33
  </ActionButton>
29
34
  );
@@ -20,7 +20,12 @@ const Omnibar = (props: OmnibarProps) => {
20
20
  id: page.name,
21
21
  label: page.label ?? page.name,
22
22
  description: page.description,
23
- onClick: () => router.go(page.name),
23
+ onClick: () => {
24
+ if (page.staticName) {
25
+ return router.go(page.staticName, { params: page.params });
26
+ }
27
+ return router.go(page.name);
28
+ },
24
29
  leftSection: page.icon,
25
30
  })),
26
31
  [],
package/src/core/index.ts CHANGED
@@ -102,7 +102,7 @@ declare module "typebox" {
102
102
  }
103
103
 
104
104
  declare module "@alepha/react" {
105
- interface PageDescriptorOptions {
105
+ interface PagePrimitiveOptions {
106
106
  /**
107
107
  * Human-readable title for the page.
108
108
  * - for Sidebar navigation