@dax-ui/tokens 0.1.0 → 0.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @dax-ui/tokens
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Relicense under MIT (previously proprietary, all rights reserved).
8
+
9
+ ## 0.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - bbb8ff9: New `@dax-ui/sidebar` package: app navigation with sections, active item, router links,
14
+ badges, disabled items, expandable groups, collapsing to icons with tooltips, a mobile
15
+ drawer and a `SidebarUser` footer card. Customizable logo (`logoIcon`/`logoSrc`,
16
+ `logoTitle`, `logoSubtitle`, `logoHref`), `floating` layout, `colors` overrides,
17
+ `backgroundImage` with a tint, and `showGrid`. `@dax-ui/tokens` adds `color.sidebar`, and
18
+ `@dax-ui/react` now includes the sidebar.
19
+
3
20
  ## 0.1.0
4
21
 
5
22
  ### Minor Changes
package/LICENSE CHANGED
@@ -1,12 +1,21 @@
1
- Copyright (c) 2026 Digital Auxilius. All rights reserved.
2
-
3
- This software and its source code are proprietary. They are made publicly available
4
- for viewing and installation only. No license is granted to use, copy, modify, merge,
5
- publish, distribute, sublicense or sell copies of this software, in whole or in part,
6
- except under a separate written agreement with Digital Auxilius.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
9
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
10
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
11
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF OR
12
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Digital Auxilius
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -31,6 +31,7 @@ tokens.font.family; // '"Inter", "Helvetica Neue", Arial, sans-serif'
31
31
  | `color.brand` | Scale `50`, `100`, `300`, `500`, `600`, `700`, `900` |
32
32
  | `color.neutral` | Scale `0`, `50`, `100`, `200`, `400`, `600`, `800`, `900`, `950` |
33
33
  | `color.success` / `warning` / `error` / `info` | Single status colors |
34
+ | `color.sidebar` | `backgroundFrom` / `backgroundTo` (gradient), `accent` (active tile), `onAccent` |
34
35
  | `radius` | `sm` 4, `md` 8, `lg` 12 (px) |
35
36
  | `spacingUnit` | 8 (px); `theme.spacing(n)` is `n * spacingUnit` |
36
37
  | `font.family` | Inter, with system fallbacks |
package/lib/index.d.ts CHANGED
@@ -29,6 +29,15 @@ declare const tokens: {
29
29
  readonly warning: "#d97706";
30
30
  readonly error: "#dc2626";
31
31
  readonly info: "#0284c7";
32
+ /** The sidebar is a dark brand surface in both light and dark mode. */
33
+ readonly sidebar: {
34
+ readonly backgroundFrom: "#0b3554";
35
+ readonly backgroundTo: "#16707f";
36
+ /** Active item tile, avatar and focus ring. */
37
+ readonly accent: "#2ec4b6";
38
+ /** Text and icons on `accent`. */
39
+ readonly onAccent: "#073049";
40
+ };
32
41
  };
33
42
  readonly radius: {
34
43
  readonly sm: 4;
package/lib/index.js CHANGED
@@ -24,7 +24,16 @@ var tokens = {
24
24
  success: "#16a34a",
25
25
  warning: "#d97706",
26
26
  error: "#dc2626",
27
- info: "#0284c7"
27
+ info: "#0284c7",
28
+ /** The sidebar is a dark brand surface in both light and dark mode. */
29
+ sidebar: {
30
+ backgroundFrom: "#0b3554",
31
+ backgroundTo: "#16707f",
32
+ /** Active item tile, avatar and focus ring. */
33
+ accent: "#2ec4b6",
34
+ /** Text and icons on `accent`. */
35
+ onAccent: "#073049"
36
+ }
28
37
  },
29
38
  radius: {
30
39
  sm: 4,
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Design tokens: the single source of truth for brand values.\n * Placeholder values — replace with the values from your Figma file.\n * This module has no React or MUI imports so it is safe in server code.\n */\nexport const tokens = {\n color: {\n brand: {\n 50: '#eef4ff',\n 100: '#dbe6fe',\n 300: '#93b4fd',\n 500: '#3b6ef6',\n 600: '#2554eb',\n 700: '#1d42d8',\n 900: '#1e3279',\n },\n neutral: {\n 0: '#ffffff',\n 50: '#f8fafc',\n 100: '#f1f5f9',\n 200: '#e2e8f0',\n 400: '#94a3b8',\n 600: '#475569',\n 800: '#1e293b',\n 900: '#0f172a',\n 950: '#020617',\n },\n success: '#16a34a',\n warning: '#d97706',\n error: '#dc2626',\n info: '#0284c7',\n },\n radius: {\n sm: 4,\n md: 8,\n lg: 12,\n },\n /** Base spacing unit in px; theme.spacing(n) = n * unit. */\n spacingUnit: 8,\n font: {\n family: '\"Inter\", \"Helvetica Neue\", Arial, sans-serif',\n weight: { regular: 400, medium: 500, semibold: 600, bold: 700 },\n },\n} as const;\n\nexport type Tokens = typeof tokens;\n"],"mappings":";AAKO,IAAM,SAAS;AAAA,EACpB,OAAO;AAAA,IACL,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,IACP;AAAA,IACA,SAAS;AAAA,MACP,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,IACP;AAAA,IACA,SAAS;AAAA,IACT,SAAS;AAAA,IACT,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAAA,EACA,QAAQ;AAAA,IACN,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AAAA;AAAA,EAEA,aAAa;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ,EAAE,SAAS,KAAK,QAAQ,KAAK,UAAU,KAAK,MAAM,IAAI;AAAA,EAChE;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Design tokens: the single source of truth for brand values.\n * Placeholder values — replace with the values from your Figma file.\n * This module has no React or MUI imports so it is safe in server code.\n */\nexport const tokens = {\n color: {\n brand: {\n 50: '#eef4ff',\n 100: '#dbe6fe',\n 300: '#93b4fd',\n 500: '#3b6ef6',\n 600: '#2554eb',\n 700: '#1d42d8',\n 900: '#1e3279',\n },\n neutral: {\n 0: '#ffffff',\n 50: '#f8fafc',\n 100: '#f1f5f9',\n 200: '#e2e8f0',\n 400: '#94a3b8',\n 600: '#475569',\n 800: '#1e293b',\n 900: '#0f172a',\n 950: '#020617',\n },\n success: '#16a34a',\n warning: '#d97706',\n error: '#dc2626',\n info: '#0284c7',\n /** The sidebar is a dark brand surface in both light and dark mode. */\n sidebar: {\n backgroundFrom: '#0b3554',\n backgroundTo: '#16707f',\n /** Active item tile, avatar and focus ring. */\n accent: '#2ec4b6',\n /** Text and icons on `accent`. */\n onAccent: '#073049',\n },\n },\n radius: {\n sm: 4,\n md: 8,\n lg: 12,\n },\n /** Base spacing unit in px; theme.spacing(n) = n * unit. */\n spacingUnit: 8,\n font: {\n family: '\"Inter\", \"Helvetica Neue\", Arial, sans-serif',\n weight: { regular: 400, medium: 500, semibold: 600, bold: 700 },\n },\n} as const;\n\nexport type Tokens = typeof tokens;\n"],"mappings":";AAKO,IAAM,SAAS;AAAA,EACpB,OAAO;AAAA,IACL,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,IACP;AAAA,IACA,SAAS;AAAA,MACP,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,IACP;AAAA,IACA,SAAS;AAAA,IACT,SAAS;AAAA,IACT,OAAO;AAAA,IACP,MAAM;AAAA;AAAA,IAEN,SAAS;AAAA,MACP,gBAAgB;AAAA,MAChB,cAAc;AAAA;AAAA,MAEd,QAAQ;AAAA;AAAA,MAER,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,QAAQ;AAAA,IACN,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AAAA;AAAA,EAEA,aAAa;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ,EAAE,SAAS,KAAK,QAAQ,KAAK,UAAU,KAAK,MAAM,IAAI;AAAA,EAChE;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dax-ui/tokens",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Design tokens for dax-ui (plain data, server-safe)",
5
5
  "keywords": [
6
6
  "dax-ui",
@@ -18,7 +18,7 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/FaaizHussain26/DAX-UI/issues"
20
20
  },
21
- "license": "UNLICENSED",
21
+ "license": "MIT",
22
22
  "type": "module",
23
23
  "sideEffects": false,
24
24
  "main": "lib/index.js",