Skip to content

Commit fe907be

Browse files
author
Cem Yılmaz
committed
Added new plugins
1 parent cf8d22a commit fe907be

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/plugins.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export const functionalPlugins = new Map<string, FunctionalPlugin[]>([
113113
["border", [
114114
{scaleKey: "borderWidth", ns: 'borderWidth', class: ['border-width'], type: 'line-width'},
115115
{scaleKey: "borderColor", ns: 'borderColor', class: ['border-color'], type: 'color'},
116-
{scaleKey: "borderStyle", ns: 'borderStyle', class: ['border-style'], type: 'line-width'},
117116
]],
118117
["ring", [
119118
{scaleKey: "ringWidth", ns: 'ringWidth', class: ['box-shadow'], type: 'line-width'},
@@ -138,6 +137,12 @@ export const functionalPlugins = new Map<string, FunctionalPlugin[]>([
138137
["gap", [
139138
{scaleKey: "gap", ns: 'gap', class: ['gap'], type: 'length'},
140139
]],
140+
["gap-x", [
141+
{scaleKey: "gap", ns: 'gapX', class: ['gap'], type: 'length'},
142+
]],
143+
["gap-y", [
144+
{scaleKey: "gap", ns: 'gapY', class: ['gap'], type: 'length'},
145+
]],
141146
["col", [
142147
{scaleKey: "gridColumn", ns: 'gridColumn', class: ['grid-column'], type: 'number'},
143148
]],
@@ -214,6 +219,9 @@ export const functionalPlugins = new Map<string, FunctionalPlugin[]>([
214219
["end", [
215220
{scaleKey: "inset", ns: 'insetInlineEnd', class: ['inset-inline-end'], type: 'length', supportNegative: true},
216221
]],
222+
["order", [
223+
{scaleKey: "order", ns: 'order', class: ['order'], type: 'length', supportNegative: true},
224+
]],
217225
]);
218226

219227
export const namedPlugins = new Map<string, NamedPlugin>([
@@ -319,14 +327,14 @@ export const namedPlugins = new Map<string, NamedPlugin>([
319327
["justify-evenly", {class: ['justify-content'], value: 'space-evenly', ns: 'justifyContent'}],
320328

321329
// Flex Grow & Shrink
322-
["flex-grow", {class: ['flex-grow'], value: '1', ns: 'flexGrow'}],
323-
["flex-grow-0", {class: ['flex-grow'], value: '0', ns: 'flexGrow'}],
324330
["grow", {class: ['flex-grow'], value: '1', ns: 'flexGrow'}],
325331
["grow-0", {class: ['flex-grow'], value: '0', ns: 'flexGrow'}],
326-
["flex-shrink", {class: ['flex-shrink'], value: '1', ns: 'flexShrink'}],
327-
["flex-shrink-0", {class: ['flex-shrink'], value: '0', ns: 'flexShrink'}],
332+
["flex-grow", {class: ['flex-grow'], value: '1', ns: 'flexGrow'}],
333+
["flex-grow-0", {class: ['flex-grow'], value: '0', ns: 'flexGrow'}],
328334
["shrink", {class: ['flex-shrink'], value: '1', ns: 'flexShrink'}],
329335
["shrink-0", {class: ['flex-shrink'], value: '0', ns: 'flexShrink'}],
336+
["flex-shrink", {class: ['flex-shrink'], value: '1', ns: 'flexShrink'}],
337+
["flex-shrink-0", {class: ['flex-shrink'], value: '0', ns: 'flexShrink'}],
330338

331339
])
332340

0 commit comments

Comments
 (0)