@factor_ec/ui 2.1.2 → 3.0.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 (47) hide show
  1. package/esm2020/lib/io/expression-builder/expression-builder.component.mjs +1 -1
  2. package/esm2020/lib/io/icon/icon.component.mjs +3 -5
  3. package/esm2020/lib/io/image/image.component.mjs +2 -2
  4. package/esm2020/lib/io/io.module.mjs +1 -6
  5. package/esm2020/lib/io/message/message.component.mjs +3 -3
  6. package/esm2020/lib/layout/collapsible/collapsible.component.mjs +37 -0
  7. package/esm2020/lib/layout/layout.module.mjs +28 -0
  8. package/esm2020/lib/models/action.mjs +1 -1
  9. package/esm2020/lib/navigation/list/list.component.mjs +55 -25
  10. package/esm2020/lib/navigation/navigation.module.mjs +9 -15
  11. package/esm2020/lib/navigation/toolbar/toolbar.component.mjs +1 -1
  12. package/esm2020/lib/ui.module.mjs +8 -1
  13. package/esm2020/public-api.mjs +3 -5
  14. package/fesm2015/factor_ec-ui.mjs +120 -206
  15. package/fesm2015/factor_ec-ui.mjs.map +1 -1
  16. package/fesm2020/factor_ec-ui.mjs +119 -205
  17. package/fesm2020/factor_ec-ui.mjs.map +1 -1
  18. package/lib/io/icon/icon.component.d.ts +1 -2
  19. package/lib/io/io.module.d.ts +7 -8
  20. package/lib/layout/collapsible/collapsible.component.d.ts +10 -0
  21. package/lib/layout/layout.module.d.ts +9 -0
  22. package/lib/models/action.d.ts +0 -1
  23. package/lib/navigation/list/list.component.d.ts +10 -8
  24. package/lib/navigation/navigation.module.d.ts +8 -9
  25. package/lib/ui.module.d.ts +3 -2
  26. package/package.json +1 -1
  27. package/public-api.d.ts +2 -4
  28. package/scss/all.scss +5 -5
  29. package/scss/components/collapsible.scss +44 -0
  30. package/scss/components/dropdown.scss +56 -0
  31. package/scss/components/list.scss +20 -42
  32. package/scss/components/ph.scss +27 -0
  33. package/scss/components/popup.scss +7 -0
  34. package/scss/components.scss +8 -5
  35. package/scss/mixins/breakpoints.scss +123 -0
  36. package/scss/mixins.scss +1 -0
  37. package/scss/reboot.scss +20 -15
  38. package/scss/root.scss +34 -21
  39. package/scss/variables.scss +76 -1
  40. package/esm2020/lib/io/listview/listview.component.mjs +0 -11
  41. package/esm2020/lib/navigation/navbar/navbar.component.mjs +0 -72
  42. package/esm2020/lib/navigation/searchbox/searchbox.component.mjs +0 -96
  43. package/lib/io/listview/listview.component.d.ts +0 -5
  44. package/lib/navigation/navbar/navbar.component.d.ts +0 -19
  45. package/lib/navigation/searchbox/searchbox.component.d.ts +0 -34
  46. package/scss/components/button.scss +0 -23
  47. package/scss/layout.scss +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor_ec/ui",
3
- "version": "2.1.2",
3
+ "version": "3.0.0",
4
4
  "license": "CC-BY-NC-ND-4.0",
5
5
  "author": "Factor",
6
6
  "private": false,
package/public-api.d.ts CHANGED
@@ -7,15 +7,13 @@ export * from './lib/io/message.service';
7
7
  export * from './lib/io/progress/progress.component';
8
8
  export * from './lib/io/progress.service';
9
9
  export * from './lib/io/observe-intersecting.directive';
10
- export * from './lib/io/io.module';
11
10
  export * from './lib/io/rating/rating.component';
12
11
  export * from './lib/io/timeline/timeline.component';
13
- export * from './lib/io/listview/listview.component';
14
12
  export * from './lib/io/expression-builder/expression-builder.component';
15
13
  export * from './lib/io/io.module';
14
+ export * from './lib/layout/collapsible/collapsible.component';
15
+ export * from './lib/layout/layout.module';
16
16
  export * from './lib/navigation/list/list.component';
17
- export * from './lib/navigation/navbar/navbar.component';
18
- export * from './lib/navigation/searchbox/searchbox.component';
19
17
  export * from './lib/navigation/toolbar/toolbar.component';
20
18
  export * from './lib/navigation/navigation.module';
21
19
  export * from './lib/ui.module';
package/scss/all.scss CHANGED
@@ -1,5 +1,5 @@
1
- @use 'variables';
2
- @use 'reboot';
3
- @use 'layout';
4
- @use 'components';
5
- @use 'root';
1
+ @import 'variables';
2
+ @import 'mixins';
3
+ @import 'reboot';
4
+ @import 'components';
5
+ @import 'root';
@@ -0,0 +1,44 @@
1
+ .ft-collapsible {
2
+ overflow: hidden;
3
+ transition: max-height 0.2s;
4
+ max-height: 100vh;
5
+ display: flex;
6
+ flex-direction: column;
7
+ &.ft-collapsible--show {
8
+ .ft-collapsible__header {
9
+ .ft-item__toggle {
10
+ transform: rotate(180deg);
11
+ }
12
+ }
13
+ }
14
+ &:not(.ft-collapsible--show) {
15
+ .ft-collapsible__content {
16
+ max-height: 0;
17
+ }
18
+ }
19
+ &__header {
20
+ &.ft-button {
21
+ font-weight: 600;
22
+ text-align: left;
23
+ }
24
+ .ft-item__label {
25
+ flex-grow: 1;
26
+ }
27
+ .ft-item__toggle {
28
+ transition: transform 0.2s;
29
+ }
30
+ &:focus {
31
+ box-shadow: 0 0 0;
32
+ }
33
+ &:not(:hover):not(:disabled) {
34
+ .ft-item__label {
35
+ color: var(--ft-text-muted-color);
36
+ }
37
+ }
38
+ .ft-item {
39
+ display: flex;
40
+ align-items: center;
41
+ flex-grow: 1;
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,56 @@
1
+ .ft-dropdown {
2
+ position: relative;
3
+ display: flex;
4
+ &--right {
5
+ .ft-dropdown__menu {
6
+ right: 0;
7
+ }
8
+ }
9
+ &:focus-within {
10
+ &::before {
11
+ display: block;
12
+ content: "";
13
+ position: fixed;
14
+ top: 0;
15
+ left: 0;
16
+ right: 0;
17
+ bottom: 0;
18
+ z-index: 1;
19
+ }
20
+ .ft-dropdown__menu {
21
+ display: block;
22
+ }
23
+ }
24
+ &__menu {
25
+ --ft-button-bg: #fff;
26
+ --ft-button-color: var(--ft-text-color);
27
+ --ft-button-border-radius: 0;
28
+ position: absolute;
29
+ display: none;
30
+ transition: display 0.2s linear 0.2s;
31
+ box-shadow: var(--ft-popup-box-shadow);
32
+ background-color: #fff;
33
+ border-radius: 0.25rem;
34
+ top: calc(100% + 0.125rem);
35
+ padding-top: 0.25rem;
36
+ padding-bottom: 0.25rem;
37
+ z-index: 2;
38
+ width: max-content;
39
+ max-width: 250px;
40
+ @include media-breakpoint-down(sm) {
41
+ position: fixed;
42
+ top: auto;
43
+ left: 0;
44
+ right: 0;
45
+ bottom: 0;
46
+ min-width: unset;
47
+ max-height: 60vh;
48
+ width: 100%;
49
+ max-width: 100vw;
50
+ border-bottom-left-radius: 0;
51
+ border-bottom-right-radius: 0;
52
+ transform: initial;
53
+ overflow-y: auto;
54
+ }
55
+ }
56
+ }
@@ -1,36 +1,36 @@
1
1
  .ft-list {
2
2
  display: block;
3
3
  overflow: auto;
4
+ &--comfortable {
5
+ .ft-collapsible__header,
6
+ .ft-list__header {
7
+ padding: 0.75rem 0.75rem 0.75rem 1.5rem;
8
+ }
9
+ .ft-list__item {
10
+ padding: 0.75rem 1.5rem;
11
+ }
12
+ }
4
13
  &__header {
5
14
  text-transform: uppercase;
6
15
  font-weight: 700;
7
- padding: 0.75rem 1.5rem 0.25rem;
16
+ padding: 0.5rem 0.75rem 0.25rem;
8
17
  font-size: 0.75rem;
9
18
  opacity: 0.3;
10
19
  }
11
20
  &__item {
12
- border: 0;
13
- box-sizing: border-box;
14
- color: var(--ft-text-color);
15
- background-color: var(--ft-background-color);
16
- cursor: pointer;
17
- display: flex;
18
- outline: none;
19
- transition: background-color 0.3s, color 0.3s;
20
21
  text-align: left;
21
- padding: 0.75rem 1.5rem;
22
+ padding: 0.5rem 0.75rem;
22
23
  width: 100%;
23
- &:hover {
24
- text-decoration: none;
25
- &:not(.active) {
26
- --ft-background-color: var(--ft-background-color-hover);
27
- --ft-text-color: var(--text-color-hover);
28
- }
24
+ display: block;
25
+ text-decoration: none;
26
+ font-size: 0.875rem;
27
+ font-weight: 400;
28
+ justify-content: flex-start;
29
+ &:focus {
30
+ box-shadow: 0 0 0;
29
31
  }
30
- &--active,
31
- &:active {
32
- --ft-background-color: var(--ft-background-color-active);
33
- --ft-text-color: var(--ft-text-color-active);
32
+ &:not(:hover):not(:disabled) {
33
+ color: var(--ft-text-color);
34
34
  }
35
35
  .ft-item {
36
36
  max-width: 100%;
@@ -58,26 +58,4 @@
58
58
  }
59
59
  }
60
60
  }
61
- &__collapsible {
62
- overflow: hidden;
63
- transition: max-height 0.2s;
64
- max-height: 100vh;
65
- &-header {
66
- font-weight: 500;
67
- > div {
68
- display: flex;
69
- align-items: center;
70
- flex-grow: 1;
71
- }
72
- &--show {
73
- .ft-item__toggle {
74
- transform: rotate(90deg);
75
- }
76
- }
77
- }
78
- &:not(.ft-show) {
79
- max-height: 0;
80
- background-color: transparent;
81
- }
82
- }
83
61
  }
@@ -0,0 +1,27 @@
1
+ .ft-ph {
2
+ overflow: hidden;
3
+ position: relative;
4
+ background-color: rgba(0, 0, 0, 0.03);
5
+
6
+ &::after {
7
+ content: "";
8
+ display: block;
9
+ background-color: rgba(0, 0, 0, 0.02);
10
+ position: absolute;
11
+ top: 0;
12
+ bottom: 0;
13
+ width: 100%;
14
+ height: 100%;
15
+ transform: translateX(0);
16
+ animation: 1.5s ft-ph-loading ease-in-out infinite;
17
+ }
18
+ }
19
+ @keyframes ft-ph-loading {
20
+ 0% {
21
+ transform: translateX(-100%);
22
+ }
23
+
24
+ 100% {
25
+ transform: translateX(100%);
26
+ }
27
+ }
@@ -0,0 +1,7 @@
1
+ .ft-popup {
2
+ box-shadow: var(--ft-popup-box-shadow);
3
+ background-color: #fff;
4
+ border-radius: 0.25rem;
5
+ padding-top: 0.25rem;
6
+ padding-bottom: 0.25rem;
7
+ }
@@ -1,5 +1,8 @@
1
- @use 'components/avatar';
2
- @use 'components/button';
3
- @use 'components/list';
4
- @use 'components/rating';
5
- @use 'components/icon';
1
+ @import 'components/avatar';
2
+ @import 'components/collapsible';
3
+ @import 'components/dropdown';
4
+ @import 'components/icon';
5
+ @import 'components/list';
6
+ @import 'components/ph';
7
+ @import 'components/popup';
8
+ @import 'components/rating';
@@ -0,0 +1,123 @@
1
+ // Breakpoint viewport sizes and media queries.
2
+ //
3
+ // Breakpoints are defined as a map of (name: minimum width), order from small to large:
4
+ //
5
+ // (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
6
+ //
7
+ // The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
8
+
9
+ // Name of the next breakpoint, or null for the last breakpoint.
10
+ //
11
+ // >> breakpoint-next(sm)
12
+ // md
13
+ // >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
14
+ // md
15
+ // >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
16
+ // md
17
+ @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
18
+ $n: index($breakpoint-names, $name);
19
+ @return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
20
+ }
21
+
22
+ // Minimum breakpoint width. Null for the smallest (first) breakpoint.
23
+ //
24
+ // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
25
+ // 576px
26
+ @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
27
+ $min: map-get($breakpoints, $name);
28
+ @return if($min != 0, $min, null);
29
+ }
30
+
31
+ // Maximum breakpoint width. Null for the largest (last) breakpoint.
32
+ // The maximum value is calculated as the minimum of the next one less 0.02px
33
+ // to work around the limitations of `min-` and `max-` prefixes and viewports with fractional widths.
34
+ // See https://www.w3.org/TR/mediaqueries-4/#mq-min-max
35
+ // Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.
36
+ // See https://bugs.webkit.org/show_bug.cgi?id=178261
37
+ //
38
+ // >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
39
+ // 767.98px
40
+ @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
41
+ $next: breakpoint-next($name, $breakpoints);
42
+ @return if($next, breakpoint-min($next, $breakpoints) - 0.02, null);
43
+ }
44
+
45
+ // Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
46
+ // Useful for making responsive utilities.
47
+ //
48
+ // >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
49
+ // "" (Returns a blank string)
50
+ // >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
51
+ // "-sm"
52
+ @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
53
+ @return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
54
+ }
55
+
56
+ // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
57
+ // Makes the @content apply to the given breakpoint and wider.
58
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
59
+ $min: breakpoint-min($name, $breakpoints);
60
+ @if $min {
61
+ @media (min-width: $min) {
62
+ @content;
63
+ }
64
+ } @else {
65
+ @content;
66
+ }
67
+ }
68
+
69
+ // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
70
+ // Makes the @content apply to the given breakpoint and narrower.
71
+ @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
72
+ $max: breakpoint-max($name, $breakpoints);
73
+ @if $max {
74
+ @media (max-width: $max) {
75
+ @content;
76
+ }
77
+ } @else {
78
+ @content;
79
+ }
80
+ }
81
+
82
+ // Media that spans multiple breakpoint widths.
83
+ // Makes the @content apply between the min and max breakpoints
84
+ @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
85
+ $min: breakpoint-min($lower, $breakpoints);
86
+ $max: breakpoint-max($upper, $breakpoints);
87
+
88
+ @if $min != null and $max != null {
89
+ @media (min-width: $min) and (max-width: $max) {
90
+ @content;
91
+ }
92
+ } @else if $max == null {
93
+ @include media-breakpoint-up($lower, $breakpoints) {
94
+ @content;
95
+ }
96
+ } @else if $min == null {
97
+ @include media-breakpoint-down($upper, $breakpoints) {
98
+ @content;
99
+ }
100
+ }
101
+ }
102
+
103
+ // Media between the breakpoint's minimum and maximum widths.
104
+ // No minimum for the smallest breakpoint, and no maximum for the largest one.
105
+ // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
106
+ @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
107
+ $min: breakpoint-min($name, $breakpoints);
108
+ $max: breakpoint-max($name, $breakpoints);
109
+
110
+ @if $min != null and $max != null {
111
+ @media (min-width: $min) and (max-width: $max) {
112
+ @content;
113
+ }
114
+ } @else if $max == null {
115
+ @include media-breakpoint-up($name, $breakpoints) {
116
+ @content;
117
+ }
118
+ } @else if $min == null {
119
+ @include media-breakpoint-down($name, $breakpoints) {
120
+ @content;
121
+ }
122
+ }
123
+ }
@@ -0,0 +1 @@
1
+ @import 'mixins/breakpoints';
package/scss/reboot.scss CHANGED
@@ -1,4 +1,4 @@
1
- @use "variables";
1
+ @import "variables";
2
2
 
3
3
  // stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
4
4
 
@@ -47,11 +47,12 @@
47
47
  // scss-docs-start reboot-body-rules
48
48
  body {
49
49
  margin: 0; // 1
50
- font-family: var(--ft-body-font-family);
50
+ font-family: var(--ft-text-font-family);
51
51
  // @include font-size(var(--ft-body-font-size));
52
- font-weight: var(--ft-body-font-weight);
53
- line-height: var(--ft-body-line-height);
54
- color: var(--ft-body-color);
52
+ font-size: var(--ft-text-font-size);
53
+ font-weight: var(--ft-text-font-weight);
54
+ line-height: var(--ft-text-line-height);
55
+ color: var(--ft-text-color);
55
56
  // text-align: var(--ft-body-text-align);
56
57
  background-color: var(--ft-body-bg); // 2
57
58
  -webkit-text-size-adjust: 100%; // 3
@@ -64,11 +65,12 @@ body {
64
65
  // 1. Reset Firefox's gray color
65
66
 
66
67
  hr {
67
- // margin: $hr-margin-y 0;
68
- // color: $hr-color; // 1
68
+ margin: 1rem 0;
69
+ color: inherit;
69
70
  border: 0;
70
71
  border-top: 1px solid;
71
- opacity: 0.25;
72
+ border-left: 1px solid;
73
+ border-color: var(--ft-border-color);
72
74
  }
73
75
 
74
76
  // Typography
@@ -231,12 +233,9 @@ sup { top: -.5em; }
231
233
  // Links
232
234
 
233
235
  a {
234
- color: rgba(var(--ft-link-color-rgb), var(--ft-link-opacity, 1));
235
- // text-decoration: $link-decoration;
236
-
236
+ color: rgba(var(--ft-text-link-color-rgb), var(--ft-text-link-opacity, 1));
237
237
  &:hover {
238
- --ft-link-color-rgb: var(--ft-link-hover-color-rgb);
239
- // text-decoration: $link-hover-decoration;
238
+ --ft-text-link-color-rgb: var(--ft-text-link-hover-color-rgb);
240
239
  }
241
240
  }
242
241
 
@@ -387,6 +386,7 @@ button {
387
386
  button:focus:not(:focus-visible) {
388
387
  outline: 0;
389
388
  }
389
+ */
390
390
 
391
391
  // 1. Remove the margin in Firefox and Safari
392
392
 
@@ -397,10 +397,9 @@ optgroup,
397
397
  textarea {
398
398
  margin: 0; // 1
399
399
  font-family: inherit;
400
- @include font-size(inherit);
400
+ font-size: inherit;
401
401
  line-height: inherit;
402
402
  }
403
- */
404
403
 
405
404
  // Remove the inheritance of text transform in Firefox
406
405
  button,
@@ -521,6 +520,12 @@ legend {
521
520
  [type="search"] {
522
521
  outline-offset: -2px; // 1
523
522
  -webkit-appearance: textfield; // 2
523
+ &::-webkit-search-decoration,
524
+ &::-webkit-search-cancel-button,
525
+ &::-webkit-search-results-button,
526
+ &::-webkit-search-results-decoration {
527
+ -webkit-appearance: none;
528
+ }
524
529
  }
525
530
 
526
531
  // Remove the inner padding in Chrome and Safari on macOS.
package/scss/root.scss CHANGED
@@ -1,39 +1,52 @@
1
1
  :root {
2
- --ft-body-font-family: sans-serif;
3
- --ft-body-font-size: 14px;
4
- --ft-body-font-size-sm: calc(var(--ft-body-font-size * 0.875));
5
- --ft-body-font-size-lg: calc(var(--ft-body-font-size * 1.25));
6
- --ft-body-font-weight: 300;
7
- --ft-body-font-line-height: normal;
8
-
9
- --ft-body-bg: #fff;
10
- --ft-body-color: var(--ft-text-dark-color);
11
-
12
- --ft-heading-color: var(--ft-text-dark-color);
13
- --ft-heading-margin-bottom: calc(1rem * 0.5);
14
- --ft-heading-font-family: var(--ft-body-font-family);
2
+ --ft-heading-font-family: var(--ft-text-font-family);
15
3
  --ft-heading-font-weight: 500;
16
4
  --ft-heading-line-height: 1.2;
5
+ --ft-heading-color: var(--ft-text-dark-color);
6
+ --ft-heading-margin-bottom: calc(1rem * 0.5);
17
7
 
8
+ --ft-text-font-family: sans-serif;
9
+ --ft-text-font-size: 1rem;
10
+ --ft-text-font-size-sm: calc(var(--ft-text-font-size) * 0.875);
11
+ --ft-text-font-size-lg: calc(var(--ft-text-font-size) * 1.25);
12
+ --ft-text-font-weight: 300;
13
+ --ft-text-line-height: normal;
18
14
  --ft-text-color: var(--ft-text-dark-color);
19
-
20
- --ft-link-color: var(--ft-primary-color);
21
- --ft-link-hover-color: rgb(var(--ft-primary-color-rgb), 0.9);
15
+ --ft-text-color-rgb: var(--ft-text-dark-color-rgb);
16
+ --ft-text-muted-color: rgba(var(--ft-text-color-rgb), 0.5);
17
+ --ft-text-light-color: #fff;
18
+ --ft-text-light-color-rgb: 255, 255, 255;
19
+ --ft-text-dark-color: #333;
20
+ --ft-text-dark-color-rgb: 51, 51, 51;
21
+ --ft-text-link-color: var(--ft-primary-color);
22
+ --ft-text-link-hover-color: rgb(var(--ft-primary-color-rgb), 0.9);
23
+ --ft-text-link-opacity: 1;
22
24
 
23
25
  --ft-danger-color: #dc3545;
26
+ --ft-danger-color-rgb: 220, 53, 69;
24
27
  --ft-warning-color: #ffc107;
28
+ --ft-warning-color-rgb: 255, 193, 7;
25
29
  --ft-success-color: #198754;
26
- --ft-text-light-color: #fff;
27
- --ft-text-dark-color: #333;
28
-
30
+ --ft-success-color-rgb: 25, 135, 84;
31
+ --ft-info-color: #0dcaf0;
32
+ --ft-info-color-rgb: 13, 202, 240;
33
+
29
34
  --ft-avatar-size: 2.25rem;
30
35
  --ft-avatar-bg: #fff;
31
36
 
32
37
  --ft-button-bg: unset;
33
38
  --ft-button-bg-rgb: 0, 0, 0;
34
39
  --ft-button-border-color: unset;
35
- --ft-button-border-radius: 0.5rem;
40
+ --ft-button-border-radius: 0.25rem;
36
41
  --ft-button-color: var(--ft-primary-color);
42
+ --ft-button-hover-bg: rgba(var(--ft-button-bg-rgb), 0.1);
43
+ --ft-button-focus-bg: rgba(var(--ft-button-bg-rgb), 0.1);
44
+ --ft-button-active-bg: rgba(var(--ft-button-bg-rgb), 0.2);
45
+
46
+ --ft-field-label-color: rgba(var(--ft-text-color-rgb), 0.7);
47
+ --ft-field-label-font-size: var(--ft-text-font-size-sm);
48
+ --ft-field-label-line-height: var(--ft-text-line-height);
37
49
 
38
- --ft-popup-box-shadow: 0px 24px 38px rgba(0, 0, 0, 0.14), 0px 9px 46px rgba(0, 0, 0, 0.12), 0px 11px 15px rgba(0, 0, 0, 0.2);;
50
+ --ft-popup-box-shadow: 0px 24px 38px rgba(0, 0, 0, 0.14), 0px 9px 46px rgba(0, 0, 0, 0.12),
51
+ 0px 11px 15px rgba(0, 0, 0, 0.2);
39
52
  }
@@ -1,3 +1,5 @@
1
+ $prefix: ft- !default;
2
+
1
3
  $white: #fff !default;
2
4
  $gray-100: #f8f9fa !default;
3
5
  $gray-200: #e9ecef !default;
@@ -10,6 +12,43 @@ $gray-800: #343a40 !default;
10
12
  $gray-900: #212529 !default;
11
13
  $black: #000 !default;
12
14
 
15
+ // scss-docs-start color-variables
16
+ $blue: #0d6efd !default;
17
+ $indigo: #6610f2 !default;
18
+ $purple: #6f42c1 !default;
19
+ $pink: #d63384 !default;
20
+ $red: #dc3545 !default;
21
+ $orange: #fd7e14 !default;
22
+ $yellow: #ffc107 !default;
23
+ $green: #198754 !default;
24
+ $teal: #20c997 !default;
25
+ $cyan: #0dcaf0 !default;
26
+ // scss-docs-end color-variables
27
+
28
+ // scss-docs-start theme-color-variables
29
+ $primary: $blue !default;
30
+ $secondary: $gray-600 !default;
31
+ $success: $green !default;
32
+ $info: $cyan !default;
33
+ $warning: $yellow !default;
34
+ $danger: $red !default;
35
+ $light: $gray-100 !default;
36
+ $dark: $gray-900 !default;
37
+ // scss-docs-end theme-color-variables
38
+
39
+ // scss-docs-start theme-colors-map
40
+ $theme-colors: (
41
+ "primary": $primary,
42
+ "secondary": $secondary,
43
+ "success": $success,
44
+ "info": $info,
45
+ "warning": $warning,
46
+ "danger": $danger,
47
+ "light": $light,
48
+ "dark": $dark
49
+ ) !default;
50
+ // scss-docs-end theme-colors-map
51
+
13
52
  $spacer: 1rem !default;
14
53
  $spacers: (
15
54
  0: 0,
@@ -29,6 +68,12 @@ $grid-breakpoints: (
29
68
  xxl: 1400px
30
69
  ) !default;
31
70
 
71
+ $grid-breakpoints-sm: 576px;
72
+ $grid-breakpoints-md: 768px;
73
+ $grid-breakpoints-lg: 992px;
74
+ $grid-breakpoints-xl: 1200px;
75
+ $grid-breakpoints-xxl: 1400px;
76
+
32
77
  $container-max-widths: (
33
78
  sm: 540px,
34
79
  md: 720px,
@@ -38,4 +83,34 @@ $container-max-widths: (
38
83
  ) !default;
39
84
 
40
85
  $headings-margin-bottom: $spacer * .5 !default;
41
- $paragraph-margin-bottom: 1rem !default;
86
+ $paragraph-margin-bottom: 1rem !default;
87
+
88
+ // scss-docs-start border-variables
89
+ $border-width: 1px !default;
90
+ $border-widths: (
91
+ 1: 1px,
92
+ 2: 2px,
93
+ 3: 3px,
94
+ 4: 4px,
95
+ 5: 5px
96
+ ) !default;
97
+ $border-style: solid !default;
98
+ $border-color: $gray-300 !default;
99
+ $border-color-translucent: rgba($black, .175) !default;
100
+ // scss-docs-end border-variables
101
+
102
+ // scss-docs-start border-radius-variables
103
+ $border-radius: .375rem !default;
104
+ $border-radius-sm: .25rem !default;
105
+ $border-radius-lg: .5rem !default;
106
+ $border-radius-xl: 1rem !default;
107
+ $border-radius-2xl: 2rem !default;
108
+ $border-radius-pill: 50rem !default;
109
+ // scss-docs-end border-radius-variables
110
+
111
+ // scss-docs-start box-shadow-variables
112
+ $box-shadow: 0 .5rem 1rem rgba(var(--#{$prefix}text-color-rgb), .15) !default;
113
+ $box-shadow-sm: 0 .125rem .25rem rgba(var(--#{$prefix}text-color-rgb), .075) !default;
114
+ $box-shadow-lg: 0 1rem 3rem rgba(var(--#{$prefix}text-color-rgb), .175) !default;
115
+ $box-shadow-inset: inset 0 1px 2px rgba(var(--#{$prefix}text-color-rgb), .075) !default;
116
+ // scss-docs-end box-shadow-variables
@@ -1,11 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class ListviewComponent {
4
- }
5
- ListviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ListviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- ListviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ListviewComponent, selector: "ft-listview", ngImport: i0, template: "<p>listview works!</p>\n", styles: [""] });
7
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ListviewComponent, decorators: [{
8
- type: Component,
9
- args: [{ selector: 'ft-listview', template: "<p>listview works!</p>\n" }]
10
- }] });
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdHZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWkvc3JjL2xpYi9pby9saXN0dmlldy9saXN0dmlldy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS9zcmMvbGliL2lvL2xpc3R2aWV3L2xpc3R2aWV3LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBTzFDLE1BQU0sT0FBTyxpQkFBaUI7OzhHQUFqQixpQkFBaUI7a0dBQWpCLGlCQUFpQixtRENQOUIsMEJBQ0E7MkZETWEsaUJBQWlCO2tCQUw3QixTQUFTOytCQUNFLGFBQWEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZnQtbGlzdHZpZXcnLFxuICB0ZW1wbGF0ZVVybDogJy4vbGlzdHZpZXcuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9saXN0dmlldy5jb21wb25lbnQuc2NzcyddXG59KVxuZXhwb3J0IGNsYXNzIExpc3R2aWV3Q29tcG9uZW50IHtcblxufVxuIiwiPHA+bGlzdHZpZXcgd29ya3MhPC9wPlxuIl19