@flusys/ng-layout 5.4.1 → 6.0.0-beta.1

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.
@@ -22,3 +22,22 @@ a {
22
22
  .layout-wrapper {
23
23
  min-height: 100vh;
24
24
  }
25
+
26
+ @keyframes scalein {
27
+ 0% { opacity: 0; transform: scaleY(0.8); }
28
+ 100% { opacity: 1; transform: scaleY(1); }
29
+ }
30
+
31
+ @keyframes fadeout {
32
+ 0% { opacity: 1; }
33
+ 100% { opacity: 0; }
34
+ }
35
+
36
+ .animate-scalein {
37
+ animation: scalein 0.12s cubic-bezier(0, 0, 0.2, 1);
38
+ transform-origin: top center;
39
+ }
40
+
41
+ .animate-fadeout {
42
+ animation: fadeout 0.1s linear forwards;
43
+ }
@@ -1,17 +1,17 @@
1
1
  /* ========================================
2
- Native Form Elements - PrimeNG Style
2
+ Native Form Elements
3
3
  ======================================== */
4
4
 
5
- /* Native select styled like PrimeNG p-select */
6
- select.p-select-native {
5
+ /* Native select element */
6
+ select.ui-select {
7
7
  width: 100%;
8
8
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
9
9
  font-size: 1rem;
10
10
  font-family: inherit;
11
- background: var(--p-form-field-background, #ffffff);
12
- border: 1px solid var(--p-form-field-border-color, #d1d5db);
13
- border-radius: var(--p-border-radius-md, 6px);
14
- color: var(--p-text-color, #374151);
11
+ background: var(--f-form-field-background, #ffffff);
12
+ border: 1px solid var(--f-form-field-border-color, #d1d5db);
13
+ border-radius: var(--f-border-radius-md, 6px);
14
+ color: var(--f-text-color, #374151);
15
15
  transition: border-color 0.2s, box-shadow 0.2s;
16
16
  appearance: none;
17
17
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
@@ -20,35 +20,15 @@ select.p-select-native {
20
20
  cursor: pointer;
21
21
  }
22
22
 
23
- select.p-select-native:focus {
23
+ select.ui-select:focus {
24
24
  outline: none;
25
- border-color: var(--p-primary-color, #3b82f6);
25
+ border-color: var(--f-primary-color, #3b82f6);
26
26
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
27
27
  }
28
28
 
29
- select.p-select-native:disabled {
30
- background-color: var(--p-form-field-disabled-background, #f3f4f6);
31
- color: var(--p-form-field-disabled-color, #9ca3af);
29
+ select.ui-select:disabled {
30
+ background-color: var(--f-form-field-disabled-background, #f3f4f6);
31
+ color: var(--f-form-field-disabled-color, #9ca3af);
32
32
  cursor: not-allowed;
33
33
  }
34
34
 
35
- /* Native checkbox styled like PrimeNG p-checkbox */
36
- .p-checkbox-native {
37
- display: inline-flex;
38
- align-items: center;
39
- gap: 0.5rem;
40
- cursor: pointer;
41
- user-select: none;
42
- }
43
-
44
- .p-checkbox-native input[type="checkbox"] {
45
- width: 1.25rem;
46
- height: 1.25rem;
47
- accent-color: var(--p-primary-color, #3b82f6);
48
- cursor: pointer;
49
- margin: 0;
50
- }
51
-
52
- .p-checkbox-native span {
53
- font-weight: 500;
54
- }
@@ -50,8 +50,8 @@
50
50
 
51
51
  li.active-menuitem {
52
52
  >a {
53
- background-color: var(--p-primary-color);
54
- color: var(--p-primary-contrast-color) !important;
53
+ background-color: var(--f-primary-color);
54
+ color: var(--f-primary-contrast-color) !important;
55
55
 
56
56
  .layout-submenu-toggler {
57
57
  transform: rotate(-180deg);
@@ -89,12 +89,12 @@
89
89
 
90
90
  &.active-route {
91
91
  font-weight: 600;
92
- background-color: var(--p-primary-color);
93
- color: var(--p-primary-contrast-color)
92
+ background-color: var(--f-primary-color);
93
+ color: var(--f-primary-contrast-color)
94
94
  }
95
95
 
96
96
  &:not(.active-route):hover {
97
- color: var(--p-primary-color);
97
+ color: var(--f-primary-color);
98
98
  font-weight: 600;
99
99
  }
100
100
  }
@@ -67,8 +67,8 @@ $submenu-icon-margin: 0.5rem;
67
67
  }
68
68
 
69
69
  &.active-route {
70
- background-color: var(--p-primary-color);
71
- color: var(--p-primary-contrast-color);
70
+ background-color: var(--f-primary-color);
71
+ color: var(--f-primary-contrast-color);
72
72
  }
73
73
  }
74
74
 
@@ -296,8 +296,8 @@ $submenu-icon-margin: 0.5rem;
296
296
  }
297
297
 
298
298
  &.active-route {
299
- background-color: var(--p-primary-color);
300
- color: var(--p-primary-contrast-color);
299
+ background-color: var(--f-primary-color);
300
+ color: var(--f-primary-contrast-color);
301
301
  }
302
302
  }
303
303
 
@@ -336,8 +336,8 @@ $submenu-icon-margin: 0.5rem;
336
336
 
337
337
  // Handle active state with children
338
338
  &.active-menuitem > a {
339
- background-color: var(--p-primary-color);
340
- color: var(--p-primary-contrast-color);
339
+ background-color: var(--f-primary-color);
340
+ color: var(--f-primary-contrast-color);
341
341
  }
342
342
  }
343
343
  }
@@ -4,7 +4,6 @@ h3,
4
4
  h4,
5
5
  h5,
6
6
  h6 {
7
- margin: 1.5rem 0 1rem 0;
8
7
  font-family: inherit;
9
8
  font-weight: 700;
10
9
  line-height: 1.5;
@@ -1,20 +1,20 @@
1
1
  :root {
2
- --primary-color: var(--p-primary-color);
3
- --primary-contrast-color: var(--p-primary-contrast-color);
4
- --text-color: var(--p-text-color);
5
- --text-color-secondary: var(--p-text-muted-color);
6
- --surface-border: var(--p-content-border-color);
7
- --surface-card: var(--p-content-background);
8
- --surface-hover: var(--p-content-hover-background);
9
- --surface-overlay: var(--p-overlay-popover-background);
10
- --transition-duration: var(--p-transition-duration);
11
- --maskbg: var(--p-mask-background);
12
- --content-border-radius: var(--p-content-border-radius);
2
+ --primary-color: var(--f-primary-color);
3
+ --primary-contrast-color: var(--f-primary-contrast-color);
4
+ --text-color: var(--f-text-color);
5
+ --text-color-secondary: var(--f-text-muted-color);
6
+ --surface-border: var(--f-content-border-color);
7
+ --surface-card: var(--f-content-background);
8
+ --surface-hover: var(--f-content-hover-background);
9
+ --surface-overlay: var(--f-overlay-popover-background);
10
+ --transition-duration: var(--f-transition-duration);
11
+ --maskbg: var(--f-mask-background);
12
+ --content-border-radius: var(--f-content-border-radius);
13
13
  --layout-section-transition-duration: 0.2s;
14
- --element-transition-duration: var(--p-transition-duration);
15
- --focus-ring-width: var(--p-focus-ring-width);
16
- --focus-ring-style: var(--p-focus-ring-style);
17
- --focus-ring-color: var(--p-focus-ring-color);
18
- --focus-ring-offset: var(--p-focus-ring-offset);
19
- --focus-ring-shadow: var(--p-focus-ring-shadow);
14
+ --element-transition-duration: var(--f-transition-duration);
15
+ --focus-ring-width: var(--f-focus-ring-width);
16
+ --focus-ring-style: var(--f-focus-ring-style);
17
+ --focus-ring-color: var(--f-focus-ring-color);
18
+ --focus-ring-offset: var(--f-focus-ring-offset);
19
+ --focus-ring-shadow: var(--f-focus-ring-shadow);
20
20
  }
@@ -1,5 +1,5 @@
1
1
  :root[class*='app-dark'] {
2
- --surface-ground: var(--p-surface-950);
3
- --code-background: var(--p-surface-800);
4
- --code-color: var(--p-surface-100);
2
+ --surface-ground: var(--f-surface-950);
3
+ --code-background: var(--f-surface-800);
4
+ --code-color: var(--f-surface-100);
5
5
  }
@@ -1,5 +1,5 @@
1
1
  :root {
2
- --surface-ground: var(--p-surface-100);
3
- --code-background: var(--p-surface-900);
4
- --code-color: var(--p-surface-200);
2
+ --surface-ground: var(--f-surface-100);
3
+ --code-background: var(--f-surface-900);
4
+ --code-color: var(--f-surface-200);
5
5
  }
package/assets/style.scss CHANGED
@@ -3,8 +3,8 @@
3
3
 
4
4
  .edit-mode-element-css {
5
5
  opacity: 1 !important;
6
- color: var(--p-inputtext-color) !important;
7
- background: var(--p-inputtext-background) !important;
6
+ color: var(--f-form-field-color) !important;
7
+ background: var(--f-form-field-background) !important;
8
8
  }
9
9
 
10
10
  .edit-icon-color {
@@ -35,5 +35,5 @@ li {
35
35
  }
36
36
 
37
37
  .primary-border-color {
38
- border: 1px solid var(--p-primary-color) !important;
38
+ border: 1px solid var(--f-primary-color) !important;
39
39
  }