zaravand-ui 1.11.0 → 3.0.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/dist/components/shared/responsiveScale.d.ts +27 -40
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +21 -21
- package/package.json +1 -1
|
@@ -1,46 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* shrink/grow behavior automatically, with no per-app configuration.
|
|
2
|
+
* Fixed desktop-sized tokens for the whole library. Responsiveness across
|
|
3
|
+
* viewport widths is owned by the consuming app's root `html { font-size }`
|
|
4
|
+
* scaling, so every rem value here is the static desktop/design value with
|
|
5
|
+
* no clamp()/vw-based fluid sizing left in the library itself.
|
|
7
6
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* then is it safe to multiply by `DIFFrem` and get a length back out. Writing
|
|
13
|
-
* the multiplier or divisor as a bare number (e.g. `0.648` instead of
|
|
14
|
-
* `0.648rem`, or `/448` instead of `/448px`) silently breaks this: the ratio
|
|
15
|
-
* stays a *length* instead of becoming unitless, so multiplying it by another
|
|
16
|
-
* bare number produces a value on the order of a single pixel instead of a
|
|
17
|
-
* fraction of a rem — the token ends up pinned within a fraction of a pixel of
|
|
18
|
-
* MIN across the entire viewport range and never visibly reaches MAX.
|
|
7
|
+
* Every value is written against a 1rem = 10px root (the consuming app's
|
|
8
|
+
* root font-size base), i.e. 1.6x the old 1rem = 16px numbers, so the
|
|
9
|
+
* rendered pixel size matches the original design once the consumer's
|
|
10
|
+
* root font-size scaling is applied.
|
|
19
11
|
*/
|
|
20
|
-
declare const CONTROL_HEIGHT_SM = "zui:h-[
|
|
21
|
-
declare const CONTROL_HEIGHT_DEFAULT = "zui:h-[
|
|
22
|
-
declare const CONTROL_HEIGHT_LG = "zui:h-[
|
|
12
|
+
declare const CONTROL_HEIGHT_SM = "zui:h-[4.608rem]";
|
|
13
|
+
declare const CONTROL_HEIGHT_DEFAULT = "zui:h-[5.184rem]";
|
|
14
|
+
declare const CONTROL_HEIGHT_LG = "zui:h-[5.76rem]";
|
|
23
15
|
declare const controlHeightBySize: {
|
|
24
|
-
readonly sm: "zui:h-[
|
|
25
|
-
readonly default: "zui:h-[
|
|
26
|
-
readonly lg: "zui:h-[
|
|
16
|
+
readonly sm: "zui:h-[4.608rem]";
|
|
17
|
+
readonly default: "zui:h-[5.184rem]";
|
|
18
|
+
readonly lg: "zui:h-[5.76rem]";
|
|
27
19
|
};
|
|
28
|
-
declare const CONTROL_PADDING_X = "zui:px-[
|
|
29
|
-
declare const CONTROL_PADDING_Y = "zui:py-[
|
|
30
|
-
declare const BUTTON_PADDING_X = "zui:px-[
|
|
31
|
-
declare const TEXTAREA_MIN_HEIGHT = "zui:min-h-[
|
|
32
|
-
declare const TABLE_HEADER_HEIGHT = "zui:h-[
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
declare const
|
|
39
|
-
declare const
|
|
40
|
-
declare const
|
|
41
|
-
declare const DATEPICKER_CONTROL_HEIGHT = "zui:h-[clamp(1.6rem,calc(1.6rem_+_0.4rem*((100vw_-_320px)/448px)),2rem)]";
|
|
42
|
-
declare const OVERLAY_PANEL_PADDING = "zui:p-[clamp(1.2rem,calc(1.2rem_+_0.3rem*((100vw_-_320px)/448px)),1.5rem)]";
|
|
43
|
-
declare const TOAST_PADDING = "zui:p-[clamp(0.8rem,calc(0.8rem_+_0.2rem*((100vw_-_320px)/448px)),1rem)]";
|
|
44
|
-
declare const DATEPICKER_MANUAL_SEGMENT_WIDTH = "zui:w-[clamp(5.2rem,calc(5.2rem_+_1.3rem*((100vw_-_320px)/448px)),6.5rem)]";
|
|
45
|
-
declare const SQUARE_ICON_BUTTON_SIZE_IMPORTANT = "zui:[&>button]:!h-[clamp(2.304rem,calc(2.304rem_+_0.576rem*((100vw_-_320px)/448px)),2.88rem)] zui:[&>button]:!w-[clamp(2.304rem,calc(2.304rem_+_0.576rem*((100vw_-_320px)/448px)),2.88rem)]";
|
|
20
|
+
declare const CONTROL_PADDING_X = "zui:px-[1.2rem]";
|
|
21
|
+
declare const CONTROL_PADDING_Y = "zui:py-[1.2rem]";
|
|
22
|
+
declare const BUTTON_PADDING_X = "zui:px-[1.6rem]";
|
|
23
|
+
declare const TEXTAREA_MIN_HEIGHT = "zui:min-h-[7.68rem]";
|
|
24
|
+
declare const TABLE_HEADER_HEIGHT = "zui:h-[5.6rem]";
|
|
25
|
+
declare const TABLE_TEXT_SIZE = "zui:text-[1.4rem]";
|
|
26
|
+
declare const DATEPICKER_DAY_SIZE = "zui:size-[3.2rem]";
|
|
27
|
+
declare const DATEPICKER_NAV_SIZE = "zui:size-[2.8rem]";
|
|
28
|
+
declare const DATEPICKER_CONTROL_HEIGHT = "zui:h-[3.2rem]";
|
|
29
|
+
declare const OVERLAY_PANEL_PADDING = "zui:p-[2.4rem]";
|
|
30
|
+
declare const TOAST_PADDING = "zui:p-[1.6rem]";
|
|
31
|
+
declare const DATEPICKER_MANUAL_SEGMENT_WIDTH = "zui:w-[10.4rem]";
|
|
32
|
+
declare const SQUARE_ICON_BUTTON_SIZE_IMPORTANT = "zui:[&>button]:!h-[4.608rem] zui:[&>button]:!w-[4.608rem]";
|
|
46
33
|
export { controlHeightBySize, CONTROL_HEIGHT_SM, CONTROL_HEIGHT_DEFAULT, CONTROL_HEIGHT_LG, CONTROL_PADDING_X, CONTROL_PADDING_Y, BUTTON_PADDING_X, TEXTAREA_MIN_HEIGHT, TABLE_HEADER_HEIGHT, TABLE_TEXT_SIZE, DATEPICKER_DAY_SIZE, DATEPICKER_NAV_SIZE, DATEPICKER_CONTROL_HEIGHT, OVERLAY_PANEL_PADDING, TOAST_PADDING, DATEPICKER_MANUAL_SEGMENT_WIDTH, SQUARE_ICON_BUTTON_SIZE_IMPORTANT, };
|