cetec-design-system 3.0.0 → 3.0.1-next.0
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 +13 -2
- package/dist/containerSizes-nJuD-1Ap.js +47 -0
- package/dist/containerSizes-nJuD-1Ap.js.map +1 -0
- package/dist/index.js +30 -32
- package/dist/index.js.map +1 -1
- package/dist/preset.js +10566 -3
- package/dist/preset.js.map +1 -1
- package/dist/types/index.d.ts +0 -18
- package/dist/types/preset.d.ts +1 -1
- package/package.json +3 -2
- package/dist/cetec-preset-D23KFUx3.js +0 -10612
- package/dist/cetec-preset-D23KFUx3.js.map +0 -1
package/README.md
CHANGED
|
@@ -129,8 +129,19 @@ npm install cetec-design-system
|
|
|
129
129
|
|
|
130
130
|
### Panda CSS Configuration
|
|
131
131
|
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
Import the Panda preset from its build-time-only entrypoint:
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import { defineConfig } from '@pandacss/dev';
|
|
136
|
+
import { cetecPreset } from 'cetec-design-system/preset';
|
|
137
|
+
|
|
138
|
+
export default defineConfig({
|
|
139
|
+
presets: [cetecPreset],
|
|
140
|
+
});
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Set up the `include` option to contain the paths where Panda should look when
|
|
144
|
+
building `styled-system` and `styles.css`.
|
|
134
145
|
|
|
135
146
|
### Using in Your Project
|
|
136
147
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const breakpoints = {
|
|
2
|
+
xs: "30rem",
|
|
3
|
+
// 480px
|
|
4
|
+
sm: "40rem",
|
|
5
|
+
// 640px
|
|
6
|
+
md: "48rem",
|
|
7
|
+
// 768px
|
|
8
|
+
lg: "64rem",
|
|
9
|
+
// 1024px
|
|
10
|
+
xl: "80rem",
|
|
11
|
+
// 1280px
|
|
12
|
+
"2xl": "96rem"
|
|
13
|
+
// 1536px
|
|
14
|
+
};
|
|
15
|
+
const containerSizes = {
|
|
16
|
+
"2xs": "16rem",
|
|
17
|
+
// 256px
|
|
18
|
+
xs: "20rem",
|
|
19
|
+
// 320px
|
|
20
|
+
sm: "24rem",
|
|
21
|
+
// 384px
|
|
22
|
+
md: "28rem",
|
|
23
|
+
// 448px
|
|
24
|
+
lg: "32rem",
|
|
25
|
+
// 512px
|
|
26
|
+
xl: "36rem",
|
|
27
|
+
// 576px
|
|
28
|
+
"2xl": "42rem",
|
|
29
|
+
// 672px
|
|
30
|
+
"3xl": "48rem",
|
|
31
|
+
// 768px
|
|
32
|
+
"4xl": "56rem",
|
|
33
|
+
// 896px
|
|
34
|
+
"5xl": "64rem",
|
|
35
|
+
// 1024px
|
|
36
|
+
"6xl": "72rem",
|
|
37
|
+
// 1152px
|
|
38
|
+
"7xl": "80rem",
|
|
39
|
+
// 1280px
|
|
40
|
+
"8xl": "90rem"
|
|
41
|
+
// 1440px
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
breakpoints as b,
|
|
45
|
+
containerSizes as c
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=containerSizes-nJuD-1Ap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerSizes-nJuD-1Ap.js","sources":["../src/styles/utilities/breakpoints.ts","../src/styles/utilities/containerSizes.ts"],"sourcesContent":["export const breakpoints = {\n xs: '30rem', // 480px\n sm: '40rem', // 640px\n md: '48rem', // 768px\n lg: '64rem', // 1024px\n xl: '80rem', // 1280px\n '2xl': '96rem', // 1536px\n};\n","// Raw values for Panda containerSizes config (no value wrappers)\n// Panda's setupContainers() expects raw strings it can call .match() on\nexport const containerSizes = {\n '2xs': '16rem', // 256px\n xs: '20rem', // 320px\n sm: '24rem', // 384px\n md: '28rem', // 448px\n lg: '32rem', // 512px\n xl: '36rem', // 576px\n '2xl': '42rem', // 672px\n '3xl': '48rem', // 768px\n '4xl': '56rem', // 896px\n '5xl': '64rem', // 1024px\n '6xl': '72rem', // 1152px\n '7xl': '80rem', // 1280px\n '8xl': '90rem', // 1440px\n};\n"],"names":[],"mappings":"AAAO,MAAM,cAAc;AAAA,EACzB,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,OAAO;AAAA;AACT;ACLO,MAAM,iBAAiB;AAAA,EAC5B,OAAO;AAAA;AAAA,EACP,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,OAAO;AAAA;AAAA,EACP,OAAO;AAAA;AAAA,EACP,OAAO;AAAA;AAAA,EACP,OAAO;AAAA;AAAA,EACP,OAAO;AAAA;AAAA,EACP,OAAO;AAAA;AAAA,EACP,OAAO;AAAA;AACT;"}
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { createContext, useContext, useMemo, forwardRef, createElement, useState, useLayoutEffect, useRef, useSyncExternalStore, useCallback, useEffect, useId as useId$1, isValidElement, Children, cloneElement, useReducer } from "react";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
|
-
import { b as breakpoints, c as containerSizes } from "./
|
|
6
|
-
import { a } from "./cetec-preset-D23KFUx3.js";
|
|
5
|
+
import { b as breakpoints, c as containerSizes } from "./containerSizes-nJuD-1Ap.js";
|
|
7
6
|
import { useForm } from "@tanstack/react-form";
|
|
8
7
|
import { useForm as useForm2 } from "@tanstack/react-form";
|
|
9
8
|
function isObject(value) {
|
|
@@ -262,8 +261,8 @@ function finalizeConditions(paths) {
|
|
|
262
261
|
});
|
|
263
262
|
}
|
|
264
263
|
function sortConditions(paths) {
|
|
265
|
-
return paths.sort((
|
|
266
|
-
const aa = isCondition(
|
|
264
|
+
return paths.sort((a, b) => {
|
|
265
|
+
const aa = isCondition(a);
|
|
267
266
|
const bb = isCondition(b);
|
|
268
267
|
if (aa && !bb) return 1;
|
|
269
268
|
if (!aa && bb) return -1;
|
|
@@ -4246,8 +4245,8 @@ var getSortOrderTabIndex = function getSortOrderTabIndex2(node, isScope) {
|
|
|
4246
4245
|
}
|
|
4247
4246
|
return tabIndex;
|
|
4248
4247
|
};
|
|
4249
|
-
var sortOrderedTabbables = function sortOrderedTabbables2(
|
|
4250
|
-
return
|
|
4248
|
+
var sortOrderedTabbables = function sortOrderedTabbables2(a, b) {
|
|
4249
|
+
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
4251
4250
|
};
|
|
4252
4251
|
var isInput = function isInput2(node) {
|
|
4253
4252
|
return node.tagName === "INPUT";
|
|
@@ -5294,7 +5293,7 @@ const flip$2 = function(options) {
|
|
|
5294
5293
|
};
|
|
5295
5294
|
}
|
|
5296
5295
|
}
|
|
5297
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((
|
|
5296
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
5298
5297
|
if (!resetPlacement) {
|
|
5299
5298
|
switch (fallbackStrategy) {
|
|
5300
5299
|
case "bestFit": {
|
|
@@ -5307,7 +5306,7 @@ const flip$2 = function(options) {
|
|
|
5307
5306
|
currentSideAxis === "y";
|
|
5308
5307
|
}
|
|
5309
5308
|
return true;
|
|
5310
|
-
}).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((
|
|
5309
|
+
}).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
5311
5310
|
if (placement2) {
|
|
5312
5311
|
resetPlacement = placement2;
|
|
5313
5312
|
}
|
|
@@ -5991,8 +5990,8 @@ const platform = {
|
|
|
5991
5990
|
isElement,
|
|
5992
5991
|
isRTL
|
|
5993
5992
|
};
|
|
5994
|
-
function rectsAreEqual(
|
|
5995
|
-
return
|
|
5993
|
+
function rectsAreEqual(a, b) {
|
|
5994
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
5996
5995
|
}
|
|
5997
5996
|
function observeMove(element, onMove) {
|
|
5998
5997
|
let io = null;
|
|
@@ -6160,31 +6159,31 @@ var isClient = typeof document !== "undefined";
|
|
|
6160
6159
|
var noop$1 = function noop2() {
|
|
6161
6160
|
};
|
|
6162
6161
|
var index = isClient ? useLayoutEffect : noop$1;
|
|
6163
|
-
function deepEqual(
|
|
6164
|
-
if (
|
|
6162
|
+
function deepEqual(a, b) {
|
|
6163
|
+
if (a === b) {
|
|
6165
6164
|
return true;
|
|
6166
6165
|
}
|
|
6167
|
-
if (typeof
|
|
6166
|
+
if (typeof a !== typeof b) {
|
|
6168
6167
|
return false;
|
|
6169
6168
|
}
|
|
6170
|
-
if (typeof
|
|
6169
|
+
if (typeof a === "function" && a.toString() === b.toString()) {
|
|
6171
6170
|
return true;
|
|
6172
6171
|
}
|
|
6173
6172
|
let length;
|
|
6174
6173
|
let i;
|
|
6175
6174
|
let keys;
|
|
6176
|
-
if (
|
|
6177
|
-
if (Array.isArray(
|
|
6178
|
-
length =
|
|
6175
|
+
if (a && b && typeof a === "object") {
|
|
6176
|
+
if (Array.isArray(a)) {
|
|
6177
|
+
length = a.length;
|
|
6179
6178
|
if (length !== b.length) return false;
|
|
6180
6179
|
for (i = length; i-- !== 0; ) {
|
|
6181
|
-
if (!deepEqual(
|
|
6180
|
+
if (!deepEqual(a[i], b[i])) {
|
|
6182
6181
|
return false;
|
|
6183
6182
|
}
|
|
6184
6183
|
}
|
|
6185
6184
|
return true;
|
|
6186
6185
|
}
|
|
6187
|
-
keys = Object.keys(
|
|
6186
|
+
keys = Object.keys(a);
|
|
6188
6187
|
length = keys.length;
|
|
6189
6188
|
if (length !== Object.keys(b).length) {
|
|
6190
6189
|
return false;
|
|
@@ -6196,16 +6195,16 @@ function deepEqual(a2, b) {
|
|
|
6196
6195
|
}
|
|
6197
6196
|
for (i = length; i-- !== 0; ) {
|
|
6198
6197
|
const key = keys[i];
|
|
6199
|
-
if (key === "_owner" &&
|
|
6198
|
+
if (key === "_owner" && a.$$typeof) {
|
|
6200
6199
|
continue;
|
|
6201
6200
|
}
|
|
6202
|
-
if (!deepEqual(
|
|
6201
|
+
if (!deepEqual(a[key], b[key])) {
|
|
6203
6202
|
return false;
|
|
6204
6203
|
}
|
|
6205
6204
|
}
|
|
6206
6205
|
return true;
|
|
6207
6206
|
}
|
|
6208
|
-
return
|
|
6207
|
+
return a !== a && b !== b;
|
|
6209
6208
|
}
|
|
6210
6209
|
function getDPR(element) {
|
|
6211
6210
|
if (typeof window === "undefined") {
|
|
@@ -6465,8 +6464,8 @@ function useMergeRefs(refs) {
|
|
|
6465
6464
|
};
|
|
6466
6465
|
}, refs);
|
|
6467
6466
|
}
|
|
6468
|
-
function sortByDocumentPosition(
|
|
6469
|
-
const position =
|
|
6467
|
+
function sortByDocumentPosition(a, b) {
|
|
6468
|
+
const position = a.compareDocumentPosition(b);
|
|
6470
6469
|
if (position & Node.DOCUMENT_POSITION_FOLLOWING || position & Node.DOCUMENT_POSITION_CONTAINED_BY) {
|
|
6471
6470
|
return -1;
|
|
6472
6471
|
}
|
|
@@ -15486,13 +15485,13 @@ function shiftMonth(year, month, delta) {
|
|
|
15486
15485
|
const rolledMonth = (zeroBased % 12 + 12) % 12;
|
|
15487
15486
|
return { year: rolledYear, month: rolledMonth + 1 };
|
|
15488
15487
|
}
|
|
15489
|
-
function compareDates(
|
|
15490
|
-
if (
|
|
15491
|
-
if (
|
|
15492
|
-
return
|
|
15488
|
+
function compareDates(a, b) {
|
|
15489
|
+
if (a.year !== b.year) return a.year - b.year;
|
|
15490
|
+
if (a.month !== b.month) return a.month - b.month;
|
|
15491
|
+
return a.day - b.day;
|
|
15493
15492
|
}
|
|
15494
|
-
function isSameDate(
|
|
15495
|
-
return compareDates(
|
|
15493
|
+
function isSameDate(a, b) {
|
|
15494
|
+
return compareDates(a, b) === 0;
|
|
15496
15495
|
}
|
|
15497
15496
|
function isDateBefore(date, bound) {
|
|
15498
15497
|
return bound !== void 0 && compareDates(date, bound) < 0;
|
|
@@ -19330,7 +19329,7 @@ const DateMenu = (props) => {
|
|
|
19330
19329
|
);
|
|
19331
19330
|
};
|
|
19332
19331
|
const EMPTY_RANGE$4 = { start: null, end: null };
|
|
19333
|
-
const sameMonth = (
|
|
19332
|
+
const sameMonth = (a, b) => a.year === b.year && a.month === b.month;
|
|
19334
19333
|
const DateRangeMenu = (props) => {
|
|
19335
19334
|
const {
|
|
19336
19335
|
trigger,
|
|
@@ -23179,7 +23178,6 @@ export {
|
|
|
23179
23178
|
Toggle,
|
|
23180
23179
|
ToggleInput,
|
|
23181
23180
|
Tooltip,
|
|
23182
|
-
a as cetecPreset,
|
|
23183
23181
|
deriveItemTextValue,
|
|
23184
23182
|
getComponentType,
|
|
23185
23183
|
getHighlightedTextParts,
|