@raintonic/formaui 0.2.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/CHANGELOG.md +7 -0
- package/README.md +145 -0
- package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs +806 -0
- package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-cdk-form-field.mjs +86 -0
- package/fesm2022/raintonic-formaui-cdk-form-field.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs +1757 -0
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs +287 -0
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-accordion.mjs +217 -0
- package/fesm2022/raintonic-formaui-components-accordion.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-alert.mjs +161 -0
- package/fesm2022/raintonic-formaui-components-alert.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-autocomplete.mjs +726 -0
- package/fesm2022/raintonic-formaui-components-autocomplete.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-avatar.mjs +92 -0
- package/fesm2022/raintonic-formaui-components-avatar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-badge.mjs +107 -0
- package/fesm2022/raintonic-formaui-components-badge.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-big-menu.mjs +68 -0
- package/fesm2022/raintonic-formaui-components-big-menu.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs +55 -0
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-button-group.mjs +103 -0
- package/fesm2022/raintonic-formaui-components-button-group.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-button.mjs +241 -0
- package/fesm2022/raintonic-formaui-components-button.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-card.mjs +270 -0
- package/fesm2022/raintonic-formaui-components-card.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-checkbox.mjs +295 -0
- package/fesm2022/raintonic-formaui-components-checkbox.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-data-table.mjs +631 -0
- package/fesm2022/raintonic-formaui-components-data-table.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-date-picker.mjs +1331 -0
- package/fesm2022/raintonic-formaui-components-date-picker.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-divider.mjs +41 -0
- package/fesm2022/raintonic-formaui-components-divider.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-drawer.mjs +190 -0
- package/fesm2022/raintonic-formaui-components-drawer.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-dynamic-form.mjs +266 -0
- package/fesm2022/raintonic-formaui-components-dynamic-form.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-empty-state.mjs +33 -0
- package/fesm2022/raintonic-formaui-components-empty-state.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-file-upload.mjs +246 -0
- package/fesm2022/raintonic-formaui-components-file-upload.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-form-field.mjs +482 -0
- package/fesm2022/raintonic-formaui-components-form-field.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-icon.mjs +117 -0
- package/fesm2022/raintonic-formaui-components-icon.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-input.mjs +327 -0
- package/fesm2022/raintonic-formaui-components-input.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-list.mjs +149 -0
- package/fesm2022/raintonic-formaui-components-list.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-menu.mjs +896 -0
- package/fesm2022/raintonic-formaui-components-menu.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-number-input.mjs +345 -0
- package/fesm2022/raintonic-formaui-components-number-input.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-paginator.mjs +139 -0
- package/fesm2022/raintonic-formaui-components-paginator.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-password-input.mjs +306 -0
- package/fesm2022/raintonic-formaui-components-password-input.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-popover.mjs +451 -0
- package/fesm2022/raintonic-formaui-components-popover.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-progressbar.mjs +148 -0
- package/fesm2022/raintonic-formaui-components-progressbar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-radio.mjs +260 -0
- package/fesm2022/raintonic-formaui-components-radio.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-select.mjs +1011 -0
- package/fesm2022/raintonic-formaui-components-select.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-side-panel.mjs +150 -0
- package/fesm2022/raintonic-formaui-components-side-panel.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-sidebar.mjs +257 -0
- package/fesm2022/raintonic-formaui-components-sidebar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-skeleton.mjs +50 -0
- package/fesm2022/raintonic-formaui-components-skeleton.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-slider.mjs +347 -0
- package/fesm2022/raintonic-formaui-components-slider.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-spinner.mjs +63 -0
- package/fesm2022/raintonic-formaui-components-spinner.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-stepper.mjs +317 -0
- package/fesm2022/raintonic-formaui-components-stepper.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tab.mjs +197 -0
- package/fesm2022/raintonic-formaui-components-tab.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tag.mjs +78 -0
- package/fesm2022/raintonic-formaui-components-tag.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-time-picker.mjs +644 -0
- package/fesm2022/raintonic-formaui-components-time-picker.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-toggle.mjs +171 -0
- package/fesm2022/raintonic-formaui-components-toggle.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-toolbar.mjs +140 -0
- package/fesm2022/raintonic-formaui-components-toolbar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tooltip.mjs +555 -0
- package/fesm2022/raintonic-formaui-components-tooltip.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree-select.mjs +314 -0
- package/fesm2022/raintonic-formaui-components-tree-select.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree-table.mjs +103 -0
- package/fesm2022/raintonic-formaui-components-tree-table.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree.mjs +430 -0
- package/fesm2022/raintonic-formaui-components-tree.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-core.mjs +62 -0
- package/fesm2022/raintonic-formaui-core.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-dialog.mjs +798 -0
- package/fesm2022/raintonic-formaui-services-dialog.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-notification.mjs +391 -0
- package/fesm2022/raintonic-formaui-services-notification.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-theme.mjs +248 -0
- package/fesm2022/raintonic-formaui-services-theme.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-test-utils.mjs +66 -0
- package/fesm2022/raintonic-formaui-test-utils.mjs.map +1 -0
- package/fesm2022/raintonic-formaui.mjs +15 -0
- package/fesm2022/raintonic-formaui.mjs.map +1 -0
- package/llms-full.txt +1627 -0
- package/llms.txt +60 -0
- package/package.json +251 -0
- package/styles/_fonts-entry.scss +3 -0
- package/styles/fonts/dm-mono-400-latin.woff2 +0 -0
- package/styles/fonts/inter-tight-latin-italic.woff2 +0 -0
- package/styles/fonts/inter-tight-latin.woff2 +0 -0
- package/styles/index.scss +127 -0
- package/styles/partials/_constants.scss +29 -0
- package/styles/partials/_fonts.scss +36 -0
- package/styles/partials/_grid.scss +171 -0
- package/styles/partials/_mixins.scss +145 -0
- package/styles/partials/_motion.scss +252 -0
- package/styles/partials/_theme.scss +275 -0
- package/styles/partials/_typography.scss +112 -0
- package/styles/partials/_utilities.scss +480 -0
- package/styles/partials/themes/_dark.scss +254 -0
- package/styles/partials/themes/_light.scss +254 -0
- package/types/raintonic-formaui-cdk-drag-drop.d.ts +196 -0
- package/types/raintonic-formaui-cdk-drag-drop.d.ts.map +1 -0
- package/types/raintonic-formaui-cdk-form-field.d.ts +62 -0
- package/types/raintonic-formaui-cdk-form-field.d.ts.map +1 -0
- package/types/raintonic-formaui-cdk-overlay.d.ts +843 -0
- package/types/raintonic-formaui-cdk-overlay.d.ts.map +1 -0
- package/types/raintonic-formaui-cdk-virtual-scroll.d.ts +112 -0
- package/types/raintonic-formaui-cdk-virtual-scroll.d.ts.map +1 -0
- package/types/raintonic-formaui-components-accordion.d.ts +124 -0
- package/types/raintonic-formaui-components-accordion.d.ts.map +1 -0
- package/types/raintonic-formaui-components-alert.d.ts +143 -0
- package/types/raintonic-formaui-components-alert.d.ts.map +1 -0
- package/types/raintonic-formaui-components-autocomplete.d.ts +193 -0
- package/types/raintonic-formaui-components-autocomplete.d.ts.map +1 -0
- package/types/raintonic-formaui-components-avatar.d.ts +52 -0
- package/types/raintonic-formaui-components-avatar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-badge.d.ts +47 -0
- package/types/raintonic-formaui-components-badge.d.ts.map +1 -0
- package/types/raintonic-formaui-components-big-menu.d.ts +62 -0
- package/types/raintonic-formaui-components-big-menu.d.ts.map +1 -0
- package/types/raintonic-formaui-components-breadcrumb.d.ts +26 -0
- package/types/raintonic-formaui-components-breadcrumb.d.ts.map +1 -0
- package/types/raintonic-formaui-components-button-group.d.ts +61 -0
- package/types/raintonic-formaui-components-button-group.d.ts.map +1 -0
- package/types/raintonic-formaui-components-button.d.ts +116 -0
- package/types/raintonic-formaui-components-button.d.ts.map +1 -0
- package/types/raintonic-formaui-components-card.d.ts +191 -0
- package/types/raintonic-formaui-components-card.d.ts.map +1 -0
- package/types/raintonic-formaui-components-checkbox.d.ts +132 -0
- package/types/raintonic-formaui-components-checkbox.d.ts.map +1 -0
- package/types/raintonic-formaui-components-data-table.d.ts +368 -0
- package/types/raintonic-formaui-components-data-table.d.ts.map +1 -0
- package/types/raintonic-formaui-components-date-picker.d.ts +341 -0
- package/types/raintonic-formaui-components-date-picker.d.ts.map +1 -0
- package/types/raintonic-formaui-components-divider.d.ts +21 -0
- package/types/raintonic-formaui-components-divider.d.ts.map +1 -0
- package/types/raintonic-formaui-components-drawer.d.ts +48 -0
- package/types/raintonic-formaui-components-drawer.d.ts.map +1 -0
- package/types/raintonic-formaui-components-dynamic-form.d.ts +412 -0
- package/types/raintonic-formaui-components-dynamic-form.d.ts.map +1 -0
- package/types/raintonic-formaui-components-empty-state.d.ts +14 -0
- package/types/raintonic-formaui-components-empty-state.d.ts.map +1 -0
- package/types/raintonic-formaui-components-file-upload.d.ts +77 -0
- package/types/raintonic-formaui-components-file-upload.d.ts.map +1 -0
- package/types/raintonic-formaui-components-form-field.d.ts +271 -0
- package/types/raintonic-formaui-components-form-field.d.ts.map +1 -0
- package/types/raintonic-formaui-components-icon.d.ts +61 -0
- package/types/raintonic-formaui-components-icon.d.ts.map +1 -0
- package/types/raintonic-formaui-components-input.d.ts +149 -0
- package/types/raintonic-formaui-components-input.d.ts.map +1 -0
- package/types/raintonic-formaui-components-list.d.ts +48 -0
- package/types/raintonic-formaui-components-list.d.ts.map +1 -0
- package/types/raintonic-formaui-components-menu.d.ts +403 -0
- package/types/raintonic-formaui-components-menu.d.ts.map +1 -0
- package/types/raintonic-formaui-components-number-input.d.ts +127 -0
- package/types/raintonic-formaui-components-number-input.d.ts.map +1 -0
- package/types/raintonic-formaui-components-paginator.d.ts +37 -0
- package/types/raintonic-formaui-components-paginator.d.ts.map +1 -0
- package/types/raintonic-formaui-components-password-input.d.ts +111 -0
- package/types/raintonic-formaui-components-password-input.d.ts.map +1 -0
- package/types/raintonic-formaui-components-popover.d.ts +131 -0
- package/types/raintonic-formaui-components-popover.d.ts.map +1 -0
- package/types/raintonic-formaui-components-progressbar.d.ts +111 -0
- package/types/raintonic-formaui-components-progressbar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-radio.d.ts +95 -0
- package/types/raintonic-formaui-components-radio.d.ts.map +1 -0
- package/types/raintonic-formaui-components-select.d.ts +307 -0
- package/types/raintonic-formaui-components-select.d.ts.map +1 -0
- package/types/raintonic-formaui-components-side-panel.d.ts +51 -0
- package/types/raintonic-formaui-components-side-panel.d.ts.map +1 -0
- package/types/raintonic-formaui-components-sidebar.d.ts +174 -0
- package/types/raintonic-formaui-components-sidebar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-skeleton.d.ts +20 -0
- package/types/raintonic-formaui-components-skeleton.d.ts.map +1 -0
- package/types/raintonic-formaui-components-slider.d.ts +108 -0
- package/types/raintonic-formaui-components-slider.d.ts.map +1 -0
- package/types/raintonic-formaui-components-spinner.d.ts +42 -0
- package/types/raintonic-formaui-components-spinner.d.ts.map +1 -0
- package/types/raintonic-formaui-components-stepper.d.ts +126 -0
- package/types/raintonic-formaui-components-stepper.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tab.d.ts +96 -0
- package/types/raintonic-formaui-components-tab.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tag.d.ts +34 -0
- package/types/raintonic-formaui-components-tag.d.ts.map +1 -0
- package/types/raintonic-formaui-components-time-picker.d.ts +172 -0
- package/types/raintonic-formaui-components-time-picker.d.ts.map +1 -0
- package/types/raintonic-formaui-components-toggle.d.ts +70 -0
- package/types/raintonic-formaui-components-toggle.d.ts.map +1 -0
- package/types/raintonic-formaui-components-toolbar.d.ts +128 -0
- package/types/raintonic-formaui-components-toolbar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tooltip.d.ts +268 -0
- package/types/raintonic-formaui-components-tooltip.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree-select.d.ts +80 -0
- package/types/raintonic-formaui-components-tree-select.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree-table.d.ts +90 -0
- package/types/raintonic-formaui-components-tree-table.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree.d.ts +104 -0
- package/types/raintonic-formaui-components-tree.d.ts.map +1 -0
- package/types/raintonic-formaui-core.d.ts +115 -0
- package/types/raintonic-formaui-core.d.ts.map +1 -0
- package/types/raintonic-formaui-services-dialog.d.ts +451 -0
- package/types/raintonic-formaui-services-dialog.d.ts.map +1 -0
- package/types/raintonic-formaui-services-notification.d.ts +221 -0
- package/types/raintonic-formaui-services-notification.d.ts.map +1 -0
- package/types/raintonic-formaui-services-theme.d.ts +126 -0
- package/types/raintonic-formaui-services-theme.d.ts.map +1 -0
- package/types/raintonic-formaui-test-utils.d.ts +24 -0
- package/types/raintonic-formaui-test-utils.d.ts.map +1 -0
- package/types/raintonic-formaui.d.ts +4 -0
- package/types/raintonic-formaui.d.ts.map +1 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// Grid system based on Bootstrap principles
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use './constants' as *;
|
|
4
|
+
@use './mixins' as *;
|
|
5
|
+
|
|
6
|
+
// Container
|
|
7
|
+
.fui-container {
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding-right: calc(var(--fui-gutter-x, #{$fui-grid-gutter}) * 0.5);
|
|
10
|
+
padding-left: calc(var(--fui-gutter-x, #{$fui-grid-gutter}) * 0.5);
|
|
11
|
+
margin-right: auto;
|
|
12
|
+
margin-left: auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fui-container-sm {
|
|
16
|
+
max-width: 540px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.fui-container-md {
|
|
20
|
+
max-width: 720px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.fui-container-lg {
|
|
24
|
+
max-width: 960px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.fui-container-xl {
|
|
28
|
+
max-width: 1140px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.fui-container-xxl {
|
|
32
|
+
max-width: $fui-container-max-width;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.fui-container-fluid {
|
|
36
|
+
max-width: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Row
|
|
40
|
+
.fui-row {
|
|
41
|
+
--fui-gutter-x: #{$fui-grid-gutter};
|
|
42
|
+
--fui-gutter-y: 0;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-wrap: wrap;
|
|
45
|
+
margin-top: calc(-1 * var(--fui-gutter-y));
|
|
46
|
+
margin-right: calc(-0.5 * var(--fui-gutter-x));
|
|
47
|
+
margin-left: calc(-0.5 * var(--fui-gutter-x));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.fui-row > * {
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
width: 100%;
|
|
53
|
+
max-width: 100%;
|
|
54
|
+
padding-right: calc(var(--fui-gutter-x) * 0.5);
|
|
55
|
+
padding-left: calc(var(--fui-gutter-x) * 0.5);
|
|
56
|
+
margin-top: var(--fui-gutter-y);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Columns
|
|
60
|
+
.fui-col {
|
|
61
|
+
flex: 1 0 0%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.fui-col-auto {
|
|
65
|
+
flex: 0 0 auto;
|
|
66
|
+
width: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Generate column classes
|
|
70
|
+
@for $i from 1 through $fui-grid-columns {
|
|
71
|
+
.fui-col-#{$i} {
|
|
72
|
+
flex: 0 0 auto;
|
|
73
|
+
width: math.div(100% * $i, $fui-grid-columns);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Responsive columns
|
|
78
|
+
@each $breakpoint in (sm, md, lg, xl, xxl) {
|
|
79
|
+
@include fui-breakpoint($breakpoint) {
|
|
80
|
+
.fui-col-#{$breakpoint} {
|
|
81
|
+
flex: 1 0 0%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.fui-col-#{$breakpoint}-auto {
|
|
85
|
+
flex: 0 0 auto;
|
|
86
|
+
width: auto;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@for $i from 1 through $fui-grid-columns {
|
|
90
|
+
.fui-col-#{$breakpoint}-#{$i} {
|
|
91
|
+
flex: 0 0 auto;
|
|
92
|
+
width: math.div(100% * $i, $fui-grid-columns);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Offset classes
|
|
99
|
+
@for $i from 0 through ($fui-grid-columns - 1) {
|
|
100
|
+
.fui-offset-#{$i} {
|
|
101
|
+
@if $i > 0 {
|
|
102
|
+
margin-left: math.div(100% * $i, $fui-grid-columns);
|
|
103
|
+
} @else {
|
|
104
|
+
margin-left: 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@each $breakpoint in (sm, md, lg, xl, xxl) {
|
|
110
|
+
@include fui-breakpoint($breakpoint) {
|
|
111
|
+
@for $i from 0 through ($fui-grid-columns - 1) {
|
|
112
|
+
.fui-offset-#{$breakpoint}-#{$i} {
|
|
113
|
+
@if $i > 0 {
|
|
114
|
+
margin-left: math.div(100% * $i, $fui-grid-columns);
|
|
115
|
+
} @else {
|
|
116
|
+
margin-left: 0;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Gutters
|
|
124
|
+
.fui-g-0,
|
|
125
|
+
.fui-gx-0 {
|
|
126
|
+
--fui-gutter-x: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.fui-g-0,
|
|
130
|
+
.fui-gy-0 {
|
|
131
|
+
--fui-gutter-y: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@for $i from 1 through 5 {
|
|
135
|
+
.fui-g-#{$i},
|
|
136
|
+
.fui-gx-#{$i} {
|
|
137
|
+
--fui-gutter-x: #{$fui-spacing-03 * $i};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.fui-g-#{$i},
|
|
141
|
+
.fui-gy-#{$i} {
|
|
142
|
+
--fui-gutter-y: #{$fui-spacing-03 * $i};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Responsive gutters
|
|
147
|
+
@each $breakpoint in (sm, md, lg, xl, xxl) {
|
|
148
|
+
@include fui-breakpoint($breakpoint) {
|
|
149
|
+
.fui-g-#{$breakpoint}-0,
|
|
150
|
+
.fui-gx-#{$breakpoint}-0 {
|
|
151
|
+
--fui-gutter-x: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.fui-g-#{$breakpoint}-0,
|
|
155
|
+
.fui-gy-#{$breakpoint}-0 {
|
|
156
|
+
--fui-gutter-y: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@for $i from 1 through 5 {
|
|
160
|
+
.fui-g-#{$breakpoint}-#{$i},
|
|
161
|
+
.fui-gx-#{$breakpoint}-#{$i} {
|
|
162
|
+
--fui-gutter-x: #{$fui-spacing-03 * $i};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.fui-g-#{$breakpoint}-#{$i},
|
|
166
|
+
.fui-gy-#{$breakpoint}-#{$i} {
|
|
167
|
+
--fui-gutter-y: #{$fui-spacing-03 * $i};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// Mixins for common patterns
|
|
2
|
+
@use 'sass:color';
|
|
3
|
+
@use './constants' as *;
|
|
4
|
+
|
|
5
|
+
// Focus ring mixin (Carbon Design System style)
|
|
6
|
+
@mixin fui-focus-ring($offset: 2px) {
|
|
7
|
+
outline: 2px solid var(--fui-primary);
|
|
8
|
+
outline-offset: $offset;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Button reset mixin
|
|
12
|
+
@mixin fui-button-reset {
|
|
13
|
+
background: none;
|
|
14
|
+
border: none;
|
|
15
|
+
padding: 0;
|
|
16
|
+
margin: 0;
|
|
17
|
+
font: inherit;
|
|
18
|
+
color: inherit;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
outline: none;
|
|
21
|
+
|
|
22
|
+
&:focus-visible {
|
|
23
|
+
@include fui-focus-ring();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Visually hidden (for accessibility)
|
|
28
|
+
@mixin fui-visually-hidden {
|
|
29
|
+
position: absolute !important;
|
|
30
|
+
width: 1px !important;
|
|
31
|
+
height: 1px !important;
|
|
32
|
+
padding: 0 !important;
|
|
33
|
+
margin: -1px !important;
|
|
34
|
+
overflow: hidden !important;
|
|
35
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
36
|
+
white-space: nowrap !important;
|
|
37
|
+
border: 0 !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Truncate text
|
|
41
|
+
@mixin fui-truncate {
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Flex center
|
|
48
|
+
@mixin fui-flex-center {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Responsive breakpoint mixin
|
|
55
|
+
@mixin fui-breakpoint($size) {
|
|
56
|
+
@if $size == xs {
|
|
57
|
+
@media (min-width: #{$fui-breakpoint-xs}) {
|
|
58
|
+
@content;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
@if $size == sm {
|
|
62
|
+
@media (min-width: #{$fui-breakpoint-sm}) {
|
|
63
|
+
@content;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@if $size == md {
|
|
67
|
+
@media (min-width: #{$fui-breakpoint-md}) {
|
|
68
|
+
@content;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@if $size == lg {
|
|
72
|
+
@media (min-width: #{$fui-breakpoint-lg}) {
|
|
73
|
+
@content;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
@if $size == xl {
|
|
77
|
+
@media (min-width: #{$fui-breakpoint-xl}) {
|
|
78
|
+
@content;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@if $size == xxl {
|
|
82
|
+
@media (min-width: #{$fui-breakpoint-xxl}) {
|
|
83
|
+
@content;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Animation mixin is now in _motion.scss
|
|
89
|
+
|
|
90
|
+
// Surface elevation system
|
|
91
|
+
// Combines shadow and surface color changes to create depth hierarchy
|
|
92
|
+
@mixin fui-elevation($level: 1) {
|
|
93
|
+
@if $level == 0 {
|
|
94
|
+
box-shadow: none;
|
|
95
|
+
background-color: var(--fui-surface-00);
|
|
96
|
+
} @else if $level == 1 {
|
|
97
|
+
box-shadow: var(--fui-shadow-01);
|
|
98
|
+
background-color: var(--fui-surface-01);
|
|
99
|
+
} @else if $level == 2 {
|
|
100
|
+
box-shadow: var(--fui-shadow-02);
|
|
101
|
+
background-color: var(--fui-surface-02);
|
|
102
|
+
} @else if $level == 3 {
|
|
103
|
+
box-shadow: var(--fui-shadow-03);
|
|
104
|
+
background-color: var(--fui-surface-03);
|
|
105
|
+
} @else if $level == 4 {
|
|
106
|
+
box-shadow: var(--fui-shadow-04);
|
|
107
|
+
background-color: var(--fui-surface-04);
|
|
108
|
+
} @else if $level == 5 {
|
|
109
|
+
box-shadow: var(--fui-shadow-05);
|
|
110
|
+
background-color: var(--fui-surface-05);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Surface elevation without background color change (for components that need custom backgrounds)
|
|
115
|
+
@mixin fui-elevation-shadow-only($level: 1) {
|
|
116
|
+
@if $level == 0 {
|
|
117
|
+
box-shadow: none;
|
|
118
|
+
} @else if $level == 1 {
|
|
119
|
+
box-shadow: var(--fui-shadow-01);
|
|
120
|
+
} @else if $level == 2 {
|
|
121
|
+
box-shadow: var(--fui-shadow-02);
|
|
122
|
+
} @else if $level == 3 {
|
|
123
|
+
box-shadow: var(--fui-shadow-03);
|
|
124
|
+
} @else if $level == 4 {
|
|
125
|
+
box-shadow: var(--fui-shadow-04);
|
|
126
|
+
} @else if $level == 5 {
|
|
127
|
+
box-shadow: var(--fui-shadow-05);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// Generate color palette from base color
|
|
132
|
+
@function fui-generate-palette($base-color) {
|
|
133
|
+
@return (
|
|
134
|
+
50: color.mix(white, $base-color, 95%),
|
|
135
|
+
100: color.mix(white, $base-color, 85%),
|
|
136
|
+
200: color.mix(white, $base-color, 70%),
|
|
137
|
+
300: color.mix(white, $base-color, 50%),
|
|
138
|
+
400: color.mix(white, $base-color, 25%),
|
|
139
|
+
500: $base-color,
|
|
140
|
+
600: color.mix(black, $base-color, 15%),
|
|
141
|
+
700: color.mix(black, $base-color, 30%),
|
|
142
|
+
800: color.mix(black, $base-color, 50%),
|
|
143
|
+
900: color.mix(black, $base-color, 70%)
|
|
144
|
+
);
|
|
145
|
+
}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
// Motion system based on Carbon Design System
|
|
2
|
+
// Provides consistent animation patterns across all components
|
|
3
|
+
|
|
4
|
+
// Motion CSS variables are defined in _theme-variables.scss to avoid duplication.
|
|
5
|
+
|
|
6
|
+
// Motion mixins
|
|
7
|
+
@mixin fui-motion(
|
|
8
|
+
$property: all,
|
|
9
|
+
$duration: var(--fui-duration-moderate-01),
|
|
10
|
+
$easing: var(--fui-ease-standard),
|
|
11
|
+
$delay: 0ms
|
|
12
|
+
) {
|
|
13
|
+
transition: $property $duration $easing $delay;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Specific motion patterns
|
|
17
|
+
@mixin fui-motion-fade-in {
|
|
18
|
+
@include fui-motion(opacity, var(--fui-duration-fast-02), var(--fui-ease-entrance));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin fui-motion-fade-out {
|
|
22
|
+
@include fui-motion(opacity, var(--fui-duration-fast-01), var(--fui-ease-exit));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin fui-motion-slide-in($direction: 'bottom') {
|
|
26
|
+
@if $direction == 'bottom' {
|
|
27
|
+
@include fui-motion(transform, var(--fui-duration-moderate-01), var(--fui-ease-entrance));
|
|
28
|
+
transform: translateY(0);
|
|
29
|
+
|
|
30
|
+
&.fui-motion-entering {
|
|
31
|
+
transform: translateY(1rem);
|
|
32
|
+
}
|
|
33
|
+
} @else if $direction == 'top' {
|
|
34
|
+
@include fui-motion(transform, var(--fui-duration-moderate-01), var(--fui-ease-entrance));
|
|
35
|
+
transform: translateY(0);
|
|
36
|
+
|
|
37
|
+
&.fui-motion-entering {
|
|
38
|
+
transform: translateY(-1rem);
|
|
39
|
+
}
|
|
40
|
+
} @else if $direction == 'left' {
|
|
41
|
+
@include fui-motion(transform, var(--fui-duration-moderate-01), var(--fui-ease-entrance));
|
|
42
|
+
transform: translateX(0);
|
|
43
|
+
|
|
44
|
+
&.fui-motion-entering {
|
|
45
|
+
transform: translateX(-1rem);
|
|
46
|
+
}
|
|
47
|
+
} @else if $direction == 'right' {
|
|
48
|
+
@include fui-motion(transform, var(--fui-duration-moderate-01), var(--fui-ease-entrance));
|
|
49
|
+
transform: translateX(0);
|
|
50
|
+
|
|
51
|
+
&.fui-motion-entering {
|
|
52
|
+
transform: translateX(1rem);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin fui-motion-scale-in {
|
|
58
|
+
@include fui-motion((transform, opacity), var(--fui-duration-moderate-01), var(--fui-ease-entrance));
|
|
59
|
+
transform: scale(1);
|
|
60
|
+
opacity: 1;
|
|
61
|
+
|
|
62
|
+
&.fui-motion-entering {
|
|
63
|
+
transform: scale(0.95);
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@mixin fui-motion-expand($direction: 'vertical') {
|
|
69
|
+
@if $direction == 'vertical' {
|
|
70
|
+
@include fui-motion(max-height, var(--fui-duration-moderate-02), var(--fui-ease-standard));
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
} @else if $direction == 'horizontal' {
|
|
73
|
+
@include fui-motion(max-width, var(--fui-duration-moderate-02), var(--fui-ease-standard));
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Ripple effect for interactive elements
|
|
79
|
+
@mixin fui-ripple {
|
|
80
|
+
position: relative;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
|
|
83
|
+
&::before {
|
|
84
|
+
content: '';
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 50%;
|
|
87
|
+
left: 50%;
|
|
88
|
+
width: 0;
|
|
89
|
+
height: 0;
|
|
90
|
+
border-radius: 50%;
|
|
91
|
+
background-color: currentColor;
|
|
92
|
+
opacity: 0;
|
|
93
|
+
transform: translate(-50%, -50%);
|
|
94
|
+
transition:
|
|
95
|
+
width var(--fui-duration-slow-01) var(--fui-ease-expressive),
|
|
96
|
+
height var(--fui-duration-slow-01) var(--fui-ease-expressive),
|
|
97
|
+
opacity var(--fui-duration-slow-01) var(--fui-ease-standard);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:active::before {
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
opacity: 0.1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Skeleton loading animation
|
|
108
|
+
@keyframes fui-skeleton-pulse {
|
|
109
|
+
0% {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
}
|
|
112
|
+
50% {
|
|
113
|
+
opacity: 0.4;
|
|
114
|
+
}
|
|
115
|
+
100% {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@mixin fui-skeleton-loading {
|
|
121
|
+
animation: fui-skeleton-pulse 1.5s ease-in-out infinite;
|
|
122
|
+
background-color: var(--fui-surface-05);
|
|
123
|
+
border-radius: var(--fui-border-radius-md);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Focus transition
|
|
127
|
+
@mixin fui-focus-transition {
|
|
128
|
+
transition:
|
|
129
|
+
box-shadow var(--fui-duration-fast-02) var(--fui-ease-standard),
|
|
130
|
+
outline var(--fui-duration-fast-02) var(--fui-ease-standard);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Hover lift effect
|
|
134
|
+
@mixin fui-hover-lift {
|
|
135
|
+
transition:
|
|
136
|
+
transform var(--fui-duration-fast-02) var(--fui-ease-standard),
|
|
137
|
+
box-shadow var(--fui-duration-fast-02) var(--fui-ease-standard);
|
|
138
|
+
|
|
139
|
+
&:hover {
|
|
140
|
+
transform: translateY(-2px);
|
|
141
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Disabled state transition
|
|
146
|
+
@mixin fui-disabled-transition {
|
|
147
|
+
transition:
|
|
148
|
+
opacity var(--fui-duration-fast-02) var(--fui-ease-standard),
|
|
149
|
+
cursor var(--fui-duration-fast-02) var(--fui-ease-standard);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Loading spinner
|
|
153
|
+
@keyframes fui-spin {
|
|
154
|
+
to {
|
|
155
|
+
transform: rotate(360deg);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@mixin fui-loading-spinner {
|
|
160
|
+
animation: fui-spin 1s linear infinite;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Shake animation for errors
|
|
164
|
+
@keyframes fui-shake {
|
|
165
|
+
0%,
|
|
166
|
+
100% {
|
|
167
|
+
transform: translateX(0);
|
|
168
|
+
}
|
|
169
|
+
10%,
|
|
170
|
+
30%,
|
|
171
|
+
50%,
|
|
172
|
+
70%,
|
|
173
|
+
90% {
|
|
174
|
+
transform: translateX(-2px);
|
|
175
|
+
}
|
|
176
|
+
20%,
|
|
177
|
+
40%,
|
|
178
|
+
60%,
|
|
179
|
+
80% {
|
|
180
|
+
transform: translateX(2px);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@mixin fui-error-shake {
|
|
185
|
+
animation: fui-shake var(--fui-duration-slow-01) var(--fui-ease-standard);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Utility classes for motion
|
|
189
|
+
.fui-motion-fade-in {
|
|
190
|
+
@include fui-motion-fade-in;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.fui-motion-fade-out {
|
|
194
|
+
@include fui-motion-fade-out;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.fui-motion-slide-in-bottom {
|
|
198
|
+
@include fui-motion-slide-in('bottom');
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.fui-motion-slide-in-top {
|
|
202
|
+
@include fui-motion-slide-in('top');
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.fui-motion-scale-in {
|
|
206
|
+
@include fui-motion-scale-in;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.fui-no-motion {
|
|
210
|
+
transition: none !important;
|
|
211
|
+
animation: none !important;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Reduced motion support
|
|
215
|
+
@media (prefers-reduced-motion: reduce) {
|
|
216
|
+
*,
|
|
217
|
+
*::before,
|
|
218
|
+
*::after {
|
|
219
|
+
animation-duration: 0.01ms !important;
|
|
220
|
+
animation-iteration-count: 1 !important;
|
|
221
|
+
transition-duration: 0.01ms !important;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// General pulse keyframes for scale/opacity pulsing used by icons and others
|
|
226
|
+
@keyframes fui-pulse {
|
|
227
|
+
0% {
|
|
228
|
+
transform: scale(1);
|
|
229
|
+
opacity: 1;
|
|
230
|
+
}
|
|
231
|
+
50% {
|
|
232
|
+
transform: scale(1.05);
|
|
233
|
+
}
|
|
234
|
+
100% {
|
|
235
|
+
transform: scale(1);
|
|
236
|
+
opacity: 1;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Slide-in animation (merged from _animations.scss)
|
|
241
|
+
@keyframes fui-slide-in {
|
|
242
|
+
from {
|
|
243
|
+
transform: translateX(120%);
|
|
244
|
+
}
|
|
245
|
+
to {
|
|
246
|
+
transform: translateX(0);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.fui-slide-in {
|
|
251
|
+
animation: fui-slide-in var(--fui-duration-moderate-01) var(--fui-ease-entrance);
|
|
252
|
+
}
|