@avenue-ticketing/ui 0.12.0-beta.5 → 0.12.0-beta.6
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 +2 -4
- package/theme.css +86 -1
- package/source.css +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avenue-ticketing/ui",
|
|
3
|
-
"version": "0.12.0-beta.
|
|
3
|
+
"version": "0.12.0-beta.6",
|
|
4
4
|
"description": "Avenue UI components for React (Untitled UI beta)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,12 +16,10 @@
|
|
|
16
16
|
"type": "module",
|
|
17
17
|
"files": [
|
|
18
18
|
"dist",
|
|
19
|
-
"theme.css"
|
|
20
|
-
"source.css"
|
|
19
|
+
"theme.css"
|
|
21
20
|
],
|
|
22
21
|
"exports": {
|
|
23
22
|
"./theme.css": "./theme.css",
|
|
24
|
-
"./source.css": "./source.css",
|
|
25
23
|
"./react/*": {
|
|
26
24
|
"types": "./dist/react/*.d.ts",
|
|
27
25
|
"import": "./dist/react/*.js",
|
package/theme.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @avenue-ticketing/ui — default Tailwind v4 theme (tokens + component scan).
|
|
3
3
|
* Usage: @import "tailwindcss"; @import "@avenue-ticketing/ui/theme.css";
|
|
4
|
-
* Override tokens on :root / .dark after this import.
|
|
4
|
+
* Override tokens on :root / .dark after this import.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
@source "./dist/**/*.js";
|
|
@@ -916,3 +916,88 @@
|
|
|
916
916
|
--radius-4xl: var(--corner-4xl);
|
|
917
917
|
--radius-full: var(--corner-full);
|
|
918
918
|
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Sonner injects global styles even when `unstyled` is true. Layout + resets live here.
|
|
922
|
+
*/
|
|
923
|
+
|
|
924
|
+
[data-sonner-toast].avenue-toast {
|
|
925
|
+
display: grid !important;
|
|
926
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
927
|
+
align-items: start;
|
|
928
|
+
justify-items: start;
|
|
929
|
+
column-gap: 12px;
|
|
930
|
+
row-gap: 4px;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
[data-sonner-toast].avenue-toast [data-icon] {
|
|
934
|
+
grid-column: 1;
|
|
935
|
+
grid-row: 1;
|
|
936
|
+
position: relative;
|
|
937
|
+
display: flex;
|
|
938
|
+
width: 20px;
|
|
939
|
+
min-width: 20px;
|
|
940
|
+
height: 24px;
|
|
941
|
+
align-items: center;
|
|
942
|
+
justify-content: flex-start;
|
|
943
|
+
align-self: start;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
[data-sonner-toast].avenue-toast [data-content] {
|
|
947
|
+
grid-column: 2;
|
|
948
|
+
grid-row: 1;
|
|
949
|
+
min-width: 0;
|
|
950
|
+
text-align: left;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
[data-sonner-toast].avenue-toast:not(:has([data-icon])) [data-content] {
|
|
954
|
+
grid-column: 1 / -1;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
[data-sonner-toast].avenue-toast [data-title],
|
|
958
|
+
[data-sonner-toast].avenue-toast [data-description] {
|
|
959
|
+
text-align: left;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
[data-sonner-toast].avenue-toast [data-toast-actions] {
|
|
963
|
+
grid-column: 1 / -1;
|
|
964
|
+
grid-row: 2;
|
|
965
|
+
display: flex;
|
|
966
|
+
flex-wrap: wrap;
|
|
967
|
+
align-items: center;
|
|
968
|
+
gap: 12px;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
[data-sonner-toast].avenue-toast:has([data-icon]) [data-toast-actions] {
|
|
972
|
+
padding-left: 32px;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
[data-sonner-toast].avenue-toast [data-toast-actions] button {
|
|
976
|
+
margin: 0;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/* Sonner keeps rendering .sonner-loader after promise resolve — hide it once loading ends. */
|
|
980
|
+
[data-sonner-toast].avenue-toast:not([data-type="loading"]) .sonner-loader,
|
|
981
|
+
[data-sonner-toast].avenue-toast:not([data-type="loading"]) .sonner-loading-wrapper {
|
|
982
|
+
display: none !important;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/* Phosphor loader — undo Sonner's absolutely-centered .sonner-loader wrapper. */
|
|
986
|
+
[data-sonner-toast].avenue-toast[data-type="loading"] .sonner-loader {
|
|
987
|
+
position: static !important;
|
|
988
|
+
top: auto !important;
|
|
989
|
+
left: auto !important;
|
|
990
|
+
transform: none !important;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/* Promise toasts keep data-promise=true after resolve — show the success/error icon immediately. */
|
|
994
|
+
[data-sonner-toast].avenue-toast[data-promise="true"]:not([data-type="loading"]) [data-icon] svg {
|
|
995
|
+
opacity: 1 !important;
|
|
996
|
+
transform: none !important;
|
|
997
|
+
animation: none !important;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/* Let resolved promise toasts resize when the message changes. */
|
|
1001
|
+
[data-sonner-toast].avenue-toast[data-promise="true"]:not([data-type="loading"]) {
|
|
1002
|
+
height: auto !important;
|
|
1003
|
+
}
|
package/source.css
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tailwind scan only — use when your app already defines the same Untitled UI tokens.
|
|
3
|
-
*
|
|
4
|
-
* @import "tailwindcss";
|
|
5
|
-
* @import "@avenue-ticketing/ui/source.css";
|
|
6
|
-
*
|
|
7
|
-
* Do not import theme.css in that case — it would duplicate tokens.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
@source "./dist/**/*.js";
|