@ternarytech-io/gears-ui 0.3.0 → 0.3.2
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 +1 -1
- package/package.json +2 -1
- package/src/components/TAccentPicker.vue +41 -41
- package/src/components/TContainerPicker.vue +22 -22
- package/src/components/TDensityPicker.vue +19 -19
- package/src/components/TEditableTable.vue +203 -203
- package/src/components/TFontPicker.vue +23 -23
- package/src/components/TIconPicker.vue +109 -0
- package/src/components/TNavPositionPicker.vue +22 -22
- package/src/components/TScaledFrame.vue +36 -36
- package/src/components/TShell.vue +82 -72
- package/src/components/TSortableTree.vue +73 -73
- package/src/components/TSortableTreeList.vue +60 -60
- package/src/components/TSparkline.vue +34 -34
- package/src/components/TStatCard.vue +56 -56
- package/src/components/TThemeBasePicker.vue +22 -22
- package/src/components/sortableTree.ts +19 -19
- package/src/data/tablerIcons.ts +5 -0
- package/src/index.ts +230 -227
- package/src/plugins/charts.ts +4 -4
- package/src/styles/gears.css +21 -12
package/src/index.ts
CHANGED
|
@@ -1,227 +1,230 @@
|
|
|
1
|
-
// Gears UI: Vue components on Tabler. Import the styles once (`@ternarytech-io/gears-ui/styles.css`), then either
|
|
2
|
-
// install the plugin (registers every component globally) or import components one by one.
|
|
3
|
-
// Components that need an optional library have their own entry points, so apps that don't use
|
|
4
|
-
// them don't need the library: `@ternarytech-io/gears-ui/code-editor` (Monaco) and `@ternarytech-io/gears-ui/plugins` (Tom
|
|
5
|
-
// Select, Coloris, Vanilla Calendar Pro, Dropzone, IMask, noUiSlider, SortableJS, HugeRTE).
|
|
6
|
-
import type { App } from 'vue'
|
|
7
|
-
import TAccentPicker from './components/TAccentPicker.vue'
|
|
8
|
-
import TAdvancedTable from './components/TAdvancedTable.vue'
|
|
9
|
-
import TAlert from './components/TAlert.vue'
|
|
10
|
-
import TAppLayout from './components/TAppLayout.vue'
|
|
11
|
-
import TAuthLayout from './components/TAuthLayout.vue'
|
|
12
|
-
import TAvatar from './components/TAvatar.vue'
|
|
13
|
-
import TBadge from './components/TBadge.vue'
|
|
14
|
-
import TButton from './components/TButton.vue'
|
|
15
|
-
import TCard from './components/TCard.vue'
|
|
16
|
-
import TCheckbox from './components/TCheckbox.vue'
|
|
17
|
-
import TColorModeButton from './components/TColorModeButton.vue'
|
|
18
|
-
import TCommandPalette from './components/TCommandPalette.vue'
|
|
19
|
-
import TContainerPicker from './components/TContainerPicker.vue'
|
|
20
|
-
import TCopyButton from './components/TCopyButton.vue'
|
|
21
|
-
import TDataGrid from './components/TDataGrid.vue'
|
|
22
|
-
import TDataGridItem from './components/TDataGridItem.vue'
|
|
23
|
-
import TDensityPicker from './components/TDensityPicker.vue'
|
|
24
|
-
import TDropdown from './components/TDropdown.vue'
|
|
25
|
-
import TEditableTable from './components/TEditableTable.vue'
|
|
26
|
-
import TEmpty from './components/TEmpty.vue'
|
|
27
|
-
import TFieldGroup from './components/TFieldGroup.vue'
|
|
28
|
-
import TFileUpload from './components/TFileUpload.vue'
|
|
29
|
-
import TFontPicker from './components/TFontPicker.vue'
|
|
30
|
-
import TFormField from './components/TFormField.vue'
|
|
31
|
-
import TIcon from './components/TIcon.vue'
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
export
|
|
140
|
-
export {
|
|
141
|
-
export {
|
|
142
|
-
export {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
1
|
+
// Gears UI: Vue components on Tabler. Import the styles once (`@ternarytech-io/gears-ui/styles.css`), then either
|
|
2
|
+
// install the plugin (registers every component globally) or import components one by one.
|
|
3
|
+
// Components that need an optional library have their own entry points, so apps that don't use
|
|
4
|
+
// them don't need the library: `@ternarytech-io/gears-ui/code-editor` (Monaco) and `@ternarytech-io/gears-ui/plugins` (Tom
|
|
5
|
+
// Select, Coloris, Vanilla Calendar Pro, Dropzone, IMask, noUiSlider, SortableJS, HugeRTE).
|
|
6
|
+
import type { App } from 'vue'
|
|
7
|
+
import TAccentPicker from './components/TAccentPicker.vue'
|
|
8
|
+
import TAdvancedTable from './components/TAdvancedTable.vue'
|
|
9
|
+
import TAlert from './components/TAlert.vue'
|
|
10
|
+
import TAppLayout from './components/TAppLayout.vue'
|
|
11
|
+
import TAuthLayout from './components/TAuthLayout.vue'
|
|
12
|
+
import TAvatar from './components/TAvatar.vue'
|
|
13
|
+
import TBadge from './components/TBadge.vue'
|
|
14
|
+
import TButton from './components/TButton.vue'
|
|
15
|
+
import TCard from './components/TCard.vue'
|
|
16
|
+
import TCheckbox from './components/TCheckbox.vue'
|
|
17
|
+
import TColorModeButton from './components/TColorModeButton.vue'
|
|
18
|
+
import TCommandPalette from './components/TCommandPalette.vue'
|
|
19
|
+
import TContainerPicker from './components/TContainerPicker.vue'
|
|
20
|
+
import TCopyButton from './components/TCopyButton.vue'
|
|
21
|
+
import TDataGrid from './components/TDataGrid.vue'
|
|
22
|
+
import TDataGridItem from './components/TDataGridItem.vue'
|
|
23
|
+
import TDensityPicker from './components/TDensityPicker.vue'
|
|
24
|
+
import TDropdown from './components/TDropdown.vue'
|
|
25
|
+
import TEditableTable from './components/TEditableTable.vue'
|
|
26
|
+
import TEmpty from './components/TEmpty.vue'
|
|
27
|
+
import TFieldGroup from './components/TFieldGroup.vue'
|
|
28
|
+
import TFileUpload from './components/TFileUpload.vue'
|
|
29
|
+
import TFontPicker from './components/TFontPicker.vue'
|
|
30
|
+
import TFormField from './components/TFormField.vue'
|
|
31
|
+
import TIcon from './components/TIcon.vue'
|
|
32
|
+
import TIconPicker from './components/TIconPicker.vue'
|
|
33
|
+
import TImageUpload from './components/TImageUpload.vue'
|
|
34
|
+
import TInput from './components/TInput.vue'
|
|
35
|
+
import TInputNumber from './components/TInputNumber.vue'
|
|
36
|
+
import TInputTags from './components/TInputTags.vue'
|
|
37
|
+
import TLogView from './components/TLogView.vue'
|
|
38
|
+
import TModal from './components/TModal.vue'
|
|
39
|
+
import TNav from './components/TNav.vue'
|
|
40
|
+
import TNavPositionPicker from './components/TNavPositionPicker.vue'
|
|
41
|
+
import TPage from './components/TPage.vue'
|
|
42
|
+
import TPagination from './components/TPagination.vue'
|
|
43
|
+
import TPanelList from './components/TPanelList.vue'
|
|
44
|
+
import TProgress from './components/TProgress.vue'
|
|
45
|
+
import TRadioGroup from './components/TRadioGroup.vue'
|
|
46
|
+
import TRadiusPicker from './components/TRadiusPicker.vue'
|
|
47
|
+
import TScaledFrame from './components/TScaledFrame.vue'
|
|
48
|
+
import TSearchButton from './components/TSearchButton.vue'
|
|
49
|
+
import TSectionLayout from './components/TSectionLayout.vue'
|
|
50
|
+
import TSelect from './components/TSelect.vue'
|
|
51
|
+
import TSelectMenu from './components/TSelectMenu.vue'
|
|
52
|
+
import TSeparator from './components/TSeparator.vue'
|
|
53
|
+
import TShell from './components/TShell.vue'
|
|
54
|
+
import TSkeleton from './components/TSkeleton.vue'
|
|
55
|
+
import TSlideover from './components/TSlideover.vue'
|
|
56
|
+
import TSparkline from './components/TSparkline.vue'
|
|
57
|
+
import TSpinner from './components/TSpinner.vue'
|
|
58
|
+
import TSplitter from './components/TSplitter.vue'
|
|
59
|
+
import TStatCard from './components/TStatCard.vue'
|
|
60
|
+
import TSteps from './components/TSteps.vue'
|
|
61
|
+
import TSwitch from './components/TSwitch.vue'
|
|
62
|
+
import TTable from './components/TTable.vue'
|
|
63
|
+
import TTabs from './components/TTabs.vue'
|
|
64
|
+
import TTextarea from './components/TTextarea.vue'
|
|
65
|
+
import TThemeBasePicker from './components/TThemeBasePicker.vue'
|
|
66
|
+
import TThemeScope from './components/TThemeScope.vue'
|
|
67
|
+
import TToaster from './components/TToaster.vue'
|
|
68
|
+
import TTooltip from './components/TTooltip.vue'
|
|
69
|
+
import TTopbar from './components/TTopbar.vue'
|
|
70
|
+
import TVectorMap from './components/TVectorMap.vue'
|
|
71
|
+
|
|
72
|
+
export {
|
|
73
|
+
TAccentPicker,
|
|
74
|
+
TAdvancedTable,
|
|
75
|
+
TAlert,
|
|
76
|
+
TAppLayout,
|
|
77
|
+
TAuthLayout,
|
|
78
|
+
TAvatar,
|
|
79
|
+
TBadge,
|
|
80
|
+
TButton,
|
|
81
|
+
TCard,
|
|
82
|
+
TCheckbox,
|
|
83
|
+
TColorModeButton,
|
|
84
|
+
TCommandPalette,
|
|
85
|
+
TContainerPicker,
|
|
86
|
+
TCopyButton,
|
|
87
|
+
TDataGrid,
|
|
88
|
+
TDataGridItem,
|
|
89
|
+
TDensityPicker,
|
|
90
|
+
TDropdown,
|
|
91
|
+
TEditableTable,
|
|
92
|
+
TEmpty,
|
|
93
|
+
TFieldGroup,
|
|
94
|
+
TFileUpload,
|
|
95
|
+
TFontPicker,
|
|
96
|
+
TFormField,
|
|
97
|
+
TIcon,
|
|
98
|
+
TIconPicker,
|
|
99
|
+
TImageUpload,
|
|
100
|
+
TInput,
|
|
101
|
+
TInputNumber,
|
|
102
|
+
TInputTags,
|
|
103
|
+
TLogView,
|
|
104
|
+
TModal,
|
|
105
|
+
TNav,
|
|
106
|
+
TNavPositionPicker,
|
|
107
|
+
TPage,
|
|
108
|
+
TPagination,
|
|
109
|
+
TPanelList,
|
|
110
|
+
TProgress,
|
|
111
|
+
TRadioGroup,
|
|
112
|
+
TRadiusPicker,
|
|
113
|
+
TScaledFrame,
|
|
114
|
+
TSearchButton,
|
|
115
|
+
TSectionLayout,
|
|
116
|
+
TSelect,
|
|
117
|
+
TSelectMenu,
|
|
118
|
+
TSeparator,
|
|
119
|
+
TShell,
|
|
120
|
+
TSkeleton,
|
|
121
|
+
TSlideover,
|
|
122
|
+
TSparkline,
|
|
123
|
+
TSpinner,
|
|
124
|
+
TSplitter,
|
|
125
|
+
TStatCard,
|
|
126
|
+
TSteps,
|
|
127
|
+
TSwitch,
|
|
128
|
+
TTable,
|
|
129
|
+
TTabs,
|
|
130
|
+
TTextarea,
|
|
131
|
+
TThemeBasePicker,
|
|
132
|
+
TThemeScope,
|
|
133
|
+
TToaster,
|
|
134
|
+
TTooltip,
|
|
135
|
+
TTopbar,
|
|
136
|
+
TVectorMap
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export * from './types'
|
|
140
|
+
export { isCustomAccent, themeAccents, themeBases, themeContainers, themeDensities, themeFonts, themeNavs, themeRadii, themeRadiusSizes } from './theme'
|
|
141
|
+
export { useColorMode, type ColorMode } from './composables/useColorMode'
|
|
142
|
+
export { useCommandPalette } from './composables/useCommandPalette'
|
|
143
|
+
export { useField } from './composables/useField'
|
|
144
|
+
export { useToast, type Toast } from './composables/useToast'
|
|
145
|
+
|
|
146
|
+
const components = {
|
|
147
|
+
TAccentPicker, TAdvancedTable, TAlert, TAppLayout, TAuthLayout, TAvatar, TBadge, TButton, TCard,
|
|
148
|
+
TCheckbox, TColorModeButton, TCommandPalette, TContainerPicker, TCopyButton, TDataGrid, TDataGridItem, TDensityPicker,
|
|
149
|
+
TDropdown, TEditableTable, TEmpty, TFieldGroup, TFileUpload, TFontPicker, TFormField, TIcon, TIconPicker, TImageUpload,
|
|
150
|
+
TInput, TInputNumber, TInputTags, TLogView, TModal, TNav, TNavPositionPicker, TPage, TPagination,
|
|
151
|
+
TPanelList, TProgress, TRadioGroup, TRadiusPicker, TScaledFrame, TSearchButton, TSectionLayout,
|
|
152
|
+
TSelect, TSelectMenu, TSeparator, TShell, TSkeleton, TSlideover, TSparkline, TSpinner, TSplitter, TStatCard,
|
|
153
|
+
TSteps, TSwitch, TTable, TTabs, TTextarea, TThemeBasePicker, TThemeScope, TToaster, TTooltip,
|
|
154
|
+
TTopbar, TVectorMap
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export default {
|
|
158
|
+
install(app: App) {
|
|
159
|
+
for (const [name, component] of Object.entries(components)) app.component(name, component)
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
declare module 'vue' {
|
|
164
|
+
export interface GlobalComponents {
|
|
165
|
+
TAccentPicker: typeof TAccentPicker
|
|
166
|
+
TAdvancedTable: typeof TAdvancedTable
|
|
167
|
+
TAlert: typeof TAlert
|
|
168
|
+
TAppLayout: typeof TAppLayout
|
|
169
|
+
TAuthLayout: typeof TAuthLayout
|
|
170
|
+
TAvatar: typeof TAvatar
|
|
171
|
+
TBadge: typeof TBadge
|
|
172
|
+
TButton: typeof TButton
|
|
173
|
+
TCard: typeof TCard
|
|
174
|
+
TCheckbox: typeof TCheckbox
|
|
175
|
+
TColorModeButton: typeof TColorModeButton
|
|
176
|
+
TCommandPalette: typeof TCommandPalette
|
|
177
|
+
TContainerPicker: typeof TContainerPicker
|
|
178
|
+
TCopyButton: typeof TCopyButton
|
|
179
|
+
TDataGrid: typeof TDataGrid
|
|
180
|
+
TDataGridItem: typeof TDataGridItem
|
|
181
|
+
TDensityPicker: typeof TDensityPicker
|
|
182
|
+
TDropdown: typeof TDropdown
|
|
183
|
+
TEditableTable: typeof TEditableTable
|
|
184
|
+
TEmpty: typeof TEmpty
|
|
185
|
+
TFieldGroup: typeof TFieldGroup
|
|
186
|
+
TFileUpload: typeof TFileUpload
|
|
187
|
+
TFontPicker: typeof TFontPicker
|
|
188
|
+
TFormField: typeof TFormField
|
|
189
|
+
TIcon: typeof TIcon
|
|
190
|
+
TIconPicker: typeof TIconPicker
|
|
191
|
+
TImageUpload: typeof TImageUpload
|
|
192
|
+
TInput: typeof TInput
|
|
193
|
+
TInputNumber: typeof TInputNumber
|
|
194
|
+
TInputTags: typeof TInputTags
|
|
195
|
+
TLogView: typeof TLogView
|
|
196
|
+
TModal: typeof TModal
|
|
197
|
+
TNav: typeof TNav
|
|
198
|
+
TNavPositionPicker: typeof TNavPositionPicker
|
|
199
|
+
TPage: typeof TPage
|
|
200
|
+
TPagination: typeof TPagination
|
|
201
|
+
TPanelList: typeof TPanelList
|
|
202
|
+
TProgress: typeof TProgress
|
|
203
|
+
TRadioGroup: typeof TRadioGroup
|
|
204
|
+
TRadiusPicker: typeof TRadiusPicker
|
|
205
|
+
TScaledFrame: typeof TScaledFrame
|
|
206
|
+
TSearchButton: typeof TSearchButton
|
|
207
|
+
TSectionLayout: typeof TSectionLayout
|
|
208
|
+
TSelect: typeof TSelect
|
|
209
|
+
TSelectMenu: typeof TSelectMenu
|
|
210
|
+
TSeparator: typeof TSeparator
|
|
211
|
+
TShell: typeof TShell
|
|
212
|
+
TSkeleton: typeof TSkeleton
|
|
213
|
+
TSlideover: typeof TSlideover
|
|
214
|
+
TSparkline: typeof TSparkline
|
|
215
|
+
TSpinner: typeof TSpinner
|
|
216
|
+
TSplitter: typeof TSplitter
|
|
217
|
+
TStatCard: typeof TStatCard
|
|
218
|
+
TSteps: typeof TSteps
|
|
219
|
+
TSwitch: typeof TSwitch
|
|
220
|
+
TTable: typeof TTable
|
|
221
|
+
TTabs: typeof TTabs
|
|
222
|
+
TTextarea: typeof TTextarea
|
|
223
|
+
TThemeBasePicker: typeof TThemeBasePicker
|
|
224
|
+
TThemeScope: typeof TThemeScope
|
|
225
|
+
TToaster: typeof TToaster
|
|
226
|
+
TTooltip: typeof TTooltip
|
|
227
|
+
TTopbar: typeof TTopbar
|
|
228
|
+
TVectorMap: typeof TVectorMap
|
|
229
|
+
}
|
|
230
|
+
}
|
package/src/plugins/charts.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Loads ApexCharts (the library Tabler's charts use), the first time a TChart is shown.
|
|
2
|
-
import { once } from './once'
|
|
3
|
-
|
|
4
|
-
export const loadApexCharts = once(async () => (await import('apexcharts')).default)
|
|
1
|
+
// Loads ApexCharts (the library Tabler's charts use), the first time a TChart is shown.
|
|
2
|
+
import { once } from './once'
|
|
3
|
+
|
|
4
|
+
export const loadApexCharts = once(async () => (await import('apexcharts')).default)
|
package/src/styles/gears.css
CHANGED
|
@@ -582,20 +582,29 @@
|
|
|
582
582
|
|
|
583
583
|
/* Density (TThemeScope's theme.density, or data-t-density on any element): the padding inside
|
|
584
584
|
cards, tables, buttons and fields, and the page's gaps (--t-gap, for layouts to use).
|
|
585
|
-
Comfortable is Tabler's own spacing.
|
|
586
|
-
|
|
585
|
+
Comfortable is Tabler's own spacing. Each density stops at a nested density (an App Builder
|
|
586
|
+
preview inside a compact Studio keeps its own), so the rules are scoped "to" the next one, and
|
|
587
|
+
every density sets the variables it inherits. */
|
|
588
|
+
[data-t-density] { --t-gap: 1rem; --tblr-page-padding-y: var(--tblr-spacer-4); }
|
|
587
589
|
[data-t-density=compact] { --t-gap: 0.625rem; --tblr-page-padding-y: 0.75rem; }
|
|
588
590
|
[data-t-density=spacious] { --t-gap: 1.5rem; --tblr-page-padding-y: 2rem; }
|
|
589
|
-
[data-t-density=compact]
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
[data-t-density=spacious]
|
|
591
|
+
@scope ([data-t-density=compact]) to ([data-t-density]) {
|
|
592
|
+
:scope .card { --tblr-card-spacer-y: 0.75rem; --tblr-card-spacer-x: 0.875rem; --tblr-card-cap-padding-y: 0.625rem; --tblr-card-cap-padding-x: 0.875rem; --tblr-card-title-spacer-y: 0.625rem; }
|
|
593
|
+
:scope .table:not(.table-sm) > :not(caption) > * > * { padding: 0.375rem 0.625rem; }
|
|
594
|
+
:scope .btn:not(.btn-sm, .btn-lg, .btn-xs, .btn-icon) { --tblr-btn-padding-y: 0.3125rem; --tblr-btn-padding-x: 0.75rem; }
|
|
595
|
+
:scope :is(.form-control, .form-select):not(.form-control-sm, .form-select-sm, .form-control-lg, .form-select-lg) { --tblr-control-padding-y: 0.3125rem; --tblr-control-padding-x: 0.625rem; }
|
|
596
|
+
:scope .navbar-vertical .nav-link { padding-block: 0.3125rem; }
|
|
597
|
+
/* Tabler sizes an input's icon for a comfortable input (2.5rem); here it takes the input's height, so it stays centred. */
|
|
598
|
+
:scope .input-icon-addon { height: auto; }
|
|
599
|
+
}
|
|
600
|
+
@scope ([data-t-density=spacious]) to ([data-t-density]) {
|
|
601
|
+
:scope .card { --tblr-card-spacer-y: 1.75rem; --tblr-card-spacer-x: 1.75rem; --tblr-card-cap-padding-y: 1.5rem; --tblr-card-cap-padding-x: 1.75rem; --tblr-card-title-spacer-y: 1.5rem; }
|
|
602
|
+
:scope .table:not(.table-sm) > :not(caption) > * > * { padding: 1rem 1.25rem; }
|
|
603
|
+
:scope .btn:not(.btn-sm, .btn-lg, .btn-xs, .btn-icon) { --tblr-btn-padding-y: 0.75rem; --tblr-btn-padding-x: 1.375rem; }
|
|
604
|
+
:scope :is(.form-control, .form-select):not(.form-control-sm, .form-select-sm, .form-control-lg, .form-select-lg) { --tblr-control-padding-y: 0.75rem; --tblr-control-padding-x: 1.125rem; }
|
|
605
|
+
:scope .navbar-vertical .nav-link { padding-block: 0.75rem; }
|
|
606
|
+
:scope .input-icon-addon { height: auto; }
|
|
607
|
+
}
|
|
599
608
|
|
|
600
609
|
/* Layout sketches (TNavPositionPicker, TContainerPicker, TDensityPicker): a page drawn in a tile. */
|
|
601
610
|
.t-sketch { display: flex; gap: 3px; width: 5.5rem; height: 3.5rem; padding: 3px; border-radius: 4px; }
|