@okshaun/components 0.4.0 → 0.4.1
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/dist/index.js +72 -79
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +3 -1
- package/dist/preset.js +81 -1
- package/dist/preset.js.map +1 -1
- package/package.json +1 -1
|
@@ -188,7 +188,9 @@
|
|
|
188
188
|
"background]___[value:transparent",
|
|
189
189
|
"flexWrap]___[value:wrap",
|
|
190
190
|
"padding]___[value:80",
|
|
191
|
-
"
|
|
191
|
+
"transitionProperty]___[value:transform",
|
|
192
|
+
"transitionDuration]___[value:normal",
|
|
193
|
+
"transitionTimingFunction]___[value:default",
|
|
192
194
|
"transform]___[value:rotate(180deg)]___[cond:&[data-open=\"true\"]",
|
|
193
195
|
"offset]___[value:4",
|
|
194
196
|
"width]___[value:20",
|
package/dist/preset.js
CHANGED
|
@@ -158,6 +158,44 @@ const durations = {
|
|
|
158
158
|
value: "500ms"
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
+
const transitions$1 = {
|
|
162
|
+
none: {
|
|
163
|
+
value: "none"
|
|
164
|
+
},
|
|
165
|
+
all: {
|
|
166
|
+
value: "all"
|
|
167
|
+
},
|
|
168
|
+
common: {
|
|
169
|
+
value: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform"
|
|
170
|
+
},
|
|
171
|
+
colors: {
|
|
172
|
+
value: "background-color, border-color, color, fill, stroke"
|
|
173
|
+
},
|
|
174
|
+
opacity: {
|
|
175
|
+
value: "opacity"
|
|
176
|
+
},
|
|
177
|
+
shadow: {
|
|
178
|
+
value: "box-shadow"
|
|
179
|
+
},
|
|
180
|
+
transform: {
|
|
181
|
+
value: "transform"
|
|
182
|
+
},
|
|
183
|
+
position: {
|
|
184
|
+
value: "top, right, bottom, left"
|
|
185
|
+
},
|
|
186
|
+
size: {
|
|
187
|
+
value: "width, height"
|
|
188
|
+
},
|
|
189
|
+
spacing: {
|
|
190
|
+
value: "margin, padding"
|
|
191
|
+
},
|
|
192
|
+
outline: {
|
|
193
|
+
value: "outline, outline-color, outline-offset"
|
|
194
|
+
},
|
|
195
|
+
border: {
|
|
196
|
+
value: "border, border-color"
|
|
197
|
+
}
|
|
198
|
+
};
|
|
161
199
|
const radii = {
|
|
162
200
|
"0": { value: "{sizes.0}" },
|
|
163
201
|
"1": { value: "{sizes.1}" },
|
|
@@ -235,12 +273,48 @@ const blurs = {
|
|
|
235
273
|
value: "64px"
|
|
236
274
|
}
|
|
237
275
|
};
|
|
276
|
+
const borders = {
|
|
277
|
+
none: {
|
|
278
|
+
value: "none"
|
|
279
|
+
},
|
|
280
|
+
subtle: {
|
|
281
|
+
value: "1px solid {colors.border}"
|
|
282
|
+
},
|
|
283
|
+
default: {
|
|
284
|
+
value: "1px solid {colors.border}"
|
|
285
|
+
},
|
|
286
|
+
strong: {
|
|
287
|
+
value: "2px solid {colors.border.bold}"
|
|
288
|
+
},
|
|
289
|
+
input: {
|
|
290
|
+
value: "1px solid {colors.border.input}"
|
|
291
|
+
},
|
|
292
|
+
focused: {
|
|
293
|
+
value: "2px solid {colors.border.focused}"
|
|
294
|
+
},
|
|
295
|
+
selected: {
|
|
296
|
+
value: "2px solid {colors.border.selected}"
|
|
297
|
+
},
|
|
298
|
+
success: {
|
|
299
|
+
value: "1px solid {colors.border.success}"
|
|
300
|
+
},
|
|
301
|
+
warning: {
|
|
302
|
+
value: "1px solid {colors.border.warning}"
|
|
303
|
+
},
|
|
304
|
+
danger: {
|
|
305
|
+
value: "1px solid {colors.border.danger}"
|
|
306
|
+
},
|
|
307
|
+
info: {
|
|
308
|
+
value: "1px solid {colors.border.info}"
|
|
309
|
+
}
|
|
310
|
+
};
|
|
238
311
|
const tokens = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
239
312
|
__proto__: null,
|
|
240
313
|
animations,
|
|
241
314
|
aspectRatios,
|
|
242
315
|
blurs,
|
|
243
316
|
borderWidths,
|
|
317
|
+
borders,
|
|
244
318
|
breakpoints: breakpoints$1,
|
|
245
319
|
colors: colors$1,
|
|
246
320
|
containerSizes,
|
|
@@ -256,6 +330,7 @@ const tokens = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
256
330
|
radii,
|
|
257
331
|
shadows,
|
|
258
332
|
sizes,
|
|
333
|
+
transitions: transitions$1,
|
|
259
334
|
utilitySizes
|
|
260
335
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
261
336
|
var conditions$1 = {
|
|
@@ -6719,7 +6794,12 @@ const okshaunPreset = definePreset$1({
|
|
|
6719
6794
|
}
|
|
6720
6795
|
},
|
|
6721
6796
|
utilities: {
|
|
6722
|
-
...pandaBasePresetUtilities
|
|
6797
|
+
...pandaBasePresetUtilities,
|
|
6798
|
+
// Custom utility for transitionProperty that uses our transition tokens
|
|
6799
|
+
transitionProperty: {
|
|
6800
|
+
className: "transition-property",
|
|
6801
|
+
values: "transitions"
|
|
6802
|
+
}
|
|
6723
6803
|
},
|
|
6724
6804
|
// Global styles
|
|
6725
6805
|
globalCss: {
|