@teseor/css 1.6.0 → 1.7.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.
Files changed (24) hide show
  1. package/dist/compiled.css +1 -1
  2. package/dist/index.css +8 -0
  3. package/package.json +1 -1
  4. package/src/04-components/forms/number-input/index.scss +153 -0
  5. package/src/04-components/forms/number-input/number-input-visual.png +0 -0
  6. package/src/04-components/forms/number-input/number-input.api.json +74 -0
  7. package/src/04-components/forms/number-input/number-input.docs.json +262 -0
  8. package/src/04-components/forms/number-input/number-input.visual.spec.ts +14 -0
  9. package/src/04-components/forms/password-input/index.scss +138 -0
  10. package/src/04-components/forms/password-input/password-input-visual.png +0 -0
  11. package/src/04-components/forms/password-input/password-input.api.json +84 -0
  12. package/src/04-components/forms/password-input/password-input.docs.json +276 -0
  13. package/src/04-components/forms/password-input/password-input.visual.spec.ts +14 -0
  14. package/src/04-components/index.scss +4 -0
  15. package/src/04-components/layout/scroll-area/index.scss +92 -0
  16. package/src/04-components/layout/scroll-area/scroll-area-visual.png +0 -0
  17. package/src/04-components/layout/scroll-area/scroll-area.api.json +63 -0
  18. package/src/04-components/layout/scroll-area/scroll-area.docs.json +204 -0
  19. package/src/04-components/layout/scroll-area/scroll-area.visual.spec.ts +14 -0
  20. package/src/04-components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
  21. package/src/04-components/navigation/dropdown-menu/dropdown-menu.api.json +37 -0
  22. package/src/04-components/navigation/dropdown-menu/dropdown-menu.docs.json +272 -0
  23. package/src/04-components/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +14 -0
  24. package/src/04-components/navigation/dropdown-menu/index.scss +84 -0
@@ -0,0 +1,84 @@
1
+ @use '../../../00-config/tokens/variables' as t;
2
+
3
+ // @component dropdown-menu
4
+ // @element div
5
+ // Composite: trigger button + floating menu panel
6
+
7
+ @layer components.tokens {
8
+ .dropdown-menu {
9
+ --_z: var(--ui-dropdown-menu-z, 200);
10
+ --_panel-offset: var(--ui-dropdown-menu-panel-offset, var(--ui-space-1, #{t.$space-1}));
11
+ --_panel-min-width: var(--ui-dropdown-menu-panel-min-width, auto);
12
+ }
13
+ }
14
+
15
+ @layer components.styles {
16
+ .dropdown-menu {
17
+ display: inline-block;
18
+ position: relative;
19
+ }
20
+
21
+ .dropdown-menu__trigger {
22
+ display: inline-flex;
23
+ align-items: center;
24
+ gap: var(--ui-space-0, #{t.$space-0});
25
+ }
26
+
27
+ .dropdown-menu__trigger-icon {
28
+ display: inline-flex;
29
+
30
+ font-size: 0.6em;
31
+
32
+ transition: transform var(--ui-duration-fast, 150ms) var(--ui-ease-default, ease);
33
+ }
34
+
35
+ .dropdown-menu--open .dropdown-menu__trigger-icon {
36
+ transform: rotate(180deg);
37
+ }
38
+
39
+ .dropdown-menu__panel {
40
+ position: absolute;
41
+ inset-block-start: calc(100% + var(--_panel-offset));
42
+ inset-inline-start: 0;
43
+ z-index: var(--_z);
44
+
45
+ min-inline-size: var(--_panel-min-width);
46
+
47
+ opacity: 0;
48
+ pointer-events: none;
49
+ transform: translateY(calc(#{t.$unit} * -1));
50
+
51
+ transition:
52
+ opacity var(--ui-duration-fast, 150ms) var(--ui-ease-default, ease),
53
+ transform var(--ui-duration-fast, 150ms) var(--ui-ease-default, ease);
54
+ }
55
+
56
+ .dropdown-menu--open .dropdown-menu__panel {
57
+ opacity: 1;
58
+ pointer-events: auto;
59
+ transform: translateY(0);
60
+ }
61
+
62
+ // Position above trigger
63
+ .dropdown-menu--top .dropdown-menu__panel {
64
+ inset-block-start: auto;
65
+ inset-block-end: calc(100% + var(--_panel-offset));
66
+
67
+ transform: translateY(#{t.$unit});
68
+ }
69
+
70
+ .dropdown-menu--top.dropdown-menu--open .dropdown-menu__panel {
71
+ transform: translateY(0);
72
+ }
73
+
74
+ // Align to end edge
75
+ .dropdown-menu--align-end .dropdown-menu__panel {
76
+ inset-inline-start: auto;
77
+ inset-inline-end: 0;
78
+ }
79
+
80
+ // Full-width panel matches trigger width
81
+ .dropdown-menu--full-width .dropdown-menu__panel {
82
+ min-inline-size: 100%;
83
+ }
84
+ }