@bgord/design 0.29.4 → 0.29.5

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 (140) hide show
  1. package/dist/index.d.ts +235 -0
  2. package/dist/lib.d.ts +171 -0
  3. package/dist/lib.js +174 -0
  4. package/package.json +18 -18
  5. package/dist/v2/index.d.ts +0 -6
  6. package/src/animations/grow-fade-in.css +0 -19
  7. package/src/animations/shrink-fade-out.css +0 -15
  8. package/src/generate-css.ts +0 -48
  9. package/src/generator.ts +0 -23
  10. package/src/generators/axis-placements-generator.ts +0 -51
  11. package/src/generators/backdrops-generator.ts +0 -18
  12. package/src/generators/backgrounds-generator.ts +0 -27
  13. package/src/generators/border-colors-generator.ts +0 -52
  14. package/src/generators/border-radiuses-generator.ts +0 -17
  15. package/src/generators/border-widths-generator.ts +0 -41
  16. package/src/generators/cursors-generator.ts +0 -28
  17. package/src/generators/displays-generator.ts +0 -36
  18. package/src/generators/flex-directions-generator.ts +0 -27
  19. package/src/generators/flex-grows-generator.ts +0 -28
  20. package/src/generators/flex-shrinks-generator.ts +0 -28
  21. package/src/generators/flex-wraps-generator.ts +0 -28
  22. package/src/generators/font-colors-generator.ts +0 -27
  23. package/src/generators/font-size-generator.ts +0 -28
  24. package/src/generators/font-weight-generator.ts +0 -18
  25. package/src/generators/gap-generator.ts +0 -28
  26. package/src/generators/heights-generator.ts +0 -28
  27. package/src/generators/index.ts +0 -34
  28. package/src/generators/letter-spacings-generator.ts +0 -18
  29. package/src/generators/line-height-generator.ts +0 -18
  30. package/src/generators/margins-generator.ts +0 -75
  31. package/src/generators/max-heights-generator.ts +0 -28
  32. package/src/generators/max-widths-generator.ts +0 -28
  33. package/src/generators/object-fits-generator.ts +0 -28
  34. package/src/generators/object-positions-generator.ts +0 -28
  35. package/src/generators/overflows-generator.ts +0 -18
  36. package/src/generators/paddings-generator.ts +0 -82
  37. package/src/generators/pointer-events-generator.ts +0 -28
  38. package/src/generators/positioners-generator.ts +0 -35
  39. package/src/generators/positions-generator.ts +0 -28
  40. package/src/generators/rotates-generator.ts +0 -28
  41. package/src/generators/shadows-generator.ts +0 -18
  42. package/src/generators/transforms-generator.ts +0 -43
  43. package/src/generators/widths-generator.ts +0 -28
  44. package/src/generators/z-index-generator.ts +0 -18
  45. package/src/index.ts +0 -3
  46. package/src/interactions/grow.css +0 -7
  47. package/src/interactions/rotate-into-focus.css +0 -26
  48. package/src/interactions/subtle-scale.css +0 -11
  49. package/src/normalize.css +0 -410
  50. package/src/rules/button-empty-content.css +0 -5
  51. package/src/rules/button-icon-title.css +0 -4
  52. package/src/rules/focusable-hidden-element.css +0 -5
  53. package/src/rules/image-alt.css +0 -4
  54. package/src/rules/input-missing-id.css +0 -4
  55. package/src/rules/input-missing-name.css +0 -4
  56. package/src/rules/invalid-list-element.css +0 -10
  57. package/src/rules/link-empty-href.css +0 -5
  58. package/src/rules/target-blank-referer.css +0 -10
  59. package/src/rules/title-truncate.css +0 -19
  60. package/src/tokens.ts +0 -374
  61. package/src/ui/badge.css +0 -22
  62. package/src/ui/button.css +0 -85
  63. package/src/ui/checkbox.css +0 -54
  64. package/src/ui/file-explorer.css +0 -12
  65. package/src/ui/input.css +0 -48
  66. package/src/ui/label.css +0 -18
  67. package/src/ui/link.css +0 -17
  68. package/src/ui/range.css +0 -68
  69. package/src/ui/select.css +0 -58
  70. package/src/ui/switch.css +0 -44
  71. package/src/ui/textarea.css +0 -43
  72. package/src/ui/visually-hidden.css +0 -9
  73. package/src/v2/index.ts +0 -3
  74. package/src/v2/tokens/backdrops-token-generator.ts +0 -14
  75. package/src/v2/tokens/border-width-token-generator.ts +0 -17
  76. package/src/v2/tokens/brand-token-generator.ts +0 -20
  77. package/src/v2/tokens/breakpoint-token-generator.ts +0 -11
  78. package/src/v2/tokens/danger-token-generator.ts +0 -15
  79. package/src/v2/tokens/font-family-token-generator.ts +0 -13
  80. package/src/v2/tokens/font-size-token-generator.ts +0 -19
  81. package/src/v2/tokens/font-weight-token-generator.ts +0 -16
  82. package/src/v2/tokens/grayscale-token-generator.ts +0 -21
  83. package/src/v2/tokens/index.ts +0 -18
  84. package/src/v2/tokens/letter-spacing-token-generator.ts +0 -16
  85. package/src/v2/tokens/line-height-token-generator.ts +0 -16
  86. package/src/v2/tokens/opacity-token-generator.ts +0 -13
  87. package/src/v2/tokens/positive-token-generator.ts +0 -15
  88. package/src/v2/tokens/radius-token-generator.ts +0 -19
  89. package/src/v2/tokens/shadow-token-generator.ts +0 -18
  90. package/src/v2/tokens/spacing-token-generator.ts +0 -24
  91. package/src/v2/tokens/template.ts +0 -44
  92. package/src/v2/tokens/warning-token-generator.ts +0 -15
  93. package/src/v2/tokens/z-index-token-generator.ts +0 -15
  94. package/src/v2/utilities/axis-placement-utility-generator.ts +0 -28
  95. package/src/v2/utilities/backdrop-utility-generator.ts +0 -23
  96. package/src/v2/utilities/background-utility-generator.ts +0 -39
  97. package/src/v2/utilities/border-color-utility-generator.ts +0 -40
  98. package/src/v2/utilities/border-width-utility-generator.ts +0 -23
  99. package/src/v2/utilities/cursor-utility-generator.ts +0 -19
  100. package/src/v2/utilities/display-utility-generator.ts +0 -22
  101. package/src/v2/utilities/flex-direction-utility-generator.ts +0 -24
  102. package/src/v2/utilities/flex-grow-utility-generator.ts +0 -19
  103. package/src/v2/utilities/flex-shrink-utility-generator.ts +0 -19
  104. package/src/v2/utilities/flex-wrap-utility-generator.ts +0 -19
  105. package/src/v2/utilities/font-color-utility-generator.ts +0 -39
  106. package/src/v2/utilities/font-family-utility-generator.ts +0 -23
  107. package/src/v2/utilities/font-size-utility-generator.ts +0 -31
  108. package/src/v2/utilities/font-weight-utility-generator.ts +0 -23
  109. package/src/v2/utilities/gap-utility-generator.ts +0 -23
  110. package/src/v2/utilities/height-utility-generator.ts +0 -19
  111. package/src/v2/utilities/index.ts +0 -36
  112. package/src/v2/utilities/letter-spacing-utility-generator.ts +0 -23
  113. package/src/v2/utilities/line-height-utility-generator.ts +0 -23
  114. package/src/v2/utilities/margin-utility-generator.ts +0 -31
  115. package/src/v2/utilities/max-height-utility-generator.ts +0 -21
  116. package/src/v2/utilities/max-width-utility-generator.ts +0 -21
  117. package/src/v2/utilities/object-fit-utility-generator.ts +0 -25
  118. package/src/v2/utilities/object-position-utility-generator.ts +0 -27
  119. package/src/v2/utilities/opacity-utility-generator.ts +0 -23
  120. package/src/v2/utilities/overflow-utility-generator.ts +0 -19
  121. package/src/v2/utilities/padding-utility-generator.ts +0 -31
  122. package/src/v2/utilities/pointer-event-utility-generator.ts +0 -19
  123. package/src/v2/utilities/position-utility-generator.ts +0 -26
  124. package/src/v2/utilities/positioners-utility-generator.ts +0 -27
  125. package/src/v2/utilities/radius-utility-generator.ts +0 -23
  126. package/src/v2/utilities/rotate-utility-generator.ts +0 -19
  127. package/src/v2/utilities/shadow-utility-generator.ts +0 -23
  128. package/src/v2/utilities/template.ts +0 -24
  129. package/src/v2/utilities/transform-utility-generator.ts +0 -58
  130. package/src/v2/utilities/width-utility-generator.ts +0 -19
  131. package/src/v2/utilities/z-index-utility-generator.ts +0 -23
  132. package/src/v2/v2-generate-css.ts +0 -195
  133. /package/dist/{v2/main.css → main.css} +0 -0
  134. /package/dist/{v2/main.min.css → main.min.css} +0 -0
  135. /package/dist/{v2/main.min.css.br → main.min.css.br} +0 -0
  136. /package/dist/{v2/main.min.css.gz → main.min.css.gz} +0 -0
  137. /package/dist/{v2/normalize.css → normalize.css} +0 -0
  138. /package/dist/{v2/normalize.min.css → normalize.min.css} +0 -0
  139. /package/dist/{v2/normalize.min.css.br → normalize.min.css.br} +0 -0
  140. /package/dist/{v2/normalize.min.css.gz → normalize.min.css.gz} +0 -0
@@ -0,0 +1,235 @@
1
+ export * from "./lib";
2
+
3
+ export {};
4
+
5
+ import "react";
6
+ declare module "react" {
7
+ interface HTMLAttributes<T> {
8
+ "data-backdrop"?: "none" | "weak" | "medium" | "strong";
9
+ "data-bw"?: "none" | "hairline" | "thin" | "base" | "thick" | "heavy" | "unset";
10
+ "data-ff"?: "sans" | "serif" | "mono";
11
+ "data-fs"?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl";
12
+ "data-fw"?: "light" | "regular" | "medium" | "bold" | "black" | "unset";
13
+ "data-ls"?: "tight" | "normal" | "wide" | "wider" | "widest" | "unset";
14
+ "data-lh"?: "none" | "tight" | "base" | "loose" | "display" | "unset";
15
+ "data-opacity"?: "high" | "medium" | "low";
16
+ "data-br"?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "pill" | "circle" | "unset";
17
+ "data-shadow"?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "inner" | "unset";
18
+ "data-z"?: "negative" | "0" | "1" | "2" | "3";
19
+ "data-color"?:
20
+ | "neutral-0"
21
+ | "neutral-50"
22
+ | "neutral-100"
23
+ | "neutral-200"
24
+ | "neutral-300"
25
+ | "neutral-400"
26
+ | "neutral-500"
27
+ | "neutral-600"
28
+ | "neutral-700"
29
+ | "neutral-800"
30
+ | "neutral-900"
31
+ | "brand-50"
32
+ | "brand-100"
33
+ | "brand-200"
34
+ | "brand-300"
35
+ | "brand-400"
36
+ | "brand-500"
37
+ | "brand-600"
38
+ | "brand-700"
39
+ | "brand-800"
40
+ | "brand-900"
41
+ | "positive-100"
42
+ | "positive-300"
43
+ | "positive-500"
44
+ | "positive-700"
45
+ | "positive-900"
46
+ | "danger-100"
47
+ | "danger-300"
48
+ | "danger-500"
49
+ | "danger-700"
50
+ | "danger-900"
51
+ | "warning-100"
52
+ | "warning-300"
53
+ | "warning-500"
54
+ | "warning-700"
55
+ | "warning-900";
56
+ "data-bg"?:
57
+ | "neutral-0"
58
+ | "neutral-50"
59
+ | "neutral-100"
60
+ | "neutral-200"
61
+ | "neutral-300"
62
+ | "neutral-400"
63
+ | "neutral-500"
64
+ | "neutral-600"
65
+ | "neutral-700"
66
+ | "neutral-800"
67
+ | "neutral-900"
68
+ | "brand-50"
69
+ | "brand-100"
70
+ | "brand-200"
71
+ | "brand-300"
72
+ | "brand-400"
73
+ | "brand-500"
74
+ | "brand-600"
75
+ | "brand-700"
76
+ | "brand-800"
77
+ | "brand-900"
78
+ | "positive-100"
79
+ | "positive-300"
80
+ | "positive-500"
81
+ | "positive-700"
82
+ | "positive-900"
83
+ | "danger-100"
84
+ | "danger-300"
85
+ | "danger-500"
86
+ | "danger-700"
87
+ | "danger-900"
88
+ | "warning-100"
89
+ | "warning-300"
90
+ | "warning-500"
91
+ | "warning-700"
92
+ | "warning-900";
93
+ "data-bc"?:
94
+ | "neutral-0"
95
+ | "neutral-50"
96
+ | "neutral-100"
97
+ | "neutral-200"
98
+ | "neutral-300"
99
+ | "neutral-400"
100
+ | "neutral-500"
101
+ | "neutral-600"
102
+ | "neutral-700"
103
+ | "neutral-800"
104
+ | "neutral-900"
105
+ | "brand-50"
106
+ | "brand-100"
107
+ | "brand-200"
108
+ | "brand-300"
109
+ | "brand-400"
110
+ | "brand-500"
111
+ | "brand-600"
112
+ | "brand-700"
113
+ | "brand-800"
114
+ | "brand-900"
115
+ | "positive-100"
116
+ | "positive-300"
117
+ | "positive-500"
118
+ | "positive-700"
119
+ | "positive-900"
120
+ | "danger-100"
121
+ | "danger-300"
122
+ | "danger-500"
123
+ | "danger-700"
124
+ | "danger-900"
125
+ | "warning-100"
126
+ | "warning-300"
127
+ | "warning-500"
128
+ | "warning-700"
129
+ | "warning-900";
130
+ "data-p"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
131
+ "data-pt"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
132
+ "data-pr"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
133
+ "data-pb"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
134
+ "data-pl"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
135
+ "data-px"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
136
+ "data-py"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
137
+ "data-m"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
138
+ "data-mt"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
139
+ "data-mr"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
140
+ "data-mb"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
141
+ "data-ml"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
142
+ "data-mx"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
143
+ "data-my"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
144
+ "data-gap"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
145
+ "data-top"?: "0" | "0-5" | "1" | "1-5" | "2" | "2-5" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "auto";
146
+ "data-right"?:
147
+ | "0"
148
+ | "0-5"
149
+ | "1"
150
+ | "1-5"
151
+ | "2"
152
+ | "2-5"
153
+ | "3"
154
+ | "4"
155
+ | "5"
156
+ | "6"
157
+ | "8"
158
+ | "12"
159
+ | "16"
160
+ | "auto";
161
+ "data-bottom"?:
162
+ | "0"
163
+ | "0-5"
164
+ | "1"
165
+ | "1-5"
166
+ | "2"
167
+ | "2-5"
168
+ | "3"
169
+ | "4"
170
+ | "5"
171
+ | "6"
172
+ | "8"
173
+ | "12"
174
+ | "16"
175
+ | "auto";
176
+ "data-left"?:
177
+ | "0"
178
+ | "0-5"
179
+ | "1"
180
+ | "1-5"
181
+ | "2"
182
+ | "2-5"
183
+ | "3"
184
+ | "4"
185
+ | "5"
186
+ | "6"
187
+ | "8"
188
+ | "12"
189
+ | "16"
190
+ | "auto";
191
+ "data-inset"?:
192
+ | "0"
193
+ | "0-5"
194
+ | "1"
195
+ | "1-5"
196
+ | "2"
197
+ | "2-5"
198
+ | "3"
199
+ | "4"
200
+ | "5"
201
+ | "6"
202
+ | "8"
203
+ | "12"
204
+ | "16"
205
+ | "auto";
206
+ "data-max-width"?: "100%" | "unset" | "md";
207
+ "data-max-height"?: "100%" | "unset" | "md";
208
+ "data-display"?: "flex" | "block" | "inline-block" | "none";
209
+ "data-cursor"?: "wait" | "auto" | "pointer" | "not-allowed";
210
+ "data-object-fit"?: "contain" | "cover" | "fill" | "scale-down" | "none";
211
+ "data-position"?: "static" | "relative" | "absolute" | "fixed" | "sticky" | "unset";
212
+ "data-rotate"?: "0" | "90" | "180" | "270";
213
+ "data-object-position"?: "top" | "bottom" | "left" | "right" | "center" | "top-left" | "top-right";
214
+ "data-pointer-events"?: "none" | "auto";
215
+ "data-overflow"?: "auto" | "scroll" | "hidden";
216
+ "data-direction"?: "row" | "row-reverse" | "column" | "column-reverse";
217
+ "data-main"?: "start" | "end" | "around" | "evenly" | "between" | "center" | "baseline";
218
+ "data-cross"?: "start" | "end" | "around" | "evenly" | "between" | "center" | "baseline";
219
+ "data-grow"?: "1" | "unset";
220
+ "data-shrink"?: "0" | "unset";
221
+ "data-wrap"?: "nowrap" | "wrap" | "wrap-reverse" | "unset";
222
+ "data-transform"?:
223
+ | "uppercase"
224
+ | "lowercase"
225
+ | "capitalize"
226
+ | "upper-first"
227
+ | "truncate"
228
+ | "center"
229
+ | "nowrap"
230
+ | "none"
231
+ | "line-clamp";
232
+ "data-width"?: "100%" | "auto" | "unset";
233
+ "data-height"?: "100%" | "auto" | "unset";
234
+ }
235
+ }
package/dist/lib.d.ts ADDED
@@ -0,0 +1,171 @@
1
+ export declare const BackdropsTokens: {
2
+ readonly "backdrop-none": "none";
3
+ readonly "backdrop-weak": "rgba(0 0 0 / 0.35)";
4
+ readonly "backdrop-medium": "rgba(0 0 0 / 0.6)";
5
+ readonly "backdrop-strong": "rgba(0 0 0 / 0.75)";
6
+ };
7
+ export type BackdropsTokenType = keyof typeof BackdropsTokens;
8
+ export declare const BorderWidthTokens: {
9
+ readonly "border-width-none": "0";
10
+ readonly "border-width-hairline": "1px";
11
+ readonly "border-width-thin": "2px";
12
+ readonly "border-width-base": "4px";
13
+ readonly "border-width-thick": "6px";
14
+ readonly "border-width-heavy": "12px";
15
+ readonly "border-width-unset": "unset";
16
+ };
17
+ export type BorderWidthTokenType = keyof typeof BorderWidthTokens;
18
+ export declare const BrandTokens: {
19
+ readonly "color-brand-50": "oklch(0.94 0.07 255)";
20
+ readonly "color-brand-100": "oklch(0.86 0.10 255)";
21
+ readonly "color-brand-200": "oklch(0.78 0.12 255)";
22
+ readonly "color-brand-300": "oklch(0.67 0.15 255)";
23
+ readonly "color-brand-400": "oklch(0.56 0.18 255)";
24
+ readonly "color-brand-500": "oklch(0.46 0.20 255)";
25
+ readonly "color-brand-600": "oklch(0.38 0.18 255)";
26
+ readonly "color-brand-700": "oklch(0.30 0.17 255)";
27
+ readonly "color-brand-800": "oklch(0.24 0.15 255)";
28
+ readonly "color-brand-900": "oklch(0.18 0.12 255)";
29
+ };
30
+ export type BrandTokenType = keyof typeof BrandTokens;
31
+ export declare const BreakpointTokens: {
32
+ readonly "breakpoint-md": "768px";
33
+ };
34
+ export type BreakpointTokenType = keyof typeof BreakpointTokens;
35
+ export declare const DangerTokens: {
36
+ readonly "color-danger-100": "oklch(0.93 0.06 25)";
37
+ readonly "color-danger-300": "oklch(0.78 0.12 25)";
38
+ readonly "color-danger-500": "oklch(0.46 0.22 25)";
39
+ readonly "color-danger-700": "oklch(0.30 0.18 25)";
40
+ readonly "color-danger-900": "oklch(0.18 0.12 25)";
41
+ };
42
+ export type DangerTokenType = keyof typeof DangerTokens;
43
+ export declare const FontFamilyTokens: {
44
+ readonly "font-family-sans": "system-ui, sans-serif";
45
+ readonly "font-family-serif": "Georgia, serif";
46
+ readonly "font-family-mono": '"SFMono-Regular", monospace';
47
+ };
48
+ export type FontFamilyTokenType = keyof typeof FontFamilyTokens;
49
+ export declare const FontSizeTokens: {
50
+ readonly "font-size-xs": "0.75rem";
51
+ readonly "font-size-sm": "0.875rem";
52
+ readonly "font-size-base": "1rem";
53
+ readonly "font-size-lg": "1.125rem";
54
+ readonly "font-size-xl": "1.25rem";
55
+ readonly "font-size-2xl": "1.5rem";
56
+ readonly "font-size-3xl": "1.875rem";
57
+ readonly "font-size-4xl": "2.25rem";
58
+ readonly "font-size-5xl": "3rem";
59
+ };
60
+ export type FontSizeTokenType = keyof typeof FontSizeTokens;
61
+ export declare const FontWeightTokens: {
62
+ readonly "font-weight-light": "300";
63
+ readonly "font-weight-regular": "400";
64
+ readonly "font-weight-medium": "500";
65
+ readonly "font-weight-bold": "700";
66
+ readonly "font-weight-black": "900";
67
+ readonly "font-weight-unset": "unset";
68
+ };
69
+ export type FontWeightTokenType = keyof typeof FontWeightTokens;
70
+ export declare const GrayscaleTokens: {
71
+ readonly "color-neutral-0": "oklch(0.98 0.01 275)";
72
+ readonly "color-neutral-50": "oklch(0.95 0.01 275)";
73
+ readonly "color-neutral-100": "oklch(0.90 0.01 275)";
74
+ readonly "color-neutral-200": "oklch(0.82 0.01 275)";
75
+ readonly "color-neutral-300": "oklch(0.72 0.01 275)";
76
+ readonly "color-neutral-400": "oklch(0.60 0.01 275)";
77
+ readonly "color-neutral-500": "oklch(0.49 0.01 275)";
78
+ readonly "color-neutral-600": "oklch(0.38 0.01 275)";
79
+ readonly "color-neutral-700": "oklch(0.27 0.01 275)";
80
+ readonly "color-neutral-800": "oklch(0.18 0.01 275)";
81
+ readonly "color-neutral-900": "oklch(0.12 0.01 275)";
82
+ };
83
+ export type GrayscaleTokenType = keyof typeof GrayscaleTokens;
84
+ export declare const LetterSpacingTokens: {
85
+ readonly "letter-spacing-tight": "-0.01em";
86
+ readonly "letter-spacing-normal": "0em";
87
+ readonly "letter-spacing-wide": "0.025em";
88
+ readonly "letter-spacing-wider": "0.05em";
89
+ readonly "letter-spacing-widest": "0.1em";
90
+ readonly "letter-spacing-unset": "unset";
91
+ };
92
+ export type LetterSpacingTokenType = keyof typeof LetterSpacingTokens;
93
+ export declare const LineHeightTokens: {
94
+ readonly "line-height-none": "1";
95
+ readonly "line-height-tight": "1.25";
96
+ readonly "line-height-base": "1.5";
97
+ readonly "line-height-loose": "1.65";
98
+ readonly "line-height-display": "1.1";
99
+ readonly "line-height-unset": "unset";
100
+ };
101
+ export type LineHeightTokenType = keyof typeof LineHeightTokens;
102
+ export declare const OpacityTokens: {
103
+ readonly "opacity-high": "0.8";
104
+ readonly "opacity-medium": "0.5";
105
+ readonly "opacity-low": "0.2";
106
+ };
107
+ export type OpacityTokenType = keyof typeof OpacityTokens;
108
+ export declare const PositiveTokens: {
109
+ readonly "color-positive-100": "oklch(0.93 0.06 145)";
110
+ readonly "color-positive-300": "oklch(0.78 0.11 145)";
111
+ readonly "color-positive-500": "oklch(0.46 0.18 145)";
112
+ readonly "color-positive-700": "oklch(0.30 0.15 145)";
113
+ readonly "color-positive-900": "oklch(0.18 0.12 145)";
114
+ };
115
+ export type PositiveTokenType = keyof typeof PositiveTokens;
116
+ export declare const RadiusTokens: {
117
+ readonly "radius-none": "0";
118
+ readonly "radius-xs": "2px";
119
+ readonly "radius-sm": "4px";
120
+ readonly "radius-md": "8px";
121
+ readonly "radius-lg": "12px";
122
+ readonly "radius-xl": "16px";
123
+ readonly "radius-pill": "9999px";
124
+ readonly "radius-circle": "50%";
125
+ readonly "radius-unset": "unset";
126
+ };
127
+ export type RadiusTokenType = keyof typeof RadiusTokens;
128
+ export declare const ShadowTokens: {
129
+ readonly "shadow-none": "none";
130
+ readonly "shadow-xs": "0 1px 2px 0 rgba(0 0 0 / 0.03)";
131
+ readonly "shadow-sm": "0 1px 3px 0 rgba(0 0 0 / 0.05), 0 1px 2px -1px rgba(0 0 0 / 0.05)";
132
+ readonly "shadow-md": "0 4px 6px -1px rgba(0 0 0 / 0.06), 0 2px 4px -2px rgba(0 0 0 / 0.05)";
133
+ readonly "shadow-lg": "0 10px 15px -3px rgba(0 0 0 / 0.07), 0 4px 6px -4px rgba(0 0 0 / 0.06)";
134
+ readonly "shadow-xl": "0 20px 25px -5px rgba(0 0 0 / 0.08), 0 8px 10px -6px rgba(0 0 0 / 0.07)";
135
+ readonly "shadow-inner": "inset 0 2px 4px 0 rgba(0 0 0 / 0.06)";
136
+ readonly "shadow-unset": "unset";
137
+ };
138
+ export type ShadowTokenType = keyof typeof ShadowTokens;
139
+ export declare const SpacingTokens: {
140
+ readonly "spacing-0": "0rem";
141
+ readonly "spacing-0-5": "0.125rem";
142
+ readonly "spacing-1": "0.25rem";
143
+ readonly "spacing-1-5": "0.375rem";
144
+ readonly "spacing-2": "0.5rem";
145
+ readonly "spacing-2-5": "0.625rem";
146
+ readonly "spacing-3": "0.75rem";
147
+ readonly "spacing-4": "1rem";
148
+ readonly "spacing-5": "1.25rem";
149
+ readonly "spacing-6": "1.5rem";
150
+ readonly "spacing-8": "2rem";
151
+ readonly "spacing-12": "3rem";
152
+ readonly "spacing-16": "4rem";
153
+ readonly "spacing-auto": "auto";
154
+ };
155
+ export type SpacingTokenType = keyof typeof SpacingTokens;
156
+ export declare const WarningTokens: {
157
+ readonly "color-warning-100": "oklch(0.97 0.06 85)";
158
+ readonly "color-warning-300": "oklch(0.86 0.12 85)";
159
+ readonly "color-warning-500": "oklch(0.67 0.20 85)";
160
+ readonly "color-warning-700": "oklch(0.46 0.18 85)";
161
+ readonly "color-warning-900": "oklch(0.30 0.14 85)";
162
+ };
163
+ export type WarningTokenType = keyof typeof WarningTokens;
164
+ export declare const ZIndexTokens: {
165
+ readonly "z-index-negative": "-1";
166
+ readonly "z-index-0": "0";
167
+ readonly "z-index-1": "1";
168
+ readonly "z-index-2": "2";
169
+ readonly "z-index-3": "3";
170
+ };
171
+ export type ZIndexTokenType = keyof typeof ZIndexTokens;
package/dist/lib.js ADDED
@@ -0,0 +1,174 @@
1
+ // dist/lib.ts
2
+ var BackdropsTokens = {
3
+ "backdrop-none": "none",
4
+ "backdrop-weak": "rgba(0 0 0 / 0.35)",
5
+ "backdrop-medium": "rgba(0 0 0 / 0.6)",
6
+ "backdrop-strong": "rgba(0 0 0 / 0.75)",
7
+ };
8
+ var BorderWidthTokens = {
9
+ "border-width-none": "0",
10
+ "border-width-hairline": "1px",
11
+ "border-width-thin": "2px",
12
+ "border-width-base": "4px",
13
+ "border-width-thick": "6px",
14
+ "border-width-heavy": "12px",
15
+ "border-width-unset": "unset",
16
+ };
17
+ var BrandTokens = {
18
+ "color-brand-50": "oklch(0.94 0.07 255)",
19
+ "color-brand-100": "oklch(0.86 0.10 255)",
20
+ "color-brand-200": "oklch(0.78 0.12 255)",
21
+ "color-brand-300": "oklch(0.67 0.15 255)",
22
+ "color-brand-400": "oklch(0.56 0.18 255)",
23
+ "color-brand-500": "oklch(0.46 0.20 255)",
24
+ "color-brand-600": "oklch(0.38 0.18 255)",
25
+ "color-brand-700": "oklch(0.30 0.17 255)",
26
+ "color-brand-800": "oklch(0.24 0.15 255)",
27
+ "color-brand-900": "oklch(0.18 0.12 255)",
28
+ };
29
+ var BreakpointTokens = {
30
+ "breakpoint-md": "768px",
31
+ };
32
+ var DangerTokens = {
33
+ "color-danger-100": "oklch(0.93 0.06 25)",
34
+ "color-danger-300": "oklch(0.78 0.12 25)",
35
+ "color-danger-500": "oklch(0.46 0.22 25)",
36
+ "color-danger-700": "oklch(0.30 0.18 25)",
37
+ "color-danger-900": "oklch(0.18 0.12 25)",
38
+ };
39
+ var FontFamilyTokens = {
40
+ "font-family-sans": "system-ui, sans-serif",
41
+ "font-family-serif": "Georgia, serif",
42
+ "font-family-mono": '"SFMono-Regular", monospace',
43
+ };
44
+ var FontSizeTokens = {
45
+ "font-size-xs": "0.75rem",
46
+ "font-size-sm": "0.875rem",
47
+ "font-size-base": "1rem",
48
+ "font-size-lg": "1.125rem",
49
+ "font-size-xl": "1.25rem",
50
+ "font-size-2xl": "1.5rem",
51
+ "font-size-3xl": "1.875rem",
52
+ "font-size-4xl": "2.25rem",
53
+ "font-size-5xl": "3rem",
54
+ };
55
+ var FontWeightTokens = {
56
+ "font-weight-light": "300",
57
+ "font-weight-regular": "400",
58
+ "font-weight-medium": "500",
59
+ "font-weight-bold": "700",
60
+ "font-weight-black": "900",
61
+ "font-weight-unset": "unset",
62
+ };
63
+ var GrayscaleTokens = {
64
+ "color-neutral-0": "oklch(0.98 0.01 275)",
65
+ "color-neutral-50": "oklch(0.95 0.01 275)",
66
+ "color-neutral-100": "oklch(0.90 0.01 275)",
67
+ "color-neutral-200": "oklch(0.82 0.01 275)",
68
+ "color-neutral-300": "oklch(0.72 0.01 275)",
69
+ "color-neutral-400": "oklch(0.60 0.01 275)",
70
+ "color-neutral-500": "oklch(0.49 0.01 275)",
71
+ "color-neutral-600": "oklch(0.38 0.01 275)",
72
+ "color-neutral-700": "oklch(0.27 0.01 275)",
73
+ "color-neutral-800": "oklch(0.18 0.01 275)",
74
+ "color-neutral-900": "oklch(0.12 0.01 275)",
75
+ };
76
+ var LetterSpacingTokens = {
77
+ "letter-spacing-tight": "-0.01em",
78
+ "letter-spacing-normal": "0em",
79
+ "letter-spacing-wide": "0.025em",
80
+ "letter-spacing-wider": "0.05em",
81
+ "letter-spacing-widest": "0.1em",
82
+ "letter-spacing-unset": "unset",
83
+ };
84
+ var LineHeightTokens = {
85
+ "line-height-none": "1",
86
+ "line-height-tight": "1.25",
87
+ "line-height-base": "1.5",
88
+ "line-height-loose": "1.65",
89
+ "line-height-display": "1.1",
90
+ "line-height-unset": "unset",
91
+ };
92
+ var OpacityTokens = {
93
+ "opacity-high": "0.8",
94
+ "opacity-medium": "0.5",
95
+ "opacity-low": "0.2",
96
+ };
97
+ var PositiveTokens = {
98
+ "color-positive-100": "oklch(0.93 0.06 145)",
99
+ "color-positive-300": "oklch(0.78 0.11 145)",
100
+ "color-positive-500": "oklch(0.46 0.18 145)",
101
+ "color-positive-700": "oklch(0.30 0.15 145)",
102
+ "color-positive-900": "oklch(0.18 0.12 145)",
103
+ };
104
+ var RadiusTokens = {
105
+ "radius-none": "0",
106
+ "radius-xs": "2px",
107
+ "radius-sm": "4px",
108
+ "radius-md": "8px",
109
+ "radius-lg": "12px",
110
+ "radius-xl": "16px",
111
+ "radius-pill": "9999px",
112
+ "radius-circle": "50%",
113
+ "radius-unset": "unset",
114
+ };
115
+ var ShadowTokens = {
116
+ "shadow-none": "none",
117
+ "shadow-xs": "0 1px 2px 0 rgba(0 0 0 / 0.03)",
118
+ "shadow-sm": "0 1px 3px 0 rgba(0 0 0 / 0.05), 0 1px 2px -1px rgba(0 0 0 / 0.05)",
119
+ "shadow-md": "0 4px 6px -1px rgba(0 0 0 / 0.06), 0 2px 4px -2px rgba(0 0 0 / 0.05)",
120
+ "shadow-lg": "0 10px 15px -3px rgba(0 0 0 / 0.07), 0 4px 6px -4px rgba(0 0 0 / 0.06)",
121
+ "shadow-xl": "0 20px 25px -5px rgba(0 0 0 / 0.08), 0 8px 10px -6px rgba(0 0 0 / 0.07)",
122
+ "shadow-inner": "inset 0 2px 4px 0 rgba(0 0 0 / 0.06)",
123
+ "shadow-unset": "unset",
124
+ };
125
+ var SpacingTokens = {
126
+ "spacing-0": "0rem",
127
+ "spacing-0-5": "0.125rem",
128
+ "spacing-1": "0.25rem",
129
+ "spacing-1-5": "0.375rem",
130
+ "spacing-2": "0.5rem",
131
+ "spacing-2-5": "0.625rem",
132
+ "spacing-3": "0.75rem",
133
+ "spacing-4": "1rem",
134
+ "spacing-5": "1.25rem",
135
+ "spacing-6": "1.5rem",
136
+ "spacing-8": "2rem",
137
+ "spacing-12": "3rem",
138
+ "spacing-16": "4rem",
139
+ "spacing-auto": "auto",
140
+ };
141
+ var WarningTokens = {
142
+ "color-warning-100": "oklch(0.97 0.06 85)",
143
+ "color-warning-300": "oklch(0.86 0.12 85)",
144
+ "color-warning-500": "oklch(0.67 0.20 85)",
145
+ "color-warning-700": "oklch(0.46 0.18 85)",
146
+ "color-warning-900": "oklch(0.30 0.14 85)",
147
+ };
148
+ var ZIndexTokens = {
149
+ "z-index-negative": "-1",
150
+ "z-index-0": "0",
151
+ "z-index-1": "1",
152
+ "z-index-2": "2",
153
+ "z-index-3": "3",
154
+ };
155
+ export {
156
+ ZIndexTokens,
157
+ WarningTokens,
158
+ SpacingTokens,
159
+ ShadowTokens,
160
+ RadiusTokens,
161
+ PositiveTokens,
162
+ OpacityTokens,
163
+ LineHeightTokens,
164
+ LetterSpacingTokens,
165
+ GrayscaleTokens,
166
+ FontWeightTokens,
167
+ FontSizeTokens,
168
+ FontFamilyTokens,
169
+ DangerTokens,
170
+ BreakpointTokens,
171
+ BrandTokens,
172
+ BorderWidthTokens,
173
+ BackdropsTokens,
174
+ };
package/package.json CHANGED
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "name": "@bgord/design",
3
- "version": "0.29.4",
3
+ "version": "0.29.5",
4
4
  "author": "Bartosz Gordon",
5
- "main": "dist/index.js",
6
- "module": "dist/bgord-design.esm.js",
7
5
  "devDependencies": {
8
6
  "@biomejs/biome": "2.0.6",
9
7
  "@commitlint/cli": "19.8.1",
@@ -24,25 +22,27 @@
24
22
  "shellcheck": "3.1.0",
25
23
  "typescript": "5.8.3"
26
24
  },
27
- "files": [
28
- "dist",
29
- "src"
30
- ],
25
+ "dependencies": {
26
+ "culori": "^4.0.2",
27
+ "lodash": "4.17.21"
28
+ },
31
29
  "license": "MIT",
32
30
  "scripts": {
33
- "v1-build": "bun build src/index.ts --format esm --outdir dist",
34
- "build": "bun build src/v2/index.ts --format esm --outdir dist/v2",
35
- "postbuild": "bash scripts/v2-prepare-css-files.sh",
36
- "prepublish": "bash scripts/v2-prepare-css-files.sh",
31
+ "build": "bun build src/index.ts --format esm --outdir dist",
32
+ "postbuild": "bash scripts/prepare-css-files.sh",
33
+ "prepublish": "bash scripts/prepare-css-files.sh",
37
34
  "preinstall": "bunx only-allow bun"
38
35
  },
39
- "types": "./dist/v2/index.d.ts",
36
+ "main": "./dist/lib.js",
37
+ "types": "./dist/index.d.ts",
40
38
  "exports": {
41
- "import": "./dist/index.js",
42
- "types": "./dist/v2/index.d.ts"
39
+ ".": {
40
+ "import": "./dist/lib.js",
41
+ "require": "./dist/lib.js",
42
+ "types": "./dist/index.d.ts"
43
+ }
43
44
  },
44
- "dependencies": {
45
- "culori": "^4.0.2",
46
- "lodash": "4.17.21"
47
- }
45
+ "files": [
46
+ "dist/**/*"
47
+ ]
48
48
  }
@@ -1,6 +0,0 @@
1
-
2
- export {};
3
-
4
- import "react";
5
- declare module "react" { interface HTMLAttributes<T> {
6
- "data-fs"?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl";}}
@@ -1,19 +0,0 @@
1
- /* grow-fade-in animation */
2
-
3
- @keyframes grow-fade-in {
4
- from {
5
- opacity: 0.5;
6
- scale: 0.9;
7
- }
8
-
9
- to {
10
- opacity: 1;
11
- scale: 1;
12
- }
13
- }
14
-
15
- [data-animation="grow-fade-in"] {
16
- animation: grow-fade-in 140ms ease forwards;
17
- }
18
-
19
- /* ===================== */