@paperless/core 0.1.0-alpha.0 → 0.1.0-alpha.13
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 +125 -0
- package/README.md +17 -0
- package/dist/assets/icons/arrow.svg +1 -1
- package/dist/assets/icons/attachment.svg +1 -1
- package/dist/assets/icons/bread.svg +1 -1
- package/dist/assets/icons/calendar.svg +1 -1
- package/dist/assets/icons/car.svg +1 -1
- package/dist/assets/icons/checkmark.svg +1 -1
- package/dist/assets/icons/chevron.svg +1 -1
- package/dist/assets/icons/clock.svg +1 -1
- package/dist/assets/icons/cogs.svg +1 -1
- package/dist/assets/icons/comment.svg +1 -1
- package/dist/assets/icons/document.svg +1 -1
- package/dist/assets/icons/download.svg +1 -1
- package/dist/assets/icons/envelope.svg +1 -1
- package/dist/assets/icons/explanation.svg +1 -1
- package/dist/assets/icons/eye.svg +1 -1
- package/dist/assets/icons/filter.svg +1 -1
- package/dist/assets/icons/grid.svg +1 -1
- package/dist/assets/icons/headset.svg +1 -1
- package/dist/assets/icons/list.svg +1 -1
- package/dist/assets/icons/location.svg +1 -1
- package/dist/assets/icons/megaphone.svg +1 -1
- package/dist/assets/icons/minus.svg +1 -1
- package/dist/assets/icons/negative.svg +1 -1
- package/dist/assets/icons/pagination.svg +1 -1
- package/dist/assets/icons/payment.svg +1 -1
- package/dist/assets/icons/pencil.svg +1 -1
- package/dist/assets/icons/person.svg +1 -1
- package/dist/assets/icons/plus.svg +1 -1
- package/dist/assets/icons/question.svg +1 -1
- package/dist/assets/icons/receipt.svg +1 -1
- package/dist/assets/icons/report.svg +1 -1
- package/dist/assets/icons/search.svg +1 -1
- package/dist/assets/icons/settings.svg +1 -1
- package/dist/assets/icons/sick.svg +1 -1
- package/dist/assets/icons/tachometer.svg +1 -1
- package/dist/assets/icons/tool.svg +1 -1
- package/dist/assets/icons/trash.svg +1 -1
- package/dist/assets/icons/turn.svg +1 -1
- package/dist/assets/icons/upload.svg +1 -1
- package/dist/assets/icons/warning.svg +1 -1
- package/dist/assets/images/avatar/company-default.svg +12 -0
- package/dist/assets/images/avatar/user-default.svg +12 -0
- package/dist/assets/images/helper/helper-hover.svg +15 -0
- package/dist/assets/images/helper/helper.svg +15 -0
- package/dist/build/p-06a38756.entry.js +1 -0
- package/dist/build/p-19afe191.entry.js +1 -0
- package/dist/build/p-229f113b.js +2 -0
- package/dist/{paperless/p-98d636b6.entry.js → build/p-23980fbb.entry.js} +1 -1
- package/dist/build/p-31f80006.entry.js +1 -0
- package/dist/build/p-332028c6.entry.js +1 -0
- package/dist/build/p-5f0ec763.entry.js +1 -0
- package/dist/build/p-6c6c1137.entry.js +1 -0
- package/dist/build/p-80bf9d06.entry.js +1 -0
- package/dist/build/p-e80637b9.entry.js +1 -0
- package/dist/build/p-ec52095f.entry.js +1 -0
- package/dist/build/paperless.css +4 -3
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-6758a39e.js → index-6b6e08cc.js} +487 -9
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-avatar.cjs.entry.js +32 -0
- package/dist/cjs/{p-icon.cjs.entry.js → p-button_3.cjs.entry.js} +149 -46
- package/dist/cjs/p-counter.cjs.entry.js +19 -0
- package/dist/cjs/p-divider.cjs.entry.js +19 -0
- package/dist/cjs/p-helper.cjs.entry.js +19 -0
- package/dist/cjs/p-illustration.cjs.entry.js +11 -14
- package/dist/cjs/p-info-panel.cjs.entry.js +31 -0
- package/dist/cjs/p-pagination-item.cjs.entry.js +23 -0
- package/dist/cjs/p-pagination.cjs.entry.js +163 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +62 -20
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/collection/assets/icons/arrow.svg +1 -1
- package/dist/collection/assets/icons/attachment.svg +1 -1
- package/dist/collection/assets/icons/bread.svg +1 -1
- package/dist/collection/assets/icons/calendar.svg +1 -1
- package/dist/collection/assets/icons/car.svg +1 -1
- package/dist/collection/assets/icons/checkmark.svg +1 -1
- package/dist/collection/assets/icons/chevron.svg +1 -1
- package/dist/collection/assets/icons/clock.svg +1 -1
- package/dist/collection/assets/icons/cogs.svg +1 -1
- package/dist/collection/assets/icons/comment.svg +1 -1
- package/dist/collection/assets/icons/document.svg +1 -1
- package/dist/collection/assets/icons/download.svg +1 -1
- package/dist/collection/assets/icons/envelope.svg +1 -1
- package/dist/collection/assets/icons/explanation.svg +1 -1
- package/dist/collection/assets/icons/eye.svg +1 -1
- package/dist/collection/assets/icons/filter.svg +1 -1
- package/dist/collection/assets/icons/grid.svg +1 -1
- package/dist/collection/assets/icons/headset.svg +1 -1
- package/dist/collection/assets/icons/list.svg +1 -1
- package/dist/collection/assets/icons/location.svg +1 -1
- package/dist/collection/assets/icons/megaphone.svg +1 -1
- package/dist/collection/assets/icons/minus.svg +1 -1
- package/dist/collection/assets/icons/negative.svg +1 -1
- package/dist/collection/assets/icons/pagination.svg +1 -1
- package/dist/collection/assets/icons/payment.svg +1 -1
- package/dist/collection/assets/icons/pencil.svg +1 -1
- package/dist/collection/assets/icons/person.svg +1 -1
- package/dist/collection/assets/icons/plus.svg +1 -1
- package/dist/collection/assets/icons/question.svg +1 -1
- package/dist/collection/assets/icons/receipt.svg +1 -1
- package/dist/collection/assets/icons/report.svg +1 -1
- package/dist/collection/assets/icons/search.svg +1 -1
- package/dist/collection/assets/icons/settings.svg +1 -1
- package/dist/collection/assets/icons/sick.svg +1 -1
- package/dist/collection/assets/icons/tachometer.svg +1 -1
- package/dist/collection/assets/icons/tool.svg +1 -1
- package/dist/collection/assets/icons/trash.svg +1 -1
- package/dist/collection/assets/icons/turn.svg +1 -1
- package/dist/collection/assets/icons/upload.svg +1 -1
- package/dist/collection/assets/icons/warning.svg +1 -1
- package/dist/collection/assets/images/avatar/company-default.svg +12 -0
- package/dist/collection/assets/images/avatar/user-default.svg +12 -0
- package/dist/collection/assets/images/helper/helper-hover.svg +15 -0
- package/dist/collection/assets/images/helper/helper.svg +15 -0
- package/dist/collection/collection-manifest.json +12 -4
- package/dist/collection/components/atoms/avatar/avatar.component.css +31 -0
- package/dist/collection/components/atoms/avatar/avatar.component.js +105 -0
- package/dist/collection/components/atoms/button/button.component.css +71 -0
- package/dist/collection/components/atoms/button/button.component.js +276 -0
- package/dist/collection/components/atoms/counter/counter.component.css +5 -0
- package/dist/collection/components/atoms/counter/counter.component.js +15 -0
- package/dist/collection/components/atoms/divider/divider.component.css +3 -0
- package/dist/collection/components/atoms/divider/divider.component.js +14 -0
- package/dist/collection/components/atoms/helper/helper.component.css +7 -0
- package/dist/collection/components/atoms/helper/helper.component.js +18 -0
- package/dist/collection/components/{icon → atoms/icon}/icon.component.js +10 -11
- package/dist/collection/components/{illustration → atoms/illustration}/illustration.component.js +4 -11
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +28 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +106 -0
- package/dist/collection/components/atoms/loader/loader.component.css +26 -0
- package/dist/collection/components/atoms/loader/loader.component.js +153 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +16 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +37 -0
- package/dist/collection/components/{tooltip → atoms/tooltip}/tooltip.component.js +122 -32
- package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
- package/dist/collection/components/molecules/pagination/pagination.component.js +219 -0
- package/dist/collection/tailwind/border-radius.js +1 -0
- package/dist/collection/tailwind/grid.js +24 -4
- package/dist/collection/tailwind/rotate.js +8 -0
- package/dist/collection/tailwind/scale.js +3 -0
- package/dist/collection/tailwind.config.js +6 -7
- package/dist/{esm/p-icon.entry.js → components/icon.component.js} +67 -52
- package/dist/components/index.d.ts +9 -1
- package/dist/components/index.js +8 -0
- package/dist/components/loader.component.js +74 -0
- package/dist/components/p-avatar.d.ts +11 -0
- package/dist/components/p-avatar.js +52 -0
- package/dist/components/p-button.js +67 -8
- package/dist/components/p-counter.d.ts +11 -0
- package/dist/components/p-counter.js +33 -0
- package/dist/components/p-divider.d.ts +11 -0
- package/dist/components/p-divider.js +33 -0
- package/dist/components/p-helper.d.ts +11 -0
- package/dist/components/p-helper.js +39 -0
- package/dist/components/p-icon.js +1 -815
- package/dist/components/p-illustration.js +3 -7
- package/dist/components/p-info-panel.d.ts +11 -0
- package/dist/components/p-info-panel.js +56 -0
- package/dist/components/p-loader.d.ts +11 -0
- package/dist/components/p-loader.js +6 -0
- package/dist/components/p-pagination-item.d.ts +11 -0
- package/dist/components/p-pagination-item.js +6 -0
- package/dist/components/p-pagination.d.ts +11 -0
- package/dist/components/p-pagination.js +192 -0
- package/dist/components/p-tooltip.js +1 -1886
- package/dist/components/pagination-item.component.js +36 -0
- package/dist/components/tooltip.component.js +1932 -0
- package/dist/esm/{index-e4d80e41.js → index-5c917d13.js} +487 -10
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-avatar.entry.js +28 -0
- package/dist/esm/p-button_3.entry.js +899 -0
- package/dist/esm/p-counter.entry.js +15 -0
- package/dist/esm/p-divider.entry.js +15 -0
- package/dist/esm/p-helper.entry.js +15 -0
- package/dist/esm/p-illustration.entry.js +11 -14
- package/dist/esm/p-info-panel.entry.js +27 -0
- package/dist/esm/p-pagination-item.entry.js +19 -0
- package/dist/esm/p-pagination.entry.js +159 -0
- package/dist/esm/p-tooltip.entry.js +62 -20
- package/dist/esm/paperless.js +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/p-06a38756.entry.js +1 -0
- package/dist/paperless/p-19afe191.entry.js +1 -0
- package/dist/paperless/p-229f113b.js +2 -0
- package/dist/{build/p-98d636b6.entry.js → paperless/p-23980fbb.entry.js} +1 -1
- package/dist/paperless/p-31f80006.entry.js +1 -0
- package/dist/paperless/p-332028c6.entry.js +1 -0
- package/dist/paperless/p-5f0ec763.entry.js +1 -0
- package/dist/paperless/p-6c6c1137.entry.js +1 -0
- package/dist/paperless/p-80bf9d06.entry.js +1 -0
- package/dist/paperless/p-e80637b9.entry.js +1 -0
- package/dist/paperless/p-ec52095f.entry.js +1 -0
- package/dist/paperless/paperless.css +3843 -201
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +245 -49
- package/dist/tailwind.config.js +6 -7
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -0
- package/dist/types/components/atoms/button/button.component.d.ts +51 -0
- package/dist/types/components/atoms/counter/counter.component.d.ts +3 -0
- package/dist/types/components/atoms/divider/divider.component.d.ts +3 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +3 -0
- package/dist/types/components/{icon → atoms/icon}/icon.component.d.ts +3 -2
- package/dist/types/components/{illustration → atoms/illustration}/illustration.component.d.ts +2 -2
- package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
- package/dist/types/components/atoms/loader/loader.component.d.ts +30 -0
- package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +40 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +31 -0
- package/dist/types/components.d.ts +358 -20
- package/package.json +3 -2
- package/dist/build/p-3318b73b.entry.js +0 -1
- package/dist/build/p-6f9229a6.js +0 -2
- package/dist/build/p-711630fb.entry.js +0 -1
- package/dist/build/p-c3d80205.entry.js +0 -1
- package/dist/cjs/p-button.cjs.entry.js +0 -23
- package/dist/collection/components/button/button.component.css +0 -6
- package/dist/collection/components/button/button.component.js +0 -42
- package/dist/collection/components/tooltip/tooltip.component.css +0 -34
- package/dist/esm/p-button.entry.js +0 -19
- package/dist/paperless/p-3318b73b.entry.js +0 -1
- package/dist/paperless/p-6f9229a6.js +0 -2
- package/dist/paperless/p-711630fb.entry.js +0 -1
- package/dist/paperless/p-c3d80205.entry.js +0 -1
- package/dist/types/components/button/button.component.d.ts +0 -7
- package/dist/types/components/tooltip/tooltip.component.d.ts +0 -28
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { Component, h, Host, Prop, Watch } from '@stencil/core';
|
|
2
|
+
export class Pagination {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* The current page
|
|
6
|
+
*/
|
|
7
|
+
this.value = 1;
|
|
8
|
+
/**
|
|
9
|
+
* The amount of items per page
|
|
10
|
+
*/
|
|
11
|
+
this.pageSize = 12;
|
|
12
|
+
this._pages = [];
|
|
13
|
+
this._set = [];
|
|
14
|
+
this._nextClick = () => {
|
|
15
|
+
const nextPage = this.value + 1;
|
|
16
|
+
if (nextPage > this._pages[this._pages.length - 1]) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
this._changePage(nextPage);
|
|
20
|
+
};
|
|
21
|
+
this._pageClick = (p) => this._changePage(p);
|
|
22
|
+
this._generateSet = (range = 1, enableBoundaries = true) => {
|
|
23
|
+
const totalPages = this._pages.length;
|
|
24
|
+
if (!totalPages) {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
let start = this.value - range;
|
|
28
|
+
let end = this.value + range;
|
|
29
|
+
if (end > totalPages) {
|
|
30
|
+
end = totalPages;
|
|
31
|
+
start = totalPages - range * 2;
|
|
32
|
+
start = start < 1 ? 1 : start;
|
|
33
|
+
}
|
|
34
|
+
if (start <= 1) {
|
|
35
|
+
start = 1;
|
|
36
|
+
end = Math.min(range * 2 + 1, totalPages);
|
|
37
|
+
}
|
|
38
|
+
const set = [];
|
|
39
|
+
const previous = {
|
|
40
|
+
type: 'previous',
|
|
41
|
+
value: h("p-icon", { variant: "chevron", rotate: 90 }),
|
|
42
|
+
};
|
|
43
|
+
const next = {
|
|
44
|
+
type: 'next',
|
|
45
|
+
value: h("p-icon", { variant: "chevron", rotate: -90 }),
|
|
46
|
+
};
|
|
47
|
+
// Disable page range, display all the pages
|
|
48
|
+
if (range === null) {
|
|
49
|
+
const p = this._pages.map(p => ({
|
|
50
|
+
type: 'page',
|
|
51
|
+
value: p,
|
|
52
|
+
}));
|
|
53
|
+
return enableBoundaries ? [previous, ...p, next] : p;
|
|
54
|
+
}
|
|
55
|
+
if (enableBoundaries) {
|
|
56
|
+
set.push(previous);
|
|
57
|
+
}
|
|
58
|
+
if (start <= 3) {
|
|
59
|
+
for (let i = 1; i < start; i++) {
|
|
60
|
+
set.push({
|
|
61
|
+
type: 'page',
|
|
62
|
+
value: this._pages[i - 1],
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
set.push({
|
|
68
|
+
type: 'page',
|
|
69
|
+
value: 1,
|
|
70
|
+
});
|
|
71
|
+
set.push({
|
|
72
|
+
type: 'ellipsis',
|
|
73
|
+
value: 'ellipsis',
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
for (let i = start; i <= end; i++) {
|
|
77
|
+
set.push({
|
|
78
|
+
type: 'page',
|
|
79
|
+
value: this._pages[i - 1],
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
if (end >= totalPages - 2) {
|
|
83
|
+
for (let i = end + 1; i <= totalPages; i++) {
|
|
84
|
+
set.push({
|
|
85
|
+
type: 'page',
|
|
86
|
+
value: this._pages[i - 1],
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
set.push({
|
|
92
|
+
type: 'ellipsis',
|
|
93
|
+
});
|
|
94
|
+
set.push({
|
|
95
|
+
type: 'page',
|
|
96
|
+
value: this._pages[this._pages.length - 1],
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
if (enableBoundaries) {
|
|
100
|
+
set.push(next);
|
|
101
|
+
}
|
|
102
|
+
return set;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
componentWillRender() {
|
|
106
|
+
this._generate();
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
var _a;
|
|
110
|
+
return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map(p => {
|
|
111
|
+
if (p.type === 'previous' || p.type === 'next') {
|
|
112
|
+
return h("p-pagination-item", { onClick: () => (p.type === 'previous' ? this._previousClick() : this._nextClick()) }, p.value);
|
|
113
|
+
}
|
|
114
|
+
if (p.type === 'ellipsis') {
|
|
115
|
+
return h("p-pagination-item", null, "...");
|
|
116
|
+
}
|
|
117
|
+
return (h("p-pagination-item", { active: p.value === this.value, onClick: () => this._pageClick(p.value) }, p.value));
|
|
118
|
+
})));
|
|
119
|
+
}
|
|
120
|
+
pageChangeHandler() {
|
|
121
|
+
this._generate();
|
|
122
|
+
}
|
|
123
|
+
_generate() {
|
|
124
|
+
this._pages = this._generatePages();
|
|
125
|
+
this._set = this._generateSet();
|
|
126
|
+
}
|
|
127
|
+
_changePage(p) {
|
|
128
|
+
if (!p) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
this.value = p;
|
|
132
|
+
}
|
|
133
|
+
_previousClick() {
|
|
134
|
+
const previousPage = this.value - 1;
|
|
135
|
+
if (previousPage < this._pages[0]) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
this._changePage(previousPage);
|
|
139
|
+
}
|
|
140
|
+
_generatePages() {
|
|
141
|
+
if (!this.total || !this.pageSize) {
|
|
142
|
+
return [];
|
|
143
|
+
}
|
|
144
|
+
const pages = Math.ceil(this.total / this.pageSize);
|
|
145
|
+
return new Array(pages).fill(undefined).map((_, i) => i + 1);
|
|
146
|
+
}
|
|
147
|
+
static get is() { return "p-pagination"; }
|
|
148
|
+
static get originalStyleUrls() { return {
|
|
149
|
+
"$": ["pagination.component.scss"]
|
|
150
|
+
}; }
|
|
151
|
+
static get styleUrls() { return {
|
|
152
|
+
"$": ["pagination.component.css"]
|
|
153
|
+
}; }
|
|
154
|
+
static get properties() { return {
|
|
155
|
+
"value": {
|
|
156
|
+
"type": "number",
|
|
157
|
+
"mutable": true,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "number",
|
|
160
|
+
"resolved": "number",
|
|
161
|
+
"references": {}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": false,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": "The current page"
|
|
168
|
+
},
|
|
169
|
+
"attribute": "value",
|
|
170
|
+
"reflect": false,
|
|
171
|
+
"defaultValue": "1"
|
|
172
|
+
},
|
|
173
|
+
"pageSize": {
|
|
174
|
+
"type": "number",
|
|
175
|
+
"mutable": false,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "number",
|
|
178
|
+
"resolved": "number",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": "The amount of items per page"
|
|
186
|
+
},
|
|
187
|
+
"attribute": "page-size",
|
|
188
|
+
"reflect": false,
|
|
189
|
+
"defaultValue": "12"
|
|
190
|
+
},
|
|
191
|
+
"total": {
|
|
192
|
+
"type": "number",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "number",
|
|
196
|
+
"resolved": "number",
|
|
197
|
+
"references": {}
|
|
198
|
+
},
|
|
199
|
+
"required": true,
|
|
200
|
+
"optional": false,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": "The total amount of items"
|
|
204
|
+
},
|
|
205
|
+
"attribute": "total",
|
|
206
|
+
"reflect": false
|
|
207
|
+
}
|
|
208
|
+
}; }
|
|
209
|
+
static get watchers() { return [{
|
|
210
|
+
"propName": "value",
|
|
211
|
+
"methodName": "pageChangeHandler"
|
|
212
|
+
}, {
|
|
213
|
+
"propName": "pageSize",
|
|
214
|
+
"methodName": "pageChangeHandler"
|
|
215
|
+
}, {
|
|
216
|
+
"propName": "total",
|
|
217
|
+
"methodName": "pageChangeHandler"
|
|
218
|
+
}]; }
|
|
219
|
+
}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
gridTemplateColumns: {
|
|
3
|
+
'13': 'repeat(13, minmax(0, 1fr))',
|
|
4
|
+
'14': 'repeat(14, minmax(0, 1fr))',
|
|
5
|
+
'15': 'repeat(15, minmax(0, 1fr))',
|
|
6
|
+
'16': 'repeat(16, minmax(0, 1fr))',
|
|
7
|
+
},
|
|
8
|
+
gridColumn: {
|
|
9
|
+
'span-13': 'span 13 / span 13',
|
|
10
|
+
'span-14': 'span 14 / span 14',
|
|
11
|
+
'span-15': 'span 15 / span 15',
|
|
12
|
+
'span-16': 'span 16 / span 16',
|
|
13
|
+
},
|
|
14
|
+
gridColumnStart: {
|
|
15
|
+
'13': '13',
|
|
16
|
+
'14': '14',
|
|
17
|
+
'15': '15',
|
|
18
|
+
'16': '16',
|
|
19
|
+
},
|
|
20
|
+
gridColumnEnd: {
|
|
21
|
+
'13': '13',
|
|
22
|
+
'14': '14',
|
|
23
|
+
'15': '15',
|
|
24
|
+
'16': '16',
|
|
25
|
+
},
|
|
6
26
|
};
|
|
@@ -2,21 +2,20 @@ const colors = require('./tailwind/colors');
|
|
|
2
2
|
const shadows = require('./tailwind/shadows');
|
|
3
3
|
const borderRadius = require('./tailwind/border-radius');
|
|
4
4
|
const grid = require('./tailwind/grid');
|
|
5
|
+
const scale = require('./tailwind/scale');
|
|
6
|
+
const rotate = require('./tailwind/rotate');
|
|
5
7
|
|
|
6
8
|
module.exports = {
|
|
7
9
|
important: true,
|
|
8
|
-
safelist: [
|
|
9
|
-
{
|
|
10
|
-
pattern: /./,
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
10
|
theme: {
|
|
14
11
|
colors,
|
|
15
12
|
boxShadow: shadows,
|
|
16
13
|
dropShadow: shadows,
|
|
17
14
|
borderRadius,
|
|
18
|
-
|
|
19
|
-
grid,
|
|
15
|
+
extend: {
|
|
16
|
+
...grid,
|
|
17
|
+
scale,
|
|
18
|
+
rotate,
|
|
20
19
|
},
|
|
21
20
|
},
|
|
22
21
|
variants: {},
|