@ulu/frontend 0.1.0-beta.12 → 0.1.0-beta.121
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.
- package/CHANGELOG.md +717 -0
- package/GEMINI.md +9 -0
- package/README.dev.md +3 -3
- package/README.md +14 -4
- package/dist/ulu-frontend.min.css +1 -1
- package/dist/ulu-frontend.min.js +36 -29
- package/docs-dev/.nojekyll +1 -0
- package/docs-dev/assets/main.js +832 -421
- package/docs-dev/assets/placeholder/icon-calendar.svg +1 -0
- package/docs-dev/assets/placeholder/icon-check.svg +1 -0
- package/docs-dev/assets/style.css +629 -233
- package/docs-dev/changelog/index.html +7613 -0
- package/docs-dev/changelog/updates-and-changes/index.html +5109 -0
- package/docs-dev/demos/accordion/index.html +1496 -358
- package/docs-dev/demos/badge/index.html +5895 -0
- package/docs-dev/demos/badge-stack/index.html +5876 -0
- package/docs-dev/demos/basic-hero/index.html +111 -0
- package/docs-dev/demos/breadcrumb/index.html +5930 -0
- package/docs-dev/demos/breakpoints-manager/index.html +5906 -0
- package/docs-dev/demos/button/index.html +1537 -343
- package/docs-dev/demos/button-group/index.html +5892 -0
- package/docs-dev/demos/button-verbose/index.html +5898 -0
- package/docs-dev/demos/callout/index.html +1559 -379
- package/docs-dev/demos/captioned-figure/index.html +1492 -339
- package/docs-dev/demos/card/index.html +1592 -800
- package/docs-dev/demos/card-grid/index.html +6017 -0
- package/docs-dev/demos/card-new/index.html +5088 -0
- package/docs-dev/demos/card-old/index.html +5223 -0
- package/docs-dev/demos/card.1/index.html +5223 -0
- package/docs-dev/demos/card.TRASH/index.html +5541 -0
- package/docs-dev/demos/counter-list/index.html +5900 -0
- package/docs-dev/demos/css-icons/index.html +1556 -380
- package/docs-dev/demos/data-grid/index.html +1492 -339
- package/docs-dev/demos/data-table/index.html +1634 -348
- package/docs-dev/demos/definition-list/index.html +6011 -0
- package/docs-dev/demos/details-group/index.html +5927 -0
- package/docs-dev/demos/donut-chart/index.html +5874 -0
- package/docs-dev/demos/file-save/index.html +1492 -339
- package/docs-dev/demos/flipcard/index.html +1492 -339
- package/docs-dev/demos/form-theme/index.html +1500 -347
- package/docs-dev/demos/headline-label/index.html +5862 -0
- package/docs-dev/demos/hero/index.html +12 -4
- package/docs-dev/demos/image-grid/index.html +12 -4
- package/docs-dev/demos/index.html +1493 -340
- package/docs-dev/demos/list-inline/index.html +1492 -339
- package/docs-dev/demos/list-lines/index.html +1492 -339
- package/docs-dev/demos/menu-stack/index.html +1652 -378
- package/docs-dev/demos/modals/index.html +1642 -366
- package/docs-dev/demos/nav-strip/index.html +1492 -339
- package/docs-dev/demos/overlay-section/index.html +1611 -388
- package/docs-dev/demos/panel/index.html +5922 -0
- package/docs-dev/demos/popovers/index.html +1752 -357
- package/docs-dev/demos/print/index.html +1492 -339
- package/docs-dev/demos/progress-bar/index.html +6030 -0
- package/docs-dev/demos/progress-circle/index.html +6197 -0
- package/docs-dev/demos/progress-donut/index.html +6107 -0
- package/docs-dev/demos/pull-quote/index.html +1492 -339
- package/docs-dev/demos/rail/index.html +5970 -0
- package/docs-dev/demos/rule/index.html +1509 -344
- package/docs-dev/demos/scroll-slider/index.html +72 -106
- package/docs-dev/demos/scrollpoints/index.html +1493 -340
- package/docs-dev/demos/skeleton/index.html +5918 -0
- package/docs-dev/demos/slider/index.html +12 -4
- package/docs-dev/demos/spoke-spinner/index.html +1492 -339
- package/docs-dev/demos/sticky-list/index.html +5883 -0
- package/docs-dev/demos/tabs/index.html +1565 -376
- package/docs-dev/demos/tag/index.html +1510 -345
- package/docs-dev/demos/theme-toggle/index.html +5939 -0
- package/docs-dev/demos/tile-grid-overlay/index.html +12 -4
- package/docs-dev/demos/tiles/index.html +1492 -339
- package/docs-dev/demos/tooltip/index.html +1492 -339
- package/docs-dev/demos/wysiwyg/index.html +5912 -0
- package/docs-dev/guide/building-stylesheet/index.html +1492 -339
- package/docs-dev/guide/developing-ulu-scss-module/index.html +1492 -339
- package/docs-dev/guide/index.html +1492 -339
- package/docs-dev/guide/updates-and-changes/index.html +5033 -0
- package/docs-dev/index.html +1492 -339
- package/docs-dev/javascript/events/index.html +1567 -376
- package/docs-dev/javascript/index.html +1492 -339
- package/docs-dev/javascript/settings/index.html +6065 -0
- package/docs-dev/javascript/ui-breakpoints/index.html +1506 -355
- package/docs-dev/javascript/ui-collapsible/index.html +1491 -340
- package/docs-dev/javascript/ui-details-group/index.html +5982 -0
- package/docs-dev/javascript/ui-dialog/index.html +1523 -357
- package/docs-dev/javascript/ui-flipcard/index.html +1552 -345
- package/docs-dev/javascript/ui-grid/index.html +1538 -413
- package/docs-dev/javascript/ui-modal-builder/index.html +1761 -470
- package/docs-dev/javascript/ui-overflow-scroller/index.html +1491 -340
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +1491 -340
- package/docs-dev/javascript/ui-page/index.html +1491 -340
- package/docs-dev/javascript/ui-popover/index.html +1501 -354
- package/docs-dev/javascript/ui-print/index.html +1489 -346
- package/docs-dev/javascript/ui-print-details/index.html +1491 -340
- package/docs-dev/javascript/ui-programmatic-modal/index.html +1491 -340
- package/docs-dev/javascript/ui-proxy-click/index.html +1591 -355
- package/docs-dev/javascript/ui-resizer/index.html +1850 -434
- package/docs-dev/javascript/ui-scroll-slider/index.html +1531 -348
- package/docs-dev/javascript/ui-scrollpoint/index.html +1501 -357
- package/docs-dev/javascript/ui-slider/index.html +1708 -366
- package/docs-dev/javascript/ui-tabs/index.html +1523 -409
- package/docs-dev/javascript/ui-theme-toggle/index.html +6070 -0
- package/docs-dev/javascript/ui-tooltip/index.html +1501 -354
- package/docs-dev/javascript/utils-class-logger/index.html +1492 -341
- package/docs-dev/javascript/utils-css/index.html +5884 -0
- package/docs-dev/javascript/utils-dom/index.html +1523 -452
- package/docs-dev/javascript/utils-file-save/index.html +1491 -340
- package/docs-dev/javascript/utils-floating-ui/index.html +1491 -340
- package/docs-dev/javascript/utils-id/index.html +1491 -340
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +1491 -340
- package/docs-dev/javascript/utils-system/index.html +6187 -0
- package/docs-dev/sass/base/color/index.html +1491 -340
- package/docs-dev/sass/base/elements/index.html +1492 -341
- package/docs-dev/sass/base/index/index.html +1492 -341
- package/docs-dev/sass/base/index.html +1492 -339
- package/docs-dev/sass/base/keyframes/index.html +1492 -341
- package/docs-dev/sass/base/layout/index.html +1492 -341
- package/docs-dev/sass/base/normalize/index.html +1491 -340
- package/docs-dev/sass/base/print/index.html +1492 -341
- package/docs-dev/sass/base/root/index.html +1495 -344
- package/docs-dev/sass/base/typography/index.html +1491 -340
- package/docs-dev/sass/components/accordion/index.html +1628 -436
- package/docs-dev/sass/components/adaptive-spacing/index.html +1491 -340
- package/docs-dev/sass/components/badge/index.html +1522 -353
- package/docs-dev/sass/components/badge-stack/index.html +6051 -0
- package/docs-dev/sass/components/basic-hero/index.html +6045 -0
- package/docs-dev/sass/components/breadcrumb/index.html +6092 -0
- package/docs-dev/sass/components/button/index.html +1491 -340
- package/docs-dev/sass/components/button-group/index.html +6043 -0
- package/docs-dev/sass/components/button-verbose/index.html +1613 -387
- package/docs-dev/sass/components/callout/index.html +1598 -388
- package/docs-dev/sass/components/captioned-figure/index.html +1491 -340
- package/docs-dev/sass/components/card/index.html +1601 -393
- package/docs-dev/sass/components/card-grid/index.html +1491 -340
- package/docs-dev/sass/components/counter-list/index.html +6127 -0
- package/docs-dev/sass/components/css-icon/index.html +1492 -341
- package/docs-dev/sass/components/data-grid/index.html +1511 -353
- package/docs-dev/sass/components/data-table/index.html +1510 -352
- package/docs-dev/sass/components/definition-list/index.html +6107 -0
- package/docs-dev/sass/components/fill-context/index.html +1491 -340
- package/docs-dev/sass/components/flipcard/index.html +1569 -387
- package/docs-dev/sass/components/flipcard-grid/index.html +1491 -340
- package/docs-dev/sass/components/form-theme/index.html +1718 -572
- package/docs-dev/sass/components/headline-label/index.html +6073 -0
- package/docs-dev/sass/components/hero/index.html +1499 -348
- package/docs-dev/sass/components/horizontal-rule/index.html +1491 -340
- package/docs-dev/sass/components/image-grid/index.html +1491 -340
- package/docs-dev/sass/components/index/index.html +1514 -349
- package/docs-dev/sass/components/index.html +1492 -339
- package/docs-dev/sass/components/links/index.html +1491 -340
- package/docs-dev/sass/components/list-inline/index.html +1491 -340
- package/docs-dev/sass/components/list-lines/index.html +1491 -340
- package/docs-dev/sass/components/list-ordered/index.html +1491 -340
- package/docs-dev/sass/components/list-unordered/index.html +1491 -340
- package/docs-dev/sass/components/menu-stack/index.html +1578 -378
- package/docs-dev/sass/components/modal/index.html +1576 -390
- package/docs-dev/sass/components/nav-strip/index.html +1499 -348
- package/docs-dev/sass/components/overlay-section/index.html +1499 -348
- package/docs-dev/sass/components/pager/index.html +1491 -340
- package/docs-dev/sass/components/panel/index.html +6273 -0
- package/docs-dev/sass/components/placeholder-block/index.html +1491 -340
- package/docs-dev/sass/components/popover/index.html +1561 -404
- package/docs-dev/sass/components/progress-bar/index.html +6252 -0
- package/docs-dev/sass/components/progress-circle/index.html +6144 -0
- package/docs-dev/sass/components/pull-quote/index.html +1491 -340
- package/docs-dev/sass/components/rail/index.html +6063 -0
- package/docs-dev/sass/components/ratio-box/index.html +1499 -348
- package/docs-dev/sass/components/rule/index.html +1492 -341
- package/docs-dev/sass/components/scroll-slider/index.html +1501 -362
- package/docs-dev/sass/components/skeleton/index.html +6101 -0
- package/docs-dev/sass/components/skip-link/index.html +1491 -340
- package/docs-dev/sass/components/slider/index.html +1581 -442
- package/docs-dev/sass/components/spoke-spinner/index.html +1493 -342
- package/docs-dev/sass/components/sticky-list/index.html +6263 -0
- package/docs-dev/sass/components/table-sticky/index.html +5707 -0
- package/docs-dev/sass/components/tabs/index.html +1519 -353
- package/docs-dev/sass/components/tag/index.html +1648 -403
- package/docs-dev/sass/components/tile-button/index.html +1491 -340
- package/docs-dev/sass/components/tile-grid/index.html +1491 -340
- package/docs-dev/sass/components/tile-grid-overlay/index.html +1491 -340
- package/docs-dev/sass/components/vignette/index.html +1499 -348
- package/docs-dev/sass/components/wysiwyg/index.html +1524 -355
- package/docs-dev/sass/core/breakpoint/index.html +1577 -374
- package/docs-dev/sass/core/button/index.html +1523 -370
- package/docs-dev/sass/core/color/index.html +1768 -485
- package/docs-dev/sass/core/cssvar/index.html +1491 -340
- package/docs-dev/sass/core/element/index.html +1837 -404
- package/docs-dev/sass/core/index.html +1491 -340
- package/docs-dev/sass/core/layout/index.html +1582 -412
- package/docs-dev/sass/core/path/index.html +1491 -340
- package/docs-dev/sass/core/selector/index.html +1491 -340
- package/docs-dev/sass/core/typography/index.html +1657 -448
- package/docs-dev/sass/core/units/index.html +1499 -342
- package/docs-dev/sass/core/utils/index.html +2781 -481
- package/docs-dev/sass/helpers/color/index.html +1491 -340
- package/docs-dev/sass/helpers/display/index.html +1492 -341
- package/docs-dev/sass/helpers/index/index.html +1491 -340
- package/docs-dev/sass/helpers/index.html +1492 -339
- package/docs-dev/sass/helpers/print/index.html +759 -298
- package/docs-dev/sass/helpers/typography/index.html +1491 -340
- package/docs-dev/sass/helpers/units/index.html +1491 -340
- package/docs-dev/sass/helpers/utilities/index.html +1495 -340
- package/docs-dev/sass/index.html +1492 -339
- package/js/events/index.js +17 -5
- package/js/index.js +1 -0
- package/js/settings.js +97 -0
- package/js/ui/breakpoints.js +19 -16
- package/js/ui/collapsible.js +8 -1
- package/js/ui/details-group.js +112 -0
- package/js/ui/dialog.js +103 -44
- package/js/ui/dialog.todo +2 -36
- package/js/ui/flipcard.js +37 -57
- package/js/ui/grid.js +15 -13
- package/js/ui/index.js +1 -0
- package/js/ui/modal-builder.js +127 -70
- package/js/ui/overflow-scroller.js +6 -4
- package/js/ui/page.js +2 -2
- package/js/ui/popover.js +38 -38
- package/js/ui/print.js +16 -25
- package/js/ui/programmatic-modal.js +9 -3
- package/js/ui/proxy-click.js +50 -36
- package/js/ui/resizer.js +408 -39
- package/js/ui/scroll-slider.js +24 -30
- package/js/ui/scrollpoint.js +29 -64
- package/js/ui/slider.js +108 -63
- package/js/ui/tabs.js +23 -36
- package/js/ui/theme-toggle.js +332 -94
- package/js/ui/tooltip.js +27 -32
- package/js/utils/class-logger.js +3 -3
- package/js/utils/css.js +13 -0
- package/js/utils/dom.js +23 -64
- package/js/utils/font-awesome.js +19 -0
- package/js/utils/index.js +2 -1
- package/js/utils/system.js +155 -0
- package/package.json +24 -9
- package/scss/README.md +9 -0
- package/scss/_breakpoint.scss +39 -5
- package/scss/_button.scss +7 -5
- package/scss/_color.scss +71 -40
- package/scss/_element.scss +124 -2
- package/scss/_layout.scss +7 -8
- package/scss/_typography.scss +15 -0
- package/scss/_units.scss +3 -2
- package/scss/_utils.scss +387 -16
- package/scss/base/_elements.scss +0 -1
- package/scss/base/_index.scss +1 -1
- package/scss/base/_keyframes.scss +15 -0
- package/scss/base/_layout.scss +1 -0
- package/scss/base/_print.scss +2 -0
- package/scss/base/_root.scss +2 -0
- package/scss/components/_accordion.scss +167 -110
- package/scss/components/_badge-stack.scss +84 -0
- package/scss/components/_badge.scss +30 -7
- package/scss/components/_basic-hero.scss +112 -0
- package/scss/components/_breadcrumb.scss +110 -0
- package/scss/components/_button-group.scss +90 -0
- package/scss/components/_button-verbose.scss +100 -18
- package/scss/components/_callout.scss +112 -53
- package/scss/components/_card-grid.scss +5 -2
- package/scss/components/_card.scss +216 -87
- package/scss/components/_counter-list.scss +151 -0
- package/scss/components/_css-icon.scss +27 -17
- package/scss/components/_data-grid.scss +55 -12
- package/scss/components/_data-table.scss +3 -0
- package/scss/components/_definition-list.scss +178 -0
- package/scss/components/_flipcard.scss +8 -3
- package/scss/components/_form-theme.scss +106 -95
- package/scss/components/_headline-label.scss +83 -0
- package/scss/components/_hero.scss +3 -10
- package/scss/components/_index.scss +79 -0
- package/scss/components/_menu-stack.scss +87 -23
- package/scss/components/_modal.scss +51 -23
- package/scss/components/_nav-strip.scss +2 -0
- package/scss/components/_overlay-section.scss +2 -5
- package/scss/components/_panel.scss +246 -0
- package/scss/components/_popover.scss +139 -38
- package/scss/components/_progress-bar.scss +260 -0
- package/scss/components/_progress-circle.scss +175 -0
- package/scss/components/_pull-quote.scss +1 -1
- package/scss/components/_rail.scss +127 -0
- package/scss/components/_ratio-box.scss +2 -5
- package/scss/components/_rule.scss +1 -0
- package/scss/components/_scroll-slider.scss +1 -5
- package/scss/components/_skeleton.scss +126 -0
- package/scss/components/_slider.scss +49 -72
- package/scss/components/_spoke-spinner.scss +2 -2
- package/scss/components/_sticky-list.scss +206 -0
- package/scss/components/_tabs.scss +22 -4
- package/scss/components/_tag.scss +49 -7
- package/scss/components/_vignette.scss +2 -5
- package/scss/components/_wysiwyg.scss +21 -13
- package/scss/helpers/_display.scss +15 -18
- package/scss/helpers/_print.scss +12 -7
- package/scss/helpers/_utilities.scss +62 -34
- package/types/events/index.d.ts +10 -1
- package/types/events/index.d.ts.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/settings.d.ts +70 -0
- package/types/settings.d.ts.map +1 -0
- package/types/ui/breakpoints.d.ts +14 -14
- package/types/ui/breakpoints.d.ts.map +1 -1
- package/types/ui/collapsible.d.ts.map +1 -1
- package/types/ui/details-group.d.ts +38 -0
- package/types/ui/details-group.d.ts.map +1 -0
- package/types/ui/dialog.d.ts +20 -14
- package/types/ui/dialog.d.ts.map +1 -1
- package/types/ui/flipcard.d.ts +16 -10
- package/types/ui/flipcard.d.ts.map +1 -1
- package/types/ui/grid.d.ts +4 -6
- package/types/ui/grid.d.ts.map +1 -1
- package/types/ui/index.d.ts +1 -0
- package/types/ui/modal-builder.d.ts +116 -11
- package/types/ui/modal-builder.d.ts.map +1 -1
- package/types/ui/overflow-scroller.d.ts +2 -2
- package/types/ui/overflow-scroller.d.ts.map +1 -1
- package/types/ui/popover.d.ts +6 -7
- package/types/ui/popover.d.ts.map +1 -1
- package/types/ui/print.d.ts +0 -4
- package/types/ui/print.d.ts.map +1 -1
- package/types/ui/programmatic-modal.d.ts.map +1 -1
- package/types/ui/proxy-click.d.ts +19 -3
- package/types/ui/proxy-click.d.ts.map +1 -1
- package/types/ui/resizer.d.ts +116 -16
- package/types/ui/resizer.d.ts.map +1 -1
- package/types/ui/scroll-slider.d.ts +5 -7
- package/types/ui/scroll-slider.d.ts.map +1 -1
- package/types/ui/scrollpoint.d.ts +3 -8
- package/types/ui/scrollpoint.d.ts.map +1 -1
- package/types/ui/slider.d.ts +33 -14
- package/types/ui/slider.d.ts.map +1 -1
- package/types/ui/tabs.d.ts +6 -8
- package/types/ui/tabs.d.ts.map +1 -1
- package/types/ui/theme-toggle.d.ts +51 -7
- package/types/ui/theme-toggle.d.ts.map +1 -1
- package/types/ui/tooltip.d.ts +3 -5
- package/types/ui/tooltip.d.ts.map +1 -1
- package/types/utils/css.d.ts +11 -0
- package/types/utils/css.d.ts.map +1 -0
- package/types/utils/dom.d.ts +12 -32
- package/types/utils/dom.d.ts.map +1 -1
- package/types/utils/font-awesome.d.ts +5 -0
- package/types/utils/font-awesome.d.ts.map +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/system.d.ts +113 -0
- package/types/utils/system.d.ts.map +1 -0
|
@@ -37,6 +37,9 @@ $-fallbacks: (
|
|
|
37
37
|
/// @prop {Color} border-color [transparent] Border color for the tag.
|
|
38
38
|
/// @prop {Dimension} border-width [1px] Border width of the tag.
|
|
39
39
|
/// @prop {String} color ["type-tertiary"] Color of the tag text.
|
|
40
|
+
/// @prop {String} counter-size [1.5em] Size when used as a counter (for numbers), will be this size by default and expand horizontally as needed (ie. circle/rounded rectangle or square/rectangle if without border radius)
|
|
41
|
+
/// @prop {String} counter-border-radius [20px] May need to be adjusted or can be set to 0 for square/rectangle
|
|
42
|
+
/// @prop {String} counter-padding-sides [0.26em] Counter left/right padding (this is the space/margin on the inside when the number can't fit in the circle/square
|
|
40
43
|
|
|
41
44
|
$config: (
|
|
42
45
|
"font-weight" : normal,
|
|
@@ -53,6 +56,9 @@ $config: (
|
|
|
53
56
|
"border-color" : transparent,
|
|
54
57
|
"border-width" : 1px,
|
|
55
58
|
"color": "type-tertiary",
|
|
59
|
+
"counter-size" : 1.75em,
|
|
60
|
+
"counter-border-radius" : 20px,
|
|
61
|
+
"counter-padding-sides" : 0.26em
|
|
56
62
|
) !default;
|
|
57
63
|
|
|
58
64
|
/// Style Map (alternate tag styles)
|
|
@@ -72,6 +78,13 @@ $styles: (
|
|
|
72
78
|
)
|
|
73
79
|
) !default;
|
|
74
80
|
|
|
81
|
+
/// Map of alternate sizes
|
|
82
|
+
$sizes: (
|
|
83
|
+
"small" : (
|
|
84
|
+
"padding" : (0.25em 0.5em),
|
|
85
|
+
"type-size" : "small-x"
|
|
86
|
+
)
|
|
87
|
+
) !default;
|
|
75
88
|
|
|
76
89
|
/// Change modules $config
|
|
77
90
|
/// @param {Map} $changes Map of changes
|
|
@@ -90,6 +103,14 @@ $styles: (
|
|
|
90
103
|
$styles: utils.map-merge($styles, $changes, $merge-mode) !global;
|
|
91
104
|
}
|
|
92
105
|
|
|
106
|
+
/// Set tag sizes
|
|
107
|
+
/// @param {Map} $changes Map of changes
|
|
108
|
+
/// @param {String} $merge-mode Merge mode see utils.map-merge() [null|"deep"|"overwrite"]
|
|
109
|
+
|
|
110
|
+
@mixin set-sizes($changes, $merge-mode: null) {
|
|
111
|
+
$sizes: utils.map-merge($sizes, $changes, $merge-mode) !global;
|
|
112
|
+
}
|
|
113
|
+
|
|
93
114
|
/// Get a config option
|
|
94
115
|
/// @param {Map} $name Name of property
|
|
95
116
|
/// @example scss
|
|
@@ -121,10 +142,10 @@ $styles: (
|
|
|
121
142
|
background-color: color.get(get("background-color"));
|
|
122
143
|
color: color.get(get("color"));
|
|
123
144
|
font-family: get("font-family");
|
|
145
|
+
line-height: get("line-height");
|
|
124
146
|
@if (typography.has-size(get("type-size"))) {
|
|
125
147
|
@include typography.size(get("type-size"), $only-font-size: true);
|
|
126
148
|
}
|
|
127
|
-
line-height: get("line-height");
|
|
128
149
|
&:not(:last-child) {
|
|
129
150
|
margin-right: get("margin-between");
|
|
130
151
|
}
|
|
@@ -136,8 +157,32 @@ $styles: (
|
|
|
136
157
|
}
|
|
137
158
|
}
|
|
138
159
|
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
@each $name, $size in $sizes {
|
|
163
|
+
$type-size: map.get($size, "type-size");
|
|
164
|
+
|
|
165
|
+
#{ $prefix }--#{ $name } {
|
|
166
|
+
padding: map.get($size, "padding");
|
|
167
|
+
line-height: map.get($size, "line-height");
|
|
168
|
+
@if (typography.has-size($type-size)) {
|
|
169
|
+
@include typography.size($type-size, $only-font-size: true);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Order Reason: Needs to inherit from sizes but not styles
|
|
175
|
+
#{ $prefix }--counter {
|
|
176
|
+
display: inline-flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
min-width: get("counter-size");
|
|
180
|
+
height: get("counter-size");
|
|
181
|
+
border-radius: get("counter-border-radius");
|
|
182
|
+
padding: 0 get("counter-padding-sides");
|
|
183
|
+
}
|
|
184
|
+
|
|
139
185
|
@each $name, $style in $styles {
|
|
140
|
-
$type-size: map.get($style, "type-size");
|
|
141
186
|
#{ $prefix }--#{ $name } {
|
|
142
187
|
background-color: color.get(map.get($style, "background-color"));
|
|
143
188
|
color: color.get(map.get($style, "color"));
|
|
@@ -146,11 +191,8 @@ $styles: (
|
|
|
146
191
|
border-color: color.get(map.get($style, "border-color"));
|
|
147
192
|
border-width: map.get($style, "border-width");
|
|
148
193
|
box-shadow: map.get($style, "box-shadow");
|
|
149
|
-
padding: map.get($style, "padding");
|
|
150
|
-
@if (typography.has-size($type-size)) {
|
|
151
|
-
@include typography.size($type-size, $only-font-size: true);
|
|
152
|
-
}
|
|
153
|
-
line-height: map.get($style, "line-height");
|
|
154
194
|
}
|
|
155
195
|
}
|
|
196
|
+
|
|
197
|
+
|
|
156
198
|
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@use "sass:map";
|
|
9
9
|
@use "../utils";
|
|
10
10
|
@use "../selector";
|
|
11
|
+
@use "../layout";
|
|
11
12
|
|
|
12
13
|
/// Module Settings
|
|
13
14
|
/// @type Map
|
|
@@ -49,11 +50,7 @@ $config: (
|
|
|
49
50
|
&::after {
|
|
50
51
|
content: "";
|
|
51
52
|
display: block;
|
|
52
|
-
|
|
53
|
-
top: 0;
|
|
54
|
-
bottom: 0;
|
|
55
|
-
left: 0;
|
|
56
|
-
right: 0;
|
|
53
|
+
@include layout.absolute-fill();
|
|
57
54
|
background: linear-gradient(0deg,color.change(get("background-color"), $alpha: 0.8),color.change(get("background-color"), $alpha: 0) 45%);
|
|
58
55
|
pointer-events: none;
|
|
59
56
|
}
|
|
@@ -13,13 +13,17 @@
|
|
|
13
13
|
|
|
14
14
|
/// Module Settings
|
|
15
15
|
/// @type Map
|
|
16
|
-
/// @prop {
|
|
17
|
-
/// @prop {List}
|
|
18
|
-
/// @prop {
|
|
16
|
+
/// @prop {String} exclude-selector [".wysiwyg__exclude"] Applied to all selectors
|
|
17
|
+
/// @prop {List} img-excluded-selectors [()] Extra selectors to prevent <img> styling
|
|
18
|
+
/// @prop {List} ul-excluded-selectors [(".list-lines",)] Extra selectors to prevent <ul> styling
|
|
19
|
+
/// @prop {List} link-excluded-selectors [("[class]",)] Extra selectors to prevent <a> styling
|
|
20
|
+
/// @prop {Map} headline-sizes [Map] Headlines from typography sizes (ElementName : TypographySizeName, ...)
|
|
19
21
|
|
|
20
22
|
$config: (
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
+
"exclude-selector" : ".wysiwyg__exclude",
|
|
24
|
+
"img-excluded-selectors" : (),
|
|
25
|
+
"ul-excluded-selectors" : (".list-lines",),
|
|
26
|
+
"link-excluded-selectors" : ("[class]",),
|
|
23
27
|
"headline-sizes" : (
|
|
24
28
|
"h2" : "h2",
|
|
25
29
|
"h3" : "h3",
|
|
@@ -66,24 +70,28 @@ $config: (
|
|
|
66
70
|
|
|
67
71
|
// Internal mixin
|
|
68
72
|
@mixin _styles() {
|
|
69
|
-
$
|
|
70
|
-
$
|
|
73
|
+
$exclude-selector: get("exclude-selector");
|
|
74
|
+
$ul-excludes: list.join(get("ul-excluded-selectors"), ($exclude-selector), $separator: comma);
|
|
75
|
+
$img-excludes: list.join(get("img-excluded-selectors"), ($exclude-selector), $separator: comma);
|
|
76
|
+
$link-excludes: list.join(get("link-excluded-selectors"), ($exclude-selector), $separator: comma);
|
|
71
77
|
|
|
72
|
-
a:not(
|
|
78
|
+
a:not(#{ $link-excludes }) {
|
|
73
79
|
@include element.link($visited: true, $active: true);
|
|
74
80
|
}
|
|
75
81
|
ul:not(#{ $ul-excludes }) {
|
|
76
82
|
@include element.styles-unordered-list();
|
|
83
|
+
margin-bottom: element.get("margin");
|
|
77
84
|
}
|
|
78
|
-
ol {
|
|
85
|
+
ol:not(#{ $exclude-selector }) {
|
|
79
86
|
@include element.styles-ordered-list(inherit);
|
|
80
|
-
}
|
|
81
|
-
ul,
|
|
82
|
-
ol {
|
|
83
87
|
margin-bottom: element.get("margin");
|
|
84
88
|
}
|
|
89
|
+
// ul,
|
|
90
|
+
// ol {
|
|
91
|
+
// margin-bottom: element.get("margin");
|
|
92
|
+
// }
|
|
85
93
|
@each $element, $size in get("headline-sizes") {
|
|
86
|
-
#{ $element } {
|
|
94
|
+
#{ $element }:not(#{ $exclude-selector }) {
|
|
87
95
|
@include typography.size($size);
|
|
88
96
|
}
|
|
89
97
|
}
|
|
@@ -20,53 +20,50 @@
|
|
|
20
20
|
|
|
21
21
|
@include utils.file-header('helpers', 'display');
|
|
22
22
|
|
|
23
|
-
$
|
|
23
|
+
$prefix-hidden-visually: selector.class("hidden-visually");
|
|
24
|
+
$prefix-display: selector.class("display");
|
|
25
|
+
$prefix-hidden: selector.class("hidden");
|
|
24
26
|
|
|
25
|
-
#{ $
|
|
27
|
+
#{ $prefix-hidden-visually } {
|
|
26
28
|
@include element.hidden-visually();
|
|
27
29
|
}
|
|
28
|
-
#{ $
|
|
30
|
+
#{ $prefix-hidden-visually }-focusable {
|
|
29
31
|
&:not(:active):not(:focus) {
|
|
30
32
|
@include element.hidden-visually();
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
|
-
|
|
34
|
-
.clearfix,
|
|
35
|
-
.cf {
|
|
36
|
-
@include layout.clearfix();
|
|
37
|
-
}
|
|
38
|
-
.display-block {
|
|
35
|
+
#{ $prefix-display }-block {
|
|
39
36
|
display: block;
|
|
40
37
|
}
|
|
41
|
-
|
|
38
|
+
#{ $prefix-display }-flex {
|
|
42
39
|
display: flex;
|
|
43
40
|
}
|
|
44
|
-
|
|
41
|
+
#{ $prefix-display }-inline-flex {
|
|
45
42
|
display: inline-flex;
|
|
46
43
|
}
|
|
47
|
-
|
|
44
|
+
#{ $prefix-display }-inline {
|
|
48
45
|
display: inline;
|
|
49
46
|
}
|
|
50
|
-
|
|
47
|
+
#{ $prefix-display }-inline-all * {
|
|
51
48
|
display: inline;
|
|
52
49
|
}
|
|
53
|
-
|
|
50
|
+
#{ $prefix-display }-inline-block {
|
|
54
51
|
display: inline-block;
|
|
55
52
|
}
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
#{ $prefix-hidden },
|
|
54
|
+
#{ $prefix-display }-none {
|
|
58
55
|
display: none !important;
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
// Display none per breakpoint
|
|
62
59
|
@each $name in map.keys(breakpoint.$sizes) {
|
|
63
60
|
@include breakpoint.min($name) {
|
|
64
|
-
|
|
61
|
+
#{ $prefix-hidden }-min-#{ $name } {
|
|
65
62
|
display: none !important;
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
65
|
@include breakpoint.max($name) {
|
|
69
|
-
|
|
66
|
+
#{ $prefix-hidden }-max-#{ $name } {
|
|
70
67
|
display: none !important;
|
|
71
68
|
}
|
|
72
69
|
}
|
package/scss/helpers/_print.scss
CHANGED
|
@@ -8,18 +8,23 @@
|
|
|
8
8
|
/// @example scss
|
|
9
9
|
/// @include ulu.helper-print-styles();
|
|
10
10
|
|
|
11
|
+
@use "../selector";
|
|
12
|
+
|
|
11
13
|
@mixin styles {
|
|
14
|
+
$prefix-print: selector.class("print");
|
|
15
|
+
$prefix-no-print: selector.class("no-print");
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
print-color-adjust: exact;
|
|
15
|
-
-webkit-print-color-adjust: exact;
|
|
16
|
-
}
|
|
17
|
-
.no-print {
|
|
17
|
+
#{ $prefix-no-print } {
|
|
18
18
|
@media print {
|
|
19
19
|
display: none !important;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
#{ $prefix-print }-exact {
|
|
24
|
+
print-color-adjust: exact;
|
|
25
|
+
-webkit-print-color-adjust: exact;
|
|
26
|
+
}
|
|
27
|
+
#{ $prefix-print }-only {
|
|
23
28
|
@media screen {
|
|
24
29
|
display: none !important;
|
|
25
30
|
}
|
|
@@ -27,7 +32,7 @@
|
|
|
27
32
|
// Utility for making dark backgrounds print "ok"
|
|
28
33
|
// - Grayscale added because colors are flipped
|
|
29
34
|
// - Rotating colors doesn't really work
|
|
30
|
-
|
|
35
|
+
#{ $prefix-print }-invert {
|
|
31
36
|
@media print {
|
|
32
37
|
filter: invert(1) saturate(0);
|
|
33
38
|
}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
@use "../utils";
|
|
7
7
|
@use "../layout";
|
|
8
|
+
@use "../selector";
|
|
9
|
+
@use "../typography";
|
|
8
10
|
|
|
9
11
|
/// Print utilities helper styles
|
|
10
12
|
/// - Includes classes like (.crop-margins, .no-scroll-y, .image-full-width, etc)
|
|
@@ -13,102 +15,128 @@
|
|
|
13
15
|
|
|
14
16
|
@mixin styles {
|
|
15
17
|
|
|
18
|
+
$prefix-no-scroll: selector.class("no-scroll");
|
|
19
|
+
$prefix-image: selector.class("image");
|
|
20
|
+
$prefix-margin: selector.class("margin");
|
|
21
|
+
$prefix-no-margin: selector.class("no-margin");
|
|
22
|
+
$prefix-crop-margins: selector.class("crop-margins");
|
|
23
|
+
$prefix-no-padding: selector.class("no-padding");
|
|
24
|
+
$prefix-align-self: selector.class("align-self");
|
|
25
|
+
|
|
26
|
+
|
|
16
27
|
@include utils.file-header('helpers', 'utilities');
|
|
17
28
|
|
|
18
29
|
// Consider removing
|
|
19
|
-
|
|
30
|
+
#{ $prefix-no-scroll }-y {
|
|
20
31
|
overflow-y: hidden;
|
|
21
32
|
}
|
|
22
|
-
|
|
33
|
+
#{ $prefix-no-scroll }-x {
|
|
23
34
|
overflow-x: hidden;
|
|
24
35
|
}
|
|
25
|
-
.full-height {
|
|
36
|
+
#{ selector.class("full-height") } {
|
|
26
37
|
height: 100%;
|
|
27
38
|
}
|
|
28
|
-
.full-width {
|
|
39
|
+
#{ selector.class("full-width") } {
|
|
29
40
|
width: 100%;
|
|
30
41
|
}
|
|
31
|
-
.
|
|
42
|
+
#{ selector.class("no-min-width") } {
|
|
43
|
+
min-width: 0;
|
|
44
|
+
}
|
|
45
|
+
#{ selector.class("flex-basis-full") } {
|
|
32
46
|
flex-basis: 100%;
|
|
33
47
|
}
|
|
34
|
-
.
|
|
48
|
+
#{ selector.class("flex-grow") } {
|
|
49
|
+
flex-grow: 1;
|
|
50
|
+
}
|
|
51
|
+
#{ selector.class("flex-wrap") } {
|
|
52
|
+
flex-wrap: wrap;
|
|
53
|
+
}
|
|
54
|
+
#{ selector.class("flex-shrink") } {
|
|
55
|
+
flex-shrink: 1;
|
|
56
|
+
}
|
|
57
|
+
#{ selector.class("full-min-height") } {
|
|
35
58
|
min-height: 100%;
|
|
36
59
|
}
|
|
37
|
-
|
|
60
|
+
#{ $prefix-image }-fill {
|
|
38
61
|
width: 100%;
|
|
39
62
|
height: 100%;
|
|
40
63
|
object-fit: cover;
|
|
41
64
|
}
|
|
42
|
-
|
|
43
|
-
|
|
65
|
+
#{ $prefix-image }-full-width img,
|
|
66
|
+
#{ $prefix-image }-full-width {
|
|
44
67
|
width: 100%;
|
|
45
68
|
height: auto;
|
|
46
69
|
}
|
|
47
|
-
|
|
48
|
-
.center {
|
|
70
|
+
#{ $prefix-margin }-auto,
|
|
71
|
+
#{ selector.class("center") } {
|
|
49
72
|
margin-left: auto;
|
|
50
73
|
margin-right: auto;
|
|
51
74
|
}
|
|
52
|
-
|
|
75
|
+
#{ $prefix-margin }-left-auto {
|
|
53
76
|
margin-left: auto;
|
|
54
77
|
}
|
|
55
|
-
|
|
78
|
+
#{ $prefix-margin }-right-auto {
|
|
56
79
|
margin-right: auto;
|
|
57
80
|
}
|
|
58
|
-
|
|
81
|
+
#{ $prefix-no-margin } {
|
|
59
82
|
margin: 0;
|
|
60
83
|
}
|
|
61
|
-
|
|
84
|
+
#{ $prefix-no-margin }-top {
|
|
62
85
|
margin-top: 0;
|
|
63
86
|
}
|
|
64
|
-
|
|
87
|
+
#{ $prefix-no-margin }-bottom {
|
|
65
88
|
margin-bottom: 0;
|
|
66
89
|
}
|
|
67
|
-
|
|
90
|
+
#{ $prefix-no-margin }-left {
|
|
68
91
|
margin-left: 0;
|
|
69
92
|
}
|
|
70
|
-
|
|
93
|
+
#{ $prefix-no-margin }-right {
|
|
71
94
|
margin-right: 0;
|
|
72
95
|
}
|
|
73
|
-
|
|
74
|
-
&:not(
|
|
96
|
+
#{ $prefix-crop-margins } {
|
|
97
|
+
&:not( #{ $prefix-crop-margins }--last) >:first-child {
|
|
75
98
|
margin-top: 0;
|
|
76
99
|
}
|
|
77
|
-
&:not(
|
|
100
|
+
&:not( #{ $prefix-crop-margins }--first) >:last-child {
|
|
78
101
|
margin-bottom: 0;
|
|
79
102
|
}
|
|
80
103
|
}
|
|
81
|
-
|
|
104
|
+
#{ $prefix-no-padding } {
|
|
82
105
|
padding: 0;
|
|
83
106
|
}
|
|
84
|
-
|
|
107
|
+
#{ $prefix-no-padding }-top {
|
|
85
108
|
padding-top: 0;
|
|
86
109
|
}
|
|
87
|
-
|
|
110
|
+
#{ $prefix-no-padding }-bottom {
|
|
88
111
|
padding-bottom: 0;
|
|
89
112
|
}
|
|
90
|
-
|
|
113
|
+
#{ $prefix-no-padding }-left {
|
|
91
114
|
padding-left: 0;
|
|
92
115
|
}
|
|
93
|
-
|
|
116
|
+
#{ $prefix-no-padding }-right {
|
|
94
117
|
padding-right: 0;
|
|
95
118
|
}
|
|
96
|
-
|
|
119
|
+
#{ $prefix-align-self }-start {
|
|
97
120
|
align-self: start;
|
|
98
121
|
}
|
|
99
|
-
|
|
122
|
+
#{ $prefix-align-self }-center {
|
|
100
123
|
align-self: center;
|
|
101
124
|
}
|
|
102
|
-
|
|
125
|
+
#{ $prefix-align-self }-end {
|
|
103
126
|
align-self: end;
|
|
104
127
|
}
|
|
105
|
-
|
|
128
|
+
#{ $prefix-align-self }-baseline {
|
|
106
129
|
align-self: baseline;
|
|
107
130
|
}
|
|
108
|
-
.overflow-hidden {
|
|
131
|
+
#{ selector.class("overflow-hidden") } {
|
|
109
132
|
overflow: hidden;
|
|
110
133
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
134
|
+
#{ selector.class("flow-inline") } {
|
|
135
|
+
&:not(:first-child) {
|
|
136
|
+
margin-left: typography.get("space-size");
|
|
137
|
+
}
|
|
138
|
+
&:not(:last-child) {
|
|
139
|
+
margin-right: typography.get("space-size");
|
|
140
|
+
}
|
|
141
|
+
}
|
|
114
142
|
}
|
package/types/events/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Triggers one of our custom events
|
|
2
|
+
* Triggers one of our custom events (page/document level events)
|
|
3
|
+
* - UI components may dispatch their own events, this is just used for system wide events
|
|
3
4
|
* @param {String} type Type of event to dispatch
|
|
4
5
|
* @param {Node} context Element to trigger the event from
|
|
5
6
|
* @example
|
|
@@ -10,8 +11,16 @@
|
|
|
10
11
|
export function dispatch(type: string, context: Node): void;
|
|
11
12
|
/**
|
|
12
13
|
* Namespaced event
|
|
14
|
+
* - Should be used for all ulu script/component events
|
|
13
15
|
* @param {String} type Type of event to get the actual event name for
|
|
14
16
|
* @returns {String}
|
|
15
17
|
*/
|
|
16
18
|
export function getName(type: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Create ulu namespaced custom event
|
|
21
|
+
* @param {String} type Event base name (not prefixed)
|
|
22
|
+
* @param {any} data Custom data to pass with the event (will be available as `event.detail`)
|
|
23
|
+
* @param {Object} options CustomEvent options default `{ bubbles: true }`. If `detail` is also provided, it will be merged with this options object and will override the 'data' argument for this function
|
|
24
|
+
*/
|
|
25
|
+
export function createEvent(type: string, data?: any, options?: any): CustomEvent<any>;
|
|
17
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../js/events/index.js"],"names":[],"mappings":"AA6CA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../js/events/index.js"],"names":[],"mappings":"AA6CA;;;;;;;;;GASG;AACH,gDANW,IAAI,QAYd;AAED;;;;;GAKG;AACH,8CAEC;AAED;;;;;GAKG;AACH,iDAHW,GAAG,mCAKb"}
|
package/types/index.d.ts
CHANGED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves a copy of the default settings.
|
|
3
|
+
* @returns {object} A copy of the default settings object.
|
|
4
|
+
*/
|
|
5
|
+
export function getDefaultSettings(): object;
|
|
6
|
+
/**
|
|
7
|
+
* Updates multiple configuration settings.
|
|
8
|
+
* @param {object} changes An object containing the settings to update.
|
|
9
|
+
*/
|
|
10
|
+
export function updateSettings(changes: object): void;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a copy of the current configuration settings.
|
|
13
|
+
* @returns {object} A copy of the current settings object.
|
|
14
|
+
*/
|
|
15
|
+
export function getSettings(): object;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a specific configuration setting by key.
|
|
18
|
+
* @param {string} key The key of the setting to retrieve.
|
|
19
|
+
* @returns {*} The value of the setting, or undefined if not found.
|
|
20
|
+
*/
|
|
21
|
+
export function getSetting(key: string): any;
|
|
22
|
+
/**
|
|
23
|
+
* Updates a specific configuration setting.
|
|
24
|
+
* @param {string} key The key of the setting to update.
|
|
25
|
+
* @param {*} value The new value for the setting.
|
|
26
|
+
*/
|
|
27
|
+
export function updateSetting(key: string, value: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a wrapped string representation of a configuration setting.
|
|
30
|
+
* This function returns an object with a `toString()` method that, when called,
|
|
31
|
+
* retrieves the current value of the specified setting. This allows the setting
|
|
32
|
+
* to be used as a string literal, dynamically retrieving its value.
|
|
33
|
+
*
|
|
34
|
+
* @param {String} key The key of the setting to wrap.
|
|
35
|
+
* @param {Function} transform Optional function to transform the setting's
|
|
36
|
+
* value when its string representation is requested.
|
|
37
|
+
* @returns {Object} An object with a `toString()` method that returns the
|
|
38
|
+
* (optionally transformed) setting value as a string.
|
|
39
|
+
*/
|
|
40
|
+
export function wrapSettingString(key: string, transform: Function): any;
|
|
41
|
+
/**
|
|
42
|
+
* Default settings
|
|
43
|
+
*/
|
|
44
|
+
export type Defaults = {
|
|
45
|
+
/**
|
|
46
|
+
* - The CSS class string for the close icon
|
|
47
|
+
*/
|
|
48
|
+
iconClassClose: string;
|
|
49
|
+
/**
|
|
50
|
+
* - The CSS class string for the drag X icon
|
|
51
|
+
*/
|
|
52
|
+
iconClassDragX: string;
|
|
53
|
+
/**
|
|
54
|
+
* - The CSS class string for the dragging in both directions
|
|
55
|
+
*/
|
|
56
|
+
iconClassDragBoth: string;
|
|
57
|
+
/**
|
|
58
|
+
* - The CSS class string for the previous icon
|
|
59
|
+
*/
|
|
60
|
+
iconClassPrevious: string;
|
|
61
|
+
/**
|
|
62
|
+
* - The CSS class string for the next icon
|
|
63
|
+
*/
|
|
64
|
+
iconClassNext: string;
|
|
65
|
+
/**
|
|
66
|
+
* - The prefix to use for CSS custom properties
|
|
67
|
+
*/
|
|
68
|
+
cssvarPrefix: string;
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../js/settings.js"],"names":[],"mappings":"AA+BA;;;GAGG;AACH,sCAFa,MAAM,CAIlB;AAED;;;GAGG;AACH,wCAFW,MAAM,QAIhB;AAED;;;GAGG;AACH,+BAFa,MAAM,CAIlB;AAED;;;;GAIG;AACH,gCAHW,MAAM,OAShB;AAED;;;;GAIG;AACH,mCAHW,MAAM,oBAKhB;AAED;;;;;;;;;;;GAWG;AACH,yEAOC;;;;;;;;oBAxFa,MAAM;;;;oBACN,MAAM;;;;uBACN,MAAM;;;;uBACN,MAAM;;;;mBACN,MAAM;;;;kBACN,MAAM"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @class
|
|
3
3
|
* Class that provides method for retrieving and acting on breakpoints passed
|
|
4
|
-
* from CSS (using element
|
|
4
|
+
* from CSS (using element pseudo content prop)
|
|
5
5
|
*/
|
|
6
6
|
export class BreakpointManager {
|
|
7
7
|
static instances: any[];
|
|
8
8
|
static defaults: {
|
|
9
9
|
element: HTMLElement;
|
|
10
|
-
|
|
11
|
-
customProperty:
|
|
12
|
-
|
|
10
|
+
valueFromPseudo: boolean;
|
|
11
|
+
customProperty: any;
|
|
12
|
+
pseudoSelector: string;
|
|
13
13
|
order: string[];
|
|
14
14
|
debug: boolean;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* @param {Object} config
|
|
17
|
+
* @param {Object} config Configuration object
|
|
18
18
|
* @param {Array} config.order Array of strings that correspond to the breakpoints setup in the styles, Breakpoints from smallest to largest, defaults to [small, medium, large]
|
|
19
19
|
* @param {Array} config.customProperty Property to grab breakpoint from (default is --breakpoint)
|
|
20
|
-
* @param {Array} config.
|
|
21
|
-
* @param {Node} config.element The element to retrieve active breakpoint from stylesheet. (default is html) For using the old
|
|
22
|
-
* @param {String} config.
|
|
20
|
+
* @param {Array} config.valueFromPseudo Use the legacy method of grabbing breakpoint from pseudo element, default uses custom property
|
|
21
|
+
* @param {Node} config.element The element to retrieve active breakpoint from stylesheet. (default is html) For using the old pseudo method, adjust this to document.body
|
|
22
|
+
* @param {String} config.pseudoSelector Change pseudo selector used to get the breakpoint from the pseudo's content property
|
|
23
23
|
*/
|
|
24
24
|
constructor(config: {
|
|
25
25
|
order: any[];
|
|
26
26
|
customProperty: any[];
|
|
27
|
-
|
|
27
|
+
valueFromPseudo: any[];
|
|
28
28
|
element: Node;
|
|
29
|
-
|
|
29
|
+
pseudoSelector: string;
|
|
30
30
|
});
|
|
31
31
|
active: any;
|
|
32
32
|
previous: any;
|
|
@@ -36,9 +36,9 @@ export class BreakpointManager {
|
|
|
36
36
|
breakpoints: {};
|
|
37
37
|
onChangeCallbacks: any[];
|
|
38
38
|
/**
|
|
39
|
-
* Add a callback for
|
|
39
|
+
* Add a callback for every time a breakpoint changes
|
|
40
40
|
* - Not recommended, possibly use to watch for changes, etc
|
|
41
|
-
* - For more control use
|
|
41
|
+
* - For more control use instance.at(name) with breakpoint methods
|
|
42
42
|
* @param {Function} callback Function to call, passed one argument current instance which can be used to get information about breakpoints
|
|
43
43
|
*/
|
|
44
44
|
onChange(callback: Function): void;
|
|
@@ -48,9 +48,9 @@ export class BreakpointManager {
|
|
|
48
48
|
*/
|
|
49
49
|
removeOnChange(callback: Function): void;
|
|
50
50
|
/**
|
|
51
|
-
* Get breakpoint from a
|
|
51
|
+
* Get breakpoint from a pseudo element
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
getBreakpointInPseudo(): string;
|
|
54
54
|
/**
|
|
55
55
|
* Get breakpoint from a custom property
|
|
56
56
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../js/ui/breakpoints.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../js/ui/breakpoints.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH;IACE,wBAAsB;IACtB;;;;;;;MAQC;IACD;;;;;;;OAOG;IACH;QANyB,KAAK;QACL,cAAc;QACd,eAAe;QAChB,OAAO,EAApB,IAAI;QACW,cAAc;OAevC;IAXC,YAAkB;IAClB,cAAoB;IACpB,iBAAuB;IACvB,wBAA2B;IAC3B,mBAAyB;IACzB,gBAAqB;IACrB,yBAA2B;IAM7B;;;;;OAKG;IACH,mCAEC;IACD;;;OAGG;IACH,yCAEC;IACD;;OAEG;IACH,gCAEC;IACD;;OAEG;IACH,kCAEC;IACD;;OAEG;IACH,wBAMC;IACD;;OAEG;IACH,eA4CC;IACD;;;;OAIG;IACH,kBAFY,UAAU,CAQrB;CACF;AAsED;;;GAGG;AACH;IACE,qCAQC;IAPC;;;;MAIC;IACD,cAAuB;IACvB,UAAgB;IAElB;;;;;OAKG;IACH,wDAEC;IACD;;;;;OAKG;IACH,6BAEC;IACD;;;;;OAKG;IACH,6BAEC;IACD;;;OAGG;IACH,8BAEC;IACD;;;;OAIG;IACH,mDAGC;IAED,yBAGC;CACF;AAnID;;;GAGG;AACH;IACE,6CAMC;IALC,eAA0B;IAC1B,gBAAmB;IACnB,UAAY;IACZ,WAAa;IACb,gBAA4B;IAE9B;;OAEG;IACH,sBAMC;IACD;;OAEG;IACH,4BAIC;IACD;;OAEG;IACH,+BAEC;IACD;;;;;OAKG;IACH,aAJW,cAAe,QAiBzB;IACD;;OAEG;IACH,2BAQC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../js/ui/collapsible.js"],"names":[],"mappings":"AAQA;;GAEG;AACH;IACE;;;;QAME;;WAEG;;QAGH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;MAKH;IACF;;;;;;OAMG;IACH;QAL0B,OAAO,EAAtB,IAAI;QACW,OAAO,EAAtB,IAAI;oBAsBd;IAXC;iBAZS,IAAI;iBACJ,IAAI;MAWW;IACxB,aAAsB;IACtB,gBAAmB;IACnB,aAAkB;IASpB,
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../js/ui/collapsible.js"],"names":[],"mappings":"AAQA;;GAEG;AACH;IACE;;;;QAME;;WAEG;;QAGH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;MAKH;IACF;;;;;;OAMG;IACH;QAL0B,OAAO,EAAtB,IAAI;QACW,OAAO,EAAtB,IAAI;oBAsBd;IAXC;iBAZS,IAAI;iBACJ,IAAI;MAWW;IACxB,aAAsB;IACtB,gBAAmB;IACnB,aAAkB;IASpB,uBAoBC;IAjBC,mCAEC;IACD,sCAWC;IAIH,uBAIC;IACD,0BAEC;IACD,gBAGC;IACD,+BAIC;IACD,cAOC;IACD,sDAEC;IACD,wCAqBC;IACD;;OAEG;IACH,+BAoBC;IACD;;OAEG;IACH,iCAQC;IACD,uBAEC;IACD,wBAEC;IACD,yBAEC;CAqBF"}
|