@luminescent/ui 1.1.1 → 1.1.4

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 (61) hide show
  1. package/lib/components/bg.js +1 -1
  2. package/lib/components/btn.js +2 -0
  3. package/lib/components/card.js +2 -0
  4. package/lib/components/input.js +2 -0
  5. package/lib/components/pad.js +21 -55
  6. package/lib/index.qwik.cjs +2730 -0
  7. package/lib/index.qwik.mjs +2730 -0
  8. package/lib/tsconfig.tsbuildinfo +1 -1
  9. package/lib-types/components/btn.d.ts +1 -0
  10. package/lib-types/components/card.d.ts +1 -0
  11. package/lib-types/components/docs/Anchor.d.ts +2 -0
  12. package/lib-types/components/docs/Blobs.d.ts +2 -0
  13. package/lib-types/components/docs/Button.d.ts +2 -0
  14. package/lib-types/components/docs/Card.d.ts +2 -0
  15. package/lib-types/components/docs/ColorInput.d.ts +2 -0
  16. package/lib-types/components/docs/ColorPicker.d.ts +2 -0
  17. package/lib-types/components/docs/Dropdown.d.ts +2 -0
  18. package/lib-types/components/docs/IconsLogos.d.ts +2 -0
  19. package/lib-types/components/docs/Nav.d.ts +2 -0
  20. package/lib-types/components/docs/NumberInput.d.ts +2 -0
  21. package/lib-types/components/docs/TextArea.d.ts +2 -0
  22. package/lib-types/components/docs/TextInput.d.ts +2 -0
  23. package/lib-types/components/docs/Toggle.d.ts +2 -0
  24. package/lib-types/components/elements/Anchor.d.ts +5 -0
  25. package/lib-types/components/elements/Blobs.d.ts +36 -0
  26. package/lib-types/components/elements/Button.d.ts +182 -0
  27. package/lib-types/components/elements/Card.d.ts +159 -0
  28. package/lib-types/components/elements/ColorInput.d.ts +12 -0
  29. package/lib-types/components/elements/ColorPicker.d.ts +15 -0
  30. package/lib-types/components/elements/Dropdown.d.ts +22 -0
  31. package/lib-types/components/elements/Header.d.ts +12 -0
  32. package/lib-types/components/elements/LoadingIcon.d.ts +10 -0
  33. package/lib-types/components/elements/Nav.d.ts +38 -0
  34. package/lib-types/components/elements/NumberInput.d.ts +23 -0
  35. package/lib-types/components/elements/TextArea.d.ts +15 -0
  36. package/lib-types/components/elements/TextInput.d.ts +43 -0
  37. package/lib-types/components/elements/Toggle.d.ts +212 -0
  38. package/lib-types/components/elements.d.ts +13 -0
  39. package/lib-types/components/input.d.ts +1 -0
  40. package/lib-types/components/logos/Birdflop.d.ts +7 -0
  41. package/lib-types/components/logos/Discord.d.ts +2 -0
  42. package/lib-types/components/logos/Fabric.d.ts +2 -0
  43. package/lib-types/components/logos/Forge.d.ts +2 -0
  44. package/lib-types/components/logos/IconProps.d.ts +3 -0
  45. package/lib-types/components/logos/Luminescent.d.ts +3 -0
  46. package/lib-types/components/logos/Paper.d.ts +2 -0
  47. package/lib-types/components/logos/Pterodactyl.d.ts +2 -0
  48. package/lib-types/components/logos/Purpur.d.ts +2 -0
  49. package/lib-types/components/logos/Velocity.d.ts +2 -0
  50. package/lib-types/components/logos/Waterfall.d.ts +2 -0
  51. package/lib-types/components/logos.d.ts +10 -0
  52. package/lib-types/entry.dev.d.ts +2 -0
  53. package/lib-types/entry.ssr.d.ts +14 -0
  54. package/lib-types/root.d.ts +3 -0
  55. package/lib-types/svg/ChevronDown.d.ts +2 -0
  56. package/lib-types/svg/Link.d.ts +2 -0
  57. package/lib-types/svg/Minus.d.ts +2 -0
  58. package/lib-types/svg/Plus.d.ts +2 -0
  59. package/lib-types/svg/Shuffle.d.ts +2 -0
  60. package/lib-types/utils/color.d.ts +36 -0
  61. package/package.json +7 -6
@@ -22,7 +22,7 @@ export default function ({ matchUtilities, theme }) {
22
22
  const textColor = shades[index - 5 < 0 ? shades.length - 1 : index - 5] || shades[index + 5 > shades.length - 1 ? 0 : index + 5];
23
23
  return {
24
24
  background: (_a = theme(`colors.${value}`)) !== null && _a !== void 0 ? _a : value,
25
- color: (_b = theme(`colors.${textColor}`)) !== null && _b !== void 0 ? _b : 'inherit',
25
+ color: textColor == value ? 'inherit' : (_b = theme(`colors.${textColor}`)) !== null && _b !== void 0 ? _b : 'inherit',
26
26
  border: `1px solid ${(_d = (_c = theme(`colors.${borderColor !== null && borderColor !== void 0 ? borderColor : value}`)) !== null && _c !== void 0 ? _c : borderColor) !== null && _d !== void 0 ? _d : value}`,
27
27
  outline: 'none',
28
28
  '&:focus': {
@@ -1,7 +1,9 @@
1
+ export const defaultClasses = 'lum-pad-md text-base lum-bg-gray-800 hover:lum-bg-gray-700 rounded-md';
1
2
  export default function ({ addComponents }) {
2
3
  addComponents({
3
4
  '.lum-btn': {
4
5
  '@apply flex items-center gap-3 motion-safe:transition ease-in-out disabled:opacity-50 hover:drop-shadow-lg motion-safe:active:scale-95 whitespace-nowrap touch-manipulation select-none text-center': {},
6
+ [`@apply ${defaultClasses}`]: {},
5
7
  },
6
8
  });
7
9
  }
@@ -1,7 +1,9 @@
1
+ export const defaultClasses = 'lum-bg-gray-900 lum-pad-equal-4xl rounded-lg';
1
2
  export default function ({ addComponents }) {
2
3
  addComponents({
3
4
  '.lum-card': {
4
5
  '@apply flex flex-col gap-3 motion-safe:transition ease-in-out whitespace-nowrap': {},
6
+ [`@apply ${defaultClasses}`]: {},
5
7
  },
6
8
  });
7
9
  }
@@ -1,7 +1,9 @@
1
+ export const defaultClasses = 'lum-pad-sm text-sm lum-bg-gray-800 hover:lum-bg-gray-700 rounded-md';
1
2
  export default function ({ addComponents }) {
2
3
  addComponents({
3
4
  '.lum-input': {
4
5
  '@apply flex motion-safe:transition ease-in-out disabled:opacity-50 hover:drop-shadow-lg whitespace-nowrap touch-manipulation select-none': {},
6
+ [`@apply ${defaultClasses}`]: {},
5
7
  },
6
8
  });
7
9
  }
@@ -1,58 +1,24 @@
1
+ const padding = {
2
+ xs: ['2.5', '1.5'],
3
+ sm: ['3', '2'],
4
+ md: ['4', '2'],
5
+ lg: ['7', '4'],
6
+ xl: ['8', '4'],
7
+ '2xl': ['10', '5'],
8
+ '3xl': ['12', '6'],
9
+ '4xl': ['14', '7'],
10
+ '5xl': ['16', '8'],
11
+ };
1
12
  export default function ({ addComponents }) {
2
- addComponents({
3
- '.lum-pad-xs': {
4
- '@apply px-2.5 py-1.5': {},
5
- '&.lum-pad-equal': {
6
- '@apply p-1.5': {},
7
- },
8
- },
9
- '.lum-pad-sm': {
10
- '@apply px-3 py-2': {},
11
- '&.lum-pad-equal': {
12
- '@apply p-2': {},
13
- },
14
- },
15
- '.lum-pad-md': {
16
- '@apply px-4 py-2': {},
17
- '&.lum-pad-equal': {
18
- '@apply p-2': {},
19
- },
20
- },
21
- '.lum-pad-lg': {
22
- '@apply px-7 py-4': {},
23
- '&.lum-pad-equal': {
24
- '@apply p-4': {},
25
- },
26
- },
27
- '.lum-pad-xl': {
28
- '@apply px-8 py-4': {},
29
- '&.lum-pad-equal': {
30
- '@apply p-4': {},
31
- },
32
- },
33
- '.lum-pad-2xl': {
34
- '@apply px-10 py-5': {},
35
- '&.lum-pad-equal': {
36
- '@apply p-5': {},
37
- },
38
- },
39
- '.lum-pad-3xl': {
40
- '@apply px-12 py-6': {},
41
- '&.lum-pad-equal': {
42
- '@apply p-6': {},
43
- },
44
- },
45
- '.lum-pad-4xl': {
46
- '@apply px-14 py-7': {},
47
- '&.lum-pad-equal': {
48
- '@apply p-7': {},
49
- },
50
- },
51
- '.lum-pad-5xl': {
52
- '@apply px-16 py-8': {},
53
- '&.lum-pad-equal': {
54
- '@apply p-8': {},
55
- },
56
- },
13
+ const classes = {};
14
+ Object.keys(padding).forEach((key) => {
15
+ const [x, y] = padding[key];
16
+ classes[`.lum-pad-${key}`] = {
17
+ [`@apply px-${x} py-${y}`]: {},
18
+ };
19
+ classes[`.lum-pad-equal-${key}`] = {
20
+ [`@apply p-${y}`]: {},
21
+ };
57
22
  });
23
+ addComponents(classes);
58
24
  }