@medyll/idae-slotui-svelte 0.122.0 → 0.123.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.
- package/README.md +47 -47
- package/dist/base/alert/Alert.demo.svelte +62 -62
- package/dist/base/alert/Alert.svelte +121 -121
- package/dist/base/alert/alert.scss +93 -93
- package/dist/base/avatar/Avatar.demo.svelte +41 -41
- package/dist/base/avatar/Avatar.preview.svelte +6 -6
- package/dist/base/avatar/Avatar.svelte +65 -65
- package/dist/base/avatar/avatar.scss +17 -17
- package/dist/base/backdrop/Backdrop.demo.svelte +49 -49
- package/dist/base/backdrop/Backdrop.svelte +78 -78
- package/dist/base/backdrop/backdrop.scss +34 -34
- package/dist/base/badge/Badge.svelte +31 -31
- package/dist/base/badge/badge.scss +19 -19
- package/dist/base/box/Box.demo.svelte +54 -54
- package/dist/base/box/Box.svelte +72 -72
- package/dist/base/box/box.scss +33 -33
- package/dist/base/breadCrumb/BreadCrumb.svelte +23 -23
- package/dist/base/breadCrumb/breadcrumb.scss +11 -11
- package/dist/base/cartouche/Cartouche.demo.svelte +108 -108
- package/dist/base/cartouche/Cartouche.svelte +114 -114
- package/dist/base/cartouche/cartouche.scss +114 -114
- package/dist/base/chipper/Chipper.demo.svelte +45 -45
- package/dist/base/chipper/Chipper.svelte +36 -36
- package/dist/base/chipper/chipper.scss +65 -65
- package/dist/base/columner/Column.svelte +62 -62
- package/dist/base/columner/Columner.demo.svelte +15 -15
- package/dist/base/columner/Columner.svelte +21 -21
- package/dist/base/contentSwitcher/ContentSwitcher.demo.svelte +45 -45
- package/dist/base/contentSwitcher/ContentSwitcher.svelte +63 -63
- package/dist/base/contentSwitcher/content-switcher.scss +22 -22
- package/dist/base/debug/Debug.svelte +21 -21
- package/dist/base/demoer/DemoPage.svelte +40 -40
- package/dist/base/demoer/Demoer.svelte +170 -170
- package/dist/base/demoer/DemoerCode.svelte +45 -45
- package/dist/base/demoer/DemoerComponent.svelte +50 -50
- package/dist/base/divider/Divider.demo.svelte +34 -34
- package/dist/base/divider/Divider.svelte +68 -68
- package/dist/base/divider/divider.scss +19 -19
- package/dist/base/icon/Icon.demo.svelte +24 -24
- package/dist/base/icon/Icon.svelte +117 -117
- package/dist/base/icon/Icon.svelte.d.ts +1 -1
- package/dist/base/icon/icon.scss +17 -17
- package/dist/base/paper/Paper.demo.svelte +31 -31
- package/dist/base/paper/Paper.svelte +20 -20
- package/dist/base/paper/paper.scss +15 -15
- package/dist/base/titleBar/TitleBar.demo.svelte +30 -30
- package/dist/base/titleBar/TitleBar.svelte +40 -40
- package/dist/base/titleBar/title-bar.scss +29 -29
- package/dist/controls/autocomplete/AutoComplete.demo.svelte +88 -88
- package/dist/controls/autocomplete/AutoComplete.svelte +152 -152
- package/dist/controls/autocomplete/auto-complete.scss +15 -15
- package/dist/controls/button/Button.demo.svelte +165 -165
- package/dist/controls/button/Button.svelte +95 -95
- package/dist/controls/button/Button.svelte.d.ts +1 -1
- package/dist/controls/button/ButtonAction.svelte +55 -55
- package/dist/controls/button/ButtonMenu.svelte +55 -55
- package/dist/controls/button/IconButton.svelte +45 -45
- package/dist/controls/button/button-action.scss +8 -8
- package/dist/controls/button/button-menu.scss +36 -36
- package/dist/controls/button/button.scss +293 -293
- package/dist/controls/checkbox/Checkbox.demo.svelte +29 -29
- package/dist/controls/checkbox/Checkbox.svelte +59 -59
- package/dist/controls/checkbox/checkbox.scss +115 -115
- package/dist/controls/confirm/Confirm.demo.svelte +60 -60
- package/dist/controls/confirm/Confirm.preview.svelte +14 -14
- package/dist/controls/confirm/Confirm.svelte +156 -156
- package/dist/controls/confirm/confirm.scss +12 -12
- package/dist/controls/inplaceedit/InPlaceEdit.demo.svelte +41 -41
- package/dist/controls/inplaceedit/InPlaceEdit.svelte +109 -109
- package/dist/controls/progress/Progress.demo.svelte +30 -30
- package/dist/controls/progress/Progress.svelte +26 -26
- package/dist/controls/progress/progress.scss +23 -23
- package/dist/controls/rating/Rating.demo.svelte +45 -45
- package/dist/controls/rating/Rating.svelte +44 -44
- package/dist/controls/rating/Rating.svelte.d.ts +1 -1
- package/dist/controls/rating/rating.scss +9 -9
- package/dist/controls/select/Select.demo.svelte +101 -101
- package/dist/controls/select/Select.svelte +125 -125
- package/dist/controls/select/select.scss +13 -13
- package/dist/controls/slider/Slider.demo.svelte +34 -34
- package/dist/controls/slider/Slider.svelte +153 -153
- package/dist/controls/slider/slider.scss +51 -51
- package/dist/controls/stepper/Stepper.demo.svelte +32 -32
- package/dist/controls/stepper/Stepper.svelte +30 -30
- package/dist/controls/stepper/stepper.scss +23 -23
- package/dist/controls/switch/Switch.demo.svelte +61 -61
- package/dist/controls/switch/Switch.svelte +45 -45
- package/dist/controls/switch/switch.scss +73 -73
- package/dist/controls/textfield/TextField.demo.svelte +79 -79
- package/dist/controls/textfield/TextField.svelte +86 -86
- package/dist/controls/textfield/TextField.svelte.d.ts +1 -1
- package/dist/controls/textfield/textfield.scss +68 -68
- package/dist/csss/csss.scss +10 -10
- package/dist/data/dataList/DataList.demo.svelte +151 -151
- package/dist/data/dataList/DataList.preview.svelte +23 -23
- package/dist/data/dataList/DataList.svelte +233 -233
- package/dist/data/dataList/DataListCell.svelte +212 -212
- package/dist/data/dataList/DataListHead.svelte +75 -75
- package/dist/data/dataList/DataListRow.svelte +93 -93
- package/dist/data/dataList/datalist.scss +157 -157
- package/dist/data/finder/Finder.demo.svelte +55 -55
- package/dist/data/finder/Finder.svelte +166 -166
- package/dist/data/finder/finder.scss +14 -14
- package/dist/data/grouper/Grouper.demo.svelte +36 -36
- package/dist/data/grouper/Grouper.svelte +85 -85
- package/dist/data/jsoner/Jsoner.svelte +40 -40
- package/dist/data/list/List.svelte +16 -16
- package/dist/data/list/ListItem.svelte +10 -10
- package/dist/data/list/ListTitle.svelte +8 -8
- package/dist/data/loader/Loader.demo.svelte +95 -95
- package/dist/data/loader/Loader.preview.svelte +7 -7
- package/dist/data/loader/Loader.svelte +99 -99
- package/dist/data/loader/loader.scss +50 -50
- package/dist/data/sorter/Sorter.demo.svelte +62 -62
- package/dist/data/sorter/Sorter.svelte +80 -80
- package/dist/data/sorter/Sorterer.svelte +27 -27
- package/dist/data/sorter/sorterer.scss +11 -11
- package/dist/index.d.ts +67 -66
- package/dist/index.js +67 -66
- package/dist/navigation/drawer/Drawer.demo.svelte +52 -52
- package/dist/navigation/drawer/Drawer.svelte +163 -163
- package/dist/navigation/drawer/drawer.scss +69 -69
- package/dist/navigation/tabs/Tabs.demo.svelte +83 -83
- package/dist/navigation/tabs/Tabs.preview.svelte +22 -22
- package/dist/navigation/tabs/Tabs.svelte +158 -158
- package/dist/navigation/tabs/tabs.scss +92 -92
- package/dist/slotui-css/slotui-css.css +229 -229
- package/dist/slotui-css/slotui-min-css.css +229 -229
- package/dist/styles/slotui-mixins.scss +168 -168
- package/dist/styles/slotui-presets.scss +56 -56
- package/dist/styles/slotuisheet/SlotuiSheet.svelte +36 -36
- package/dist/styles/slotuisheet/SlotyuiSheet.demo.svelte +28 -28
- package/dist/styles/slotuisheet/sheetConfig.scss +7 -7
- package/dist/styles/slotuisheet/slotui-sheet.scss +192 -192
- package/dist/styles/slotuisheet/stylesheet-container.scss +147 -147
- package/dist/styles/slotuisheet/stylesheet.scss +156 -156
- package/dist/types/slotui-ambient.d.ts +27 -27
- package/dist/ui/bootstrapp/BootStrApp.svelte +92 -92
- package/dist/ui/chromeFrame/ChromeFrame.svelte +43 -43
- package/dist/ui/chromeFrame/ChromeFrameButtonList.svelte +33 -33
- package/dist/ui/chromeFrame/ChromeFrameList.svelte +106 -106
- package/dist/ui/chromeFrame/chrome-frame.scss +34 -34
- package/dist/ui/frame/Frame.demo.svelte +48 -48
- package/dist/ui/frame/Frame.svelte +90 -90
- package/dist/ui/frame/frame.scss +46 -46
- package/dist/ui/login/Login.demo.svelte +62 -62
- package/dist/ui/login/Login.svelte +102 -102
- package/dist/ui/marquee/Marquee.demo.svelte +33 -33
- package/dist/ui/marquee/Marquee.svelte +97 -97
- package/dist/ui/marquee/marquee.scss +34 -34
- package/dist/ui/menu/Menu.svelte +9 -9
- package/dist/ui/menu/MenuItem.svelte +9 -9
- package/dist/ui/menu/MenuTitle.svelte +10 -10
- package/dist/ui/menu/menu.scss +61 -61
- package/dist/ui/menuList/MenuList.demo.svelte +73 -73
- package/dist/ui/menuList/MenuList.svelte +143 -143
- package/dist/ui/menuList/MenuListItem.svelte +134 -134
- package/dist/ui/menuList/MenuListTitle.svelte +10 -10
- package/dist/ui/menuList/menu-list.scss +120 -120
- package/dist/ui/panel/Panel.demo.svelte +169 -169
- package/dist/ui/panel/Panel.svelte +96 -96
- package/dist/ui/panel/PanelGrid.svelte +62 -62
- package/dist/ui/panel/PanelSlide.svelte +156 -156
- package/dist/ui/panel/Paneler.svelte +63 -63
- package/dist/ui/panel/panel.scss +32 -32
- package/dist/ui/popper/Popper.demo.svelte +92 -92
- package/dist/ui/popper/Popper.svelte +160 -160
- package/dist/ui/popper/popper.scss +108 -108
- package/dist/ui/preview/Preview.svelte +41 -41
- package/dist/ui/serviceBox/ServiceBox.svelte +24 -24
- package/dist/ui/startMenu/BootMenu.svelte +102 -102
- package/dist/ui/startMenu/boot-menu.scss +86 -86
- package/dist/ui/taskbar/TaskBarContent.svelte +20 -20
- package/dist/ui/taskbar/Taskbar.svelte +26 -26
- package/dist/ui/taskbar/taskbar.scss +28 -28
- package/dist/ui/themeswitcher/ThemeSwitcher.svelte +18 -18
- package/dist/ui/toast/Toast.demo.svelte +19 -19
- package/dist/ui/toast/Toast.svelte +60 -60
- package/dist/ui/toast/Toaster.svelte +18 -18
- package/dist/ui/toggleBar/ToggleBar.demo.svelte +114 -114
- package/dist/ui/toggleBar/ToggleBar.svelte +58 -58
- package/dist/ui/toggleBar/ToggleBar.svelte.d.ts +1 -1
- package/dist/ui/toggleBar/toggle-bar.scss +45 -45
- package/dist/ui/toolBar/ToolBar.demo.svelte +98 -98
- package/dist/ui/toolBar/ToolBar.svelte +30 -30
- package/dist/ui/toolBar/toolbar.scss +32 -32
- package/dist/ui/tree/Tree.demo.svelte +84 -84
- package/dist/ui/tree/Tree.preview.svelte +19 -19
- package/dist/ui/tree/Tree.svelte +182 -182
- package/dist/ui/tree/tree.scss +38 -38
- package/dist/ui/window/Window.demo.svelte +111 -111
- package/dist/ui/window/Window.svelte +177 -177
- package/dist/ui/window/window.scss +66 -66
- package/dist/utils/content/Content.svelte +78 -78
- package/dist/utils/contextRooter/ContextRooter.demo.svelte +33 -33
- package/dist/utils/contextRooter/ContextRooter.svelte +6 -6
- package/dist/utils/css/Css.demo.svelte +5 -5
- package/dist/utils/css/Css.svelte +64 -64
- package/dist/utils/effects/transitions.js +6 -6
- package/dist/utils/looper/Looper.demo.svelte +36 -36
- package/dist/utils/looper/Looper.svelte +47 -47
- package/dist/utils/slotted/Slotted.svelte +21 -21
- package/dist/utils/stylesheet/StyleSheet.demo.svelte +28 -28
- package/dist/utils/stylesheet/StyleSheet.svelte +30 -30
- package/dist/utils/stylesheet/containerConfig.scss +7 -7
- package/dist/utils/stylesheet/stylesheet.scss +147 -147
- package/dist/utils/uses/sx4u/sx4uPreprocess.js +34 -34
- package/package.json +4 -4
|
@@ -1,147 +1,147 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@import "./sheetConfig.css";
|
|
3
|
-
|
|
4
|
-
$breakpoints: (
|
|
5
|
-
"xs": var(--breakpoint-xs, 320px),
|
|
6
|
-
"sm": var(--breakpoint-sm, 480px),
|
|
7
|
-
"md": var(--breakpoint-md, 640px),
|
|
8
|
-
"lg": var(--breakpoint-lg, 960px),
|
|
9
|
-
"xl": var(--breakpoint-xl, 1280px),
|
|
10
|
-
"xxl": var(--breakpoint-xxl, 1920px),
|
|
11
|
-
"xxxl": var(--breakpoint-xxxl, 1440px)
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
$breakpoint-name: "bkp";
|
|
15
|
-
|
|
16
|
-
$containerItem: "container-item"; //var(--container-item, "container-item");
|
|
17
|
-
$onContainer: var(--on-container, "on-container");
|
|
18
|
-
$than: "than"; // var(--than, "than");
|
|
19
|
-
$showSelector: var(--show, "show");
|
|
20
|
-
$hideSelector: var(--hide, "hide");
|
|
21
|
-
|
|
22
|
-
@debug ($containerItem);
|
|
23
|
-
:root {
|
|
24
|
-
@each $name, $size in $breakpoints {
|
|
25
|
-
--#{$breakpoint-name}-#{$name}: #{$size};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@mixin hidden {
|
|
30
|
-
content-visibility: hidden;
|
|
31
|
-
opacity: 0;
|
|
32
|
-
position: absolute;
|
|
33
|
-
z-index: -10;
|
|
34
|
-
visibility: hidden;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@mixin visible {
|
|
38
|
-
content-visibility: auto;
|
|
39
|
-
opacity: 1;
|
|
40
|
-
position: static;
|
|
41
|
-
z-index: auto;
|
|
42
|
-
visibility: visible;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@function generate-visibility-classes($breakpoints) {
|
|
46
|
-
$result: ();
|
|
47
|
-
@each $name, $size in $breakpoints {
|
|
48
|
-
$result: map.merge(
|
|
49
|
-
$result,
|
|
50
|
-
(
|
|
51
|
-
"hide-more-#{$name}": (
|
|
52
|
-
min-width: var(--#{$breakpoint-name}-#{$name}),
|
|
53
|
-
class: hidden
|
|
54
|
-
),
|
|
55
|
-
"show-more-#{$name}": (
|
|
56
|
-
min-width: var(--#{$breakpoint-name}-#{$name}),
|
|
57
|
-
class: visible
|
|
58
|
-
),
|
|
59
|
-
"hide-less-#{$name}": (
|
|
60
|
-
max-width: calc(var(--#{$breakpoint-name}-#{$name}) - 1px),
|
|
61
|
-
class: hidden
|
|
62
|
-
),
|
|
63
|
-
"show-less-#{$name}": (
|
|
64
|
-
max-width: calc(var(--#{$breakpoint-name}-#{$name}) - 1px),
|
|
65
|
-
class: visible
|
|
66
|
-
)
|
|
67
|
-
)
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
@return $result;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// this mixin uses the @container pseudo-class to generate container queries
|
|
74
|
-
// it is used to hide/show elements based on the container width
|
|
75
|
-
// it uses css properties --hide-on-container-width-less-than and --hide-on-container-more-more-than and
|
|
76
|
-
@mixin generate-container-queries() {
|
|
77
|
-
@container (max-width: var(--hide-on-container-width-more-#{than})) {
|
|
78
|
-
:global(.#{$containerItem}-hide-max-width) {
|
|
79
|
-
color: red;
|
|
80
|
-
@include hidden;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
@container (max-width: var(--hide-on-container-width-more-#{than})) {
|
|
84
|
-
.#{$containerItem}-hide-min-width {
|
|
85
|
-
@include hidden;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
@container (min-height: var(--hide-on-container-height-less-#{than})) {
|
|
89
|
-
.#{$containerItem}-hide-max-height {
|
|
90
|
-
@include hidden;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
@container (max-width: var(--hide-on-container-height-more-#{than})) {
|
|
94
|
-
.#{$containerItem}-hide-min-height {
|
|
95
|
-
@include hidden;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
$visibility-classes: generate-visibility-classes($breakpoints);
|
|
101
|
-
|
|
102
|
-
@each $breakp, $props in $visibility-classes {
|
|
103
|
-
@if map.has-key($props, "min-width") {
|
|
104
|
-
@media (min-width: #{map.get($props, 'min-width')}) {
|
|
105
|
-
[#{$breakp}],
|
|
106
|
-
[breakpoints*="#{$breakp}"],
|
|
107
|
-
.#{$breakp} {
|
|
108
|
-
@if map.get($props, "class") == hidden {
|
|
109
|
-
@include hidden;
|
|
110
|
-
} @else if map.get($props, "class") == visible {
|
|
111
|
-
@include visible;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
} @else if map.has-key($props, "max-width") {
|
|
116
|
-
@media (max-width: #{map.get($props, 'max-width')}) {
|
|
117
|
-
[#{$breakp}],
|
|
118
|
-
[breakpoints*="#{$breakp}"],
|
|
119
|
-
.#{$breakp} {
|
|
120
|
-
@if map.get($props, "class") == hidden {
|
|
121
|
-
@include hidden;
|
|
122
|
-
} @else if map.get($props, "class") == visible {
|
|
123
|
-
@include visible;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:global([container-inline]),
|
|
131
|
-
:global([container="inline"]),
|
|
132
|
-
:global(.container-inline) {
|
|
133
|
-
container-type: inline-size;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
:global([container-size]),
|
|
137
|
-
:global([container="size"]),
|
|
138
|
-
:global(.container-size) {
|
|
139
|
-
container-type: size;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
:global([container-normal]),
|
|
143
|
-
:global([container="normal"]),
|
|
144
|
-
:global(.container-normal) {
|
|
145
|
-
container-type: normal;
|
|
146
|
-
}
|
|
147
|
-
@include generate-container-queries;
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@import "./sheetConfig.css";
|
|
3
|
+
|
|
4
|
+
$breakpoints: (
|
|
5
|
+
"xs": var(--breakpoint-xs, 320px),
|
|
6
|
+
"sm": var(--breakpoint-sm, 480px),
|
|
7
|
+
"md": var(--breakpoint-md, 640px),
|
|
8
|
+
"lg": var(--breakpoint-lg, 960px),
|
|
9
|
+
"xl": var(--breakpoint-xl, 1280px),
|
|
10
|
+
"xxl": var(--breakpoint-xxl, 1920px),
|
|
11
|
+
"xxxl": var(--breakpoint-xxxl, 1440px)
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
$breakpoint-name: "bkp";
|
|
15
|
+
|
|
16
|
+
$containerItem: "container-item"; //var(--container-item, "container-item");
|
|
17
|
+
$onContainer: var(--on-container, "on-container");
|
|
18
|
+
$than: "than"; // var(--than, "than");
|
|
19
|
+
$showSelector: var(--show, "show");
|
|
20
|
+
$hideSelector: var(--hide, "hide");
|
|
21
|
+
|
|
22
|
+
@debug ($containerItem);
|
|
23
|
+
:root {
|
|
24
|
+
@each $name, $size in $breakpoints {
|
|
25
|
+
--#{$breakpoint-name}-#{$name}: #{$size};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin hidden {
|
|
30
|
+
content-visibility: hidden;
|
|
31
|
+
opacity: 0;
|
|
32
|
+
position: absolute;
|
|
33
|
+
z-index: -10;
|
|
34
|
+
visibility: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin visible {
|
|
38
|
+
content-visibility: auto;
|
|
39
|
+
opacity: 1;
|
|
40
|
+
position: static;
|
|
41
|
+
z-index: auto;
|
|
42
|
+
visibility: visible;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@function generate-visibility-classes($breakpoints) {
|
|
46
|
+
$result: ();
|
|
47
|
+
@each $name, $size in $breakpoints {
|
|
48
|
+
$result: map.merge(
|
|
49
|
+
$result,
|
|
50
|
+
(
|
|
51
|
+
"hide-more-#{$name}": (
|
|
52
|
+
min-width: var(--#{$breakpoint-name}-#{$name}),
|
|
53
|
+
class: hidden
|
|
54
|
+
),
|
|
55
|
+
"show-more-#{$name}": (
|
|
56
|
+
min-width: var(--#{$breakpoint-name}-#{$name}),
|
|
57
|
+
class: visible
|
|
58
|
+
),
|
|
59
|
+
"hide-less-#{$name}": (
|
|
60
|
+
max-width: calc(var(--#{$breakpoint-name}-#{$name}) - 1px),
|
|
61
|
+
class: hidden
|
|
62
|
+
),
|
|
63
|
+
"show-less-#{$name}": (
|
|
64
|
+
max-width: calc(var(--#{$breakpoint-name}-#{$name}) - 1px),
|
|
65
|
+
class: visible
|
|
66
|
+
)
|
|
67
|
+
)
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
@return $result;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// this mixin uses the @container pseudo-class to generate container queries
|
|
74
|
+
// it is used to hide/show elements based on the container width
|
|
75
|
+
// it uses css properties --hide-on-container-width-less-than and --hide-on-container-more-more-than and
|
|
76
|
+
@mixin generate-container-queries() {
|
|
77
|
+
@container (max-width: var(--hide-on-container-width-more-#{than})) {
|
|
78
|
+
:global(.#{$containerItem}-hide-max-width) {
|
|
79
|
+
color: red;
|
|
80
|
+
@include hidden;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
@container (max-width: var(--hide-on-container-width-more-#{than})) {
|
|
84
|
+
.#{$containerItem}-hide-min-width {
|
|
85
|
+
@include hidden;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
@container (min-height: var(--hide-on-container-height-less-#{than})) {
|
|
89
|
+
.#{$containerItem}-hide-max-height {
|
|
90
|
+
@include hidden;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
@container (max-width: var(--hide-on-container-height-more-#{than})) {
|
|
94
|
+
.#{$containerItem}-hide-min-height {
|
|
95
|
+
@include hidden;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
$visibility-classes: generate-visibility-classes($breakpoints);
|
|
101
|
+
|
|
102
|
+
@each $breakp, $props in $visibility-classes {
|
|
103
|
+
@if map.has-key($props, "min-width") {
|
|
104
|
+
@media (min-width: #{map.get($props, 'min-width')}) {
|
|
105
|
+
[#{$breakp}],
|
|
106
|
+
[breakpoints*="#{$breakp}"],
|
|
107
|
+
.#{$breakp} {
|
|
108
|
+
@if map.get($props, "class") == hidden {
|
|
109
|
+
@include hidden;
|
|
110
|
+
} @else if map.get($props, "class") == visible {
|
|
111
|
+
@include visible;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
} @else if map.has-key($props, "max-width") {
|
|
116
|
+
@media (max-width: #{map.get($props, 'max-width')}) {
|
|
117
|
+
[#{$breakp}],
|
|
118
|
+
[breakpoints*="#{$breakp}"],
|
|
119
|
+
.#{$breakp} {
|
|
120
|
+
@if map.get($props, "class") == hidden {
|
|
121
|
+
@include hidden;
|
|
122
|
+
} @else if map.get($props, "class") == visible {
|
|
123
|
+
@include visible;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:global([container-inline]),
|
|
131
|
+
:global([container="inline"]),
|
|
132
|
+
:global(.container-inline) {
|
|
133
|
+
container-type: inline-size;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:global([container-size]),
|
|
137
|
+
:global([container="size"]),
|
|
138
|
+
:global(.container-size) {
|
|
139
|
+
container-type: size;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:global([container-normal]),
|
|
143
|
+
:global([container="normal"]),
|
|
144
|
+
:global(.container-normal) {
|
|
145
|
+
container-type: normal;
|
|
146
|
+
}
|
|
147
|
+
@include generate-container-queries;
|
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "sheetConfig.scss";
|
|
3
|
-
|
|
4
|
-
$breakpoints: (
|
|
5
|
-
"xs": 320px,
|
|
6
|
-
//var(--breakpoint-xs, 320px),
|
|
7
|
-
"sm": 480px,
|
|
8
|
-
//var(--breakpoint-sm, 480px),
|
|
9
|
-
"md": 640px,
|
|
10
|
-
// var(--breakpoint-md, 640px),
|
|
11
|
-
"lg": 960px,
|
|
12
|
-
// var(--breakpoint-lg, 960px),
|
|
13
|
-
"xl": 1280px,
|
|
14
|
-
//var(--breakpoint-xl, 1280px),
|
|
15
|
-
"xxl": 1920px,
|
|
16
|
-
//var(--breakpoint-xxl, 1920px),
|
|
17
|
-
"xxxl": 1440px,
|
|
18
|
-
//var(--breakpoint-xxxl, 1440px)
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
$breakpoint-name: "bkp";
|
|
22
|
-
|
|
23
|
-
$containerItem: "container-item"; //var(--container-item, "container-item");
|
|
24
|
-
$onContainer: var(--on-container, "on-container");
|
|
25
|
-
$than: "than"; // var(--than, "than");
|
|
26
|
-
$showSelector: var(--show, "show");
|
|
27
|
-
$hideSelector: var(--hide, "hide");
|
|
28
|
-
|
|
29
|
-
:root {
|
|
30
|
-
// export css properties variables
|
|
31
|
-
@each $name, $size in $breakpoints {
|
|
32
|
-
--#{$breakpoint-name}-#{$name}: #{$size};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@mixin hidden {
|
|
37
|
-
display: none;
|
|
38
|
-
opacity: 0;
|
|
39
|
-
position: absolute;
|
|
40
|
-
z-index: -10;
|
|
41
|
-
content-visibility: hidden;
|
|
42
|
-
transition: all 0.5s ease-in;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@mixin visible {
|
|
46
|
-
z-index: auto;
|
|
47
|
-
visibility: visible;
|
|
48
|
-
transition: all 1s ease-in;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// this mixin uses the @container pseudo-class to generate container queries
|
|
52
|
-
// it is used to hide/show elements based on the container width
|
|
53
|
-
// it uses css properties --hide-on-container-width-less-than and --hide-on-container-more-more-than and
|
|
54
|
-
@mixin generate-container-queries() {
|
|
55
|
-
@container (max-width: var(--hide-on-container-width-more-#{than})) {
|
|
56
|
-
.#{$containerItem}-hide-max-width {
|
|
57
|
-
color: red;
|
|
58
|
-
@include hidden;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
@container (max-width: var(--hide-on-container-width-more-#{than})) {
|
|
62
|
-
.#{$containerItem}-hide-min-width {
|
|
63
|
-
@include hidden;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
@container (min-height: var(--hide-on-container-height-less-#{than})) {
|
|
67
|
-
.#{$containerItem}-hide-max-height {
|
|
68
|
-
@include hidden;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
@container (max-width: var(--hide-on-container-height-more-#{than})) {
|
|
72
|
-
.#{$containerItem}-hide-min-height {
|
|
73
|
-
@include hidden;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@function generate-visibility-classes($breakpoints) {
|
|
79
|
-
$result: ();
|
|
80
|
-
@each $name, $size in $breakpoints {
|
|
81
|
-
$result: map.merge(
|
|
82
|
-
$result,
|
|
83
|
-
(
|
|
84
|
-
"hide-more-#{$name}": (
|
|
85
|
-
min-width: $size,
|
|
86
|
-
class: hidden
|
|
87
|
-
),
|
|
88
|
-
"hide-less-#{$name}": (
|
|
89
|
-
max-width: $size,
|
|
90
|
-
class: hidden
|
|
91
|
-
),
|
|
92
|
-
"show-more-#{$name}": (
|
|
93
|
-
min-width: $size,
|
|
94
|
-
class: visible
|
|
95
|
-
),
|
|
96
|
-
"show-less-#{$name}": (
|
|
97
|
-
max-width: (
|
|
98
|
-
$size - 1px
|
|
99
|
-
),
|
|
100
|
-
class: visible
|
|
101
|
-
)
|
|
102
|
-
)
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
@return $result;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
$visibility-classes: generate-visibility-classes($breakpoints);
|
|
109
|
-
|
|
110
|
-
@each $breakp, $props in $visibility-classes {
|
|
111
|
-
@if map.has-key($props, "min-width") {
|
|
112
|
-
@media (min-width: #{map.get($props, 'min-width')}) {
|
|
113
|
-
[#{$breakp}],
|
|
114
|
-
[breakpoints*="#{$breakp}"],
|
|
115
|
-
.#{$breakp} {
|
|
116
|
-
@if map.get($props, "class") == hidden {
|
|
117
|
-
@include hidden;
|
|
118
|
-
} @else if map.get($props, "class") == visible {
|
|
119
|
-
@include visible;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
} @else if map.has-key($props, "max-width") {
|
|
124
|
-
@media (max-width: #{map.get($props, 'max-width')}) {
|
|
125
|
-
[#{$breakp}],
|
|
126
|
-
[breakpoints*="#{$breakp}"],
|
|
127
|
-
.#{$breakp} {
|
|
128
|
-
@if map.get($props, "class") == hidden {
|
|
129
|
-
@include hidden;
|
|
130
|
-
} @else if map.get($props, "class") == visible {
|
|
131
|
-
@include visible;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
[container-inline],
|
|
139
|
-
[container="inline"],
|
|
140
|
-
.container-inline {
|
|
141
|
-
container-type: inline-size;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
[container-size],
|
|
145
|
-
[container="size"],
|
|
146
|
-
.container-size {
|
|
147
|
-
container-type: size;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
[container-normal],
|
|
151
|
-
[container="normal"],
|
|
152
|
-
.container-normal {
|
|
153
|
-
container-type: normal;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@include generate-container-queries;
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sheetConfig.scss";
|
|
3
|
+
|
|
4
|
+
$breakpoints: (
|
|
5
|
+
"xs": 320px,
|
|
6
|
+
//var(--breakpoint-xs, 320px),
|
|
7
|
+
"sm": 480px,
|
|
8
|
+
//var(--breakpoint-sm, 480px),
|
|
9
|
+
"md": 640px,
|
|
10
|
+
// var(--breakpoint-md, 640px),
|
|
11
|
+
"lg": 960px,
|
|
12
|
+
// var(--breakpoint-lg, 960px),
|
|
13
|
+
"xl": 1280px,
|
|
14
|
+
//var(--breakpoint-xl, 1280px),
|
|
15
|
+
"xxl": 1920px,
|
|
16
|
+
//var(--breakpoint-xxl, 1920px),
|
|
17
|
+
"xxxl": 1440px,
|
|
18
|
+
//var(--breakpoint-xxxl, 1440px)
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
$breakpoint-name: "bkp";
|
|
22
|
+
|
|
23
|
+
$containerItem: "container-item"; //var(--container-item, "container-item");
|
|
24
|
+
$onContainer: var(--on-container, "on-container");
|
|
25
|
+
$than: "than"; // var(--than, "than");
|
|
26
|
+
$showSelector: var(--show, "show");
|
|
27
|
+
$hideSelector: var(--hide, "hide");
|
|
28
|
+
|
|
29
|
+
:root {
|
|
30
|
+
// export css properties variables
|
|
31
|
+
@each $name, $size in $breakpoints {
|
|
32
|
+
--#{$breakpoint-name}-#{$name}: #{$size};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@mixin hidden {
|
|
37
|
+
display: none;
|
|
38
|
+
opacity: 0;
|
|
39
|
+
position: absolute;
|
|
40
|
+
z-index: -10;
|
|
41
|
+
content-visibility: hidden;
|
|
42
|
+
transition: all 0.5s ease-in;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin visible {
|
|
46
|
+
z-index: auto;
|
|
47
|
+
visibility: visible;
|
|
48
|
+
transition: all 1s ease-in;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// this mixin uses the @container pseudo-class to generate container queries
|
|
52
|
+
// it is used to hide/show elements based on the container width
|
|
53
|
+
// it uses css properties --hide-on-container-width-less-than and --hide-on-container-more-more-than and
|
|
54
|
+
@mixin generate-container-queries() {
|
|
55
|
+
@container (max-width: var(--hide-on-container-width-more-#{than})) {
|
|
56
|
+
.#{$containerItem}-hide-max-width {
|
|
57
|
+
color: red;
|
|
58
|
+
@include hidden;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
@container (max-width: var(--hide-on-container-width-more-#{than})) {
|
|
62
|
+
.#{$containerItem}-hide-min-width {
|
|
63
|
+
@include hidden;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@container (min-height: var(--hide-on-container-height-less-#{than})) {
|
|
67
|
+
.#{$containerItem}-hide-max-height {
|
|
68
|
+
@include hidden;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@container (max-width: var(--hide-on-container-height-more-#{than})) {
|
|
72
|
+
.#{$containerItem}-hide-min-height {
|
|
73
|
+
@include hidden;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@function generate-visibility-classes($breakpoints) {
|
|
79
|
+
$result: ();
|
|
80
|
+
@each $name, $size in $breakpoints {
|
|
81
|
+
$result: map.merge(
|
|
82
|
+
$result,
|
|
83
|
+
(
|
|
84
|
+
"hide-more-#{$name}": (
|
|
85
|
+
min-width: $size,
|
|
86
|
+
class: hidden
|
|
87
|
+
),
|
|
88
|
+
"hide-less-#{$name}": (
|
|
89
|
+
max-width: $size,
|
|
90
|
+
class: hidden
|
|
91
|
+
),
|
|
92
|
+
"show-more-#{$name}": (
|
|
93
|
+
min-width: $size,
|
|
94
|
+
class: visible
|
|
95
|
+
),
|
|
96
|
+
"show-less-#{$name}": (
|
|
97
|
+
max-width: (
|
|
98
|
+
$size - 1px
|
|
99
|
+
),
|
|
100
|
+
class: visible
|
|
101
|
+
)
|
|
102
|
+
)
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
@return $result;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
$visibility-classes: generate-visibility-classes($breakpoints);
|
|
109
|
+
|
|
110
|
+
@each $breakp, $props in $visibility-classes {
|
|
111
|
+
@if map.has-key($props, "min-width") {
|
|
112
|
+
@media (min-width: #{map.get($props, 'min-width')}) {
|
|
113
|
+
[#{$breakp}],
|
|
114
|
+
[breakpoints*="#{$breakp}"],
|
|
115
|
+
.#{$breakp} {
|
|
116
|
+
@if map.get($props, "class") == hidden {
|
|
117
|
+
@include hidden;
|
|
118
|
+
} @else if map.get($props, "class") == visible {
|
|
119
|
+
@include visible;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
} @else if map.has-key($props, "max-width") {
|
|
124
|
+
@media (max-width: #{map.get($props, 'max-width')}) {
|
|
125
|
+
[#{$breakp}],
|
|
126
|
+
[breakpoints*="#{$breakp}"],
|
|
127
|
+
.#{$breakp} {
|
|
128
|
+
@if map.get($props, "class") == hidden {
|
|
129
|
+
@include hidden;
|
|
130
|
+
} @else if map.get($props, "class") == visible {
|
|
131
|
+
@include visible;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[container-inline],
|
|
139
|
+
[container="inline"],
|
|
140
|
+
.container-inline {
|
|
141
|
+
container-type: inline-size;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
[container-size],
|
|
145
|
+
[container="size"],
|
|
146
|
+
.container-size {
|
|
147
|
+
container-type: size;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
[container-normal],
|
|
151
|
+
[container="normal"],
|
|
152
|
+
.container-normal {
|
|
153
|
+
container-type: normal;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@include generate-container-queries;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { type ElementProps, type ContainerQueriesUnitsAttributes } from './index.ts';
|
|
2
|
-
|
|
3
|
-
declare module 'svelte/elements' {
|
|
4
|
-
export interface SvelteHTMLElements {
|
|
5
|
-
full: HTMLButtonAttributes;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface HTMLAttributes<T> {
|
|
9
|
-
width?: ElementProps['width'];
|
|
10
|
-
tall?: ElementProps['tall'];
|
|
11
|
-
gutter?: ElementProps['gutter'];
|
|
12
|
-
variant?: ElementProps['variant'];
|
|
13
|
-
ratio?: string | `true` | `false`;
|
|
14
|
-
square?: string | boolean | `true` | `false`;
|
|
15
|
-
rotation?: string | number;
|
|
16
|
-
/** media queries */
|
|
17
|
-
'hide-more-than'?: string;
|
|
18
|
-
/** for container of containerQueries */
|
|
19
|
-
container?: `inline` | `size` | `normal`;
|
|
20
|
-
'hide-max-width'?: ContainerQueriesUnitsAttributes;
|
|
21
|
-
'hide-max-height'?: ContainerQueriesUnitsAttributes;
|
|
22
|
-
'hide-min-width'?: ContainerQueriesUnitsAttributes;
|
|
23
|
-
'hide-min-height'?: ContainerQueriesUnitsAttributes;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {};
|
|
1
|
+
import { type ElementProps, type ContainerQueriesUnitsAttributes } from './index.ts';
|
|
2
|
+
|
|
3
|
+
declare module 'svelte/elements' {
|
|
4
|
+
export interface SvelteHTMLElements {
|
|
5
|
+
full: HTMLButtonAttributes;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface HTMLAttributes<T> {
|
|
9
|
+
width?: ElementProps['width'];
|
|
10
|
+
tall?: ElementProps['tall'];
|
|
11
|
+
gutter?: ElementProps['gutter'];
|
|
12
|
+
variant?: ElementProps['variant'];
|
|
13
|
+
ratio?: string | `true` | `false`;
|
|
14
|
+
square?: string | boolean | `true` | `false`;
|
|
15
|
+
rotation?: string | number;
|
|
16
|
+
/** media queries */
|
|
17
|
+
'hide-more-than'?: string;
|
|
18
|
+
/** for container of containerQueries */
|
|
19
|
+
container?: `inline` | `size` | `normal`;
|
|
20
|
+
'hide-max-width'?: ContainerQueriesUnitsAttributes;
|
|
21
|
+
'hide-max-height'?: ContainerQueriesUnitsAttributes;
|
|
22
|
+
'hide-min-width'?: ContainerQueriesUnitsAttributes;
|
|
23
|
+
'hide-min-height'?: ContainerQueriesUnitsAttributes;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {};
|