@frontile/theme 0.18.0-alpha.2 → 0.18.0-alpha.20
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/README.md +22 -23
- package/declarations/colors/config.d.ts +18 -36
- package/declarations/colors/palette-absolute.d.ts +2 -2
- package/declarations/colors/palette.d.ts +1 -1
- package/declarations/colors/semantic.d.ts +4 -0
- package/declarations/colors/types.d.ts +190 -134
- package/declarations/colors/util.d.ts +2 -1
- package/declarations/colors.d.ts +1 -0
- package/declarations/components/accordion.d.ts +308 -0
- package/declarations/components/alert.d.ts +294 -0
- package/declarations/components/avatar.d.ts +9 -7
- package/declarations/components/button.d.ts +131 -48
- package/declarations/components/calendar.d.ts +382 -0
- package/declarations/components/chip.d.ts +79 -42
- package/declarations/components/close-button.d.ts +9 -7
- package/declarations/components/command.d.ts +281 -0
- package/declarations/components/divider.d.ts +9 -7
- package/declarations/components/dropdown.d.ts +11 -9
- package/declarations/components/external-link.d.ts +160 -0
- package/declarations/components/forms/forms-legacy.d.ts +108 -84
- package/declarations/components/forms/forms.d.ts +1040 -159
- package/declarations/components/index.d.ts +11 -0
- package/declarations/components/kbd.d.ts +315 -0
- package/declarations/components/listbox.d.ts +122 -18
- package/declarations/components/notification-card.d.ts +182 -111
- package/declarations/components/notifications-container.d.ts +111 -40
- package/declarations/components/overlays.d.ts +429 -29
- package/declarations/components/pagination.d.ts +359 -0
- package/declarations/components/popover.d.ts +11 -9
- package/declarations/components/progress-bar.d.ts +39 -7
- package/declarations/components/segmented-control.d.ts +463 -0
- package/declarations/components/shared.d.ts +9 -0
- package/declarations/components/skeleton.d.ts +151 -0
- package/declarations/components/spinner.d.ts +19 -7
- package/declarations/components/table.d.ts +17 -9
- package/declarations/components/tabs.d.ts +463 -0
- package/declarations/components/tooltip.d.ts +270 -0
- package/declarations/plugin/default-config.d.ts +18 -36
- package/declarations/tw.d.ts +9 -7
- package/declarations/types.d.ts +18 -1
- package/dist/colors.js +2 -1
- package/dist/colors.js.map +1 -1
- package/dist/index.js +3825 -5
- package/dist/index.js.map +1 -1
- package/dist/overlays-DIZlPzFH.js +654 -0
- package/dist/overlays-DIZlPzFH.js.map +1 -0
- package/dist/plugin.js +60 -85
- package/dist/plugin.js.map +1 -1
- package/dist/util-Dp_dlOPq.js +482 -0
- package/dist/util-Dp_dlOPq.js.map +1 -0
- package/package.json +17 -14
- package/public/fonts/domine-variable.woff2 +0 -0
- package/public/fonts/open-sans-italic-variable.woff2 +0 -0
- package/public/fonts/open-sans-variable.woff2 +0 -0
- package/public/fonts/source-code-pro-italic-variable.woff2 +0 -0
- package/public/fonts/source-code-pro-variable.woff2 +0 -0
- package/src/index.css +64 -15
- package/src/styles/font-faces.css +70 -8
- package/src/styles/theme.css +18 -7
- package/src/styles/typography.css +229 -126
- package/declarations/colors/contrast.d.ts +0 -16
- package/declarations/colors/defaults.d.ts +0 -66
- package/declarations/colors/palette-dark.d.ts +0 -123
- package/declarations/colors/palette-light.d.ts +0 -123
- package/dist/config-4CswsBlg.js +0 -342
- package/dist/config-4CswsBlg.js.map +0 -1
- package/dist/config-B3XkEtHW.js +0 -377
- package/dist/config-B3XkEtHW.js.map +0 -1
- package/dist/config-BpWBpuzR.js +0 -335
- package/dist/config-BpWBpuzR.js.map +0 -1
- package/dist/config-Cle59Y4k.js +0 -523
- package/dist/config-Cle59Y4k.js.map +0 -1
- package/dist/config-D0EoeVzn.js +0 -388
- package/dist/config-D0EoeVzn.js.map +0 -1
- package/dist/config-DBAavoE2.js +0 -336
- package/dist/config-DBAavoE2.js.map +0 -1
- package/dist/config-Oysuq2Z9.js +0 -341
- package/dist/config-Oysuq2Z9.js.map +0 -1
- package/dist/config-PYki2g7N.js +0 -335
- package/dist/config-PYki2g7N.js.map +0 -1
- package/dist/forms-legacy-15iy0KmK.js +0 -1851
- package/dist/forms-legacy-15iy0KmK.js.map +0 -1
- package/dist/forms-legacy-B-L2HELt.js +0 -1881
- package/dist/forms-legacy-B-L2HELt.js.map +0 -1
- package/dist/forms-legacy-BMIAioRi.js +0 -1807
- package/dist/forms-legacy-BMIAioRi.js.map +0 -1
- package/dist/forms-legacy-B_EygtyK.js +0 -1763
- package/dist/forms-legacy-B_EygtyK.js.map +0 -1
- package/dist/forms-legacy-Bg_UoLDR.js +0 -1763
- package/dist/forms-legacy-Bg_UoLDR.js.map +0 -1
- package/dist/forms-legacy-CVLZ-9BG.js +0 -1804
- package/dist/forms-legacy-CVLZ-9BG.js.map +0 -1
- package/dist/forms-legacy-CuFc3hcn.js +0 -1807
- package/dist/forms-legacy-CuFc3hcn.js.map +0 -1
- package/dist/forms-legacy-DiKImAli.js +0 -1809
- package/dist/forms-legacy-DiKImAli.js.map +0 -1
- package/dist/forms-legacy-edWQVbZP.js +0 -1809
- package/dist/forms-legacy-edWQVbZP.js.map +0 -1
- package/dist/index.css +0 -63
- package/dist/semantic-DUv6Lpqq.js +0 -218
- package/dist/semantic-DUv6Lpqq.js.map +0 -1
- package/dist/styles/font-faces.css +0 -26
- package/dist/styles/theme.css +0 -48
- package/dist/styles/typography.css +0 -291
- package/public/fonts/stix-two-text-italic-variable.woff2 +0 -0
- package/public/fonts/stix-two-text-variable.woff2 +0 -0
package/src/index.css
CHANGED
|
@@ -8,8 +8,12 @@
|
|
|
8
8
|
@custom-variant focus-visible (&[data-focus-visible-added]);
|
|
9
9
|
|
|
10
10
|
/* Data state variants */
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/* An open submenu trigger reads as highlighted for the same reason an active
|
|
12
|
+
row does -- it is the row the user is currently on -- so both states drive
|
|
13
|
+
the same variant, and every intent/appearance compound variant that already
|
|
14
|
+
targets `data-is-active:` covers it with no further work. */
|
|
15
|
+
@custom-variant data-is-active (&:is([data-active=true], [data-submenu-open=true]));
|
|
16
|
+
@custom-variant group-data-is-active (:merge(.group)[data-active="true"] &, :merge(.group)[data-submenu-open="true"] &);
|
|
13
17
|
|
|
14
18
|
/* ARIA variants */
|
|
15
19
|
@custom-variant aria-invalid (&[aria-invalid="true"]);
|
|
@@ -25,7 +29,8 @@
|
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
@keyframes swing {
|
|
28
|
-
0%,
|
|
32
|
+
0%,
|
|
33
|
+
100% {
|
|
29
34
|
width: 50%;
|
|
30
35
|
transform: translateX(-25%);
|
|
31
36
|
}
|
|
@@ -34,30 +39,74 @@
|
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
|
|
42
|
+
@keyframes shimmer {
|
|
43
|
+
from {
|
|
44
|
+
background-position: 200% 0;
|
|
45
|
+
}
|
|
46
|
+
to {
|
|
47
|
+
background-position: -200% 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/*
|
|
52
|
+
Fades a skeleton row in once. Callers set an `animation-delay` per row so the
|
|
53
|
+
placeholders arrive in sequence, the way the real rows will. `both` holds the
|
|
54
|
+
from-state during the delay, so a row waiting its turn is hidden rather than
|
|
55
|
+
visible-then-flashing.
|
|
56
|
+
*/
|
|
57
|
+
@keyframes skeleton-enter {
|
|
58
|
+
from {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
}
|
|
61
|
+
to {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
A text caret blinks hard on and off -- it does not fade. Adjacent stops at the
|
|
68
|
+
midpoint give an instant switch under linear timing, and 1.06s is roughly the
|
|
69
|
+
native caret rate.
|
|
70
|
+
*/
|
|
71
|
+
@keyframes caret-blink {
|
|
72
|
+
0%,
|
|
73
|
+
49.9% {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
50%,
|
|
77
|
+
100% {
|
|
78
|
+
opacity: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
37
82
|
/* Default theme values - can be overridden via CSS or JS config */
|
|
38
83
|
:root {
|
|
39
84
|
/* Drawer Sizes */
|
|
40
|
-
--drawer-xs:
|
|
41
|
-
--drawer-sm:
|
|
42
|
-
--drawer-md:
|
|
43
|
-
--drawer-lg:
|
|
44
|
-
--drawer-xl:
|
|
85
|
+
--drawer-xs: 22rem;
|
|
86
|
+
--drawer-sm: 30rem;
|
|
87
|
+
--drawer-md: 48rem;
|
|
88
|
+
--drawer-lg: 64rem;
|
|
89
|
+
--drawer-xl: 80rem;
|
|
45
90
|
--drawer-full: 100%;
|
|
46
91
|
|
|
47
92
|
/* Modal Sizes */
|
|
48
|
-
--modal-xs:
|
|
49
|
-
--modal-sm:
|
|
50
|
-
--modal-md:
|
|
51
|
-
--modal-lg:
|
|
52
|
-
--modal-xl:
|
|
93
|
+
--modal-xs: 22rem;
|
|
94
|
+
--modal-sm: 30rem;
|
|
95
|
+
--modal-md: 35rem;
|
|
96
|
+
--modal-lg: 48rem;
|
|
97
|
+
--modal-xl: 60rem;
|
|
53
98
|
--modal-full: 100%;
|
|
54
99
|
}
|
|
55
100
|
|
|
56
101
|
@theme {
|
|
57
102
|
/* Opacity */
|
|
58
|
-
--opacity-hover: .8;
|
|
59
|
-
--opacity-disabled: .5;
|
|
103
|
+
--opacity-hover: 0.8;
|
|
104
|
+
--opacity-disabled: 0.5;
|
|
60
105
|
|
|
61
106
|
/* Animations */
|
|
62
107
|
--animate-swing: swing 2s ease-in-out infinite;
|
|
108
|
+
--animate-shimmer: shimmer 2s linear infinite;
|
|
109
|
+
--animate-skeleton-enter: skeleton-enter 320ms cubic-bezier(0.16, 1, 0.3, 1)
|
|
110
|
+
both;
|
|
111
|
+
--animate-caret-blink: caret-blink 1.06s linear infinite;
|
|
63
112
|
}
|
|
@@ -1,26 +1,88 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Font URLs below are relative to this file, which lets the consuming
|
|
3
|
+
* bundler resolve them: it fingerprints each font and rewrites the URL
|
|
4
|
+
* through the app's asset base.
|
|
5
|
+
*
|
|
6
|
+
* They used to be root-absolute (`/@frontile/theme/fonts/...`), matching the
|
|
7
|
+
* `ember-addon.public-assets` entries in package.json. Vite leaves a
|
|
8
|
+
* root-absolute url() untouched — no content hash, and no base prefix — so an
|
|
9
|
+
* app served from a CDN whose URL carries a path resolved the font against the
|
|
10
|
+
* CDN root and 404'd. The public-assets entries are kept for build pipelines
|
|
11
|
+
* that rely on them.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Domine (Variable Font)
|
|
3
16
|
* Used for: marquee text styles (text-marquee-*)
|
|
4
17
|
* Primary weight: 600 (SemiBold) - used by all marquee styles
|
|
5
18
|
* Variable font supports weights: 400-700
|
|
6
19
|
*
|
|
7
|
-
* Sourced from: https://fonts.google.com/specimen/
|
|
20
|
+
* Sourced from: https://fonts.google.com/specimen/Domine
|
|
8
21
|
*/
|
|
9
22
|
|
|
10
23
|
/* Variable Font - Normal */
|
|
11
24
|
@font-face {
|
|
12
|
-
font-family: '
|
|
13
|
-
src: url('
|
|
25
|
+
font-family: 'Domine';
|
|
26
|
+
src: url('../../public/fonts/domine-variable.woff2')
|
|
27
|
+
format('woff2-variations');
|
|
14
28
|
font-weight: 400 700;
|
|
15
29
|
font-style: normal;
|
|
16
30
|
font-display: swap;
|
|
17
31
|
}
|
|
18
32
|
|
|
19
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Open Sans (Variable Font)
|
|
35
|
+
* Used for: header, body, caption, and label text styles
|
|
36
|
+
* Weights used: 400 (regular), 600 (semibold), 700 (bold)
|
|
37
|
+
* Variable font supports weights: 300-800
|
|
38
|
+
*
|
|
39
|
+
* Sourced from: https://fonts.google.com/specimen/Open+Sans
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/* Variable Font - Normal */
|
|
20
43
|
@font-face {
|
|
21
|
-
font-family: '
|
|
22
|
-
src: url('
|
|
23
|
-
|
|
44
|
+
font-family: 'Open Sans';
|
|
45
|
+
src: url('../../public/fonts/open-sans-variable.woff2')
|
|
46
|
+
format('woff2-variations');
|
|
47
|
+
font-weight: 300 800;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-display: swap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Variable Font - Italic */
|
|
53
|
+
@font-face {
|
|
54
|
+
font-family: 'Open Sans';
|
|
55
|
+
src: url('../../public/fonts/open-sans-italic-variable.woff2')
|
|
56
|
+
format('woff2-variations');
|
|
57
|
+
font-weight: 300 800;
|
|
58
|
+
font-style: italic;
|
|
59
|
+
font-display: swap;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Source Code Pro (Variable Font)
|
|
64
|
+
* Used for: code text styles (text-code-*)
|
|
65
|
+
* Variable font supports weights: 200-900
|
|
66
|
+
*
|
|
67
|
+
* Sourced from: https://fonts.google.com/specimen/Source+Code+Pro
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/* Variable Font - Normal */
|
|
71
|
+
@font-face {
|
|
72
|
+
font-family: 'Source Code Pro';
|
|
73
|
+
src: url('../../public/fonts/source-code-pro-variable.woff2')
|
|
74
|
+
format('woff2-variations');
|
|
75
|
+
font-weight: 200 900;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-display: swap;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Variable Font - Italic */
|
|
81
|
+
@font-face {
|
|
82
|
+
font-family: 'Source Code Pro';
|
|
83
|
+
src: url('../../public/fonts/source-code-pro-italic-variable.woff2')
|
|
84
|
+
format('woff2-variations');
|
|
85
|
+
font-weight: 200 900;
|
|
24
86
|
font-style: italic;
|
|
25
87
|
font-display: swap;
|
|
26
88
|
}
|
package/src/styles/theme.css
CHANGED
|
@@ -28,15 +28,26 @@
|
|
|
28
28
|
--border-width-aggressive: 4px; /* Default border width. */
|
|
29
29
|
|
|
30
30
|
/* ==================== Border Radius ==================== */
|
|
31
|
+
/*
|
|
32
|
+
One knob for the whole system. Every step below is a multiple of `--radius`,
|
|
33
|
+
so overriding that single value (in CSS, or via `layout.radius.DEFAULT` in
|
|
34
|
+
the plugin config) dials the roundness of every component up or down
|
|
35
|
+
proportionally — `--radius: 0` squares everything off, `--radius: 0.75rem`
|
|
36
|
+
makes it noticeably softer. `none` and `pill` are absolutes by design and
|
|
37
|
+
deliberately do not scale.
|
|
38
|
+
*/
|
|
39
|
+
--radius: 0.5rem; /* 8px — base unit the entire scale is derived from. */
|
|
31
40
|
--radius-none: 0px; /* No border radius (sharp corners). */
|
|
32
|
-
--radius-xs:
|
|
33
|
-
--radius-sm:
|
|
34
|
-
--radius-md:
|
|
35
|
-
--radius-
|
|
36
|
-
--radius-
|
|
37
|
-
--radius-
|
|
41
|
+
--radius-xs: calc(var(--radius) * 0.25); /* 2px — hairline rounding. */
|
|
42
|
+
--radius-sm: calc(var(--radius) * 0.5); /* 4px — small inline elements. */
|
|
43
|
+
--radius-md: calc(var(--radius) * 0.75); /* 6px — compact controls. */
|
|
44
|
+
--radius-lg: calc(var(--radius) * 1); /* 8px — nested list items, cards. */
|
|
45
|
+
--radius-xl: calc(var(--radius) * 1.5); /* 12px — inputs, menus, popovers. */
|
|
46
|
+
--radius-2xl: calc(var(--radius) * 2); /* 16px — modals, drawers. */
|
|
47
|
+
--radius-3xl: calc(var(--radius) * 3); /* 24px — oversized surfaces. */
|
|
48
|
+
--radius-4xl: calc(var(--radius) * 4); /* 32px — hero-scale surfaces. */
|
|
49
|
+
--radius-default: calc(var(--radius) * 2.5); /* 20px — friendly, approachable UI elements. */
|
|
38
50
|
--radius-pill: 9999px; /* Pill-shaped border radius (fully rounded sides) for buttons and tags. */
|
|
39
|
-
--radius: 8px; /* Large border radius for more prominent rounding. - DEFAULT */
|
|
40
51
|
|
|
41
52
|
/* ==================== Elevation Shadows ==================== */
|
|
42
53
|
--shadow-elevation-0: 0px 0px 0px 0px rgb(0 0 0 / 0.01);
|