@infonomic/uikit 3.6.0 → 3.8.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.
- package/dist/components/avatar/avatar_module.css +1 -1
- package/dist/components/badge/badge_module.css +1 -1
- package/dist/components/button/button-group_module.css +1 -1
- package/dist/components/button/button_module.css +1 -1
- package/dist/components/button/copy-button_module.css +1 -1
- package/dist/components/card/card_module.css +1 -1
- package/dist/components/container/container_module.css +9 -9
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/dropdown/dropdown_module.css +1 -1
- package/dist/components/forms/calendar_module.css +2 -2
- package/dist/components/forms/checkbox_module.css +1 -1
- package/dist/components/forms/error-text_module.css +1 -1
- package/dist/components/forms/help-text_module.css +1 -1
- package/dist/components/forms/input-adornment_module.css +1 -1
- package/dist/components/forms/input_module.css +1 -1
- package/dist/components/forms/label_module.css +1 -1
- package/dist/components/forms/radio-group_module.css +1 -1
- package/dist/components/forms/select_module.css +1 -1
- package/dist/components/forms/text-area_module.css +1 -1
- package/dist/components/notifications/alert_module.css +1 -1
- package/dist/components/notifications/toast_module.css +2 -2
- package/dist/components/pager/pagination_module.css +2 -2
- package/dist/components/scroll-area/scroll-area_module.css +1 -1
- package/dist/components/section/section_module.css +1 -1
- package/dist/components/shimmer/shimmer_module.css +1 -1
- package/dist/components/table/table_module.css +1 -1
- package/dist/components/tabs/tabs_module.css +1 -1
- package/dist/components/tooltip/tooltip_module.css +1 -1
- package/dist/icons/icon-element.d.ts.map +1 -1
- package/dist/icons/icon-element.js +2 -1
- package/dist/icons/icons.module.js +2 -0
- package/dist/icons/icons_module.css +7 -0
- package/dist/styles/styles.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/widgets/drawer/drawer_module.css +1 -1
- package/dist/widgets/modal/modal_module.css +1 -1
- package/dist/widgets/timeline/timeline_module.css +1 -1
- package/package.json +1 -1
- package/src/components/avatar/avatar.module.css +1 -1
- package/src/components/badge/badge.module.css +1 -1
- package/src/components/button/button-group.module.css +1 -1
- package/src/components/button/button.module.css +1 -1
- package/src/components/button/copy-button.module.css +1 -1
- package/src/components/card/card.module.css +1 -1
- package/src/components/container/container.module.css +10 -9
- package/src/components/dropdown/dropdown.module.css +1 -1
- package/src/components/dropdown/dropdown.stories.tsx +1 -1
- package/src/components/dropdown/dropdown.tsx +1 -1
- package/src/components/forms/calendar.module.css +2 -2
- package/src/components/forms/checkbox.module.css +1 -1
- package/src/components/forms/error-text.module.css +1 -1
- package/src/components/forms/help-text.module.css +1 -1
- package/src/components/forms/input-adornment.module.css +1 -1
- package/src/components/forms/input.module.css +1 -1
- package/src/components/forms/label.module.css +1 -1
- package/src/components/forms/radio-group.module.css +1 -1
- package/src/components/forms/select.module.css +1 -1
- package/src/components/forms/text-area.module.css +1 -1
- package/src/components/notifications/alert.module.css +1 -1
- package/src/components/notifications/toast.module.css +2 -2
- package/src/components/pager/pagination.module.css +2 -2
- package/src/components/scroll-area/scroll-area.module.css +1 -1
- package/src/components/section/section.module.css +1 -1
- package/src/components/shimmer/shimmer.module.css +1 -1
- package/src/components/table/table.module.css +1 -1
- package/src/components/tabs/tabs.module.css +1 -1
- package/src/components/tooltip/tooltip.module.css +1 -1
- package/src/icons/icon-element.tsx +3 -1
- package/src/icons/icons.module.css +7 -0
- package/src/styles/base/base.css +11 -3
- package/src/styles/base/borders.css +30 -0
- package/src/styles/base/breakpoints.css +15 -0
- package/src/styles/base/colors.stories.tsx +1 -1
- package/src/styles/base/opacity.css +12 -0
- package/src/styles/base/shadows.css +13 -0
- package/src/styles/base/spacing.css +21 -0
- package/src/styles/base/transitions.css +7 -0
- package/src/styles/base/typography.css +41 -19
- package/src/styles/base/z-index.css +12 -0
- package/src/styles/components/components.css +1 -8
- package/src/styles/components/hamburger.css +1 -1
- package/src/styles/{theme/tokens.css → functional/colors.css} +4 -2
- package/src/styles/functional/functional.css +2 -0
- package/src/styles/functional/grid-flex.css +52 -0
- package/src/styles/styles.css +2 -1
- package/src/styles/theme/theme.css +1 -1
- package/src/styles/theme/theme.stories.tsx +2 -2
- package/src/styles/theme/typography.css +26 -0
- package/src/styles/typography/prose.css +2 -2
- package/src/styles/utils/utility-classes.css +12 -12
- package/src/widgets/drawer/drawer.module.css +1 -1
- package/src/widgets/modal/modal.module.css +1 -1
- package/src/widgets/timeline/timeline.module.css +1 -1
- package/src/styles/base/vars.css +0 -188
- package/src/styles/components/card.css +0 -20
- package/src/styles/components/checkbox.css +0 -55
- package/src/styles/components/directional-button.css +0 -92
- package/src/styles/components/dropdown.css +0 -19
- package/src/styles/components/icon-element.css +0 -10
- package/src/styles/components/list-checkbox.css +0 -60
- package/src/styles/components/popover.css +0 -15
- package/src/styles/components/toast.css +0 -18
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SEMANTIC TOKEN LAYER
|
|
2
|
+
* SEMANTIC / FUNCTIONAL TOKEN LAYER FOR COLORS
|
|
3
|
+
*
|
|
4
|
+
* TODO: Refactor into separate file per token category (e.g., buttons, alerts)
|
|
3
5
|
*
|
|
4
6
|
* This layer provides intent-based semantic tokens that automatically switch
|
|
5
7
|
* between light and dark modes. By defining tokens here (in infonomic-theme layer),
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
* Example: --fill-primary-strong-hover
|
|
16
18
|
*/
|
|
17
19
|
|
|
18
|
-
@layer infonomic-
|
|
20
|
+
@layer infonomic-functional {
|
|
19
21
|
/* ===================================================================
|
|
20
22
|
LIGHT MODE (default)
|
|
21
23
|
=================================================================== */
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@layer infonomic-functional {
|
|
2
|
+
:root {
|
|
3
|
+
/* ========================================
|
|
4
|
+
GRID SYSTEM
|
|
5
|
+
======================================== */
|
|
6
|
+
--grid-columns-2: 2;
|
|
7
|
+
--grid-columns-3: 3;
|
|
8
|
+
--grid-columns-4: 4;
|
|
9
|
+
--grid-columns-5: 5;
|
|
10
|
+
--grid-columns-6: 6;
|
|
11
|
+
--grid-columns-7: 7;
|
|
12
|
+
--grid-columns-8: 8;
|
|
13
|
+
--grid-columns-9: 9;
|
|
14
|
+
--grid-columns-10: 10;
|
|
15
|
+
--grid-columns-11: 11;
|
|
16
|
+
--grid-columns-12: 12;
|
|
17
|
+
--grid-gap-sm: 8px;
|
|
18
|
+
--grid-gap-md: 16px;
|
|
19
|
+
--grid-gap-lg: 24px;
|
|
20
|
+
--grid-column-size-xs: 240px;
|
|
21
|
+
--grid-column-size-sm: 260px;
|
|
22
|
+
--grid-column-size-md: 320px;
|
|
23
|
+
--grid-column-size-lg: 480px;
|
|
24
|
+
|
|
25
|
+
/* ========================================
|
|
26
|
+
GAP SYSTEM (For Grid & Flexbox)
|
|
27
|
+
======================================== */
|
|
28
|
+
--gap-0: var(--spacing-0);
|
|
29
|
+
--gap-1: var(--spacing-1);
|
|
30
|
+
--gap-2: var(--spacing-2);
|
|
31
|
+
--gap-3: var(--spacing-3);
|
|
32
|
+
--gap-4: var(--spacing-4);
|
|
33
|
+
--gap-5: var(--spacing-5);
|
|
34
|
+
--gap-6: var(--spacing-6);
|
|
35
|
+
--gap-8: var(--spacing-8);
|
|
36
|
+
--gap-10: var(--spacing-10);
|
|
37
|
+
--gap-12: var(--spacing-12);
|
|
38
|
+
--gap-16: var(--spacing-16);
|
|
39
|
+
--gap-20: var(--spacing-20);
|
|
40
|
+
--gap-24: var(--spacing-24);
|
|
41
|
+
--gap-32: var(--spacing-32);
|
|
42
|
+
|
|
43
|
+
/* ========================================
|
|
44
|
+
FLEXBOX HELPERS
|
|
45
|
+
======================================== */
|
|
46
|
+
--flex-row: row;
|
|
47
|
+
--flex-column: column;
|
|
48
|
+
--flex-wrap: wrap;
|
|
49
|
+
--flex-nowrap: nowrap;
|
|
50
|
+
--flex-center: center;
|
|
51
|
+
}
|
|
52
|
+
}
|
package/src/styles/styles.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
@layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
|
|
1
|
+
@layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
|
|
2
2
|
|
|
3
3
|
@import "./base/base.css";
|
|
4
|
+
@import "./functional/functional.css";
|
|
4
5
|
@import "./utils/utils.css";
|
|
5
6
|
@import "./theme/theme.css";
|
|
6
7
|
@import "./components/components.css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/react-vite'
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const Default = (): React.JSX.Element => {
|
|
4
4
|
return (
|
|
5
5
|
<>
|
|
6
6
|
<div style={{ marginBottom: '48px' }}>
|
|
@@ -27,7 +27,7 @@ const meta: Meta = {
|
|
|
27
27
|
* to learn how to generate automatic titles
|
|
28
28
|
*/
|
|
29
29
|
title: 'Theme',
|
|
30
|
-
component:
|
|
30
|
+
component: Default,
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export default meta
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Simple headings spec if the optional typography layer is not imported */
|
|
2
|
+
@layer infonomic-theme {
|
|
3
|
+
h1 {
|
|
4
|
+
font-size: 1.75rem;
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
line-height: 1.125;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
h2 {
|
|
10
|
+
font-size: 1.5rem;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
line-height: 1.125;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h3 {
|
|
16
|
+
font-size: 1.25rem;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
line-height: 1.1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
h4 {
|
|
22
|
+
font-size: 1rem;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
line-height: 1.1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/* medium breakpoint */
|
|
128
|
-
@media screen and (min-width:
|
|
128
|
+
@media screen and (min-width: 48rem) {
|
|
129
129
|
|
|
130
130
|
article,
|
|
131
131
|
.dynamic-text {
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
padding-bottom: 0;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
@media (min-width:
|
|
398
|
+
@media (min-width: 48rem) {
|
|
399
399
|
.prose :where(blockquote):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
400
400
|
font-size: 1.7rem;
|
|
401
401
|
line-height: 1.2;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
letter-spacing: var(--letter-spacing-wide);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
@media (min-width:
|
|
130
|
+
@media (min-width: 40rem) {
|
|
131
131
|
.sm\:text-xs {
|
|
132
132
|
font-size: var(--font-size-xs);
|
|
133
133
|
}
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
@media (min-width:
|
|
240
|
+
@media (min-width: 48rem) {
|
|
241
241
|
.md\:text-xs {
|
|
242
242
|
font-size: var(--font-size-xs);
|
|
243
243
|
}
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
padding: var(--spacing-32);
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
@media (min-width:
|
|
453
|
+
@media (min-width: 40rem) {
|
|
454
454
|
.sm\:m-0 {
|
|
455
455
|
margin: var(--spacing-0);
|
|
456
456
|
}
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
-
@media (min-width:
|
|
555
|
+
@media (min-width: 48rem) {
|
|
556
556
|
.md\:m-0 {
|
|
557
557
|
margin: var(--spacing-0);
|
|
558
558
|
}
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
justify-content: var(--flex-center);
|
|
686
686
|
}
|
|
687
687
|
|
|
688
|
-
@media (min-width:
|
|
688
|
+
@media (min-width: 40rem) {
|
|
689
689
|
.sm\:flex {
|
|
690
690
|
display: flex;
|
|
691
691
|
}
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
|
|
718
|
-
@media (min-width:
|
|
718
|
+
@media (min-width: 48rem) {
|
|
719
719
|
.md\:flex {
|
|
720
720
|
display: flex;
|
|
721
721
|
}
|
|
@@ -853,7 +853,7 @@
|
|
|
853
853
|
gap: var(--gap-32);
|
|
854
854
|
}
|
|
855
855
|
|
|
856
|
-
@media (min-width:
|
|
856
|
+
@media (min-width: 40rem) {
|
|
857
857
|
.sm\:grid {
|
|
858
858
|
display: grid;
|
|
859
859
|
}
|
|
@@ -923,7 +923,7 @@
|
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
-
@media (min-width:
|
|
926
|
+
@media (min-width: 48rem) {
|
|
927
927
|
|
|
928
928
|
.md\:grid {
|
|
929
929
|
display: grid;
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
border-radius: var(--border-radius-full);
|
|
1043
1043
|
}
|
|
1044
1044
|
|
|
1045
|
-
@media (min-width:
|
|
1045
|
+
@media (min-width: 40rem) {
|
|
1046
1046
|
.sm\:border {
|
|
1047
1047
|
border-width: var(--border-width-normal);
|
|
1048
1048
|
border-style: var(--border-style-solid);
|
|
@@ -1089,7 +1089,7 @@
|
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
|
-
@media (min-width:
|
|
1092
|
+
@media (min-width: 48rem) {
|
|
1093
1093
|
.md\:border {
|
|
1094
1094
|
border-width: var(--border-width-normal);
|
|
1095
1095
|
border-style: var(--border-style-solid);
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
box-shadow: var(--shadow-xl);
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
|
-
@media (min-width:
|
|
1166
|
+
@media (min-width: 48rem) {
|
|
1167
1167
|
.md\:shadow {
|
|
1168
1168
|
box-shadow: var(--shadow);
|
|
1169
1169
|
}
|
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
opacity: var(--opacity-100);
|
|
1214
1214
|
}
|
|
1215
1215
|
|
|
1216
|
-
@media (min-width:
|
|
1216
|
+
@media (min-width: 48rem) {
|
|
1217
1217
|
.md\:opacity-0 {
|
|
1218
1218
|
opacity: var(--opacity-0);
|
|
1219
1219
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
|
|
1
|
+
@layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
4
|
.timeline {
|
package/src/styles/base/vars.css
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
@layer infonomic-base {
|
|
2
|
-
:root {
|
|
3
|
-
/* ========================================
|
|
4
|
-
BREAKPOINTS
|
|
5
|
-
======================================== */
|
|
6
|
-
--breakpoint-xs: 480px;
|
|
7
|
-
--breakpoint-sm: 640px;
|
|
8
|
-
--breakpoint-md: 768px;
|
|
9
|
-
--breakpoint-lg: 1050px;
|
|
10
|
-
/* our container component will set max width to common screen size */
|
|
11
|
-
--breakpoint-xl: 1230px;
|
|
12
|
-
--breakpoint-2xl: 1500px;
|
|
13
|
-
|
|
14
|
-
/* 12px */
|
|
15
|
-
--font-size-xs: 0.75rem;
|
|
16
|
-
/* 14px */
|
|
17
|
-
--font-size-sm: 0.875rem;
|
|
18
|
-
/* 16px */
|
|
19
|
-
--font-size-base: 1rem;
|
|
20
|
-
/* 18px */
|
|
21
|
-
--font-size-lg: 1.125rem;
|
|
22
|
-
/* 20px */
|
|
23
|
-
--font-size-xl: 1.25rem;
|
|
24
|
-
/* 24px */
|
|
25
|
-
--font-size-2xl: 1.5rem;
|
|
26
|
-
/* 30px */
|
|
27
|
-
--font-size-3xl: 1.875rem;
|
|
28
|
-
/* 36px */
|
|
29
|
-
--font-size-4xl: 2.25rem;
|
|
30
|
-
/* 42px */
|
|
31
|
-
--font-size-5xl: 2.625rem;
|
|
32
|
-
/* 48px */
|
|
33
|
-
--font-size-6xl: 3rem;
|
|
34
|
-
/* 54px */
|
|
35
|
-
--font-size-7xl: 3.375rem;
|
|
36
|
-
/* 60px */
|
|
37
|
-
--font-size-8xl: 3.75rem;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
--font-weight-light: 300;
|
|
41
|
-
--font-weight-normal: 400;
|
|
42
|
-
--font-weight-medium: 500;
|
|
43
|
-
--font-weight-semibold: 600;
|
|
44
|
-
--font-weight-bold: 700;
|
|
45
|
-
--font-weight-extrabold: 800;
|
|
46
|
-
--font-weight-ultrabold: 900;
|
|
47
|
-
|
|
48
|
-
--line-height-tight: 1.1;
|
|
49
|
-
--line-height-snug: 1.25;
|
|
50
|
-
--line-height-normal: 1.5;
|
|
51
|
-
--line-height-relaxed: 1.625;
|
|
52
|
-
--line-height-loose: 2;
|
|
53
|
-
|
|
54
|
-
--letter-spacing-tight: -0.02em;
|
|
55
|
-
--letter-spacing-normal: 0;
|
|
56
|
-
--letter-spacing-wide: 0.05em;
|
|
57
|
-
|
|
58
|
-
/* ========================================
|
|
59
|
-
SPACING SYSTEM (8px grid)
|
|
60
|
-
======================================== */
|
|
61
|
-
--spacing-0: 0px;
|
|
62
|
-
--spacing-1: 4px;
|
|
63
|
-
--spacing-2: 8px;
|
|
64
|
-
--spacing-3: 12px;
|
|
65
|
-
--spacing-4: 16px;
|
|
66
|
-
--spacing-5: 20px;
|
|
67
|
-
--spacing-6: 24px;
|
|
68
|
-
--spacing-8: 32px;
|
|
69
|
-
--spacing-10: 40px;
|
|
70
|
-
--spacing-12: 48px;
|
|
71
|
-
--spacing-16: 64px;
|
|
72
|
-
--spacing-20: 80px;
|
|
73
|
-
--spacing-24: 96px;
|
|
74
|
-
--spacing-32: 128px;
|
|
75
|
-
|
|
76
|
-
/* ========================================
|
|
77
|
-
BORDER & RADIUS
|
|
78
|
-
======================================== */
|
|
79
|
-
--border-radius-none: 0px;
|
|
80
|
-
--border-radius-sm: 4px;
|
|
81
|
-
--border-radius-md: 8px;
|
|
82
|
-
--border-radius-lg: 12px;
|
|
83
|
-
--border-radius-xl: 16px;
|
|
84
|
-
--border-radius-2xl: 24px;
|
|
85
|
-
--border-radius-full: 9999px;
|
|
86
|
-
|
|
87
|
-
--border-width-thin: 1px;
|
|
88
|
-
--border-width-normal: 2px;
|
|
89
|
-
--border-width-thick: 4px;
|
|
90
|
-
|
|
91
|
-
--border-style-solid: solid;
|
|
92
|
-
--border-style-dashed: dashed;
|
|
93
|
-
--border-style-dotted: dotted;
|
|
94
|
-
|
|
95
|
-
/* ========================================
|
|
96
|
-
RINGS
|
|
97
|
-
======================================== */
|
|
98
|
-
|
|
99
|
-
--ring-offset-width: 2px;
|
|
100
|
-
--ring-inset: ;
|
|
101
|
-
--ring-shadow: 0 0 #0000;
|
|
102
|
-
|
|
103
|
-
/* ========================================
|
|
104
|
-
SHADOWS
|
|
105
|
-
======================================== */
|
|
106
|
-
|
|
107
|
-
--shadow: 0 0 #0000;
|
|
108
|
-
--shadow-xs: 0px 1px 2px rgba(0, 0, 0, 0.05);
|
|
109
|
-
--shadow-sm: 0px 2px 4px rgba(0, 0, 0, 0.1);
|
|
110
|
-
--shadow-md: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
|
111
|
-
--shadow-lg: 0px 6px 12px rgba(0, 0, 0, 0.15);
|
|
112
|
-
--shadow-xl: 0px 8px 16px rgba(0, 0, 0, 0.2);
|
|
113
|
-
|
|
114
|
-
/* ========================================
|
|
115
|
-
TRANSITIONS
|
|
116
|
-
======================================== */
|
|
117
|
-
--transition-fast: 175ms ease-in-out;
|
|
118
|
-
--transition-normal: 230ms ease-in-out;
|
|
119
|
-
--transition-slow: 400ms ease-in-out;
|
|
120
|
-
|
|
121
|
-
/* ========================================
|
|
122
|
-
Z-INDEX SYSTEM
|
|
123
|
-
======================================== */
|
|
124
|
-
--z-index-low: 10;
|
|
125
|
-
--z-index-medium: 100;
|
|
126
|
-
--z-index-high: 1000;
|
|
127
|
-
--z-index-modal: 1050;
|
|
128
|
-
--z-index-toast: 1100;
|
|
129
|
-
|
|
130
|
-
/* ========================================
|
|
131
|
-
OPACITY LEVELS
|
|
132
|
-
======================================== */
|
|
133
|
-
--opacity-0: 0;
|
|
134
|
-
--opacity-25: 0.25;
|
|
135
|
-
--opacity-50: 0.5;
|
|
136
|
-
--opacity-75: 0.75;
|
|
137
|
-
--opacity-100: 1;
|
|
138
|
-
|
|
139
|
-
/* ========================================
|
|
140
|
-
GRID SYSTEM
|
|
141
|
-
======================================== */
|
|
142
|
-
--grid-columns-2: 2;
|
|
143
|
-
--grid-columns-3: 3;
|
|
144
|
-
--grid-columns-4: 4;
|
|
145
|
-
--grid-columns-5: 5;
|
|
146
|
-
--grid-columns-6: 6;
|
|
147
|
-
--grid-columns-7: 7;
|
|
148
|
-
--grid-columns-8: 8;
|
|
149
|
-
--grid-columns-9: 9;
|
|
150
|
-
--grid-columns-10: 10;
|
|
151
|
-
--grid-columns-11: 11;
|
|
152
|
-
--grid-columns-12: 12;
|
|
153
|
-
--grid-gap-sm: 8px;
|
|
154
|
-
--grid-gap-md: 16px;
|
|
155
|
-
--grid-gap-lg: 24px;
|
|
156
|
-
--grid-column-size-xs: 240px;
|
|
157
|
-
--grid-column-size-sm: 260px;
|
|
158
|
-
--grid-column-size-md: 320px;
|
|
159
|
-
--grid-column-size-lg: 480px;
|
|
160
|
-
|
|
161
|
-
/* ========================================
|
|
162
|
-
GAP SYSTEM (For Grid & Flexbox)
|
|
163
|
-
======================================== */
|
|
164
|
-
--gap-0: var(--spacing-0);
|
|
165
|
-
--gap-1: var(--spacing-1);
|
|
166
|
-
--gap-2: var(--spacing-2);
|
|
167
|
-
--gap-3: var(--spacing-3);
|
|
168
|
-
--gap-4: var(--spacing-4);
|
|
169
|
-
--gap-5: var(--spacing-5);
|
|
170
|
-
--gap-6: var(--spacing-6);
|
|
171
|
-
--gap-8: var(--spacing-8);
|
|
172
|
-
--gap-10: var(--spacing-10);
|
|
173
|
-
--gap-12: var(--spacing-12);
|
|
174
|
-
--gap-16: var(--spacing-16);
|
|
175
|
-
--gap-20: var(--spacing-20);
|
|
176
|
-
--gap-24: var(--spacing-24);
|
|
177
|
-
--gap-32: var(--spacing-32);
|
|
178
|
-
|
|
179
|
-
/* ========================================
|
|
180
|
-
FLEXBOX HELPERS
|
|
181
|
-
======================================== */
|
|
182
|
-
--flex-row: row;
|
|
183
|
-
--flex-column: column;
|
|
184
|
-
--flex-wrap: wrap;
|
|
185
|
-
--flex-nowrap: nowrap;
|
|
186
|
-
--flex-center: center;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.component--card {
|
|
2
|
-
background: var(--theme-25);
|
|
3
|
-
color: oklch(12.97% 0.005 285.67);
|
|
4
|
-
border: solid 1px var(--gray-50);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.component--card:is(.dark *) {
|
|
8
|
-
background: var(--canvas-800);
|
|
9
|
-
color: var(--gray-100);
|
|
10
|
-
border: solid 1px var(--canvas-700);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.component--card--hover:hover {
|
|
14
|
-
background: oklch(from var(--theme-50) 1 0.03 h);
|
|
15
|
-
transition: ease-in-out 200ms;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.component--card--hover:hover:is(.dark *) {
|
|
19
|
-
background: oklch(from var(--canvas-700) 0.258 c h);
|
|
20
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/* Define keyframes for the "checked" state */
|
|
2
|
-
@keyframes checkBoxIn {
|
|
3
|
-
0% {
|
|
4
|
-
opacity: 0;
|
|
5
|
-
transform: scale(0.8);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
50% {
|
|
9
|
-
opacity: 1;
|
|
10
|
-
transform: scale(1.2);
|
|
11
|
-
/* Overshoot */
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
80% {
|
|
15
|
-
transform: scale(0.9);
|
|
16
|
-
/* Slight bounce back */
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
100% {
|
|
20
|
-
transform: scale(1);
|
|
21
|
-
/* Settle */
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* Define keyframes for the "unchecked" state */
|
|
26
|
-
@keyframes checkBoxOut {
|
|
27
|
-
from {
|
|
28
|
-
opacity: 1;
|
|
29
|
-
transform: scale(1);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
to {
|
|
33
|
-
opacity: 0;
|
|
34
|
-
transform: scale(0.8);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.component--checkbox,
|
|
39
|
-
.component--checkbox-icon {
|
|
40
|
-
transition: all ease-in-out 200ms;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Style for the "checked" state */
|
|
44
|
-
.component--checkbox-indicator[data-state="checked"] .component--checkbox-icon {
|
|
45
|
-
animation: checkBoxIn 0.3s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
|
|
46
|
-
opacity: 1;
|
|
47
|
-
transform: scale(1);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* Style for the "unchecked" state */
|
|
51
|
-
.component--checkbox-indicator[data-state="unchecked"] .component--checkbox-icon {
|
|
52
|
-
animation: checkBoxOut 0.2s ease-in;
|
|
53
|
-
opacity: 0;
|
|
54
|
-
transform: scale(0.8);
|
|
55
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
.component--directional-button {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
width: 40px;
|
|
5
|
-
height: 40px;
|
|
6
|
-
text-decoration: none;
|
|
7
|
-
border-style: none;
|
|
8
|
-
border-radius: 20px;
|
|
9
|
-
padding: 0;
|
|
10
|
-
margin: 0;
|
|
11
|
-
outline: none;
|
|
12
|
-
z-index: 20;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
color: white;
|
|
15
|
-
background-color: var(--primary-500);
|
|
16
|
-
transition-property: all, color;
|
|
17
|
-
transition-duration: 0.3s, 1ms;
|
|
18
|
-
transition-timing-function: cubic-bezier(0.25, 0.8, 0.5, 1), ease;
|
|
19
|
-
transition-delay: 0s, 0s;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.component--directional-button span {
|
|
24
|
-
width: 18px;
|
|
25
|
-
padding-bottom: 3px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.component--directional-button span .icon path {
|
|
29
|
-
stroke: none;
|
|
30
|
-
fill: white;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@media screen and (min-width: 587px) {
|
|
34
|
-
.component--directional-button {
|
|
35
|
-
width: 42px;
|
|
36
|
-
height: 42px;
|
|
37
|
-
border-radius: 21px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.component--directional-button:hover,
|
|
42
|
-
.component--directional-button:focus {
|
|
43
|
-
color: white;
|
|
44
|
-
background-color: var(--primary-500);
|
|
45
|
-
transform: translateY(-5px);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* Up is default so no need to rotate */
|
|
49
|
-
.component--directional-button.up:hover,
|
|
50
|
-
.component--directional-button.up:focus {
|
|
51
|
-
transform: translateY(-5px);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.component--directional-button.down span,
|
|
55
|
-
.directional-button.down span {
|
|
56
|
-
transform: rotate(180deg);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.component--directional-button.down:hover,
|
|
60
|
-
.component--directional-button.down:focus {
|
|
61
|
-
transform: translateY(5px);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.component--directional-button.left span,
|
|
65
|
-
.component--directional-button.left span {
|
|
66
|
-
transform: rotate(-90deg);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.component--directional-button.left:hover,
|
|
70
|
-
.component--directional-button.left:focus {
|
|
71
|
-
transform: translateX(-5px);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.component--directional-button.right span,
|
|
75
|
-
.component--directional-button.right span {
|
|
76
|
-
transform: rotate(90deg);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.component--directional-button.right:hover,
|
|
80
|
-
.component--directional-button.right:focus {
|
|
81
|
-
transform: translateX(5px);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.dark .component--directional-button {
|
|
85
|
-
background-color: var(--secondary-700);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.dark .component--directional-button:hover,
|
|
89
|
-
.dark .component--directional-button:focus {
|
|
90
|
-
color: white;
|
|
91
|
-
background-color: var(--secondary-700);
|
|
92
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
.dropdown-menu-content[data-side="top"],
|
|
2
|
-
.dropdown-menu-subcontent[data-side="top"] {
|
|
3
|
-
animation: slideDownAndFade 100ms ease-in;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.dropdown-menu-content[data-side="right"],
|
|
7
|
-
.dropdown-menu-subcontent[data-side="right"] {
|
|
8
|
-
animation: slideLeftAndFade 100ms ease-in;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dropdown-menu-content[data-side="bottom"],
|
|
12
|
-
.dropdown-menu-subcontent[data-side="bottom"] {
|
|
13
|
-
animation: slideUpAndFade 100ms ease-in;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.dropdown-menu-content[data-side="left"],
|
|
17
|
-
.dropdown-menu-subcontent[data-side="left"] {
|
|
18
|
-
animation: slideRightAndFade 100ms ease-in;
|
|
19
|
-
}
|