@phila/phila-ui-core 2.1.1 → 2.2.0-beta.2
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/BaseLink.css +1 -0
- package/dist/BaseLink.vue_vue_type_script_setup_true_lang-CXQJyB5W.js +225 -0
- package/dist/BaseLink.vue_vue_type_script_setup_true_lang-CexJ6lNf.cjs +1 -0
- package/dist/classNames-CcykAxZN.js +6 -0
- package/dist/classNames-GLLmlfI4.cjs +1 -0
- package/dist/collapse-ApWEJVnD.cjs +1 -0
- package/dist/collapse-BvsHwQBu.js +74 -0
- package/dist/components.d.ts +162 -1
- package/dist/components.js +1 -1
- package/dist/components.mjs +7 -109
- package/dist/composables.d.ts +100 -0
- package/dist/composables.js +1 -1
- package/dist/composables.mjs +6 -2
- package/dist/index.d.ts +356 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +19 -2
- package/dist/styles/elements/buttons.css +230 -0
- package/dist/styles/elements/icons.css +53 -0
- package/dist/styles/elements/index.css +3 -0
- package/dist/styles/elements/links.css +87 -0
- package/dist/styles/generated/extended-colors.css +11 -0
- package/dist/styles/generated/other.css +111 -0
- package/dist/styles/generated/palettes.css +140 -0
- package/dist/styles/generated/primitives.css +293 -0
- package/dist/styles/generated/schemes.css +58 -0
- package/dist/styles/generated/sizes.css +44 -0
- package/dist/styles/generated/typography.css +281 -0
- package/dist/styles/legacy.css +39 -0
- package/dist/styles/raw/PhilaUI 4.0-variables.css +3543 -0
- package/dist/styles/template-light.css +6 -2
- package/dist/styles/template-orange.css +4 -2
- package/dist/styles/tokens.css +39 -0
- package/dist/styles/typography.css +45 -0
- package/dist/styles/utilities/color.css +26 -0
- package/dist/styles/utilities/containers.css +158 -0
- package/dist/styles/utilities/index.css +4 -0
- package/dist/styles/utilities/spacing.css +433 -0
- package/dist/styles/utilities/text.css +177 -0
- package/dist/useRouter-BVKwor6C.js +50 -0
- package/dist/useRouter-C4oT8vFk.cjs +1 -0
- package/dist/utils.d.ts +71 -0
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +17 -3
- package/package.json +25 -13
- package/dist/components.css +0 -1
- package/dist/index-DkaNsoLU.cjs +0 -5
- package/dist/index-dajx1Lu4.js +0 -1718
- package/dist/styles/light-mode.css +0 -106
- package/dist/styles/variables.css +0 -92
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
@import "./
|
|
1
|
+
/* Design tokens from Figma */
|
|
2
|
+
@import "./tokens.css";
|
|
3
|
+
|
|
4
|
+
/* Global styles */
|
|
3
5
|
@import "./typography.css";
|
|
4
6
|
@import "./main.css";
|
|
7
|
+
|
|
8
|
+
/* Utilities and elements */
|
|
5
9
|
@import "./utilities/index.css";
|
|
6
10
|
@import "./elements/index.css";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Tokens - Master Import
|
|
3
|
+
*
|
|
4
|
+
* This file imports all design tokens from Figma in the correct cascade order.
|
|
5
|
+
* Generated tokens are synced from Figma using: npm run tokens:sync
|
|
6
|
+
*
|
|
7
|
+
* Import order matters! Tokens are layered from primitives → schemes:
|
|
8
|
+
* 1. Primitives (base colors with actual values)
|
|
9
|
+
* 2. Palettes (color ramps that reference primitives)
|
|
10
|
+
* 3. Schemes (semantic tokens that reference palettes)
|
|
11
|
+
* 4. Extended Colors (special colors)
|
|
12
|
+
* 5. Sizes (spacing, dimensions)
|
|
13
|
+
* 6. Typography (font definitions)
|
|
14
|
+
* 7. Other (borders, breakpoints, component config)
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/* Layer 1: Primitives - Base color values */
|
|
18
|
+
@import "./generated/primitives.css";
|
|
19
|
+
|
|
20
|
+
/* Layer 2: Palettes - Color ramps (50-750 scales) */
|
|
21
|
+
@import "./generated/palettes.css";
|
|
22
|
+
|
|
23
|
+
/* Layer 3: Schemes - Semantic color tokens */
|
|
24
|
+
@import "./generated/schemes.css";
|
|
25
|
+
|
|
26
|
+
/* Layer 4: Extended Colors - Additional semantic colors */
|
|
27
|
+
@import "./generated/extended-colors.css";
|
|
28
|
+
|
|
29
|
+
/* Layer 5: Sizes - Spacing and dimensions */
|
|
30
|
+
@import "./generated/sizes.css";
|
|
31
|
+
|
|
32
|
+
/* Layer 6: Typography - Font definitions */
|
|
33
|
+
@import "./generated/typography.css";
|
|
34
|
+
|
|
35
|
+
/* Layer 7: Other - Borders, breakpoints, component tokens */
|
|
36
|
+
@import "./generated/other.css";
|
|
37
|
+
|
|
38
|
+
/* Backwards Compatibility - Aliases for old variable names */
|
|
39
|
+
@import "./legacy.css";
|
|
@@ -50,6 +50,9 @@ TODO: figma not clear on margins between headings / paragraphs, or how these ele
|
|
|
50
50
|
&.has-text-body-small {
|
|
51
51
|
margin: 0 0 var(--spacing-l) 0;
|
|
52
52
|
}
|
|
53
|
+
&.has-text-body-default {
|
|
54
|
+
margin: 0 0 var(--spacing-m) 0;
|
|
55
|
+
}
|
|
53
56
|
&.has-text-body-large {
|
|
54
57
|
margin: 0 0 var(--spacing-xl) 0;
|
|
55
58
|
}
|
|
@@ -144,3 +147,45 @@ TODO: figma not clear on margins between headings / paragraphs, or how these ele
|
|
|
144
147
|
font-style: italic;
|
|
145
148
|
}
|
|
146
149
|
}
|
|
150
|
+
|
|
151
|
+
/* Links */
|
|
152
|
+
a {
|
|
153
|
+
text-decoration-line: underline;
|
|
154
|
+
text-decoration-style: solid;
|
|
155
|
+
text-decoration-skip-ink: auto;
|
|
156
|
+
text-decoration-thickness: 10%;
|
|
157
|
+
text-underline-offset: auto;
|
|
158
|
+
text-underline-position: from-font;
|
|
159
|
+
|
|
160
|
+
font-family: var(--Link-on-Surface-Default-font-link-on-surface-default-family, Montserrat);
|
|
161
|
+
font-style: normal;
|
|
162
|
+
font-weight: 700;
|
|
163
|
+
|
|
164
|
+
color: var(--Extended-Colors-link-default, #2176d2);
|
|
165
|
+
text-decoration-color: var(--Base-font-variables-Color-Link-link-default, #2176d2);
|
|
166
|
+
|
|
167
|
+
&:hover {
|
|
168
|
+
color: var(--Extended-Colors-link-hover, #000);
|
|
169
|
+
text-decoration-color: var(--Extended-Colors-link-hover, #000);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:focus-visible {
|
|
173
|
+
color: var(--Extended-Colors-link-hover, #000);
|
|
174
|
+
text-decoration-color: var(--Extended-Colors-link-hover, #000);
|
|
175
|
+
outline: var(--stroke-stroke-thin, 2px) solid var(--Base-font-variables-Color-Link-link-default, #2176d2);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&:visited {
|
|
179
|
+
color: var(--Extended-Colors-link-visited, #4b0083);
|
|
180
|
+
text-decoration-color: var(--Extended-Colors-link-visited, #4b0083);
|
|
181
|
+
|
|
182
|
+
&:focus-visible {
|
|
183
|
+
text-decoration-color: var(--Extended-Colors-link-hover, #000);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:hover {
|
|
187
|
+
color: var(--Extended-Colors-link-hover, #000);
|
|
188
|
+
text-decoration-color: var(--Extended-Colors-link-hover, #000);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.has-background-ben-franklin-blue {
|
|
2
|
+
background-color: var(--dark-ben-franklin-blue);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.has-background-primary {
|
|
6
|
+
--Base-font-variables-Color-Link-link-default: var(--Schemes-On-Primary-Container);
|
|
7
|
+
--Extended-Colors-link-default: var(--Extended-Colors-link-default-on-primary);
|
|
8
|
+
--Extended-Colors-link-hover: var(--Extended-Colors-link-hover-on-primary);
|
|
9
|
+
--Extended-Colors-link-visited: var(--Extended-Colors-link-visited-on-primary);
|
|
10
|
+
|
|
11
|
+
background-color: var(--Schemes-Primary);
|
|
12
|
+
color: var(--Schemes-On-Primary-Container);
|
|
13
|
+
}
|
|
14
|
+
.has-background-ghost-gray {
|
|
15
|
+
--Base-font-variables-Color-Link-link-default: var(--Schemes-Primary);
|
|
16
|
+
--Extended-Colors-link-default: var(--Schemes-Primary);
|
|
17
|
+
--Extended-Colors-link-hover: var(--Schemes-On-Surface);
|
|
18
|
+
--Extended-Colors-link-visited: var(--Extended-Colors-link-visited);
|
|
19
|
+
background-color: var(--ghost-gray);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.has-background-secondary {
|
|
23
|
+
--Schemes-On-Primary-Container: #ecfdff;
|
|
24
|
+
--Schemes-On-Surface: #ecfdff;
|
|
25
|
+
background-color: var(--Schemes-Secondary);
|
|
26
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
.container-text {
|
|
2
|
+
max-width: 65ch;
|
|
3
|
+
}
|
|
4
|
+
.is-flex {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
7
|
+
.is-flex-1 {
|
|
8
|
+
flex: 1;
|
|
9
|
+
}
|
|
10
|
+
.is-inline-flex {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
}
|
|
13
|
+
.is-justify-center {
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
.is-justify-flex-start {
|
|
17
|
+
justify-content: flex-start;
|
|
18
|
+
}
|
|
19
|
+
.is-justify-flex-end {
|
|
20
|
+
justify-content: flex-end;
|
|
21
|
+
}
|
|
22
|
+
.is-justify-space-between {
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
}
|
|
25
|
+
.is-justify-space-around {
|
|
26
|
+
justify-content: space-around;
|
|
27
|
+
}
|
|
28
|
+
.is-align-center {
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
.is-align-flex-start {
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
}
|
|
34
|
+
.is-align-flex-end {
|
|
35
|
+
align-items: flex-end;
|
|
36
|
+
}
|
|
37
|
+
.is-flex-wrap {
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
}
|
|
40
|
+
.is-flex-column {
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
}
|
|
43
|
+
.is-flex-row {
|
|
44
|
+
flex-direction: row;
|
|
45
|
+
}
|
|
46
|
+
.is-12 {
|
|
47
|
+
flex: 0 0 100%;
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
}
|
|
50
|
+
.is-6 {
|
|
51
|
+
flex: 0 0 50%;
|
|
52
|
+
max-width: 50%;
|
|
53
|
+
}
|
|
54
|
+
.is-4 {
|
|
55
|
+
flex: 0 0 33.3333%;
|
|
56
|
+
max-width: 33.3333%;
|
|
57
|
+
}
|
|
58
|
+
.is-3 {
|
|
59
|
+
flex: 0 0 25%;
|
|
60
|
+
max-width: 25%;
|
|
61
|
+
}
|
|
62
|
+
.is-2 {
|
|
63
|
+
flex: 0 0 16.6667%;
|
|
64
|
+
max-width: 16.6667%;
|
|
65
|
+
}
|
|
66
|
+
.is-1 {
|
|
67
|
+
flex: 0 0 8.3333%;
|
|
68
|
+
max-width: 8.3333%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.is-gap-1 {
|
|
72
|
+
gap: var(--spacing-xs) !important;
|
|
73
|
+
}
|
|
74
|
+
.is-gap-2 {
|
|
75
|
+
gap: var(--spacing-s) !important;
|
|
76
|
+
}
|
|
77
|
+
.is-gap-3 {
|
|
78
|
+
gap: var(--spacing-m) !important;
|
|
79
|
+
}
|
|
80
|
+
.is-gap-4 {
|
|
81
|
+
gap: var(--spacing-l) !important;
|
|
82
|
+
}
|
|
83
|
+
.is-gap-5 {
|
|
84
|
+
gap: var(--spacing-xl) !important;
|
|
85
|
+
}
|
|
86
|
+
.is-gap-6 {
|
|
87
|
+
gap: var(--spacing-xxl) !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.is-sticky {
|
|
91
|
+
position: sticky;
|
|
92
|
+
top: 0;
|
|
93
|
+
z-index: 9999;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media screen and (max-width: 768px) {
|
|
97
|
+
.is-flex .is-flex:has(.is-12-mobile),
|
|
98
|
+
.is-flex .is-flex:has(.is-6-mobile),
|
|
99
|
+
.is-flex .is-flex:has(.is-4-mobile),
|
|
100
|
+
.is-flex .is-flex:has(.is-3-mobile),
|
|
101
|
+
.is-flex .is-flex:has(.is-2-mobile),
|
|
102
|
+
.is-flex .is-flex:has(.is-1-mobile) {
|
|
103
|
+
flex-wrap: wrap;
|
|
104
|
+
}
|
|
105
|
+
.is-12-mobile {
|
|
106
|
+
flex: 0 0 100% !important;
|
|
107
|
+
max-width: 100% !important;
|
|
108
|
+
}
|
|
109
|
+
.is-6-mobile {
|
|
110
|
+
flex: 0 0 50%;
|
|
111
|
+
max-width: 50%;
|
|
112
|
+
}
|
|
113
|
+
.is-4-mobile {
|
|
114
|
+
flex: 0 0 33.3333%;
|
|
115
|
+
max-width: 33.3333%;
|
|
116
|
+
}
|
|
117
|
+
.is-3-mobile {
|
|
118
|
+
flex: 0 0 25%;
|
|
119
|
+
max-width: 25%;
|
|
120
|
+
}
|
|
121
|
+
.is-2-mobile {
|
|
122
|
+
flex: 0 0 16.6667%;
|
|
123
|
+
max-width: 16.6667%;
|
|
124
|
+
}
|
|
125
|
+
.is-1-mobile {
|
|
126
|
+
flex: 0 0 8.3333%;
|
|
127
|
+
max-width: 8.3333%;
|
|
128
|
+
}
|
|
129
|
+
.hidden-mobile {
|
|
130
|
+
display: none !important;
|
|
131
|
+
}
|
|
132
|
+
.visible-mobile {
|
|
133
|
+
display: block !important;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media screen and (max-width: 1024px) {
|
|
138
|
+
.hidden-tablet {
|
|
139
|
+
display: none !important;
|
|
140
|
+
}
|
|
141
|
+
.visible-tablet {
|
|
142
|
+
display: block !important;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media screen and (min-width: 1025px) {
|
|
147
|
+
.hidden-desktop {
|
|
148
|
+
display: none !important;
|
|
149
|
+
}
|
|
150
|
+
.visible-desktop {
|
|
151
|
+
display: block !important;
|
|
152
|
+
}
|
|
153
|
+
.is-sticky-desktop {
|
|
154
|
+
position: sticky;
|
|
155
|
+
top: 0;
|
|
156
|
+
z-index: 9999;
|
|
157
|
+
}
|
|
158
|
+
}
|