krl-alfred 2.20.1 → 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 (33) 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/InfoBox/InfoBox.js +1 -1
  19. package/dist/components/InfoBox/props.d.ts +2 -2
  20. package/dist/components/InfoBox/stories/InfoBox.stories.d.ts +15 -8
  21. package/dist/components/InfoBox/stories/InfoBox.stories.js +7 -4
  22. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  23. package/dist/components/RadioGroup/props.d.ts +14 -3
  24. package/dist/components/RadioGroup/props.js +1 -1
  25. package/dist/components/RadioGroup/stories/RadioGroup.stories.d.ts +73 -0
  26. package/dist/components/RadioGroup/stories/RadioGroup.stories.js +110 -2
  27. package/dist/components/Tabs/Tabs.d.ts +1 -1
  28. package/dist/components/Tabs/Tabs.js +4 -4
  29. package/dist/components/Tabs/Tabs.styled.js +1 -1
  30. package/dist/components/Tabs/props.d.ts +3 -0
  31. package/dist/components/Tabs/stories/Tabs.stories.d.ts +12 -1
  32. package/dist/components/Tabs/stories/Tabs.stories.js +12 -1
  33. package/package.json +1 -1
@@ -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.1",
3
+ "version": "2.20.2",
4
4
  "files": [
5
5
  "dist"
6
6
  ],