@fastkit/vui 0.6.37 → 0.6.41

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 (188) hide show
  1. package/dist/tool/index.js +3 -0
  2. package/dist/tool/vite-plugin.d.ts.map +1 -1
  3. package/dist/vui.cjs.js +181 -5
  4. package/dist/vui.cjs.prod.js +181 -5
  5. package/dist/vui.css +24 -14
  6. package/dist/vui.d.ts +3596 -16
  7. package/dist/vui.esm-bundler.js +181 -7
  8. package/dist/vui.min.css +1 -1
  9. package/dist/vui.min.css.map +1 -1
  10. package/package.json +8 -7
  11. package/src/.DS_Store +0 -0
  12. package/src/assets/.DS_Store +0 -0
  13. package/src/assets/builtins/color-scheme.ts +9 -0
  14. package/src/assets/builtins/media-match.ts +3 -0
  15. package/src/components/.DS_Store +0 -0
  16. package/src/components/VAccordion/VAccordion.scss +2 -0
  17. package/src/components/VAccordion/VAccordion.tsx +5 -0
  18. package/src/components/VAccordion/index.ts +1 -0
  19. package/src/components/VApp/VApp.tsx +17 -0
  20. package/src/components/VApp/index.ts +1 -0
  21. package/src/components/VBreadcrumbs/VBreadcrumbs.scss +61 -0
  22. package/src/components/VBreadcrumbs/VBreadcrumbs.tsx +137 -0
  23. package/src/components/VBreadcrumbs/index.ts +1 -0
  24. package/src/components/VButton/.DS_Store +0 -0
  25. package/src/components/VButton/VButton.scss +137 -0
  26. package/src/components/VButton/VButton.tsx +148 -0
  27. package/src/components/VButton/VButtonGroup.scss +23 -0
  28. package/src/components/VButton/VButtonGroup.tsx +81 -0
  29. package/src/components/VButton/index.ts +2 -0
  30. package/src/components/VCard/VCard.scss +3 -0
  31. package/src/components/VCard/VCard.tsx +20 -0
  32. package/src/components/VCard/VCardActions.scss +10 -0
  33. package/src/components/VCard/VCardActions.tsx +16 -0
  34. package/src/components/VCard/VCardContent.scss +3 -0
  35. package/src/components/VCard/VCardContent.tsx +16 -0
  36. package/src/components/VCard/index.ts +3 -0
  37. package/src/components/VCheckable/VCheckable.scss +103 -0
  38. package/src/components/VCheckable/VCheckable.tsx +60 -0
  39. package/src/components/VCheckable/index.ts +1 -0
  40. package/src/components/VCheckbox/VCheckbox.scss +56 -0
  41. package/src/components/VCheckbox/VCheckbox.tsx +63 -0
  42. package/src/components/VCheckbox/index.ts +1 -0
  43. package/src/components/VCheckboxGroup/.DS_Store +0 -0
  44. package/src/components/VCheckboxGroup/VCheckboxGroup.tsx +11 -0
  45. package/src/components/VCheckboxGroup/index.ts +1 -0
  46. package/src/components/VContentSwitcher/VContentSwitcher.scss +73 -0
  47. package/src/components/VContentSwitcher/VContentSwitcher.tsx +156 -0
  48. package/src/components/VContentSwitcher/index.ts +1 -0
  49. package/src/components/VControlField/VControlField.scss +183 -0
  50. package/src/components/VControlField/VControlField.tsx +152 -0
  51. package/src/components/VControlField/index.ts +1 -0
  52. package/src/components/VDataTable/VDataTable.scss +230 -0
  53. package/src/components/VDataTable/VDataTable.tsx +761 -0
  54. package/src/components/VDataTable/index.ts +1 -0
  55. package/src/components/VDrawerLayout/VDrawerLayout.scss +26 -0
  56. package/src/components/VDrawerLayout/VDrawerLayout.tsx +35 -0
  57. package/src/components/VDrawerLayout/index.ts +1 -0
  58. package/src/components/VForm/VForm.tsx +77 -0
  59. package/src/components/VForm/index.ts +1 -0
  60. package/src/components/VFormControl/VFormControl.scss +59 -0
  61. package/src/components/VFormControl/VFormControl.tsx +85 -0
  62. package/src/components/VFormControl/index.ts +1 -0
  63. package/src/components/VGrid/VGridContainer.scss +4 -0
  64. package/src/components/VGrid/VGridContainer.tsx +191 -0
  65. package/src/components/VGrid/VGridItem.scss +3 -0
  66. package/src/components/VGrid/VGridItem.tsx +114 -0
  67. package/src/components/VGrid/index.ts +2 -0
  68. package/src/components/VGrid/schemes.ts +28 -0
  69. package/src/components/VHero/.DS_Store +0 -0
  70. package/src/components/VHero/VHero.scss +26 -0
  71. package/src/components/VHero/VHero.tsx +52 -0
  72. package/src/components/VHero/index.ts +1 -0
  73. package/src/components/VIcon/VIcon.scss +22 -0
  74. package/src/components/VIcon/VIcon.tsx +110 -0
  75. package/src/components/VIcon/index.ts +1 -0
  76. package/src/components/VListTile/VListTile.scss +71 -0
  77. package/src/components/VListTile/VListTile.tsx +121 -0
  78. package/src/components/VListTile/index.ts +1 -0
  79. package/src/components/VNavigation/VNavigation.scss +12 -0
  80. package/src/components/VNavigation/VNavigation.tsx +79 -0
  81. package/src/components/VNavigation/VNavigationItem.scss +14 -0
  82. package/src/components/VNavigation/VNavigationItem.tsx +252 -0
  83. package/src/components/VNavigation/index.ts +2 -0
  84. package/src/components/VOption/VOption.scss +61 -0
  85. package/src/components/VOption/VOption.tsx +52 -0
  86. package/src/components/VOption/index.ts +1 -0
  87. package/src/components/VOptionGroup/VOptionGroup.scss +3 -0
  88. package/src/components/VOptionGroup/VOptionGroup.tsx +55 -0
  89. package/src/components/VOptionGroup/index.ts +1 -0
  90. package/src/components/VPagination/VPagination.scss +100 -0
  91. package/src/components/VPagination/VPagination.tsx +346 -0
  92. package/src/components/VPagination/index.ts +1 -0
  93. package/src/components/VPaper/VPaper.scss +37 -0
  94. package/src/components/VPaper/VPaper.tsx +78 -0
  95. package/src/components/VPaper/index.ts +1 -0
  96. package/src/components/VRadio/.DS_Store +0 -0
  97. package/src/components/VRadio/VRadio.scss +66 -0
  98. package/src/components/VRadio/VRadio.tsx +56 -0
  99. package/src/components/VRadio/index.ts +1 -0
  100. package/src/components/VRadioGroup/.DS_Store +0 -0
  101. package/src/components/VRadioGroup/VRadioGroup.tsx +10 -0
  102. package/src/components/VRadioGroup/index.ts +1 -0
  103. package/src/components/VSelect/VSelect.scss +78 -0
  104. package/src/components/VSelect/VSelect.tsx +204 -0
  105. package/src/components/VSelect/index.ts +1 -0
  106. package/src/components/VSwitch/VSwitch.scss +125 -0
  107. package/src/components/VSwitch/VSwitch.tsx +66 -0
  108. package/src/components/VSwitch/index.ts +1 -0
  109. package/src/components/VSwitchGroup/.DS_Store +0 -0
  110. package/src/components/VSwitchGroup/VSwitchGroup.tsx +11 -0
  111. package/src/components/VSwitchGroup/index.ts +1 -0
  112. package/src/components/VTabs/.DS_Store +0 -0
  113. package/src/components/VTabs/VTab.scss +73 -0
  114. package/src/components/VTabs/VTab.tsx +88 -0
  115. package/src/components/VTabs/VTabs.scss +49 -0
  116. package/src/components/VTabs/VTabs.tsx +315 -0
  117. package/src/components/VTabs/index.ts +1 -0
  118. package/src/components/VTextCounter/VTextCounter.scss +3 -0
  119. package/src/components/VTextCounter/VTextCounter.tsx +21 -0
  120. package/src/components/VTextCounter/index.ts +1 -0
  121. package/src/components/VTextField/VTextField.scss +45 -0
  122. package/src/components/VTextField/VTextField.tsx +96 -0
  123. package/src/components/VTextField/index.ts +1 -0
  124. package/src/components/VTextarea/VTextarea.scss +41 -0
  125. package/src/components/VTextarea/VTextarea.tsx +93 -0
  126. package/src/components/VTextarea/index.ts +1 -0
  127. package/src/components/VToolbar/.DS_Store +0 -0
  128. package/src/components/VToolbar/VToolbar.scss +26 -0
  129. package/src/components/VToolbar/VToolbar.tsx +44 -0
  130. package/src/components/VToolbar/VToolbarEdge.scss +27 -0
  131. package/src/components/VToolbar/VToolbarEdge.tsx +35 -0
  132. package/src/components/VToolbar/VToolbarMenu.scss +7 -0
  133. package/src/components/VToolbar/VToolbarMenu.tsx +26 -0
  134. package/src/components/VToolbar/VToolbarTitle.scss +22 -0
  135. package/src/components/VToolbar/VToolbarTitle.tsx +25 -0
  136. package/src/components/VToolbar/index.ts +4 -0
  137. package/src/components/VWysiwygEditor/.DS_Store +0 -0
  138. package/src/components/VWysiwygEditor/VWysiwygEditor.scss +60 -0
  139. package/src/components/VWysiwygEditor/VWysiwygEditor.tsx +293 -0
  140. package/src/components/VWysiwygEditor/index.ts +2 -0
  141. package/src/components/VWysiwygEditor/schemes.ts +65 -0
  142. package/src/components/VWysiwygEditor/tools/bullet-list.ts +18 -0
  143. package/src/components/VWysiwygEditor/tools/format-bold.ts +19 -0
  144. package/src/components/VWysiwygEditor/tools/format-italic.ts +18 -0
  145. package/src/components/VWysiwygEditor/tools/format-underline.ts +18 -0
  146. package/src/components/VWysiwygEditor/tools/history.ts +26 -0
  147. package/src/components/VWysiwygEditor/tools/index.ts +8 -0
  148. package/src/components/VWysiwygEditor/tools/link.ts +57 -0
  149. package/src/components/VWysiwygEditor/tools/ordered-list.ts +21 -0
  150. package/src/components/VWysiwygEditor/tools/text-color.ts +14 -0
  151. package/src/components/index.ts +32 -0
  152. package/src/components/kits.ts +1 -0
  153. package/src/components/loading.ts +1 -0
  154. package/src/composables/.DS_Store +0 -0
  155. package/src/composables/control.ts +118 -0
  156. package/src/composables/elevation.ts +34 -0
  157. package/src/composables/form-selector.scss +11 -0
  158. package/src/composables/form-selector.tsx +101 -0
  159. package/src/composables/index.ts +4 -0
  160. package/src/composables/vui.ts +9 -0
  161. package/src/index.ts +10 -0
  162. package/src/injections.ts +61 -0
  163. package/src/logger.ts +7 -0
  164. package/src/plugin.tsx +76 -0
  165. package/src/schemes/control.ts +7 -0
  166. package/src/schemes/elevation.ts +26 -0
  167. package/src/schemes/index.ts +2 -0
  168. package/src/service.tsx +242 -0
  169. package/src/styles/.DS_Store +0 -0
  170. package/src/styles/after-effects/display-flow.scss +346 -0
  171. package/src/styles/after-effects/spacing.scss +155 -0
  172. package/src/styles/after-effects/text.scss +90 -0
  173. package/src/styles/after-effects.scss +3 -0
  174. package/src/styles/base.scss +14 -0
  175. package/src/styles/control.scss +11 -0
  176. package/src/styles/core/functions.scss +62 -0
  177. package/src/styles/core/typo.scss +56 -0
  178. package/src/styles/core.scss +2 -0
  179. package/src/styles/elevation.scss +9 -0
  180. package/src/styles/group.scss +57 -0
  181. package/src/styles/index.scss +9 -0
  182. package/src/styles/transition.scss +11 -0
  183. package/src/styles/typo.scss +11 -0
  184. package/src/styles/variables.scss +320 -0
  185. package/src/styles/wysiwyg.scss +24 -0
  186. package/src/tool/.DS_Store +0 -0
  187. package/src/tool/index.ts +2 -0
  188. package/src/tool/vite-plugin.ts +281 -0
@@ -0,0 +1,155 @@
1
+ // *************************
2
+ // * .mt-0 : margin-top: 0;
3
+ // * .mr-1h : margin-right: 12px;
4
+ // * .ml-n2 : margin-left: - 16px;
5
+ // * .m-1 : margin: 8px;
6
+ // * .mx-auto : margin-left: auto; margin-right: auto;
7
+ // * .mx-2 : margin-left: 16px; margin-right: 16px;
8
+ // * .my-0 : margin-top: 0; margin-bottom: 0;
9
+ // * .mt-1--xs: margin-top: 8px; (only xs media)
10
+ // *************************
11
+
12
+ $property-map: (
13
+ (
14
+ selector: 'm',
15
+ prop: 'margin',
16
+ has-negative: true,
17
+ has-auto: true,
18
+ ),
19
+ (
20
+ selector: 'p',
21
+ prop: 'padding',
22
+ has-negative: false,
23
+ has-auto: false,
24
+ )
25
+ );
26
+
27
+ $sides-map: (
28
+ (
29
+ selector: '',
30
+ props: (
31
+ 'all',
32
+ ),
33
+ ),
34
+ (
35
+ selector: 'x',
36
+ props: (
37
+ 'left',
38
+ 'right',
39
+ ),
40
+ ),
41
+ (
42
+ selector: 'y',
43
+ props: (
44
+ 'top',
45
+ 'bottom',
46
+ ),
47
+ ),
48
+ (
49
+ selector: 't',
50
+ props: (
51
+ 'top',
52
+ ),
53
+ ),
54
+ (
55
+ selector: 'b',
56
+ props: (
57
+ 'bottom',
58
+ ),
59
+ ),
60
+ (
61
+ selector: 'l',
62
+ props: (
63
+ 'left',
64
+ ),
65
+ ),
66
+ (
67
+ selector: 'r',
68
+ props: (
69
+ 'right',
70
+ ),
71
+ )
72
+ );
73
+
74
+ @mixin spacing($breakpoint-suffix: '') {
75
+ @each $property-info in $property-map {
76
+ $prop-selector: map-get($property-info, selector);
77
+ $prop-name: map-get($property-info, prop);
78
+ $has-negative: map-get($property-info, has-negative);
79
+ $has-auto: map-get($property-info, has-auto);
80
+
81
+ @each $sides-info in $sides-map {
82
+ $sides-selector: map-get($sides-info, selector);
83
+ $sides-props: map-get($sides-info, props);
84
+ $base-selector: '.' + #{$prop-selector}#{$sides-selector};
85
+
86
+ @if ($has-auto) {
87
+ #{$base-selector}-auto#{$breakpoint-suffix} {
88
+ @each $sides-prop in $sides-props {
89
+ $prop-suffix: if($sides-prop == 'all', '', '-' + $sides-prop);
90
+
91
+ #{$prop-name}#{$prop-suffix}: auto;
92
+ }
93
+ }
94
+ }
95
+
96
+ @for $i from 0 through 10 {
97
+ $base-value: if(
98
+ $i == 0,
99
+ 0,
100
+ if($i == 1, var(--root-spacing), calc(var(--root-spacing) * #{$i}))
101
+ );
102
+ $half-value: calc(var(--root-spacing) * #{$i + 0.5});
103
+
104
+ #{$base-selector}-#{$i}#{$breakpoint-suffix} {
105
+ @each $sides-prop in $sides-props {
106
+ $prop-suffix: if($sides-prop == 'all', '', '-' + $sides-prop);
107
+
108
+ #{$prop-name}#{$prop-suffix}: $base-value;
109
+ }
110
+ }
111
+
112
+ #{$base-selector}-#{$i}h#{$breakpoint-suffix} {
113
+ @each $sides-prop in $sides-props {
114
+ $prop-suffix: if($sides-prop == 'all', '', '-' + $sides-prop);
115
+
116
+ #{$prop-name}#{$prop-suffix}: $half-value;
117
+ }
118
+ }
119
+ }
120
+
121
+ @if ($has-negative) {
122
+ @for $i from 1 through 10 {
123
+ $base-value: if(
124
+ $i == 1,
125
+ calc(var(--root-spacing) * -1),
126
+ calc(var(--root-spacing) * -#{$i})
127
+ );
128
+ $half-value: calc(var(--root-spacing) * -#{$i + 0.5});
129
+
130
+ #{$base-selector}-n#{$i}#{$breakpoint-suffix} {
131
+ @each $sides-prop in $sides-props {
132
+ $prop-suffix: if($sides-prop == 'all', '', '-' + $sides-prop);
133
+
134
+ #{$prop-name}#{$prop-suffix}: $base-value;
135
+ }
136
+ }
137
+
138
+ #{$base-selector}-n#{$i}h#{$breakpoint-suffix} {
139
+ @each $sides-prop in $sides-props {
140
+ $prop-suffix: if($sides-prop == 'all', '', '-' + $sides-prop);
141
+
142
+ #{$prop-name}#{$prop-suffix}: $half-value;
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+
151
+ @include spacing();
152
+
153
+ @include mq-each() {
154
+ @include spacing($breakpoint-suffix: '--' + $mq-each-target);
155
+ }
@@ -0,0 +1,90 @@
1
+ $props-map: (
2
+ (
3
+ prop: 'text-align',
4
+ values: (
5
+ (
6
+ selector: 'text-left',
7
+ value: 'left',
8
+ ),
9
+ (
10
+ selector: 'text-center',
11
+ value: 'center',
12
+ ),
13
+ (
14
+ selector: 'text-right',
15
+ value: 'right',
16
+ ),
17
+ ),
18
+ ),
19
+ (
20
+ prop: 'font-weight',
21
+ values: (
22
+ (
23
+ selector: 'font-weight-normal',
24
+ value: 'normal',
25
+ ),
26
+ (
27
+ selector: 'font-weight-bold',
28
+ value: 'bold',
29
+ ),
30
+ (
31
+ selector: 'font-weight-lighter',
32
+ value: 'lighter',
33
+ ),
34
+ (
35
+ selector: 'font-weight-bolder',
36
+ value: 'bolder',
37
+ ),
38
+ ),
39
+ )
40
+ );
41
+
42
+ @mixin text($breakpoint-suffix: '') {
43
+ .text-base {
44
+ margin: var(--typo-base-margin);
45
+ font-size: var(--typo-base-size);
46
+ font-weight: var(--typo-base-weight);
47
+ line-height: var(--typo-base-height);
48
+ color: var(--typo-base-color);
49
+ letter-spacing: var(--typo-base-height);
50
+ }
51
+
52
+ @for $level from 1 through 6 {
53
+ .text-h#{$level} {
54
+ margin: var(--typo-h#{$level}-margin);
55
+ font-size: var(--typo-h#{$level}-size);
56
+ font-weight: var(--typo-h#{$level}-weight);
57
+ line-height: var(--typo-h#{$level}-height);
58
+ color: var(--typo-h#{$level}-color);
59
+ letter-spacing: var(--typo-h#{$level}-height);
60
+ }
61
+ }
62
+
63
+ @each $prop-info in $props-map {
64
+ $prop: map-get($prop-info, prop);
65
+ $values: map-get($prop-info, values);
66
+
67
+ @each $value-info in $values {
68
+ $selector: map-get($value-info, selector);
69
+ $value: map-get($value-info, value);
70
+
71
+ .#{selector}#{$breakpoint-suffix} {
72
+ #{$prop}: unquote($value);
73
+ }
74
+ }
75
+ }
76
+
77
+ @for $i from 1 through 9 {
78
+ $weight: $i * 100;
79
+
80
+ .font-weight-#{$i}#{$breakpoint-suffix} {
81
+ font-weight: $weight;
82
+ }
83
+ }
84
+ }
85
+
86
+ @include text();
87
+
88
+ @include mq-each() {
89
+ @include text($breakpoint-suffix: '--' + $mq-each-target);
90
+ }
@@ -0,0 +1,3 @@
1
+ @import './after-effects/display-flow.scss';
2
+ @import './after-effects/text.scss';
3
+ @import './after-effects/spacing.scss';
@@ -0,0 +1,14 @@
1
+ @use './core.scss';
2
+
3
+ html {
4
+ text-size-adjust: 100%;
5
+ font-size: var(--root-em);
6
+ text-rendering: optimizeLegibility;
7
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
8
+ }
9
+
10
+ body {
11
+ @include core.typo(base);
12
+
13
+ font-family: var(--typo-font);
14
+ }
@@ -0,0 +1,11 @@
1
+ .v-control {
2
+ $sizes: sm, md, lg;
3
+
4
+ @each $size in $sizes {
5
+ &--#{$size} {
6
+ --control-field-rem: var(--control-field-rem-#{$size});
7
+
8
+ font-size: var(--control-field-rem);
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,62 @@
1
+ @mixin hidden-input-element {
2
+ position: absolute;
3
+ width: 1px;
4
+ height: 1px;
5
+ overflow: hidden;
6
+ clip: rect(0 0 0 0);
7
+ clip-path: inset(100%);
8
+ white-space: nowrap;
9
+ }
10
+
11
+ @mixin auto-fill-cancel {
12
+ &:-webkit-autofill {
13
+ &,
14
+ &:hover,
15
+ &:focus,
16
+ &:active {
17
+ color: inherit !important;
18
+ transition: background-color 5000s;
19
+ -webkit-text-fill-color: #fff !important;
20
+ }
21
+ }
22
+ }
23
+
24
+ @mixin elevation($z, $important: false) {
25
+ box-shadow: var(--shadow-key-umbra-#{$z}), var(--shadow-key-penumbra-#{$z}),
26
+ var(--shadow-key-ambient-#{$z}) if($important, !important, null);
27
+ }
28
+
29
+ @mixin elevation-transition(
30
+ $duration: 280ms,
31
+ $easing: cubic-bezier(0.4, 0, 0.2, 1)
32
+ ) {
33
+ transition: box-shadow $duration $easing;
34
+ will-change: box-shadow;
35
+ }
36
+
37
+ @mixin remove-tap-highlight() {
38
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
39
+
40
+ &::-moz-focus-inner {
41
+ border: 0;
42
+ }
43
+ }
44
+
45
+ @mixin button-reset() {
46
+ @include remove-tap-highlight;
47
+
48
+ padding: 0;
49
+ touch-action: manipulation;
50
+ cursor: pointer;
51
+ user-select: none;
52
+ background-color: transparent;
53
+ border: 0;
54
+ outline: 0;
55
+ appearance: none;
56
+
57
+ &,
58
+ &:hover,
59
+ &:focus {
60
+ text-decoration: none;
61
+ }
62
+ }
@@ -0,0 +1,56 @@
1
+ @function get-typo-size($level) {
2
+ @return var(--typo-#{$level}-size);
3
+ }
4
+
5
+ @function get-typo-weight($level) {
6
+ @return var(--typo-#{$level}-weight);
7
+ }
8
+
9
+ @function get-typo-height($level) {
10
+ @return var(--typo-#{$level}-height);
11
+ }
12
+
13
+ @function get-typo-spacing($level) {
14
+ @return var(--typo-#{$level}-height);
15
+ }
16
+
17
+ @function get-typo-margin($level) {
18
+ @return var(--typo-#{$level}-margin);
19
+ }
20
+
21
+ @function get-typo-color($level) {
22
+ @return var(--typo-#{$level}-color);
23
+ }
24
+
25
+ @mixin typo-size($level) {
26
+ font-size: get-typo-size($level);
27
+ }
28
+
29
+ @mixin typo-weight($level) {
30
+ font-weight: get-typo-weight($level);
31
+ }
32
+
33
+ @mixin typo-height($level) {
34
+ line-height: get-typo-height($level);
35
+ }
36
+
37
+ @mixin typo-spacing($level) {
38
+ letter-spacing: get-typo-spacing($level);
39
+ }
40
+
41
+ @mixin typo-margin($level) {
42
+ margin: get-typo-margin($level);
43
+ }
44
+
45
+ @mixin typo-color($level) {
46
+ color: get-typo-color($level);
47
+ }
48
+
49
+ @mixin typo($level) {
50
+ @include typo-size($level);
51
+ @include typo-weight($level);
52
+ @include typo-height($level);
53
+ @include typo-spacing($level);
54
+ @include typo-margin($level);
55
+ @include typo-color($level);
56
+ }
@@ -0,0 +1,2 @@
1
+ @forward './core/functions.scss';
2
+ @forward './core/typo.scss';
@@ -0,0 +1,9 @@
1
+ @use './core.scss';
2
+
3
+ $z: 24;
4
+ @while $z >= 0 {
5
+ .elevation-#{$z} {
6
+ @include core.elevation($z, true);
7
+ }
8
+ $z: $z - 1;
9
+ }
@@ -0,0 +1,57 @@
1
+ code,
2
+ kbd,
3
+ pre,
4
+ samp {
5
+ font-family: monospace;
6
+ }
7
+
8
+ code {
9
+ padding: 0.2em 0.4em;
10
+ font-size: 85%;
11
+ font-weight: 400;
12
+ color: rgba(0, 0, 0, 0.87); // @TODO
13
+ background-color: rgba(0, 0, 0, 0.05); // @TODO
14
+ border-radius: 3px; // @TODO
15
+ }
16
+
17
+ table {
18
+ display: table;
19
+ max-width: 100%;
20
+ margin: var(--table-vertical-margin) 0;
21
+ font-size: var(--table-font-size);
22
+ border-collapse: collapse;
23
+ border: 0;
24
+ border-radius: 0;
25
+ }
26
+
27
+ caption {
28
+ display: table-caption;
29
+ width: 100%;
30
+ padding: 0;
31
+ margin: 0 0 var(--table-caption-vertical-margin);
32
+ font-size: var(--table-caption-font-size);
33
+ font-weight: var(--table-caption-font-weight);
34
+ text-align: center;
35
+ }
36
+
37
+ th,
38
+ td {
39
+ height: var(--table-cell-height);
40
+ padding: var(--table-cell-vertial-padding)
41
+ var(--table-cell-horizontal-padding);
42
+ text-align: left;
43
+ vertical-align: middle;
44
+ border: 0;
45
+ }
46
+
47
+ th {
48
+ font-weight: var(--table-header-font-weight);
49
+ color: var(--table-header-color);
50
+ white-space: nowrap;
51
+ }
52
+
53
+ thead {
54
+ th {
55
+ text-align: center;
56
+ }
57
+ }
@@ -0,0 +1,9 @@
1
+ // @use '@fastkit/stylebase/normalize.css';
2
+ @use '../../../stylebase/normalize.css';
3
+ @use './variables.scss';
4
+ @use './base.scss';
5
+ @use './typo.scss';
6
+ @use './elevation.scss';
7
+ @use './group.scss';
8
+ @use './control.scss';
9
+ @use './wysiwyg.scss';
@@ -0,0 +1,11 @@
1
+ .fade {
2
+ &-enter-active,
3
+ &-leave-active {
4
+ transition: opacity var(----transition-fade);
5
+ }
6
+
7
+ &-enter-from,
8
+ &-leave-to {
9
+ opacity: 0;
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ @use './core.scss';
2
+
3
+ @for $level from 1 through 6 {
4
+ // h#{$level} {
5
+ // color: var(--palette-heading);
6
+ // }
7
+
8
+ h#{$level} {
9
+ @include core.typo('h' + $level);
10
+ }
11
+ }