@bagelink/vue 1.15.71 → 1.15.75

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.
Files changed (38) hide show
  1. package/dist/components/AddressSearch.vue.d.ts +3 -0
  2. package/dist/components/AddressSearch.vue.d.ts.map +1 -1
  3. package/dist/components/Alert.vue.d.ts +3 -0
  4. package/dist/components/Alert.vue.d.ts.map +1 -1
  5. package/dist/components/Badge.vue.d.ts +17 -2
  6. package/dist/components/Badge.vue.d.ts.map +1 -1
  7. package/dist/components/Btn.vue.d.ts +17 -2
  8. package/dist/components/Btn.vue.d.ts.map +1 -1
  9. package/dist/components/Card.vue.d.ts.map +1 -1
  10. package/dist/components/Dropdown.vue.d.ts +2 -0
  11. package/dist/components/Dropdown.vue.d.ts.map +1 -1
  12. package/dist/components/ListItem.vue.d.ts +3 -4
  13. package/dist/components/ListItem.vue.d.ts.map +1 -1
  14. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +1 -1
  15. package/dist/components/form/inputs/SelectInput.vue.d.ts +6 -0
  16. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  17. package/dist/components/layout/TabsNav.vue.d.ts +2 -0
  18. package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
  19. package/dist/composables/index.d.ts +2 -0
  20. package/dist/composables/index.d.ts.map +1 -1
  21. package/dist/composables/useGradientVariant.d.ts +37 -0
  22. package/dist/composables/useGradientVariant.d.ts.map +1 -0
  23. package/dist/index.cjs +47 -47
  24. package/dist/index.mjs +5584 -5504
  25. package/dist/style.css +1 -1
  26. package/package.json +1 -1
  27. package/src/components/Alert.vue +9 -1
  28. package/src/components/Badge.vue +37 -5
  29. package/src/components/Btn.vue +49 -6
  30. package/src/components/Card.vue +2 -30
  31. package/src/components/Dropdown.vue +3 -1
  32. package/src/components/ListItem.vue +36 -6
  33. package/src/components/layout/TabsNav.vue +15 -1
  34. package/src/composables/index.ts +2 -0
  35. package/src/composables/useGradientVariant.ts +100 -0
  36. package/src/styles/bagel.css +1 -0
  37. package/src/styles/base-colors.css +9 -0
  38. package/src/styles/color-variants.css +149 -0
@@ -0,0 +1,149 @@
1
+ /* ─────────────────────────────────────────────────────────────────────────────
2
+ * COLOR VARIANTS — soft (+ future: frost / gradient)
3
+ *
4
+ * These are *modifiers* that compose on top of any `.pair-{color}` class, the
5
+ * same way `.bgl_flatPill` / `.bgl_pill-border` already do. Components keep
6
+ * computing `pair-${color}` and simply add `.soft` — nothing about the existing
7
+ * color system changes.
8
+ *
9
+ * SOFT = light tinted background + full-color text + full-color border.
10
+ * Equivalent to: bg-{color}-30 color-{color} border border-{color}
11
+ *
12
+ * To stay DRY we expose one variable per tone — `--bgl-pair-tone` — set once for
13
+ * every shade of a color, then `.soft` derives bg / text / border from it via
14
+ * color-mix(). One rule covers all 13 tones × all 13 shades.
15
+ * ──────────────────────────────────────────────────────────────────────────── */
16
+
17
+ /* 1) Map every pair tone (base + 10..130 + light/tint/dark + semantic) to a
18
+ * single --bgl-pair-tone custom property. */
19
+ .pair-primary, .pair-default,
20
+ .pair-primary-light, .pair-primary-tint,
21
+ .pair-primary-10, .pair-primary-20, .pair-primary-30, .pair-primary-40, .pair-primary-50,
22
+ .pair-primary-60, .pair-primary-70, .pair-primary-80, .pair-primary-90, .pair-primary-100,
23
+ .pair-primary-110, .pair-primary-120, .pair-primary-130 { --bgl-pair-tone: var(--bgl-primary); }
24
+
25
+ .pair-blue, .pair-info,
26
+ .pair-blue-light, .pair-blue-tint, .pair-blue-dark,
27
+ .pair-blue-10, .pair-blue-20, .pair-blue-30, .pair-blue-40, .pair-blue-50,
28
+ .pair-blue-60, .pair-blue-70, .pair-blue-80, .pair-blue-90, .pair-blue-100,
29
+ .pair-blue-110, .pair-blue-120, .pair-blue-130 { --bgl-pair-tone: var(--bgl-blue); }
30
+
31
+ .pair-green, .pair-success,
32
+ .pair-green-light,
33
+ .pair-green-10, .pair-green-20, .pair-green-30, .pair-green-40, .pair-green-50,
34
+ .pair-green-60, .pair-green-70, .pair-green-80, .pair-green-90, .pair-green-100,
35
+ .pair-green-110, .pair-green-120, .pair-green-130 { --bgl-pair-tone: var(--bgl-green); }
36
+
37
+ .pair-red, .pair-danger,
38
+ .pair-red-light, .pair-red-tint,
39
+ .pair-red-10, .pair-red-20, .pair-red-30, .pair-red-40, .pair-red-50,
40
+ .pair-red-60, .pair-red-70, .pair-red-80, .pair-red-90, .pair-red-100,
41
+ .pair-red-110, .pair-red-120, .pair-red-130 { --bgl-pair-tone: var(--bgl-red); }
42
+
43
+ .pair-yellow, .pair-warning,
44
+ .pair-yellow-light,
45
+ .pair-yellow-10, .pair-yellow-20, .pair-yellow-30, .pair-yellow-40, .pair-yellow-50,
46
+ .pair-yellow-60, .pair-yellow-70, .pair-yellow-80, .pair-yellow-90, .pair-yellow-100,
47
+ .pair-yellow-110, .pair-yellow-120, .pair-yellow-130 { --bgl-pair-tone: var(--bgl-yellow); }
48
+
49
+ .pair-purple,
50
+ .pair-purple-light,
51
+ .pair-purple-10, .pair-purple-20, .pair-purple-30, .pair-purple-40, .pair-purple-50,
52
+ .pair-purple-60, .pair-purple-70, .pair-purple-80, .pair-purple-90, .pair-purple-100,
53
+ .pair-purple-110, .pair-purple-120, .pair-purple-130 { --bgl-pair-tone: var(--bgl-purple); }
54
+
55
+ .pair-brown,
56
+ .pair-brown-light,
57
+ .pair-brown-10, .pair-brown-20, .pair-brown-30, .pair-brown-40, .pair-brown-50,
58
+ .pair-brown-60, .pair-brown-70, .pair-brown-80, .pair-brown-90, .pair-brown-100,
59
+ .pair-brown-110, .pair-brown-120, .pair-brown-130 { --bgl-pair-tone: var(--bgl-brown); }
60
+
61
+ .pair-orange,
62
+ .pair-orange-light,
63
+ .pair-orange-10, .pair-orange-20, .pair-orange-30, .pair-orange-40, .pair-orange-50,
64
+ .pair-orange-60, .pair-orange-70, .pair-orange-80, .pair-orange-90, .pair-orange-100,
65
+ .pair-orange-110, .pair-orange-120, .pair-orange-130 { --bgl-pair-tone: var(--bgl-orange); }
66
+
67
+ .pair-turquoise,
68
+ .pair-turquoise-light,
69
+ .pair-turquoise-10, .pair-turquoise-20, .pair-turquoise-30, .pair-turquoise-40, .pair-turquoise-50,
70
+ .pair-turquoise-60, .pair-turquoise-70, .pair-turquoise-80, .pair-turquoise-90, .pair-turquoise-100,
71
+ .pair-turquoise-110, .pair-turquoise-120, .pair-turquoise-130 { --bgl-pair-tone: var(--bgl-turquoise); }
72
+
73
+ .pair-pink,
74
+ .pair-pink-light,
75
+ .pair-pink-10, .pair-pink-20, .pair-pink-30, .pair-pink-40, .pair-pink-50,
76
+ .pair-pink-60, .pair-pink-70, .pair-pink-80, .pair-pink-90, .pair-pink-100,
77
+ .pair-pink-110, .pair-pink-120, .pair-pink-130 { --bgl-pair-tone: var(--bgl-pink); }
78
+
79
+ .pair-gray,
80
+ .pair-gray-light, .pair-gray-tint,
81
+ .pair-gray-10, .pair-gray-20, .pair-gray-30, .pair-gray-40, .pair-gray-50,
82
+ .pair-gray-60, .pair-gray-70, .pair-gray-80, .pair-gray-90, .pair-gray-100,
83
+ .pair-gray-110, .pair-gray-120, .pair-gray-130 { --bgl-pair-tone: var(--bgl-gray); }
84
+
85
+ .pair-black,
86
+ .pair-black-tint,
87
+ .pair-black-10, .pair-black-20, .pair-black-30, .pair-black-40, .pair-black-50,
88
+ .pair-black-60, .pair-black-70, .pair-black-80, .pair-black-90, .pair-black-100,
89
+ .pair-black-110, .pair-black-120, .pair-black-130 { --bgl-pair-tone: var(--bgl-black); }
90
+
91
+ .pair-white { --bgl-pair-tone: var(--bgl-white); }
92
+
93
+ /* 2) SOFT modifier — applies on any element carrying a pair-* class.
94
+ * bg ≈ 18% tint, border ≈ full tone, text = full tone. */
95
+ [class*="pair-"].soft {
96
+ background-color: color-mix(in srgb, var(--bgl-pair-tone) 18%, transparent) !important;
97
+ color: var(--bgl-pair-tone) !important;
98
+ border: 1px solid var(--bgl-pair-tone) !important;
99
+ }
100
+
101
+ /* White is special: a white tone on a light surface needs dark text/border. */
102
+ .pair-white.soft {
103
+ color: var(--bgl-black) !important;
104
+ border-color: var(--bgl-black) !important;
105
+ }
106
+
107
+ /* 3) FROST modifier — translucent + blur, tinted by the pair color.
108
+ * Like `soft` but glassier: lower-opacity fill, a blurred backdrop, and a
109
+ * faint same-tone border. Shines over photos / gradients / dark heroes.
110
+ * Text uses the full tone so it stays legible on the light translucent fill. */
111
+ [class*="pair-"].frost {
112
+ /* `--bgl-pair-tone` falls back to white so a frost with no color (or before a
113
+ tone is mapped) renders as the classic light-on-dark glass. */
114
+ background-color: color-mix(in srgb, var(--bgl-pair-tone, var(--bgl-white)) 14%, transparent) !important;
115
+ color: var(--bgl-pair-tone, var(--bgl-white)) !important;
116
+ border: 1px solid color-mix(in srgb, var(--bgl-pair-tone, var(--bgl-white)) 35%, transparent) !important;
117
+ backdrop-filter: blur(8px);
118
+ -webkit-backdrop-filter: blur(8px);
119
+ }
120
+
121
+ .pair-white.frost {
122
+ color: var(--bgl-white) !important;
123
+ }
124
+
125
+ /* 4) GRADIENT modifier — a colored linear gradient + white text.
126
+ *
127
+ * Works two ways, both pure CSS so it applies to <div> as well as components:
128
+ *
129
+ * a) Automatic (just a pair class): sweeps from the tone to a darker shade of
130
+ * itself. <div class="pair-blue gradient">
131
+ *
132
+ * b) Explicit stops: provide --bgl-grad-from / --bgl-grad-via / --bgl-grad-to
133
+ * (and optionally --bgl-grad-angle). The Btn/Badge components inject these
134
+ * from their `gradient` / `gradient-dir` props, and the existing
135
+ * gradients.css utilities (from-*, via-*, to-*, to-tr, …) compose too.
136
+ *
137
+ * The `via` slot collapses to nothing when unset (2-stop), expands when set
138
+ * (3-stop) — exactly like gradients.css. */
139
+ [class*="pair-"].gradient {
140
+ --bgl-grad-default-from: var(--bgl-pair-tone, var(--bgl-primary));
141
+ --bgl-grad-default-to: color-mix(in srgb, var(--bgl-pair-tone, var(--bgl-primary)) 55%, #000);
142
+ background-image: linear-gradient(
143
+ var(--bgl-grad-angle, 135deg),
144
+ var(--bgl-grad-from, var(--bgl-grad-default-from)),
145
+ var(--bgl-grad-via, ) var(--bgl-grad-to, var(--bgl-grad-default-to))
146
+ ) !important;
147
+ color: var(--bgl-white) !important;
148
+ border: none !important;
149
+ }