@telia/teddy 0.0.15 → 0.0.16

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.
Files changed (116) hide show
  1. package/dist/components/accordion/accordion.d.ts +2 -1
  2. package/dist/components/accordion/accordion.js +90 -24
  3. package/dist/components/accordion/index.js +2 -2
  4. package/dist/components/badge/badge.js +40 -24
  5. package/dist/components/badge/index.js +2 -2
  6. package/dist/components/box/box.js +14 -10
  7. package/dist/components/box/index.js +2 -2
  8. package/dist/components/button/button.js +60 -52
  9. package/dist/components/button/index.js +2 -2
  10. package/dist/components/card/card.d.ts +29 -3
  11. package/dist/components/card/card.js +202 -25
  12. package/dist/components/card/index.js +2 -2
  13. package/dist/components/field-error-text/field-error-text.js +21 -19
  14. package/dist/components/field-error-text/index.js +2 -2
  15. package/dist/components/flex/flex.js +15 -12
  16. package/dist/components/flex/index.js +2 -2
  17. package/dist/components/grid/grid.js +15 -12
  18. package/dist/components/grid/index.js +2 -2
  19. package/dist/components/heading/heading.js +22 -19
  20. package/dist/components/heading/index.js +2 -2
  21. package/dist/components/helper-text/helper-text.js +14 -13
  22. package/dist/components/helper-text/index.js +2 -2
  23. package/dist/components/icon/icon.js +16 -14
  24. package/dist/components/icon/index.js +4 -4
  25. package/dist/components/index.js +51 -46
  26. package/dist/components/input/index.js +3 -3
  27. package/dist/components/input/input.js +79 -66
  28. package/dist/components/label/index.js +2 -2
  29. package/dist/components/label/label.js +17 -23
  30. package/dist/components/link/index.js +2 -2
  31. package/dist/components/link/link.js +20 -19
  32. package/dist/components/modal/index.js +2 -2
  33. package/dist/components/modal/modal.js +173 -14
  34. package/dist/components/navigation-menu/index.js +2 -2
  35. package/dist/components/navigation-menu/navigation-menu.js +391 -8
  36. package/dist/components/notification/index.js +2 -2
  37. package/dist/components/notification/notification.d.ts +8 -7
  38. package/dist/components/notification/notification.js +96 -24
  39. package/dist/components/radio-group/index.js +2 -2
  40. package/dist/components/radio-group/radio-group.js +91 -8
  41. package/dist/components/spinner/index.js +2 -2
  42. package/dist/components/spinner/spinner.js +36 -29
  43. package/dist/components/text/index.js +2 -2
  44. package/dist/components/text/text.js +18 -17
  45. package/dist/components/text-field/index.js +2 -2
  46. package/dist/components/text-field/text-field.js +110 -90
  47. package/dist/components/text-spacing/index.js +2 -2
  48. package/dist/components/text-spacing/text-spacing.js +14 -12
  49. package/dist/components/toggle/index.js +2 -2
  50. package/dist/components/toggle/toggle.d.ts +1 -1
  51. package/dist/components/toggle/toggle.js +84 -23
  52. package/dist/components/visually-hidden/index.js +2 -2
  53. package/dist/components/visually-hidden/visually-hidden.js +17 -15
  54. package/dist/icons/category.js +2 -2
  55. package/dist/icons/name.js +2 -2
  56. package/dist/main.js +359 -61
  57. package/dist/style.css +3402 -0
  58. package/dist/tokens/border/variables.js +18 -10
  59. package/dist/tokens/breakpoint/variables.js +8 -5
  60. package/dist/tokens/color/variables.js +452 -227
  61. package/dist/tokens/index.d.ts +7 -7
  62. package/dist/tokens/index.js +308 -14
  63. package/dist/tokens/motion/variables.js +22 -12
  64. package/dist/tokens/shadow/variables.js +8 -5
  65. package/dist/tokens/spacing/variables.js +46 -24
  66. package/dist/tokens/typography/variables.js +48 -25
  67. package/dist/utils/action.js +10 -7
  68. package/dist/utils/composeEventHandlers.js +7 -5
  69. package/dist/utils/composeRefs.js +13 -9
  70. package/dist/utils/layout/align.js +5 -4
  71. package/dist/utils/layout/flex.js +25 -18
  72. package/dist/utils/layout/gap.js +7 -6
  73. package/dist/utils/layout/grid.js +31 -24
  74. package/dist/utils/layout/height.js +12 -11
  75. package/dist/utils/layout/index.js +76 -59
  76. package/dist/utils/layout/inset.js +10 -9
  77. package/dist/utils/layout/justify.js +6 -5
  78. package/dist/utils/layout/margin.js +10 -9
  79. package/dist/utils/layout/padding.js +10 -9
  80. package/dist/utils/layout/position.js +6 -5
  81. package/dist/utils/layout/util.js +7 -6
  82. package/dist/utils/layout/width.js +8 -7
  83. package/package.json +21 -14
  84. package/dist/assets/badge.css +0 -1
  85. package/dist/assets/button.css +0 -1
  86. package/dist/assets/field-error-text.css +0 -1
  87. package/dist/assets/flex.css +0 -1
  88. package/dist/assets/grid.css +0 -1
  89. package/dist/assets/heading.css +0 -1
  90. package/dist/assets/helper-text.css +0 -1
  91. package/dist/assets/icon.css +0 -1
  92. package/dist/assets/input.css +0 -1
  93. package/dist/assets/label.css +0 -1
  94. package/dist/assets/link.css +0 -1
  95. package/dist/assets/main.css +0 -1
  96. package/dist/assets/navigation-menu.css +0 -1
  97. package/dist/assets/radio-group.css +0 -1
  98. package/dist/assets/spinner.css +0 -1
  99. package/dist/assets/text-field.css +0 -1
  100. package/dist/assets/text-spacing.css +0 -1
  101. package/dist/assets/text.css +0 -1
  102. package/dist/assets/visually-hidden.css +0 -1
  103. package/dist/badge-Cnug5TzH.js +0 -1855
  104. package/dist/clsx-DB4S2d7J.js +0 -22
  105. package/dist/index-DM5e-Whg.js +0 -43
  106. package/dist/index-DpfSJps6.js +0 -75
  107. package/dist/index-FPIZOCcD.js +0 -305
  108. package/dist/navigation-menu-DKuyW8zE.js +0 -1036
  109. package/dist/radio-group-B--zT3OL.js +0 -440
  110. package/dist/variables-BKiPmtHY.js +0 -458
  111. package/dist/variables-BkY5b0io.js +0 -14
  112. package/dist/variables-Bq0YUbLS.js +0 -14
  113. package/dist/variables-CDK515QX.js +0 -52
  114. package/dist/variables-CMRTN8qo.js +0 -28
  115. package/dist/variables-Dmoh9YtD.js +0 -54
  116. package/dist/variables-IczXZ5CN.js +0 -24
@@ -1,60 +1,67 @@
1
- import { spacingValues as l } from "./util.js";
2
- const e = [
1
+ import { spacingValues } from "./util.js";
2
+ const flexGrowValues = [
3
3
  { key: "0", value: "0" },
4
4
  { key: "1", value: "1" }
5
- ], a = e, s = [
6
- ...l,
5
+ ];
6
+ const flexShrinkValues = flexGrowValues;
7
+ const flexBasisValues = [
8
+ ...spacingValues,
7
9
  { key: "auto", value: "auto" },
8
10
  { key: "full", value: "100%" },
9
11
  { key: "1/2", value: "50%" }
10
- ], u = [
12
+ ];
13
+ const flexDirectionValues = [
11
14
  { key: "row", value: "row" },
12
15
  { key: "row-reverse", value: "row-reverse" },
13
16
  { key: "column", value: "column" },
14
17
  { key: "column-reverse", value: "column-reverse" }
15
- ], r = [
18
+ ];
19
+ const displayFlexValues = [
16
20
  { key: "none", value: "none" },
17
21
  { key: "inline-flex", value: "inline-flex" },
18
22
  { key: "flex", value: "flex" }
19
- ], y = [
23
+ ];
24
+ const flexWrapValues = [
20
25
  { key: "nowrap", value: "nowrap" },
21
26
  { key: "wrap", value: "wrap" },
22
27
  { key: "wrap-reverse", value: "wrap-reverse" }
23
- ], n = [
28
+ ];
29
+ const flexLayout = [
24
30
  {
25
31
  key: "display",
26
32
  className: "teddy-display",
27
- values: r
33
+ values: displayFlexValues
28
34
  },
29
35
  {
30
36
  key: "wrap",
31
37
  className: "teddy-fw",
32
- values: y
38
+ values: flexWrapValues
33
39
  },
34
40
  {
35
41
  key: "direction",
36
42
  className: "teddy-fd",
37
- values: u
43
+ values: flexDirectionValues
38
44
  }
39
- ], v = [
45
+ ];
46
+ const flexChildren = [
40
47
  {
41
48
  key: "flexGrow",
42
49
  className: "teddy-fg",
43
- values: e
50
+ values: flexGrowValues
44
51
  },
45
52
  {
46
53
  key: "flexShrink",
47
54
  className: "teddy-fs",
48
- values: a
55
+ values: flexShrinkValues
49
56
  },
50
57
  {
51
58
  key: "flexBasis",
52
59
  className: "teddy-fb",
53
- values: s
60
+ values: flexBasisValues
54
61
  }
55
62
  ];
56
63
  export {
57
- r as displayFlexValues,
58
- v as flexChildren,
59
- n as flexLayout
64
+ displayFlexValues,
65
+ flexChildren,
66
+ flexLayout
60
67
  };
@@ -1,21 +1,22 @@
1
- import { spacingValues as e } from "./util.js";
2
- const a = e, g = [
1
+ import { spacingValues } from "./util.js";
2
+ const gapValues = spacingValues;
3
+ const gap = [
3
4
  {
4
5
  key: "gap",
5
6
  className: "teddy-gap",
6
- values: a
7
+ values: gapValues
7
8
  },
8
9
  {
9
10
  key: "gapX",
10
11
  className: "teddy-cg",
11
- values: a
12
+ values: gapValues
12
13
  },
13
14
  {
14
15
  key: "gapY",
15
16
  className: "teddy-rg",
16
- values: a
17
+ values: gapValues
17
18
  }
18
19
  ];
19
20
  export {
20
- g as gap
21
+ gap
21
22
  };
@@ -1,9 +1,11 @@
1
- import { numberIterator as e } from "./util.js";
2
- const l = [...e, { key: "none", value: "none" }], n = [
3
- ...e.map((a) => ({ key: a.key, value: `repeat(${a.value}, minmax(0, 1fr))` })),
1
+ import { numberIterator } from "./util.js";
2
+ const gridTemplateRowsValues = [...numberIterator, { key: "none", value: "none" }];
3
+ const gridTemplateColumnsValues = [
4
+ ...numberIterator.map((v) => ({ key: v.key, value: `repeat(${v.value}, minmax(0, 1fr))` })),
4
5
  { key: "none", value: "none" }
5
- ], s = [
6
- ...e,
6
+ ];
7
+ const gridColumnValues = [
8
+ ...numberIterator,
7
9
  {
8
10
  key: "span-2",
9
11
  value: "span 2"
@@ -48,69 +50,74 @@ const l = [...e, { key: "none", value: "none" }], n = [
48
50
  key: "span-12",
49
51
  value: "span 12"
50
52
  }
51
- ], u = s, d = [
53
+ ];
54
+ const gridRowValues = gridColumnValues;
55
+ const displayGridValues = [
52
56
  { key: "none", value: "none" },
53
57
  { key: "grid", value: "grid" },
54
58
  { key: "inline-grid", value: "inline-grid" }
55
- ], y = [
59
+ ];
60
+ const gridFlowValues = [
56
61
  { key: "row", value: "row" },
57
62
  { key: "column", value: "column" },
58
63
  { key: "dense", value: "dense" },
59
64
  { key: "row-dense", value: "row-dense" },
60
65
  { key: "column-dense", value: "column-dense" }
61
- ], r = [
62
- { key: "display", className: "teddy-display", values: d },
66
+ ];
67
+ const gridLayout = [
68
+ { key: "display", className: "teddy-display", values: displayGridValues },
63
69
  {
64
70
  key: "rows",
65
71
  className: "teddy-gtr",
66
- values: l
72
+ values: gridTemplateRowsValues
67
73
  },
68
74
  {
69
75
  key: "columns",
70
76
  className: "teddy-gtc",
71
- values: n
77
+ values: gridTemplateColumnsValues
72
78
  },
73
79
  {
74
80
  key: "flow",
75
81
  className: "teddy-gaf",
76
- values: y
82
+ values: gridFlowValues
77
83
  }
78
- ], k = [
84
+ ];
85
+ const gridChildren = [
79
86
  {
80
87
  key: "gridColumnStart",
81
88
  className: "teddy-gcs",
82
- values: e
89
+ values: numberIterator
83
90
  },
84
91
  {
85
92
  key: "gridColumnEnd",
86
93
  className: "teddy-gce",
87
- values: e
94
+ values: numberIterator
88
95
  },
89
96
  {
90
97
  key: "gridRowStart",
91
98
  className: "teddy-grs",
92
- values: e
99
+ values: numberIterator
93
100
  },
94
101
  {
95
102
  key: "gridRowEnd",
96
103
  className: "teddy-gre",
97
- values: e
104
+ values: numberIterator
98
105
  },
99
106
  {
100
107
  key: "gridColumn",
101
108
  className: "teddy-gc",
102
- values: s
109
+ values: gridColumnValues
103
110
  },
104
111
  {
105
112
  key: "gridRow",
106
113
  className: "teddy-gr",
107
- values: u
114
+ values: gridRowValues
108
115
  }
109
116
  ];
110
117
  export {
111
- d as displayGridValues,
112
- k as gridChildren,
113
- r as gridLayout,
114
- n as gridTemplateColumnsValues,
115
- l as gridTemplateRowsValues
118
+ displayGridValues,
119
+ gridChildren,
120
+ gridLayout,
121
+ gridTemplateColumnsValues,
122
+ gridTemplateRowsValues
116
123
  };
@@ -1,20 +1,20 @@
1
- import { t as a, a as t, b as s, c as l } from "../../variables-BkY5b0io.js";
2
- const e = [
1
+ import { teddyBreakpointSm, teddyBreakpointMd, teddyBreakpointLg, teddyBreakpointXl } from "../../tokens/breakpoint/variables.js";
2
+ const heightValues = [
3
3
  {
4
4
  key: "bp-sm",
5
- value: a
5
+ value: teddyBreakpointSm
6
6
  },
7
7
  {
8
8
  key: "bp-md",
9
- value: t
9
+ value: teddyBreakpointMd
10
10
  },
11
11
  {
12
12
  key: "bp-lg",
13
- value: s
13
+ value: teddyBreakpointLg
14
14
  },
15
15
  {
16
16
  key: "bp-xl",
17
- value: l
17
+ value: teddyBreakpointXl
18
18
  },
19
19
  {
20
20
  key: "auto",
@@ -28,23 +28,24 @@ const e = [
28
28
  key: "50%",
29
29
  value: "50%"
30
30
  }
31
- ], d = [
31
+ ];
32
+ const heights = [
32
33
  {
33
34
  key: "height",
34
35
  className: "teddy-h",
35
- values: e
36
+ values: heightValues
36
37
  },
37
38
  {
38
39
  key: "minHeight",
39
40
  className: "teddy-min-h",
40
- values: e
41
+ values: heightValues
41
42
  },
42
43
  {
43
44
  key: "maxHeight",
44
45
  className: "teddy-max-h",
45
- values: e
46
+ values: heightValues
46
47
  }
47
48
  ];
48
49
  export {
49
- d as heights
50
+ heights
50
51
  };
@@ -1,75 +1,92 @@
1
- import { margins as k } from "./margin.js";
2
- import { displayFlexValues as N, flexChildren as b, flexLayout as h } from "./flex.js";
3
- import { widths as j } from "./width.js";
4
- import { heights as v } from "./height.js";
5
- import { c as f } from "../../clsx-DB4S2d7J.js";
6
- import { align as $ } from "./align.js";
7
- import { gap as L } from "./gap.js";
8
- import { displayGridValues as O, gridLayout as V, gridChildren as C } from "./grid.js";
9
- import { justify as P } from "./justify.js";
10
- import { paddings as w } from "./padding.js";
11
- import { position as E } from "./position.js";
12
- import { inset as F } from "./inset.js";
13
- const G = {
1
+ import { margins } from "./margin.js";
2
+ import { displayFlexValues, flexChildren, flexLayout } from "./flex.js";
3
+ import { widths } from "./width.js";
4
+ import { heights } from "./height.js";
5
+ import clsx from "clsx";
6
+ import { align } from "./align.js";
7
+ import { gap } from "./gap.js";
8
+ import { displayGridValues, gridLayout, gridChildren } from "./grid.js";
9
+ import { justify } from "./justify.js";
10
+ import { paddings } from "./padding.js";
11
+ import { position } from "./position.js";
12
+ import { inset } from "./inset.js";
13
+ const breakpoint = {
14
14
  sm: "0px",
15
15
  md: "600px",
16
16
  lg: "1024px",
17
17
  xl: "1440px"
18
- }, K = ["initial", ...Object.keys(G)], R = [...N, ...O], S = [
18
+ };
19
+ const breakpoints = ["initial", ...Object.keys(breakpoint)];
20
+ const displayValues = [...displayFlexValues, ...displayGridValues];
21
+ const displayLayout = [
19
22
  {
20
23
  key: "display",
21
24
  className: "teddy-display",
22
- values: R
25
+ values: displayValues
23
26
  }
24
- ], y = [
25
- ...E,
26
- ...F,
27
- ...k,
28
- ...w,
29
- ...j,
30
- ...v,
31
- ...L,
32
- ...$,
33
- ...P,
34
- ...S,
35
- ...b,
36
- ...h,
37
- ...V,
38
- ...C
39
27
  ];
40
- function q(o) {
41
- return typeof o == "object" && Object.keys(o).some((e) => K.includes(e));
28
+ const layout = [
29
+ ...position,
30
+ ...inset,
31
+ ...margins,
32
+ ...paddings,
33
+ ...widths,
34
+ ...heights,
35
+ ...gap,
36
+ ...align,
37
+ ...justify,
38
+ ...displayLayout,
39
+ ...flexChildren,
40
+ ...flexLayout,
41
+ ...gridLayout,
42
+ ...gridChildren
43
+ ];
44
+ function isResponsiveObject(obj) {
45
+ return typeof obj === "object" && Object.keys(obj).some((key) => breakpoints.includes(key));
42
46
  }
43
- function u(...o) {
44
- let e = {};
45
- for (const s of o)
46
- s && (e = { ...e, ...s });
47
- return Object.keys(e).length ? e : void 0;
47
+ function mergeStyles(...styles) {
48
+ let result = {};
49
+ for (const style of styles) {
50
+ if (style) {
51
+ result = { ...result, ...style };
52
+ }
53
+ }
54
+ return Object.keys(result).length ? result : void 0;
48
55
  }
49
- function X(o) {
50
- var m;
51
- const e = { ...o };
52
- let s = e.style, i = e.className;
53
- for (const d in y) {
54
- const t = y[d], n = t.key, r = e[n];
55
- if (r && (q(r) && Object.entries(r).forEach(([a, l]) => {
56
- var p;
57
- const c = ((p = t.values.find((g) => g.key === l)) == null ? void 0 : p.value) ?? l;
58
- s = u(s, { [`--${t.className}-${a}`]: c });
59
- const x = `${a}:${t.className}`;
60
- i = f(i, x), delete e[n];
61
- }), typeof r == "string")) {
62
- const a = ((m = t.values.find((c) => c.key === r)) == null ? void 0 : m.value) ?? r;
63
- s = u(s, { [`--${t.className}`]: a });
64
- const l = `${t.className}`;
65
- i = f(i, l), delete e[n];
56
+ function extractProps(props) {
57
+ var _a;
58
+ const extractedProps = { ...props };
59
+ let style = extractedProps.style;
60
+ let className = extractedProps.className;
61
+ for (const key in layout) {
62
+ const currentLayout = layout[key];
63
+ const currentLayoutKey = currentLayout.key;
64
+ const layoutProp = extractedProps[currentLayoutKey];
65
+ if (layoutProp) {
66
+ if (isResponsiveObject(layoutProp)) {
67
+ Object.entries(layoutProp).forEach(([bp, value]) => {
68
+ var _a2;
69
+ const cssValue = ((_a2 = currentLayout.values.find((v) => v.key === value)) == null ? void 0 : _a2.value) ?? value;
70
+ style = mergeStyles(style, { [`--${currentLayout.className}-${bp}`]: cssValue });
71
+ const bpClassName = `${bp}:${currentLayout.className}`;
72
+ className = clsx(className, bpClassName);
73
+ delete extractedProps[currentLayoutKey];
74
+ });
75
+ }
76
+ if (typeof layoutProp === "string") {
77
+ const cssValue = ((_a = currentLayout.values.find((v) => v.key === layoutProp)) == null ? void 0 : _a.value) ?? layoutProp;
78
+ style = mergeStyles(style, { [`--${currentLayout.className}`]: cssValue });
79
+ const bpClassName = `${currentLayout.className}`;
80
+ className = clsx(className, bpClassName);
81
+ delete extractedProps[currentLayoutKey];
82
+ }
66
83
  }
67
84
  }
68
- return { ...e, className: i, style: s };
85
+ return { ...extractedProps, className, style };
69
86
  }
70
87
  export {
71
- S as displayLayout,
72
- R as displayValues,
73
- X as extractProps,
74
- u as mergeStyles
88
+ displayLayout,
89
+ displayValues,
90
+ extractProps,
91
+ mergeStyles
75
92
  };
@@ -1,32 +1,33 @@
1
- import { spacingValues as t } from "./util.js";
2
- const e = [...t, { key: "auto", value: "auto" }], a = [
1
+ import { spacingValues } from "./util.js";
2
+ const insetValues = [...spacingValues, { key: "auto", value: "auto" }];
3
+ const inset = [
3
4
  {
4
5
  key: "inset",
5
6
  className: "teddy-inset",
6
- values: e
7
+ values: insetValues
7
8
  },
8
9
  {
9
10
  key: "top",
10
11
  className: "teddy-top",
11
- values: e
12
+ values: insetValues
12
13
  },
13
14
  {
14
15
  key: "bottom",
15
16
  className: "teddy-bottom",
16
- values: e
17
+ values: insetValues
17
18
  },
18
19
  {
19
20
  key: "left",
20
21
  className: "teddy-left",
21
- values: e
22
+ values: insetValues
22
23
  },
23
24
  {
24
25
  key: "right",
25
26
  className: "teddy-right",
26
- values: e
27
+ values: insetValues
27
28
  }
28
29
  ];
29
30
  export {
30
- a as inset,
31
- e as insetValues
31
+ inset,
32
+ insetValues
32
33
  };
@@ -1,16 +1,17 @@
1
- const e = [
1
+ const justifyValues = [
2
2
  { key: "start", value: "flex-start" },
3
3
  { key: "center", value: "center" },
4
4
  { key: "end", value: "flex-end" },
5
5
  { key: "between", value: "space-between" }
6
- ], t = [
6
+ ];
7
+ const justify = [
7
8
  {
8
9
  key: "justify",
9
10
  className: "teddy-jc",
10
- values: e
11
+ values: justifyValues
11
12
  }
12
13
  ];
13
14
  export {
14
- t as justify,
15
- e as justifyValues
15
+ justify,
16
+ justifyValues
16
17
  };
@@ -1,32 +1,33 @@
1
- import { spacingValues as a } from "./util.js";
2
- const e = [...a, { key: "auto", value: "auto" }], m = [
1
+ import { spacingValues } from "./util.js";
2
+ const marginValues = [...spacingValues, { key: "auto", value: "auto" }];
3
+ const margins = [
3
4
  {
4
5
  key: "m",
5
6
  className: "teddy-m",
6
- values: e
7
+ values: marginValues
7
8
  },
8
9
  {
9
10
  key: "mt",
10
11
  className: "teddy-mt",
11
- values: e
12
+ values: marginValues
12
13
  },
13
14
  {
14
15
  key: "mb",
15
16
  className: "teddy-mb",
16
- values: e
17
+ values: marginValues
17
18
  },
18
19
  {
19
20
  key: "ml",
20
21
  className: "teddy-ml",
21
- values: e
22
+ values: marginValues
22
23
  },
23
24
  {
24
25
  key: "mr",
25
26
  className: "teddy-mr",
26
- values: e
27
+ values: marginValues
27
28
  }
28
29
  ];
29
30
  export {
30
- e as marginValues,
31
- m as margins
31
+ marginValues,
32
+ margins
32
33
  };
@@ -1,32 +1,33 @@
1
- import { spacingValues as a } from "./util.js";
2
- const e = [...a, { key: "auto", value: "auto" }], l = [
1
+ import { spacingValues } from "./util.js";
2
+ const paddingValues = [...spacingValues, { key: "auto", value: "auto" }];
3
+ const paddings = [
3
4
  {
4
5
  key: "p",
5
6
  className: "teddy-p",
6
- values: e
7
+ values: paddingValues
7
8
  },
8
9
  {
9
10
  key: "pt",
10
11
  className: "teddy-pt",
11
- values: e
12
+ values: paddingValues
12
13
  },
13
14
  {
14
15
  key: "pb",
15
16
  className: "teddy-pb",
16
- values: e
17
+ values: paddingValues
17
18
  },
18
19
  {
19
20
  key: "pl",
20
21
  className: "teddy-pl",
21
- values: e
22
+ values: paddingValues
22
23
  },
23
24
  {
24
25
  key: "pr",
25
26
  className: "teddy-pr",
26
- values: e
27
+ values: paddingValues
27
28
  }
28
29
  ];
29
30
  export {
30
- e as paddingValues,
31
- l as paddings
31
+ paddingValues,
32
+ paddings
32
33
  };
@@ -1,4 +1,4 @@
1
- const e = [
1
+ const positionValues = [
2
2
  { key: "relative", value: "relative" },
3
3
  { key: "absolute", value: "absolute" },
4
4
  { key: "fixed", value: "fixed" },
@@ -7,14 +7,15 @@ const e = [
7
7
  { key: "inherit", value: "inherit" },
8
8
  { key: "initial", value: "initial" },
9
9
  { key: "unset", value: "unset" }
10
- ], i = [
10
+ ];
11
+ const position = [
11
12
  {
12
13
  key: "position",
13
14
  className: "teddy-position",
14
- values: e
15
+ values: positionValues
15
16
  }
16
17
  ];
17
18
  export {
18
- i as position,
19
- e as positionValues
19
+ position,
20
+ positionValues
20
21
  };
@@ -1,4 +1,4 @@
1
- const a = [
1
+ const spacingValues = [
2
2
  { key: "0", value: "var(--teddy-spacing-0)" },
3
3
  { key: "10", value: "var(--teddy-spacing-10)" },
4
4
  { key: "25", value: "var(--teddy-spacing-25)" },
@@ -22,11 +22,12 @@ const a = [
22
22
  { key: "page-padding-md", value: "var(--teddy-spacing-page-padding-md)" },
23
23
  { key: "page-padding-lg", value: "var(--teddy-spacing-page-padding-lg)" },
24
24
  { key: "page-padding-xl", value: "var(--teddy-spacing-page-padding-xl)" }
25
- ], d = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"].map((e) => ({
26
- key: e,
27
- value: e
25
+ ];
26
+ const numberIterator = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"].map((v) => ({
27
+ key: v,
28
+ value: v
28
29
  }));
29
30
  export {
30
- d as numberIterator,
31
- a as spacingValues
31
+ numberIterator,
32
+ spacingValues
32
33
  };
@@ -1,25 +1,26 @@
1
- const e = [
1
+ const widthValues = [
2
2
  { key: "auto", value: "auto" },
3
3
  { key: "100%", value: "100%" },
4
4
  { key: "50%", value: "50%" }
5
- ], a = [
5
+ ];
6
+ const widths = [
6
7
  {
7
8
  key: "width",
8
9
  className: "teddy-w",
9
- values: e
10
+ values: widthValues
10
11
  },
11
12
  {
12
13
  key: "minWidth",
13
14
  className: "teddy-min-w",
14
- values: e
15
+ values: widthValues
15
16
  },
16
17
  {
17
18
  key: "maxWidth",
18
19
  className: "teddy-max-w",
19
- values: e
20
+ values: widthValues
20
21
  }
21
22
  ];
22
23
  export {
23
- e as widthValues,
24
- a as widths
24
+ widthValues,
25
+ widths
25
26
  };