@nanisoft/prism-ui 0.8.0 → 0.10.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.
@@ -0,0 +1,93 @@
1
+ Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
Binary file
Binary file
package/dist/styles.css CHANGED
@@ -84,6 +84,15 @@
84
84
  --duration-fast: 80ms;
85
85
  --duration-base: 160ms;
86
86
  --duration-slow: 280ms;
87
+ --ambient-travel: 7200ms;
88
+ --ambient-sweep: 9000ms;
89
+ --ambient-drift: 18000ms;
90
+ --ambient-scan: 6000ms;
91
+ --ambient-pulse: 2400ms;
92
+ --ambient-shimmer: 3200ms;
93
+ --ambient-ease-linear: cubic-bezier(0, 0, 1, 1);
94
+ --ambient-ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
95
+ --ambient-ease-drift: cubic-bezier(0.37, 0, 0.63, 1);
87
96
  --transition-duration-fast: var(--duration-fast);
88
97
  --transition-duration-base: var(--duration-base);
89
98
  --transition-duration-slow: var(--duration-slow);
@@ -623,6 +632,9 @@
623
632
  .caption-bottom {
624
633
  caption-side: bottom;
625
634
  }
635
+ .origin-bottom {
636
+ transform-origin: bottom;
637
+ }
626
638
  .-translate-x-1\/2 {
627
639
  --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
628
640
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -862,6 +874,12 @@
862
874
  .border-warning {
863
875
  border-color: var(--warning);
864
876
  }
877
+ .bg-\[color\:var\(--x\)\]\/50 {
878
+ background-color: var(--x);
879
+ @supports (color: color-mix(in lab, red, red)) {
880
+ background-color: color-mix(in oklab, var(--x) 50%, transparent);
881
+ }
882
+ }
865
883
  .bg-accent {
866
884
  background-color: var(--accent);
867
885
  }
@@ -951,6 +969,33 @@
951
969
  .fill-accent {
952
970
  fill: var(--accent);
953
971
  }
972
+ .fill-brand-ink {
973
+ fill: var(--brand-ink);
974
+ }
975
+ .fill-brand-ink\/10 {
976
+ fill: var(--brand-ink);
977
+ @supports (color: color-mix(in lab, red, red)) {
978
+ fill: color-mix(in oklab, var(--brand-ink) 10%, transparent);
979
+ }
980
+ }
981
+ .fill-brand-ink\/25 {
982
+ fill: var(--brand-ink);
983
+ @supports (color: color-mix(in lab, red, red)) {
984
+ fill: color-mix(in oklab, var(--brand-ink) 25%, transparent);
985
+ }
986
+ }
987
+ .fill-brand-ink\/45 {
988
+ fill: var(--brand-ink);
989
+ @supports (color: color-mix(in lab, red, red)) {
990
+ fill: color-mix(in oklab, var(--brand-ink) 45%, transparent);
991
+ }
992
+ }
993
+ .fill-brand-ink\/\[0\.4\] {
994
+ fill: var(--brand-ink);
995
+ @supports (color: color-mix(in lab, red, red)) {
996
+ fill: color-mix(in oklab, var(--brand-ink) 40%, transparent);
997
+ }
998
+ }
954
999
  .fill-card {
955
1000
  fill: var(--card);
956
1001
  }
@@ -960,9 +1005,21 @@
960
1005
  .fill-foreground {
961
1006
  fill: var(--foreground);
962
1007
  }
1008
+ .fill-foreground\/12 {
1009
+ fill: var(--foreground);
1010
+ @supports (color: color-mix(in lab, red, red)) {
1011
+ fill: color-mix(in oklab, var(--foreground) 12%, transparent);
1012
+ }
1013
+ }
963
1014
  .fill-muted-foreground {
964
1015
  fill: var(--muted-foreground);
965
1016
  }
1017
+ .fill-muted-foreground\/35 {
1018
+ fill: var(--muted-foreground);
1019
+ @supports (color: color-mix(in lab, red, red)) {
1020
+ fill: color-mix(in oklab, var(--muted-foreground) 35%, transparent);
1021
+ }
1022
+ }
966
1023
  .fill-none {
967
1024
  fill: none;
968
1025
  }
@@ -975,12 +1032,24 @@
975
1032
  .stroke-brand-ink {
976
1033
  stroke: var(--brand-ink);
977
1034
  }
1035
+ .stroke-brand-ink\/60 {
1036
+ stroke: var(--brand-ink);
1037
+ @supports (color: color-mix(in lab, red, red)) {
1038
+ stroke: color-mix(in oklab, var(--brand-ink) 60%, transparent);
1039
+ }
1040
+ }
978
1041
  .stroke-current {
979
1042
  stroke: currentcolor;
980
1043
  }
981
1044
  .stroke-muted-foreground {
982
1045
  stroke: var(--muted-foreground);
983
1046
  }
1047
+ .stroke-muted-foreground\/50 {
1048
+ stroke: var(--muted-foreground);
1049
+ @supports (color: color-mix(in lab, red, red)) {
1050
+ stroke: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
1051
+ }
1052
+ }
984
1053
  .stroke-red-500 {
985
1054
  stroke: var(--color-red-500);
986
1055
  }
@@ -1846,6 +1915,9 @@
1846
1915
  .lg\:grid-cols-4 {
1847
1916
  grid-template-columns: repeat(4, minmax(0, 1fr));
1848
1917
  }
1918
+ .lg\:grid-cols-\[5fr_6fr\] {
1919
+ grid-template-columns: 5fr 6fr;
1920
+ }
1849
1921
  .lg\:grid-cols-\[15rem_minmax\(0\,1fr\)\] {
1850
1922
  grid-template-columns: 15rem minmax(0,1fr);
1851
1923
  }
@@ -1855,6 +1927,9 @@
1855
1927
  .lg\:gap-10 {
1856
1928
  gap: var(--spacing-10);
1857
1929
  }
1930
+ .lg\:gap-14 {
1931
+ gap: var(--spacing-14);
1932
+ }
1858
1933
  .lg\:overflow-y-auto {
1859
1934
  overflow-y: auto;
1860
1935
  }
@@ -2122,6 +2197,27 @@
2122
2197
  color: var(--destructive);
2123
2198
  }
2124
2199
  }
2200
+ @font-face {
2201
+ font-family: 'Inter';
2202
+ font-style: normal;
2203
+ font-weight: 400;
2204
+ font-display: swap;
2205
+ src: url('./fonts/inter-latin-400.woff2') format('woff2');
2206
+ }
2207
+ @font-face {
2208
+ font-family: 'Inter';
2209
+ font-style: normal;
2210
+ font-weight: 500;
2211
+ font-display: swap;
2212
+ src: url('./fonts/inter-latin-500.woff2') format('woff2');
2213
+ }
2214
+ @font-face {
2215
+ font-family: 'Inter';
2216
+ font-style: normal;
2217
+ font-weight: 600;
2218
+ font-display: swap;
2219
+ src: url('./fonts/inter-latin-600.woff2') format('woff2');
2220
+ }
2125
2221
  :root {
2126
2222
  --radius: 0.5rem;
2127
2223
  --background: #ffffff;
@@ -2602,7 +2698,111 @@
2602
2698
  --sidebar-ring: #feb98b;
2603
2699
  --radius: 1rem;
2604
2700
  }
2701
+ @keyframes prism-travel {
2702
+ from {
2703
+ transform: translateX(0);
2704
+ }
2705
+ to {
2706
+ transform: translateX(var(--ambient-travel-distance, 100%));
2707
+ }
2708
+ }
2709
+ @keyframes prism-sweep {
2710
+ from {
2711
+ transform: translateX(-120%);
2712
+ }
2713
+ to {
2714
+ transform: translateX(120%);
2715
+ }
2716
+ }
2717
+ @keyframes prism-drift {
2718
+ from {
2719
+ transform: translate3d(0, 0, 0);
2720
+ }
2721
+ to {
2722
+ transform: translate3d(var(--ambient-drift-x, 0.5rem), var(--ambient-drift-y, -0.5rem), 0);
2723
+ }
2724
+ }
2725
+ @keyframes prism-scan {
2726
+ from {
2727
+ transform: translateX(0);
2728
+ opacity: 0;
2729
+ }
2730
+ 8% {
2731
+ opacity: 1;
2732
+ }
2733
+ 92% {
2734
+ opacity: 1;
2735
+ }
2736
+ to {
2737
+ transform: translateX(var(--ambient-scan-distance, 100%));
2738
+ opacity: 0;
2739
+ }
2740
+ }
2741
+ @keyframes prism-pulse {
2742
+ 0%,
2743
+ 100% {
2744
+ transform: scale(1);
2745
+ opacity: 0.55;
2746
+ }
2747
+ 50% {
2748
+ transform: scale(1.35);
2749
+ opacity: 1;
2750
+ }
2751
+ }
2752
+ @keyframes prism-shimmer {
2753
+ from {
2754
+ transform: translateX(-100%);
2755
+ }
2756
+ to {
2757
+ transform: translateX(100%);
2758
+ }
2759
+ }
2760
+ @keyframes prism-rise {
2761
+ 0% {
2762
+ transform: scaleY(0.02);
2763
+ }
2764
+ 55% {
2765
+ transform: scaleY(1.04);
2766
+ }
2767
+ 100% {
2768
+ transform: scaleY(1);
2769
+ }
2770
+ }
2605
2771
  @layer base {
2772
+ .prism-ambient-travel {
2773
+ animation: prism-travel var(--ambient-travel) var(--ambient-ease-linear) infinite;
2774
+ }
2775
+ .prism-ambient-sweep {
2776
+ animation: prism-sweep var(--ambient-sweep) var(--ambient-ease-in-out) infinite;
2777
+ }
2778
+ .prism-ambient-drift {
2779
+ animation: prism-drift var(--ambient-drift) var(--ambient-ease-drift) infinite alternate;
2780
+ }
2781
+ .prism-ambient-scan {
2782
+ animation: prism-scan var(--ambient-scan) var(--ambient-ease-linear) infinite;
2783
+ }
2784
+ .prism-ambient-pulse {
2785
+ animation: prism-pulse var(--ambient-pulse) var(--ambient-ease-in-out) infinite;
2786
+ }
2787
+ .prism-ambient-shimmer {
2788
+ animation: prism-shimmer var(--ambient-shimmer) var(--ambient-ease-linear) infinite;
2789
+ }
2790
+ .prism-ambient-rise {
2791
+ animation: prism-rise var(--ambient-shimmer) var(--ambient-ease-out) infinite;
2792
+ }
2793
+ .prism-ambient-delay-1 {
2794
+ animation-delay: calc(var(--ambient-travel) / -8);
2795
+ }
2796
+ .prism-ambient-delay-2 {
2797
+ animation-delay: calc(var(--ambient-sweep) / -6);
2798
+ }
2799
+ .prism-ambient-delay-3 {
2800
+ animation-delay: calc(var(--ambient-drift) / -5);
2801
+ }
2802
+ .prism-ambient-paused,
2803
+ .prism-ambient-paused * {
2804
+ animation-play-state: paused;
2805
+ }
2606
2806
  *,
2607
2807
  ::before,
2608
2808
  ::after {
@@ -2615,6 +2815,17 @@
2615
2815
  -webkit-font-smoothing: antialiased;
2616
2816
  }
2617
2817
  }
2818
+ @media (prefers-reduced-motion: reduce) {
2819
+ .prism-ambient-travel,
2820
+ .prism-ambient-sweep,
2821
+ .prism-ambient-drift,
2822
+ .prism-ambient-scan,
2823
+ .prism-ambient-pulse,
2824
+ .prism-ambient-shimmer,
2825
+ .prism-ambient-rise {
2826
+ animation: none;
2827
+ }
2828
+ }
2618
2829
  @property --tw-translate-x {
2619
2830
  syntax: "*";
2620
2831
  inherits: false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanisoft/prism-ui",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "Prism's React component, block and page library.",
6
6
  "license": "MIT",
@@ -86,7 +86,7 @@
86
86
  "clsx": "^2.1.1",
87
87
  "lucide-react": "^0.545.0",
88
88
  "tailwind-merge": "^3.3.1",
89
- "@nanisoft/prism-tokens": "0.6.0"
89
+ "@nanisoft/prism-tokens": "0.10.0"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@tailwindcss/postcss": "^4.3.3",
@@ -112,7 +112,7 @@
112
112
  "sync": "node scripts/sync-registry.mjs",
113
113
  "validate": "node scripts/validate-registry.mjs",
114
114
  "build": "node scripts/build.mjs && pnpm sync && pnpm validate && node scripts/check-catalogue.mjs && shadcn build && node scripts/check-surface.mjs && node scripts/check-focus-indicators.mjs && node scripts/check-item-docs.mjs && node scripts/check-block-copy.mjs && node scripts/check-item-category.mjs && node scripts/check-block-imports.mjs",
115
- "check": "node scripts/validate-registry.mjs && node scripts/check-catalogue.mjs && node scripts/check-surface.mjs && node scripts/check-focus-indicators.mjs && node scripts/check-pack-boundary.mjs && node scripts/check-vector-ink.mjs && node scripts/check-client-budget.mjs && node scripts/check-theme-resolution.mjs && node scripts/check-boot-budget.mjs && node scripts/check-item-docs.mjs && node scripts/check-block-copy.mjs && node scripts/check-item-category.mjs && node scripts/check-block-imports.mjs && node scripts/check-gate-kit.mjs",
115
+ "check": "node scripts/validate-registry.mjs && node scripts/check-catalogue.mjs && node scripts/check-surface.mjs && node scripts/check-focus-indicators.mjs && node scripts/check-pack-boundary.mjs && node scripts/check-vector-ink.mjs && node scripts/check-client-budget.mjs && node scripts/check-theme-resolution.mjs && node scripts/check-boot-budget.mjs && node scripts/check-item-docs.mjs && node scripts/check-block-copy.mjs && node scripts/check-item-category.mjs && node scripts/check-block-imports.mjs && node scripts/check-gate-kit.mjs && node scripts/check-typeface.mjs && node scripts/check-variant-ink.mjs",
116
116
  "check:gate-kit": "node scripts/check-gate-kit.mjs",
117
117
  "check:vector-ink": "node scripts/check-vector-ink.mjs",
118
118
  "check:client-budget": "node scripts/check-client-budget.mjs",
@@ -126,6 +126,8 @@
126
126
  "check:item-category": "node scripts/check-item-category.mjs",
127
127
  "check:block-imports": "node scripts/check-block-imports.mjs",
128
128
  "test": "vitest run",
129
- "typecheck": "tsc --noEmit"
129
+ "typecheck": "tsc --noEmit",
130
+ "check:typeface": "node scripts/check-typeface.mjs",
131
+ "check:variant-ink": "node scripts/check-variant-ink.mjs"
130
132
  }
131
133
  }