@telia/teddy 0.0.18 → 0.0.19

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 (65) hide show
  1. package/README.md +0 -3
  2. package/dist/components/accordion/accordion.d.ts +2 -2
  3. package/dist/components/box/box.d.ts +1 -1
  4. package/dist/components/box/box.js +1 -1
  5. package/dist/components/button/button.d.ts +1 -1
  6. package/dist/components/button/button.js +1 -1
  7. package/dist/components/card/card.d.ts +10 -9
  8. package/dist/components/card/card.js +37 -39
  9. package/dist/components/chip/chip-indicator.d.ts +9 -0
  10. package/dist/components/chip/chip-indicator.js +16 -0
  11. package/dist/components/chip/chip-item.d.ts +9 -0
  12. package/dist/components/chip/chip-item.js +28 -0
  13. package/dist/components/chip/chip.d.ts +20 -0
  14. package/dist/components/chip/chip.js +31 -0
  15. package/dist/components/chip/index.d.ts +17 -0
  16. package/dist/components/chip/index.js +10 -0
  17. package/dist/components/field-error-text/field-error-text.d.ts +2 -2
  18. package/dist/components/flex/flex.d.ts +1 -1
  19. package/dist/components/flex/flex.js +1 -1
  20. package/dist/components/grid/grid.d.ts +1 -1
  21. package/dist/components/grid/grid.js +1 -1
  22. package/dist/components/heading/heading.d.ts +1 -1
  23. package/dist/components/heading/heading.js +1 -1
  24. package/dist/components/index.d.ts +1 -0
  25. package/dist/components/index.js +2 -0
  26. package/dist/components/modal/modal.d.ts +3 -3
  27. package/dist/components/modal/modal.js +1 -0
  28. package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
  29. package/dist/components/notification/notification.d.ts +21 -18
  30. package/dist/components/radio-group/radio-group.d.ts +1 -1
  31. package/dist/components/text/text.d.ts +3 -1
  32. package/dist/components/text/text.js +38 -27
  33. package/dist/components/text-field/text-field.d.ts +4 -4
  34. package/dist/components/toggle/toggle.d.ts +2 -2
  35. package/dist/main.js +2 -0
  36. package/dist/style.css +350 -221
  37. package/dist/utils/generate-styling/color.d.ts +15 -0
  38. package/dist/utils/generate-styling/color.js +12 -0
  39. package/dist/utils/{layout → generate-styling}/index.d.ts +18 -13
  40. package/dist/utils/{layout → generate-styling}/index.js +2 -0
  41. package/package.json +1 -1
  42. /package/dist/utils/{layout → generate-styling}/align.d.ts +0 -0
  43. /package/dist/utils/{layout → generate-styling}/align.js +0 -0
  44. /package/dist/utils/{layout → generate-styling}/flex.d.ts +0 -0
  45. /package/dist/utils/{layout → generate-styling}/flex.js +0 -0
  46. /package/dist/utils/{layout → generate-styling}/gap.d.ts +0 -0
  47. /package/dist/utils/{layout → generate-styling}/gap.js +0 -0
  48. /package/dist/utils/{layout → generate-styling}/grid.d.ts +0 -0
  49. /package/dist/utils/{layout → generate-styling}/grid.js +0 -0
  50. /package/dist/utils/{layout → generate-styling}/height.d.ts +0 -0
  51. /package/dist/utils/{layout → generate-styling}/height.js +0 -0
  52. /package/dist/utils/{layout → generate-styling}/inset.d.ts +0 -0
  53. /package/dist/utils/{layout → generate-styling}/inset.js +0 -0
  54. /package/dist/utils/{layout → generate-styling}/justify.d.ts +0 -0
  55. /package/dist/utils/{layout → generate-styling}/justify.js +0 -0
  56. /package/dist/utils/{layout → generate-styling}/margin.d.ts +0 -0
  57. /package/dist/utils/{layout → generate-styling}/margin.js +0 -0
  58. /package/dist/utils/{layout → generate-styling}/padding.d.ts +0 -0
  59. /package/dist/utils/{layout → generate-styling}/padding.js +0 -0
  60. /package/dist/utils/{layout → generate-styling}/position.d.ts +0 -0
  61. /package/dist/utils/{layout → generate-styling}/position.js +0 -0
  62. /package/dist/utils/{layout → generate-styling}/util.d.ts +0 -0
  63. /package/dist/utils/{layout → generate-styling}/util.js +0 -0
  64. /package/dist/utils/{layout → generate-styling}/width.d.ts +0 -0
  65. /package/dist/utils/{layout → generate-styling}/width.js +0 -0
@@ -0,0 +1,15 @@
1
+ import { Responsive } from './util';
2
+
3
+ export declare const colorValues: readonly [];
4
+ export declare const color: readonly [{
5
+ readonly key: "color";
6
+ readonly className: "teddy-color";
7
+ readonly values: readonly [];
8
+ }];
9
+ /**
10
+ * The color. It can be or a responsive value.
11
+ * A responsive value is an object with the keys 'sm', 'md', 'lg', 'xl' and a value for the corresponding breakpoint.
12
+ */
13
+ export type ColorProps = {
14
+ color?: Responsive<(typeof colorValues)[number]['key']>;
15
+ };
@@ -0,0 +1,12 @@
1
+ const colorValues = [];
2
+ const color = [
3
+ {
4
+ key: "color",
5
+ className: "teddy-color",
6
+ values: colorValues
7
+ }
8
+ ];
9
+ export {
10
+ color,
11
+ colorValues
12
+ };
@@ -1,16 +1,17 @@
1
- import { InsetProps } from './inset';
2
- import { PositionProps } from './position';
3
- import { PaddingProps } from './padding';
4
- import { Justify } from './justify';
5
- import { GridLayout, GridChildren } from './grid';
6
- import { GapProps } from './gap';
7
- import { Align } from './align';
8
- import { HTMLAttributes } from 'react';
9
- import { HeightProps } from './height';
10
- import { WidthProps } from './width';
11
- import { FlexChildren, FlexLayout } from './flex';
12
- import { MarginProps } from './margin';
13
1
  import { Responsive } from './util';
2
+ import { MarginProps } from './margin';
3
+ import { FlexChildren, FlexLayout } from './flex';
4
+ import { WidthProps } from './width';
5
+ import { HeightProps } from './height';
6
+ import { HTMLAttributes } from 'react';
7
+ import { Align } from './align';
8
+ import { GapProps } from './gap';
9
+ import { GridLayout, GridChildren } from './grid';
10
+ import { Justify } from './justify';
11
+ import { PaddingProps } from './padding';
12
+ import { PositionProps } from './position';
13
+ import { InsetProps } from './inset';
14
+ import { ColorProps } from './color';
14
15
 
15
16
  export declare const displayValues: readonly [{
16
17
  readonly key: "none";
@@ -1556,6 +1557,10 @@ export declare const layout: readonly [{
1556
1557
  readonly key: "page-padding-xl";
1557
1558
  readonly value: "var(--teddy-spacing-page-padding-xl)";
1558
1559
  }];
1560
+ }, {
1561
+ readonly key: "color";
1562
+ readonly className: "teddy-color";
1563
+ readonly values: readonly [];
1559
1564
  }, {
1560
1565
  readonly key: "align";
1561
1566
  readonly className: "teddy-ai";
@@ -1918,7 +1923,7 @@ export declare const layout: readonly [{
1918
1923
  readonly value: "span 12";
1919
1924
  }];
1920
1925
  }];
1921
- export type CommonChildrenLayoutProps = PositionProps & InsetProps & MarginProps & PaddingProps & WidthProps & HeightProps;
1926
+ export type CommonChildrenLayoutProps = PositionProps & InsetProps & MarginProps & PaddingProps & WidthProps & HeightProps & ColorProps;
1922
1927
  export type ChildrenLayoutProps = FlexChildren & GridChildren & CommonChildrenLayoutProps;
1923
1928
  export type CommonFlexGridLayoutProps = ChildrenLayoutProps & GapProps & {
1924
1929
  align?: Align;
@@ -10,6 +10,7 @@ import { justify } from "./justify.js";
10
10
  import { paddings } from "./padding.js";
11
11
  import { position } from "./position.js";
12
12
  import { inset } from "./inset.js";
13
+ import { color } from "./color.js";
13
14
  const breakpoint = {
14
15
  sm: "0px",
15
16
  md: "600px",
@@ -33,6 +34,7 @@ const layout = [
33
34
  ...widths,
34
35
  ...heights,
35
36
  ...gap,
37
+ ...color,
36
38
  ...align,
37
39
  ...justify,
38
40
  ...displayLayout,
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "pnpm": ">=8"
19
19
  },
20
20
  "private": false,
21
- "version": "0.0.18",
21
+ "version": "0.0.19",
22
22
  "sideEffects": [
23
23
  "**/*.css"
24
24
  ],
File without changes
File without changes
File without changes
File without changes