krl-alfred 2.20.0 → 2.20.2

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 (49) hide show
  1. package/dist/components/ActionButton/ActionButton.d.ts +1 -1
  2. package/dist/components/ActionButton/ActionButton.js +6 -6
  3. package/dist/components/ActionButton/ActionButton.styled.d.ts +2 -0
  4. package/dist/components/ActionButton/ActionButton.styled.js +15 -13
  5. package/dist/components/ActionButton/props.d.ts +5 -1
  6. package/dist/components/ActionButton/props.js +2 -0
  7. package/dist/components/ActionButton/stories/ActionButton.stories.d.ts +16 -1
  8. package/dist/components/ActionButton/stories/ActionButton.stories.js +38 -1
  9. package/dist/components/AddressCard/AddressCard.styled.js +1 -1
  10. package/dist/components/DescriptionCard/DescriptionCard.d.ts +1 -1
  11. package/dist/components/DescriptionCard/DescriptionCard.js +4 -6
  12. package/dist/components/DescriptionCard/DescriptionCard.styled.d.ts +11 -0
  13. package/dist/components/DescriptionCard/DescriptionCard.styled.js +20 -13
  14. package/dist/components/DescriptionCard/props.d.ts +12 -0
  15. package/dist/components/DescriptionCard/props.js +8 -1
  16. package/dist/components/DescriptionCard/stories/DescriptionCard.stories.d.ts +93 -1
  17. package/dist/components/DescriptionCard/stories/DescriptionCard.stories.js +43 -1
  18. package/dist/components/Icon/iconList/RadioButtonElementChecked.js +1 -1
  19. package/dist/components/InfoBox/InfoBox.js +1 -1
  20. package/dist/components/InfoBox/props.d.ts +2 -2
  21. package/dist/components/InfoBox/stories/InfoBox.stories.d.ts +15 -8
  22. package/dist/components/InfoBox/stories/InfoBox.stories.js +7 -4
  23. package/dist/components/Modal/Modal.d.ts +1 -1
  24. package/dist/components/Modal/Modal.js +29 -13
  25. package/dist/components/Modal/props.d.ts +2 -0
  26. package/dist/components/Modal/props.js +1 -0
  27. package/dist/components/Modal/stories/Modal.stories.d.ts +1 -1
  28. package/dist/components/ProductCardHorizontalSm/ProductCardHorizontalSm.d.ts +1 -1
  29. package/dist/components/ProductCardHorizontalSm/ProductCardHorizontalSm.js +3 -2
  30. package/dist/components/ProductCardHorizontalSm/ProductCardHorizontalSm.styled.d.ts +1 -1
  31. package/dist/components/ProductCardHorizontalSm/ProductCardHorizontalSm.styled.js +5 -2
  32. package/dist/components/ProductCardHorizontalSm/props.d.ts +5 -3
  33. package/dist/components/ProductCardHorizontalSm/props.js +1 -0
  34. package/dist/components/ProductCardHorizontalSm/stories/ProductCardHorizontalSm.stories.d.ts +68 -1
  35. package/dist/components/ProductCardHorizontalSm/stories/ProductCardHorizontalSm.stories.js +9 -2
  36. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  37. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  38. package/dist/components/RadioGroup/RadioGroup.styled.js +7 -2
  39. package/dist/components/RadioGroup/props.d.ts +17 -3
  40. package/dist/components/RadioGroup/props.js +3 -2
  41. package/dist/components/RadioGroup/stories/RadioGroup.stories.d.ts +114 -1
  42. package/dist/components/RadioGroup/stories/RadioGroup.stories.js +128 -2
  43. package/dist/components/Tabs/Tabs.d.ts +1 -1
  44. package/dist/components/Tabs/Tabs.js +4 -4
  45. package/dist/components/Tabs/Tabs.styled.js +1 -1
  46. package/dist/components/Tabs/props.d.ts +3 -0
  47. package/dist/components/Tabs/stories/Tabs.stories.d.ts +12 -1
  48. package/dist/components/Tabs/stories/Tabs.stories.js +12 -1
  49. package/package.json +1 -1
@@ -14,17 +14,20 @@ export interface TabsProps {
14
14
  size?: SIZES;
15
15
  hasAutoFlex?: boolean;
16
16
  isHideTabHeaderOnMobile?: boolean;
17
+ tabButtonWidth?: number;
17
18
  onChange?: (key: string) => void;
18
19
  }
19
20
  export interface TabStyledProps {
20
21
  $hasAutoFlex?: boolean;
21
22
  $isHideTabHeaderOnMobile?: boolean;
23
+ $tabButtonWidth?: number;
22
24
  $size?: SIZES;
23
25
  }
24
26
  export interface TabItemStyledProps {
25
27
  $isActive?: boolean;
26
28
  $isDisabled?: boolean;
27
29
  $hasAutoFlex?: boolean;
30
+ $tabButtonWidth?: number;
28
31
  $size?: SIZES;
29
32
  }
30
33
  export declare const TabsDefault: TabsProps;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ tabs, activeTab, defaultTab, size, hasAutoFlex, isHideTabHeaderOnMobile, onChange, }: import("..").TabsProps) => React.JSX.Element;
4
+ component: ({ tabs, activeTab, defaultTab, size, hasAutoFlex, isHideTabHeaderOnMobile, tabButtonWidth, onChange, }: import("..").TabsProps) => React.JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -76,3 +76,14 @@ export declare const LargeSize: {
76
76
  size: string;
77
77
  };
78
78
  };
79
+ export declare const WithFixedTabWidth: {
80
+ args: {
81
+ tabs: {
82
+ key: string;
83
+ title: string;
84
+ content: React.JSX.Element;
85
+ }[];
86
+ tabButtonWidth: number;
87
+ size: string;
88
+ };
89
+ };
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.LargeSize = exports.SmallSize = exports.WithAutoFlex = exports.WithDisabledTab = exports.WithDefaultTab = exports.Default = void 0;
17
+ exports.WithFixedTabWidth = exports.LargeSize = exports.SmallSize = exports.WithAutoFlex = exports.WithDisabledTab = exports.WithDefaultTab = exports.Default = void 0;
18
18
  var jsx_runtime_1 = require("react/jsx-runtime");
19
19
  var Tabs_1 = __importDefault(require("../Tabs"));
20
20
  var meta = {
@@ -92,3 +92,14 @@ exports.LargeSize = {
92
92
  size: "lg",
93
93
  },
94
94
  };
95
+ exports.WithFixedTabWidth = {
96
+ args: {
97
+ tabs: [
98
+ { key: "tab1", title: "Tab 1", content: (0, jsx_runtime_1.jsx)(ExampleContent, { title: "Tab 1" }) },
99
+ { key: "tab2", title: "Tab 2", content: (0, jsx_runtime_1.jsx)(ExampleContent, { title: "Tab 2" }) },
100
+ { key: "tab3", title: "Uzun Tab Başlığı", content: (0, jsx_runtime_1.jsx)(ExampleContent, { title: "Tab 3" }) },
101
+ ],
102
+ tabButtonWidth: 160,
103
+ size: "md",
104
+ },
105
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "krl-alfred",
3
- "version": "2.20.0",
3
+ "version": "2.20.2",
4
4
  "files": [
5
5
  "dist"
6
6
  ],