linkedunion-design-kit 0.1.0 → 0.1.1

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 (36) hide show
  1. package/_test_/Color.test.js +1 -1
  2. package/_test_/Size.test.js +21 -0
  3. package/_test_/Typography.test.js +32 -0
  4. package/app/globals.css +31 -0
  5. package/components/Color/Color.stories.tsx +1 -1
  6. package/components/Color/Color.tsx +3 -3
  7. package/components/Size/Resizable.stories.tsx +30 -0
  8. package/components/Size/Resizable.tsx +10 -0
  9. package/components/Size/Size.stories.tsx +30 -0
  10. package/components/Size/Size.tsx +8 -0
  11. package/components/Typography/Typography.tsx +4 -2
  12. package/dist/index.js +2 -0
  13. package/index.ts +2 -0
  14. package/package.json +1 -1
  15. package/tailwind.config.ts +39 -1
  16. package/tsconfig.json +1 -1
  17. package/types/interface.d.ts +10 -1
  18. package/utils/index.ts +49 -0
  19. package/dist/app/layout.d.ts +0 -6
  20. package/dist/app/layout.jsx +0 -13
  21. package/dist/app/page.d.ts +0 -1
  22. package/dist/app/page.jsx +0 -71
  23. package/dist/components/Color/Color.d.ts +0 -3
  24. package/dist/components/Color/Color.jsx +0 -16
  25. package/dist/components/Color/Color.stories.d.ts +0 -10
  26. package/dist/components/Color/Color.stories.jsx +0 -76
  27. package/dist/components/Typography/Typography.d.ts +0 -3
  28. package/dist/components/Typography/Typography.jsx +0 -7
  29. package/dist/components/Typography/Typography.stories.d.ts +0 -5
  30. package/dist/components/Typography/Typography.stories.jsx +0 -51
  31. package/dist/global.css +0 -8806
  32. package/dist/index.d.ts +0 -3
  33. package/dist/tailwind.config.d.ts +0 -3
  34. package/dist/tailwind.config.js +0 -75
  35. package/dist/utils/index.d.ts +0 -305
  36. package/dist/utils/index.js +0 -413
@@ -1,51 +0,0 @@
1
- import { Typography } from "./Typography";
2
- import { fontSizes, fontWeights, lineHeights, text, textAlignment, textDecorations, textTransform, textWraps } from "../../utils";
3
- export default {
4
- title: "Components/Typography",
5
- component: Typography,
6
- argTypes: {
7
- label: { control: "text" },
8
- },
9
- };
10
- var Template = function (args) { return <Typography {...args}/>; };
11
- export var BasicTypography = Template.bind({});
12
- BasicTypography.args = {
13
- label: "".concat(text),
14
- fontSize: 'lu-base-font-size',
15
- fontWeight: 'lu-font-weight-thin',
16
- lineHeight: 'lu-line-height-sm',
17
- textAlign: 'lu-text-justify',
18
- textTransform: 'lu-text-lowercase',
19
- textDecoration: 'lu-text-decoration-none',
20
- textWrap: 'lu-text-wrap',
21
- };
22
- BasicTypography.argTypes = {
23
- fontSize: {
24
- control: { type: "select", labels: Object.fromEntries(fontSizes.map(function (size) { return [size.key, size.label]; })) },
25
- options: fontSizes.map(function (size) { return size.key; }),
26
- },
27
- fontWeight: {
28
- control: { type: "select", labels: Object.fromEntries(fontWeights.map(function (size) { return [size.key, size.label]; })) },
29
- options: fontWeights.map(function (weight) { return weight.key; }),
30
- },
31
- lineHeight: {
32
- control: { type: "select", labels: Object.fromEntries(lineHeights.map(function (size) { return [size.key, size.label]; })) },
33
- options: lineHeights.map(function (lineHeight) { return lineHeight.key; }),
34
- },
35
- textAlign: {
36
- control: { type: "select", labels: Object.fromEntries(textAlignment.map(function (size) { return [size.key, size.label]; })) },
37
- options: textAlignment.map(function (alignment) { return alignment.key; }),
38
- },
39
- textTransform: {
40
- control: { type: "select", labels: Object.fromEntries(textTransform.map(function (size) { return [size.key, size.label]; })) },
41
- options: textTransform.map(function (transform) { return transform.key; }),
42
- },
43
- textDecoration: {
44
- control: { type: "select", labels: Object.fromEntries(textDecorations.map(function (size) { return [size.key, size.label]; })) },
45
- options: textDecorations.map(function (decoration) { return decoration.key; }),
46
- },
47
- textWrap: {
48
- control: { type: "select", labels: Object.fromEntries(textWraps.map(function (size) { return [size.key, size.label]; })) },
49
- options: textWraps.map(function (wrap) { return wrap.key; }),
50
- },
51
- };