@astralui/core 0.1.7 → 0.1.9

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/dist/styles.css CHANGED
@@ -44,11 +44,18 @@ button, input, optgroup, select, textarea { font-family: inherit; font-size: 100
44
44
  --astral-color-blue-5: #339af0;
45
45
  --astral-color-blue-6: #228be6;
46
46
  --astral-color-blue-7: #1c7ed6;
47
+ --astral-color-cyan-4: #3bc9db;
48
+ --astral-color-cyan-5: #22b8cf;
47
49
  --astral-color-cyan-6: #15aabf;
50
+ --astral-color-cyan-7: #1098ad;
48
51
  --astral-color-cyan-8: #0c8599;
49
52
  --astral-color-grape-6: #be4bdb;
50
53
  --astral-color-grape-7: #ae3ec9;
54
+ --astral-color-indigo-4: #748ffc;
55
+ --astral-color-indigo-5: #5c7cfa;
51
56
  --astral-color-indigo-6: #4c6ef5;
57
+ --astral-color-indigo-7: #4263eb;
58
+ --astral-color-indigo-8: #3b5bdb;
52
59
  --astral-color-gray-0: #f8f9fa;
53
60
  --astral-color-gray-1: #f1f3f5;
54
61
  --astral-color-gray-2: #e9ecef;
@@ -62,6 +69,11 @@ button, input, optgroup, select, textarea { font-family: inherit; font-size: 100
62
69
  --astral-color-green-7: #37b24d;
63
70
  --astral-color-green-8: #2f9e44;
64
71
  --astral-color-green-9: #2b8a3e;
72
+ --astral-color-lime-4: #a9e34b;
73
+ --astral-color-lime-5: #94d82d;
74
+ --astral-color-lime-6: #82c91e;
75
+ --astral-color-lime-7: #74b816;
76
+ --astral-color-lime-8: #66a80f;
65
77
  --astral-color-orange-5: #ff922b;
66
78
  --astral-color-orange-6: #fd7e14;
67
79
  --astral-color-orange-7: #f76707;
@@ -70,6 +82,11 @@ button, input, optgroup, select, textarea { font-family: inherit; font-size: 100
70
82
  --astral-color-red-6: #fa5252;
71
83
  --astral-color-red-7: #f03e3e;
72
84
  --astral-color-red-8: #e03131;
85
+ --astral-color-pink-4: #f783ac;
86
+ --astral-color-pink-5: #f06595;
87
+ --astral-color-pink-6: #e64980;
88
+ --astral-color-pink-7: #d6336c;
89
+ --astral-color-pink-8: #c2255c;
73
90
  --astral-color-teal-5: #20c997;
74
91
  --astral-color-teal-6: #12b886;
75
92
  --astral-color-teal-7: #0ca678;
@@ -900,3 +917,23 @@ button, input, optgroup, select, textarea { font-family: inherit; font-size: 100
900
917
  .au-search .clr { position: absolute; right: 8px; width: 20px; height: 20px; border: 0; background: none; color: var(--au-faint); cursor: pointer; border-radius: 6px; display: grid; place-items: center; }
901
918
  .au-search .clr:hover { color: var(--au-text); background: var(--au-line); }
902
919
  .au-search .clr svg { width: 13px; height: 13px; }
920
+
921
+
922
+ /* ===== src/styles/collapse.css ===== */
923
+ /* AstralUI collapsible - a folding panel that animates open AND closed via an
924
+ exact measured max-height. Render via <Collapsible title="...">...</Collapsible>. */
925
+ .au-collapse { border: 1px solid var(--au-line); border-radius: 14px; background: var(--au-panel); box-shadow: var(--au-shadow); overflow: hidden; }
926
+ .au-collapse-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 15px; font: inherit; font-size: 13px; font-weight: 700; color: var(--au-text); background: none; border: 0; text-align: left; cursor: pointer; }
927
+ .au-collapse-head:hover:not(:disabled) { background: var(--au-surface-2); }
928
+ .au-collapse-head:disabled { opacity: .6; cursor: not-allowed; }
929
+ .au-collapse-title { min-width: 0; }
930
+ .au-collapse--open .au-collapse-head { border-bottom: 1px solid var(--au-line); }
931
+ .au-collapse-chev { flex: 0 0 auto; color: var(--au-dim); transition: transform .2s ease; }
932
+ .au-collapse--open .au-collapse-chev { transform: rotate(180deg); }
933
+ /* The region animates height; the inner fades so content doesn't flash in fully formed. */
934
+ .au-collapse-region { max-height: 0; overflow: hidden; transition: max-height .3s cubic-bezier(.4, 0, .2, 1); }
935
+ .au-collapse-inner { padding: 14px; opacity: 0; transition: opacity .22s ease; }
936
+ .au-collapse--open .au-collapse-inner { opacity: 1; }
937
+ @media (prefers-reduced-motion: reduce) {
938
+ .au-collapse-region, .au-collapse-inner, .au-collapse-chev { transition: none; }
939
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astralui/core",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "AstralUI - a self-contained, dependency-free React design system: theme engine (light/dark + per-brand theming), design tokens, and components (Modal, Drawer, Select, Menu, Toast, DateInput, PinInput, Spinner).",
5
5
  "license": "MIT",
6
6
  "author": "Unbounded Technologies",
@@ -32,6 +32,7 @@
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsup && node scripts/build-css.mjs",
35
+ "playground": "node scripts/build-playground.mjs",
35
36
  "dev": "tsup --watch",
36
37
  "typecheck": "tsc --noEmit",
37
38
  "prepublishOnly": "npm run build"
@@ -46,9 +47,9 @@
46
47
  "astralui"
47
48
  ],
48
49
  "peerDependencies": {
50
+ "@tabler/icons-react": ">=3",
49
51
  "react": ">=18",
50
- "react-dom": ">=18",
51
- "@tabler/icons-react": ">=3"
52
+ "react-dom": ">=18"
52
53
  },
53
54
  "dependencies": {
54
55
  "chroma-js": "^3.2.0"
@@ -58,6 +59,7 @@
58
59
  "@types/chroma-js": "^3.1.0",
59
60
  "@types/react": "^19.0.0",
60
61
  "@types/react-dom": "^19.0.0",
62
+ "esbuild": "^0.28.0",
61
63
  "react": "^19.0.0",
62
64
  "react-dom": "^19.0.0",
63
65
  "tsup": "^8.3.0",