@ulu/frontend 0.1.0-beta.6 → 0.1.0-beta.8

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 (145) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/docs-dev/demos/accordion/index.html +90 -0
  3. package/docs-dev/demos/button/index.html +90 -0
  4. package/docs-dev/demos/callout/index.html +90 -0
  5. package/docs-dev/demos/captioned-figure/index.html +90 -0
  6. package/docs-dev/demos/card/index.html +90 -0
  7. package/docs-dev/demos/css-icons/index.html +90 -0
  8. package/docs-dev/demos/data-grid/index.html +198 -188
  9. package/docs-dev/demos/data-table/index.html +115 -25
  10. package/docs-dev/demos/file-save/index.html +90 -0
  11. package/docs-dev/demos/flipcard/index.html +90 -0
  12. package/docs-dev/demos/form-theme/index.html +90 -0
  13. package/docs-dev/demos/index.html +90 -0
  14. package/docs-dev/demos/list-inline/index.html +4727 -0
  15. package/docs-dev/demos/list-inline.1/index.html +4727 -0
  16. package/docs-dev/demos/list-lines/index.html +4717 -0
  17. package/docs-dev/demos/menu-stack/index.html +90 -0
  18. package/docs-dev/demos/modals/index.html +90 -0
  19. package/docs-dev/demos/nav-strip/index.html +90 -0
  20. package/docs-dev/demos/overlay-section/index.html +90 -0
  21. package/docs-dev/demos/popovers/index.html +90 -0
  22. package/docs-dev/demos/print/index.html +90 -0
  23. package/docs-dev/demos/pull-quote/index.html +90 -0
  24. package/docs-dev/demos/rule/index.html +90 -0
  25. package/docs-dev/demos/scrollpoints/index.html +90 -0
  26. package/docs-dev/demos/spoke-spinner/index.html +90 -0
  27. package/docs-dev/demos/tabs/index.html +90 -0
  28. package/docs-dev/demos/tag/index.html +90 -0
  29. package/docs-dev/demos/tiles/index.html +90 -0
  30. package/docs-dev/demos/tooltip/index.html +90 -0
  31. package/docs-dev/guide/building-stylesheet/index.html +90 -0
  32. package/docs-dev/guide/developing-ulu-scss-module/index.html +90 -0
  33. package/docs-dev/guide/index.html +90 -0
  34. package/docs-dev/index.html +90 -0
  35. package/docs-dev/javascript/events/index.html +90 -0
  36. package/docs-dev/javascript/index.html +90 -0
  37. package/docs-dev/javascript/ui-breakpoints/index.html +90 -0
  38. package/docs-dev/javascript/ui-collapsible/index.html +90 -0
  39. package/docs-dev/javascript/ui-dialog/index.html +90 -0
  40. package/docs-dev/javascript/ui-flipcard/index.html +90 -0
  41. package/docs-dev/javascript/ui-grid/index.html +90 -0
  42. package/docs-dev/javascript/ui-modal-builder/index.html +90 -0
  43. package/docs-dev/javascript/ui-overflow-scroller/index.html +90 -0
  44. package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +90 -0
  45. package/docs-dev/javascript/ui-page/index.html +90 -0
  46. package/docs-dev/javascript/ui-popover/index.html +90 -0
  47. package/docs-dev/javascript/ui-print/index.html +90 -0
  48. package/docs-dev/javascript/ui-print-details/index.html +90 -0
  49. package/docs-dev/javascript/ui-programmatic-modal/index.html +90 -0
  50. package/docs-dev/javascript/ui-proxy-click/index.html +90 -0
  51. package/docs-dev/javascript/ui-resizer/index.html +90 -0
  52. package/docs-dev/javascript/ui-scroll-slider/index.html +90 -0
  53. package/docs-dev/javascript/ui-scrollpoint/index.html +90 -0
  54. package/docs-dev/javascript/ui-slider/index.html +90 -0
  55. package/docs-dev/javascript/ui-tabs/index.html +90 -0
  56. package/docs-dev/javascript/ui-tooltip/index.html +90 -0
  57. package/docs-dev/javascript/utils-class-logger/index.html +90 -0
  58. package/docs-dev/javascript/utils-dom/index.html +90 -0
  59. package/docs-dev/javascript/utils-file-save/index.html +90 -0
  60. package/docs-dev/javascript/utils-floating-ui/index.html +90 -0
  61. package/docs-dev/javascript/utils-id/index.html +90 -0
  62. package/docs-dev/javascript/utils-pause-youtube-video/index.html +90 -0
  63. package/docs-dev/sass/base/color/index.html +90 -0
  64. package/docs-dev/sass/base/elements/index.html +90 -0
  65. package/docs-dev/sass/base/index/index.html +90 -0
  66. package/docs-dev/sass/base/index.html +90 -0
  67. package/docs-dev/sass/base/keyframes/index.html +90 -0
  68. package/docs-dev/sass/base/layout/index.html +90 -0
  69. package/docs-dev/sass/base/normalize/index.html +90 -0
  70. package/docs-dev/sass/base/print/index.html +90 -0
  71. package/docs-dev/sass/base/root/index.html +90 -0
  72. package/docs-dev/sass/base/typography/index.html +90 -0
  73. package/docs-dev/sass/components/accordion/index.html +95 -5
  74. package/docs-dev/sass/components/adaptive-spacing/index.html +90 -0
  75. package/docs-dev/sass/components/badge/index.html +98 -8
  76. package/docs-dev/sass/components/button/index.html +90 -0
  77. package/docs-dev/sass/components/button-verbose/index.html +90 -0
  78. package/docs-dev/sass/components/callout/index.html +108 -14
  79. package/docs-dev/sass/components/captioned-figure/index.html +98 -8
  80. package/docs-dev/sass/components/card/index.html +100 -10
  81. package/docs-dev/sass/components/card-grid/index.html +90 -0
  82. package/docs-dev/sass/components/css-icon/index.html +100 -10
  83. package/docs-dev/sass/components/data-grid/index.html +90 -0
  84. package/docs-dev/sass/components/data-table/index.html +101 -9
  85. package/docs-dev/sass/components/fill-context/index.html +90 -0
  86. package/docs-dev/sass/components/flipcard/index.html +98 -8
  87. package/docs-dev/sass/components/flipcard-grid/index.html +90 -0
  88. package/docs-dev/sass/components/form-theme/index.html +90 -0
  89. package/docs-dev/sass/components/hero/index.html +90 -0
  90. package/docs-dev/sass/components/horizontal-rule/index.html +90 -0
  91. package/docs-dev/sass/components/image-grid/index.html +90 -0
  92. package/docs-dev/sass/components/index/index.html +101 -10
  93. package/docs-dev/sass/components/index.html +90 -0
  94. package/docs-dev/sass/components/links/index.html +90 -0
  95. package/docs-dev/sass/components/list-inline/index.html +4908 -0
  96. package/docs-dev/sass/components/list-lines/index.html +122 -36
  97. package/docs-dev/sass/components/list-ordered/index.html +92 -2
  98. package/docs-dev/sass/components/list-unordered/index.html +90 -0
  99. package/docs-dev/sass/components/menu-stack/index.html +90 -0
  100. package/docs-dev/sass/components/modal/index.html +105 -8
  101. package/docs-dev/sass/components/nav-strip/index.html +91 -1
  102. package/docs-dev/sass/components/overlay-section/index.html +98 -8
  103. package/docs-dev/sass/components/pager/index.html +90 -0
  104. package/docs-dev/sass/components/placeholder-block/index.html +90 -0
  105. package/docs-dev/sass/components/popover/index.html +90 -0
  106. package/docs-dev/sass/components/pull-quote/index.html +90 -0
  107. package/docs-dev/sass/components/ratio-box/index.html +90 -0
  108. package/docs-dev/sass/components/rule/index.html +98 -8
  109. package/docs-dev/sass/components/scroll-slider/index.html +90 -0
  110. package/docs-dev/sass/components/skip-link/index.html +98 -8
  111. package/docs-dev/sass/components/slider/index.html +95 -5
  112. package/docs-dev/sass/components/spoke-spinner/index.html +90 -0
  113. package/docs-dev/sass/components/tabs/index.html +90 -0
  114. package/docs-dev/sass/components/tag/index.html +90 -0
  115. package/docs-dev/sass/components/tile-button/index.html +90 -0
  116. package/docs-dev/sass/components/tile-grid/index.html +90 -0
  117. package/docs-dev/sass/components/tile-grid-overlay/index.html +90 -0
  118. package/docs-dev/sass/components/vignette/index.html +90 -0
  119. package/docs-dev/sass/components/wysiwyg/index.html +90 -0
  120. package/docs-dev/sass/core/breakpoint/index.html +90 -0
  121. package/docs-dev/sass/core/button/index.html +90 -0
  122. package/docs-dev/sass/core/color/index.html +120 -29
  123. package/docs-dev/sass/core/cssvar/index.html +90 -0
  124. package/docs-dev/sass/core/element/index.html +90 -0
  125. package/docs-dev/sass/core/index.html +90 -0
  126. package/docs-dev/sass/core/layout/index.html +90 -0
  127. package/docs-dev/sass/core/path/index.html +90 -0
  128. package/docs-dev/sass/core/selector/index.html +90 -0
  129. package/docs-dev/sass/core/typography/index.html +90 -0
  130. package/docs-dev/sass/core/units/index.html +90 -0
  131. package/docs-dev/sass/core/utils/index.html +90 -0
  132. package/docs-dev/sass/helpers/color/index.html +90 -0
  133. package/docs-dev/sass/helpers/display/index.html +90 -0
  134. package/docs-dev/sass/helpers/index/index.html +90 -0
  135. package/docs-dev/sass/helpers/index.html +90 -0
  136. package/docs-dev/sass/helpers/print/index.html +90 -0
  137. package/docs-dev/sass/helpers/typography/index.html +90 -0
  138. package/docs-dev/sass/helpers/units/index.html +90 -0
  139. package/docs-dev/sass/helpers/utilities/index.html +90 -0
  140. package/docs-dev/sass/index.html +90 -0
  141. package/package.json +1 -1
  142. package/scss/components/_data-table.scss +7 -3
  143. package/scss/components/_index.scss +6 -0
  144. package/scss/components/_list-inline.scss +80 -0
  145. package/scss/components/_list-lines.scss +44 -32
@@ -3,24 +3,40 @@
3
3
  ////
4
4
 
5
5
  @use "sass:map";
6
+ @use "sass:meta";
6
7
 
7
8
  @use "../element";
8
9
  @use "../typography";
10
+ @use "../selector";
9
11
  @use "../utils";
10
12
 
13
+ // Used for function fallback
14
+ $-fallbacks: (
15
+ "dense-line-height" : (
16
+ "function" : meta.get-function("get", false, "typography"),
17
+ "property" : "line-height-dense"
18
+ ),
19
+ );
20
+
11
21
  /// Module Config
12
22
  /// @prop {Boolean} border-first [true] If enabled, adds a top border to the first item in list-lines.
13
23
  /// @prop {Boolean} border-last [true] If enabled, adds a bottom border to the last item in list-lines.
24
+ /// @prop {String} rule-style ["light"] Name of element > rule style to use for divider/border
14
25
  /// @prop {Dimension} margin-bottom [1em] Bottom margin of list.
15
26
  /// @prop {Dimension} margin-top [0] Top margin of list.
16
27
  /// @prop {Dimension} padding-between [1em] Padding between items in list.
28
+ /// @prop {Dimension} padding-between [1em] Padding between items in list when using dense modifier
29
+ /// @prop {Dimension} line-height-dense [true] Line height when list lines has dense modifier (defaults to typography line-height-dense)
17
30
 
18
31
  $config: (
19
32
  "border-first" : true,
20
33
  "border-last" : true,
21
34
  "margin-bottom": 1em,
22
35
  "margin-top": 0,
23
- "padding-between" : 1em
36
+ "rule-style" : "light",
37
+ "padding-between" : 1em,
38
+ "dense-padding-between" : 0.65em,
39
+ "dense-line-height" : true
24
40
  ) !default;
25
41
 
26
42
  /// Change modules $config
@@ -38,31 +54,8 @@ $config: (
38
54
  /// @include ulu.component-list-lines-get("property");
39
55
 
40
56
  @function get($name) {
41
- @return utils.require-map-get($config, $name, "grid [config]");
42
- }
43
-
44
- /// Output component styles
45
-
46
- @mixin inner-styles {
47
- $border: element.get-rule-style("light") !default;
48
- list-style: none;
49
- margin: get("margin-top") 0 get("margin-bottom") 0;
50
- padding: 0;
51
- @if (get("border-first")) {
52
- border-top: $border;
53
- }
54
- >li {
55
- border-bottom: $border;
56
- padding: get("padding-between") 0;
57
- >*:last-child {
58
- margin-bottom: 0;
59
- }
60
- @if (not get("border-last")) {
61
- &:last-child {
62
- border-bottom-width: 0;
63
- }
64
- }
65
- }
57
+ $value: utils.require-map-get($config, $name, "list-lines [config]");
58
+ @return utils.function-fallback($name, $value, $-fallbacks);
66
59
  }
67
60
 
68
61
  /// Output component stylesheet
@@ -70,14 +63,33 @@ $config: (
70
63
  /// @include ulu.component-list-lines-styles();
71
64
 
72
65
  @mixin styles {
73
-
74
- .list-lines {
75
- @include inner-styles;
66
+ $prefix: selector.class("list-lines");
67
+ $border: element.get-rule-style(get("rule-style"));
68
+
69
+ #{ $prefix } {
70
+ list-style: none;
71
+ margin: get("margin-top") 0 get("margin-bottom") 0;
72
+ padding: 0;
73
+ @if (get("border-first")) {
74
+ border-top: $border;
75
+ }
76
+ >li {
77
+ border-bottom: $border;
78
+ padding: get("padding-between") 0;
79
+ >*:last-child {
80
+ margin-bottom: 0;
81
+ }
82
+ @if (not get("border-last")) {
83
+ &:last-child {
84
+ border-bottom-width: 0;
85
+ }
86
+ }
87
+ }
76
88
  }
77
- .list-lines--dense {
89
+ #{ $prefix }--dense {
78
90
  >li {
79
- padding: 0.5em 0;
80
- line-height: typography.get("line-height-dense");
91
+ padding: get("dense-padding-between") 0;
92
+ line-height: get("dense-line-height");
81
93
  }
82
94
  }
83
95
  }