@fattureincloud/fic-design-system 0.4.31 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/common/components/typography/Typography.d.ts +13 -0
  3. package/dist/common/components/typography/index.d.ts +1 -0
  4. package/dist/common/components/typography/types.d.ts +21 -0
  5. package/dist/common/components/typography/utils.d.ts +2 -0
  6. package/dist/common/types/dateTypes.d.ts +5 -0
  7. package/dist/common/utils/dateUtils.d.ts +3 -0
  8. package/dist/common/utils/dsUtils.d.ts +8 -0
  9. package/dist/components/avatar/Avatar.d.ts +1 -1
  10. package/dist/components/avatar/avatar.stories.d.ts +2 -2
  11. package/dist/components/avatar/index.d.ts +2 -2
  12. package/dist/components/avatar/styled.d.ts +3 -0
  13. package/dist/components/avatar/types.d.ts +18 -6
  14. package/dist/components/avatar/utils.d.ts +4 -0
  15. package/dist/components/badge/Badge.d.ts +2 -2
  16. package/dist/components/dropdown/types.d.ts +1 -2
  17. package/dist/components/form/datepicker/hooks/useFormattedDate.d.ts +1 -1
  18. package/dist/components/form/datepicker/types.d.ts +0 -3
  19. package/dist/components/form/datepicker/utils.d.ts +1 -1
  20. package/dist/components/inlineMessage/InlineMessage.d.ts +1 -1
  21. package/dist/components/segmentButton/SegmentButton.d.ts +4 -0
  22. package/dist/components/segmentButton/index.d.ts +3 -0
  23. package/dist/components/segmentButton/segmentButton.stories.d.ts +5 -0
  24. package/dist/components/segmentButton/segmentButtonPalette.d.ts +3 -0
  25. package/dist/components/segmentButton/styled.d.ts +7 -0
  26. package/dist/components/segmentButton/types.d.ts +26 -0
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.esm.js +5 -5
  29. package/dist/index.esm.js.map +1 -1
  30. package/dist/index.js +4 -4
  31. package/dist/index.js.map +1 -1
  32. package/dist/styles/theme.d.ts +2 -0
  33. package/dist/styles/types.d.ts +6 -4
  34. package/package.json +1 -1
@@ -21,6 +21,7 @@ import { SidebarItemPalette } from '../components/layout/sidebarItem';
21
21
  import { MicroTagPalette } from '../components/microTag';
22
22
  import { PaginationPalette } from '../components/pagination';
23
23
  import { ProgressBarPalette } from '../components/progressbar';
24
+ import { SegmentButtonPalette } from '../components/segmentButton';
24
25
  import { StepperPalette } from '../components/stepper';
25
26
  import { TablePalette } from '../components/table';
26
27
  import { TagPalette } from '../components/tag';
@@ -58,6 +59,7 @@ interface Components {
58
59
  badge: BadgePalette;
59
60
  tip: TipPalette;
60
61
  label: LabelPalette;
62
+ segmentButton: SegmentButtonPalette;
61
63
  }
62
64
  export interface Theme {
63
65
  palette: Palette;
@@ -3,20 +3,22 @@ declare type bwColorValues = 8 | 16 | 48 | 80 | 100;
3
3
  export declare type bwColor = {
4
4
  [k in bwColorValues]: paletteColor;
5
5
  };
6
- declare type colorValues = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
6
+ export declare const colorValuesArray: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
7
+ export declare type colorValues = typeof colorValuesArray[number];
7
8
  export declare type color = {
8
9
  [k in colorValues]: paletteColor;
9
10
  };
10
- declare const bwColorsList: readonly ["black", "white"];
11
- declare type bwColors = typeof bwColorsList[number];
11
+ export declare const bwColorsList: readonly ["black", "white"];
12
+ export declare type bwColors = typeof bwColorsList[number];
12
13
  declare type BwPalette = {
13
14
  [k in bwColors]: bwColor;
14
15
  };
15
- declare const colorsList: readonly ["grey", "blue", "indigo", "yellow", "orange", "red", "green", "fuchsia", "pink", "cyan", "primary"];
16
+ export declare const colorsList: readonly ["grey", "blue", "indigo", "yellow", "orange", "red", "green", "fuchsia", "pink", "cyan", "primary"];
16
17
  export declare type colors = typeof colorsList[number];
17
18
  declare type ColorsPalette = {
18
19
  [k in colors]: color;
19
20
  };
20
21
  export declare const allColorsList: ("black" | "white" | "grey" | "blue" | "indigo" | "yellow" | "orange" | "red" | "green" | "fuchsia" | "pink" | "cyan" | "primary")[];
22
+ export declare type AllColors = typeof allColorsList[number];
21
23
  export declare type Palette = BwPalette & ColorsPalette;
22
24
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fattureincloud/fic-design-system",
3
- "version": "0.4.31",
3
+ "version": "0.5.1",
4
4
  "description": "Fatture in Cloud and Danea design system",
5
5
  "repository": "git@bitbucket.org:fattureincloud/design-system.git",
6
6
  "license": "MIT",