@fest-lib/veela 0.1.20 → 1.0.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.
Files changed (141) hide show
  1. package/dist/veela.js +4 -33
  2. package/package.json +9 -2
  3. package/src/scss/_layers.scss +6 -34
  4. package/src/scss/basic/{misc/_core-layout.scss → _core-layout.scss} +1 -1
  5. package/src/scss/basic/_layers.scss +1 -0
  6. package/src/scss/basic/{misc/_layout.scss → _layout.scss} +15 -15
  7. package/src/scss/basic/{misc/_normalize.scss → _normalize.scss} +5 -103
  8. package/src/scss/basic/{misc/_states.scss → _states.scss} +2 -2
  9. package/src/scss/{core/misc → basic}/_utilities.scss +4 -4
  10. package/src/scss/basic/design/_keyframes.scss +1 -1
  11. package/src/scss/basic/design/_shapes.scss +1 -1
  12. package/src/scss/basic/index.scss +14 -16
  13. package/src/scss/chrome.scss +2 -0
  14. package/src/scss/core/_color-mod.scss +24 -0
  15. package/src/scss/core/{misc/_color-properties.scss → _color-properties.scss} +1 -1
  16. package/src/scss/core/{misc/_tokens.scss → _tokens.scss} +10 -93
  17. package/src/scss/core/index.scss +13 -1
  18. package/src/scss/index.scss +7 -2
  19. package/src/scss/index.ts +1 -1
  20. package/src/scss/{core/interact → interact}/_viewport.scss +1 -1
  21. package/src/scss/interact/index.scss +18 -0
  22. package/src/scss/theme/_effects.scss +60 -0
  23. package/src/scss/theme/index.scss +8 -0
  24. package/src/scss/{advanced/index.ts → theme/loader.ts} +3 -4
  25. package/src/scss/ui/_bar.scss +268 -0
  26. package/src/scss/ui/_buttons.scss +215 -0
  27. package/src/scss/ui/_chrome-mixins.scss +104 -0
  28. package/src/scss/ui/_color.scss +3 -0
  29. package/src/scss/ui/_colorize.scss +5 -0
  30. package/src/scss/{advanced/layout → ui}/_content.scss +0 -1
  31. package/src/scss/ui/_core-layout.scss +4 -0
  32. package/src/scss/ui/_essentials-options.scss +2 -0
  33. package/src/scss/ui/_essentials.scss +707 -0
  34. package/src/scss/ui/_explorer-content.scss +417 -0
  35. package/src/scss/ui/_explorer.scss +274 -0
  36. package/src/scss/ui/_forms-bare-host-elements.scss +25 -0
  37. package/src/scss/ui/_forms-options.scss +2 -0
  38. package/src/scss/ui/_forms.scss +279 -0
  39. package/src/scss/ui/_forms_misc.scss +201 -0
  40. package/src/scss/ui/_gridbox.scss +298 -0
  41. package/src/scss/ui/_home-host.scss +192 -0
  42. package/src/scss/ui/_index.scss +23 -0
  43. package/src/scss/ui/_launcher-typography.scss +31 -0
  44. package/src/scss/ui/_layers.scss +48 -0
  45. package/src/scss/ui/_layout.scss +3 -0
  46. package/src/scss/ui/_markdown.scss +1634 -0
  47. package/src/scss/ui/_modal.scss +309 -0
  48. package/src/scss/ui/_motion.scss +3 -0
  49. package/src/scss/ui/_native-host-button-chrome.scss +31 -0
  50. package/src/scss/ui/_normalize.scss +5 -0
  51. package/src/scss/ui/_orientation-functions.scss +273 -0
  52. package/src/scss/ui/_orientbox.scss +97 -0
  53. package/src/scss/ui/_scrollbar.scss +257 -0
  54. package/src/scss/ui/_shared-overlays.scss +16 -0
  55. package/src/scss/ui/_shared.scss +4 -0
  56. package/src/scss/ui/_sidebar.scss +478 -0
  57. package/src/scss/ui/_speed-dial.scss +47 -0
  58. package/src/scss/ui/_states.scss +4 -0
  59. package/src/scss/ui/_tables.scss +28 -0
  60. package/src/scss/ui/_tabs.scss +405 -0
  61. package/src/scss/ui/_taskbar.scss +215 -0
  62. package/src/scss/ui/_toolbars.scss +167 -0
  63. package/src/scss/ui/_typography.scss +11 -0
  64. package/src/scss/ui/_utils.scss +8 -0
  65. package/src/scss/ui/_viewport.scss +470 -0
  66. package/src/scss/ui/_window-frame.scss +658 -0
  67. package/src/scss/ui/components/app-menu.scss +817 -0
  68. package/src/scss/ui/components/appearance-desktop.scss +14 -0
  69. package/src/scss/ui/components/appearance-mobile.scss +14 -0
  70. package/src/scss/ui/components/calendar/flyout.scss +194 -0
  71. package/src/scss/ui/components/calendar/index.scss +627 -0
  72. package/src/scss/ui/components/explorer-settings.scss +232 -0
  73. package/src/scss/ui/components/file-manager-content.scss +2 -0
  74. package/src/scss/ui/components/file-manager.scss +2 -0
  75. package/src/scss/ui/components/launcher-icon-mask.scss +34 -0
  76. package/src/scss/ui/components/navbar.scss +133 -0
  77. package/src/scss/ui/components/quick-settings.scss +321 -0
  78. package/src/scss/ui/components/scrollframe.scss +58 -0
  79. package/src/scss/ui/components/slider.scss +188 -0
  80. package/src/scss/ui/components/speed-dial.scss +2288 -0
  81. package/src/scss/ui/components/statusbar.scss +255 -0
  82. package/src/scss/ui/components/task.scss +118 -0
  83. package/src/scss/ui/components/taskbar.scss +514 -0
  84. package/src/scss/ui/components/text.scss +241 -0
  85. package/src/scss/ui/components/window.scss +601 -0
  86. package/src/scss/ui/home-host-apply.scss +10 -0
  87. package/src/scss/ui/index.scss +7 -0
  88. package/src/scss/ui/native-controls.scss +17 -0
  89. package/src/scss/advanced/_index.scss +0 -0
  90. package/src/scss/advanced/animation/_motion.scss +0 -323
  91. package/src/scss/advanced/color/_color.scss +0 -328
  92. package/src/scss/advanced/color/_colorize.scss +0 -325
  93. package/src/scss/advanced/design/_design-tokens.scss +0 -118
  94. package/src/scss/advanced/design/_effects.scss +0 -275
  95. package/src/scss/advanced/design/_shadow.scss +0 -359
  96. package/src/scss/advanced/design/_surfaces.scss +0 -76
  97. package/src/scss/advanced/effects/_animations.scss +0 -124
  98. package/src/scss/advanced/effects/_shadows.scss +0 -50
  99. package/src/scss/advanced/font/_typography.scss +0 -601
  100. package/src/scss/advanced/index.scss +0 -11
  101. package/src/scss/advanced/layout/_index.scss +0 -5
  102. package/src/scss/advanced/layout/_normalize.scss +0 -543
  103. package/src/scss/advanced/layout/_shared-overlays.scss +0 -162
  104. package/src/scss/advanced/md3/_md3.scss +0 -506
  105. package/src/scss/advanced/md3/_utils.scss +0 -114
  106. package/src/scss/advanced/misc/_config.scss +0 -119
  107. package/src/scss/advanced/misc/_initials.scss +0 -298
  108. package/src/scss/advanced/misc/_mixins.scss +0 -179
  109. package/src/scss/advanced/misc/_rendering.scss +0 -82
  110. package/src/scss/advanced/misc/_tokens.scss +0 -74
  111. package/src/scss/advanced/theme/_shared.scss +0 -232
  112. package/src/scss/advanced/theme/_states.scss +0 -332
  113. package/src/scss/advanced/theme/_variants.scss +0 -354
  114. package/src/scss/advanced/tokens/_material-color.scss +0 -120
  115. package/src/scss/advanced/tokens/_variables.scss +0 -171
  116. package/src/scss/basic/misc/_index.scss +0 -18
  117. package/src/scss/basic/misc/_mixins.scss +0 -179
  118. package/src/scss/basic/misc/_queries.scss +0 -34
  119. package/src/scss/basic/misc/_tokens.scss +0 -78
  120. package/src/scss/basic/misc/_veela.scss +0 -12
  121. package/src/scss/core/misc/_index.scss +0 -6
  122. /package/src/scss/basic/{misc/_motion.scss → _motion.scss} +0 -0
  123. /package/src/scss/{advanced/misc → basic}/_queries.scss +0 -0
  124. /package/src/scss/basic/{misc/_shared.scss → _shared.scss} +0 -0
  125. /package/src/scss/core/{misc/_config.scss → _config.scss} +0 -0
  126. /package/src/scss/core/{misc/_functions.scss → _functions.scss} +0 -0
  127. /package/src/scss/core/{misc/_icons.scss → _icons.scss} +0 -0
  128. /package/src/scss/core/{misc/_layout.scss → _layout.scss} +0 -0
  129. /package/src/scss/core/{misc/_mixins.scss → _mixins.scss} +0 -0
  130. /package/src/scss/core/{misc/_properties.scss → _properties.scss} +0 -0
  131. /package/src/scss/core/{misc/_utils.scss → _utils.scss} +0 -0
  132. /package/src/scss/{core/interact → interact}/_draggable.scss +0 -0
  133. /package/src/scss/{core/interact → interact}/_position.scss +0 -0
  134. /package/src/scss/{core/interact → interact}/_ps-anchor.scss +0 -0
  135. /package/src/scss/{core/interact → interact}/_ps-centered.scss +0 -0
  136. /package/src/scss/{core/interact → interact}/_ps-cursor.scss +0 -0
  137. /package/src/scss/{core/interact → interact}/_ps-draggable.scss +0 -0
  138. /package/src/scss/{core/interact → interact}/_ps-mechanic.scss +0 -0
  139. /package/src/scss/{core/interact → interact}/_ps-properties.scss +0 -0
  140. /package/src/scss/{core/interact → interact}/_ps-resizable.scss +0 -0
  141. /package/src/scss/{core/interact → interact}/_resizable.scss +0 -0
@@ -1,179 +0,0 @@
1
- // Shared mixins to unify common property blocks
2
- // Do not @use "veela-lib" here: this file is part of veela-lib (via @forward) and that would create a Sass module loop.
3
- @use "sass:map";
4
- @use "sass:meta";
5
- @use "./tokens" as t;
6
-
7
- // Layout stacks
8
- @mixin stack($gap, $display: grid) {
9
- display: $display;
10
- gap: $gap;
11
- }
12
-
13
- @mixin hstack($gap) { @include stack($gap, inline-flex); }
14
- @mixin vstack($gap) { @include stack($gap, grid); }
15
-
16
- // Container helpers
17
- @mixin container-inline { container-type: inline-size; }
18
- @mixin container-size { container-type: size; contain: content; }
19
-
20
- // Typography helpers based on MD3 tokens
21
- @mixin text-heading($token: "title-large", $align: null) {
22
- @if meta.mixin-exists("md3-typography") {
23
- @include md3-typography($token);
24
- }
25
- font-family: t.$font-family-base;
26
- @if $align != null { text-align: $align; }
27
-
28
- &:where(:-webkit-autofill, :autofill, :-webkit-autofill:hover, :-webkit-autofill:focus, :-webkit-autofill:active) {
29
- font-family: t.$font-family-base;
30
- }
31
- }
32
-
33
- @mixin text-body($token: "body-medium") {
34
- @if meta.mixin-exists("md3-typography") {
35
- @include md3-typography($token);
36
- }
37
- font-family: t.$font-family-base;
38
-
39
- &:where(:-webkit-autofill, :autofill, :-webkit-autofill:hover, :-webkit-autofill:focus, :-webkit-autofill:active) {
40
- font-family: t.$font-family-base;
41
- }
42
- }
43
-
44
- @mixin text-label($token: "label-large", $uppercase: false) {
45
- @if meta.mixin-exists("md3-typography") {
46
- @include md3-typography($token);
47
- }
48
- font-family: t.$font-family-base;
49
- @if $uppercase { text-transform: uppercase; }
50
-
51
- &:where(:-webkit-autofill, :autofill, :-webkit-autofill:hover, :-webkit-autofill:focus, :-webkit-autofill:active) {
52
- font-family: t.$font-family-base;
53
- }
54
- }
55
-
56
- @mixin font-nums-tabular { font-variant-numeric: tabular-nums; }
57
-
58
- // Tonal surfaces & elevation helpers
59
- @mixin tonal-surface(
60
- $role: surface,
61
- $tone: var(--surface-opacity-default),
62
- $radius: null,
63
- $padding: null,
64
- $elevation: null,
65
- $border: false
66
- ) {
67
- @if meta.mixin-exists("solid-colorize") {
68
- @include solid-colorize("&", ("shade": $tone, "role": $role, "scope": "selector"));
69
- }
70
-
71
- @if $radius != null { border-radius: $radius; }
72
- @if $padding != null { padding: $padding; }
73
- @if $elevation != null {
74
- --md3-elevation-level: #{$elevation};
75
- }
76
- @if $border {
77
- border: 0.5px solid color-mix(in oklch, var(--md3-outline) 42%, transparent);
78
- }
79
- }
80
-
81
- @mixin interactive-surface(
82
- $role: surface,
83
- $tone: var(--surface-opacity-default),
84
- $state: hover,
85
- $selector: "&::after"
86
- ) {
87
- @include tonal-surface($role, $tone);
88
- @if meta.mixin-exists("md3-state-layer") {
89
- @include md3-state-layer($role, $state, $selector);
90
- }
91
- }
92
-
93
- @mixin card-surface(
94
- $role: surface-container,
95
- $tone: var(--surface-opacity-subtle),
96
- $radius: var(--radius-lg),
97
- $padding: var(--padding-lg),
98
- $elevation: 2
99
- ) {
100
- @include tonal-surface($role, $tone, $radius, $padding, $elevation, true);
101
- backdrop-filter: blur(10px) saturate(115%);
102
- }
103
-
104
- // Structured blocks
105
- @mixin section-stack($gap: var(--gap-sm)) {
106
- display: grid;
107
- gap: $gap;
108
- inline-size: stretch;
109
- min-inline-size: 0;
110
- }
111
-
112
- @mixin inline-toolbar($gap: var(--gap-sm)) {
113
- display: inline-flex;
114
- align-items: center;
115
- gap: $gap;
116
- flex-wrap: nowrap;
117
- }
118
-
119
- // Input helpers
120
- @mixin input-padding-trailing($logical-size) {
121
- padding-inline-end: calc(#{$logical-size} * 2);
122
- }
123
-
124
- @mixin field-stack($gap: var(--gap-xs)) {
125
- display: grid;
126
- gap: $gap;
127
- inline-size: stretch;
128
- min-inline-size: 0;
129
- }
130
-
131
- // List helpers
132
- @mixin tonal-list(
133
- $role: surface,
134
- $tone: var(--surface-opacity-subtle),
135
- $radius: var(--radius-sm),
136
- $padding: var(--padding-xs)
137
- ) {
138
- display: flex;
139
- flex-direction: column;
140
- gap: 0;
141
- list-style: none;
142
- margin: 0;
143
- padding: $padding;
144
- @include tonal-surface($role, $tone, $radius);
145
- }
146
-
147
- // State blocks (flex row with gaps and radius)
148
- @mixin state-inline($gap, $padding-y, $padding-x, $radius) {
149
- display: flex;
150
- align-items: center;
151
- gap: $gap;
152
- padding-block: $padding-y;
153
- padding-inline: $padding-x;
154
- border-radius: $radius;
155
- }
156
-
157
- // Scrollbar styling (modern and webkit)
158
- @mixin scrollbars($size: 6px, $tone: var(--surface-opacity-emphasis)) {
159
- scrollbar-width: thin;
160
- & { scrollbar-color: color-mix(in oklch, var(--on-surface, currentColor) var(--scrollbar-tint, 86%), transparent) transparent; }
161
-
162
- &::-webkit-scrollbar { inline-size: $size; block-size: $size; }
163
- &::-webkit-scrollbar-thumb {
164
- border-radius: 999px;
165
- @include solid-colorize("&", ("shade": $tone, "scope": "selector"));
166
- }
167
- &::-webkit-scrollbar-track { background: transparent; }
168
- }
169
-
170
- // Overlay + elevation utilities
171
- @mixin glass-backdrop($blur: 18px, $opacity: 0.22) {
172
- background: color-mix(in oklch, var(--color-inverse-surface) #{$opacity * 100%}, transparent);
173
- backdrop-filter: blur($blur) saturate(120%);
174
- }
175
-
176
- // Accessibility helpers
177
- @mixin reduced-motion-zero { transition-duration: 0ms; }
178
- @mixin high-contrast-border($color: var(--border-color)) { border: 2px solid $color; }
179
-
@@ -1,34 +0,0 @@
1
- // Query utilities: container and media helpers with shared breakpoints
2
-
3
- $breakpoints: (
4
- "sm": 480px,
5
- "md": 640px,
6
- "lg": 768px,
7
- "xl": 1024px,
8
- "2xl": 1280px
9
- );
10
-
11
- @mixin mq($cond) {
12
- @media #{$cond} { @content; }
13
- }
14
-
15
- @mixin mq-up($key) {
16
- $val: map-get($breakpoints, $key);
17
- @media (min-width: $val) { @content; }
18
- }
19
-
20
- @mixin mq-down($key) {
21
- $val: map-get($breakpoints, $key);
22
- @media (max-width: $val) { @content; }
23
- }
24
-
25
- @mixin cq($cond) {
26
- @container #{$cond} { @content; }
27
- }
28
-
29
- @mixin cq-size($min: null, $max: null) {
30
- $parts: ();
31
- @if $min != null { $parts: append($parts, '(min-inline-size: ' + $min + ')'); }
32
- @if $max != null { $parts: append($parts, '(max-inline-size: ' + $max + ')'); }
33
- @container #{join($parts, ' and ')} { @content; }
34
- }
@@ -1,78 +0,0 @@
1
- /*
2
- * Filename: _tokens.scss
3
- * FullPath: modules/projects/veela.css/src/scss/basic/misc/_tokens.scss
4
- * Change date and time: 12.30.00_06.08.2026
5
- * Reason for changes: Document canonical SoT for color tokens.
6
- */
7
- /*
8
- * INVARIANT: Intentional per-bundle SCSS alias shim for the vl-basic bundle.
9
- * Produces NO CSS output — only `$color-*` / `$space-*` / `$radius-*` / `$font-*` SCSS aliases.
10
- * Canonical color-token source of truth: `core/misc/_tokens.scss` (full bundle).
11
- * Do NOT `@forward` canonical here — would emit the full `@layer tokens` CSS into the
12
- * lightweight vl-basic bundle and break its size semantics.
13
- */
14
-
15
- // Design tokens: SCSS aliases for CSS custom properties
16
- // Keep aliases small and meaningful to encourage reuse
17
-
18
- $space-2xs: var(--space-2xs);
19
- $space-xs: var(--space-xs);
20
- $space-sm: var(--space-sm);
21
- $space-md: var(--space-md);
22
- $space-lg: var(--space-lg);
23
- $space-xl: var(--space-xl);
24
- $space-2xl: var(--space-2xl);
25
-
26
- $radius-xs: var(--radius-xs);
27
- $radius-sm: var(--radius-sm);
28
- $radius-md: var(--radius-md);
29
- $radius-lg: var(--radius-lg);
30
- $radius-xl: var(--radius-xl);
31
- $radius-full: var(--radius-full);
32
-
33
- $font-xs: var(--font-xs);
34
- $font-sm: var(--font-sm);
35
- $font-base: var(--font-base);
36
- $font-md: var(--font-md);
37
- $font-lg: var(--font-lg);
38
- $font-xl: var(--font-xl);
39
- $font-2xl: var(--font-2xl);
40
-
41
- $font-weight-normal: var(--font-weight-normal);
42
- $font-weight-medium: var(--font-weight-medium);
43
- $font-weight-semibold: var(--font-weight-semibold);
44
- $font-weight-bold: var(--font-weight-bold);
45
- $font-weight-extrabold: var(--font-weight-extrabold);
46
-
47
- $font-family-base: var(--font-family-base);
48
- $font-family-mono: var(--font-family-mono);
49
-
50
- $color-primary: var(--md3-primary);
51
- $color-primary-container: var(--md3-primary-container);
52
- $color-secondary: var(--md3-secondary);
53
- $color-tertiary: var(--md3-tertiary);
54
- $color-surface: var(--md3-surface);
55
- $color-surface-variant: var(--md3-surface-variant);
56
- $color-surface-container: var(--md3-surface-container);
57
- $color-outline: var(--md3-outline);
58
- $color-outline-variant: var(--md3-outline-variant);
59
- $color-error: var(--md3-error);
60
- $color-inverse-surface: var(--md3-inverse-surface);
61
- $color-inverse-on-surface: var(--md3-inverse-on-surface);
62
- $color-scrim: var(--md3-scrim);
63
-
64
- // Common color variables (compat layer for reducing --c2-* usage)
65
- $on-surface: var(--on-surface, currentColor);
66
- $text-secondary: var(--text-secondary, color-mix(in oklch, var(--on-surface, currentColor) 74%, transparent));
67
- $border-color: var(--border-color, color-mix(in oklch, var(--on-surface, currentColor) 18%, transparent));
68
- $backdrop: var(--backdrop, oklch(from black l c h / 0.22));
69
-
70
- // Scrollbar
71
- $scrollbar-opacity: var(--scrollbar-opacity, 0.56);
72
- $scrollbar-tint: var(--scrollbar-tint, 86%);
73
-
74
- // Stacking (use with lib/basic/_position.scss — overlays, modals)
75
- $z-modal-backdrop: var(--z-modal-backdrop);
76
- $z-modal: var(--z-modal);
77
-
78
-
@@ -1,12 +0,0 @@
1
- // FL.UI Lib - Veela integration
2
- // This file provides full veela integration when available
3
- //
4
- // Usage: @use "fl-ui-lib" as m;
5
- //
6
- // Note: This requires veela.css to be installed and configured
7
-
8
- // Import and forward veela-lib
9
- @use "veela-lib" as *;
10
- @forward "veela-lib";
11
-
12
- // All veela mixins are now available through this facade
@@ -1,6 +0,0 @@
1
- @forward "../interact/draggable";
2
- @forward "../interact/resizable";
3
- @forward "../interact/position";
4
- @forward "./utilities";
5
- @forward "./icons";
6
- @forward "../interact/viewport";
File without changes
File without changes
File without changes